Services may have properties that correspond to sensors or other constraints that cannot be represented in the context of iceoryx2. Therefore, the user needs the ability to set user-defined properties.
Detailed information
let service = zero_copy::Service::new(&service_name)
// START: user-defined service properties
.custom_property("CameraResolution", "1920x1080")
.custom_property("Framerate", "60")
// END: user-defined service properties
.publish_subscribe::<TransmissionData>()
.open_or_create()?;
The user-defined service properties can be read via the services static config:
let camera_resolution = service.static_config()
.custom_property("CameraResolution");
Brief feature description
Services may have properties that correspond to sensors or other constraints that cannot be represented in the context of iceoryx2. Therefore, the user needs the ability to set user-defined properties.
Detailed information
The user-defined service properties can be read via the services static config: