Revision bd86bb92 client/python/test_relative_gaze.py
| 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 |
|
Also available in: Unified diff