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

#include <pose.hpp>

Public Member Functions

 Pose (double ix, double iy, double iyaw)
 Specifies a point and heading in 2D space.
 
 Pose ()=default
 
double dist (const Pose &other) const
 Calculates the Euclidean distance between this pose and another.
 
std::string to_string () const
 Serializes the Pose data for debugging.
 
std::string to_csv () const
 
bool operator== (const Pose &other) const
 

Public Attributes

double x
 
double y
 
double yaw
 

Detailed Description

Definition at line 16 of file pose.hpp.

Constructor & Destructor Documentation

◆ Pose() [1/2]

squiggles::Pose::Pose ( double  ix,
double  iy,
double  iyaw 
)
inline

Specifies a point and heading in 2D space.

Parameters
ixThe x position of the point in meters.
iyThe y position of the point in meters.
iyawThe heading at the point in radians.

Definition at line 25 of file pose.hpp.

◆ Pose() [2/2]

squiggles::Pose::Pose ( )
default

Member Function Documentation

◆ dist()

double squiggles::Pose::dist ( const Pose other) const
inline

Calculates the Euclidean distance between this pose and another.

Parameters
otherThe point from which the distance will be calculated.
Returns
The distance between this pose and Other.

Definition at line 36 of file pose.hpp.

◆ operator==()

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

Definition at line 56 of file pose.hpp.

◆ to_csv()

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

Definition at line 51 of file pose.hpp.

◆ to_string()

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

Serializes the Pose data for debugging.

Returns
The Pose data.

Definition at line 46 of file pose.hpp.

Member Data Documentation

◆ x

double squiggles::Pose::x

Definition at line 61 of file pose.hpp.

◆ y

double squiggles::Pose::y

Definition at line 62 of file pose.hpp.

◆ yaw

double squiggles::Pose::yaw

Definition at line 63 of file pose.hpp.


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