setup.sh 1.1 KB

1234567891011121314151617181920212223242526
  1. # This file is the entry point for citysim users. It should establish
  2. # all environment necessary to use citysim.
  3. GAZEBO_BIN_PATH=`which gazebo`
  4. GAZEBO_PREFIX=$(dirname $(dirname $GAZEBO_BIN_PATH))
  5. # get Gazebo configuration.
  6. if [ -f ${GAZEBO_PREFIX}/share/gazebo/setup.sh ]; then
  7. . ${GAZEBO_PREFIX}/share/gazebo/setup.sh
  8. elif [ -f /usr/share/gazebo/setup.sh ]; then
  9. . /usr/share/gazebo/setup.sh
  10. else
  11. echo "Warning: failed to find Gazebo's setup.sh. You will need to source it manually."
  12. fi
  13. # modify Gazebo configuration.
  14. # Add our top-level directory to GAZEBO_RESOURCE_PATH
  15. # Add our worlds directory to GAZEBO_RESOURCE_PATH so that *.world files can be
  16. # found without giving a full path.
  17. export GAZEBO_RESOURCE_PATH=/home/neousys/autoware.ai/src/install/citysim/share/citysim-0/:$GAZEBO_RESOURCE_PATH
  18. # add path to gazebo models from citysim_resources
  19. export GAZEBO_MODEL_PATH=/home/neousys/autoware.ai/src/install/citysim/share/citysim-0/models:$GAZEBO_MODEL_PATH
  20. # Add the directories containing our Gazebo plugins to GAZEBO_PLUGIN_PATH.
  21. export GAZEBO_PLUGIN_PATH=/home/neousys/autoware.ai/src/install/citysim/lib/citysim-0/plugins:$GAZEBO_PLUGIN_PATH