rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
random_heat_mapper.h
Go to the documentation of this file.
1 #ifndef _RAPID_PERCEPTION_RANDOM_HEAT_MAPPER_H_
2 #define _RAPID_PERCEPTION_RANDOM_HEAT_MAPPER_H_
3 
4 #include "Eigen/Core"
5 #include "pcl/PointIndices.h"
6 #include "pcl/point_cloud.h"
7 #include "pcl/point_types.h"
8 
10 
11 namespace rapid {
12 namespace perception {
13 // A heat mapper that just gives equal weight to a random sample of the scene.
15  public:
17  void Compute(pcl::PointCloud<pcl::PointXYZRGB>::Ptr heatmap,
18  Eigen::VectorXd* importances);
19  void set_scene(pcl::PointCloud<pcl::PointXYZRGB>::Ptr scene);
20  void set_object(pcl::PointCloud<pcl::PointXYZRGB>::Ptr object);
21  void set_sample_ratio(double val);
22  void set_max_samples(int val);
23  void set_landmark_dimensions(double x, double y, double z);
24 
25  private:
26  pcl::PointCloud<pcl::PointXYZRGB>::Ptr scene_;
27 
28  double sample_ratio_;
29  int max_samples_;
30  double scale_x_;
31  double scale_y_;
32  double scale_z_;
33 };
34 } // namespace perception
35 } // namespace rapid
36 
37 #endif // _RAPID_PERCEPTION_RANDOM_HEAT_MAPPER_H_
void Compute(pcl::PointCloud< pcl::PointXYZRGB >::Ptr heatmap, Eigen::VectorXd *importances)
void set_landmark_dimensions(double x, double y, double z)
void set_object(pcl::PointCloud< pcl::PointXYZRGB >::Ptr object)
void set_scene(pcl::PointCloud< pcl::PointXYZRGB >::Ptr scene)