Revision c5a47e56 client/python/hlrc_client/MiddlewareROS.py

View differences:

client/python/hlrc_client/MiddlewareROS.py
170 170
		goal.vergence = gaze.vergence
171 171
		goal.pan_offset  = gaze.pan_offset
172 172
		goal.tilt_offset = gaze.tilt_offset
173
		
173

  
174
		#type
175
		if (gaze.gaze_type == RobotGaze.ABSOLUTE):
176
			goal.gaze_type = gazetargetGoal.ABSOLUTE
177
		else:
178
			goal.gaze_type = gazetargetGoal.RELATIVE
179

  
180
		goal.timestamp = rospy.Time.from_sec(timestamp)
181
	
182
	
174 183
		#send the goal to the server
175 184
		self.gazetarget_client.send_goal(goal)
176 185
		
......
280 289
			return emotionstateGoal.FEAR
281 290
		else:
282 291
			self.logger.error("invalid emotion type %d\n" % (value))
283
			return  emotionstateGoal.NEUTRAL
292
			return  emotionstateGoal.NEUTRAL

Also available in: Unified diff