cra-ros-pkg / robot_localization

robot_localization is a package of nonlinear state estimation nodes. The package was developed by Charles River Analytics, Inc. Please ask questions on answers.ros.org.
http://www.cra.com
Other
1.3k stars 860 forks source link

Covariance reference frame #818

Closed vishwaslip closed 1 year ago

vishwaslip commented 1 year ago

I am calculating the wheeled odometry covariance for a 4 wheeled mecanum omni-directional robot in 2D. Though I have a question on what frame you what the pos covariance to be in, the odom's frame, or the base_link's frame. So in other words, say for example, my odom and base_link frame starts exactly the same as the map frame (y pointing north, x pointing east). I am facing north and go straight up. I expect my pos covariance to be larger in the y-axis, then I rotate 90 deg right, facing east (now baselink frame rotated). Now I head east, but I am still going straight ahead, not strafing. Do you expect the positional covariance to grow larger in the x-axis, or the y-axis for your calculations? If it grew larger in the x axis, then it is in the frame of odom, though if it grew larger in the y axis, then it would be in the frame of the base_link. Are my assumptions right, if then, what frame do you expect the covariance to be in? I understand I should be using the twist covariance for wheeled odometry regardless, though for a sanity check, I would like to know this as well, as the decision of frames correlates.

ayrton04 commented 1 year ago

Please ask questions on answers.ros.org.