ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Ros2 Foxy: slam_toolbox doesn't publish map

asked 2021-08-10 12:30:47 -0600

Diogo_Silva gravatar image

Hi! Im following navigation2 first-time robot setup guide ( First-Time Robot Setup Guide — Navigation 2 1.0.0 documentation ). I am at the final part where i need to implement slam. Before trying to use slam_toolbox everything is working as intended. My problem comes when i try to run slam_toolbox. I run my robot with

ros2 launch sam_bot_description display.launch.py

and then the slam_toolbox with

ros2 launch slam_toolbox online_async_launch.py

I see no error messages but there is a warning on rviz that there is no transform from [map] to [base_link]. If i try to add the map to rviz im able to but i get the message that “No map received”. Also, on the shell i get error messages like the following:

" [rviz2-5] [INFO] [1628605373.739986946] [rviz2]: Message Filter dropping message: frame ‘map’ at time 0.000 for reason ‘Unknown’ "

It seems to me that the map frames (which are being published, altough very slowly) don’t have the correct timestamp but i don’t know how to fix that and get the slam toolbox to use the sim time.

The code im using is available here: https://github.com/ros-planning/navig...

Thanks in advance

edit retag flag offensive close merge delete

Comments

It seems like you are not the only one having this problem. Do you have any updates?

Jinyong gravatar image Jinyong  ( 2021-11-28 23:36:05 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-12-08 14:56:50 -0600

If https://github.com/ros-planning/navig... is reflective of your issue, you simply need to change to the proper QoS settings for the map topic.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-08-10 12:20:36 -0600

Seen: 536 times

Last updated: Dec 08 '21