I have ported the ergoCub navigation simulation from gazebo classic to gazebo sim and I have faced the following issues:
-
- The lidar parameters in the urdf are wrong:
max_distance must be 25.0 meters instead of 5
resolution must be 1 instead of 0.5. Otherwise only half lidar will be displayed.
-
wrappers/motorControl/all-mc_remapper.xml should be enabled by the flag enable_ros2, otherwise the ros2 simulation will not work.
-
- Camera parameters are off, as you can clearly see from these images:
The red dots are the lidar points on the ground, as you can see they are aligned with the robot feet. However the pointcloud goes underneath the ground.

For reference of the scene:
Here the camera depth seen by ros2:

I have ported the ergoCub navigation simulation from gazebo classic to gazebo sim and I have faced the following issues:
max_distancemust be 25.0 meters instead of 5resolutionmust be 1 instead of 0.5. Otherwise only half lidar will be displayed.wrappers/motorControl/all-mc_remapper.xmlshould be enabled by the flagenable_ros2, otherwise the ros2 simulation will not work.The red dots are the lidar points on the ground, as you can see they are aligned with the robot feet. However the pointcloud goes underneath the ground.

For reference of the scene:
Here the camera depth seen by ros2: