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

What does the symbol d mean #6

Open
God-Ray opened this issue Dec 17, 2021 · 2 comments
Open

What does the symbol d mean #6

God-Ray opened this issue Dec 17, 2021 · 2 comments

Comments

@God-Ray
Copy link

God-Ray commented Dec 17, 2021

Hello, very glad to read your wonderful project mcl_pi_gazebo. And Im confused that  what does the symbol d and PF_l  PF_t   mean in MCL_PI.py? 
@ortslil64
Copy link
Member

ortslil64 commented Dec 17, 2021 via email

@God-Ray
Copy link
Author

God-Ray commented Dec 19, 2021

Thank you for your reply!
While I mean what do these symbols stand for in the MCL_PI.py codes.
image

if recive_particles:
print "recived particles!"
fusion.PI_t = particles
d = np.linalg.norm(np.mean(particles[:,0:2],axis=0) - fusion.mu_t_hat)
print "d= ", d
if d < 0.7:
PF_l.weights = fusion.update_weight()
PF_l.resampling()
recive_particles = 0

When I run the mcl_pi_move_base.launch, I see the d values "d=~~~~“ in the terminal.
There are few annotations in the codes, it is hard for me to understand the codes.
Hope for your reply, thank you very much!!!

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