27 #include "modules/drivers/proto/sensor_image.pb.h" 28 #include "modules/localization/proto/localization.pb.h" 32 #include "modules/perception/onboard/proto/motion_service.pb.h" 33 #include "modules/perception/proto/motion_service.pb.h" 36 namespace perception {
53 void OnLocalization(
const LocalizationMsgType &localization);
54 void OnReceiveImage(
const ImageMsgType &message,
55 const std::string &camera_name);
56 void PublishEvent(
const double timestamp);
57 void ConvertVehicleMotionToMsgOut(
61 std::string device_id_;
62 double pre_azimuth = 0;
63 double pre_timestamp_ = 0;
64 double pre_camera_timestamp_ = 0;
65 double camera_timestamp_ = 0;
66 bool start_flag_ =
false;
67 const int motion_buffer_size_ = 100;
68 double timestamp_offset_ = 0.0;
70 std::vector<std::string> camera_names_;
71 std::vector<std::string> input_camera_channel_names_;
74 std::mutex motion_mutex_;
75 std::shared_ptr<apollo::cyber::Writer<apollo::perception::Motion_Service>>
std::shared_ptr< localization::LocalizationEstimate > LocalizationMsgType
Definition: motion_service.h:40
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: plane_motion.h:34
base::MotionBuffer GetMotionBuffer()
bool GetMotionInformation(double timestamp, base::VehicleStatus *vs)
Definition: object_supplement.h:189
Definition: motion_service.h:42
double GetLatestTimestamp()
CYBER_REGISTER_COMPONENT(MotionService)
virtual ~MotionService()
Definition: motion_service.h:45
std::shared_ptr< apollo::drivers::Image > ImageMsgType
Definition: motion_service.h:39
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58
boost::circular_buffer< VehicleStatus > MotionBuffer
Definition: object_supplement.h:202