SLAM toolbox: Failed to compute odom pose

Hello

I have rosbot 2r and i managed to drive it around with the husarion_ros in ros2. The problem now with slam toolbox. When i run > ros2 launch tutorial_pkg slam.launch.py as described in here > SLAM | Husarion i get the following error:

  • [async_slam_toolbox_node-1] [WARN] [1764442417.414729551] [slam_toolbox]: Failed to compute odom pose

This is occurred since i get data from the Liar and these are being published on /scan topic. But the /map topic stay empty.

With ros2 run tf2_tools view_frames I can see the odom frame

Could someone help, why this happens? The slam parameter are the same as in the tutorial. I just added the following

  • odom_topic: /odometry/filtered
  • map_frame:
  • map mode: mapping

Thank you

Best regards

Zain

Hello @zain,
These topics might be suitable for you:

@zain @RafalGorecki Where you able to fix this issue? I am currently experiencing same problem. I have visited the links shared but not one of them addresses this issue. executing the slam_toolbox using the launch file from the SLAM tutorial does not does not work for me.

My current issue is that , Slam_toolbox is not able to generate the map, with a similar error message:

user@user:~/projects/ros/ros2_ws$ ros2 launch slam_toolbox online_async_launch.py params_file:=./src/tutorial_pkg/config/slam.yaml use_sim_time:=false [INFO] [launch]: All log files can be found below /home/user/.ros/log/2026-02-06-17-47-06-242154-lnznb021-225185 [INFO] [launch]: Default logging verbosity is set to INFO 2026-02-06 17:47:06.389 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port7002: open_and_lock_file failed → Function open_port_internal [INFO] [async_slam_toolbox_node-1]: process started with pid [225207] [async_slam_toolbox_node-1] 2026-02-06 17:47:06.589 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port7002: open_and_lock_file failed → Function open_port_internal [async_slam_toolbox_node-1] [INFO] [1770396426.612741633] [slam_toolbox]: Node using stack size 40000000 [async_slam_toolbox_node-1] [INFO] [1770396426.791005027] [slam_toolbox]: Configuring [async_slam_toolbox_node-1] [INFO] [1770396426.853508142] [slam_toolbox]: Using solver plugin solver_plugins::CeresSolver [async_slam_toolbox_node-1] [INFO] [1770396426.856624858] [slam_toolbox]: CeresSolver: Using SCHUR_JACOBI preconditioner. [INFO] [launch.user]: [LifecycleLaunch] Slamtoolbox node is activating. [async_slam_toolbox_node-1] [INFO] [1770396426.913496319] [slam_toolbox]: Activating [async_slam_toolbox_node-1] [INFO] [1770396427.056927045] [slam_toolbox]: Message Filter dropping message: frame ‘laser’ at time 1770396426.853 for reason ‘discarding message because the queue is full’ [async_slam_toolbox_node-1] [WARN] [1770396427.057196107] [slam_toolbox]: Failed to compute odom pose [async_slam_toolbox_node-1] [WARN] [1770396427.156269873] [slam_toolbox]: Failed to compute odom pose [async_slam_toolbox_node-1] [WARN] [1770396427.256859083] [slam_toolbox]: Failed to compute odom pose [async_slam_toolbox_node-1] [WARN] [1770396427.358232595] [slam_toolbox]: Failed to compute odom pose [async_slam_toolbox_node-1] [WARN] [1770396427.476848968] [slam_toolbox]: Failed to compute odom pose [async_slam_toolbox_node-1] [WARN] [1770396427.556736497]

I see one error in the published commands. You don’t set up configuration correctly. I suspect there’s also a problem with the node name.

  1. You’re using the params_file file, while the launch file you’re running expects the slam_params_file argument.

  2. The node name in the yaml file must be identical to the name of the node being launched. The official node name is slam_toolbox, while the tutorial node is called slam. Therefore, the first line of the yaml file needs to be changed to slam_toolbox.