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

Function cloud2msg

nodes/ros_kitti_publisher.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template <typename T>
37sensor_msgs::PointCloud2 cloud2msg(pcl::PointCloud<T> cloud, std::string frame_id) {
38 sensor_msgs::PointCloud2 cloud_ROS;
39 pcl::toROSMsg(cloud, cloud_ROS);
40 cloud_ROS.header.frame_id = frame_id;
41 return cloud_ROS;
42}
43
44int main(int argc, char **argv) {
45 ros::init(argc, argv, "Ros-Kitti-Publisher");

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected