How to convert from geometry_msgs PoseWithCovariance to nav_msgs Odometry?
I am using package hector_slam to do mapping using Hokuyo laser on a ugv and I would like also to use package robot pose_ekf to get better position estimate from the wheels and laser.
I tried remapping poseupdate to vo but it throws an error that they are not of the same type, poseupdate holds the xyz and covariance.
any clue how to convert the geometry msgs PoseWithCovariance to nav msgs Odometry?? Thank you
This is probably not a good idea; I think the vo input on robot_pose_ekf uses the velocity estimate portion of the odometry message, and you're trying to provide the absolution position portion of the odometry message. You may want to investigate other kalman filter packages.
But it was already done for gps sensor, where they used a conversion package (gps_common) to convert from navsat to odometry. what other packages do you propose using? thanks