ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Cannot insert or see models even though gazebo_model_path is set

asked 2017-10-22 15:01:19 -0500

josiahl gravatar image

updated 2017-10-23 01:35:00 -0500

gvdhoorn gravatar image

I am having issues inserting custom models into gazebo. Here is my file structure:

  • lawnbot_ws
    • src
      • lawnbot_desription
        • models
          • grassplane
            • meshes
            • model.sdf and model.config
        • package.xml

Gazebo shows: /home/josiah/PycharmProjects/lawnbot_ws/src/lawnbot_description/models in the insert tab, however it does not show a drop down for actually inserting the grassplane model!

I also have the following line inserted in the package.xml file of the lawnbot_description package: <export> <gazebo_ros gazebo_plugin_path="${prefix}/lib" gazebo_model_path="${prefix}/models"/> </export>

I do not understand what is wrong. I am calling:

roslaunch gazebo_ros empty_world.launch extra_gazebo_args:="--verbose"

in the terminal and the gazebo_model_path shows: /home/josiah/PycharmProjects/lawnbot_ws/src/lawnbot_description/models

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-22 18:08:04 -0500

josiahl gravatar image

I found the problem. 1st, I had a typo in the xml

HOWEVER,

More annoying was that I found that the:

/home/josiah/.gazebo/gui.ini file retained my old path name:

filenames=/home/josiah/PycharmProjects/lawnbot_ws/src/lawnbot_description/meshes

which should have been:

filenames=/home/josiah/PycharmProjects/lawnbot_ws/src/lawnbot_description/models

Why did it never update the pathname? We may never know. Very frustrating, however now I am able to insert custom models into any world I choose.

edit flag offensive delete link more

Comments

1

This is really a Gazebo-specific question.

Please ask those over at answers.gazebosim.org in the future. You'll have a much higher chance of getting good answers there.

gvdhoorn gravatar imagegvdhoorn ( 2017-10-23 01:34:20 -0500 )edit

Please, you can share you package.xml and CMakeLists.txt for I learning more about this configuration?

Carlos Delfino gravatar imageCarlos Delfino ( 2018-12-17 08:24:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-10-22 15:01:19 -0500

Seen: 313 times

Last updated: Oct 22 '17