habitat_sim.sensors.noise_models.SensorNoiseModel class

Base class for all sensor noise models

Static methods

def is_valid_sensor_type(sensor_type: sensor.SensorType) -> bool
Used to determine whether or not the noise model is applicable to the sensor type

Methods

def apply(self, sensor_observation)
Applies the noise model to the sensor observation

Special methods

def __call__(self, sensor_observation: typing.Union[numpy.ndarray, torch.Tensor]) -> typing.Union[numpy.ndarray, torch.Tensor]
Alias of apply()
def __init__(self, *, gpu_device_id: typing.Optional[int] = None) -> None
Method generated by attrs for class SensorNoiseModel.

Properties

gpu_device_id: typing.Optional[int] get set del

Method documentation

def habitat_sim.sensors.noise_models.SensorNoiseModel.is_valid_sensor_type(sensor_type: sensor.SensorType) -> bool staticmethod

Used to determine whether or not the noise model is applicable to the sensor type

Returns True if this noise model can be applied to this sensor input type

def habitat_sim.sensors.noise_models.SensorNoiseModel.apply(self, sensor_observation)

Applies the noise model to the sensor observation

Parameters
sensor_observation The clean sensor observation. Should not be modified.