I hope to dynamically adjust the maximum number of features extracted by the RTAB-Map front-end odometry (which I believe corresponds to the kVisMaxFeatures parameter) based on the uncertainty of the globally estimated pose (the trace of the covariance matrix) during the mapping process. Could you please advise which code file I should modify to achieve this?
Additionally, I attempted to modify this parameter directly in the mainloop() function of OdometryROS.cpp using the following code:
parameters_[Parameters::kVisMaxFeatures()] = "100";
this->updateParameters(parameters_);
However, this change did not take effect. During mapping, the output still shows similar logs, such as:
[rgbd_odometry-1] [INFO] [1772120446.888656658] [rtabmap.rgbd_odometry]: Odom: quality=389, std dev=0.068907m|0.021630rad, update time=0.025438s delay=0.330555s
The fact that the "quality" value is still bigger than 100 suggests that the parameter modification was not actually applied. How should I modify the parameters for the change to take effect correctly?
I hope to dynamically adjust the maximum number of features extracted by the RTAB-Map front-end odometry (which I believe corresponds to the
kVisMaxFeaturesparameter) based on the uncertainty of the globally estimated pose (the trace of the covariance matrix) during the mapping process. Could you please advise which code file I should modify to achieve this?Additionally, I attempted to modify this parameter directly in the
mainloop()function ofOdometryROS.cppusing the following code:parameters_[Parameters::kVisMaxFeatures()] = "100";this->updateParameters(parameters_);However, this change did not take effect. During mapping, the output still shows similar logs, such as:
[rgbd_odometry-1] [INFO] [1772120446.888656658] [rtabmap.rgbd_odometry]: Odom: quality=389, std dev=0.068907m|0.021630rad, update time=0.025438s delay=0.330555sThe fact that the "quality" value is still bigger than 100 suggests that the parameter modification was not actually applied. How should I modify the parameters for the change to take effect correctly?