convert sensor_msgs/msg/PointCloud2 to protobuf to transfer over websocket, optional add a pose for the cloud frame.