ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Path Planning/Rviz/nav stack

asked 2018-01-09 21:58:32 -0500

therobot1 gravatar image


I am running turtlebot on indigo (on ubuntu trusty) and wish to visually represent the robot's navigation path using a ring of LEDs. I have not been able to find the line(s) of code that represent the robot's planned path. Ideally I would like to reference this code to light the LEDs in a way that corresponds to the robots preferred heading. Does anyone know where in the nav stack or rviz this code is hiding?

Thank you for any help!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-10 05:12:51 -0500

The navstack publishes a path topic I believe, that will show the route it's currently following. If you subscribe to this topic then find the closest point on the path to the robots current location then you'll have a vector pointing in the direction of the next segments of the path.

I don't know if there's a simpler way, but this will definitely work.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-01-09 21:58:32 -0500

Seen: 166 times

Last updated: Jan 10 '18