Task Builder
Extension of a RoadRunner trajectory builder to provide WPIUnits and task building support.
Author
Lucas Bubner, 2024
Since
6.0.0
Constructors
Functions
Build the current trajectory and add it to the current AutonomousBunyipsOpMode task queue with the settings defined in this builder.
Build the current trajectory and return it as a Task/Action.
Ends the current trajectory in progress. No-op if no trajectory segments are pending.
Creates a new builder with the same settings and default constraints at the current pose, tangent.
Move to the specified posX coordinate in the direction of the current heading.
Move to the specified posX coordinate in the direction of the current heading.
Move to the specified posY coordinate in the direction of the current heading.
Move to the specified posY coordinate in the direction of the current heading.
Reset the acceleration constraints to default.
Reset the turn constraints to default.
Reset the velocity constraints to default.
Set the acceleration constraints as defined by an Accel object.
Set the acceleration constraints for future builder instructions in units of inches.
Set the reversed tangent state of the builder.
Sets the tangent of the builder.
Set the turn constraints as defined by a Turn object.
Set the turn constraints for future builder instructions in units of inches.
Set the velocity constraints as defined by a Vel object.
Set the velocity constraints for future builder instructions in units of inches.
Move to the specified pos in a spline path while maintaining the current heading.
Move to the specified poseHeadingRad in a spline path while linearly interpolating the heading to tangent.
Move to the specified poseHeadingRad in a spline path while spline interpolating the heading to tangent.
Stops the current trajectory (like endTrajectory) and adds action a next.
Stops the current trajectory (like endTrajectory) and adds the instant function f next.
Move to the specified pos vector while maintaining the current heading.
Move to the specified pos vector while maintaining the current heading.
Turn the robot to the heading, specified as a Rotation2d in radians.
Waits t seconds.
Set the name for the underlying task.
Set the priority for the underlying task if using addTask.
Set the timeout for the underlying task.