ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to change NED to ENU?

asked 2019-11-04 20:03:43 -0600

PapaG gravatar image

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.

new_imu_roll = old_roll;
new_imu_pitch = -old_pitch;
new_imu_yaw = pi/2 - old_yaw;

new_imu.linear_acceleration.x = x;
new_imu.linear_acceleration.y = -y;
new_imu.linear_acceleration.z = -z;

new_imu.angular_velocity.x = x;
new_imu.angular_velocity.y = -y;
new_imu.angular_velocity.z = -z;
edit retag flag offensive close merge delete


Do people just not know this?

PapaG gravatar image PapaG  ( 2019-11-05 23:28:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-06 05:54:35 -0600

pavel92 gravatar image

updated 2019-11-06 06:07:03 -0600

You will need to swap x and y and negate z for orientation, linear_acceleration and angular_velocity. You can find several answers and visualizations here for NED->ENU conversions.
Also, the following package contains code example for ENU/NED extraction.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-11-04 20:03:43 -0600

Seen: 8,641 times

Last updated: Nov 06 '19