Revision 04cf2b6f client/python/tools/dump_relative_gazetargets.py
| client/python/tools/dump_relative_gazetargets.py | ||
|---|---|---|
| 80 | 80 |
id = ids[0] |
| 81 | 81 |
#print("> incoming target for joint %d" % (id))
|
| 82 | 82 |
if (id == 0x01): |
| 83 |
target_neck_pan = msg.target_position[0] |
|
| 83 |
target_neck_pan = - 180.0/math.pi * msg.target_position[0]
|
|
| 84 | 84 |
elif (id == 0x02): |
| 85 |
target_neck_tilt = msg.target_position[0] |
|
| 85 |
target_neck_tilt = 180.0/math.pi * msg.target_position[0]
|
|
| 86 | 86 |
elif (id == 0x04): |
| 87 |
target_eyes_tilt = msg.target_position[0] |
|
| 87 |
target_eyes_tilt = 180.0/math.pi * msg.target_position[0]
|
|
| 88 | 88 |
elif (id == 0x05): |
| 89 |
target_eye_l_pan = msg.target_position[0] |
|
| 89 |
target_eye_l_pan = 180.0/math.pi * msg.target_position[0]
|
|
| 90 | 90 |
elif (id == 0x06): |
| 91 |
target_eye_r_pan = msg.target_position[0] |
|
| 91 |
target_eye_r_pan = 180.0/math.pi * msg.target_position[0]
|
|
| 92 | 92 |
|
| 93 | 93 |
def incoming_humotion_gaze_target(msg): |
| 94 | 94 |
print("> incoming gaze @%f" % (msg.gaze_timestamp.to_sec()))
|
Also available in: Unified diff