|
TinyRobotics
|
Utility class for serializing and deserializing PointCloud objects, including points, voxels, and attributes. More...
#include <MapSerializer.h>
Public Member Functions | |
| size_t | write (const PointCloudT &cloud, Print &out) |
| size_t | read (PointCloudT &cloud, Stream &in) |
Utility class for serializing and deserializing PointCloud objects, including points, voxels, and attributes.
The PointCloudSerializer class provides methods to write a PointCloud to a Print object (such as Serial) and to read a PointCloud from a Stream object. The format includes a header with attributes, points, and voxels.
Format: #PointCloud voxelSize:<float> is3d:<0|1> bounds:<minx>,<miny>,<minz>,<maxx>,<maxy>,<maxz> #Points x1,y1,z1 ... #Voxels vx1,vy1,vz1 ...
| PointCloudT | The PointCloud type to serialize/deserialize (e.g., PointCloud<float>) |
| T | The numeric type for coordinates (e.g., float) |