Exemplo n.º 1
0
    def __init__(self):
        smach.State.__init__(self,
                             outcomes=['default', 'hello', 'turn_away'])
        self._humans = Humans()

        # init subscriber
        rospy.Subscriber('/quori/PMA/Camera_info', Humans, self.cb_sub_humans)
Exemplo n.º 2
0
    def __init__(self):
        smach.State.__init__(self,
                             outcomes=['default', 'many', 'noone', 'many_shy'])
        self._humans = Humans()

        # init subscriber
        rospy.Subscriber('/quori/PMA/Camera_info', Humans, self.cb_sub_humans)
Exemplo n.º 3
0
    def __init__(self):
        smach.State.__init__(self,
                             outcomes=['default', 'walking_close', 'walking_close_fast', 'walking_away'])
        # init subscriber
        rospy.Subscriber('/quori/PMA/Camera_info', Humans, self.cb_sub_humans)

        self._humans = Humans()
        self._depthHistory = []
Exemplo n.º 4
0
    def __init__(self):
        smach.State.__init__(self, outcomes=['default', 'straight'])
        # init subscriber
        self._humans = Humans()
        self._depthHistory = []
        self._squareDet = False

        # init subscriber
        rospy.Subscriber('/quori/PMA/Camera_info', Humans, self.cb_sub_humans)
Exemplo n.º 5
0
    def __init__(self):
        smach.State.__init__(self, outcomes=['default', 'close', 'far'])

        # init param
        self.closeDeterm = 20000
        self.farDeterm = 25000
        self.depth = -1.0
        self._humans = Humans()

        # init subscriber
        rospy.Subscriber('/quori/PMA/Camera_info', Humans, self.cb_sub_humans)