![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
Differential motion (twist) in SE(2) space. More...
#include <Twist.hpp>
Public Member Functions | |
| Twist (Length dx, Length dy, Angle dtheta) noexcept | |
| Constructs a twist with translational and rotational components. | |
| Length | dX () const noexcept |
| Differential translation along X. | |
| Length | dY () const noexcept |
| Differential translation along Y. | |
| Angle | dTheta () const noexcept |
| Differential rotation about +Z (right-handed, CCW positive). | |
| bool | isApprox (const Twist &rhs) const noexcept |
| Approximate equality check with tight tolerance. | |
Differential motion (twist) in SE(2) space.
Twist represents an infinitesimal rigid-body motion consisting of translational displacements dX, dY (in meters) and a rotational displacement dTheta (in radians). It is typically used with the SE(2) exponential and logarithmic maps (Pose::exp, Pose::log) to integrate or extract small motions between poses.
All angular quantities are normalized to (-180, 180] degrees.
Constructs a twist with translational and rotational components.
| dx | Translational displacement along the X-axis (meters). |
| dy | Translational displacement along the Y-axis (meters). |
| dtheta | Rotational displacement (radians). |
|
noexcept |
Differential rotation about +Z (right-handed, CCW positive).
|
noexcept |
Differential translation along X.
|
noexcept |
Differential translation along Y.
|
noexcept |
Approximate equality check with tight tolerance.
Compares translational and rotational components with a tolerance of ~1e-9 m and ~1e-9 rad respectively, using Point::isApprox and Rotation::isApprox.
| rhs | Twist to compare with. |