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

Field-frame 2D pose. More...

#include <odometry.hpp>

Public Member Functions

 Pose (float x=0, float y=0, float theta=0)
 
Pose operator* (float scalar) const
 
Pose operator+ (const Pose &o) const
 
Pose operator- (const Pose &o) const
 

Public Attributes

float x
 X position, inches.
 
float y
 Y position, inches.
 
float theta
 Heading.
 

Detailed Description

Field-frame 2D pose.

Theta is in degrees by default; use the radians flag on getPose() / setPose() to switch.

Definition at line 24 of file odometry.hpp.

Constructor & Destructor Documentation

◆ Pose()

Pose::Pose ( float  x = 0,
float  y = 0,
float  theta = 0 
)
inline

Definition at line 28 of file odometry.hpp.

Member Function Documentation

◆ operator*()

Pose Pose::operator* ( float  scalar) const
inline

Definition at line 29 of file odometry.hpp.

◆ operator+()

Pose Pose::operator+ ( const Pose o) const
inline

Definition at line 30 of file odometry.hpp.

◆ operator-()

Pose Pose::operator- ( const Pose o) const
inline

Definition at line 31 of file odometry.hpp.

Member Data Documentation

◆ theta

float Pose::theta

Heading.

Definition at line 27 of file odometry.hpp.

◆ x

float Pose::x

X position, inches.

Definition at line 25 of file odometry.hpp.

◆ y

float Pose::y

Y position, inches.

Definition at line 26 of file odometry.hpp.


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