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

#include <profilepoint.hpp>

Public Member Functions

 ProfilePoint (ControlVector ivector, std::vector< double > iwheel_velocities, double icurvature, double itime)
 Defines a state along a motion profiled path.
 
 ProfilePoint ()=default
 
std::string to_string () const
 Serializes the Profile Point data for debugging.
 
std::string to_csv () const
 
bool operator== (const ProfilePoint &other) const
 

Public Attributes

ControlVector vector
 
std::vector< doublewheel_velocities
 
double curvature
 
double time
 

Friends

std::ostream & operator<< (std::ostream &os, const ProfilePoint &p)
 

Detailed Description

Definition at line 18 of file profilepoint.hpp.

Constructor & Destructor Documentation

◆ ProfilePoint() [1/2]

squiggles::ProfilePoint::ProfilePoint ( ControlVector  ivector,
std::vector< double iwheel_velocities,
double  icurvature,
double  itime 
)
inline

Defines a state along a motion profiled path.

Parameters
ivectorThe pose and associated dynamics at this state in the path.
iwheel_velocitiesThe component of the robot's velocity provided by each wheel in meters per second.
icurvatureThe degree to which the curve deviates from a straight line at this point in 1 / meters.
itimeThe timestamp for this state relative to the start of the path in seconds.

Definition at line 30 of file profilepoint.hpp.

◆ ProfilePoint() [2/2]

squiggles::ProfilePoint::ProfilePoint ( )
default

Member Function Documentation

◆ operator==()

Definition at line 68 of file profilepoint.hpp.

◆ to_csv()

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

Definition at line 58 of file profilepoint.hpp.

◆ to_string()

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

Serializes the Profile Point data for debugging.

Returns
The Profile Point data.

Definition at line 46 of file profilepoint.hpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ProfilePoint p 
)
friend

Definition at line 78 of file profilepoint.hpp.

Member Data Documentation

◆ curvature

double squiggles::ProfilePoint::curvature

Definition at line 95 of file profilepoint.hpp.

◆ time

double squiggles::ProfilePoint::time

Definition at line 96 of file profilepoint.hpp.

◆ vector

ControlVector squiggles::ProfilePoint::vector

Definition at line 93 of file profilepoint.hpp.

◆ wheel_velocities

std::vector<double> squiggles::ProfilePoint::wheel_velocities

Definition at line 94 of file profilepoint.hpp.


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