public class PointTurn implements TrajectorySegment
Point turn trajectory segment.
Constructor and Description |
---|
PointTurn(Pose2d start,
double endHeading,
DriveConstraints constraints)
Point turn trajectory segment.
|
Modifier and Type | Method and Description |
---|---|
Pose2d |
acceleration(double time)
Returns the pose acceleration at the given time.
|
double |
duration()
Returns the duration of the segment.
|
Pose2d |
get(double time)
Returns the pose at the given time.
|
DriveConstraints |
getConstraints()
drive constraints
|
MotionProfile |
getProfile()
Motion profile for the time parametrization of the turn.
|
Pose2d |
getStart()
start pose
|
Pose2d |
velocity(double time)
Returns the pose velocity at the given time.
|
acceleration, duration, get, velocity
public PointTurn(Pose2d start, double endHeading, DriveConstraints constraints)
Point turn trajectory segment.
start
- start poseendHeading
- end headingconstraints
- drive constraintsstart
- start poseendHeading
- end headingconstraints
- drive constraintspublic MotionProfile getProfile()
Motion profile for the time parametrization of the turn.
public double duration()
Returns the duration of the segment.
public Pose2d get(double time)
Returns the pose at the given time.
public Pose2d velocity(double time)
Returns the pose velocity at the given time.
public Pose2d acceleration(double time)
Returns the pose acceleration at the given time.
public Pose2d getStart()
start pose
public DriveConstraints getConstraints()
drive constraints