Revision 07e68eb7 examples/humotion_yarp_icub/src/icub_jointinterface.cpp
examples/humotion_yarp_icub/src/icub_jointinterface.cpp | ||
---|---|---|
131 | 131 |
enum_id_bimap_t::const_iterator it; |
132 | 132 |
for (it = enum_id_bimap.begin(); it != enum_id_bimap.end(); ++it) { |
133 | 133 |
int id = it->left; |
134 |
pv_mix_pid_p_[id] = 15.5;
|
|
134 |
pv_mix_pid_p_[id] = 5.5; |
|
135 | 135 |
pv_mix_pid_d_[id] = 0.3; |
136 | 136 |
pv_mix_last_error_[id] = 0.0; |
137 | 137 |
} |
... | ... | |
172 | 172 |
float target_position_pan = (target_position_right + target_position_left) / 2; |
173 | 173 |
float target_position_vergence = (target_position_right - target_position_left); |
174 | 174 |
|
175 |
cout << "LR " << target_position_left << " " << target_position_right << |
|
176 |
" PAN " << target_position_pan << " VERGENCE " << target_position_vergence << "\n"; |
|
175 |
/*cout << "LR " << target_position_left << " " << target_position_right <<
|
|
176 |
" PAN " << target_position_pan << " VERGENCE " << target_position_vergence << "\n";*/
|
|
177 | 177 |
|
178 | 178 |
// calculate target velocities |
179 | 179 |
// for now just use the same velocity for pan and vergence |
... | ... | |
197 | 197 |
//! \param id of joint |
198 | 198 |
//! \param float value of position |
199 | 199 |
void iCubJointInterface::store_icub_joint_target(int icub_id, float position, float velocity) { |
200 |
cout << "store_icub_joint_target(" << icub_id << ", " << position << ", ..)\n"; |
|
200 |
//cout << "store_icub_joint_target(" << icub_id << ", " << position << ", ..)\n";
|
|
201 | 201 |
|
202 | 202 |
if ((icub_id == ICUB_ID_NECK_PAN) || (icub_id == ICUB_ID_EYES_VERGENCE)) { |
203 | 203 |
// icub uses an inverted neck pan specification |
Also available in: Unified diff