ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Fundamentally an inertial measurement doesn't include the magnetic field. In practice the orientation of the sensor is estimated from both the magnetometer and the inertial sensors, so this message only includes a derived orientation estimate not the original magnetic field measurements.
There is the sensor_msgs/MagneticField message type but I'm not sure if all the IMU driver nodes support publishing this as well as the IMU message. This is probably what you're looking for but it isn't as commonly supported.