Ask Your Question
2

gmapping: disable TF publishing

asked 2019-02-04 03:12:59 -0600

Myzhar gravatar image

Hi, I want to use an ukf_robot_localization to fuse the pose (map -> odom) from gmapping, AMCL and another not continuous pose source (not a GPS).

My problem is that the gmapping node broadcasts the "map -> odom" transform that should instead be broadcasted only by the UKF filter.

I searched about how to inhibit the gmapping node from broadcasting the TF, but I have not found the relative parameter.

Am I doing something wrong?

Thank you Walter

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2019-02-04 03:44:07 -0600

mgruhler gravatar image

updated 2019-02-04 05:30:59 -0600

gvdhoorn gravatar image

According to the source code, setting the transform_publish_period to 0 inhibits publishing of the transform.

edit flag offensive delete link more

Comments

Thank you @mgruhler, you are right.

I missed that line of code, I was concentrating on the publishTransform function.

Myzhar gravatar imageMyzhar ( 2019-02-04 04:02:31 -0600 )edit
2

Updated the parameter documentation on the wiki in wiki/gmapping?action=diff&rev1=127&rev2=128.

gvdhoorn gravatar imagegvdhoorn ( 2019-02-04 05:38:46 -0600 )edit

thx @gvdhoorn for the edit.

mgruhler gravatar imagemgruhler ( 2019-02-04 07:21:11 -0600 )edit

@gvdhoorn I think that publishing a pose_with_covariance message should be useful to be fused in a kalman filter with the pose published by AMCL.

Normally only one of Gmapping and AMCL should work... but if you do not have a map it is not bad to run both and fuse their results...

Myzhar gravatar imageMyzhar ( 2019-02-04 11:10:00 -0600 )edit
2

I'm not sure I understand your comment.

I'm not the author nor the maintainer of gmapping. I merely updated the wiki page to document that transform_publish_period==0 means: no transforms published.

gvdhoorn gravatar imagegvdhoorn ( 2019-02-04 11:25:09 -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

1 follower

Stats

Asked: 2019-02-04 03:12:59 -0600

Seen: 88 times

Last updated: Feb 04