pcl.cpp
Go to the documentation of this file.
1 #include "pcl.h"
2 
3 #include <algorithm>
4 
5 namespace armarx::conversions
6 {
7  pcl::PointCloud<pcl::PointXYZ> to3D(const pcl::PointCloud<pcl::PointXY>& v)
8  {
9  pcl::PointCloud<pcl::PointXYZ> pc;
10  pc.points.reserve(v.size());
11 
13  v.begin(),
14  v.end(),
15  std::back_inserter(pc),
16  static_cast<pcl::PointXYZ (*)(const pcl::PointXY&)>(&to3D));
17 
18  pc.width = v.height;
19  pc.height = v.width;
20  pc.is_dense = v.is_dense;
21 
22  pc.header = v.header;
23 
24  return pc;
25  }
26 
27 } // namespace armarx::conversions
pcl.h
armarx::conversions::to3D
std::vector< Eigen::Vector3f > to3D(const std::vector< Eigen::Vector2f > &v)
Definition: eigen.cpp:8
armarx::conversions
Definition: eigen.cpp:5
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
armarx::transform
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT > >
Convenience function (with less typing) to transform a container of type InputT into the same contain...
Definition: algorithm.h:315
pc
Introduction Thank you for taking interest in our work and downloading this software This library implements the algorithm described in the paper R R R Klein Efficient RANSAC for Point Cloud Shape in Computer Graphics Blackwell June If you use this software you should cite the aforementioned paper in any resulting publication Please send comments or bug reports to Ruwen Roland BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE Example usage This section shows how to use the library to detect the shapes in a point cloud PointCloud pc
Definition: ReadMe.txt:68