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

should IMU frame follow the red-East, green-North and blue-Up convention?

asked 2020-11-06 20:32:36 -0600

mugetsu gravatar image

updated 2020-11-06 20:33:08 -0600

Assuming an IMU without abs yaw. The starting pose of the robot is always at 0 yaw. Isn't ENU frame where: -Green axis points front(North) of vehicle -Red axis points right(East) of vehicle -Blue axis points up

I'm slightly confused since I see in the Jackal simulator that the imu_link frame is the same as base_link(red-x, green-y,blue-z):

image description

Here red points north, and green points west. Am I just misunderstanding something? Can someone clear this up for me? I know the jackal should be using a ENU imu as well.

In my simulation I use hector_gazebo_plugin imu. Do I need to apply a transform(rpy) relative to baselink to indicate that the IMU is ENU?

  <joint name="IMU_FIXED" type="fixed">
    <origin xyz="0.27876 -0.0014334 0.080087" rpy="0 3.1416 -1.5708" />
    <parent link="base_link" />
    <child link="imu_link" />
  </joint>
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
4

answered 2020-11-09 07:06:29 -0600

updated 2020-11-09 07:14:16 -0600

-Green axis points front(North) of vehicle -Red axis points right(East) of vehicle -Blue axis points up

No, "North" and "East" really mean "North" and "East" relative to the earth, not "front of vehicle" and "right of vehicle". The ENU convention means the following: If the device reports a neutral orientation (roll / pitch / yaw are all 0 in the sensor_msgs/Imu message), then the x axis (red) points East (relative to the earth), y (green) points North, and z points Up.

Edited to add: I just saw that you wrote that your IMU doesn't have absolute yaw. In that case, the x and y axis can point more or less into an arbitrary direction with respect to the earth (since the "zero yaw" position is also arbitrary with respect to the earth). To conform to the ENU convention, all that matters is that z points up. And of course the other fields in the sensor_msgs/Imu message are specified wrt. the coordinate axes; so x must point into the direction where linear_acceleration.x is positive and so on.

In any case, the ENU convention says nothing about how the IMU must be mounted on the vehicle.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-06 20:32:36 -0600

Seen: 401 times

Last updated: Nov 09 '20