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

Display a path using markers

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

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
0

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

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

Comments

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 -0500 )edit

Question Tools

Stats

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

Seen: 171 times

Last updated: Jun 30 '13