29 #include <pcl/point_cloud.h>
30 #include <pcl/point_types.h>
32 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
34 #include <VisionX/interface/core/DataTypes.h>
39 template <
typename Po
intT>
40 visionx::PointContentType
43 return visionx::ePoints;
47 visionx::PointContentType getPointContentType<pcl::PointXYZ>();
49 visionx::PointContentType getPointContentType<pcl::PointXYZI>();
51 visionx::PointContentType getPointContentType<pcl::PointXYZL>();
53 visionx::PointContentType getPointContentType<pcl::PointNormal>();
55 visionx::PointContentType getPointContentType<pcl::PointXYZRGBA>();
57 visionx::PointContentType getPointContentType<pcl::PointXYZRGBL>();
59 visionx::PointContentType getPointContentType<pcl::PointXYZRGBNormal>();
63 std::string
toString(visionx::PointContentType pointContent);
67 bool isColored(visionx::PointContentType type);
69 bool isLabeled(visionx::PointContentType type);
86 visionx::MetaPointCloudFormatPtr pointCloudFormat,
87 pcl::PointCloud<pcl::PointXYZ>::Ptr targetPtr);
90 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr targetPtr);
91 void convertFromPCL(
const pcl::PointCloud<pcl::PointXYZRGBA>::Ptr sourcePtr,
92 visionx::ColoredPointCloud&
target);
96 visionx::MetaPointCloudFormatPtr pointCloudFormat,
97 pcl::PointCloud<pcl::PointXYZRGBA>::Ptr targetPtr);
101 visionx::MetaPointCloudFormatPtr pointCloudFormat,
102 pcl::PointCloud<pcl::PointXYZL>::Ptr targetPtr);
106 visionx::MetaPointCloudFormatPtr pointCloudFormat,
107 pcl::PointCloud<pcl::PointXYZI>::Ptr targetPtr);
112 visionx::MetaPointCloudFormatPtr pointCloudFormat,
113 pcl::PointCloud<pcl::PointXYZRGBL>::Ptr targetPtr);
117 visionx::MetaPointCloudFormatPtr pointCloudFormat,
118 pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr targetPtr);
122 visionx::MetaPointCloudFormatPtr pointCloudFormat,
123 pcl::PointCloud<pcl::PointXYZRGB>::Ptr targetPtr);
133 armarx::DebugDrawer24BitColoredPointCloud&
target,
135 float pointSize = 3);
137 armarx::DebugDrawer24BitColoredPointCloud&
target,
139 float pointSize = 3);
141 armarx::DebugDrawer24BitColoredPointCloud&
target,
143 float pointSize = 3);
145 armarx::DebugDrawer24BitColoredPointCloud&
target,
147 float pointSize = 3);
154 template <
typename VisionXPo
intT,
typename PclPo
intT>
156 std::vector<VisionXPointT>&
target);
168 template <
typename VisionXPo
intT,
typename PclPo
intT>
173 template <
typename PclPo
intT,
typename VisionXPo
intT>
187 template <
typename PclPo
intT,
typename VisionXPo
intT>
188 typename pcl::PointCloud<PclPointT>::Ptr
convertToPCL(
const std::vector<VisionXPointT>&
source);
193 template <
typename PclPo
intT,
typename VisionXPo
intT>
197 p.CONVERSION_BETWEEN_THESE_POINT_TYPES_IS_NOT_IMPLEMENTED(
v);
201 template <
typename PclPo
intT,
typename VisionXPo
intT>
205 p.CONVERSION_BETWEEN_THESE_POINT_TYPES_IS_NOT_IMPLEMENTED(
v);
214 template <
typename SourceT,
typename TargetT>
224 template <
typename SourceT,
typename TargetT>
235 template <
typename SourceT,
typename TargetT>
269 visionx::ColoredLabeledPoint3D&
target);
276 template <
typename VisionXPo
intT,
typename PclPo
intT>
281 for (std::size_t i = 0; i <
source.size(); ++i)
288 template <
typename VisionXPo
intT,
typename PclPo
intT>
289 std::vector<VisionXPointT>
292 std::vector<VisionXPointT>
target;
298 template <
typename PclPo
intT,
typename VisionXPo
intT>
303 for (std::size_t i = 0; i <
source.size(); ++i)
310 template <
typename PclPo
intT,
typename VisionXPo
intT>
311 typename pcl::PointCloud<PclPointT>::Ptr
314 typename pcl::PointCloud<PclPointT>::Ptr
target(
new pcl::PointCloud<PclPointT>);