(self, geom_type, size, name=None, **kwargs)
Initializes the prop.

    Args:
      geom_type: String specifying the geom type.
      size: List or numpy array of up to 3 numbers, depending on `geom_type`:
        geom_type='box', size=[x_half_length, y_half_length, z_half_length]
        geom_type='capsule', size=[radius, half_length]
        geom_type='cylinder', size=[radius, half_length]
        geom_type='ellipsoid', size=[x_radius, y_radius, z_radius]
        geom_type='sphere', size=[radius]
      name: (optional) A string, the name of this prop.
      **kwargs: Additional geom parameters. Please see the MuJoCo documentation
        for further details: http://www.mujoco.org/book/XMLreference.html#geom.
Initializes the prop.
Initializes the prop .
def _build(self, geom_type, size, name=None, **kwargs):
    """Initializes the prop.

    Args:
      geom_type: String specifying the geom type.
      size: List or numpy array of up to 3 numbers, depending on `geom_type`:
        geom_type='box', size=[x_half_length, y_half_length, z_half_length]
        geom_type='capsule', size=[radius, half_length]
        geom_type='cylinder', size=[radius, half_length]
        geom_type='ellipsoid', size=[x_radius, y_radius, z_radius]
        geom_type='sphere', size=[radius]
      name: (optional) A string, the name of this prop.
      **kwargs: Additional geom parameters. Please see the MuJoCo documentation
        for further details: http://www.mujoco.org/book/XMLreference.html#geom.
    """
    self._mjcf_root = mjcf.element.RootElement(model=name)
    self._geom = self._mjcf_root.worldbody.add(
        'geom', name='geom', type=geom_type, size=size, **kwargs)
    self._position = self._mjcf_root.sensor.add(
        'framepos', name='position', objtype='geom', objname=self.geom)
    self._orientation = self._mjcf_root.sensor.add(
        'framequat', name='orientation', objtype='geom', objname=self.geom)
    self._linear_velocity = self._mjcf_root.sensor.add(
        'framelinvel', name='linear_velocity', objtype='geom',
        objname=self.geom)
    self._angular_velocity = self._mjcf_root.sensor.add(
        'frameangvel', name='angular_velocity', objtype='geom',
        objname=self.geom)
def _build ( self , geom_type , size , name = None , * * kwargs ) : self . _mjcf_root = mjcf . element . RootElement ( model = name ) self . _geom = self . _mjcf_root . worldbody . add ( 'geom' , name = 'geom' , type = geom_type , size = size , * * kwargs ) self . _position = self . _mjcf_root . sensor . add ( 'framepos' , name = 'position' , objtype = 'geom' , objname = self . geom ) self . _orientation = self . _mjcf_root . sensor . add ( 'framequat' , name = 'orientation' , objtype = 'geom' , objname = self . geom ) self . _linear_velocity = self . _mjcf_root . sensor . add ( 'framelinvel' , name = 'linear_velocity' , objtype = 'geom' , objname = self . geom ) self . _angular_velocity = self . _mjcf_root . sensor . add ( 'frameangvel' , name = 'angular_velocity' , objtype = 'geom' , objname = self . geom )