two robots
two robots
in simple differential sample two robots named "robot 0 and robot 1" have been used.but in the program i can see only robot 0(String RobotName = "/robot0";).what about robot 1???but both robots are working :O:O
Hello,
If you are talking about the sample AvoidObstacle exemple, located in Samples/Documentation/SimpleDifferential2/C# :
AvoidObstacle controls only 1 robot. The default robot ame is /Robot0 and the program is uising the command line in order to know, really, what robot to control:
AvoidObstacle.exe /robot:/robot1
AvoidObstacle.exe /robot:/robot2
Cheers
If you are talking about the sample AvoidObstacle exemple, located in Samples/Documentation/SimpleDifferential2/C# :
AvoidObstacle controls only 1 robot. The default robot ame is /Robot0 and the program is uising the command line in order to know, really, what robot to control:
AvoidObstable is run two times by the simulator (Configuration->Execute panel)if(Moda.CommandLine.ExistsValue("/robot")) RobotName=Moda.CommandLine.GetArgumentValue("/robot");
AvoidObstacle.exe /robot:/robot1
AvoidObstacle.exe /robot:/robot2
Cheers