Revision e983fef1 client/python/hlrc_client/RobotGaze.py
| client/python/hlrc_client/RobotGaze.py | ||
|---|---|---|
| 25 | 25 |
Excellence Initiative. |
| 26 | 26 |
""" |
| 27 | 27 |
|
| 28 |
import time |
|
| 28 | 29 |
|
| 29 | 30 |
class RobotGaze: |
| 30 | 31 |
GAZETARGET_ABSOLUTE = 0 |
| ... | ... | |
| 38 | 39 |
self.pan_offset = 0.0 |
| 39 | 40 |
self.tilt_offset = 0.0 |
| 40 | 41 |
self.gaze_type = RobotGaze.GAZETARGET_ABSOLUTE |
| 41 |
self.timestamp = self.now()
|
|
| 42 |
self.timestamp = time.time()
|
|
| 42 | 43 |
|
| 43 | 44 |
def __str__(self): |
| 44 | 45 |
if (self.gaze_type == RobotGaze.GAZETARGET_ABSOLUTE): |
Also available in: Unified diff