Revision 2416b4b0

View differences:

client/python/hlrc_client/hlrc_test_relative_gaze.py
51 51
    #at this specific time, it should only resolve to ONE
52 52
    #target gaze:
53 53
    g.gaze_type = RobotGaze.GAZETARGET_RELATIVE
54
    g.gaze_timestamp = RobotTimestamp()
55
    g.pan = random.uniform(-20, 20)
56

  
57

  
54
   
58 55
    while(r.is_running()):
59
        r.set_gaze_target(g, True)
60
        time.sleep(1.0 / 50.0)
56
        g.gaze_timestamp = RobotTimestamp()
57
        g.pan = random.uniform(-20, 20)
58

  
59
        for t in range(50):
60
            r.set_gaze_target(g, True)
61
            time.sleep(1.0 / 50.0)
61 62

  
62 63

  
63 64
if __name__ == '__main__':

Also available in: Unified diff