2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
DriveChoreo Class Reference

#include <drive_choreo.h>

Inheritance diagram for DriveChoreo:

Public Member Functions

 DriveChoreo (SwerveDriveSubsystem &drive, const std::string &trajectoryName, const bool initializeOdometry=false)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Static Public Member Functions

static bool IsAtEndPoint (SwerveDriveSubsystem &drive, const std::string &trajectoryName, const units::inch_t translationalTolerance=6_in, const units::degree_t rotationalTolerance=1.0_deg)
 
static units::inch_t EndpointShotDistance (const std::string &trajectoryName)
 

Private Attributes

SwerveDriveSubsystemm_Drive
 
const choreolib::ChoreoTrajectory m_trajectory
 
choreolib::ChoreoTrajectory m_orientedTrajectory
 
choreolib::ChoreoSwerveCommand m_ChoreoCommand
 
const bool m_initializeOdometry
 
std::chrono::time_point< std::chrono::steady_clock > m_startTime
 
wpi::log::StructLogEntry< frc::Pose2d > m_desiredAutoPositionLogger
 
wpi::log::StructArrayLogEntry< frc::Pose2d > m_autoTrajectoryLogger
 

Detailed Description

Constructor & Destructor Documentation

◆ DriveChoreo()

DriveChoreo::DriveChoreo ( SwerveDriveSubsystem drive,
const std::string &  trajectoryName,
const bool  initializeOdometry = false 
)

Member Function Documentation

◆ End()

void DriveChoreo::End ( bool  interrupted)
override

◆ EndpointShotDistance()

units::inch_t DriveChoreo::EndpointShotDistance ( const std::string &  trajectoryName)
static

◆ Execute()

void DriveChoreo::Execute ( )
override

◆ Initialize()

void DriveChoreo::Initialize ( )
override

◆ 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 
)
static

◆ IsFinished()

bool DriveChoreo::IsFinished ( )
override

Member Data Documentation

◆ m_autoTrajectoryLogger

wpi::log::StructArrayLogEntry<frc::Pose2d> DriveChoreo::m_autoTrajectoryLogger
private

◆ m_ChoreoCommand

choreolib::ChoreoSwerveCommand DriveChoreo::m_ChoreoCommand
private

◆ m_desiredAutoPositionLogger

wpi::log::StructLogEntry<frc::Pose2d> DriveChoreo::m_desiredAutoPositionLogger
private

◆ m_Drive

SwerveDriveSubsystem& DriveChoreo::m_Drive
private

◆ m_initializeOdometry

const bool DriveChoreo::m_initializeOdometry
private

◆ m_orientedTrajectory

choreolib::ChoreoTrajectory DriveChoreo::m_orientedTrajectory
private

◆ m_startTime

std::chrono::time_point<std::chrono::steady_clock> DriveChoreo::m_startTime
private

◆ m_trajectory

const choreolib::ChoreoTrajectory DriveChoreo::m_trajectory
private

The documentation for this class was generated from the following files: