Simulation Map Generator Error

2 views (last 30 days)
Trying to run the simulation map generator for the mobile robotics toolbox. When I hit export, I get the error:
Unable to resolve the name robotics.BinaryOccupancyGrid.
Error in simMapGenerator/exportMapSelect (line 233)
app.simMap = robotics.BinaryOccupancyGrid(compMap,app.scaleFactor);

Accepted Answer

Cam Salzberger
Cam Salzberger on 27 Oct 2021
Hello Nicholas,
binaryOccupancyMap is the new name of robotics.BinaryOccupancyGrid, though the old way of calling it will still work as well. It is available through either Robotics System Toolbox or Navigation Toolbox. Make sure you have one of those toolboxes, as they are listed as being required on the Mobile Robotics Toolbox File Exchange entry.
If you do have one of those toolboxes, try the usual method of ensuring that functionality is available:
map = binaryOccupancyMap(10,10,10);
mapOldWay = robotics.BinaryOccupancyGrid(10,10,10);
If these do not work, ensure that your MATLAB search path is set correctly:
restoredefaultpath
rehash toolboxcache
-Cam

More Answers (0)

Community Treasure Hunt

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

Start Hunting!