MCPcopy Create free account
hub / github.com/Pamphlett/Outram / cloud2msg

Function cloud2msg

include/conversion.hpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template<typename T>
24inline sensor_msgs::PointCloud2 cloud2msg(pcl::PointCloud<T> cloud, std::string frame_id = "map") {
25 sensor_msgs::PointCloud2 cloud_ROS;
26 pcl::toROSMsg(cloud, cloud_ROS);
27 cloud_ROS.header.frame_id = frame_id;
28 return cloud_ROS;
29}
30
31inline void xyzi2xyz(pcl::PointCloud<pcl::PointXYZI>::Ptr XYZI, pcl::PointCloud<pcl::PointXYZ>::Ptr XYZ) {
32 (*XYZ).points.resize((*XYZI).size());

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected