/workspaces/astro/sol3-sdk/cpp/sol3/camera_module/camera_component.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/camera_module/camera_component.h Source File
Space-ng SDK
camera_component.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 #pragma once
3 #include "camera_device.h"
7 
8 namespace sol3::camera_module {
9 
27  public:
33  core::IBufferExchange& exchange,
34  uint32_t component_id,
35  std::unique_ptr<ICameraDevice> device,
36  bool external_trigger = false);
37 
38  void run(std::atomic<bool>& stopped);
39 
40  private:
41  void runExternalTrigger(std::atomic<bool>& stopped);
42  void runPeriodic(std::atomic<bool>& stopped);
43 
45  std::unique_ptr<ICameraDevice> device_;
46  bool external_trigger_;
47 };
48 
49 } // namespace sol3::camera_module
Definition: camera_component.h:26
CameraComponent(core::IBufferExchange &exchange, uint32_t component_id, std::unique_ptr< ICameraDevice > device, bool external_trigger=false)
void run(std::atomic< bool > &stopped)
Interface for registering, discovering, and disposing shared buffers.
Definition: shmem_buffer.h:112
Definition: message_input.h:23
Definition: camera_component.h:8