Closed austin-InDro closed 2 years ago
I agree that this would be a good feature to have. We added it to some other drivers in the past; see https://github.com/KumarRobotics/imu_vn_100/commit/4441de2b15417c455e92e3e4978a5ea2ddd5b907 for instance.
I'll warn that I don't think the above math is correct for converting NED to ENU. As far as I remember (it's been a while), you need to do something like https://github.com/KumarRobotics/imu_vn_100/blob/3ada41525b83b955f3d5a229c3d1f67dc31e7200/src/imu_vn_100.cpp#L722-L724 .
Thanks for the link @clalancette, I don't believe that's needed for the Phidget_spatial library though (sorry, I forgot to specifiy which library I was talking about). There is not quaternion published, I use the imu_filter_madgwick fo that. I've found a few links mentioning that this way works for the conversion. Here is one linked, https://github.com/mavlink/mavros/issues/49
However, the link posted I believe is correct once the quaternion has been generated from the acc, gyro and mag values.
Closing this as resolved. As you stated, the phidgets spatial does not publish orientations (yet), so NED / ENU / ... doesn't apply here. Feel free to reopen if necessary!
The current IMU uses the NED frame.
I believe it would be a nice feature if the IMU could be automatically set up to be in the ENU frame by doing the following to the acceleration, gyroscope, and magnetometer data as the ROS navigation stack requires IMUs to be in the ENU Frame,.
to