Robotics StackExchange | Archived questions

Gazebo garden cannot find custom models included in the package when called from a world sdf file

Hello when i launch the

ros2 launch vrxgz competition.launch.py world:=/home/usman/boatws/src/vrx/vrxgz/worlds/gymkhanatask.sdf

from this repo for the marine simulation https://github.com/osrf/vrx. The models that are inside the vrx_gz package cannot be recognized. However if i launch the “gz sim” i can spawn the models in the simulation.

Here are the error that i am getting

**[ruby $(which ign) gazebo-1] [Err] [Server.cc:139] Error Code 13: [/sdf/world[@name=“gymkhana_task”]/include[1]/uri:/home/usman/boat_ws/src/vrx/vrx_gz/worlds/gymkhana_task.sdf:L351]: Msg: Unable to find uri[coast_waves]**

similar error comes for all models that are inside this folder.

Please let me know why the gazebo cannot find these models

here is the output of

echo $GZSIMRESOURCE_PATH

/home/usman/boat_ws/install/wamv_description/share/wamv_description/models:/home/usman/boat_ws/install/vrx_gz/share/vrx_gz/models/tmp:/home/usman/boat_ws/install/vrx_gz/share/vrx_gz/models:/home/usman/boat_ws/install/vrx_gz/share/vrx_gz/worlds/2023_practice:/home/usman/boat_ws/install/vrx_gz/share/vrx_gz/worlds:/home/usman/boat_ws/install/vrx_gazebo/share/vrx_gazebo/models:/home/usman/boat_ws/install/vrx_gazebo/share/

here is the version of gazebo that i am using on Ubuntu 22.04 with ROS humble. Ignition Gazebo, version 6.11.0 Copyright (C) 2018 Open Source Robotics Foundation. Released under the Apache 2.0 License. I have attached folder tree of vrx_gz as well image description

Asked by Muhammad_Usman on 2023-07-14 08:41:49 UTC

Comments

What are the errors you're getting? Seems to be missing from the question.

Asked by azeey on 2023-07-14 10:02:24 UTC

azeey thank you for your response. Due to some reason they were not shown but now i fix it you can see the errors in bold in the original question now. Similar error comes for any model that is included in the vrx_gz/models directory.

Asked by Muhammad_Usman on 2023-07-14 10:51:38 UTC

Answers