Difference between revisions of "RoboCup Simulator Execution"

From RoboJackets Wiki
Jump to navigation Jump to search
(Created page with '== Running Under Simulation == *doc/ * ./mcast_route lo *Requires Root Password *cd SoccSim/bin *./soccsim -c ../config/two_teams.xml *cd ../../soccer/bin *./soccer -b -c ../con...')
 
(Running Under Simulation)
Line 1: Line 1:
 
== Running Under Simulation ==
 
== Running Under Simulation ==
*doc/
+
* Reroute the multicast packets - this is to keep your simulator from flooding any network you are on with vision packets.
* ./mcast_route lo
+
** Starting from the software/trunk folder
*Requires Root Password
+
** cd doc/
*cd SoccSim/bin
+
** ./mcast_route lo [requires root password]
*./soccsim -c ../config/two_teams.xml
+
* Start the simulator itself with a configuration to describe how many robots it starts with.  There are multiple configurations available in the SoccSim/config folder, but two_teams will provide the default for most soccer applications.
*cd ../../soccer/bin
+
**cd SoccSim/bin
*./soccer -b -c ../config/sim.xml -p ../plays/normal/
+
**./soccsim -c ../config/two_teams.xml
 +
* At this point, there is a small wireframe display of the field with robots, but it isn't particularly interactive.  To actually do robot control and soccer playing, you will need to create instances of soccer for each team. 
 +
**Starting from the previous step
 +
**cd ../../soccer/bin
 +
**./soccer -b -c ../config/sim.xml -p ../plays/normal/
 +
*** This command starts soccer with the blue team (-b) flag, the robot configuration for the simulator, and runs all the normal plays.  To specify the other team, use -y instead of -b.  The sim config should be used whenever the simulator is used.  The plays folder contains the .play files that describe how the robots respond to different situations.  There are a variety of plays folders available in /soccer/plays, and you can experiment with them to do various tests.

Revision as of 12:38, 27 September 2009

Running Under Simulation

  • Reroute the multicast packets - this is to keep your simulator from flooding any network you are on with vision packets.
    • Starting from the software/trunk folder
    • cd doc/
    • ./mcast_route lo [requires root password]
  • Start the simulator itself with a configuration to describe how many robots it starts with. There are multiple configurations available in the SoccSim/config folder, but two_teams will provide the default for most soccer applications.
    • cd SoccSim/bin
    • ./soccsim -c ../config/two_teams.xml
  • At this point, there is a small wireframe display of the field with robots, but it isn't particularly interactive. To actually do robot control and soccer playing, you will need to create instances of soccer for each team.
    • Starting from the previous step
    • cd ../../soccer/bin
    • ./soccer -b -c ../config/sim.xml -p ../plays/normal/
      • This command starts soccer with the blue team (-b) flag, the robot configuration for the simulator, and runs all the normal plays. To specify the other team, use -y instead of -b. The sim config should be used whenever the simulator is used. The plays folder contains the .play files that describe how the robots respond to different situations. There are a variety of plays folders available in /soccer/plays, and you can experiment with them to do various tests.