ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Display a path using markers

asked 2013-06-29 21:34:56 -0600

Ratan Sadan gravatar image

I am trying to display the path followed by my differential drive base using rviz. I tried doing the same by using a sphere type marker. However, it changed the position with time.

Is there any way I can display the entire path using the coordinates from a tf frame with markers?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-30 15:55:22 -0600

You just need to give a different ns for each marker. I guess you use the following code to specify a marker:

visualization_msgs::Marker marker;
marker.type = visualization_msgs::Marker::SPHERE;
marker.header.stamp = ros::Time::now();
marker.ns = "markerName"

You need to change the "markerName", e.g. "marker0","marker1","marker2"...

edit flag offensive delete link more


It's probably better to change the id instead of the namespace. There are also specific path displays in rviz.

dornhege gravatar image dornhege  ( 2013-07-01 03:07:41 -0600 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2013-06-29 21:34:56 -0600

Seen: 143 times

Last updated: Jun 30 '13