public class TrajectoryConfig
Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than
class BaseTrajectoryBuilder.
class BaseTrajectoryBuilder| Constructor and Description |
|---|
TrajectoryConfig(java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> poses,
DriveConstraints constraints,
double resolution)
Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than
class BaseTrajectoryBuilder. |
TrajectoryConfig(java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> poses,
DriveConstraints constraints)
Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than
class BaseTrajectoryBuilder. |
| Modifier and Type | Method and Description |
|---|---|
DriveConstraints |
getConstraints()
constraints
|
java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> |
getPoses()
poses
|
double |
getResolution()
resolution used for path-based segments
|
Trajectory |
toTrajectory()
Converts the configuration into a real
class Trajectory. |
@JvmOverloads
public TrajectoryConfig(@NotNull
java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> poses,
@NotNull
DriveConstraints constraints,
double resolution)
Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than
class BaseTrajectoryBuilder.
poses - posesconstraints - constraintsresolution - resolution used for path-based segments (see class Trajectory)class BaseTrajectoryBuilder@JvmOverloads
public TrajectoryConfig(@NotNull
java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> poses,
@NotNull
DriveConstraints constraints)
Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than
class BaseTrajectoryBuilder.
poses - posesconstraints - constraintsclass BaseTrajectoryBuilder@Nullable public Trajectory toTrajectory()
Converts the configuration into a real class Trajectory.
class Trajectory@NotNull public java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> getPoses()
poses
@NotNull public DriveConstraints getConstraints()
constraints
public double getResolution()
resolution used for path-based segments
(see class Trajectory)
class Trajectory