Unable to resolve the name robotics.OccupancyGrid

6 visualizzazioni (ultimi 30 giorni)
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 Commento
Amrtanshu Raj
Amrtanshu Raj il 21 Giu 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)

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 21 Giu 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 Commento
Faiza Gul
Faiza Gul il 24 Giu 2021
Thank you so much Walter. Yes I didn't notice that navigation toolbox is missing. Problem solved.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by