Пример #1
0
    def force_gaze_action(gaze_action):
        '''Triggers a gaze action, even if enable_social_gaze is false.

        Args:
            gaze_action (int): One of the constants defined in
                Gaze.action.
        '''
        goal = GazeGoal()
        goal.action = gaze_action
        Response.gaze_client.send_goal(goal)
Пример #2
0
    def perform_gaze_action(gaze_action):
        '''Triggers a gaze action.

        Args:
            gaze_action (int): One of the constants defined in
                Gaze.action.
        '''
        goal = GazeGoal()
        goal.action = gaze_action
        Response.gaze_client.send_goal(goal)
Пример #3
0
    def perform_gaze_action(gaze_action):
        '''Triggers a gaze action.

        Args:
            gaze_action (int): One of the constants defined in
                Gaze.action.
        '''
        if Response._enable_social_gaze is None:
            Response._enable_social_gaze = rospy.get_param(
                '/enable_social_gaze', True)
        if Response._enable_social_gaze:
            goal = GazeGoal()
            goal.action = gaze_action
            Response.gaze_client.send_goal(goal)
Пример #4
0
    def force_look_at_point(point):
        '''Looks at a specific point even if enable_social_gaze is false

        Args:
            point (Point) in the base frame to look at
        '''
        Response.gaze_client.send_goal(GazeGoal(GazeGoal.LOOK_AT_POINT, point))
Пример #5
0
    def look_at_point(point):
        '''Looks at a specific point.

        Args:
            point (Point)
        '''
        Response.gaze_client.send_goal(GazeGoal(GazeGoal.LOOK_AT_POINT, point))
Пример #6
0
    def look_at_point(point):
        '''Looks at a specific point.

        Args:
            point (Point)
        '''
        if Response._enable_social_gaze is None:
            Response._enable_social_gaze = rospy.get_param(
                '/enable_social_gaze', True)
        if Response._enable_social_gaze:
            Response.gaze_client.send_goal(
                GazeGoal(GazeGoal.LOOK_AT_POINT, point))
Пример #7
0
 def perform_gaze_action(gaze_action):
     ''' Triggers a gaze action'''
     goal = GazeGoal()
     goal.action = gaze_action
     Response.gaze_client.send_goal(goal)
Пример #8
0
 def perform_gaze_action(gaze_action):
     ''' Triggers a gaze action'''
     goal = GazeGoal()
     goal.action = gaze_action
     Response.gaze_client.send_goal(goal)