MCPcopy Create free account
hub / github.com/LimHyungTae/patchwork / cloud2msg

Function cloud2msg

nodes/pub_for_legoloam.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template <typename T>
37sensor_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
43void callbackNode(const sensor_msgs::PointCloud2::ConstPtr &msg) {
44 cout << msg->header.seq << "th node come" << endl;

Callers 1

callbackNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected