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

How to change NED to ENU?

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

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.

//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;
edit retag flag offensive close merge delete

Comments

Do people just not know this?

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

1 Answer

Sort by ยป oldest newest most voted
0

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

pavel92 gravatar image

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

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

Stats

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

Seen: 9,636 times

Last updated: Nov 06 '19