gusimplewhiteboard
|
Provides a C++ wrapper around wb_nao_obstacle_direction
.
More...
#include <NaoObstacleDirection.hpp>
Public Member Functions | |
NaoObstacleDirection (bool t_left=false, bool t_right=false, bool t_front=false) | |
Create a new NaoObstacleDirection . More... | |
NaoObstacleDirection (const NaoObstacleDirection &t_other) | |
Copy Constructor. More... | |
NaoObstacleDirection (const struct wb_nao_obstacle_direction &t_other) | |
Copy Constructor. More... | |
NaoObstacleDirection & | operator= (const NaoObstacleDirection &t_other) |
Copy Assignment Operator. More... | |
NaoObstacleDirection & | operator= (const struct wb_nao_obstacle_direction &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const NaoObstacleDirection &t_other) const |
bool | operator!= (const NaoObstacleDirection &t_other) const |
bool | operator== (const wb_nao_obstacle_direction &t_other) const |
bool | operator!= (const wb_nao_obstacle_direction &t_other) const |
bool & | left () |
const bool & | left () const |
void | set_left (const bool &t_newValue) |
bool & | right () |
const bool & | right () const |
void | set_right (const bool &t_newValue) |
bool & | front () |
const bool & | front () const |
void | set_front (const bool &t_newValue) |
NaoObstacleDirection (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Static Public Member Functions | |
static NaoObstacleDirection | sonar_direction (bool _left, bool _front, bool _right) |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Additional Inherited Members | |
Public Attributes inherited from wb_nao_obstacle_direction | |
bool | left |
Do I have an obstacle 40 cm to my left (check SMSubsumption machine methods) More... | |
bool | right |
Do I have an obstacle 40 cm to my left (check SMSubsumption machine methods) More... | |
bool | front |
Do I have an obstacle 40 cm to my left (check SMSubsumption machine methods) More... | |
Provides a C++ wrapper around wb_nao_obstacle_direction
.
Definition at line 85 of file NaoObstacleDirection.hpp.
|
inline |
Create a new NaoObstacleDirection
.
Definition at line 103 of file NaoObstacleDirection.hpp.
Referenced by operator==(), and sonar_direction().
|
inline |
Copy Constructor.
Definition at line 110 of file NaoObstacleDirection.hpp.
|
inline |
Copy Constructor.
Definition at line 117 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::front, wb_nao_obstacle_direction::left, and wb_nao_obstacle_direction::right.
|
inline |
String Constructor.
Definition at line 208 of file NaoObstacleDirection.hpp.
References from_string().
|
inline |
USE_WB_NAO_OBSTACLE_DIRECTION_C_CONVERSION
Definition at line 213 of file NaoObstacleDirection.hpp.
References front(), left(), NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE, right(), and wb_nao_obstacle_direction_description().
|
inline |
USE_WB_NAO_OBSTACLE_DIRECTION_C_CONVERSION
Definition at line 251 of file NaoObstacleDirection.hpp.
References NAO_OBSTACLE_DIRECTION_DESC_BUFFER_SIZE, set_front(), set_left(), and set_right().
Referenced by NaoObstacleDirection().
|
inline |
Definition at line 189 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::front.
Referenced by NaoObstacleDirection(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 194 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::front.
|
inline |
Definition at line 159 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::left.
Referenced by NaoObstacleDirection(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 164 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::left.
|
inline |
Definition at line 144 of file NaoObstacleDirection.hpp.
|
inline |
Definition at line 154 of file NaoObstacleDirection.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 124 of file NaoObstacleDirection.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 132 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::front, wb_nao_obstacle_direction::left, and wb_nao_obstacle_direction::right.
|
inline |
Definition at line 137 of file NaoObstacleDirection.hpp.
|
inline |
Definition at line 149 of file NaoObstacleDirection.hpp.
References NaoObstacleDirection().
|
inline |
Definition at line 174 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::right.
Referenced by NaoObstacleDirection(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 179 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::right.
|
inline |
Definition at line 199 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::front.
Referenced by from_string(), and sonar_direction().
|
inline |
Definition at line 169 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::left.
Referenced by from_string(), and sonar_direction().
|
inline |
Definition at line 184 of file NaoObstacleDirection.hpp.
References wb_nao_obstacle_direction::right.
Referenced by from_string(), and sonar_direction().
|
inlinestatic |
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 361 of file NaoObstacleDirection.hpp.
References NaoObstacleDirection(), set_front(), set_left(), and set_right().
|
inline |
USE_WB_NAO_OBSTACLE_DIRECTION_C_CONVERSION
Definition at line 230 of file NaoObstacleDirection.hpp.
References front(), left(), NAO_OBSTACLE_DIRECTION_TO_STRING_BUFFER_SIZE, right(), and wb_nao_obstacle_direction_to_string().