pub struct BraidCameraConfig {
pub name: String,
pub camera_settings_filename: Option<PathBuf>,
pub pixel_format: Option<String>,
pub point_detection_config: ImPtDetectCfg,
pub start_backend: StartCameraBackend,
pub acquisition_duration_allowed_imprecision_msec: Option<f64>,
pub http_server_addr: Option<String>,
pub send_current_image_interval_msec: u64,
/* private fields */
}Expand description
Configuration for a single camera in the Braid system.
Fields§
§name: StringThe name of the camera (e.g. “Basler-22005677”)
(This is the original UTF-8 camera name, not the ROS-encoded camera name in which certain characters are not allowed.)
camera_settings_filename: Option<PathBuf>Filename of vendor-specific camera settings file.
Can contain shell variables such as ~, $A, or ${B}.
pixel_format: Option<String>The pixel format to use.
point_detection_config: ImPtDetectCfgConfiguration for detecting points.
start_backend: StartCameraBackendWhich camera backend to use.
acquisition_duration_allowed_imprecision_msec: Option<f64>Allowed imprecision for frame acquisition duration.
http_server_addr: Option<String>The SocketAddr on which the strand camera BUI server should run.
send_current_image_interval_msec: u64The interval at which the current image should be sent, in milliseconds.
Implementations§
Source§impl BraidCameraConfig
impl BraidCameraConfig
Sourcepub fn default_absdiff_config(name: String) -> Self
pub fn default_absdiff_config(name: String) -> Self
Create a default camera configuration with absolute difference point detection.
Trait Implementations§
Source§impl Clone for BraidCameraConfig
impl Clone for BraidCameraConfig
Source§fn clone(&self) -> BraidCameraConfig
fn clone(&self) -> BraidCameraConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BraidCameraConfig
impl Debug for BraidCameraConfig
Source§impl<'de> Deserialize<'de> for BraidCameraConfig
impl<'de> Deserialize<'de> for BraidCameraConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BraidCameraConfig
impl PartialEq for BraidCameraConfig
Source§impl Serialize for BraidCameraConfig
impl Serialize for BraidCameraConfig
impl StructuralPartialEq for BraidCameraConfig
Auto Trait Implementations§
impl Freeze for BraidCameraConfig
impl RefUnwindSafe for BraidCameraConfig
impl Send for BraidCameraConfig
impl Sync for BraidCameraConfig
impl Unpin for BraidCameraConfig
impl UnwindSafe for BraidCameraConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more