17 vector<string> fSensorKeys;
20 fSensorKeys.resize(JOINTS_NUM);
24 for (
int i = 0; i < JOINTS_NUM; i++)
26 fSensorKeys[i] = joint_names[i] +
"/Position/Sensor/Value";
44 jointAliases.arraySetSize(2);
45 jointAliases[1].arraySetSize(JOINTS_NUM);
49 jointAliases[0] = std::string(
"jointActuator");
53 for (
int i = 0; i < JOINTS_NUM; i++)
55 jointAliases[1][i] = joint_names[i] +
"/Position/Actuator/Value";
59 catch (
const ALError &e)
66 jointAliases[0] = std::string(
"jointStiffness");
70 for (
int i = 0; i < JOINTS_NUM; i++)
72 jointAliases[1][i] = joint_names[i] +
"/Hardness/Actuator/Value";
76 catch (
const ALError &e)
84 jointAliases[1].clear();
85 jointAliases[1].arraySetSize(LOWER_JOINTS_NUM);
88 jointAliases[0] = std::string(
"lowerJointActuator");
92 for (
int i = 0; i < LOWER_JOINTS_NUM; i++)
94 jointAliases[1][i] = joint_names[i] +
"/Position/Actuator/Value";
98 catch (
const ALError &e)
121 for (
int i=0; i < LOWER_JOINTS_NUM; i++)
130 init_joint_angles[L_HIP_YAW_PITCH][0] = 0.0;
132 init_joint_angles[R_HIP_YAW_PITCH][0] = 0.0;
134 init_joint_angles[L_HIP_ROLL][0] = -0.000384;
135 init_joint_angles[L_HIP_PITCH][0] = -0.598291;
136 init_joint_angles[L_KNEE_PITCH][0] = 1.009413;
137 init_joint_angles[L_ANKLE_PITCH][0] = -0.492352;
138 init_joint_angles[L_ANKLE_ROLL][0] = 0.000469;
140 init_joint_angles[R_HIP_ROLL][0] = -0.000384;
141 init_joint_angles[R_HIP_PITCH][0] = -0.598219;
142 init_joint_angles[R_KNEE_PITCH][0] = 1.009237;
143 init_joint_angles[R_ANKLE_PITCH][0] = -0.492248;
144 init_joint_angles[R_ANKLE_ROLL][0] = 0.000469;
146 init_joint_angles[L_SHOULDER_PITCH][0] = 1.418908;
147 init_joint_angles[L_SHOULDER_ROLL][0] = 0.332836;
148 init_joint_angles[L_ELBOW_YAW][0] = -1.379108;
149 init_joint_angles[L_ELBOW_ROLL][0] = -1.021602;
150 init_joint_angles[L_WRIST_YAW][0] = -0.013848;
152 init_joint_angles[R_SHOULDER_PITCH][0] = 1.425128;
153 init_joint_angles[R_SHOULDER_ROLL][0] = -0.331386;
154 init_joint_angles[R_ELBOW_YAW][0] = 1.383626;
155 init_joint_angles[R_ELBOW_ROLL][0] = 1.029356;
156 init_joint_angles[R_WRIST_YAW][0] = -0.01078;
158 init_joint_angles[HEAD_PITCH][0] = 0.0;
159 init_joint_angles[HEAD_YAW][0] = 0.0;
void initJointAngles(ALValue &)
void initFastWrite(const vector< string > &)
Initializes variables, that are necessary for fast sending of parameters to DCM.
#define ORUW_THROW_ERROR(message, error)
ALPtr< DCMProxy > dcm_proxy
void initWalkCommands()
Initialize commands, that will be sent to DCM.
int * last_dcm_time_ms_ptr
ALPtr< ALMemoryProxy > memory_proxy
ALPtr< ALMemoryFastAccess > access_sensor_values
void initFastRead(const vector< string > &)
Initializes variables, that are necessary for fast reading of data from memory.