Skip to content

Commit acaee56

Browse files
author
Daniel Tobon
committed
added cloud_is_good function
1 parent 8ac3c01 commit acaee56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

parser/include/modern/inteface_parser.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ namespace CloudParserLibrary {
2626

2727
class InterfaceParser {
2828
public:
29+
bool cloud_is_good(pcl::PointCloud<pcl::PointXYZRGB>::Ptr& cloud) {
30+
if ((cloud->points.size() > 0) or
31+
(cloud->points[0].x > 0 && cloud->points[0].y > 0 && cloud->points[0].z > 0)) {
32+
return true;
33+
}
34+
return false;
35+
}
2936
virtual void load_cloudfile(std::string filename, pcl::PointCloud<pcl::PointXYZRGB>::Ptr& cloud) = 0;
3037
};
3138

0 commit comments

Comments
 (0)