A change in distance along a 2D arc since the last pose update.
More...
#include <frc/geometry/Twist2d.h>
|
units::meter_t | dx = 0_m |
| Linear "dx" component. More...
|
|
units::meter_t | dy = 0_m |
| Linear "dy" component. More...
|
|
units::radian_t | dtheta = 0_rad |
| Angular "dtheta" component (radians) More...
|
|
A change in distance along a 2D arc since the last pose update.
We can use ideas from differential calculus to create new Pose2ds from a Twist2d and vice versa.
A Twist can be used to represent a difference between two poses.
◆ operator*()
constexpr Twist2d frc::Twist2d::operator* |
( |
double |
factor | ) |
const |
|
inlineconstexpr |
Scale this by a given factor.
- Parameters
-
factor | The factor by which to scale. |
- Returns
- The scaled Twist2d.
◆ operator==()
bool frc::Twist2d::operator== |
( |
const Twist2d & |
other | ) |
const |
|
inline |
Checks equality between this Twist2d and another object.
- Parameters
-
- Returns
- Whether the two objects are equal.
◆ dtheta
units::radian_t frc::Twist2d::dtheta = 0_rad |
Angular "dtheta" component (radians)
◆ dx
units::meter_t frc::Twist2d::dx = 0_m |
◆ dy
units::meter_t frc::Twist2d::dy = 0_m |
The documentation for this struct was generated from the following file: