25 #include "modules/drivers/camera/proto/config.pb.h" 26 #include "modules/drivers/proto/sensor_image.pb.h" 37 using apollo::drivers::Image;
38 using apollo::drivers::camera::config::Config;
48 std::shared_ptr<Writer<Image>> writer_ =
nullptr;
49 std::unique_ptr<UsbCam> camera_device_;
50 std::shared_ptr<Config> camera_config_;
52 std::vector<std::shared_ptr<Image>> pb_image_buffer_;
53 uint32_t spin_rate_ = 200;
54 uint32_t device_wait_ = 2000;
56 int buffer_size_ = 16;
57 const int32_t MAX_IMAGE_SIZE = 20 * 1024 * 1024;
58 std::future<void> async_result_;
59 std::atomic<bool> running_ = {
false};
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Reader subscribes a channel, it has two main functions:
Definition: reader.h:68
std::shared_ptr< CameraImage > CameraImagePtr
Definition: usb_cam.h:100
#define CYBER_REGISTER_COMPONENT(name)
Definition: component.h:551
Definition: camera_component.h:40
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58
apollo::cyber::Writer< T > Writer
Definition: sensor_canbus.h:67