|
ThunderLib
|
#include <TrajectoryRunnerProperties.hpp>
Public Member Functions | |
| bool | isValid () const |
| operator bool () const | |
Public Attributes | |
| GetPoseFunc | getPose |
| ResetPoseFunc | resetPose |
| SetSpeedsFunc | setSpeeds |
| std::shared_ptr< frc::HolonomicDriveController > | controller |
A set of callback functions and properties required to run a trajectory.
| std::shared_ptr<frc::HolonomicDriveController> thunder::TrajectoryRunnerProperties::controller |
Holonomic drive controller to use for following the trajectory (required).
| GetPoseFunc thunder::TrajectoryRunnerProperties::getPose |
Gets the current pose of the robot (required).
| ResetPoseFunc thunder::TrajectoryRunnerProperties::resetPose |
Resets the robot's pose to the specified pose (and PID controllers too!) (optional).
If not provided (nullptr), the robot's pose will not be reset at the start of the trajectory.
| SetSpeedsFunc thunder::TrajectoryRunnerProperties::setSpeeds |
Control the robot's chassis speeds (required).
Speeds are robot-relative, not field-relative.