60#ifndef guWhiteboard_SENSORSLegJointTemps_h
61#define guWhiteboard_SENSORSLegJointTemps_h
63#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
73#undef guWhiteboard_SENSORSLegJointTemps_DEFINED
74#define guWhiteboard_SENSORSLegJointTemps_DEFINED
76#undef SENSORSLegJointTemps_DEFINED
77#define SENSORSLegJointTemps_DEFINED
91 void init(
float t_LKneePitch = 0.0f,
float t_LAnklePitch = 0.0f,
float t_LAnkleRoll = 0.0f,
float t_RKneePitch = 0.0f,
float t_RAnklePitch = 0.0f,
float t_RAnkleRoll = 0.0f) {
105 SENSORSLegJointTemps(
float t_LKneePitch = 0.0f,
float t_LAnklePitch = 0.0f,
float t_LAnkleRoll = 0.0f,
float t_RKneePitch = 0.0f,
float t_RAnklePitch = 0.0f,
float t_RAnkleRoll = 0.0f) {
106 this->init(t_LKneePitch, t_LAnklePitch, t_LAnkleRoll, t_RKneePitch, t_RAnklePitch, t_RAnkleRoll);
151 return !(*
this == t_other);
161 return !(*
this == t_other);
254#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
264#ifdef USE_WB_SENSORS_LEGJOINTTEMPS_C_CONVERSION
267 std::string descr = buffer;
270 std::ostringstream ss;
287#ifdef USE_WB_SENSORS_LEGJOINTTEMPS_C_CONVERSION
290 std::string toString = buffer;
293 std::ostringstream ss;
309#ifdef USE_WB_SENSORS_LEGJOINTTEMPS_C_CONVERSION
314 char * str_cstr =
const_cast<char *
>(t_str.c_str());
315 size_t temp_length = strlen(str_cstr);
316 int length = (temp_length <= INT_MAX) ? static_cast<int>(
static_cast<ssize_t
>(temp_length)) : -1;
321 char* var_str = &var_str_buffer[0];
323 char* key = &key_buffer[0];
330 if (index == 0 && str_cstr[0] ==
'{') {
336 for (
int i = index; i < length; i++) {
338 if (bracecount == 0 && str_cstr[i] ==
'=') {
343 if (bracecount == 0 && isspace(str_cstr[i])) {
350 if (bracecount == 0 && str_cstr[i] ==
',') {
354 if (str_cstr[i] ==
'{') {
358 if (str_cstr[i] ==
'}') {
360 if (bracecount < 0) {
365 if (i == length - 1) {
369 if (endKey >= startKey && endKey - startKey < length) {
370 strncpy(key, str_cstr + startKey,
static_cast<size_t>((endKey - startKey) + 1));
371 key[(endKey - startKey) + 1] = 0;
375 strncpy(var_str, str_cstr + startVar,
static_cast<size_t>((index - startVar) + 1));
376 var_str[(index - startVar) + 1] = 0;
382 if (strlen(key) > 0) {
383 if (0 == strcmp(
"LKneePitch", key)) {
385 }
else if (0 == strcmp(
"LAnklePitch", key)) {
387 }
else if (0 == strcmp(
"LAnkleRoll", key)) {
389 }
else if (0 == strcmp(
"RKneePitch", key)) {
391 }
else if (0 == strcmp(
"RAnklePitch", key)) {
393 }
else if (0 == strcmp(
"RAnkleRoll", key)) {
435 }
while(index < length);
Provides a C++ wrapper around wb_sensors_legjointtemps.
SENSORSLegJointTemps & operator=(const SENSORSLegJointTemps &t_other)
Copy Assignment Operator.
void set_RAnkleRoll(const float &t_newValue)
bool operator!=(const SENSORSLegJointTemps &t_other) const
void set_LKneePitch(const float &t_newValue)
SENSORSLegJointTemps(const struct wb_sensors_legjointtemps &t_other)
Copy Constructor.
void set_RAnklePitch(const float &t_newValue)
void set_LAnkleRoll(const float &t_newValue)
void set_RKneePitch(const float &t_newValue)
void set_LAnklePitch(const float &t_newValue)
const float & LAnkleRoll() const
const float & LAnklePitch() const
SENSORSLegJointTemps(const SENSORSLegJointTemps &t_other)
Copy Constructor.
const float & RAnklePitch() const
SENSORSLegJointTemps(float t_LKneePitch=0.0f, float t_LAnklePitch=0.0f, float t_LAnkleRoll=0.0f, float t_RKneePitch=0.0f, float t_RAnklePitch=0.0f, float t_RAnkleRoll=0.0f)
Create a new SENSORSLegJointTemps.
const float & LKneePitch() const
std::string description()
SENSORSLegJointTemps(const std::string &t_str)
String Constructor.
const float & RKneePitch() const
const float & RAnkleRoll() const
bool operator==(const SENSORSLegJointTemps &t_other) const
void from_string(const std::string &t_str)
WHITEBOARD_POSTER_STRING_CONVERSION.
float RAnklePitch
right ankle pitch temp
float LKneePitch
left knee pitch temp
float LAnkleRoll
left ankle roll temp
float RKneePitch
right knee pitch temp
float RAnkleRoll
right ankle roll temp
float LAnklePitch
left ankle pitch temp
struct wb_sensors_legjointtemps * wb_sensors_legjointtemps_from_string(struct wb_sensors_legjointtemps *self, const char *str)
Convert from a string.
const char * wb_sensors_legjointtemps_to_string(const struct wb_sensors_legjointtemps *self, char *toString, size_t bufferSize)
Convert to a string.
const char * wb_sensors_legjointtemps_description(const struct wb_sensors_legjointtemps *self, char *descString, size_t bufferSize)
Convert to a description string.
#define SENSORS_LEGJOINTTEMPS_TO_STRING_BUFFER_SIZE
#define SENSORS_LEGJOINTTEMPS_DESC_BUFFER_SIZE