def __init__(self, overlaid_object):
        # Call the constructor of the parent class
        MorseOverlay.__init__(self, overlaid_object)

        # set random initial charge
        # minimum 20% to avoid initially broken down robots
        self.overlaid_object.local_data['charge'] = random.uniform(20., 100.)
示例#2
0
    def __init__(self, overlaid_object):
        # Call the constructor of the parent class
        MorseOverlay.__init__(self, overlaid_object)

        # if is object at hand
        self.is_obj = False

        # if current action is executed
        self.is_gr = False  # has grasped
        self.is_po = False  # has pointed out
        self.is_ca = False  # has canceled
示例#3
0
    def __init__(self, overlaid_object, namespace = None):
        # Call the constructor of the parent class
        MorseOverlay.__init__(self, overlaid_object)

        joints = list(overlaid_object.local_data.keys())

        self.namespace = namespace

        name = self.name().replace(".", "/")

        rospy.set_param(name + "/joints", joints)
        rospy.set_param(name + "/joint_trajectory_action/joints", joints)
    def __init__(self, overlaid_object, namespace=None):
        # Call the constructor of the parent class
        MorseOverlay.__init__(self, overlaid_object)

        joints = list(overlaid_object.local_data.keys())

        self.namespace = namespace

        name = self.name().replace(".", "/")

        rospy.set_param(name + "/joints", joints)
        rospy.set_param(name + "/joint_trajectory_action/joints", joints)
示例#5
0
 def __init__(self, overlaid_object):
     # Call the constructor of the parent class
     MorseOverlay.__init__(self, overlaid_object)
     self.ctrl = DummyPoster('fingerCntrl')
 def __init__(self, overlaid_object):
     # Call the constructor of the parent class
     MorseOverlay.__init__(self, overlaid_object)
     self._cntrl = DummyPoster("stereopixelCntrl")
示例#7
0
    def name(self):

        if self.namespace:
            return self.namespace
        else:
            return MorseOverlay.name(self)
 def __init__(self, overlaid_object):
     # Call the constructor of the parent class
     MorseOverlay.__init__(self, overlaid_object)
示例#9
0
 def __init__(self, overlaid_object):
     # Call the constructor of the parent class
     MorseOverlay.__init__(self, overlaid_object)
     self._cntrl = DummyPoster("viamCntrl")
示例#10
0
 def interrupt(self):
     if self._clean_track:
         self.overlaid_object.input_functions.pop()
         self.completed(status.PREEMPTED)
     self._interrupt()
     MorseOverlay.interrupt(self)
示例#11
0
 def __init__(self, overlaid_object):
     # Call the constructor of the parent class
     MorseOverlay.__init__(self, overlaid_object)
     self._clean_track = False
     self._rot = 1.0
     self.cntrl = DummyPoster("platineCntrl")
示例#12
0
 def interrupt(self):
     self.overlaid_object.stop()
     if self._clean_track:
         self.overlaid_object.input_functions.pop()
     MorseOverlay.interrupt(self)
    def __init__(self, overlaid_object):
        # Call the constructor of the parent class
        MorseOverlay.__init__(self, overlaid_object)

        # if current action is executed
        self.is_reset = False  # if human has returned to the initial position
示例#14
0
    def name(self):

        if self.namespace:
            return self.namespace
        else:
            return MorseOverlay.name(self)