Converting MagneticField message to heading in ros

asked 2018-06-04 13:09:18 -0600

argos gravatar image

Hi All,

I am looking for any suggestions on converting the magnetic field message in ros to get the robot heading to be used in the navigation function.

if there are predefined libraries in c++ and ros that does it, it would be great.

Thanks.

edit retag flag offensive close merge delete

Comments

Do you have any information of the orientation of the sensor, the gravity vector? Or can you assume your robot is always level?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-06-04 18:30:21 -0600 )edit

For me, I'd like to know how to do this assuming the robot is level.

Void gravatar image Void  ( 2021-03-23 16:09:19 -0600 )edit