Filter löschen
Filter löschen

Unable to resolve the name robotics.OccupancyGrid

9 Ansichten (letzte 30 Tage)
Faiza Gul
Faiza Gul am 17 Jun. 2021
Kommentiert: Faiza Gul am 24 Jun. 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 Kommentar
Amrtanshu Raj
Amrtanshu Raj am 21 Jun. 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)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Network Connection and Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by