Map Difference between 2 maps

17 visualizaciones (últimos 30 días)
Adrien
Adrien el 19 de Abr. de 2022
Comentada: Adrien el 19 de Abr. de 2022
Hello,
I was using this function: binaryOccupancyMap
I created my occupancy maps, and wanted to make see the differences between 2 maps. I figured it would be simple, just compare the cells at the same index of both maps. However I have no idea how to access the grid values. The binaryOccupancyMap object shows it's properties (resolution, width, height ...) but not the data.
Do you know how I could access the actual grid data?
Thx for any input,

Respuesta aceptada

Cam Salzberger
Cam Salzberger el 19 de Abr. de 2022
Hello Adrien,
Typically, if you are just checking a few cell's occupancy values, you would use the "getOccupancy" method. But if you're comparing two full maps, it's probably more efficient to get the full matrix out of both and use logical operators on that. You can get the matrix with the "occupancyMatrix" method.
-Cam
  1 comentario
Adrien
Adrien el 19 de Abr. de 2022
Thx, now i see that function in the function's documentation page, for some reasons my eyes keept skipping that line..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by