gusimplewhiteboard
|
Provides a C++ wrapper around wb_location
.
More...
#include <Location.hpp>
Public Member Functions | |
Location (int16_t t_direction=0, uint16_t t_distance=0, uint8_t t_confidence=0, uint32_t t_distanceVariance=0, uint32_t t_directionVariance=0) | |
Create a new Location . More... | |
Location (const Location &t_other) | |
Copy Constructor. More... | |
Location (const struct wb_location &t_other) | |
Copy Constructor. More... | |
Location & | operator= (const Location &t_other) |
Copy Assignment Operator. More... | |
Location & | operator= (const struct wb_location &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const Location &t_other) const |
bool | operator!= (const Location &t_other) const |
bool | operator== (const wb_location &t_other) const |
bool | operator!= (const wb_location &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) |
uint8_t & | confidence () |
const uint8_t & | confidence () const |
void | set_confidence (const uint8_t &t_newValue) |
uint32_t & | distanceVariance () |
const uint32_t & | distanceVariance () const |
void | set_distanceVariance (const uint32_t &t_newValue) |
uint32_t & | directionVariance () |
const uint32_t & | directionVariance () const |
void | set_directionVariance (const uint32_t &t_newValue) |
Location (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Location (const GU::RelativeCoordinate &t_other) | |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Location (const GU::RelativeCoordinate &t_other, const uint8_t t_confidence) | |
Create a new Location by converting the values from a GU::RelativeCoordinate. More... | |
Location (const GU::RelativeCoordinate &t_other, const uint8_t t_confidence, const uint32_t t_distanceVariance, uint32_t t_directionVariance) | |
Create a new Location by converting the values from a GU::RelativeCoordinate. More... | |
GU::RelativeCoordinate | relativeCoordinate () const |
Convert this location to a GU::RelativeCoordinate. More... | |
GU::OptionalRelativeCoordinate | optionalRelativeCoordinate (const uint8_t minimumConfidence) const |
Convert this location to a GU::RelativeCoordinate only if the confidence of the location is greater than or equal to the specified minimum confidence. More... | |
std::optional< GU::RelativeCoordinate > | relativeCoordinate (const uint8_t minimumConfidence) const |
Convert this location to a GU::RelativeCoordinate only if the confidence of the location is greater than or equal to the specified minimum confidence. More... | |
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... | |
uint8_t | confidence |
The type of sighting. More... | |
uint32_t | distanceVariance |
The variance of the distance. More... | |
uint32_t | directionVariance |
The variance of the direction. More... | |
Provides a C++ wrapper around wb_location
.
Definition at line 90 of file Location.hpp.
|
inline |
|
inline |
Copy Constructor.
Definition at line 117 of file Location.hpp.
References confidence(), direction(), directionVariance(), distance(), and distanceVariance().
|
inline |
Copy Constructor.
Definition at line 124 of file Location.hpp.
References wb_location::confidence, wb_location::direction, wb_location::directionVariance, wb_location::distance, and wb_location::distanceVariance.
|
inline |
|
inline |
WHITEBOARD_POSTER_STRING_CONVERSION.
Create a new Location by converting the values from a GU::RelativeCoordinate.
[in] | t_other | The GU::RelativeCoordinate which is being converted. |
Definition at line 427 of file Location.hpp.
|
inline |
Create a new Location by converting the values from a GU::RelativeCoordinate.
[in] | t_other | The GU::RelativeCoordinate which is being converted. |
[in] | t_confidence | The percentage of certainty of the location. |
Definition at line 446 of file Location.hpp.
|
inline |
Create a new Location by converting the values from a GU::RelativeCoordinate.
[in] | t_other | The GU::RelativeCoordinate which is being converted. |
[in] | t_confidence | The percentage of certainty of the location. |
[in] | t_distanceVariance | The variance of the distance. |
[in] | t_directionVariance | The variance of the direction. |
Definition at line 467 of file Location.hpp.
|
inline |
Definition at line 198 of file Location.hpp.
References wb_location::confidence.
Referenced by Location(), description(), operator=(), operator==(), relativeCoordinate(), and to_string().
|
inline |
Definition at line 203 of file Location.hpp.
References wb_location::confidence.
|
inline |
USE_WB_LOCATION_C_CONVERSION
Definition at line 252 of file Location.hpp.
References confidence(), direction(), directionVariance(), distance(), distanceVariance(), LOCATION_DESC_BUFFER_SIZE, and wb_location_description().
|
inline |
Definition at line 168 of file Location.hpp.
References wb_location::direction.
Referenced by Location(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 173 of file Location.hpp.
References wb_location::direction.
|
inline |
Definition at line 228 of file Location.hpp.
References wb_location::directionVariance.
Referenced by Location(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 233 of file Location.hpp.
References wb_location::directionVariance.
|
inline |
Definition at line 183 of file Location.hpp.
References wb_location::distance.
Referenced by Location(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 188 of file Location.hpp.
References wb_location::distance.
|
inline |
Definition at line 213 of file Location.hpp.
References wb_location::distanceVariance.
Referenced by Location(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 218 of file Location.hpp.
References wb_location::distanceVariance.
|
inline |
USE_WB_LOCATION_C_CONVERSION
Definition at line 298 of file Location.hpp.
References LOCATION_DESC_BUFFER_SIZE, set_confidence(), set_direction(), set_directionVariance(), set_distance(), and set_distanceVariance().
Referenced by Location().
|
inline |
Definition at line 153 of file Location.hpp.
|
inline |
Definition at line 163 of file Location.hpp.
Copy Assignment Operator.
Definition at line 131 of file Location.hpp.
References confidence(), direction(), directionVariance(), distance(), and distanceVariance().
|
inline |
Copy Assignment Operator.
Definition at line 139 of file Location.hpp.
References wb_location::confidence, wb_location::direction, wb_location::directionVariance, wb_location::distance, and wb_location::distanceVariance.
|
inline |
Definition at line 144 of file Location.hpp.
References confidence(), direction(), directionVariance(), distance(), and distanceVariance().
|
inline |
Definition at line 158 of file Location.hpp.
References Location().
|
inline |
Convert this location to a GU::RelativeCoordinate only if the confidence of the location is greater than or equal to the specified minimum confidence.
[in] | minimumConfidence | The minimim confidence value the confidence() has to be in order for GU::OptionalRelativeCoordinate::has_value to be true. |
Definition at line 501 of file Location.hpp.
References wb_location_to_opt_rr_coord().
|
inline |
Convert this location to a GU::RelativeCoordinate.
Definition at line 483 of file Location.hpp.
References wb_location_to_rr_coord().
Referenced by relativeCoordinate().
|
inline |
Convert this location to a GU::RelativeCoordinate only if the confidence of the location is greater than or equal to the specified minimum confidence.
[in] | minimumConfidence | The minimim confidence value the confidence() has to be in order for std::optional<GU::RelativeCoordinate>::has_value to be true. |
Definition at line 520 of file Location.hpp.
References confidence(), and relativeCoordinate().
|
inline |
Definition at line 208 of file Location.hpp.
References wb_location::confidence.
Referenced by from_string().
|
inline |
Definition at line 178 of file Location.hpp.
References wb_location::direction.
Referenced by from_string().
|
inline |
Definition at line 238 of file Location.hpp.
References wb_location::directionVariance.
Referenced by from_string().
|
inline |
Definition at line 193 of file Location.hpp.
References wb_location::distance.
Referenced by from_string().
|
inline |
Definition at line 223 of file Location.hpp.
References wb_location::distanceVariance.
Referenced by from_string().
|
inline |
USE_WB_LOCATION_C_CONVERSION
Definition at line 273 of file Location.hpp.
References confidence(), direction(), directionVariance(), distance(), distanceVariance(), LOCATION_TO_STRING_BUFFER_SIZE, and wb_location_to_string().