Revision 10cae485 examples/meka/src/mekajointinterface.cpp
examples/meka/src/mekajointinterface.cpp | ||
---|---|---|
124 | 124 |
|
125 | 125 |
trajectory_msgs::JointTrajectoryPoint p; |
126 | 126 |
p.positions.push_back(joint_target[ID_NECK_TILT] * M_PI / 180.0); |
127 |
p.positions.push_back(joint_target[ID_NECK_PAN] * M_PI / 180.0); |
|
127 |
p.positions.push_back(joint_target[ID_NECK_PAN] * M_PI / 180.0 +0.314); |
|
128 |
printf("targets pan=%4.1f tilt=%4.1f (eye p %4.1f t %4.2f)\n",joint_target[ID_NECK_TILT],joint_target[ID_NECK_PAN],joint_target[ID_EYES_LEFT_LR],joint_target[ID_EYES_BOTH_UD]); |
|
128 | 129 |
|
129 | 130 |
p.time_from_start = ros::Duration(1.2 * 1.0 / humotion::server::Server::MOTION_UPDATERATE); |
130 | 131 |
|
... | ... | |
202 | 203 |
} |
203 | 204 |
|
204 | 205 |
void MekaJointInterface::init_joints(){ |
205 |
store_min_max(ID_NECK_TILT, -10, 10);
|
|
206 |
store_min_max(ID_NECK_PAN, -10, 10);
|
|
206 |
store_min_max(ID_NECK_TILT, -18, 1);
|
|
207 |
store_min_max(ID_NECK_PAN, -56, 56);
|
|
207 | 208 |
|
208 | 209 |
store_min_max(ID_NECK_ROLL, -1, 1); |
209 | 210 |
store_min_max(ID_EYES_BOTH_UD, -1, 1); |
Also available in: Unified diff