60#ifndef wb_hal_leg_target_h
61#define wb_hal_leg_target_h
63#pragma clang diagnostic push
64#pragma clang diagnostic ignored "-Wreserved-id-macro"
68# define _POSIX_SOURCE 200112L
72# define _XOPEN_SOURCE 700
75# ifndef _DARWIN_C_SOURCE
76# define _DARWIN_C_SOURCE 200112L
78# ifndef __DARWIN_C_LEVEL
79# define __DARWIN_C_LEVEL 200112L
83#pragma clang diagnostic pop
91#define LEFT_LEG (static_cast<uint8_t>(0))
92#define RIGHT_LEG (static_cast<uint8_t>(1))
94#define LEFT_LEG ((uint8_t)0)
95#define RIGHT_LEG ((uint8_t)1)
104#define HIP_YAWPITCH_LIMIT_BACK_DEG -65.62f
105#define HIP_YAWPITCH_LIMIT_FRONT_DEG 42.44f
107#define LEFT_HIP_ROLL_OUT_DEG 45.29f
108#define LEFT_HIP_ROLL_IN_DEG -21.74f
109#define LEFT_HIP_PITCH_FRONT_DEG -88.00f
110#define LEFT_HIP_PITCH_BACK_DEG 27.73f
111#define LEFT_KNEE_PITCH_FRONT_DEG -5.29f
112#define LEFT_KNEE_PITCH_BACK_DEG 121.04f
113#define LEFT_ANKLE_PITCH_FRONT_DEG -68.15f
114#define LEFT_ANKLE_PITCH_BACK_DEG 52.86f
115#define LEFT_ANKLE_ROLL_OUT_DEG 44.06f
116#define LEFT_ANKLE_ROLL_IN_DEG -22.79f
118#define RIGHT_HIP_ROLL_OUT_DEG -45.29f
119#define RIGHT_HIP_ROLL_IN_DEG 21.74f
120#define RIGHT_HIP_PITCH_FRONT_DEG -88.00f
121#define RIGHT_HIP_PITCH_BACK_DEG 27.73f
122#define RIGHT_KNEE_PITCH_FRONT_DEG -5.90f
123#define RIGHT_KNEE_PITCH_BACK_DEG 121.47f
124#define RIGHT_ANKLE_PITCH_FRONT_DEG -67.97f
125#define RIGHT_ANKLE_PITCH_BACK_DEG 53.40f
126#define RIGHT_ANKLE_ROLL_OUT_DEG -44.06f
127#define RIGHT_ANKLE_ROLL_IN_DEG 22.80f
130#define HIP_YAWPITCH_LIMIT_BACK_RAD -1.145303f
131#define HIP_YAWPITCH_LIMIT_FRONT_RAD 0.740810f
133#define LEFT_HIP_ROLL_OUT_RAD 0.790477f
134#define LEFT_HIP_ROLL_IN_RAD -0.379472f
135#define LEFT_HIP_PITCH_FRONT_RAD -1.535889f
136#define LEFT_HIP_PITCH_BACK_RAD 0.484090f
137#define LEFT_KNEE_PITCH_FRONT_RAD -0.092346f
138#define LEFT_KNEE_PITCH_BACK_RAD 2.112528f
139#define LEFT_ANKLE_PITCH_FRONT_RAD -1.189516f
140#define LEFT_ANKLE_PITCH_BACK_RAD 0.922747f
141#define LEFT_ANKLE_ROLL_OUT_RAD 0.769001f
142#define LEFT_ANKLE_ROLL_IN_RAD -0.397880f
144#define RIGHT_HIP_ROLL_OUT_RAD -0.790477f
145#define RIGHT_HIP_ROLL_IN_RAD 0.379472f
146#define RIGHT_HIP_PITCH_FRONT_RAD -1.535889f
147#define RIGHT_HIP_PITCH_BACK_RAD 0.484090f
148#define RIGHT_KNEE_PITCH_FRONT_RAD -0.103083f
149#define RIGHT_KNEE_PITCH_BACK_RAD 2.120198f
150#define RIGHT_ANKLE_PITCH_FRONT_RAD -1.186448f
151#define RIGHT_ANKLE_PITCH_BACK_RAD 0.932056f
152#define RIGHT_ANKLE_ROLL_OUT_RAD -0.768992f
153#define RIGHT_ANKLE_ROLL_IN_RAD 0.397935f
155#define HAL_LEG_TARGET_GENERATED
156#define HAL_LEG_TARGET_C_STRUCT wb_hal_leg_target
157#define HAL_LEG_TARGET_NUMBER_OF_VARIABLES 23
159#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
160#define HAL_LEG_TARGET_DESC_BUFFER_SIZE 691
161#define HAL_LEG_TARGET_TO_STRING_BUFFER_SIZE 204
291#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
310#ifdef WHITEBOARD_POSTER_STRING_CONVERSION
WHITEBOARD_POSTER_STRING_CONVERSION.
uint8_t target_pliability
target leg's pliability when in Passive Mode; When the leg is passive, this value reduces the update ...
uint8_t target_hipyawpitchstiffness
target hip yaw pitch stiffness as a percentage
uint8_t target_hiprollstiffness
target hip roll stiffness as a percentage
uint8_t target_kneepitchstiffness
target knee pitch stiffness as a percentage
unsigned int target_anklepitch_active
Is the ankle pitch Active (true[DEFAULT]) or Passive (false)
uint8_t target_anklerollstiffness
target ankle roll stiffness as a percentage
int16_t target_hipyawpitch
target hip yaw pitch angle in 10ths of degrees
uint8_t target_leg
target leg number; This property is used strictly for accounting purposes when the struct is stored w...
uint8_t target_anklepitchstiffness
target ankle pitch stiffness as a percentage
unsigned int target_ankleroll_active
Is the ankle roll Active (true[DEFAULT]) or Passive (false)
unsigned int target_hiproll_active
Is the hip roll Active (true[DEFAULT]) or Passive (false)
unsigned int target_hipyawpitch_active
Is the hipyawpitch Active (true[DEFAULT]) or Passive (false).
int16_t target_kneepitch
target knee pitch angle in 10ths of degrees
int32_t target_movement_time
Control Message: The elapsed time, in mSec, in which the movement should be completed.
int16_t target_anklepitch
target ankle pitch angle in 10ths of degrees
int16_t target_ankleroll
target ankle roll angle in 10ths of degrees
unsigned int target_kneepitch_active
Is the knee pitch Active (true[DEFAULT]) or Passive (false)
unsigned int target_leg_stop
Control Message: Stop the leg at its current location.
unsigned int target_hippitch_active
Is the hip pitch Active (true[DEFAULT]) or Passive (false)
uint8_t target_hippitchstiffness
target hip pitch stiffness as a percentage
int16_t target_hiproll
target hip roll angle angle in 10ths of degrees
unsigned int target_leg_at_goal
Control Message: Not used.
int16_t target_hippitch
target hip pitch angle in 10ths of degrees
const char * wb_hal_leg_target_to_string(const struct wb_hal_leg_target *self, char *toString, size_t bufferSize)
Convert to a string.
size_t wb_hal_leg_target_to_network_serialised(const struct wb_hal_leg_target *self, char *dst)
Network stream serialisation.
const char * wb_hal_leg_target_value_description(const struct wb_hal_leg_target *self, char *toString, size_t bufferSize)
WHITEBOARD_POSTER_STRING_CONVERSION.
const char * wb_hal_leg_target_description(const struct wb_hal_leg_target *self, char *descString, size_t bufferSize)
Convert to a description string.
struct wb_hal_leg_target * wb_hal_leg_target_from_string(struct wb_hal_leg_target *self, const char *str)
Convert from a string.
size_t wb_hal_leg_target_from_network_serialised(const char *src, struct wb_hal_leg_target *dst)
Network stream deserialisation.