I'm starting out with Gazebo (1.5) at the moment and am following a tutorial off the internet. In order to get Gazebo to find the model, the author advocates manually exporting the GAZEBO_MODEL_PATH
environment variable via
export GAZEBO_MODEL_PATH=[...]/models:$GAZEBO_MODEL_PATH
But that will only work for the current terminal. So I wanted to change the environment variable permanently.
The Gazebo User Guide claims that GAZEBO_MODEL_PATH
, along with all the other environment variables, is set by /usr/share/gazebo-1.5/setup.sh
but my (virgin) Gazebo install doesn't list it:
export GAZEBO_MASTER_URI=http://localhost:11345
export GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models
export GAZEBO_RESOURCE_PATH=/usr/share/gazebo-1.5:/usr/share/gazebo_models
export GAZEBO_PLUGIN_PATH=/usr/lib/gazebo-1.5/plugins
export LD_LIBRARY_PATH=/usr/lib/gazebo-1.5/plugins:${LD_LIBRARY_PATH}
export OGRE_RESOURCE_PATH=/usr/lib/i386-linux-gnu/OGRE-1.7.4
# This line is needed while we're relying on ROS's urdfdom library
export LD_LIBRARY_PATH=/opt/ros/fuerte/lib:${LD_LIBRARY_PATH}
But when I start Gazebo, GAZEBO_MODEL_PATH
is already set to $HOME/.gazebo/models
, so it must be set somewhere. I guess I could probably simply add GAZEBO_MODEL_PATH
to the setup.sh
script, but since it is set somewhere, I'd still like to know where and whether it is better practice to set it in there.