Error happens after sudo apt update and upgrade.
[ros2_control_node-2] [ERROR] [1759285189.386360786] [controller_manager]: Exception of type : St13runtime_error occurred while initializing hardware 'imu': Error in state! Internal state_handle is NULL.
[ros2_control_node-2] [WARN] [1759285189.386386405] [controller_manager]: Sensor hardware component 'imu' from plugin 'rosbot_hardware_interfaces/RosbotImuSensor' failed to initialize.
Confirmed that workspace was working prior to update/upgrade. Also updated repo, error persists. Confirmed that IMU is working outside of ROS2 by running minicom -D /dev/ttyUSB0 -b 115200.
Full log:
husarion@my-ROSbotXL:~/rosbot_ws_jazzy$ ros2 launch rosbot_bringup bringup.launch.py robot_model:=rosbot_xl
[INFO] [launch]: All log files can be found below /home/husarion/.ros/log/2025-10-01-11-49-48-806105-my-ROSbotXL-138167
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [138171]
[INFO] [ros2_control_node-2]: process started with pid [138172]
[INFO] [micro_ros_agent-3]: process started with pid [138173]
[INFO] [ekf_node-4]: process started with pid [138174]
[INFO] [scan_to_scan_filter_chain-5]: process started with pid [138175]
[INFO] [joy_node-6]: process started with pid [138176]
[INFO] [teleop_node-7]: process started with pid [138177]
[micro_ros_agent-3] [1759285189.270551] info | UDPv4AgentLinux.cpp | init | running... | port: 8888
[micro_ros_agent-3] [1759285189.270734] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 4
[teleop_node-7] [INFO] [1759285189.300711617] [TeleopTwistJoy]: Teleop enable button 4.
[teleop_node-7] [INFO] [1759285189.300766175] [TeleopTwistJoy]: Turbo on button 5.
[teleop_node-7] [INFO] [1759285189.300773447] [TeleopTwistJoy]: Linear axis x on 1 at scale 0.700000.
[teleop_node-7] [INFO] [1759285189.300781999] [TeleopTwistJoy]: Turbo for linear axis x is scale 1.500000.
[teleop_node-7] [INFO] [1759285189.300787070] [TeleopTwistJoy]: Linear axis y on 0 at scale 0.700000.
[teleop_node-7] [INFO] [1759285189.300791246] [TeleopTwistJoy]: Turbo for linear axis y is scale 1.500000.
[teleop_node-7] [INFO] [1759285189.300795425] [TeleopTwistJoy]: Angular axis yaw on 3 at scale 1.000000.
[teleop_node-7] [INFO] [1759285189.300799657] [TeleopTwistJoy]: Turbo for angular axis yaw is scale 1.500000.
[scan_to_scan_filter_chain-5] [WARN] [1759285189.337086001] [rcl.logging_rosout]: Publisher already registered for node name: 'laser_filter'. If this is due to multiple nodes with the same name then all logs for the logger named 'laser_filter' will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[robot_state_publisher-1] [INFO] [1759285189.345767287] [robot_state_publisher]: Robot initialized
[ros2_control_node-2] [INFO] [1759285189.354817379] [controller_manager]: Using Steady (Monotonic) clock for triggering controller manager cycles.
[ros2_control_node-2] [INFO] [1759285189.363366182] [controller_manager]: Subscribing to '/robot_description' topic for robot description.
[ros2_control_node-2] [INFO] [1759285189.381197781] [controller_manager]: update rate is 100 Hz
[ros2_control_node-2] [INFO] [1759285189.381246872] [controller_manager]: Spawning controller_manager RT thread with scheduler priority: 50
[ros2_control_node-2] [WARN] [1759285189.381358438] [controller_manager]: Could not enable FIFO RT scheduling policy: with error number <1>(Operation not permitted). See [https://control.ros.org/master/doc/ros2_control/controller_manager/doc/userdoc.html] for details on how to enable realtime scheduling.
[ros2_control_node-2] [INFO] [1759285189.381665244] [controller_manager]: Received robot description from topic.
[ros2_control_node-2] [INFO] [1759285189.384019598] [controller_manager]: Loading hardware 'imu'
[ros2_control_node-2] [INFO] [1759285189.386286603] [controller_manager]: Loaded hardware 'imu' from plugin 'rosbot_hardware_interfaces/RosbotImuSensor'
[ros2_control_node-2] [INFO] [1759285189.386336080] [controller_manager]: Initialize hardware 'imu'
[ros2_control_node-2] [ERROR] [1759285189.386360786] [controller_manager]: Exception of type : St13runtime_error occurred while initializing hardware 'imu': Error in state! Internal state_handle is NULL.
[ros2_control_node-2] [WARN] [1759285189.386386405] [controller_manager]: Sensor hardware component 'imu' from plugin 'rosbot_hardware_interfaces/RosbotImuSensor' failed to initialize.
[ros2_control_node-2] [WARN] [1759285189.386549160] [controller_manager]: Could not load and initialize hardware. Please check previous output for more details. After you have corrected your URDF, try to publish robot description again.
[micro_ros_agent-3] [1759285189.677631] info | Root.cpp | create_client | create | client_key: 0x49CF140C, session_id: 0x81
[micro_ros_agent-3] [1759285189.677702] info | SessionManager.hpp | establish_session | session established | client_key: 0x49CF140C, address: 192.168.77.3:47138
[micro_ros_agent-3] [1759285189.679726] warning | FastDDSMiddleware.cpp | create_participant_by_bin | Overriding Micro XRCE-DDS Client DOMAIN_ID | domain_id: 0
[micro_ros_agent-3] [1759285189.700737] info | ProxyClient.cpp | create_participant | participant created | client_key: 0x49CF140C, participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.710129] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x49CF140C, topic_id: 0x000(2), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.712679] info | ProxyClient.cpp | create_subscriber | subscriber created | client_key: 0x49CF140C, subscriber_id: 0x000(4), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.715574] info | ProxyClient.cpp | create_datareader | datareader created | client_key: 0x49CF140C, datareader_id: 0x000(6), subscriber_id: 0x000(4)
[micro_ros_agent-3] [1759285189.719126] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x49CF140C, topic_id: 0x001(2), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.720463] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x49CF140C, publisher_id: 0x000(3), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.723858] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x49CF140C, datawriter_id: 0x000(5), publisher_id: 0x000(3)
[micro_ros_agent-3] [1759285189.726075] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x49CF140C, topic_id: 0x002(2), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.729036] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x49CF140C, publisher_id: 0x001(3), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.733571] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x49CF140C, datawriter_id: 0x001(5), publisher_id: 0x001(3)
[micro_ros_agent-3] [1759285189.735656] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x49CF140C, topic_id: 0x003(2), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.739113] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x49CF140C, publisher_id: 0x002(3), participant_id: 0x000(1)
[micro_ros_agent-3] [1759285189.741202] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x49CF140C, datawriter_id: 0x002(5), publisher_id: 0x002(3)
[micro_ros_agent-3] [1759285189.746435] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x49CF140C, requester_id: 0x000(7), participant_id: 0x000(1)
[scan_to_scan_filter_chain-5] [WARN] [1759285190.332634667] [laser_filter]: diagnostic_updater: No HW_ID was set. This is probably a bug. Please report it. For devices that do not have a HW_ID, set this value to 'none'. This warning only occurs once all diagnostics are OK. It is okay to wait until the device is open before calling setHardwareID.
[ros2_control_node-2] [WARN] [1759285190.362539105] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285191.362489951] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[INFO] [spawner-8]: process started with pid [138432]
[INFO] [spawner-9]: process started with pid [138433]
[INFO] [spawner-10]: process started with pid [138434]
[ros2_control_node-2] [WARN] [1759285192.362458875] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[spawner-9] [INFO] [1759285192.629365352] [spawner_imu_broadcaster]: waiting for service /controller_manager/list_controllers to become available...
[ros2_control_node-2] [WARN] [1759285193.362479857] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285194.362489287] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285195.362467901] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285196.362479766] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285197.362500587] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285198.362484523] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285199.362478830] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285200.362481839] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285201.362506735] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285202.362528969] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285203.362466311] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285204.365023510] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285205.362459903] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285206.362512310] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285207.362493208] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285208.362489390] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285209.362494716] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285210.362493145] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285211.362490913] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[ros2_control_node-2] [WARN] [1759285212.362484441] [controller_manager]: Waiting for data on 'robot_description' topic to finish initialization
[spawner-9] [FATAL] [1759285212.647340537] [spawner_imu_broadcaster]: Could not contact service /controller_manager/list_controllers
Fatal error: b'[FATAL] [1759285212.647340537] [spawner_imu_broadcaster]: Could not contact service /controller_manager/list_controllers\n'. Emitting shutdown...
[INFO] [spawner-10]: sending signal 'SIGINT' to process[spawner-10]
[INFO] [spawner-9]: sending signal 'SIGINT' to process[spawner-9]
[INFO] [spawner-8]: sending signal 'SIGINT' to process[spawner-8]
[INFO] [teleop_node-7]: sending signal 'SIGINT' to process[teleop_node-7]
[INFO] [joy_node-6]: sending signal 'SIGINT' to process[joy_node-6]
[INFO] [scan_to_scan_filter_chain-5]: sending signal 'SIGINT' to process[scan_to_scan_filter_chain-5]
[INFO] [ekf_node-4]: sending signal 'SIGINT' to process[ekf_node-4]
[INFO] [micro_ros_agent-3]: sending signal 'SIGINT' to process[micro_ros_agent-3]
[INFO] [ros2_control_node-2]: sending signal 'SIGINT' to process[ros2_control_node-2]
[INFO] [robot_state_publisher-1]: sending signal 'SIGINT' to process[robot_state_publisher-1]
[spawner-9] Traceback (most recent call last):
[spawner-9] File "/opt/ros/jazzy/lib/controller_manager/spawner", line 33, in <module>
[spawner-9] sys.exit(load_entry_point('controller-manager==4.37.0', 'console_scripts', 'spawner')())
[spawner-9] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spawner-9] File "/opt/ros/jazzy/lib/python3.12/site-packages/controller_manager/spawner.py", line 404, in main
[spawner-9] node.destroy_node()
[spawner-9] File "/opt/ros/jazzy/lib/python3.12/site-packages/rclpy/node.py", line 1965, in destroy_node
[spawner-9] self.__node.destroy_when_not_in_use()
[spawner-9] KeyboardInterrupt
[teleop_node-7] [INFO] [1759285212.667795440] [rclcpp]: signal_handler(signum=2)
[joy_node-6] [INFO] [1759285212.672144225] [rclcpp]: signal_handler(signum=2)
[scan_to_scan_filter_chain-5] [INFO] [1759285212.673638693] [rclcpp]: signal_handler(signum=2)
[ekf_node-4] [INFO] [1759285212.677923424] [rclcpp]: signal_handler(signum=2)
[spawner-8] [INFO] [1759285212.696659868] [ros2_control_controller_spawner_joint_state_broadcaster]: KeyboardInterrupt received! Exiting....
[robot_state_publisher-1] [INFO] [1759285212.703541796] [rclcpp]: signal_handler(signum=2)
[ros2_control_node-2] [INFO] [1759285212.708834840] [rclcpp]: signal_handler(signum=2)
[ros2_control_node-2] [INFO] [1759285212.709182035] [controller_manager]: Shutdown request received....
[ros2_control_node-2] [INFO] [1759285212.709413641] [controller_manager]: Shutting down all controllers in the controller manager.
[ros2_control_node-2] [INFO] [1759285212.709461186] [controller_manager]: Shutting down the controller manager.
[ERROR] [micro_ros_agent-3]: process has died [pid 138173, exit code -2, cmd '/home/husarion/rosbot_ws_jazzy2/install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent udp4 --port 8888 --ros-args -r __ns:=/ -p use_sim_time:=False -r /diagnostics:=diagnostics -r /tf:=tf -r /tf_static:=tf_static -r /tf:=tf -r /tf_static:=tf_static'].
[ros2_control_node-2] [ERROR] [1759285212.709834133] [controller_manager.pal_statistics]: Exception in publisher thread: context cannot be slept with because it's invalid!. Aborting!
[ros2_control_node-2] Failed to publish log message to rosout: publisher's context is invalid, at ./src/rcl/publisher.c:423
[ros2_control_node-2] [ERROR] [1759285212.710203384] [controller_manager.pal_statistics]: Exception in publisher thread: context cannot be slept with because it's invalid!. Aborting!
[ros2_control_node-2] Failed to publish log message to rosout: publisher's context is invalid, at ./src/rcl/publisher.c:423
[spawner-10] [INFO] [1759285212.717767928] [ros2_control_controller_spawner_rosbot_base_controller]: KeyboardInterrupt received! Exiting....
[ros2_control_node-2] [INFO] [1759285212.727316251] [controller_manager.pal_statistics]: Async messages lost 0
[ros2_control_node-2] [INFO] [1759285212.727347087] [controller_manager.pal_statistics]: publish_async_failures_ 0
[ros2_control_node-2] [INFO] [1759285212.732230901] [controller_manager.pal_statistics]: Async messages lost 0
[ros2_control_node-2] [INFO] [1759285212.732258732] [controller_manager.pal_statistics]: publish_async_failures_ 0
[ERROR] [spawner-9]: process has died [pid 138433, exit code -2, cmd '/opt/ros/jazzy/lib/controller_manager/spawner imu_broadcaster -c controller_manager --controller-manager-timeout 20 --ros-args -r __ns:=/ -p use_sim_time:=False -r /diagnostics:=diagnostics -r /tf:=tf -r /tf_static:=tf_static -r /tf:=tf -r /tf_static:=tf_static'].
[INFO] [spawner-8]: process has finished cleanly [pid 138432]
[INFO] [spawner-10]: process has finished cleanly [pid 138434]
[INFO] [teleop_node-7]: process has finished cleanly [pid 138177]
[INFO] [joy_node-6]: process has finished cleanly [pid 138176]
[INFO] [robot_state_publisher-1]: process has finished cleanly [pid 138171]
[INFO] [ros2_control_node-2]: process has finished cleanly [pid 138172]
[INFO] [ekf_node-4]: process has finished cleanly [pid 138174]
[INFO] [scan_to_scan_filter_chain-5]: process has finished cleanly [pid 138175]
husarion@my-ROSbotXL:~/rosbot_ws_jazzy$