Unable to resolve the name robotics.OccupancyGrid

15 visualizaciones (últimos 30 días)
Faiza Gul
Faiza Gul el 17 de Jun. de 2021
Comentada: Faiza Gul el 24 de Jun. de 2021
I have a code which use ros toolbox and robotics system toolbox. I have them installed.
The code was working fine but now its giving this error:
Unable to resolve the name robotics.OccupancyGrid
don't know how to resolve it.
map = robotics.OccupancyGrid(25,25,20)
  1 comentario
Amrtanshu Raj
Amrtanshu Raj el 21 de Jun. de 2021
Hi,
Can you check that you do not have any local function or variable with the name robotics defined.
Try
clear
Then again try.
map = robotics.OccupancyGrid(25,25,20)

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Jun. de 2021
The Robotics Toolbox has binaryOccupancyMap https://www.mathworks.com/help/robotics/ref/binaryoccupancymap.html
However, OccupancyMap and OccupancyMap3D are from the Navigation Toolbox
  1 comentario
Faiza Gul
Faiza Gul el 24 de Jun. de 2021
Thank you so much Walter. Yes I didn't notice that navigation toolbox is missing. Problem solved.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Network Connection and Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by