public class PointTurn implements TrajectorySegment
Point turn trajectory segment.
| Constructor and Description |
|---|
PointTurn(Pose2d start,
double angle,
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. |
double |
getAngle()
angle to sweep through
|
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, velocitypublic PointTurn(@NotNull
Pose2d start,
double angle,
@NotNull
DriveConstraints constraints)
Point turn trajectory segment.
start - start poseangle - angle to sweep through (may exceed a full revolution)constraints - drive constraints@NotNull public MotionProfile getProfile()
Motion profile for the time parametrization of the turn.
public double duration()
Returns the duration of the segment.
@NotNull public Pose2d velocity(double time)
Returns the pose velocity at the given time.
time@NotNull public Pose2d acceleration(double time)
Returns the pose acceleration at the given time.
time@NotNull public Pose2d getStart()
start pose
public double getAngle()
angle to sweep through
(may exceed a full revolution)
@NotNull public DriveConstraints getConstraints()
drive constraints