26#include "modules/common_msgs/localization_msgs/localization.pb.h"
27#include "modules/common_msgs/sensor_msgs/sensor_image.pb.h"
28#include "modules/perception/common/proto/motion_service.pb.h"
29#include "modules/perception/motion_service/proto/motion_service_component.pb.h"
57 const std::string &camera_name);
58 void PublishEvent(
const double timestamp);
59 void ConvertVehicleMotionToMsgOut(
63 std::string device_id_;
64 double pre_azimuth = 0;
65 double pre_timestamp_ = 0;
66 double pre_camera_timestamp_ = 0;
67 double camera_timestamp_ = 0;
68 bool start_flag_ =
false;
69 const int motion_buffer_size_ = 100;
70 double timestamp_offset_ = 0.0;
72 std::vector<std::string> camera_names_;
73 std::vector<std::string> input_camera_channel_names_;
76 std::mutex motion_mutex_;
77 std::shared_ptr<apollo::cyber::Writer<apollo::perception::MotionService>>
MotionServiceComponent()=default
base::MotionBuffer GetMotionBuffer()
virtual ~MotionServiceComponent()
double GetLatestTimestamp()
bool GetMotionInformation(double timestamp, base::VehicleStatus *vs)
#define CYBER_REGISTER_COMPONENT(name)
#define DISALLOW_COPY_AND_ASSIGN(classname)
boost::circular_buffer< VehicleStatus > MotionBuffer
std::shared_ptr< localization::LocalizationEstimate > LocalizationMsgType
std::shared_ptr< apollo::drivers::Image > ImageMsgType