主要内容

配准和 SLAM

R2026b
使用 ICP 或 NDT 等算法或基于特征的技术配准点云,使用三维点云数据或二维激光雷达扫描数据实现 SLAM 算法

点云配准是将同一场景的两个三维点云对齐到同一公共坐标系中的过程。Point Cloud Toolbox™ 函数支持使用局部和全局方法将点云相互配准,这些方法包括迭代最近点 (ICP)、激光雷达里程计与地理建图 (LOAM)、正态分布变换 (NDT)、快速全局配准 (FGR) 和相干点漂移 (CPD)。您也可以使用点云配准分析器以交互方式配准点云,比较不同配准方法的结果,调整参数,以及添加预处理步骤。有关详细信息,请参阅Get Started with the Point Cloud Registration Analyzer App。

同时定位与地图构建 (SLAM) 是计算车辆或机器人相对于其周围环境的位置和姿态,同时构建该环境的地图的过程。该工具箱支持使用点云数据进行基于图的三维 SLAM。有关详细信息,请参阅Implement Point Cloud SLAM in MATLAB。

您也可以使用 lidarscanmap 对象,基于二维激光雷达扫描执行 SLAM。有关详细信息,请参阅Build Map from 2-D Lidar Scans Using SLAM。

App

点云配准分析器Compare, tune, and analyze point cloud registration results (自 R2024a 起)

函数

全部展开

pctransformTransform 3-D point cloud
rigidtform3d三维刚性几何变换 (自 R2022b 起)
affinetform3d三维仿射几何变换 (自 R2022b 起)
simtform3d3-D similarity geometric transformation (自 R2022b 起)
transltform3d3-D translation geometric transformation (自 R2022b 起)
estgeotform3dEstimate 3-D geometric transformation from matching point pairs (自 R2022b 起)
undistortEgoMotionUndistort point cloud affected by ego motion (自 R2023a 起)
quaternionCreate quaternion array (自 R2026b 起)
se3SE(3) homogeneous transformation (自 R2026b 起)
so3SO(3) rotation (自 R2026b 起)
pcalignAlign array of point clouds
pcmergeMerge two 3-D point clouds
pccatConcatenate 3-D point clouds

检测特征

detectISSFeaturesDetect 3-D ISS feature points in point cloud (自 R2022a 起)
detectLOAMFeaturesDetect LOAM feature points in point cloud (自 R2022a 起)
LOAMPointsObject for storing LOAM feature points (自 R2022a 起)
detectRectangularPlanePoints(To be removed) Detect rectangular plane of specified dimensions in point cloud
detectRoadAnglesDetect road angles in off-road point cloud (自 R2022b 起)

提取特征

extractFPFHFeaturesExtract fast point feature histogram (FPFH) descriptors from point cloud
extractEigenFeaturesExtract eigenvalue-based features from point cloud segments
eigenFeature用于存储基于特征值的特征的对象

匹配特征

pcmatchfeaturesFind matching features between point clouds
pcregistericpRegister two point clouds using ICP algorithm
pcregisterloamRegister two point clouds using LOAM algorithm (自 R2022a 起)
pcregisterfgrRegister two point clouds using Fast Global Registration (FGR) algorithm (自 R2022b 起)
pcregisterndtRegister two point clouds using NDT algorithm
pcregistercorrRegister two point clouds using phase correlation
pcregistercpdRegister two point clouds using CPD algorithm

定位与地图构建

lidarscanmapSimultaneous localization and mapping using 2-D lidar scans (自 R2022b 起)
addScanAdd 2-D lidar scan to map (自 R2022b 起)
lidarScanCreate object for storing 2-D lidar scan

位姿优化

poseGraphCreate 2-D pose graph from lidar scan map (自 R2022b 起)
updateScanPosesUpdate absolute poses of 2-D lidar scans (自 R2022b 起)
findPoseFind absolute pose of 2-D lidar scan in map (自 R2022b 起)
matchScansEstimate pose between two laser scans
matchScansGridEstimate pose between two lidar scans using grid-based search
matchScansLineEstimate pose between two laser scans using line features
transformScanTransform laser scan based on relative pose

回环检测

detectLoopClosureDetect loop closure in 2-D lidar scan map (自 R2022b 起)
addLoopClosureAdd loop closure to map (自 R2022b 起)
deleteLoopClosureDelete loop closure between 2-D lidar scans (自 R2022b 起)

定位与地图构建

pcmaploamCreate map of LOAM feature points for map building (自 R2022b 起)
pcmapndtCreate localization map using Normal Distributions Transform (NDT)
pcmapsegmatchCreate map for localization and loop closure detection using SegMatch

位姿优化

pcviewsetObject for managing data for point cloud-based odometry and SLAM
createPoseGraphCreate pose graph from point cloud view set
optimizePosesOptimize absolute poses using relative pose constraints

回环检测

scanContextDistanceDistance between scan context descriptors
scanContextDescriptorExtract scan context descriptor from point cloud
scanContextLoopDetectorDetect loop closures using scan context descriptors

主题

精选示例