60#ifndef guWhiteboard_NaoJointListFloat_h
61#define guWhiteboard_NaoJointListFloat_h
63#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
73#undef guWhiteboard_NaoJointListFloat_DEFINED
74#define guWhiteboard_NaoJointListFloat_DEFINED
76#undef NaoJointListFloat_DEFINED
77#define NaoJointListFloat_DEFINED
91 void init(
float t_HeadYaw = 0.0f,
float t_HeadPitch = 0.0f,
float t_LShoulderPitch = 0.0f,
float t_LShoulderRoll = 0.0f,
float t_LElbowYaw = 0.0f,
float t_LElbowRoll = 0.0f,
float t_LWristYaw = 0.0f,
float t_LHand = 0.0f,
float t_RShoulderPitch = 0.0f,
float t_RShoulderRoll = 0.0f,
float t_RElbowYaw = 0.0f,
float t_RElbowRoll = 0.0f,
float t_RWristYaw = 0.0f,
float t_RHand = 0.0f,
float t_LHipYawPitch = 0.0f,
float t_LHipRoll = 0.0f,
float t_LHipPitch = 0.0f,
float t_LKneePitch = 0.0f,
float t_LAnklePitch = 0.0f,
float t_LAnkleRoll = 0.0f,
float t_RHipRoll = 0.0f,
float t_RHipPitch = 0.0f,
float t_RKneePitch = 0.0f,
float t_RAnklePitch = 0.0f,
float t_RAnkleRoll = 0.0f) {
124 NaoJointListFloat(
float t_HeadYaw = 0.0f,
float t_HeadPitch = 0.0f,
float t_LShoulderPitch = 0.0f,
float t_LShoulderRoll = 0.0f,
float t_LElbowYaw = 0.0f,
float t_LElbowRoll = 0.0f,
float t_LWristYaw = 0.0f,
float t_LHand = 0.0f,
float t_RShoulderPitch = 0.0f,
float t_RShoulderRoll = 0.0f,
float t_RElbowYaw = 0.0f,
float t_RElbowRoll = 0.0f,
float t_RWristYaw = 0.0f,
float t_RHand = 0.0f,
float t_LHipYawPitch = 0.0f,
float t_LHipRoll = 0.0f,
float t_LHipPitch = 0.0f,
float t_LKneePitch = 0.0f,
float t_LAnklePitch = 0.0f,
float t_LAnkleRoll = 0.0f,
float t_RHipRoll = 0.0f,
float t_RHipPitch = 0.0f,
float t_RKneePitch = 0.0f,
float t_RAnklePitch = 0.0f,
float t_RAnkleRoll = 0.0f) {
125 this->init(t_HeadYaw, t_HeadPitch, t_LShoulderPitch, t_LShoulderRoll, t_LElbowYaw, t_LElbowRoll, t_LWristYaw, t_LHand, t_RShoulderPitch, t_RShoulderRoll, t_RElbowYaw, t_RElbowRoll, t_RWristYaw, t_RHand, t_LHipYawPitch, t_LHipRoll, t_LHipPitch, t_LKneePitch, t_LAnklePitch, t_LAnkleRoll, t_RHipRoll, t_RHipPitch, t_RKneePitch, t_RAnklePitch, t_RAnkleRoll);
132 this->init(t_other.
HeadYaw(), t_other.
HeadPitch(), t_other.
LShoulderPitch(), t_other.
LShoulderRoll(), t_other.
LElbowYaw(), t_other.
LElbowRoll(), t_other.
LWristYaw(), t_other.
LHand(), t_other.
RShoulderPitch(), t_other.
RShoulderRoll(), t_other.
RElbowYaw(), t_other.
RElbowRoll(), t_other.
RWristYaw(), t_other.
RHand(), t_other.
LHipYawPitch(), t_other.
LHipRoll(), t_other.
LHipPitch(), t_other.
LKneePitch(), t_other.
LAnklePitch(), t_other.
LAnkleRoll(), t_other.
RHipRoll(), t_other.
RHipPitch(), t_other.
RKneePitch(), t_other.
RAnklePitch(), t_other.
RAnkleRoll());
139 this->init(t_other.
HeadYaw, t_other.
HeadPitch, t_other.
LShoulderPitch, t_other.
LShoulderRoll, t_other.
LElbowYaw, t_other.
LElbowRoll, t_other.
LWristYaw, t_other.
LHand, t_other.
RShoulderPitch, t_other.
RShoulderRoll, t_other.
RElbowYaw, t_other.
RElbowRoll, t_other.
RWristYaw, t_other.
RHand, t_other.
LHipYawPitch, t_other.
LHipRoll, t_other.
LHipPitch, t_other.
LKneePitch, t_other.
LAnklePitch, t_other.
LAnkleRoll, t_other.
RHipRoll, t_other.
RHipPitch, t_other.
RKneePitch, t_other.
RAnklePitch, t_other.
RAnkleRoll);
146 this->init(t_other.
HeadYaw(), t_other.
HeadPitch(), t_other.
LShoulderPitch(), t_other.
LShoulderRoll(), t_other.
LElbowYaw(), t_other.
LElbowRoll(), t_other.
LWristYaw(), t_other.
LHand(), t_other.
RShoulderPitch(), t_other.
RShoulderRoll(), t_other.
RElbowYaw(), t_other.
RElbowRoll(), t_other.
RWristYaw(), t_other.
RHand(), t_other.
LHipYawPitch(), t_other.
LHipRoll(), t_other.
LHipPitch(), t_other.
LKneePitch(), t_other.
LAnklePitch(), t_other.
LAnkleRoll(), t_other.
RHipRoll(), t_other.
RHipPitch(), t_other.
RKneePitch(), t_other.
RAnklePitch(), t_other.
RAnkleRoll());
154 this->init(t_other.
HeadYaw, t_other.
HeadPitch, t_other.
LShoulderPitch, t_other.
LShoulderRoll, t_other.
LElbowYaw, t_other.
LElbowRoll, t_other.
LWristYaw, t_other.
LHand, t_other.
RShoulderPitch, t_other.
RShoulderRoll, t_other.
RElbowYaw, t_other.
RElbowRoll, t_other.
RWristYaw, t_other.
RHand, t_other.
LHipYawPitch, t_other.
LHipRoll, t_other.
LHipPitch, t_other.
LKneePitch, t_other.
LAnklePitch, t_other.
LAnkleRoll, t_other.
RHipRoll, t_other.
RHipPitch, t_other.
RKneePitch, t_other.
RAnklePitch, t_other.
RAnkleRoll);
167 && fabsf(
LHand() - t_other.
LHand()) < FLT_EPSILON
173 && fabsf(
RHand() - t_other.
RHand()) < FLT_EPSILON
189 return !(*
this == t_other);
199 return !(*
this == t_other);
577#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
587#ifdef USE_WB_NAO_JOINT_LIST_FLOAT_C_CONVERSION
590 std::string descr = buffer;
593 std::ostringstream ss;
594 ss <<
"HeadYaw=" << this->
HeadYaw();
608 ss <<
"LHand=" << this->
LHand();
620 ss <<
"RHand=" << this->
RHand();
624 ss <<
"LHipRoll=" << this->
LHipRoll();
634 ss <<
"RHipRoll=" << this->
RHipRoll();
648#ifdef USE_WB_NAO_JOINT_LIST_FLOAT_C_CONVERSION
651 std::string toString = buffer;
654 std::ostringstream ss;
708#ifdef USE_WB_NAO_JOINT_LIST_FLOAT_C_CONVERSION
713 char * str_cstr =
const_cast<char *
>(t_str.c_str());
714 size_t temp_length = strlen(str_cstr);
715 int length = (temp_length <= INT_MAX) ? static_cast<int>(
static_cast<ssize_t
>(temp_length)) : -1;
720 char* var_str = &var_str_buffer[0];
722 char* key = &key_buffer[0];
729 if (index == 0 && str_cstr[0] ==
'{') {
735 for (
int i = index; i < length; i++) {
737 if (bracecount == 0 && str_cstr[i] ==
'=') {
742 if (bracecount == 0 && isspace(str_cstr[i])) {
749 if (bracecount == 0 && str_cstr[i] ==
',') {
753 if (str_cstr[i] ==
'{') {
757 if (str_cstr[i] ==
'}') {
759 if (bracecount < 0) {
764 if (i == length - 1) {
768 if (endKey >= startKey && endKey - startKey < length) {
769 strncpy(key, str_cstr + startKey,
static_cast<size_t>((endKey - startKey) + 1));
770 key[(endKey - startKey) + 1] = 0;
774 strncpy(var_str, str_cstr + startVar,
static_cast<size_t>((index - startVar) + 1));
775 var_str[(index - startVar) + 1] = 0;
781 if (strlen(key) > 0) {
782 if (0 == strcmp(
"HeadYaw", key)) {
784 }
else if (0 == strcmp(
"HeadPitch", key)) {
786 }
else if (0 == strcmp(
"LShoulderPitch", key)) {
788 }
else if (0 == strcmp(
"LShoulderRoll", key)) {
790 }
else if (0 == strcmp(
"LElbowYaw", key)) {
792 }
else if (0 == strcmp(
"LElbowRoll", key)) {
794 }
else if (0 == strcmp(
"LWristYaw", key)) {
796 }
else if (0 == strcmp(
"LHand", key)) {
798 }
else if (0 == strcmp(
"RShoulderPitch", key)) {
800 }
else if (0 == strcmp(
"RShoulderRoll", key)) {
802 }
else if (0 == strcmp(
"RElbowYaw", key)) {
804 }
else if (0 == strcmp(
"RElbowRoll", key)) {
806 }
else if (0 == strcmp(
"RWristYaw", key)) {
808 }
else if (0 == strcmp(
"RHand", key)) {
810 }
else if (0 == strcmp(
"LHipYawPitch", key)) {
812 }
else if (0 == strcmp(
"LHipRoll", key)) {
814 }
else if (0 == strcmp(
"LHipPitch", key)) {
816 }
else if (0 == strcmp(
"LKneePitch", key)) {
818 }
else if (0 == strcmp(
"LAnklePitch", key)) {
820 }
else if (0 == strcmp(
"LAnkleRoll", key)) {
822 }
else if (0 == strcmp(
"RHipRoll", key)) {
824 }
else if (0 == strcmp(
"RHipPitch", key)) {
826 }
else if (0 == strcmp(
"RKneePitch", key)) {
828 }
else if (0 == strcmp(
"RAnklePitch", key)) {
830 }
else if (0 == strcmp(
"RAnkleRoll", key)) {
840 this->
set_HeadYaw(
static_cast<float>(atof(var_str)));
875 this->
set_LHand(
static_cast<float>(atof(var_str)));
905 this->
set_RHand(
static_cast<float>(atof(var_str)));
967 }
while(index < length);
Provides a C++ wrapper around wb_nao_joint_list_float.
const float & RHand() const
const float & HeadYaw() const
void set_RElbowRoll(const float &t_newValue)
const float & LHand() const
void set_LShoulderPitch(const float &t_newValue)
const float & RKneePitch() const
const float & RShoulderRoll() const
const float & LWristYaw() const
NaoJointListFloat(const std::string &t_str)
String Constructor.
const float & RAnklePitch() const
const float & LAnkleRoll() const
void set_HeadYaw(const float &t_newValue)
NaoJointListFloat(const struct wb_nao_joint_list_float &t_other)
Copy Constructor.
const float & RAnkleRoll() const
void set_LHipPitch(const float &t_newValue)
void set_LHipRoll(const float &t_newValue)
void set_LAnklePitch(const float &t_newValue)
void set_LElbowRoll(const float &t_newValue)
const float & LHipYawPitch() const
const float & RElbowRoll() const
const float & HeadPitch() const
const float & LAnklePitch() const
void set_HeadPitch(const float &t_newValue)
bool operator!=(const NaoJointListFloat &t_other) const
const float & RHipPitch() const
void set_LAnkleRoll(const float &t_newValue)
std::string description()
void set_RWristYaw(const float &t_newValue)
void set_RHipRoll(const float &t_newValue)
const float & RElbowYaw() const
void from_string(const std::string &t_str)
void set_RKneePitch(const float &t_newValue)
void set_LKneePitch(const float &t_newValue)
void set_LHand(const float &t_newValue)
const float & LHipRoll() const
void set_LHipYawPitch(const float &t_newValue)
NaoJointListFloat(const NaoJointListFloat &t_other)
Copy Constructor.
void set_RAnklePitch(const float &t_newValue)
const float & RWristYaw() const
const float & LHipPitch() const
bool operator==(const NaoJointListFloat &t_other) const
void set_LShoulderRoll(const float &t_newValue)
void set_RHipPitch(const float &t_newValue)
void set_LWristYaw(const float &t_newValue)
const float & RShoulderPitch() const
const float & LElbowYaw() const
const float & LShoulderPitch() const
const float & LElbowRoll() const
const float & RHipRoll() const
void set_RShoulderPitch(const float &t_newValue)
const float & LShoulderRoll() const
NaoJointListFloat & operator=(const NaoJointListFloat &t_other)
Copy Assignment Operator.
void set_RHand(const float &t_newValue)
const float & LKneePitch() const
NaoJointListFloat(float t_HeadYaw=0.0f, float t_HeadPitch=0.0f, float t_LShoulderPitch=0.0f, float t_LShoulderRoll=0.0f, float t_LElbowYaw=0.0f, float t_LElbowRoll=0.0f, float t_LWristYaw=0.0f, float t_LHand=0.0f, float t_RShoulderPitch=0.0f, float t_RShoulderRoll=0.0f, float t_RElbowYaw=0.0f, float t_RElbowRoll=0.0f, float t_RWristYaw=0.0f, float t_RHand=0.0f, float t_LHipYawPitch=0.0f, float t_LHipRoll=0.0f, float t_LHipPitch=0.0f, float t_LKneePitch=0.0f, float t_LAnklePitch=0.0f, float t_LAnkleRoll=0.0f, float t_RHipRoll=0.0f, float t_RHipPitch=0.0f, float t_RKneePitch=0.0f, float t_RAnklePitch=0.0f, float t_RAnkleRoll=0.0f)
Create a new NaoJointListFloat.
void set_RShoulderRoll(const float &t_newValue)
void set_LElbowYaw(const float &t_newValue)
void set_RAnkleRoll(const float &t_newValue)
void set_RElbowYaw(const float &t_newValue)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_nao_joint_list_float_description(const struct wb_nao_joint_list_float *self, char *descString, size_t bufferSize)
Convert to a description string.
struct wb_nao_joint_list_float * wb_nao_joint_list_float_from_string(struct wb_nao_joint_list_float *self, const char *str)
Convert from a string.
const char * wb_nao_joint_list_float_to_string(const struct wb_nao_joint_list_float *self, char *toString, size_t bufferSize)
Convert to a string.
#define NAO_JOINT_LIST_FLOAT_DESC_BUFFER_SIZE
#define NAO_JOINT_LIST_FLOAT_TO_STRING_BUFFER_SIZE