Skip to content
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

Global constraint search ignores timeout when trajectories are not connected #1547

Open
MichaelGrupp opened this issue Mar 19, 2019 · 1 comment

Comments

@MichaelGrupp
Copy link
Contributor

MichaelGrupp commented Mar 19, 2019

Following scenario:

  • load frozen state with multiple trajectories 0 & 1 (e.g. assembled in cloud)
  • start a trajectory 3 with initial pose relative to trajectory 0 of those frozen trajectories

Now 3 & 0 are connected, but 3 & 1 are not. This means that LastConnectionTime(3, 0) returns a 0 time value by convention, and thus we can trigger a global constraint search in this code path (regardless of how you set global_constraint_search_after_n_seconds):

https://github.com/googlecartographer/cartographer/blob/ea2bf3b1b2fc9ea00f094ccfca24c4d17f10763a/cartographer/mapping/internal/2d/pose_graph_2d.cc#L267-L287


My question: is this a bug? The name global_constraint_search_after_n_seconds implies that the search is done after n seconds, but here it's scheduled immediately if the sampler pulses.

@MichaelGrupp
Copy link
Contributor Author

This discussion is related, however it only considers the single trajectory case: #1142 (comment)

Citing @wohe :

without an initial pose there is not guaranteed connection between the two coordinate systems of the robot and the map

In the multi trajectory scenario I outlined here, there is however a connection. I'm fully aware that setting global_sampling_ratio to 0 finally disables global searches, but this is not obvious in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant