Creating PointCloud2 in ROS2

Sorry, I mean actually adding the points. In Ros1, I think the easiest way to create a PointCloud2, was to create a pcl::PointCloud and convert it to PointCloud2, since the pcl::PointCloud allowed you to push_back points.

Now I’m wondering how to go from a list of points to a PointCloud2, preferably without just copying pcl::toROSMsg

Thanks for the reply.