public class PathTrajectorySegment implements TrajectorySegment
Trajectory segment backed by a list of class Path objects.
class Path| Constructor and Description |
|---|
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
int resolution)
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)
Trajectory segment backed by a list of
class Path objects. |
PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths)
Trajectory segment backed by a list of
class Path objects. |
PathTrajectorySegment()
Trajectory segment backed by a list of
class Path objects. |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints,
int resolution) |
PathTrajectorySegment(Path path,
TrajectoryConstraints trajectoryConstraints) |
| 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 used for time parametrization of the paths.
|
java.util.List<com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> |
getTrajectoryConstraintsList()
motion constraints for each respective path
|
Pose2d |
velocity(double time)
Returns the pose velocity at the given time.
|
acceleration, duration, get, velocitypublic PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList,
int resolution)
Trajectory segment backed by a list of class Path objects.
paths - pathstrajectoryConstraintsList - motion constraints for each respective pathresolution - resolution used for the motion profile (see MotionProfileGenerator.generateMotionProfile)paths - pathstrajectoryConstraintsList - motion constraints for each respective pathresolution - resolution used for the motion profile (see MotionProfileGenerator.generateMotionProfile)class Pathpublic PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths,
java.util.List<? extends com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> trajectoryConstraintsList)
Trajectory segment backed by a list of class Path objects.
paths - pathstrajectoryConstraintsList - motion constraints for each respective pathpaths - pathstrajectoryConstraintsList - motion constraints for each respective pathclass Pathpublic PathTrajectorySegment(java.util.List<com.acmerobotics.roadrunner.path.Path> paths)
Trajectory segment backed by a list of class Path objects.
paths - pathspaths - pathsclass Pathpublic PathTrajectorySegment()
Trajectory segment backed by a list of class Path objects.
class Pathpublic PathTrajectorySegment(Path path, TrajectoryConstraints trajectoryConstraints, int resolution)
path - pathtrajectoryConstraints - trajectory constraintsresolution - resolution for the motion profilepublic PathTrajectorySegment(Path path, TrajectoryConstraints trajectoryConstraints)
path - pathtrajectoryConstraints - trajectory constraintspublic MotionProfile getProfile()
Motion profile used for time parametrization of the paths.
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 java.util.List<com.acmerobotics.roadrunner.path.Path> getPaths()
paths
public java.util.List<com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryConstraints> getTrajectoryConstraintsList()
motion constraints for each respective path