Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Spawning Multiple Robots in Simulation #128

Open
CBeaune opened this issue Feb 12, 2025 · 0 comments
Open

Issue Spawning Multiple Robots in Simulation #128

CBeaune opened this issue Feb 12, 2025 · 0 comments

Comments

@CBeaune
Copy link

CBeaune commented Feb 12, 2025

Hi!
Thank you for this repository, which allows us to simulate our Rosbots with the ROS jazzy branch.

We are able to spawn a single robot successfully, but when attempting to launch multiple robots using the following command:

ros2 launch rosbot_gazebo simulation.launch.py robots:='robot1={x: 0.0, y: -1.0}; robot2={x: 0.0, y: 0.0}; robot3={x: 0.0, y: -2.0};'

only robot1 spawns correctly, while the other two fail. Additionally, the error messages vary between test runs. Here are some examples of errors we encountered:

  • IMU Broadcaster Activation Failure:
[spawner-9] [ERROR] [1739376969.236040015] [robot1.spawner_imu_broadcaster]: Failed to activate controller : imu_broadcaster
Fatal error: b'[ERROR] [1739376969.236040015] [robot1.spawner_imu_broadcaster]: \x1b[91mFailed to activate controller : imu_broadcaster\x1b[0m\n'. Emitting shutdown...
  • Controller Manager Configuration Failure:
[spawner-7] [WARN] [1739376750.385733679] [spawner_joint_state_broadcaster]: Failed getting a result from calling /controller_manager/configure_controller in 10.0. (Attempt 1 of 3.)
Fatal error: b'[WARN] [1739376750.385733679] [spawner_joint_state_broadcaster]: Failed getting a result from calling /controller_manager/configure_controller in 10.0. (Attempt 1 of 3.)\n'. Emitting shutdown...

My intuition is that the Controller Manager does not properly handle multiple robot namespaces, but I am not certain if this is the root cause or how to resolve it.

Any guidance or fixes would be greatly appreciated!

Thanks in advance for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant