Revision 4bd3e852 client/python/tools/dump_relative_gazetargets.py
client/python/tools/dump_relative_gazetargets.py | ||
---|---|---|
11 | 11 |
small code snippet to dump humotion relative gaze targets |
12 | 12 |
combined with the current gaze direction from tf |
13 | 13 |
""" |
14 |
USE_MEKA_TOPICS=False
|
|
14 |
USE_MEKA_TOPICS=True
|
|
15 | 15 |
|
16 |
humotion_gaze_topic = "/flobi/humotion/gaze/target" |
|
17 |
tf_topic_base = "BASE_LINK" |
|
18 |
tf_topic_gaze_l = "EYES_LEFT_UD_VIRTUAL_LINK" |
|
19 |
tf_topic_gaze_r = "EYES_RIGHT_UD_VIRTUAL_LINK" |
|
20 | 16 |
|
21 | 17 |
#joint targets |
22 | 18 |
if USE_MEKA_TOPICS: |
19 |
humotion_gaze_topic = "/flobi/humotion/gaze/target" |
|
20 |
tf_topic_base = "BASE_LINK" |
|
21 |
tf_topic_gaze_l = "EYES_LEFT_UD_VIRTUAL_LINK" |
|
22 |
tf_topic_gaze_r = "EYES_RIGHT_UD_VIRTUAL_LINK" |
|
23 | 23 |
from trajectory.msg import * |
24 | 24 |
topic_joint_target = "/meka_roscontrol/head_position_trajectory_controller/command" |
25 | 25 |
else: |
26 |
humotion_gaze_topic = "/flobi/humotion/gaze/target" |
|
27 |
tf_topic_base = "BASE_LINK" |
|
28 |
tf_topic_gaze_l = "EYES_LEFT_UD_VIRTUAL_LINK" |
|
29 |
tf_topic_gaze_r = "EYES_RIGHT_UD_VIRTUAL_LINK" |
|
26 | 30 |
from xsc3_server.msg import * |
27 | 31 |
topic_joint_target = "/xsc3/custom_joint_state" |
28 | 32 |
|
Also available in: Unified diff