osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
421 stars 189 forks source link

competition.launch.py of the vrx_gz package cannot find vrx_gz/models #705

Closed emusman-lab closed 1 year ago

emusman-lab commented 1 year ago

Hello when i launch the ros2 launch vrx_gz competition.launch.py world:=/home/usman/boat_ws/src/vrx/vrx_gz/worlds/gymkhana_task.sdf I get the following errors

[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] [ruby $(which ign) gazebo-1] [Err] [Server.cc:139] Error Code 13: [/sdf/world[@name="gymkhana_task"]/include[2]/uri:/home/usman/boat_ws/src/vrx/vrx_gz/worlds/gymkhana_task.sdf:L356]: Msg: Unable to find uri[platform] [ruby $(which ign) gazebo-1] [Err] [Server.cc:139] Error Code 13: [/sdf/world[@name="gymkhana_task"]/include[3]/uri:/home/usman/boat_ws/src/vrx/vrx_gz/worlds/gymkhana_task.sdf:L361]: Msg: Unable to find uri[model://short_navigation_course_0] [ruby $(which ign) gazebo-1] [Err] [Server.cc:139] Error Code 13: [/sdf/world[@name="gymkhana_task"]/include[4]/uri:/home/usman/boat_ws/src/vrx/vrx_gz/worlds/gymkhana_task.sdf:L368]: Msg: Unable to find uri[model://obstacle_course]

Please let me know why the gazebo cannot find these models here is the output of echo $GZ_SIM_RESOURCE_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/

danny-jordan commented 1 year ago

Not sure if my problem is related to yours, but I when I try to run the command from the tutorial I get this error:

ros2 launch vrx_gz competition.launch.py world:=sydney_regatta.sdf

when I try to start the sydney_regatta.sdf file manually ,without the launch file, i get the same error as emusman-lab. "Msg: Unable to find uri[coast_waves]"

[create-3] [INFO] [1689234349.036520696] [ros_gz_sim]: Requesting list of world names. [create-3] Service [/gazebo/worlds] is not valid.

emusman-lab commented 1 year ago

@danny-jordan Yes We both have same issue. I am looking into it from few days. Please if you find some solution let me know

emusman-lab commented 1 year ago

I solved it myself by installing it through docker through following these two links https://github.com/osrf/vrx/wiki/docker_install_tutorial https://github.com/osrf/vrx/wiki/installation_tutorial