Skip to content

need doc on frame conventions #38

@tridge

Description

@tridge

The docs really need a section on frame conventions. Here is what I've discovered:

  • robot.position is NWU in meters
  • robot.orientation is [q1, q2, q3, w]
  • robot.linear_velocity is NWU earth frame, in m/s
  • eulers are have roll +ve right, pitch +ve down, yaw +ve counter-clockwise from above (in radians)
  • robot.angular_velocity is in earth frame (this one is really non-obvious!). Needs to be rotated by multiplying by a rotation matrix for orientation to get to body frame for gyro equivalent. angular_velocity is +ve right for roll, +ve down for pitch, +ve counter-clockwise (from above) for yaw
  • acceleration seems to not be available (always gives zero) so needs to be calculated by differentiating velocity in earth frame, adding gravity and rotating to body frame
  • when world axes are shown, red is north, green is west, blue is up

I think it would be really nice to have to_earth_frame and to_body_frame helper functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions