iRobotEducation / create3_sim

ROS 2 Simulation for the iRobot® Create® 3 Educational Robot
BSD 3-Clause "New" or "Revised" License
105 stars 55 forks source link

SEGFAULT when adding a second Create3 Robot #208

Closed Gior26 closed 1 year ago

Gior26 commented 1 year ago

Describe the bug Using the roni-kreinin/multi_robot fork from the pull request #207 the gazebo server encounters a SEGFAULT error whenever I try to add a second Create3 unit.

To Reproduce Steps to reproduce the behavior:

  1. ros2 launch irobot_create_ignition_bringup ignition.launch.py
  2. ros2 launch irobot_create_ignition_bringup create3_spawn.launch.py namespace:=robot1
  3. ros2 launch irobot_create_ignition_bringup create3_spawn.launch.py namespace:=robot2 x:=3.0
  4. SEGFAULT on Gazebo server

Expected behavior A second Create3 unit should spawn inside the simulation.

Additional context

The first unit works correctly with the /robot1 namespace

gazebo-log.txt robot1-log.txt robot2-log.txt gdb-stack.txt

roni-kreinin commented 1 year ago

@Gior26 You probably need to update your ign_ros2_control package. Version 0.4.4 fixes this issue.

Gior26 commented 1 year ago

Thanks, I've missed that dependency now everything works correctly. I'm closing the issue.