Skip to content
Snippets Groups Projects
Commit 1f0390d9 authored by Sergi Pujol's avatar Sergi Pujol
Browse files

added shared ptr for scene extraction

parent b7ed32b1
No related branches found
No related tags found
1 merge request!4Resolve "Implementation of Falko lib"
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
namespace laserscanutils{ namespace laserscanutils{
cornerScene extractScene(LaserScan scan,LaserScanParams scanParams){ std::shared_ptr<cornerScene> loopClosureBase2d::extractScene(LaserScan &scan,LaserScanParams &scanParams){
cornerScene NewScene; std::shared_ptr<cornerScene> NewScene;
return NewScene; return NewScene;
} }
} }
\ No newline at end of file
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <memory>
/************************** /**************************
* laser_scan_utils includes * * laser_scan_utils includes *
...@@ -19,11 +20,6 @@ ...@@ -19,11 +20,6 @@
namespace laserscanutils namespace laserscanutils
{ {
/*
struct cornerScene{
std::vector<double> keypointsList;
std::vector<double> descriptorsList;
};*/
/** \brief A 2base class for loop closure using falko library /** \brief A 2base class for loop closure using falko library
*/ */
...@@ -41,11 +37,11 @@ public: ...@@ -41,11 +37,11 @@ public:
/** \brief compare new scans against the trained set in order to find loop closures /** \brief compare new scans against the trained set in order to find loop closures
**/ **/
virtual void findLoopClosure(); virtual void findLoopClosure(std::list<cornerScene>& scenes, const cornerScene newScene);
/** \brief update the scene struct with keypoints and descriptors /** \brief update the scene struct with keypoints and descriptors
**/ **/
virtual cornerScene extractScene(LaserScan scan,LaserScanParams scanParams); virtual std::shared_ptr<cornerScene> extractScene(LaserScan &scan,LaserScanParams &scanParams);
}; };
} /* namespace laserscanutils */ } /* namespace laserscanutils */
......
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