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

added cornerScene struct

parent 837e56b7
No related branches found
No related tags found
1 merge request!4Resolve "Implementation of Falko lib"
......@@ -56,6 +56,7 @@ SET(HDRS
point_set.h
polyline.h
scan_segment.h
loop_closure_base_2d.h
)
IF(csm_FOUND)
SET(HDRS ${HDRS}
......@@ -64,7 +65,8 @@ SET(HDRS
IF(falkolib_FOUND)
SET(HDRS ${HDRS}
corner_falko_2d.h)
corner_falko_2d.h
corner_scene.h)
ENDIF(falkolib_FOUND)
#sources
......@@ -84,6 +86,7 @@ SET(SRCS
point_set.cpp
polyline.cpp
scan_segment.cpp
loop_closure_base_2d.cpp
)
IF(csm_FOUND)
SET(SRCS ${SRCS}
......@@ -92,7 +95,8 @@ SET(SRCS
IF(falkolib_FOUND)
SET(SRCS ${SRCS}
corner_falko_2d.cpp)
corner_falko_2d.cpp
corner_scene.cpp)
ENDIF(falkolib_FOUND)
......
/**
* \file corner_scene.h
*
* Created on: Feb 9, 2021
* \author: spujol
*/
#ifndef CORNER_SCENE_H_
#define CORNER_SCENE_H_
#include <iostream>
#include <fstream>
namespace laserscanutils
{
struct cornerScene{
std::vector<double> keypointsList;
std::vector<double> descriptorsList;
};
} /* namespace laserscanutils */
#endif /* CORNER_SCENE_H_ */
\ No newline at end of file
/**
* \file loop_closure_base_2d.h
*
* Created on: Feb 9, 2021
* \author: spujol
*/
# include "loop_closure_base_2d.h"
namespace laserscanutils{
cornerScene extractScene(LaserScan scan,LaserScanParams scanParams){
cornerScene NewScene;
return NewScene;
}
}
\ No newline at end of file
......@@ -11,8 +11,20 @@
#include <iostream>
#include <fstream>
/**************************
* laser_scan_utils includes *
**************************/
#include "laser_scan.h"
#include "corner_scene.h"
namespace laserscanutils
{
/*
struct cornerScene{
std::vector<double> keypointsList;
std::vector<double> descriptorsList;
};*/
/** \brief A 2base class for loop closure using falko library
*/
class loopClosureBase2d{
......@@ -21,14 +33,21 @@ private:
public:
/** \brief Constructor
**/
loopClosureBase2d();
/** \brief Destructor
**/
~loopClosureBase2d();
/** \brief compare new scans against the trained set in order to find loop closures
**/
virtual void findLoopClosure();
/** \brief update the scene struct with keypoints and descriptors
**/
virtual cornerScene extractScene(LaserScan scan,LaserScanParams scanParams);
};
} /* namespace laserscanutils */
#endif /* LANDMARK_POLYLINE_2d_H_ */
\ No newline at end of file
#endif /* LOOP_CLOSURE_BASE_2D_H_ */
\ No newline at end of file
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