Go to the documentation of this file.
11 namespace pointmatcher
41 return Generator::generateUniformlySampledBox(length, width, height, numberOfPoints,
translation, quaternion);
106 py::class_<Generator>(p_module,
"PointCloudGenerator",
"Class containing methods to generate point clouds in the shape of geometric primitives.")
107 .def_static(
"buildUpTransformation",
108 &Generator::buildUpTransformation,
109 py::arg(
"translation"),
111 .def_static(
"addEmpty3dPointFields", &Generator::addEmpty3dPointFields, py::arg(
"numberOfPoints"), py::arg(
"pointCloud"))
112 .def_static(
"applyTransformation", &
applyTransformation, py::arg(
"translation"), py::arg(
"rotation"), py::arg(
"pointCloud"))
113 .def_static(
"computeNormalOfAxisAlignedPlane", &Generator::computeNormalOfAxisAlignedPlane, py::arg(
"axisAlignedPlaneDimensions"))
114 .def_static(
"generateUniformlySampledSphere", &
generateUniformlySampledSphere, py::arg(
"radius"), py::arg(
"numberOfPoints"), py::arg(
"translation"),
116 .def_static(
"generateUniformlySampledCircle", &
generateUniformlySampledCircle, py::arg(
"radius"), py::arg(
"numberOfPoints"), py::arg(
"translation"),
119 py::arg(
"translation"), py::arg(
"rotation"))
121 py::arg(
"translation"), py::arg(
"rotation"))
123 py::arg(
"numberOfPoints"), py::arg(
"translation"), py::arg(
"rotation"));
void applyTransformation(const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation, DataPoints &pointCloud)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
DataPoints generateUniformlySampledSphere(const ScalarType radius, const DataPoints::Index numberOfPoints, const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
DataPoints generateUniformlySampledBoxWrapper(const ScalarType length, const ScalarType width, const ScalarType height, const DataPoints::Index numberOfPoints, const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
Matrix::Index Index
An index to a row or a column.
DataPoints generateUniformlySampledCircle(const ScalarType radius, const DataPoints::Index numberOfPoints, const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
DataPoints generateUniformlySampledPlane(const StaticCoordVector &dimensions, const DataPoints::Index numberOfPoints, const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
void pybindPointCloudGenerator(py::module &p_module)
PM::ScalarType ScalarType
DataPoints generateUniformlySampledCylinder(const ScalarType radius, const ScalarType height, const DataPoints::Index numberOfPoints, const StaticCoordVector &translation, const Eigen::Matrix< ScalarType, 4, 1 > &rotation)
Wrapper class that converts general Eigen::Matrix, convertible from numpy array, to Eigen::Quaternion...
Generator::StaticCoordVector StaticCoordVector
Eigen::Quaternion< float > Quaternion
A quaternion over ScalarType.