I'm getting error while trying bringup turtlebot3 ros2 Foxy
here's the error code:
ubuntu@ubuntu:~$ ros2 launch turtlebot3_bringup robot.launch.py --debug
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.IncludeLaunchDescription'
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2023-04-27-09-11-44-383438-ubuntu-2982
[INFO] [launch]: Default logging verbosity is set to DEBUG
[DEBUG] [launch]: processing event: '<launch.events.includelaunchdescription.IncludeLaunchDescription object at 0xffffb4487df0>'
[DEBUG] [launch]: processing event: '<launch.events.includelaunchdescription.IncludeLaunchDescription object at 0xffffb4487df0>' ✓ '<launch.eventhandlers.onincludelaunchdescription.OnIncludeLaunchDescription object at 0xffffb4487880>'
urdffilename : turtlebot3burger.urdf
/opt/ros/foxy/share/hlslfcdldsdriver/launch/hldslaser.launch.py:46: UserWarning: The parameter 'nodeexecutable' is deprecated, use 'executable' instead
Node(
/opt/ros/foxy/share/hlslfcdldsdriver/launch/hldslaser.launch.py:46: UserWarning: The parameter 'nodename' is deprecated, use 'name' instead
Node(
Executing result=None created at /opt/ros/foxy/lib/python3.8/site-packages/launch/launchservice.py:365> took 0.386 seconds
[INFO] [robotstatepublisher-1]: process started with pid [2984]
[DEBUG] [launch.launchcontext]: emitting event: 'launch.events.process.ProcessStarted'
[INFO] [hldslaserpublisher-2]: process started with pid [2986]
[DEBUG] [launch.launchcontext]: emitting event: 'launch.events.process.ProcessStarted'
[INFO] [turtlebot3_ros-3]: process started with pid [2988]
[DEBUG] [launch.launchcontext]: emitting event: 'launch.events.process.ProcessStarted'
[DEBUG] [launch]: processing event: ''
[DEBUG] [launch]: processing event: ''
[DEBUG] [launch]: processing event: ''
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb4cebcd0>'
[DEBUG] [launch]: processing event: '' ✓ ''
[robotstatepublisher-1] Parsing robot urdf xml string.
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb36f3e50>'
[DEBUG] [launch]: processing event: '' ✓ ''
[robotstatepublisher-1] Link baselink had 5 children
[robotstatepublisher-1] Link casterbacklink had 0 children
[robotstatepublisher-1] Link imulink had 0 children
[robotstatepublisher-1] Link basescan had 0 children
[robotstatepublisher-1] Link wheelleftlink had 0 children
[robotstatepublisher-1] Link wheelrightlink had 0 children
[robotstatepublisher-1] [INFO] [1682586704.918374777] [robotstatepublisher]: got segment basefootprint
[robotstatepublisher-1] [INFO] [1682586704.918786065] [robotstatepublisher]: got segment baselink
[robotstatepublisher-1] [INFO] [1682586704.918873267] [robotstatepublisher]: got segment basescan
[robotstatepublisher-1] [INFO] [1682586704.918909914] [robotstatepublisher]: got segment casterbacklink
[robotstatepublisher-1] [INFO] [1682586704.918941895] [robotstatepublisher]: got segment imulink
[robotstatepublisher-1] [INFO] [1682586704.918971246] [robotstatepublisher]: got segment wheelleftlink
[robotstatepublisher-1] [INFO] [1682586704.919001116] [robotstatepublisher]: got segment wheelrightlink
[DEBUG] [launch.launch_context]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch.launch_context]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb4cebd30>'
[DEBUG] [launch]: processing event: '' ✓ ''
[hldslaserpublisher-2] [INFO] [1682586704.919717379] [hldslaserpublisher]: Init hldslaserpublisher Node Main
[hldslaserpublisher-2] [INFO] [1682586704.920236775] [hldslaserpublisher]: port : /dev/ttyUSB0 frameid : basescan
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb36f36d0>'
[DEBUG] [launch]: processing event: '' ✓ ''
[turtlebot3ros-3] [INFO] [1682586704.933794733] [turtlebot3node]: Init TurtleBot3 Node Main
[turtlebot3ros-3] [INFO] [1682586704.935855023] [turtlebot3node]: Init DynamixelSDKWrapper
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb4cebcd0>'
[DEBUG] [launch]: processing event: '' ✓ ''
[turtlebot3ros-3] [INFO] [1682586704.939193897] [DynamixelSDKWrapper]: Succeeded to open the port(/dev/ttyACM0)!
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb36f3e50>'
[DEBUG] [launch]: processing event: '' ✓ ''
[turtlebot3ros-3] [INFO] [1682586704.944922241] [DynamixelSDKWrapper]: Succeeded to change the baudrate!
[DEBUG] [launch.launch_context]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb4cebcd0>'
[DEBUG] [launch]: processing event: '' ✓ ''
[turtlebot3ros-3] [ERROR] [1682586704.979239615] [turtlebot3node]: Failed connection with Devices
[DEBUG] [launch.launchcontext]: emitting event synchronously: 'launch.events.process.ProcessStderr'
[DEBUG] [launch]: processing event: '<launch.events.process.processstderr.ProcessStderr object at 0xffffb375ca00>'
[DEBUG] [launch]: processing event: '' ✓ ''
[turtlebot3ros-3] [INFO] [1682586704.981602140] [turtlebot3node]: Add Motors
[turtlebot3ros-3] [INFO] [1682586704.982025891] [turtlebot3node]: Add Wheels
[turtlebot3ros-3] [INFO] [1682586704.982256552] [turtlebot3node]: Add Sensors
[turtlebot3ros-3] terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
[turtlebot3ros-3] what(): could not create publisher: rcl node's context is invalid, at /tmp/binarydeb/ros-foxy-rcl-1.1.11/src/rcl/node.c:441
[ERROR] [turtlebot3ros-3]: process has died [pid 2988, exit code -6, cmd '/home/ubuntu/turtlebot3ws/install/turtlebot3node/lib/turtlebot3node/turtlebot3ros -i /dev/ttyACM0 --ros-args --params-file /home/ubuntu/turtlebot3ws/install/turtlebot3bringup/share/turtlebot3bringup/param/burger.yaml'].
[DEBUG] [launch.launchcontext]: emitting event: 'launch.events.process.ProcessExited'
[DEBUG] [launch]: processing event: '<launch.events.process.processexited.ProcessExited object at 0xffffb4cebcd0>'
[DEBUG] [launch]: processing event: '' ✓ ''
[DEBUG] [launch]: processing event: '' ✓ ''
Asked by Nomercy on 2023-04-27 04:23:02 UTC
Comments