Help CenterHelp Center
Import an octree file as 3D occupancy map
map3D = importOccupancyMap3D(mapPath)
example
map3D = importOccupancyMap3D(mapPath) imports the octree file (.ot/bt) specified at the relative or absolute file path, mapPath
map3D
mapPath
.ot/bt
collapse all
Import a 3-D occupancy map.
map3D = importOccupancyMap3D("citymap.ot")
map3D = occupancyMap3D with properties: ProbabilitySaturation: [1.0000e-03 0.9990] Resolution: 1 OccupiedThreshold: 0.6500 FreeThreshold: 0.2000
Display the map.
show(map3D)
Check the occupancy statuses of different locations and get their occupancy values.
iOccVal1 = checkOccupancy(map3D,[50 15 0])
iOccVal1 = 0
OccVal1 = getOccupancy(map3D,[50 15 0])
OccVal1 = 0.0019
iOccVal2 = checkOccupancy(map3D,[50 15 15])
iOccVal2 = 1
OccVal2 = getOccupancy(map3D,[50 15 15])
OccVal2 = 0.6500
iOccVal3 = checkOccupancy(map3D,[50 15 45])
iOccVal3 = -1
OccVal3 = getOccupancy(map3D,[50 15 45])
OccVal3 = 0.5000
Absolute or relative path to octree file (.ot/bt) , specified as a string scalar or character vector.
Example: "path/to/file/map.ot"
"path/to/file/map.ot"
Data Types: char | string
char
string
occupancyMap3D
3-D occupancy map, specified as a occupancyMap3D object.
Introduced in R2020a
lidarSLAM
occupancyMap
insertPointCloud
inflate
setOccupancy
show
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office