gusimplewhiteboard
|
Provides a C++ wrapper around wb_polar_coordinate
.
More...
#include <PolarCoordinate.hpp>
Public Member Functions | |
PolarCoordinate (int16_t t_direction=0, uint16_t t_distance=0) | |
Create a new PolarCoordinate . More... | |
PolarCoordinate (const PolarCoordinate &t_other) | |
Copy Constructor. More... | |
PolarCoordinate (const struct wb_polar_coordinate &t_other) | |
Copy Constructor. More... | |
PolarCoordinate & | operator= (const PolarCoordinate &t_other) |
Copy Assignment Operator. More... | |
PolarCoordinate & | operator= (const struct wb_polar_coordinate &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const PolarCoordinate &t_other) const |
bool | operator!= (const PolarCoordinate &t_other) const |
bool | operator== (const wb_polar_coordinate &t_other) const |
bool | operator!= (const wb_polar_coordinate &t_other) const |
int16_t & | direction () |
const int16_t & | direction () const |
void | set_direction (const int16_t &t_newValue) |
uint16_t & | distance () |
const uint16_t & | distance () const |
void | set_distance (const uint16_t &t_newValue) |
PolarCoordinate (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 | |
![]() | |
int16_t | direction |
degrees, relative to the center of the nao torso. More... | |
uint16_t | distance |
CM distance to the center point of the sighting. More... | |
Provides a C++ wrapper around wb_polar_coordinate
.
Definition at line 83 of file PolarCoordinate.hpp.
|
inline |
Create a new PolarCoordinate
.
Definition at line 100 of file PolarCoordinate.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 107 of file PolarCoordinate.hpp.
References direction(), and distance().
|
inline |
Copy Constructor.
Definition at line 114 of file PolarCoordinate.hpp.
References wb_polar_coordinate::direction, and wb_polar_coordinate::distance.
|
inline |
|
inline |
USE_WB_POLAR_COORDINATE_C_CONVERSION
Definition at line 194 of file PolarCoordinate.hpp.
References direction(), distance(), POLAR_COORDINATE_DESC_BUFFER_SIZE, and wb_polar_coordinate_description().
Referenced by guWhiteboard::LineSighting::description(), and guWhiteboard::VisionDetectionFeature::description().
|
inline |
Definition at line 155 of file PolarCoordinate.hpp.
References wb_polar_coordinate::direction.
Referenced by PolarCoordinate(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 160 of file PolarCoordinate.hpp.
References wb_polar_coordinate::direction.
|
inline |
Definition at line 170 of file PolarCoordinate.hpp.
References wb_polar_coordinate::distance.
Referenced by PolarCoordinate(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 175 of file PolarCoordinate.hpp.
References wb_polar_coordinate::distance.
|
inline |
USE_WB_POLAR_COORDINATE_C_CONVERSION
Definition at line 228 of file PolarCoordinate.hpp.
References POLAR_COORDINATE_DESC_BUFFER_SIZE, set_direction(), and set_distance().
Referenced by PolarCoordinate(), guWhiteboard::LineSighting::from_string(), and guWhiteboard::VisionDetectionFeature::from_string().
|
inline |
Definition at line 140 of file PolarCoordinate.hpp.
|
inline |
Definition at line 150 of file PolarCoordinate.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 121 of file PolarCoordinate.hpp.
References direction(), and distance().
|
inline |
Copy Assignment Operator.
Definition at line 129 of file PolarCoordinate.hpp.
References wb_polar_coordinate::direction, and wb_polar_coordinate::distance.
|
inline |
Definition at line 134 of file PolarCoordinate.hpp.
References direction(), and distance().
|
inline |
Definition at line 145 of file PolarCoordinate.hpp.
References PolarCoordinate().
|
inline |
Definition at line 165 of file PolarCoordinate.hpp.
References wb_polar_coordinate::direction.
Referenced by from_string().
|
inline |
Definition at line 180 of file PolarCoordinate.hpp.
References wb_polar_coordinate::distance.
Referenced by from_string().
|
inline |
USE_WB_POLAR_COORDINATE_C_CONVERSION
Definition at line 209 of file PolarCoordinate.hpp.
References direction(), distance(), POLAR_COORDINATE_TO_STRING_BUFFER_SIZE, and wb_polar_coordinate_to_string().
Referenced by guWhiteboard::LineSighting::to_string(), and guWhiteboard::VisionDetectionFeature::to_string().