How to change NED to ENU?
Hi everyone,
I have got a NED imu I am trying to use with r_l
(which follows ros standards enu
). I was wondering what it would look like to convert this IMU data to ENU? I know its a pi roll and a pi/2 yaw but what does this look like in code? Here is my attempt.
//Orientation
new_imu_roll = old_roll;
new_imu_pitch = -old_pitch;
new_imu_yaw = pi/2 - old_yaw;
//accel
new_imu.linear_acceleration.x = x;
new_imu.linear_acceleration.y = -y;
new_imu.linear_acceleration.z = -z;
//ang_vel
new_imu.angular_velocity.x = x;
new_imu.angular_velocity.y = -y;
new_imu.angular_velocity.z = -z;
Do people just not know this?