gusimplewhiteboard
|
Provides a C++ wrapper around wb_particle_position
.
More...
#include <ParticlePosition.hpp>
Public Member Functions | |
ParticlePosition (struct wb_point2d t_position=wb_point2d(), int16_t t_headingInDegrees=0, float t_confidence=0.0f) | |
Create a new ParticlePosition . More... | |
ParticlePosition (const ParticlePosition &t_other) | |
Copy Constructor. More... | |
ParticlePosition (const struct wb_particle_position &t_other) | |
Copy Constructor. More... | |
ParticlePosition & | operator= (const ParticlePosition &t_other) |
Copy Assignment Operator. More... | |
ParticlePosition & | operator= (const struct wb_particle_position &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const ParticlePosition &t_other) const |
bool | operator!= (const ParticlePosition &t_other) const |
bool | operator== (const wb_particle_position &t_other) const |
bool | operator!= (const wb_particle_position &t_other) const |
Point2D & | position () |
const Point2D & | position () const |
void | set_position (const Point2D &t_newValue) |
int16_t & | headingInDegrees () |
const int16_t & | headingInDegrees () const |
void | set_headingInDegrees (const int16_t &t_newValue) |
float & | confidence () |
const float & | confidence () const |
void | set_confidence (const float &t_newValue) |
ParticlePosition (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Additional Inherited Members | |
![]() | |
struct wb_point2d | position |
position in the soccer field, The origin (0,0) us the center of the soccer field, larger Y is along the soccer field towards the oponetns goaa, smaller Y is back towards our on goal. More... | |
int16_t | headingInDegrees |
90 degrees is looking ahead into the oponetns goal. More... | |
float | confidence |
degre of certaintity that this a reliable locaiton where the robot is, should be between 0 and 1 More... | |
Provides a C++ wrapper around wb_particle_position
.
Definition at line 86 of file ParticlePosition.hpp.
|
inline |
Create a new ParticlePosition
.
Definition at line 104 of file ParticlePosition.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 111 of file ParticlePosition.hpp.
References confidence(), headingInDegrees(), and position().
|
inline |
Copy Constructor.
Definition at line 118 of file ParticlePosition.hpp.
References wb_particle_position::confidence, wb_particle_position::headingInDegrees, and wb_particle_position::position.
|
inline |
|
inline |
Definition at line 190 of file ParticlePosition.hpp.
References wb_particle_position::confidence.
Referenced by ParticlePosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 195 of file ParticlePosition.hpp.
References wb_particle_position::confidence.
|
inline |
USE_WB_PARTICLE_POSITION_C_CONVERSION
Definition at line 214 of file ParticlePosition.hpp.
References confidence(), guWhiteboard::Point2D::description(), headingInDegrees(), PARTICLE_POSITION_DESC_BUFFER_SIZE, position(), and wb_particle_position_description().
|
inline |
USE_WB_PARTICLE_POSITION_C_CONVERSION
Definition at line 252 of file ParticlePosition.hpp.
References guWhiteboard::Point2D::from_string(), PARTICLE_POSITION_DESC_BUFFER_SIZE, set_confidence(), set_headingInDegrees(), and set_position().
Referenced by ParticlePosition(), and guWhiteboard::TopParticles::from_string().
|
inline |
Definition at line 175 of file ParticlePosition.hpp.
References wb_particle_position::headingInDegrees.
Referenced by ParticlePosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 180 of file ParticlePosition.hpp.
References wb_particle_position::headingInDegrees.
|
inline |
Definition at line 145 of file ParticlePosition.hpp.
|
inline |
Definition at line 155 of file ParticlePosition.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 125 of file ParticlePosition.hpp.
References confidence(), headingInDegrees(), and position().
|
inline |
Copy Assignment Operator.
Definition at line 133 of file ParticlePosition.hpp.
References wb_particle_position::confidence, wb_particle_position::headingInDegrees, and wb_particle_position::position.
|
inline |
Definition at line 138 of file ParticlePosition.hpp.
References confidence(), headingInDegrees(), and position().
|
inline |
Definition at line 150 of file ParticlePosition.hpp.
References ParticlePosition().
|
inline |
Definition at line 160 of file ParticlePosition.hpp.
References wb_particle_position::position.
Referenced by ParticlePosition(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 165 of file ParticlePosition.hpp.
References wb_particle_position::position.
|
inline |
Definition at line 200 of file ParticlePosition.hpp.
References wb_particle_position::confidence.
Referenced by from_string().
|
inline |
Definition at line 185 of file ParticlePosition.hpp.
References wb_particle_position::headingInDegrees.
Referenced by from_string().
|
inline |
Definition at line 170 of file ParticlePosition.hpp.
References wb_particle_position::position.
Referenced by from_string().
|
inline |
USE_WB_PARTICLE_POSITION_C_CONVERSION
Definition at line 231 of file ParticlePosition.hpp.
References confidence(), headingInDegrees(), PARTICLE_POSITION_TO_STRING_BUFFER_SIZE, position(), guWhiteboard::Point2D::to_string(), and wb_particle_position_to_string().