-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kinematic ICP Threshold #15
base: main
Are you sure you want to change the base?
Conversation
Make *USE_SYSTEM_SOPHUS* consistent with the rest of the options.
More accurate statement in the readme, the system does not need to follow a unicycle motion model, just the pose correction needs to do that, which applies to much more robotics platforms.
* Add black and isort * Format * use black for isort
* We didnt have proper flagging in the online node * Clean launch common args * Fix formatting python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing this. After discussing it for a while, we should definitely address it. Using the same threshold always felt wrong.
I just found a few minor things.
Before merging, we should thoroughly test the impact on performance. Do you already know how it looks for our test cases and also quantitatively for the sequences we recorded?
Besides that, we can also discuss how to actually compose that two kinds of error terms. Right now, we sum them, and this, of course, works, but how about, for example, taking the max of both:
Just as an idea, this guarantees that we will compensate at least for the map discretization error and increase it if our odometry is far off.
Also, I'm not sure if the multiplication by 3 is still needed. Have you tried removing it?
Lastly, one comment on the map discretization error. If you, for example, assume three map points on a plane with a map resolution of
It is based on the idea that the three map points form an equilateral triangle. But maybe that's also too much, and we can just go with the map resolution to include some additional safety margin.
cpp/kinematic_icp/correspondence_threshold/CorrespondenceThreshold.hpp
Outdated
Show resolved
Hide resolved
cpp/kinematic_icp/correspondence_threshold/CorrespondenceThreshold.cpp
Outdated
Show resolved
Hide resolved
…hold.hpp Co-authored-by: Benedikt Mersch <mersch@igg.uni-bonn.de>
I tried different things before coming up with this solution. I didn't directly try the |
Motivation
The adaptive threshold of KISS-ICP does not translate well to Kinematic, as in the latter case, we typically have an excellent initial guess from the robot odometry. This implies that, in principle, we can be more conservative with the threshold (lower value), making the system more robust in the data association phase.
Concept of what I have done
What I tried to do in this PR, is to design a new correspondence threshold scheme,
CorrespondenceThreshold
that takes into account two things:VoxelHashMap
has a specific point resolution, given byvoxel_size
andmax_point_per_voxel
. We should consider this resolution into our threshold, as it should be impossible for the system to go below this value. Why is that? If we look at theVoxelHashMap,
we will add a point to the map if it is at a minimum distance from all the other points and is at least equal to the map resolutionmap_discretization_error_
parameter.min_motion_threshold
andinitial_threshold
as now, we can expect our motion prediction to be much more accurate since the beginning. Plus, we have a minimum value given by default bymap_discretization_error_
.If$\sigma_{\text{map}}$ is $\sigma_{\text{odom}}$ is the average deviation between robot and LiDAR odometry in point space (as in KISS), our new threshold $\tau$ will be:
map_discretization_error_
andAdd configuration parameters for this module
Finally, I decided to give the user the option to fix their threshold if they are willing to tune the parameter for their scenario. This is done with the new parameters
use_adaptive_threshold
, which enables or disables the adaptation of the threshold, andfixed_threshold
, which sets the threshold value in caseuse_adaptive_threshold=false
.