mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 17:47:49 +08:00
Fixed negative Odom/ImageDecimation not handled
This commit is contained in:
@@ -585,11 +585,11 @@ void Memory::parseParameters(const ParametersMap & parameters)
|
||||
UASSERT_MSG(_maxStMemSize >= 0, uFormat("value=%d", _maxStMemSize).c_str());
|
||||
UASSERT_MSG(_similarityThreshold >= 0.0f && _similarityThreshold <= 1.0f, uFormat("value=%f", _similarityThreshold).c_str());
|
||||
UASSERT_MSG(_recentWmRatio >= 0.0f && _recentWmRatio <= 1.0f, uFormat("value=%f", _recentWmRatio).c_str());
|
||||
if(_imagePreDecimation == 0)
|
||||
if(_imagePreDecimation <= 0)
|
||||
{
|
||||
_imagePreDecimation = 1;
|
||||
}
|
||||
if(_imagePostDecimation == 0)
|
||||
if(_imagePostDecimation <= 0)
|
||||
{
|
||||
_imagePostDecimation = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user