Home | Tutorials | Wiki | Issues
Ask Your Question
1

How to delete model path

asked 2017-09-19 08:20:19 -0500

l4ncelot gravatar image

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.

edit retag flag offensive close merge delete

Comments

How are you running gazebo?

nkoenig gravatar imagenkoenig ( 2017-09-19 08:56:23 -0500 )edit

Using roslaunch gazebo_ros empty_world.launch.

l4ncelot gravatar imagel4ncelot ( 2017-09-20 00:38:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-20 16:52:50 -0500

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.

edit flag offensive delete link more

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.

l4ncelot gravatar imagel4ncelot ( 2017-09-21 00:39:49 -0500 )edit

Is there e.g. some way to reset everything to default values without reinstalling the whole simulator?

l4ncelot gravatar imagel4ncelot ( 2017-09-21 03:32:35 -0500 )edit

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

Peter Mitrano gravatar imagePeter Mitrano ( 2017-09-23 11:53:37 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-09-19 08:20:19 -0500

Seen: 1,258 times

Last updated: Sep 20 '17