Revision 90ec5ed2

View differences:

client/python/hlrc_client/RobotGaze.py
27 27

  
28 28
import time
29 29

  
30

  
30 31
class RobotGaze:
31
    GAZETARGET_ABSOLUTE = 0
32
    GAZETARGET_RELATIVE = 1
33 32

  
34 33
    def __init__(self):
34
        self.GAZETARGET_ABSOLUTE = 0
35
        self.GAZETARGET_RELATIVE = 1
35 36
        self.pan = 0.0
36 37
        self.tilt = 0.0
37 38
        self.roll = 0.0
38 39
        self.vergence = 0.0
39 40
        self.pan_offset = 0.0
40 41
        self.tilt_offset = 0.0
41
        self.gaze_type = RobotGaze.GAZETARGET_ABSOLUTE
42
        self.gaze_type = self.GAZETARGET_ABSOLUTE
42 43
        self.timestamp = time.time()
43 44

  
44 45
    def __str__(self):
45
        if (self.gaze_type == RobotGaze.GAZETARGET_ABSOLUTE):
46
        if self.gaze_type == self.GAZETARGET_ABSOLUTE:
46 47
            type_s = "ABSOLUTE"
47 48
        else:
48 49
            type_s = "RELATIVE"

Also available in: Unified diff