1#ifndef NXT_Lights_Control_DEFINED
2#define NXT_Lights_Control_DEFINED
22#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
30 std::ostringstream ss;
33 ss << static_cast<int>(anIntenisty) <<
",";
40 std::istringstream iss(str);
45 ( (atoi(token.c_str()) < 0) ? 0
57 u_int8_t otherIntenisty =s.lights(b);
58 if (anIntenisty != otherIntenisty )
Class for controlling differential robots Defines whiteboard message.
bool operator==(const NXT_Lights_Control &s)
override equality operator so we can compare instances
NXT_Lights_Control()
Designated constructor.
std::string description()
get message description
NXT_Lights_Control(const std::string &name)
String constructor.
void from_string(std::string str)
string conversion
Lights that can go an on — C struct.
#define wb_lights_h_NUMBER_OF_LIGHTS
/file wb_lights.h