(self,
               num_actions: int,
               lower_bound: _FLOAT_OR_ARRAY = -1.0,
               upper_bound: _FLOAT_OR_ARRAY = 1.0,
               name: typing.Text = "LastAction",
               dtype: typing.Type[typing.Any] = np.float64)
Constructs LastActionSensor.

    Args:
      num_actions: the number of actions to read
      lower_bound: the lower bound of the actions
      upper_bound: the upper bound of the actions
      name: the name of the sensor
      dtype: data type of sensor value
Constructs LastActionSensor.
Constructs LastActionSensor .
def __init__(self,
               num_actions: int,
               lower_bound: _FLOAT_OR_ARRAY = -1.0,
               upper_bound: _FLOAT_OR_ARRAY = 1.0,
               name: typing.Text = "LastAction",
               dtype: typing.Type[typing.Any] = np.float64) -> None:
    """Constructs LastActionSensor.

    Args:
      num_actions: the number of actions to read
      lower_bound: the lower bound of the actions
      upper_bound: the upper bound of the actions
      name: the name of the sensor
      dtype: data type of sensor value
    """
    self._num_actions = num_actions
    self._env = None

    super(LastActionSensor, self).__init__(name=name,
                                           shape=(self._num_actions,),
                                           lower_bound=lower_bound,
                                           upper_bound=upper_bound,
                                           dtype=dtype)
def __init__ ( self , num_actions : int , lower_bound : _FLOAT_OR_ARRAY = - 1.0 , upper_bound : _FLOAT_OR_ARRAY = 1.0 , name : typing . Text = "LastAction" , dtype : typing . Type [ typing . Any ] = np . float64 ) -> None : self . _num_actions = num_actions self . _env = None super ( LastActionSensor , self ) . __init__ ( name = name , shape = ( self . _num_actions , ) , lower_bound = lower_bound , upper_bound = upper_bound , dtype = dtype )