How to get /PoseWithCovarianceStamped from /odom
Hi,
I was wondering how is it possible to feed amcl package with /geometry_msgs/PoseWithCovarianceStamped
, since the most odometry packages publishes nav_msgs/Odometry
. Is there any way or code to get /geometry_msgs/PoseWithCovarianceStamped
from nav_msgs/Odometry
?
Thanks a lot! Cheers,
André Castro.
Asked by Andreluizfc on 2018-03-01 20:49:11 UTC
Comments
I don't see an input topic on the AMCL wiki page that would want a continuous stream of new input from odometry. Why do you want to do this?
Asked by ahendrix on 2018-03-01 22:40:28 UTC
I guess he thought that amcl reads the position from nav_msgs/Odometry while it uses tf.
Asked by Humpelstilzchen on 2018-03-02 05:55:45 UTC
Ok. What I've seen on AMCL, it needs an initialpose input, with type as
geometry_msgs/PoseWithCovarianceStamped
. It's just to start, right? I was wondering if I can get that initial pose from odometry. If not, how to set up this pose?Asked by Andreluizfc on 2018-03-02 10:00:17 UTC