darcyai.perception_object_model
PerceptionObjectModel Objects
class PerceptionObjectModel(Serializable)
This class is used to represent the perception of an object.
set_value
def set_value(key: str, value: Any) -> None
Set the value of a key in the perception object model.
Arguments
- key (
str): The key to set. - value (
Any): The value to set. 
get_perceptor
def get_perceptor(name: str) -> Any
Get the perception result of the provided perceptor.
Arguments
- name (
str): The name of the perceptor. 
Returns
Any: The result of the perception.
get_perceptors
def get_perceptors() -> List[str]
Returns list of the perceptors.
Returns
List[str]: The list of the perceptors.
serialize
def serialize() -> Dict[str, Any]
Serialize the perception object model.
Returns
Dict[str, Any] - The serialized perception object model.
set_input_data
def set_input_data(input_data: StreamData) -> None
Set the input data for the perception object model.
Arguments
- input_data (
StreamData): The input data. 
get_input_data
def get_input_data() -> StreamData
Get the input data for the perception object model.
Returns
StreamData: The input data.
set_pulse_number
def set_pulse_number(pulse_number: int) -> None
Set the pulse number for the perception object model.
Arguments
- pulse_number (
int): The pulse number. 
get_pulse_number
def get_pulse_number() -> int
Get the pulse number for the perception object model.
Returns
int: The pulse number.
set_pps
def set_pps(pps: int) -> None
Set the pps for the perception object model.
Arguments
- pps (
int): The pps. 
get_pps
def get_pps() -> int
Get the pps for the perception object model.
Returns
int: The pps.