EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
eduart::sensorring::measurement::PointCloud Class Reference

Stores a vector of points in 3D space. More...

#include <PointCloud.hpp>

Public Member Functions

void copyTo (double *buffer, int size)
 Copies the point cloud to a double buffer.

Static Public Member Functions

static PointCloud combine (const std::vector< PointCloud > &clouds)
 Combine multiple point clouds into a single cloud.
static PointCloud transform (const PointCloud &cloud, const math::Vector3 translation, const math::Vector3 rotation)
 Transforms a point cloud using a rotation matrix and a translation vector.
static PointCloud transform (const PointCloud &cloud, const math::Vector3 translation, const math::Matrix3 rotation)
 Transforms a point cloud using a rotation matrix and a translation vector.

Public Attributes

std::vector< PointData > data
 Data structure of the PointCloud.

Detailed Description

Stores a vector of points in 3D space.

Member Function Documentation

◆ combine()

PointCloud eduart::sensorring::measurement::PointCloud::combine ( const std::vector< PointCloud > & clouds)
static

Combine multiple point clouds into a single cloud.

Parameters
[in]cloudsVector of point clouds to merge.
Returns
Single PointCloud containing all points.

◆ copyTo()

void eduart::sensorring::measurement::PointCloud::copyTo ( double * buffer,
int size )

Copies the point cloud to a double buffer.

Parameters
[in]bufferPointer to the double buffer. Make sure it has sufficient size.
[in]sizeActual size of the buffer passed to the method. If the buffer is smaller than the point cloud only a subset of points is copied.

◆ transform() [1/2]

PointCloud eduart::sensorring::measurement::PointCloud::transform ( const PointCloud & cloud,
const math::Vector3 translation,
const math::Matrix3 rotation )
static

Transforms a point cloud using a rotation matrix and a translation vector.

Parameters
[in]cloudThe point cloud to transform.
[in]translationThe translation vector.
[in]rotationThe rotation matrix.
Returns
Transformed point cloud.

◆ transform() [2/2]

PointCloud eduart::sensorring::measurement::PointCloud::transform ( const PointCloud & cloud,
const math::Vector3 translation,
const math::Vector3 rotation )
static

Transforms a point cloud using a rotation matrix and a translation vector.

Parameters
[in]cloudThe point cloud to transform.
[in]translationThe translation vector.
[in]rotationThe rotation vector (Euler angles in degrees).
Returns
Transformed point cloud.

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