Package edu.wpi.first.math.geometry
Class Twist3d
java.lang.Object
edu.wpi.first.math.geometry.Twist3d
- All Implemented Interfaces:
ProtobufSerializable
,StructSerializable
,WPISerializable
public class Twist3d extends Object implements ProtobufSerializable, StructSerializable
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
Fields Modifier and Type Field Description double
dx
Linear "dx" component.double
dy
Linear "dy" component.double
dz
Linear "dz" component.static Twist3dProto
proto
Twist3d protobuf for serialization.double
rx
Rotation vector x component (radians).double
ry
Rotation vector y component (radians).double
rz
Rotation vector z component (radians).static Twist3dStruct
struct
Twist3d struct for serialization. -
Constructor Summary
-
Method Summary
-
Field Details
-
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