Unable to resolve the name robotics.OccupancyGrid

14 views (last 30 days)
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 Comment
Amrtanshu Raj
Amrtanshu Raj on 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)

Sign in to comment.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Network Connection and Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!