osrf / mbzirc

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

Remove ROS_LOCALHOST_ONY env var in docker compose file #227

Closed iche033 closed 2 years ago

iche033 commented 2 years ago

Signed-off-by: Ian Chen ichen@osrfoundation.org

This is causing ROS issues when many robots are being spawned into simulation.

The changes does not affect cloud simulation / final evaluation. This is only for testing locally using docker compose.

More info:

When this var is set, cyclonedds adds LOCALHOST as a peer and uses the default max auto participants value which is 9. This limits the number of ROS nodes that can be launched. We can resolve this issue by setting the MaxAutoParticipantsIndex field using a cyclonedds configuration file or simply just remove this var.