Function sensor_msgs::convertPointCloudToPointCloud2

Function Documentation

static inline bool sensor_msgs::convertPointCloudToPointCloud2(const sensor_msgs::msg::PointCloud &input, sensor_msgs::msg::PointCloud2 &output)

Convert a sensor_msgs::msg::PointCloud message to a sensor_msgs::msg::PointCloud2 message.

Parameters:
  • input – the message in the sensor_msgs::msg::PointCloud format

  • output – the resultant message in the sensor_msgs::msg::PointCloud2 format