25 #include "modules/drivers/proto/sensor_image.pb.h" 26 #include "modules/drivers/proto/smartereye.pb.h" 27 #include "modules/drivers/smartereye/proto/config.pb.h" 29 #include "third_party/camera_library/smartereye/include/frameext.h" 30 #include "third_party/camera_library/smartereye/include/obstacleData.h" 31 #include "third_party/camera_library/smartereye/include/obstaclepainter.h" 32 #include "third_party/camera_library/smartereye/include/roadwaypainter.h" 33 #include "third_party/camera_library/smartereye/include/yuv2rgb.h" 37 namespace smartereye {
42 using apollo::drivers::Image;
43 using apollo::drivers::smartereye::config::Config;
53 bool Callback(RawImageFrame *rawFrame);
54 void processFrame(
int frameId,
char *image,
char *extended, int64_t time,
55 int width,
int height);
56 void processFrame(
int frameId,
char *image, uint32_t dataSize,
int width,
57 int height,
int frameFormat);
60 std::shared_ptr<Writer<Image>> writer_ =
nullptr;
61 std::shared_ptr<Writer<SmartereyeObstacles>> SmartereyeObstacles_writer_ =
63 std::shared_ptr<Writer<SmartereyeLanemark>> SmartereyeLanemark_writer_ =
65 std::unique_ptr<SmartereyeDevice> camera_device_ =
nullptr;
66 std::shared_ptr<Config> camera_config_ =
nullptr;
67 uint32_t spin_rate_ = 200;
68 uint32_t device_wait_ = 2000;
69 std::future<void> async_result_;
70 std::atomic<bool> running_ = {
false};
71 bool b_ispolling_ =
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
void processFrame(int frameId, char *image, char *extended, int64_t time, int width, int height)
Definition: smartereye_component.h:45
#define CYBER_REGISTER_COMPONENT(name)
Definition: component.h:551
bool Callback(RawImageFrame *rawFrame)
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