habitat.core.simulator.Sensor class

Represents a sensor that provides data from the environment to agent.

The user of this class needs to implement the get_observation method and the user is also required to set the below attributes:


def get_observation(self, *args: typing.Any, **kwargs: typing.Any) -> typing.Any
Returns: current observation for Sensor.

Special methods

def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None


uuid: str = None
universally unique id.
config: DictConfig = None
sensor_type: SensorTypes = None
type of Sensor, use SensorTypes enum if your sensor comes under one of it’s categories.
observation_space: gym.spaces.space.Space = None
gym.Space object corresponding to observation of sensor.