#include <drive_choreo.h>
|
| static bool | IsAtEndPoint (SwerveDriveSubsystem &drive, const std::string &trajectoryName, const units::inch_t translationalTolerance=6_in, const units::degree_t rotationalTolerance=1.0_deg) |
| |
- Copyright
- Copyright (c) Argos FRC Team 1756. Open Source Software; you can modify and/or share it under the terms of the license file in the root directory of this project.
◆ DriveChoreo()
| DriveChoreo::DriveChoreo |
( |
SwerveDriveSubsystem & | drive, |
|
|
const std::string & | trajectoryName, |
|
|
const bool | initializeOdometry = false, |
|
|
std::optional< std::function< void(ArmPosition)> > | armPositionCallback = std::nullopt, |
|
|
const int | split = -1 ) |
- Copyright
- Copyright (c) Argos FRC Team 1756. Open Source Software; you can modify and/or share it under the terms of the license file in the root directory of this project.
◆ End()
| void DriveChoreo::End |
( |
bool | interrupted | ) |
|
|
override |
◆ Execute()
| void DriveChoreo::Execute |
( |
| ) |
|
|
override |
◆ Initialize()
| void DriveChoreo::Initialize |
( |
| ) |
|
|
override |
- Todo
- This rotation shouldn't be necessary. Probably has something to do with the negative sign
◆ IsAtEndPoint()
| bool DriveChoreo::IsAtEndPoint |
( |
SwerveDriveSubsystem & | drive, |
|
|
const std::string & | trajectoryName, |
|
|
const units::inch_t | translationalTolerance = 6_in, |
|
|
const units::degree_t | rotationalTolerance = 1.0_deg ) |
|
staticnodiscard |
◆ IsFinished()
| bool DriveChoreo::IsFinished |
( |
| ) |
|
|
override |
◆ m_armPositionCallback
| std::optional<std::function<void(ArmPosition)> > DriveChoreo::m_armPositionCallback |
|
private |
◆ m_autoTrajectoryLogger
| wpi::log::StructArrayLogEntry<frc::Pose2d> DriveChoreo::m_autoTrajectoryLogger |
|
private |
◆ m_desiredAutoPositionLogger
| wpi::log::StructLogEntry<frc::Pose2d> DriveChoreo::m_desiredAutoPositionLogger |
|
private |
◆ m_Drive
◆ m_events
| std::vector<choreo::EventMarker> DriveChoreo::m_events |
|
private |
◆ m_initializeOdometry
| const bool DriveChoreo::m_initializeOdometry |
|
private |
◆ m_isRedAlliance
| bool DriveChoreo::m_isRedAlliance |
|
private |
◆ m_nextEventIndex
| size_t DriveChoreo::m_nextEventIndex |
|
private |
◆ m_startTime
| std::chrono::time_point<std::chrono::steady_clock> DriveChoreo::m_startTime |
|
private |
◆ m_trajectory
| std::optional<choreo::Trajectory<choreo::SwerveSample> > DriveChoreo::m_trajectory |
|
private |
The documentation for this class was generated from the following files: