A helper class that converts Pose3d objects between different standard coordinate frames.
More...
#include <frc/geometry/CoordinateSystem.h>
A helper class that converts Pose3d objects between different standard coordinate frames.
◆ CoordinateSystem()
Constructs a coordinate system with the given cardinal directions for each axis.
- Parameters
-
positiveX | The cardinal direction of the positive x-axis. |
positiveY | The cardinal direction of the positive y-axis. |
positiveZ | The cardinal direction of the positive z-axis. |
- Throws:
- std::domain_error if the coordinate system isn't special orthogonal
◆ Convert() [1/4]
Converts the given pose from one coordinate system to another.
- Parameters
-
pose | The pose to convert. |
from | The coordinate system the pose starts in. |
to | The coordinate system to which to convert. |
- Returns
- The given pose in the desired coordinate system.
◆ Convert() [2/4]
Converts the given rotation from one coordinate system to another.
- Parameters
-
rotation | The rotation to convert. |
from | The coordinate system the rotation starts in. |
to | The coordinate system to which to convert. |
- Returns
- The given rotation in the desired coordinate system.
◆ Convert() [3/4]
Converts the given transform from one coordinate system to another.
- Parameters
-
transform | The transform to convert. |
from | The coordinate system the transform starts in. |
to | The coordinate system to which to convert. |
- Returns
- The given transform in the desired coordinate system.
◆ Convert() [4/4]
Converts the given translation from one coordinate system to another.
- Parameters
-
translation | The translation to convert. |
from | The coordinate system the translation starts in. |
to | The coordinate system to which to convert. |
- Returns
- The given translation in the desired coordinate system.
◆ EDN()
Returns an instance of the East-Down-North (EDN) coordinate system.
The +X axis is east, the +Y axis is down, and the +Z axis is north.
◆ NED()
Returns an instance of the NED coordinate system.
The +X axis is north, the +Y axis is east, and the +Z axis is down.
◆ NWU()
Returns an instance of the North-West-Up (NWU) coordinate system.
The +X axis is north, the +Y axis is west, and the +Z axis is up.
The documentation for this class was generated from the following file: