Sensor#
- Base class for agents using a - SensingState.- Clean-up the state estimation. - Called after finishing a simulation. 
 - Dumps the object to a YAML-string. - Returns:
- The YAML representation 
- Return type:
 
 - Gets the value of the specified property. - Parameters:
- name – The name of the property 
- Raise:
- std::runtime_error A runtime error if no property is found. 
- Returns:
- The value of the property 
 
 - Gets the description of the buffers set by the sensors. - Returns:
- The description. 
 
 - Returns the field prefixed by a sensor name. - Parameters:
- field – The field 
- name – The sensor name 
 
- Returns:
- The prefixed field name. 
 
 - Gets the type of a property. - Parameters:
- name – The name of the property 
- Returns:
- The property type name or an empty string if the property is not defined. 
 
 - Checks whether a property exists. - Parameters:
- name – The name of the property 
- Returns:
- True if the property exists 
 
 - Check whether a type name has been registered. - Parameters:
- type – The associated type name. 
- Returns:
- True if the type name has been registered. 
 
 - Load a sensor from a YAML string. - Parameters:
- value – the YAML string. 
- Returns:
- The loaded sensor or - Noneif loading fails.
- Return type:
- Sensor| None 
 
 - Create an object of a sub-class selected by name. - Parameters:
- type – The associated type name. 
- Returns:
- An object of a registered sub-class or - Nonein case the desired name is not found.
 
 - Setup the state estimation. - Called before starting a simulation. - Parameters:
- agent – The agent owning the state estimation 
- world – The world the agent is part of 
 
 
 - Prepare a sensing state to have the correct buffers. - Parameters:
- state – The state 
 
 - Returns the json-schema that includes registered components. - Returns:
- “anyOf” json-schema of all registered components. 
- Return type:
 
 - Returns the json-schema of a component - Returns an empty dictionary if a not registered type is requested. - Parameters:
- reference_register_schema – Whether to reference registered components schema in the base class schema. 
- type (str) – An optional registered type. If not specified, it returns the schema of the base class. 
 
- Returns:
- A json-schema of the registered class 
- Return type:
 
 - Set the value of a named property. Fails silently if no property can be found or if the value has a non-compatible type. - Parameters:
- name – The name of the property 
- value – The desired value for the property 
 
 
 - Updates an environment state with respect to a given agent. - Parameters:
- agent – The agent owning the state estimation 
- world – The world that the agent is part of 
- state – The environment state to be updated 
 
 
 - Type:
 - The description of the buffers set by the sensors. 
 - Type:
 - The sensor name. 
 - Type:
 - The registered properties 
 - Type:
 - The name associated to the type of an object