Exemplo n.º 1
0
 def __init__(self, xyz='0 0 0', **kwargs):
     # We are not using Vector here because we
     # cannot attach _urdf_source to it due to __slots__
     xyz = _parse_floats(xyz)
     self.x = xyz[0]
     self.y = xyz[1]
     self.z = xyz[2]
     self.attr = kwargs
Exemplo n.º 2
0
 def __init__(self, xyz='1 0 0', **kwargs):
     # We are not using Vector here because we
     # cannot attach _urdf_source to it due to __slots__
     super(Axis, self).__init__()
     xyz = _parse_floats(xyz)
     xyz = Vector(*xyz)
     if xyz.length != 0:
         xyz.unitize()
     self.x = xyz[0]
     self.y = xyz[1]
     self.z = xyz[2]
     self.attr = kwargs