LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
squiggles::ControlVector Class Reference

#include <controlvector.hpp>

Public Member Functions

 ControlVector (Pose ipose, double ivel=std::nan(""), double iaccel=0.0, double ijerk=0.0)
 A vector used to specify a state along a hermite spline.
 
 ControlVector ()=default
 
std::string to_string () const
 Serializes the Control Vector data for debugging.
 
std::string to_csv () const
 
bool operator== (const ControlVector &other) const
 

Public Attributes

Pose pose
 
double vel
 
double accel
 
double jerk
 

Detailed Description

Definition at line 16 of file controlvector.hpp.

Constructor & Destructor Documentation

◆ ControlVector() [1/2]

squiggles::ControlVector::ControlVector ( Pose  ipose,
double  ivel = std::nan(""),
double  iaccel = 0.0,
double  ijerk = 0.0 
)
inline

A vector used to specify a state along a hermite spline.

Parameters
iposeThe 2D position and heading.
ivelThe velocity component of the vector.
iaccelThe acceleration component of the vector.
ijerkThe jerk component of the vector.

Definition at line 26 of file controlvector.hpp.

◆ ControlVector() [2/2]

squiggles::ControlVector::ControlVector ( )
default

Member Function Documentation

◆ operator==()

bool squiggles::ControlVector::operator== ( const ControlVector other) const
inline

Definition at line 50 of file controlvector.hpp.

◆ to_csv()

std::string squiggles::ControlVector::to_csv ( ) const
inline

Definition at line 45 of file controlvector.hpp.

◆ to_string()

std::string squiggles::ControlVector::to_string ( ) const
inline

Serializes the Control Vector data for debugging.

Returns
The Control Vector data.

Definition at line 39 of file controlvector.hpp.

Member Data Documentation

◆ accel

double squiggles::ControlVector::accel

Definition at line 57 of file controlvector.hpp.

◆ jerk

double squiggles::ControlVector::jerk

Definition at line 58 of file controlvector.hpp.

◆ pose

Pose squiggles::ControlVector::pose

Definition at line 55 of file controlvector.hpp.

◆ vel

double squiggles::ControlVector::vel

Definition at line 56 of file controlvector.hpp.


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