26#include "cyber/proto/simple.pb.h"
27#include "modules/common_msgs/sensor_msgs/pointcloud.pb.h"
31#if __has_include("sensor_msgs/point_cloud2_iterator.hpp")
32#include "sensor_msgs/point_cloud2_iterator.hpp"
37using InputMsg = sensor_msgs::msg::PointCloud2;
52 InputTypes<InputMsgPtr>, OutputTypes<OutputMsgPtr>> {
67 inline int FindFieldIndex(
68 std::string name, sensor_msgs::msg::PointCloud2& cloud_msg) {
69 for (
int i = 0; i < cloud_msg.fields.size(); i++) {
70 if (cloud_msg.fields[i].name == name) {
virtual bool ConvertMsg(InputTypes< InputMsgPtr > &, OutputTypes< OutputMsgPtr > &)
convert the message between ros and apollo
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
std::shared_ptr< OutputMsg > OutputMsgPtr
std::shared_ptr< InputMsg > InputMsgPtr