Position monitoring using move_base.
Is there a way where in which the map co-ordinates (x,y locations) on the map frame can be extracted continuously along the planned path the robot follows to reach its goal position?
I.e. if the robot is moving from location A to B on the map frame (by following the planned path), does there exit any method wehre in which I could be able to get a timely feedback of the map location it is currently present at along the path it takes to reach B?
Ex: if I'm getting a feedback every two seconds and it takes twenty seconds to reach B from A, then i would have ten locatons values along the path the robot traced including the location values of A , B.
Thanks.
Afair, not in
move_base
and not out-of-the-box. But you could simply create a node that retrieves the tf frommap
tobase_link
and records it with the settings you want. You'd need to trigger somehow when to start recording and when to delete, though.Oh! Thank you @mgruhler thats sounds promissing. Could i know how I could be able to retrieve tf data through code?
@spiritninja you need to write a
tf_listener
. There are tutorials for python and C++ available.