[ros-users] [Discourse.ros.org] [Next Generation ROS] Creati…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: William Woodall via ros-users
Date:  
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Next Generation ROS] Creating PointCloud2 in ROS2



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;
point_cloud2_msg.data.reserve(10);
point_cloud2_msg.fields.reserve(10);
// ...
}
```

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.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>