Ask Your Question

How to make a geometry_msgs/PoseArray and then visualise it using rviz?

asked 2019-11-08 07:40:57 -0600

Parth2851 gravatar image

updated 2019-11-08 14:33:38 -0600

jayess gravatar image

Let's say I need to run Dijkstra's algorithm to find the shortest distance between two points.

Can anyone tell me how to make a pose array and use it to store the shortest path and then visualise it?

What I've done so far

edit retag flag offensive close merge delete


If you construct a PoseArray message in your Dijkstra node and publish it, then there is a built-in Display type in rviz to visualize this data. Might I suggest you edit your question and be a bit more specific about what part of this process you are having trouble with.

jarvisschultz gravatar imagejarvisschultz ( 2019-11-08 13:12:18 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-11-08 08:07:57 -0600

The easiest way to do this is using the nav_msgs/path message already available on ROS

It consists on an array of PoseStamped with a common header..

edit flag offensive delete link more


Plus the nav_msgs/Path it has a built-in display in rviz.

jarvisschultz gravatar imagejarvisschultz ( 2019-11-08 13:07:54 -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: 2019-11-08 07:40:57 -0600

Seen: 28 times

Last updated: Nov 08