diff --git a/include/core/processor/processor_loopclosure_base2.h b/include/core/processor/processor_loopclosure_base2.h index e8557edebe66cc8fffc47ef17751b8c4ea1bd43a..017420268d7372bea3fd9473445c35438fb63e5a 100644 --- a/include/core/processor/processor_loopclosure_base2.h +++ b/include/core/processor/processor_loopclosure_base2.h @@ -21,7 +21,7 @@ struct ProcessorParamsLoopClosure2 : public ProcessorParamsBase * * This is an abstract class. * + You must define the following classes : - * - voteProcessLoopClosure() + * - voteSearchLoopClosure() * - computeFeatures() * - findLoopCandidate() * - createFactors() @@ -65,11 +65,11 @@ protected: /** \brief Called by process(). Tells if processLoopClosure will be called */ - virtual bool voteProcessLoopClosure(CaptureBasePtr _incoming_ptr) = 0; + virtual bool voteSearchLoopClosure(CaptureBasePtr _incoming_ptr) = 0; /** \brief Tries to close a loop * - * this method is called in process() if voteProcessLoopClosure retruns true + * this method is called in process() if voteSearchLoopClosure retruns true * this method uses : * - selectPairKC() * - computeFeatures() @@ -93,7 +93,7 @@ protected: * the computations to create thies featrues must be done here * * In this method you should add the capture to the keyframe if necessary - * and add the features to the capture + * and add the features to the capture */ virtual void computeFeatures(std::pair<FrameBasePtr,CaptureBasePtr>) = 0; diff --git a/src/processor/processor_loopclosure_base2.cpp b/src/processor/processor_loopclosure_base2.cpp index 100a55ccba7e053a34407038cb9661088e8035b8..7cc1483f8b2a8cffa22fcecbc6a35fffbda5e0cc 100644 --- a/src/processor/processor_loopclosure_base2.cpp +++ b/src/processor/processor_loopclosure_base2.cpp @@ -24,7 +24,7 @@ void ProcessorLoopClosureBase2::process(CaptureBasePtr _incoming_ptr) // the pre-process, if necessary, is implemented in the derived classes preProcess(); - if (voteProcessLoopClosure(_incoming_ptr)) + if (voteSearchLoopClosure(_incoming_ptr)) { //CREAT_THREAD(function=processLoopClosure); processLoopClosure();