mirror To Ref
open fun mirrorToRef(out: Reference<TrajectorySequence>): RoadRunner.RoadRunnerTrajectoryTaskBuilder
Mirror a TrajectorySequence into the given Reference, which will effectively "flip" over the y-axis from the center of the field. This method is useful for trajectories that need to be run in the opposite direction, such as a Red Left trajectory being flipped to a Blue Right trajectory.
NOTE: The Starting Pose (builder parameter) is NOT flipped with using mirrorToRef() by default. This is to allow global coordinate systems to work properly. If you wish to mirror the Starting Pose, you must pass an additional argument of true
to makeTrajectory, which will flip the starting pose.
Return
Builder,
Parameters
out
Reference to mirror the trajectory to - this will be mirrored upon a build call