Ask Your Question

How can I get a robot PoseWithCovarianceStamped from gmapping?

asked 2018-02-20 03:41:51 -0600

roberto3 gravatar image

I am already simulating with gazebo and trying to create a map with gmappin and I need to get the robot PoseWithCovarianceStamped from the odom and tfs, which gmapping gives. Any idea? Thanks for helping

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-20 06:36:59 -0600

mgruhler gravatar image

AFAIR, it is not possible to get something related to uncertainty from tf. So the only point I see (besides changing the source code of gmapping itself) is to subscribe to the ~entropy topic of gmapping and reason a bit about that. To quote the wiki:

~entropy (std_msgs/Float64) Estimate of the entropy of the distribution over the robot's pose (a higher value indicates greater uncertainty). New in 1.1.0.

edit flag offensive delete link more


Thanks but I need a type PoseWithCovarianceStamped so I need to get the covariance from entropy and the pose from odom but I don't know how to do it.

roberto3 gravatar image roberto3  ( 2018-02-21 04:37:45 -0600 )edit

Entropy and the Covariance Matrix are related. However, it is not possible to retrieve the covariance Matrix from the entropy, afaik. So if you really require PoseWithCovarianceStamped, you'll have to change the code, imo.

mgruhler gravatar image mgruhler  ( 2018-02-21 05:05:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-02-20 03:41:51 -0600

Seen: 144 times

Last updated: Feb 20 '18