Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Gazebo Running Instructions Alice

From DGC Wiki

Contents

Gazebo Status


Gazebo setup to be done on Moscow

Following these directions to set up a gazebo simulation running on moscow. Note that the recommended practice is to start all modules/executables from $DGC/bin.

Step 1: Compile the codebase

~/dgc
user@gcdev$ make all
~/dgc
user@moscow$ make gazebo

Step 2: Starting Gazebo

wxgazebo worlds/spring_field_test.world

try adding this to your bashrc

[ -f $HOME/dgc/local/files/dgc.bashrc ] && source $HOME/dgc/local/files/dgc.bashrc

Step 3: Starting Player

player -g default alice.cfg

Step 4: Starting FakeState (astate simulation)

a) Remember that the actual astate is being replaced by this module. Do not run astate
b) In $DGC/bin, execute the following:

./fakestate  [-n northing_off] [-e easting_off] [-f starting waypoint number] <skynet key>

Step 4: Starting SDSsim (Actuator simulation)

SDSsim is what adrive will be connecting to in order to interface with player/gazebo

./SDSsim

Step 5: Starting adrive in simulation mode

Before starting adrive, the file adrive.config in the current directory must be edited!

a) comment the line: #define SERIAL in brake.h, throttle.h, and parker_steer.h, which are in /dgc/drivers/alice/ and recompile adrive.


b) Change the port numbers to use the SDS (i.e. "gas_port 3" etc.)

c) Once these modifications are made, adrive.config should have the following options:

gas_port 3
brake_port 2
estop_port 5
trans_port -1
steer_port 1
enable_gas_command enable_steer_command enable_brake_command #enable_trans_command #enable_estop_command
enable_gas_status enable_steer_status enable_brake_status #enable_trans_status #enable_estop_status
enable_sparrow enable_skynet enable_logging
enable_simulation 192.168.0.241

d) In $DGC/bin, execute the following:

./adrive

At this point, Gazebo should be running and able to accept commands through adrive. You're Done!!

Step 6: Starting the planning code

On a different machine, make sure that a skynetd is started on the same key, and run the following in $DGC/bin:

  1. ./trajFollower
  2. ./plannerModule
  3. ./gui
  4. ./fusionMapper


Known Bugs

Please provide links here to the Bugzilla bug.

  1. Sometimes you need to remove a /tmp/gazebo-username-0 (gazebo will tell you).
  2. Player sometimes barfs with "bytes leftover on write()" warnings (bug #1594). You have to restart player, fakestate, SDSsim, and adrive when this happens.
  3. If someone else uses gazebo you may get an error like "unable to query semaphore permission denied" fo fix this (see bug #1588):
    • get root
    • # cat /proc/sysvipc/sem
    • look at the first number you see under "key"
    • # ipcrm -S <number>
    • run cat /proc/sysvipc/sem again to see that the key has been removed
  4. If you get "ImportError: No module named wxgazebo.main", you should check your PKG_CONFIG_PATH and PYTHONPATH environment variables. These should now be set by default (see bug #1653).


Using Gazebo for Stereo

Retrieved from "http://kincora.cds.caltech.edu../../../g/a/z/Gazebo_Running_Instructions_Alice_7b84.html"

This page has been accessed 617 times. This page was last modified 19:43, 19 June 2006 by Richard Murray. Based on work by Chris Wetzel and DGC Wiki user(s) Lindzey, Lars, Joseph, Astewart, Cady and Soudek.


[Main Page]
Main Page
Alice Docs
DGC07
DGC05
Categories
Recent changes
Help

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports