Пример #1
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'base.dae')
     mesh.rotateZ(np.pi)
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #2
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(_DAE_PATH + "wrist3.dae")
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.1)
     self.add(axes)
Пример #3
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'wrist1.dae')
     mesh.position = (0.0, -0.10915 + (-0.1197 + 0.13585), 0)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #4
0
 def __init__(self):
     Link.__init__(self)
     mesh = ColladaMesh(dae_path + 'link_6.dae', scale=0.001)
     mesh.rotateY(-np.pi / 2)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #5
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'wrist3.dae')
     mesh.position = (0.0, 0.0, -0.0823)
     mesh.rotateX(np.pi / 2)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #6
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'shoulder.dae')
     mesh.rotateX(-np.pi / 2)
     mesh.rotateZ(np.pi)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #7
0
 def __init__(self):
     Link.__init__(self)
     mesh = ColladaMesh(dae_path + 'link_1.dae', scale=0.001)
     mesh.rotateX(np.pi / 2)
     mesh.position = (-0.025, 0.0, 0.0)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #8
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'forearm.dae')
     self.mesh = mesh
     mesh.rotateX(np.pi / 2)
     mesh.position = (0.39225, 0., -0.1197 + 0.13585)
     mesh.rotateY(-np.pi / 2)
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #9
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'upperarm.dae')
     mesh.rotateX(np.pi / 2)
     mesh.rotateY(-np.pi / 2)
     mesh.position = (0.425, 0, 0.13585)
     self.mesh = mesh
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)
Пример #10
0
    def __init__(self, size: float = 20, *args, **kwargs):
        """
        Add a set of axes to the origin.

        Arguments:
            size (float: 20): The length of each axis into the positive values.



        """
        super().__init__(*args, **kwargs)
        self._objects.append(AxesHelper(size=size))
        self._size = size
Пример #11
0
 def __init__(self):
     Object3D.__init__(self)
     mesh = ColladaMesh(dae_path + 'base_link.dae', scale=0.001)
     self.add(mesh)
     axes = AxesHelper(size=0.5)
     self.add(axes)