lps_pf.py

Post here to get support
Post Reply
hyperglider
Beginner
Posts: 16
Joined: Tue Mar 15, 2016 10:12 pm

lps_pf.py

Post by hyperglider » Fri Sep 16, 2016 12:12 am

Hi,

from the LPS ROS / scripts there is the LPS_Pf.py file for the particle filter.

I am after confirmation of the variables in the particle filter in line 43:
pf = pfilter.ParticleFilter(200, 0.1, (10, 10, 2))

can anyone explain the variables for me.

Thanks
hyperglider



arnaud
Bitcraze
Posts: 2120
Joined: Tue Feb 06, 2007 12:36 pm

Re: lps_pf.py

Post by arnaud » Tue Sep 20, 2016 6:30 am

Hi hyperglider,

The variables are:
200: The number of particle in the particle filter
0.1: The "noise" added to the particle at each step (the higher, the faster the solution will be able to move, the more noise in the solution)
(10, 10, 2): The bonding box of the particle. Here 10 by 10 by 2 meters.

/Arnaud

hyperglider
Beginner
Posts: 16
Joined: Tue Mar 15, 2016 10:12 pm

Re: lps_pf.py

Post by hyperglider » Tue Sep 20, 2016 10:50 am

Hi,

What is the "bonding box of the particle"?

Regards
hyperglider

arnaud
Bitcraze
Posts: 2120
Joined: Tue Feb 06, 2007 12:36 pm

Re: lps_pf.py

Post by arnaud » Tue Sep 20, 2016 11:22 am

The particle filter will generate particles that represent possible position of the Crazyflie, the bounding box is the limit where these particles will be located. The box should be bigger than the space in which you want to locate the Crazyflie.

Post Reply