1 | initial version |
Just as @Raskkii‘sanswer, we should not overwrite the default path, but still I try thoes following to get it done:
try:
whereis gazebo
then you will get one is in /usr/share/gazebo
gedit /usr/share/gazebo/setup.sh
copy those environment variable you need, such as
export GAZEBO_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gazebo-7/plugins:${GAZEBO_PLUGIN_PATH}
export GAZEBO_MODEL_PATH=/usr/share/gazebo-7/models:${GAZEBO_MODEL_PATH}
and then add some path way you want to add in ~/.bashrc, separate with : , such as
export GAZEBO_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gazebo-7/plugins:${GAZEBO_PLUGIN_PATH}:/home/ljx/gazebo_plugin_tutorial/build
export GAZEBO_MODEL_PATH=/usr/share/gazebo-7/models:${GAZEBO_MODEL_PATH}:/home/ljx/gazebo_plugin_tutorial/models