Gazebo | Ignition | Community
Ask Your Question
0

very urgent ......gazebo does not load model "dae ". problem in gazebo to read velodyne model and path

asked 2020-09-25 18:49:32 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I am a beginner in gazebo and I need your help. I try to clone a repo that works well in its creator, when I launch the roslaunch I have an error:

[Err] [ModelDatabase.cc:414] Unable to download model[model://velodyne_VLP16/meshes/VLP16_base_1.dae] [Err] [SystemPaths.cc:429] File or path does not exist[""] [Err] [Visual.cc:2905] No mesh specified [Err] [ModelDatabase.cc:414] Unable to download model[model://velodyne_VLP16/meshes/VLP16_base_1.dae] [Err] [SystemPaths.cc:429] File or path does not exist[""] [Err] [ModelDatabase.cc:414] Unable to download model[model://velodyne_VLP16/meshes/VLP16_base_2.dae] [Err] [SystemPaths.cc:429] File or path does not exist[""] [Err] [Visual.cc:2905] No mesh specified [Err] [ModelDatabase.cc:414] Unable to download model[model://velodyne_VLP16/meshes/VLP16_base_2.dae] [Err] [SystemPaths.cc:429] File or path does not exist[""]

i think i need to be moved to ~/.gazebo/models/ and i don't know how how i can use Export GAZEBO_MODEL_PATH??

the files sdf and meshes are correct exemple: <geometry> <mesh> <scale>1 1 1</scale> <uri>model://velodyne_VLP16/meshes/VLP16_base_1.dae</uri> </mesh> </geometry<>

thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-10-13 21:01:45 -0600

wongrufus gravatar image

Is the model in a ROS package? If yes, make sure you have

  <export>
    <gazebo_ros gazebo_media_path="${prefix}"/>
    <gazebo_ros gazebo_model_path="${prefix}"/>
  </export>

in the package.xml or else gazebo won't be able to find the model files. Make sure the model_path and media_path points to the directory where the model directories are found. i.e. if your directory structure is as follows

.
└── my_package/
    ├── package.xml
    ├── CMakeLists.txt
    └── some_subdirectory/
        └── models/
            └── velodyne_VLP16/
                ├── model.sdf
                ├── model.config
                └── ... other files ...

you should replace ${prefix} with ${prefix}/some_subdirectory/models

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-09-25 18:49:32 -0600

Seen: 204 times

Last updated: Oct 13 '20