#include <PointMatcher.h>
Public Types | |
typedef Eigen::Transform< T, kPointDimension, Eigen::Affine > | AffineTransform |
An affine transform over ScalarType of kPointDimension. More... | |
using | Index = typename DataPoints::Index |
typedef Eigen::Matrix< T, kPointDimension, 1 > | StaticCoordVector |
A vector over ScalarType of kPointDimension. More... | |
Static Public Member Functions | |
static void | addEmpty3dPointFields (const Index numberOfPoints, DataPoints &pointCloud) |
Adds 3D coordinates and normals fields to a point cloud. More... | |
static void | applyTransformation (const StaticCoordVector &translation, const Quaternion &rotation, DataPoints &pointCloud) |
Transforms a point cloud by translating and rotating it a given amount. More... | |
static AffineTransform | buildUpTransformation (const StaticCoordVector &translation, const Quaternion &rotation) |
Builds a 3D affine transformation with a given translation and rotation. More... | |
static StaticCoordVector | computeNormalOfAxisAlignedPlane (const StaticCoordVector &axisAlignedPlaneDimensions) |
Computes a normal vector from a vector that contains the dimensions of a 2D shape in at-most 2 directions. More... | |
static DataPoints | generateUniformlySampledBox (const ScalarType length, const ScalarType width, const ScalarType height, const Index numberOfPoints, const StaticCoordVector &translation, const Quaternion &rotation) |
Generates a uniformly sampled box (with no filling), with a given number of points and pose. More... | |
static DataPoints | generateUniformlySampledCircle (const ScalarType radius, const Index numberOfPoints, const StaticCoordVector &translation, const Quaternion &rotation) |
Generates a uniformly sampled circle, with a given number of points and pose. More... | |
static DataPoints | generateUniformlySampledCylinder (const ScalarType radius, const ScalarType height, const Index numberOfPoints, const StaticCoordVector &translation, const Quaternion &rotation) |
Generates a uniformly sampled cylinder (with no filling), with a given number of points and pose. More... | |
static DataPoints | generateUniformlySampledPlane (const StaticCoordVector &dimensions, const Index numberOfPoints, const StaticCoordVector &translation, const Quaternion &rotation) |
Generates a uniformly sampled plane, with a given number of points and pose. More... | |
static DataPoints | generateUniformlySampledSphere (const ScalarType radius, const Index numberOfPoints, const StaticCoordVector &translation, const Quaternion &rotation) |
Generates a uniformly sampled sphere (with no filling), with a given number of points and pose. More... | |
Static Public Attributes | |
static constexpr Eigen::Index | kPointDimension { 3 } |
The dimension of the point clouds that libpointmatcher will process. More... | |
static constexpr ScalarType | pi { static_cast<ScalarType>(M_PI) } |
Pi. More... | |
Definition at line 775 of file PointMatcher.h.
typedef Eigen::Transform<T, kPointDimension, Eigen::Affine> PointMatcher< T >::PointCloudGenerator::AffineTransform |
An affine transform over ScalarType of kPointDimension.
Definition at line 780 of file PointMatcher.h.
using PointMatcher< T >::PointCloudGenerator::Index = typename DataPoints::Index |
Definition at line 784 of file PointMatcher.h.
typedef Eigen::Matrix<T, kPointDimension, 1> PointMatcher< T >::PointCloudGenerator::StaticCoordVector |
A vector over ScalarType of kPointDimension.
Definition at line 782 of file PointMatcher.h.
|
static |
Adds 3D coordinates and normals fields to a point cloud.
numberOfPoints[in] | Number of points to add to the point cloud. |
pointCloud[out] | Point cloud. |
Definition at line 52 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Transforms a point cloud by translating and rotating it a given amount.
translation[in] | Translation. |
rotation[in] | Rotation. |
pointCloud[out] | Point cloud to transform. |
Definition at line 70 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Builds a 3D affine transformation with a given translation and rotation.
translation | Translation. [m] |
rotation | Rotation quaternion. |
Definition at line 42 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Computes a normal vector from a vector that contains the dimensions of a 2D shape in at-most 2 directions.
axisAlignedPlaneDimensions[in] | Dimensions vector. |
Definition at line 84 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Generates a uniformly sampled box (with no filling), with a given number of points and pose.
length[in] | Length of the box. [m] |
width[in] | Width of the box. [m] |
height[in] | Height of the box. [m] |
numberOfPoints[in] | Number of points. |
translation[in] | Translation with respect to the box origin, to be used for positioning the box. |
rotation[in] | Rotation with respect to the box origin, to be used for positioning the box. |
Definition at line 312 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Generates a uniformly sampled circle, with a given number of points and pose.
radius[in] | Radius of the circle. [m] |
numberOfPoints[in] | Number of points. |
translation[in] | Translation with respect to the circle origin, to be used for positioning the circle. |
rotation[in] | Rotation with respect to the circle origin, to be used for positioning the circle. |
Definition at line 152 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Generates a uniformly sampled cylinder (with no filling), with a given number of points and pose.
radius[in] | Radius of the cylinder. [m] |
height[in] | Height of the cylinder. [m] |
numberOfPoints[in] | Number of points. |
translation[in] | Translation with respect to the cylinder origin, to be used for positioning the cylinder. |
rotation[in] | Rotation with respect to the cylinder origin, to be used for positioning the cylinder. |
Definition at line 198 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Generates a uniformly sampled plane, with a given number of points and pose.
dimensions[in] | Dimensions of the plane (length, width, height). [m] |
numberOfPoints[in] | Number of points. |
translation[in] | Translation with respect to the plane origin, to be used for positioning the plane. |
rotation[in] | Rotation with respect to the plane origin, to be used for positioning the plane. |
Definition at line 271 of file pointmatcher/PointCloudGenerator.cpp.
|
static |
Generates a uniformly sampled sphere (with no filling), with a given number of points and pose.
radius[in] | Radius of the sphere. [m] |
numberOfPoints[in] | Number of points. |
translation[in] | Translation with respect to the sphere origin, to be used for positioning the sphere. |
rotation[in] | Rotation with respect to the sphere origin, to be used for positioning the sphere. |
Definition at line 100 of file pointmatcher/PointCloudGenerator.cpp.
|
staticconstexpr |
The dimension of the point clouds that libpointmatcher will process.
Definition at line 778 of file PointMatcher.h.
|
staticconstexpr |
Pi.
Definition at line 868 of file PointMatcher.h.