Get particles from localization algorithm
[
returns the current particles used by the
particles
,weights
]
= getParticles(mcl
)monteCarloLocalization
object.
particles
is an n-by-3 matrix that
contains the location and orientation of each particle. Each row has a
corresponding weight value specified in weights
. The number
of rows can change with each iteration of the MCL algorithm. Use this method to
extract the particles and analyze them separately from the algorithm.