What to use with amcl to get the robot current Velocity, geometry_msgs or nav_msg/Odometry??
Im using amcl amd gmapping for localisation. So I just want to know the robot velocity when it is zero ( or very small value) and its position ( the distance) to some reference object in the map by that zero velocity. So im not doing navigation, just localisation and analysing. So I think best way is to use geometry_msgs with twist.twist.linear.x and twist.twist.angular.z to get the linear and angular Velocity . Is that correct or I have to to nav_msgs/Odometry to get the velocity and position of the robot??? Any help¿
Duplicate of: http://answers.ros.org/question/43294/robot-position-at-velocity-zero-to-some-reference-object/