Beispiel #1
0
 def __init__(self, handle: Object):
     super(Human, self).__init__()
     self.handle = handle
     handle.value = 0
     children = handle.get_objects_in_tree(handle)
     for child in children:
         name = child.get_name()
         if 'Bill_goalPosCylinder' in name:
             self.dummy_handle = child.get_parent()
Beispiel #2
0
 def __init__(self, handle: Object):
     super(HumanOnPath, self).__init__()
     self.handle = handle
     handle.value = 0
     children = self.handle.get_objects_in_tree()
     for child in children:
         name = child.get_name()
         if 'Bill_base' in name:
             self.human_handle = child
Beispiel #3
0
    def __init__(self, handle: Object):
        super(Human, self).__init__()
        self.handle = handle
        handle.value = 0
        children = handle.get_objects_in_tree(handle)
        for child in children:
            name = child.get_name()
            if 'Bill_goalPosCylinder' in name:
                self.dummy_handle = child.get_parent()
                # self.dummy_handle._set_property(prop_type: int, value: bool) -> None:

        pos = self.handle.get_position()
        self.ss1 = Shape.create(type=PrimitiveShape.CONE,
                                color=[1, 0, 0],
                                size=[0.75, 0.75, 0.0015],
                                position=[pos[0], pos[1], 0],
                                orientation=[3.14, 0, 3.14])
        self.ss1.set_color([1, 0, 0])
        self.ss1.set_position([pos[0], pos[1], 0])
        self.ss1.set_orientation([3.14, 0, 3.14])
        self.ss1.set_dynamic(False)
        self.ss1.set_renderable(False)
        self.set_model(True)