turtlebot3 cartographer keeps crashing on start [closed]
I work with a VirtualBox Ubuntu 20.04.1 Image with ros2-foxy. After following the tutorial on
I got everything working.
After a update on my Ubuntu Host Image I get consistent the same error.
1650726733.8730414 [INFO] [launch]: All log files can be found below /home/user/.ros/log/2022-04-23-17-12-13-868334-user-VirtualBox-3160 1650726733.8737032 [INFO] [launch]: Default logging verbosity is set to INFO 1650726734.0946600 [INFO] [cartographer_node-1]: process started with pid [3162] 1650726734.0951214 [INFO] [occupancy_grid_node-2]: process started with pid [3164] 1650726734.0953820 [INFO] [rviz2-3]: process started with pid [3166] 1650726737.1269212 [ERROR] [rviz2-3]: process has died [pid 3166, exit code -6, cmd '/opt/ros/foxy/lib/rviz2/rviz2 -d /opt/ros/foxy/share/turtlebot3_cartographer/rviz/tb3_cartographer.rviz --ros-args -r __node:=rviz2 -r __node:=rviz2 --params-file /tmp/launch_params_d7_tayt7']. 1650726743.3384669 [WARNING] [launch]: user interrupted with ctrl-c (SIGINT) 1650726743.3967216 [INFO] [occupancy_grid_node-2]: process has finished cleanly [pid 3164] 1650726748.3446493 [ERROR] [cartographer_node-1]: process[cartographer_node-1] failed to terminate '5' seconds after receiving 'SIGINT', escalating to 'SIGTERM' 1650726748.3464682 [INFO] [cartographer_node-1]: sending signal 'SIGTERM' to process[cartographer_node-1] 1650726748.3516808 [ERROR] [cartographer_node-1]: process has died [pid 3162, exit code -15, cmd '/opt/ros/foxy/lib/cartographer_ros/cartographer_node -configuration_directory /opt/ros/foxy/share/turtlebot3_cartographer/config -configuration_basename turtlebot3_lds_2d.lua --ros-args -r __node:=cartographer_node -r __node:=cartographer_node --params-file /tmp/launch_params_8s9p3k1a'].
I can't make sense out of this error. can anybody help me with this problem?
[Added]
The exact command I use is:
ros2 launch turtlebot3_cartographer cartographer.launch.py
If I use it without the turtlebot3 it works but shows just a blank environment. As soon as I try to start after my turtlebot3 it brought up it crashes with the mentioned error message.
What's the exact command you called? (eg.
ros2 launch ...
). I think we can help from there.my exact command is
It works if my turtlebot3 is not working. But as soon as I start it and try to launch the cartographer afterwards it fails with the mentioned error message
With the log you've provided, all that can be told is that the rviz2 node is failing, and causing the rest to fail. To get more information, we should try setting the log level of rviz2 to something higher.
Run
ros2 launch turtlebot3_cartographer cartographer.launch.py
as you did in your question, and once
ERROR rviz2-3: process has died
shows up, run rviz2 on its own with a
DEBUG
log-level by running, in a new terminal,:/opt/ros/foxy/lib/rviz2/rviz2 -d /opt/ros/foxy/share/turtlebot3_cartographer/rviz/tb3_cartographer.rviz --ros-args --log-level DEBUG
it should print out a bunch of log messsages, and in there should be useful information.
I know this is embarrassing now.... Last month I didn't have much time to tackle the problem. So I had to wait until now. I booted up my PC and updated everything normally. Now everything is working as it used to. I haven't touched my PC since my last attempt. Sorry to everyone who has the same problem. It just magically disappeared like it appeared in the beginning. Thanks for the help anyway!