30 #ifndef FRAME_PROJECTOR_H 31 #define FRAME_PROJECTOR_H 33 #include <pcl/point_cloud.h> 34 #include <pcl/point_types.h> 35 #include <opencv2/core/core.hpp> 67 typedef std::vector< std::vector< std::vector<double> > >
RangeIndex;
71 RangeIndex cloudToRangeIndex(
const pcl::PointCloud<pcl::PointXYZ>::Ptr & pcd)
const;
75 cv::Mat estimateMapDepth(
76 const pcl::PointCloud<pcl::PointXYZ>::Ptr & map,
78 const cv::Mat & measurement,
79 double coneRadius = 0.02,
80 double coneStdevThresh = 0.03)
const;
86 bool coneFit(
const cv::Size& imageSize,
const RangeIndex& rindex,
87 int uc,
int vc,
double radius,
double measurement_depth,
88 double* mean,
double*
stdev)
const;
96 #endif // FRAME_PROJECTOR_H
double stdev(const Eigen::VectorXd &vec)
rtabmap::CameraModel model_
std::vector< std::vector< std::vector< double > > > RangeIndex