How to delete model path
Hi,
I have ROS project with some models. I export the path through package.xml
file using this export:
<gazebo_ros plugin_path="${prefix}/lib" gazebo_media_path="${prefix}"
gazebo_model_path="${prefix}/models"/>
I no longer have models in this path so I deleted this and rebuild the ROS project. However Gazebo is still looking for this path for some reason. I also tried to just source the default setup script /usr/share/gazebo-7/setup.sh
. But it doesn't work. When doing e.g. echo $GAZEBO_MODEL_PATH
it gives me only this path /usr/share/gazebo-7/models
which should be correct. But in gazebo I can still see in insert tab folders which shouldn't be there anymore.
Am I missing something?
Thank you for advice.
Asked by l4ncelot on 2017-09-19 08:20:19 UTC
Answers
check your .gazebo/gui.ini
and your /usr/share/gazebo-8/setup.sh
. Exact paths may differ but those are also capable of changing your model path.
Asked by Peter Mitrano on 2017-09-20 16:52:50 UTC
Comments
So I edited .gazebo/gui.ini file so that it contains only the model path I want. File /usr/share/gazebo-7/setup.sh is fine. But I can still see old model directories in Gazebo.
Asked by l4ncelot on 2017-09-21 00:39:49 UTC
Is there e.g. some way to reset everything to default values without reinstalling the whole simulator?
Asked by l4ncelot on 2017-09-21 03:32:35 UTC
there is for sure, I just don't remember what it is. You should check the code to see what paths it checks. There might be other files or environment variables
Asked by Peter Mitrano on 2017-09-23 11:53:37 UTC
Comments
How are you running gazebo?
Asked by nkoenig on 2017-09-19 08:56:23 UTC
Using roslaunch gazebo_ros empty_world.launch.
Asked by l4ncelot on 2017-09-20 00:38:03 UTC