Package frc.robot.lib.BLine
Interface Path.PathElement
- All Known Implementing Classes:
Path.EventTrigger,Path.RotationTarget,Path.TranslationTarget,Path.Waypoint
- Enclosing class:
- Path
public static sealed interface Path.PathElement
permits Path.Waypoint, Path.TranslationTarget, Path.RotationTarget, Path.EventTrigger
Sealed interface for all path element types.
Path elements define the targets that make up a path. The three permitted implementations are:
Path.Waypoint- Combined translation and rotation targetPath.TranslationTarget- Position target onlyPath.RotationTarget- Holonomic rotation target only
-
Method Summary
-
Method Details
-
copy
Path.PathElement copy()Creates a deep copy of this path element.- Returns:
- A new PathElement with the same values
-