add multirobot control
This commit is contained in:
parent
9ba5662d3a
commit
368e52c282
|
@ -7,7 +7,7 @@
|
||||||
class ARMSDK : public CmdPanel{
|
class ARMSDK : public CmdPanel{
|
||||||
public:
|
public:
|
||||||
ARMSDK(std::vector<KeyAction*> events,
|
ARMSDK(std::vector<KeyAction*> events,
|
||||||
EmptyAction emptyAction, const char* IP, uint port, double dt = 0.002);
|
EmptyAction emptyAction, const char* IP, uint toport, uint ownport, double dt = 0.002);
|
||||||
~ARMSDK();
|
~ARMSDK();
|
||||||
SendCmd getSendCmd();
|
SendCmd getSendCmd();
|
||||||
int getState(size_t channelID = 0);
|
int getState(size_t channelID = 0);
|
||||||
|
|
Binary file not shown.
Binary file not shown.
2
main.cpp
2
main.cpp
|
@ -48,7 +48,7 @@ int main(int argc, char **argv){
|
||||||
ctrlComp->stateCSV = new CSVTool("../config/savedArmStates.csv");
|
ctrlComp->stateCSV = new CSVTool("../config/savedArmStates.csv");
|
||||||
ctrlComp->geneObj();
|
ctrlComp->geneObj();
|
||||||
if(ctrlComp->ctrl == Control::SDK){
|
if(ctrlComp->ctrl == Control::SDK){
|
||||||
ctrlComp->cmdPanel = new ARMSDK(events, emptyAction, "127.0.0.1", 8072, 0.002);
|
ctrlComp->cmdPanel = new ARMSDK(events, emptyAction, "127.0.0.1", 8072, 8071, 0.002);
|
||||||
}else if(ctrlComp->ctrl == Control::KEYBOARD){
|
}else if(ctrlComp->ctrl == Control::KEYBOARD){
|
||||||
events.push_back(new StateAction("`", (int)ArmFSMStateName::BACKTOSTART));
|
events.push_back(new StateAction("`", (int)ArmFSMStateName::BACKTOSTART));
|
||||||
events.push_back(new StateAction("1", (int)ArmFSMStateName::PASSIVE));
|
events.push_back(new StateAction("1", (int)ArmFSMStateName::PASSIVE));
|
||||||
|
|
Loading…
Reference in New Issue