#[repr(C)]pub struct Illuminance {
pub header: Header,
pub illuminance: f64,
pub variance: f64,
}
Expand description
Single photometric illuminance measurement. Light should be assumed to be measured along the sensor’s x-axis (the area of detection is the y-z plane). The illuminance should have a 0 or positive value and be received with the sensor’s +X axis pointing toward the light source.
Photometric illuminance is the measure of the human eye’s sensitivity of the intensity of light encountering or passing through a surface.
All other Photometric and Radiometric measurements should not use this message. This message cannot represent:
- Luminous intensity (candela/light source output)
- Luminance (nits/light output per area)
- Irradiance (watt/area), etc.
Fields§
§header: Header
frame_id is the location and direction of the reading
illuminance: f64
Measurement of the Photometric Illuminance in Lux.
variance: f64
0 is interpreted as variance unknown
Implementations§
Source§impl Illuminance
impl Illuminance
Sourcepub fn create_topic_with_name(
participant: &DdsParticipant,
name: &str,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>,
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic_with_name( participant: &DdsParticipant, name: &str, maybe_qos: Option<DdsQos>, maybe_listener: Option<DdsListener>, ) -> Result<DdsTopic<Self>, DDSError>
Create a topic using of this Type specifying the topic name
§Arguments
participant
- The participant handle onto which this topic should be createdname
- The name of the topicmaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
Sourcepub fn create_topic(
participant: &DdsParticipant,
maybe_topic_prefix: Option<&str>,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>,
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic( participant: &DdsParticipant, maybe_topic_prefix: Option<&str>, maybe_qos: Option<DdsQos>, maybe_listener: Option<DdsListener>, ) -> Result<DdsTopic<Self>, DDSError>
Create a topic of this Type using the default topic name. The default topic name is provided by the Self::topic_name function.
§Arguments
participant
- The participant handle onto which this topic should be createdmaybe_topic_prefix
- An additional prefix to be added to the topic name. This can be Nonemaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
Sourcepub fn create_sample_buffer(len: usize) -> SampleBuffer<Illuminance>
pub fn create_sample_buffer(len: usize) -> SampleBuffer<Illuminance>
Create a sample buffer for storing an array of samples You can pass the sample buffer into a read to read multiple samples. Multiple samples are useful when you have one or more keys in your topic structure. Each value of the key will result in the storage of another sample.