Revision e983fef1

View differences:

client/python/hlrc_client/MiddlewareROS.py
177 177
		else:
178 178
			goal.gaze_type = gazetargetGoal.RELATIVE
179 179

  
180
		goal.timestamp = rospy.Time.from_sec(timestamp)
181
	
182
	
180
		goal.timestamp = rospy.Time.from_sec(gaze.timestamp)
181
		
183 182
		#send the goal to the server
184 183
		self.gazetarget_client.send_goal(goal)
185 184
		
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