Revision bd86bb92
| client/python/test_relative_gaze.py | ||
|---|---|---|
| 31 | 31 |
import time |
| 32 | 32 |
import sys |
| 33 | 33 |
import random |
| 34 |
import errno |
|
| 34 | 35 |
|
| 35 | 36 |
if __name__ == "__main__": |
| 36 | 37 |
random.seed() |
| 37 |
r = RobotController("ROS", "/flobi", logging.DEBUG)
|
|
| 38 |
|
|
| 39 |
if (len(sys.argv) != 2): |
|
| 40 |
print("ERROR: invalid parameter count.\nusage: %s <scope>\n\n" % (str(sys.argv[0])));
|
|
| 41 |
sys.exit(errno.EACCES) |
|
| 42 |
|
|
| 43 |
scope = str(sys.argv[1]) |
|
| 44 |
r = RobotController("ROS", scope, logging.DEBUG)
|
|
| 38 | 45 |
|
| 39 | 46 |
g = RobotGaze() |
| 40 | 47 |
|
| client/python/tools/plot_relative_gazetargets.sh | ||
|---|---|---|
| 5 | 5 |
plot "${FILE}" using (\$1-${offset}):2 w l t "pan_now", \
|
| 6 | 6 |
"${FILE}" using (\$1-${offset}):3 w l t "tilt_now",\
|
| 7 | 7 |
"${FILE}" using (\$4-${offset}):5 t "target rel pan",\
|
| 8 |
"${FILE}" using (\$1-${offset}):5 t "target rel pan [INCOMING TS]",\
|
|
| 8 | 9 |
"${FILE}" using (\$4-${offset}):6 t "target rel tilt",\
|
| 9 | 10 |
"${FILE}" using (\$1-${offset}):7 w l t "target pan",\
|
| 10 | 11 |
"${FILE}" using (\$1-${offset}):8 w l t "target tilt",\
|
Also available in: Unified diff