Robotics StackExchange | Archived questions

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

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://velodyneVLP16/meshes/VLP16base_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://velodyneVLP16/meshes/VLP16base_1.dae] [Err] [SystemPaths.cc:429] File or path does not exist[""] [Err] [ModelDatabase.cc:414] Unable to download model[model://velodyneVLP16/meshes/VLP16base_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://velodyneVLP16/meshes/VLP16base_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 GAZEBOMODELPATH??

the files sdf and meshes are correct exemple: 1 1 1 model://velodyneVLP16/meshes/VLP16base_1.dae </geometry

thank you very much

Asked by mohamedamine on 2020-09-25 18:49:32 UTC

Comments

Answers

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

Asked by wongrufus on 2020-10-13 21:01:45 UTC

Comments