osrf / mbzirc

Simulator for the MBZIRC Maritime Grand Challenge
Apache License 2.0
72 stars 47 forks source link

Requsting List of world names #230

Open Walid-khaled opened 1 year ago

Walid-khaled commented 1 year ago

after finishing setup and running the simulation, this problem arises. photo_2022-12-08_01-03-35

iche033 commented 1 year ago

This happens when the simulator is trying to download models from our 3D models server. We observed intermittent download failures recently and have upgraded the server instance. You can try launching the simulator again.

If you still run into the same issue, can you check the the version of your libignition-fuel-tools7-dev package?

dpkg -l | grep libignition-fuel-tools7-dev

Make sure it's the latest version 7.2.0. If not, update the package:

sudo apt udpate
sudo apt install libignition-fuel-tools7-dev

After that, try launching the simulator again.

Walid-khaled commented 1 year ago

I followed the same steps, still receiving the same error

iche033 commented 1 year ago

Are you using source build or docker? What command did you run to launch simulation?

Walid-khaled commented 1 year ago

I tried both and I got the same error. The command I tried as mentioned here: https://github.com/osrf/mbzirc/wiki/Running-the-Demo

for example, source install/setup.bash ros2 launch mbzirc_ign spawn.launch.py name:=usv world:=simple_demo model:=usv type:=usv x:=15 y:=0 z:=0.3 R:=0 P:=0 Y:=0

iche033 commented 1 year ago

I'll need to see more of the console output to know what the issue is.

Can you try just launching a simple gazebo world without MBZIRC and see if the simulator is working for you? e.g.

ign gazebo -v 4 shapes.sdf

or

ign gazebo -v 4 tunnel.sdf
Walid-khaled commented 1 year ago

The console output for the first command: 1

while the second takes much time and reported the same message (Requesting List of world names) but finally worked. 2

iche033 commented 1 year ago

while the second takes much time and reported the same message (Requesting List of world names) but finally worked.

oh it could be that it's just taking a while to download the MBZIRC models. You can run the following to pre-download all the models to local cache (~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models):

ign fuel download -v 4 -j 8 --type model -u "https://fuel.ignitionrobotics.org/OpenRobotics/collections/mbzirc"

After that, try launching mbzirc simulator. It can take a while to load all the assets into simulation, up to 1 minute depending on your machine.