correct
Adjust state estimate based on sensor measurement
Syntax
Description
[
calculates the corrected system state and its associated uncertainty
covariance based on a sensor stateCorr
,stateCov
]
= correct(pf
,measurement
)measurement
at the
current time step. correct
uses the
MeasurementLikelihoodFcn
property from
the particle filter object, pf
, as a function
to calculate the likelihood of the sensor measurement for each
particle. The two inputs to the
MeasurementLikelihoodFcn
function are:
pf
– ThestateEstimatorPF
object, which contains the particles of the current iterationmeasurement
– The sensor measurements used to correct the state estimate
The MeasurementLikelihoodFcn
function then extracts the best state estimate and covariance based
on the setting in the StateEstimationMethod
property.
[
passes all additional arguments in stateCorr
,stateCov
]
= correct(pf
,measurement
,varargin
)varargin
to
the underlying MeasurementLikelihoodFcn
after the
first three required inputs.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016a
See Also
stateEstimatorPF
| resamplingPolicyPF
| initialize
| getStateEstimate
| predict
Topics
- Track a Car-Like Robot Using Particle Filter (Robotics System Toolbox)
- Particle Filter Parameters
- Particle Filter Workflow