depth_sensor.set_option(RS2_OPTION_EMITTER_ENABLED, 0.f); // Disable emitter } if (depth_sensor.supports(RS2_OPTION_LASER_POWER)) { // Query min and max values: auto range = depth_sensor.get_option_range(RS2_OPTION_LASER_POWER); depth_sensor.set_option(RS2_OPTION_LASER_POWER, rang...
(), log_enable, } } fn initalize_fallible_emitter( settings: &Settings, ) -> std::io::Result<Option<Box<dyn WriteTrailingZeroAware>>> { if !settings.log_enabled { return Ok(None); } settings .dump_dir .as_ref() .map(|path| { Ok::<_, std::io::Error>(Box::new(File::...