ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to publish roll/pitch data in Gmapping ?

asked 2014-03-10 07:35:12 -0600

Yuichi Chu gravatar image

updated 2014-03-10 23:39:43 -0600

How to publish the roll/pitch data in gmapping ?Thank you for your advices.

edit retag flag offensive close merge delete


Do you want gmapping to use pitch/roll or do you want to get pitch/roll estimates out of gmapping. In either case: gmapping is set up to be a 2D algorithm.

dornhege gravatar image dornhege  ( 2014-03-10 23:48:30 -0600 )edit

I use gmapping to create 2D map.But the ground is not flat.So I think maybe I need to publish roll and pitch and I want gmapping to use the data.I am confused about whether I should use a node to publish roll/pitch in some format like message or I only need to add pitch/roll to TF frames.

Yuichi Chu gravatar image Yuichi Chu  ( 2014-03-11 01:50:41 -0600 )edit

In other word, how can I let the gmapping know that there is roll/pitch data to use?Thank dornhege for your attention.Would you give me some advices?

Yuichi Chu gravatar image Yuichi Chu  ( 2014-03-11 01:54:00 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-03-11 03:14:40 -0600

dornhege gravatar image

gmapping itself can't make use of roll/pitch for pose estimation. What you can do however as a minimum is encode this information implicitly in the tf that you provide for odom->laser. Gmapping will transform laser messages to the odom frame.

edit flag offensive delete link more


Your answer helps a lot. I will have a try.Thank you very much!

Yuichi Chu gravatar image Yuichi Chu  ( 2014-03-11 04:34:26 -0600 )edit

Question Tools

1 follower


Asked: 2014-03-10 07:35:12 -0600

Seen: 181 times

Last updated: Mar 11 '14