How to obtain intermediate points from line strip marker in rviz?

asked 2018-11-09 08:46:51 -0600

Ivan_Sanchez gravatar image

Hi all!

This is a brief video about what I have:

My result

As it can be seen, I highlight the resulting path between two points and I show a marker in each edge of the segments of the path. My question is if can I obtain the intermediate points of each line in order to create a marker in that points to simulate a continuous movement and not like jumps from one edge to other that is what I have now? I am using kinetic version and Python.

King regards and thank you so much for your help!!

edit retag flag offensive close merge delete

Comments

1

You should be able to use linear interpolation to find the points along the line pretty easily. You could use three calls to numpy.interp to work out the positions in X, Y andZ respectively.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-09 08:58:42 -0600 )edit