OOBB.cpp
Go to the documentation of this file.
1 #include "OOBB.h"
2 
3 #include "OOBB.hpp"
4 
5 #ifdef CGAL_FOUND
6 
7 
8 simox::OrientedBox<float> armarx::calculate2dOOBB(const std::vector<Eigen::Vector3f>& points, const Eigen::Vector3f& dir)
9 {
10  return calculate2dOOBB<std::vector<Eigen::Vector3f>>(points, dir.cast<double>()).cast<float>();
11 }
12 simox::OrientedBox<double> armarx::calculate2dOOBB(const std::vector<Eigen::Vector3d>& points, const Eigen::Vector3d& dir)
13 {
14  return calculate2dOOBB<std::vector<Eigen::Vector3d>>(points, dir);
15 }
16 
17 simox::OrientedBox<float> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZ>& cloud, const Eigen::Vector3f& dir)
18 {
19  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZ>>(cloud, dir.cast<double>()).cast<float>();
20 }
21 simox::OrientedBox<double> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZ>& cloud, const Eigen::Vector3d& dir)
22 {
23  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZ>>(cloud, dir);
24 }
25 
26 simox::OrientedBox<float> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZL>& cloud, const Eigen::Vector3f& dir)
27 {
28  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZL>>(cloud, dir.cast<double>()).cast<float>();
29 }
30 simox::OrientedBox<double> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZL>& cloud, const Eigen::Vector3d& dir)
31 {
32  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZL>>(cloud, dir);
33 }
34 
35 simox::OrientedBox<float> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGB>& cloud, const Eigen::Vector3f& dir)
36 {
37  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGB>>(cloud, dir.cast<double>()).cast<float>();
38 }
39 simox::OrientedBox<double> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGB>& cloud, const Eigen::Vector3d& dir)
40 {
41  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGB>>(cloud, dir);
42 }
43 
44 simox::OrientedBox<float> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGBA>& cloud, const Eigen::Vector3f& dir)
45 {
46  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGBA>>(cloud, dir.cast<double>()).cast<float>();
47 }
48 simox::OrientedBox<double> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGBA>& cloud, const Eigen::Vector3d& dir)
49 {
50  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGBA>>(cloud, dir);
51 }
52 
53 simox::OrientedBox<float> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGBL>& cloud, const Eigen::Vector3f& dir)
54 {
55  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGBL>>(cloud, dir.cast<double>()).cast<float>();
56 }
57 simox::OrientedBox<double> armarx::calculate2dOOBB(const pcl::PointCloud<pcl::PointXYZRGBL>& cloud, const Eigen::Vector3d& dir)
58 {
59  return calculate2dOOBB<pcl::PointCloud<pcl::PointXYZRGBL>>(cloud, dir);
60 }
61 
62 
63 #endif
OOBB.hpp
OOBB.h
simox::OrientedBox
Definition: ice_conversions.h:18