public class PathTrajectorySegment implements TrajectorySegment
Trajectory segment backed by a list of class Path objects.
class Path| Modifier and Type | Class and Description |
|---|---|
static class |
PathTrajectorySegment.Companion |
| Modifier and Type | Field and Description |
|---|---|
static PathTrajectorySegment.Companion |
Companion |
| Constructor and Description |
|---|
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
MotionProfile profile)
Trajectory segment backed by a list of
class Path objects. |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
MotionState start,
MotionState goal,
double resolution) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
MotionState start,
MotionState goal) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
MotionState start) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths) |
PathTrajectorySegment() |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints,
MotionState start,
MotionState goal,
double resolution) |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints,
MotionState start,
MotionState goal) |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints,
MotionState start) |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
DriveConstraints constraints,
MotionState start,
MotionState goal) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
DriveConstraints constraints,
MotionState start) |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
DriveConstraints constraints) |
PathTrajectorySegment(DriveConstraints constraints) |
PathTrajectorySegment(Path path,
DriveConstraints constraints,
MotionState start,
MotionState goal) |
PathTrajectorySegment(Path path,
DriveConstraints constraints,
MotionState start) |
PathTrajectorySegment(Path path,
DriveConstraints constraints) |
| 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. |
java.util.List<com.acmerobotics.roadrunner.path.Path> |
getPaths()
paths
|
MotionProfile |
getProfile()
motion profile
|
Pose2d |
velocity(double time)
Returns the pose velocity at the given
time. |
acceleration, duration, get, velocitypublic static PathTrajectorySegment.Companion Companion
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
MotionProfile profile)
Trajectory segment backed by a list of class Path objects.
paths - pathsprofile - motion profileclass Path@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
@NotNull
MotionState start,
@NotNull
MotionState goal,
double resolution)
paths - pathstrajectoryConstraintsList - list of trajectory constraintsstart - profile start stategoal - profile goal (end) stateresolution - resolution for the motion profile@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
@NotNull
MotionState start,
@NotNull
MotionState goal)
paths - pathstrajectoryConstraintsList - list of trajectory constraintsstart - profile start stategoal - profile goal (end) state@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
@NotNull
MotionState start)
paths - pathstrajectoryConstraintsList - list of trajectory constraintsstart - profile start state@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList)
paths - pathstrajectoryConstraintsList - list of trajectory constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths)
paths - paths@JvmOverloads public PathTrajectorySegment()
@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
TrajectoryConstraints trajectoryConstraints,
@NotNull
MotionState start,
@NotNull
MotionState goal,
double resolution)
path - pathtrajectoryConstraints - trajectory constraintsresolution - resolution for the motion profile@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
TrajectoryConstraints trajectoryConstraints,
@NotNull
MotionState start,
@NotNull
MotionState goal)
path - pathtrajectoryConstraints - trajectory constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
TrajectoryConstraints trajectoryConstraints,
@NotNull
MotionState start)
path - pathtrajectoryConstraints - trajectory constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
TrajectoryConstraints trajectoryConstraints)
path - pathtrajectoryConstraints - trajectory constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
DriveConstraints constraints,
@NotNull
MotionState start,
@NotNull
MotionState goal)
paths - pathsconstraints - drive constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
DriveConstraints constraints,
@NotNull
MotionState start)
paths - pathsconstraints - drive constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
@NotNull
DriveConstraints constraints)
paths - pathsconstraints - drive constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
DriveConstraints constraints)
constraints - paths@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
DriveConstraints constraints,
@NotNull
MotionState start,
@NotNull
MotionState goal)
path - pathconstraints - drive constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
DriveConstraints constraints,
@NotNull
MotionState start)
path - pathconstraints - drive constraints@JvmOverloads
public PathTrajectorySegment(@NotNull
Path path,
@NotNull
DriveConstraints constraints)
path - pathconstraints - drive constraintspublic 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 java.util.List<com.acmerobotics.roadrunner.path.Path> getPaths()
paths
@NotNull public MotionProfile getProfile()
motion profile