[ros-users] [Discourse.ros.org] [Next Generation ROS] Creating PointCloud2 in ROS2

William Woodall ros.discourse at gmail.com
Mon Dec 19 18:44:28 UTC 2016

You can certainly create and manipulate a PointCloud2:

#include "sensor_msgs/msg/point_cloud2.hpp"

int main(int argc, char * argv[])
  sensor_msgs::msg::PointCloud2 point_cloud2_msg;
  // ...

But I don't know what you mean by fill. You mean from a PCL type or OpenCV type?

[Visit Topic](https://discourse.ros.org/t/creating-pointcloud2-in-ros2/986/2) or reply to this email to respond.

More information about the ros-users mailing list