Running PlayerInterface module
From DGC Wiki
Description
Here's some instructions on how the PlayerInterface module is meant to be used. It has the functionality to connect Player/Gazebo with our current planning software (so far only tested with Arbiter and GlobalPlanner for waypoint following though). --Henrik 10:19, 29 Oct 2004 (PDT)
To execute the simulation you will have several programs running:
- Gazebo
<li>Player
<li>PlayerInterface MTA module
<li>Arbiter2 MTA module
<li>GlobalPlanner MTA module
</ul>
[edit]
Requirements
- Make sure you have Gazebo properly setup according to Gazebo_Stable_Installation
- Make sure you have MTA properly setup according to Running_MTA_on_a_local_machine
- Make sure you have ssh keys distributed to the machines you'll be running on (makes life alot easier). See the ~/dgc/local/scripts/distibute_sshkeys.sh script for more info.
[edit]Instructions
-
<li>Compile the Tahoe model, SickLMS221 model and the Corridor plugin:
$ cd ~/dgc/gazebo/models/Tahoe $ make $ cd ../SickLMS221 $ make $ cd ../Corridor $ make
<li> Distribute the gazebo RDDF file
$ cd ~/dgc/bob/RDDF $ ~/dgc/local/scripts/change_rddf.sh gazebo
<li> If you like, add these aliases to your .bashrc for easier execution:
alias gaz='cd ~/dgc/gazebo/worlds; gazebo tahoe_demo.world' alias pla='cd ~/dgc/gazebo/config; player -g default gazebo_cvs.cfg' alias pi='cd ~/dgc/bob/DevModules/PlayerInterface; ./PlayerInterface' alias arb='cd ~/dgc/bob/RaceModules/Arbiter2; ./Arbiter2 --noobstacle' alias glo='cd ~/dgc/bob/RaceModules/GlobalPlanner; ./GlobalPlanner'
<li> Startup five terminal windows (or tabs in Konsole) and execute the aliases above (make sure you run Gazebo and Player on the one you're sitting at). The preffered way would be to login on five different race computers and run one process on each (since MTA has a tendancy to lag alot when several processes share the CPU). Gazebo has to be started first, then Player. The order of the remaining three is not important as MTA handles that. <li> You should now see the Tahoe following waypoints in the Gazebo GUI!
![[Main Page]](../../../../upload/alice.jpg)