24 #include "Eigen/Dense" 28 #include "modules/dreamview/proto/camera_update.pb.h" 29 #include "modules/drivers/proto/sensor_image.pb.h" 30 #include "modules/localization/proto/localization.pb.h" 31 #include "modules/localization/proto/pose.pb.h" 33 #include "modules/transform/proto/transform.pb.h" 54 void GetUpdate(std::string *camera_update);
57 static constexpr
double kImageScale = 0.6;
60 void OnImage(
const std::shared_ptr<apollo::drivers::CompressedImage> &image);
62 const std::shared_ptr<apollo::localization::LocalizationEstimate> &loc);
69 void GetImageLocalization(std::vector<double> *localization);
72 bool QueryStaticTF(
const std::string &frame_id,
73 const std::string &child_frame_id,
75 void GetLocalization2CameraTF(std::vector<double> *localization2camera_tf);
78 CameraUpdate camera_update_;
80 bool enabled_ =
false;
81 double current_image_timestamp_;
83 std::unique_ptr<cyber::Node> node_;
85 std::deque<std::shared_ptr<apollo::localization::LocalizationEstimate>>
87 std::vector<uint8_t> image_buffer_;
88 std::vector<double> tf_static_;
90 std::mutex image_mutex_;
91 std::mutex localization_mutex_;
bool IsEnabled() const
Definition: perception_camera_updater.h:52
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Eigen::Matrix4d Matrix4d
Definition: base_map_fwd.h:32
PerceptionCameraUpdater(WebSocketHandler *websocket)
Definition: perception_camera_updater.h:38
The WebSocketHandler, built on top of CivetWebSocketHandler, is a websocket handler that handles diff...
Definition: websocket_handler.h:46
void GetUpdate(std::string *camera_update)