CentraleNantesROV / bluerov2

BlueROV2 for ROS2 + ignition
Apache License 2.0
13 stars 5 forks source link

launch upload_bluerov2_launch.py error #5

Open dregner opened 3 months ago

dregner commented 3 months ago

I installed all dependencies, and the world launch opened without any problems, but when I ran the upload bluerov2 launch it resulted in the following error

$ ros2 launch bluerov2_description upload_bluerov2_launch.py sliders:=true
[INFO] [launch]: All log files can be found below /home/daniel/.ros/log/2024-07-04-11-41-29-725035-V3D-03-256110
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): list index out of range

Really do not understand what is out of range..

oKermorgant commented 3 months ago

Hi,

What ROS distro are you using?

Your error seems to be the same as https://github.com/CentraleNantesROV/bluerov2/issues/4 but I cannot reproduce it. It probably comes from simple_launch that is failing to guess between Ignition (e.g. fortress) and Gazebo (garden+).

Can you try to write export GZ_VERSION=(your gazebo / ignition version) in .bashrc to help the launch system

oKermorgant commented 3 months ago

Got it and solved in the last commit of simple_launch (1.10.1). This was a matter of gz not being here at all, on my machine I have several versions and did not see that having only ignition-fortress raised an error (while having fortress and garden or harmonic was fine).

You can use the source version of simple_launch while it is not released.

Thanks for the issue, this Ignition / Gazebo thing will only disappear with the end of Humble so it was worth solving.

dregner commented 2 months ago

Thank you @oKermorgant, I will check this week to see if all works fine.