Skip to content

Make CoordinateSystem throw exception for left-handed coordinate system #8746

@calcmogul

Description

@calcmogul

We should document that CoordinateSystem and Rotation3d assume a right-handed coordinate system and have CoordinateSystem throw an exception if the provided axes form a left-handed coordinate system instead.

CoordinateSystem assumes right-handed coordinate systems because it defines rotations with respect to the NWU coordinate system. The NEU coordinate system is left-handed, so a CoordinateSystem constructed for NEU passes a rotation matrix to Rotation3d that isn't special orthogonal. The error message for this isn't helpful, but we can have CoordinateSystem give a more specific one instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: wpimathMath librarytype: bugSomething isn't working.type: docsRelated to documentation and information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions