osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
389 stars 178 forks source link

Wamv model not found #732

Closed huiyulhy closed 10 months ago

huiyulhy commented 10 months ago

Describe the bug Please say what is broken. Include whether you think this is a problem with the code or the documentation / tutorials. Running the standard competition command or command from custom WAMV to launch the simulation gives the following error on gazebo: ros2 launch vrx_gz competition.launch.py world:=sydney_regatta

Gazebo does not seem to be able to download the model of the WAMV - is there another way to download the meshes and place them into a directory?

Expected behavior WAMV mesh should be downloaded and rendered, but the download does not seem to work.

To Reproduce Ran the same steps per the instructions on installing VRX and launching the competition environment.

System Configuration: Tell us about your system.

Screenshots If applicable, add screenshots to help explain your problem. (If the problem is terminal output, it is better to cut and paste the text than to take a screenshot.)

Additional notes Add any other context about the problem here.

caguero commented 10 months ago

Hi! I can't reproduce this error. WAM-V doesn't have to be downloaded, it's generated on the fly from URDF.

Could you paste the error message that you're getting? Are you using the latest VRX version?

huiyulhy commented 10 months ago

Sorry I forgot to attach this earlier, here is a screenshot of the error and how my wamv looks like on gazebo - it seems like my computer is unable to fetch the meshes from the wamv folder and also the thruster folder. I had just recently (maybe 3 days again) cloned the main branch from VRX - is that the correct VRX version? image image

caguero commented 10 months ago

Could you share the output of this command?

env | grep GZ
huiyulhy commented 10 months ago

This is the output from my terminal for this command, thanks for helping me to troubleshoot this! image

caguero commented 10 months ago

The paths on GZ_SIM_RESOURCE_PATH look wrong. For instance, instead of: /home/lhy/vrx_ws/install/wamv_description/share/wamv_description/models you should have: /home/lhy/vrx_ws/install/share/wamv_description/models

I wonder if you ran colcon build in the vrx_ws directory. My suggestion is to clear your workspace:

rm -rf build install log

Recompile again and in a new terminal source the appropriate install/setup.bash.

huiyulhy commented 10 months ago

This works great for me now. Thanks for helping me with troubleshooting!

mvanlobensels commented 8 months ago

How can I make Gazebo search in install/wamv_description/share/wamv_description/models instead?