addScan
Add scan to lidar SLAM map
Syntax
Description
addScan(
adds a lidar scan, slamObj,currScan)currScan, to the lidar SLAM object,
slamObj. The function uses scan matching to correlate
this scan to the most recent one, then adds it to the pose graph defined in
slamObj. If the scan is accepted,
addScan detects loop closures and optimizes based on
settings in slamObj.
addScan(
also specifies a relative pose to the latest lidar scan pose in
slamObj,currScan,relPoseEst)slamObj. This relative pose improves the scan matching.
Note
The relPoseEst input is ignored when the
ScanRegistrationMethod property of
lidarSLAM object is set to
'PhaseCorrelation'.
[
outputs detailed information about adding the scan to the SLAM object.
isAccepted,loopClosureInfo,optimInfo] = addScan(___)isAccepted indicates if the scan is added or rejected.
loopClosureInfo and optimInfo
indicate if a loop closure is detected or the pose graph is optimized.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
![Figure contains an axes object. The axes object with title Lidar Scans and Poses, xlabel X [meters], ylabel Y [meters] contains 121 objects of type line.](../../examples/nav/win64/PerformSLAMUsingLidarScansExample_01.png)
![Figure contains an axes object. The axes object with title Occupancy Map of Garage, xlabel X [meters], ylabel Y [meters] contains an object of type image.](../../examples/nav/win64/PerformSLAMUsingLidarScansExample_02.png)