What frame_id to put in a sensor_msgs/Imu message?
I'm working with the Phidgets Spatial 9-DOF IMU, and I'm having some difficulty figuring out exactly which frame_id to stuff into the sensor_msgs/Imu message.
This particular IMU combines a 3-axis accelerometer, 3-axis gyro, and a 3-axis magnetometer. Populating the linear acceleration and angular velocity fields of the IMU msg is trivial. Orientation is calculated (by my code) using data from both the accelerometer (pitch and roll) and magnetometer (yaw).
The part I'm stuck on is that the orientation is by definition absolute, since it's based on gravity and Earth's magnetic field. But the linear acceleration and angular velocities are relative. Since I plan to feed the Imu messages to a pose estimator (e.g. robot_pose_ekf), do I populate the frame_id with a absolute, static frame or a relative one?