correct
Syntax
Description
[
corrects the state and its associated state covariance based on the
associations
,newLandmark
] = correct(slamObj
,measurement
,measurementCovariance
)measurement
and measurementCovariance
at the
current time step. correct
uses the data association function specified
in the DataAssociationFcn
property of the ekfSLAM
object,
slamObj
, to associate the measurement to landmarks and extract new
landmarks from the measurement.
The correct
function uses these associations to correct the state
and associated state covariance, then augments the state with new landmarks.
[
passes all additional arguments specified in associations
,newLandmark
] = correct(slamObj
,measurement
,measurementCovariance
,varargin
)varargin
to the underlying
DataAssociationFcn
property of slamObj
.
The first four inputs to the DataAssociationFcn
property are the
landmark position, landmark position covariance, measurement, and measurement covariance,
followed by all arguments in varargin
.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021b