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

[AMCL] pf_z's default value seems wrong and is assigned directly into pop_z #4190

Open
Mygao opened this issue Mar 18, 2024 · 1 comment
Open

Comments

@Mygao
Copy link
Contributor

Mygao commented Mar 18, 2024

https://github.com/ros-planning/navigation2/blob/db974ea91b1eb01d7abf094aad511c0f2306d55f/nav2_amcl/src/amcl_node.cpp#L160

Above, pf_z value is set to 0.99 and this is likely set with probability in mind.

Eventually pf_z value goes to pop_z value in pf.c and regarding the paper this value is quantile value: for 99% probability, appropriate value should be around 3(this is set right in pf_alloc function: pop_err as 0.01 and pop_z as 3).

I think default value should be 3.

@SteveMacenski
Copy link
Member

I yield to @mikeferguson on this one since I know it’s more topical for him, but in general I’m not in love with changing defaults inline in the code after all these years. Changing defaults in our provided configurations in nav2 bringup and the documentation is definitely possible though!

If he says you’re right and it’s a better global value, we can update it in the code. If he thinks it’s right but not objectively a better global value, we can update it in the docs and bringup so folks can leverage it.

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

2 participants