two robots

Questions about Marilou Open Devices Access (MODA)
Post Reply
travolta
Posts: 8
Joined: Tue Jan 12, 2010 5:31 am

two robots

Post by travolta » Wed Apr 21, 2010 6:43 am

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

bernardos
Posts: 24
Joined: Fri Mar 30, 2007 10:33 pm

Post by bernardos » Wed Apr 21, 2010 8:50 am

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:
if(Moda.CommandLine.ExistsValue("/robot")) RobotName=Moda.CommandLine.GetArgumentValue("/robot");
AvoidObstable is run two times by the simulator (Configuration->Execute panel)

AvoidObstacle.exe /robot:/robot1
AvoidObstacle.exe /robot:/robot2

Cheers

Post Reply