Skip to content
Snippets Groups Projects
Commit 1349f681 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

proper const/non-const getters

parent 4969af54
No related branches found
No related tags found
1 merge request!41Draft: Resolve "New branch laser 3d"
......@@ -41,7 +41,8 @@ class CaptureLaser3d : public CaptureBase
public:
CaptureLaser3d(const TimeStamp& _timestamp, SensorBasePtr _sensor, pcl::PointCloud<pcl::PointXYZ>::Ptr _point_cloud);
~CaptureLaser3d();
pcl::PointCloud<pcl::PointXYZ>::Ptr getPointCloud() const;
pcl::PointCloud<pcl::PointXYZ>::Ptr getPointCloud();
pcl::PointCloud<pcl::PointXYZ>::ConstPtr getPointCloud() const;
private:
......
......@@ -33,7 +33,12 @@ CaptureLaser3d::CaptureLaser3d(const TimeStamp& _timestamp, SensorBasePtr _senso
CaptureLaser3d::~CaptureLaser3d() {}
pcl::PointCloud<pcl::PointXYZ>::Ptr CaptureLaser3d::getPointCloud() const
pcl::PointCloud<pcl::PointXYZ>::Ptr CaptureLaser3d::getPointCloud()
{
return point_cloud_;
}
pcl::PointCloud<pcl::PointXYZ>::ConstPtr CaptureLaser3d::getPointCloud() const
{
return point_cloud_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment