|
TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
|
Represents a 2D pose with translation and rotation. More...
#include <trajopt/geometry/pose2.hpp>
Public Member Functions | |
| constexpr | Pose2 ()=default |
| Constructs a pose at the origin facing toward the positive x-axis. | |
| constexpr | Pose2 (Translation2< T > translation, Rotation2< T > rotation) |
| constexpr | Pose2 (T x, T y, Rotation2< T > rotation) |
| template<typename U> | |
| constexpr | Pose2 (const Pose2< U > &other) |
| constexpr const Translation2< T > & | translation () const |
| constexpr const T & | x () const |
| constexpr const T & | y () const |
| constexpr const Rotation2< T > & | rotation () const |
| constexpr Pose2< T > | rotate_by (const Rotation2< T > &rotation) const |
Represents a 2D pose with translation and rotation.
|
inlineconstexpr |
Constructs a pose with the specified translation and rotation.
| translation | The translational component of the pose. |
| rotation | The rotational component of the pose. |
|
inlineconstexpr |
Constructs a pose with x and y translations instead of a separate translation.
| x | The x component of the translational component of the pose. |
| y | The y component of the translational component of the pose. |
| rotation | The rotational component of the pose. |
|
inlineexplicitconstexpr |
Coerces one pose type into another.
| other | The other pose type. |
|
inlineconstexpr |
Rotates the pose around the origin and returns the new pose.
| rotation | The rotation to transform the pose by. |
|
inlineconstexpr |
Returns the underlying rotation.
|
inlineconstexpr |
Returns the underlying translation.
|
inlineconstexpr |
Returns the X component of the pose's translation.
|
inlineconstexpr |
Returns the Y component of the pose's translation.