TinyRobotics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PointCloudSerializer< PointCloudT > Class Template Reference

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)
 

Detailed Description

template<typename PointCloudT>
class tinyrobotics::PointCloudSerializer< PointCloudT >

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 ...

Template Parameters
PointCloudTThe PointCloud type to serialize/deserialize (e.g., PointCloud<float>)
TThe numeric type for coordinates (e.g., float)

The documentation for this class was generated from the following file: