Ros2 amcl turtlebot dropping frame base_scan in namespace

asked 2023-04-06 08:54:59 -0600

tluijken gravatar image

Hello!

Just a heads up, im pretty much a beginner in ROS so apologies if my question is really stupid/easy

im running ROS2 Foxy with turtlebot3 burger models

Im trying to get several real life turtlebots to run in the same network and the same map.

ive been successful at running slam and navigation on one robot in the real world using this tutorial:

https://emanual.robotis.com/docs/en/p...

i've also been able to run the robot side in a namespace using this tutorial

https://discourse.ros.org/t/giving-a-...

My current problem lies with changing the navigation2.launch.py file to also run in the same namespace.

ive added namespaced to all nodes

rqt graph

as you can see, all nodes do fall under the namespace, (the scan topic cropped at the top is only because rviz is subbed to that).

so it appears that all should be well, but amcl is continuasly throwing an error

[amcl-2] [INFO] [1680786763.132288925] [turt2.amcl_rclcpp_node]: Message Filter dropping message: frame 'base_scan' at time 1680786762.060 for reason 'Unknown'

this does not happen when its run without a namespace,

does anyone know what i need to change (tf prefixes somewhere maybe) to have this work?

the only thing that i have changed to turtlebot3_navigation2.launch.py is adding namespaces to nodes and to the topics in the yaml files within them, i run the launch file as

ros2 launch turtlebot3_navigation2 navigation2.launch.py map:=$HOME/map.yaml namespace:=turt2 use_namespace:=true

i hope someone can help! thanks in advance!

edit retag flag offensive close merge delete