webots_ros2 icon indicating copy to clipboard operation
webots_ros2 copied to clipboard

webots_ros2_turtlebot simulation crashes after clicking reset button

Open aihoque2 opened this issue 8 months ago • 0 comments

Describe the Bug When running the turtlebot simulation, I can publish to "/cmd_vel" fine, but when I click the "reset" button in simulation, it crashes and I get this result:

Steps to Reproduce

  1. run ros2 launch webots_ros2_turtlebot robot_launch.py
  2. click the reset button
  3. watch the sim reset, wait a bit, and watch it suddenly shut down.
  4. see terminal for error report that looks like after clicking reset:

Expected behavior as previously mentioned, the simulation will shut down immediately. there are statements about Segmentation Fault that can be seen below. You may refer to the screenshot later as well.

[ros2_supervisor.py-2] [INFO] [1701493944.961800063] [Ros2Supervisor.Ros2Supervisor]: Ros2Supervisor is shutting down...
[webots_controller_TurtleBot3Burger-5] [INFO] [1701493944.962618550] [TurtleBot3Burger]: Controller successfully disconnected from robot in Webots simulation.
[ERROR] [ros2_supervisor.py-2]: process has died [pid 63819, exit code 1, cmd '/opt/ros/humble/lib/webots_ros2_driver/ros2_supervisor.py --ros-args -r __ns:=/Ros2Supervisor -r /Ros2Supervisor/clock:=/clock'].
[INFO] [ros2_supervisor.py-2]: process started with pid [64006]
[ros2_supervisor.py-2] The Webots simulation world is not yet ready, pending until loading is done...
[webots_controller_TurtleBot3Burger-5] [ros2run]: Segmentation fault

Affected Packages List of affected packages:

  • webots_ros2_control
  • webots_ros2_turtlebot3

Screenshots If applicable, add screenshots to help explain your problem. image

System

  • Webots Version: R2023b
  • ROS Version: Humble
  • Operating System: Ubuntu 22.04
  • Graphics Card: NVIDIA GeForce RTX 3070 Ti 8 GB

I will try to run gdb when I launch the file to track the segmentation fault.

aihoque2 avatar Dec 02 '23 00:12 aihoque2