Package edu.wpi.first.math.geometry
Class Twist3d
java.lang.Object
edu.wpi.first.math.geometry.Twist3d
- All Implemented Interfaces:
ProtobufSerializable
,StructSerializable
,WPISerializable
A change in distance along a 3D arc since the last pose update. We can use ideas from
differential calculus to create new Pose3d objects from a Twist3d and vice versa.
A Twist can be used to represent a difference between two poses.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Linear "dx" component.double
Linear "dy" component.double
Linear "dz" component.static final Twist3dProto
Twist3d protobuf for serialization.double
Rotation vector x component (radians).double
Rotation vector y component (radians).double
Rotation vector z component (radians).static final Twist3dStruct
Twist3d struct for serialization. -
Constructor Summary
-
Method Summary
-
Field Details
-
dx
Linear "dx" component. -
dy
Linear "dy" component. -
dz
Linear "dz" component. -
rx
Rotation vector x component (radians). -
ry
Rotation vector y component (radians). -
rz
Rotation vector z component (radians). -
proto
Twist3d protobuf for serialization. -
struct
Twist3d struct for serialization.
-
-
Constructor Details
-
Twist3d
public Twist3d()Default constructor. -
Twist3d
Constructs a Twist3d with the given values.- Parameters:
dx
- Change in x direction relative to robot.dy
- Change in y direction relative to robot.dz
- Change in z direction relative to robot.rx
- Rotation vector x component.ry
- Rotation vector y component.rz
- Rotation vector z component.
-
-
Method Details