public class Twist2d
extends Object
A change in distance along arc since the last pose update. We can use ideas from differential
calculus to create new Pose2ds from a Twist2d and vise versa.
A Twist can be used to represent a difference between two poses.
Field Summary
Fields
Modifier and Type
Field
Description
double
dtheta
Angular "dtheta" component (radians).
double
dx
Linear "dx" component.
double
dy
Linear "dy" component.
Constructor Summary
Constructors
Constructor
Description
Twist2d ()
Twist2d (double dx,
double dy,
double dtheta)
Constructs a Twist2d with the given values.
Method Summary
All Methods Instance Methods Concrete Methods
Field Details
Angular "dtheta" component (radians).
Constructor Details
public Twist2d (
double dx,
double dy,
double dtheta)
Constructs a Twist2d with the given values.
Parameters:
dx
- Change in x direction relative to robot.
dy
- Change in y direction relative to robot.
dtheta
- Change in angle relative to robot.
Method Details
Checks equality between this Twist2d and another object.
Overrides:
equals
in class Object
Parameters:
obj
- The other object.
Returns:
Whether the two objects are equal or not.