Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
LoopClosure Class Referenceabstract

Interface for detecting loop closures. More...

#include <loop_closure.hpp>

Inheritance diagram for LoopClosure:
Inheritance graph
Collaboration diagram for LoopClosure:
Collaboration graph

Classes

struct  Result
 Result of loop closure detection. More...
 

Public Member Functions

virtual ~LoopClosure ()=default
 
virtual Result detect (const Eigen::Vector3d &current_pose, const Eigen::VectorXd &map_cones, const Eigen::VectorXi &associations, const Eigen::VectorXd &observations) const =0
 Call every time you have new observations.
 

Detailed Description

Interface for detecting loop closures.

Definition at line 11 of file loop_closure.hpp.

Constructor & Destructor Documentation

◆ ~LoopClosure()

virtual LoopClosure::~LoopClosure ( )
virtualdefault

Member Function Documentation

◆ detect()

virtual Result LoopClosure::detect ( const Eigen::Vector3d &  current_pose,
const Eigen::VectorXd &  map_cones,
const Eigen::VectorXi &  associations,
const Eigen::VectorXd &  observations 
) const
pure virtual

Call every time you have new observations.

Parameters
current_poseyour latest pose in world frame
map_conesfull map of cones (in insertion order)
associationsone entry per observation: >=3 → matched map_cones[(j-3)/2] -1 → new landmark, -2 → no match
observationsraw observations
Returns
result indicating if loop closure was detected

Implemented in LapCounter.


The documentation for this class was generated from the following file: