RegistrationIcp.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef REGISTRATIONICP_H_
29 #define REGISTRATIONICP_H_
30 
31 #include "rtabmap/core/rtabmap_core_export.h" // DLL export/import defines
32 
34 #include <rtabmap/core/Signature.h>
35 
36 namespace rtabmap {
37 
38 // Geometrical registration
39 class RTABMAP_CORE_EXPORT RegistrationIcp : public Registration
40 {
41 public:
42  // take ownership of child
43  RegistrationIcp(const ParametersMap & parameters = ParametersMap(), Registration * child = 0);
44  virtual ~RegistrationIcp();
45 
46  virtual void parseParameters(const ParametersMap & parameters);
47 
48 protected:
49  virtual Transform computeTransformationImpl(
50  Signature & from,
51  Signature & to,
52  Transform guess,
53  RegistrationInfo & info) const;
54  virtual bool isScanRequiredImpl() const {return true;}
55  virtual bool canUseGuessImpl() const {return true;}
56  virtual float getMinGeometryCorrespondencesRatioImpl() const {return _correspondenceRatio;}
57 
58 private:
59  int _strategy;
61  float _maxRotation;
62  float _voxelSize;
64  float _rangeMin;
65  float _rangeMax;
69  float _epsilon;
71  bool _force4DoF;
84  unsigned int _ccSamplingLimit;
87  std::string _debugExportFormat;
88  std::string _workingDir;
89 
92 };
93 
94 }
95 
96 #endif /* REGISTRATIONICP_H_ */
rtabmap::RegistrationIcp::_downsamplingStep
int _downsamplingStep
Definition: RegistrationIcp.h:63
rtabmap::RegistrationIcp::_voxelSize
float _voxelSize
Definition: RegistrationIcp.h:62
rtabmap::RegistrationIcp::canUseGuessImpl
virtual bool canUseGuessImpl() const
Definition: RegistrationIcp.h:55
rtabmap::RegistrationIcp::_ccSamplingLimit
unsigned int _ccSamplingLimit
Definition: RegistrationIcp.h:84
Registration.h
rtabmap::RegistrationIcp
Definition: RegistrationIcp.h:39
rtabmap::Registration
Definition: Registration.h:39
rtabmap::RegistrationIcp::_libpointmatcherKnn
int _libpointmatcherKnn
Definition: RegistrationIcp.h:80
rtabmap::RegistrationInfo
Definition: RegistrationInfo.h:34
rtabmap::RegistrationIcp::_rangeMin
float _rangeMin
Definition: RegistrationIcp.h:64
rtabmap::RegistrationIcp::_epsilon
float _epsilon
Definition: RegistrationIcp.h:69
rtabmap::RegistrationIcp::_pointToPlane
bool _pointToPlane
Definition: RegistrationIcp.h:73
rtabmap::RegistrationIcp::_libpointmatcherConfig
std::string _libpointmatcherConfig
Definition: RegistrationIcp.h:79
rtabmap::RegistrationIcp::_outlierRatio
float _outlierRatio
Definition: RegistrationIcp.h:83
rtabmap::ParametersMap
std::map< std::string, std::string > ParametersMap
Definition: Parameters.h:43
rtabmap::RegistrationIcp::_rangeMax
float _rangeMax
Definition: RegistrationIcp.h:65
rtabmap::RegistrationIcp::_pointToPlaneMinComplexity
float _pointToPlaneMinComplexity
Definition: RegistrationIcp.h:77
rtabmap::RegistrationIcp::_libpointmatcherICP
void * _libpointmatcherICP
Definition: RegistrationIcp.h:90
rtabmap::RegistrationIcp::_pointToPlaneLowComplexityStrategy
int _pointToPlaneLowComplexityStrategy
Definition: RegistrationIcp.h:78
rtabmap::RegistrationIcp::_strategy
int _strategy
Definition: RegistrationIcp.h:59
Signature.h
rtabmap::RegistrationIcp::_ccMaxFinalRMS
double _ccMaxFinalRMS
Definition: RegistrationIcp.h:86
rtabmap::RegistrationIcp::_reciprocalCorrespondences
bool _reciprocalCorrespondences
Definition: RegistrationIcp.h:67
rtabmap::RegistrationIcp::_force4DoF
bool _force4DoF
Definition: RegistrationIcp.h:71
rtabmap::RegistrationIcp::_maxTranslation
float _maxTranslation
Definition: RegistrationIcp.h:60
info
else if n * info
rtabmap::RegistrationIcp::_filtersEnabled
int _filtersEnabled
Definition: RegistrationIcp.h:72
rtabmap::RegistrationIcp::_libpointmatcherICPFilters
void * _libpointmatcherICPFilters
Definition: RegistrationIcp.h:91
rtabmap::RegistrationIcp::_ccFilterOutFarthestPoints
bool _ccFilterOutFarthestPoints
Definition: RegistrationIcp.h:85
rtabmap::RegistrationIcp::_maxIterations
int _maxIterations
Definition: RegistrationIcp.h:68
rtabmap::RegistrationIcp::getMinGeometryCorrespondencesRatioImpl
virtual float getMinGeometryCorrespondencesRatioImpl() const
Definition: RegistrationIcp.h:56
rtabmap::RegistrationIcp::_pointToPlaneGroundNormalsUp
float _pointToPlaneGroundNormalsUp
Definition: RegistrationIcp.h:76
rtabmap::Transform
Definition: Transform.h:41
rtabmap::RegistrationIcp::_correspondenceRatio
float _correspondenceRatio
Definition: RegistrationIcp.h:70
rtabmap::RegistrationIcp::_libpointmatcherEpsilon
float _libpointmatcherEpsilon
Definition: RegistrationIcp.h:81
rtabmap::RegistrationIcp::isScanRequiredImpl
virtual bool isScanRequiredImpl() const
Definition: RegistrationIcp.h:54
rtabmap::RegistrationIcp::_pointToPlaneK
int _pointToPlaneK
Definition: RegistrationIcp.h:74
rtabmap::RegistrationIcp::_debugExportFormat
std::string _debugExportFormat
Definition: RegistrationIcp.h:87
rtabmap::RegistrationIcp::_maxCorrespondenceDistance
float _maxCorrespondenceDistance
Definition: RegistrationIcp.h:66
rtabmap::RegistrationIcp::_libpointmatcherIntensity
bool _libpointmatcherIntensity
Definition: RegistrationIcp.h:82
rtabmap
Definition: CameraARCore.cpp:35
rtabmap::RegistrationIcp::_pointToPlaneRadius
float _pointToPlaneRadius
Definition: RegistrationIcp.h:75
rtabmap::RegistrationIcp::_workingDir
std::string _workingDir
Definition: RegistrationIcp.h:88
rtabmap::RegistrationIcp::_maxRotation
float _maxRotation
Definition: RegistrationIcp.h:61
rtabmap::Signature
Definition: Signature.h:48


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:15