22 #include "Eigen/Dense" 25 #include "modules/drivers/proto/pointcloud.pb.h" 26 #include "modules/drivers/proto/sensor_image.pb.h" 32 namespace perception {
39 typedef apollo::drivers::Image
ImgMsg;
43 MsgExporter(std::shared_ptr<apollo::cyber::Node> node,
44 const std::vector<std::string> channels,
45 const std::vector<std::string> child_frame_ids);
49 void ImageMessageHandler(
const std::shared_ptr<const ImgMsg>& img_msg,
50 const std::string& channel,
51 const std::string& child_frame_id,
52 const std::string& folder);
53 void PointCloudMessageHandler(
const std::shared_ptr<const PcMsg>& cloud_msg,
54 const std::string& channel,
55 const std::string& child_frame_id,
56 const std::string& folder);
57 bool SavePointCloud(
const pcl::PointCloud<PCLPointXYZIT>& point_cloud,
58 double timestamp,
const std::string& folder);
59 bool SaveImage(
const unsigned char* color_image,
60 const unsigned char* range_image, std::size_t width,
61 std::size_t height,
double timestamp,
62 const std::string& folder);
63 bool QuerySensorToWorldPose(
double timestamp,
64 const std::string& child_frame_id,
66 bool QueryPose(
double timestamp,
const std::string& frame_id,
69 const std::string& folder);
70 bool IsStereoCamera(
const std::string& channel);
71 bool IsCamera(
const std::string& channel);
72 bool IsLidar(
const std::string& channel);
73 std::string TransformChannelToFolder(
const std::string& channel);
76 std::shared_ptr<apollo::cyber::Node> _cyber_node;
77 std::vector<std::string> _channels;
78 std::vector<std::string> _child_frame_ids;
79 std::string _localization_method;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
pcl::PointCloud< Point > PointCloud
Definition: types.h:64
Eigen::Matrix4d Matrix4d
Definition: base_map_fwd.h:32
MsgExporter(std::shared_ptr< apollo::cyber::Node > node, const std::vector< std::string > channels, const std::vector< std::string > child_frame_ids)
Definition: msg_exporter.h:37
apollo::drivers::Image ImgMsg
Definition: msg_exporter.h:39
apollo::drivers::PointCloud PcMsg
Definition: msg_exporter.h:40