Ejemplo n.º 1
0
    def __init__(self, frame, name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
Ejemplo n.º 2
0
    def __init__(self, frame, name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
Ejemplo n.º 3
0
    def __init__(self, frame, half_extents=(1., 1., 1.), name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param half_extents: the half dimension of the box along x, y, z
        :type  half_extents: (3,)-array
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
        self.half_extents = half_extents
Ejemplo n.º 4
0
    def __init__(self, frame, radius=1., name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :type  float radius: the sphere radius
        :param string name: the shape's name

        """
        assert radius >= 0.
        Shape.__init__(self, frame, name)
        self.radius = radius
Ejemplo n.º 5
0
    def __init__(self, frame, radius=1., name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :type  float radius: the sphere radius
        :param string name: the shape's name

        """
        assert radius >= 0.
        Shape.__init__(self, frame, name)
        self.radius = radius
Ejemplo n.º 6
0
    def __init__(self, frame, half_extents=(1., 1., 1.), name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param half_extents: the half dimension of the box along x, y, z
        :type  half_extents: (3,)-array
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
        self.half_extents = half_extents
Ejemplo n.º 7
0
    def __init__(self, frame, length=1., radius=1., name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param float length: the cylinder length along z-axis
        :type  float radius: the cylinder radius
        :param string name: the shape's name

        """
        assert radius >= 0.
        Shape.__init__(self, frame, name)
        self.radius = radius
        self.length = length
Ejemplo n.º 8
0
    def __init__(self, frame, length=1., radius=1., name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param float length: the cylinder length along z-axis
        :type  float radius: the cylinder radius
        :param string name: the shape's name

        """
        assert radius >= 0.
        Shape.__init__(self, frame, name)
        self.radius = radius
        self.length = length
Ejemplo n.º 9
0
    def __init__(self, frame, coeffs=(0., 1., 0., 0.), name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param coeffs: coefficients `(a, b, c, d)` for the plane equation
        :type  coeffs: (4,)-array
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
        # normalize the plane normal
        coeffs = array(coeffs)
        n = norm(coeffs[0:3])
        self.coeffs = coeffs/n
Ejemplo n.º 10
0
    def __init__(self, frame, coeffs=(0., 1., 0., 0.), name=None):
        """
        :param frame: the frame the shape is attached to
        :type  frame: :class:`~arboris.core.Frame`
        :param coeffs: coefficients `(a, b, c, d)` for the plane equation
        :type  coeffs: (4,)-array
        :param string name: the shape's name

        """
        Shape.__init__(self, frame, name)
        # normalize the plane normal
        coeffs = array(coeffs)
        n = norm(coeffs[0:3])
        self.coeffs = coeffs / n
Ejemplo n.º 11
0
 def __init__(self, frame, radius=1., name=None):
     assert radius >= 0.
     Shape.__init__(self, frame, name)
     self.radius = radius
Ejemplo n.º 12
0
 def __init__(self, frame, name=None):
     Shape.__init__(self, frame, name)
Ejemplo n.º 13
0
 def __init__(self, frame, half_extents=(1., 1., 1.), name=None):
     Shape.__init__(self, frame, name)
     self.half_extents = half_extents
Ejemplo n.º 14
0
 def __init__(self, frame, coeffs=(0., 1., 0., 0.), name=None):
     Shape.__init__(self, frame, name)
     # normalize the plane normal
     coeffs = numpy.array(coeffs)
     n = numpy.linalg.norm(coeffs[0:3])
     self.coeffs = coeffs/n
Ejemplo n.º 15
0
 def __init__(self, frame, coeffs=(0., 1., 0., 0.), name=None):
     Shape.__init__(self, frame, name)
     # normalize the plane normal
     coeffs = numpy.array(coeffs)
     n = numpy.linalg.norm(coeffs[0:3])
     self.coeffs = coeffs / n
Ejemplo n.º 16
0
 def __init__(self, frame, name=None):
     Shape.__init__(self, frame, name)
Ejemplo n.º 17
0
 def __init__(self, frame, half_extents=(1., 1., 1.), name=None):
     Shape.__init__(self, frame, name)
     self.half_extents = half_extents
Ejemplo n.º 18
0
 def __init__(self, frame, radius=1., name=None):
     assert radius >= 0.
     Shape.__init__(self, frame, name)
     self.radius = radius