| 35 | |
| 36 | template <typename T> |
| 37 | sensor_msgs::PointCloud2 cloud2msg(pcl::PointCloud<T> cloud) { |
| 38 | sensor_msgs::PointCloud2 cloud_ROS; |
| 39 | pcl::toROSMsg(cloud, cloud_ROS); |
| 40 | return cloud_ROS; |
| 41 | } |
| 42 | |
| 43 | void callbackNode(const sensor_msgs::PointCloud2::ConstPtr &msg) { |
| 44 | cout << msg->header.seq << "th node come" << endl; |