Unable to resolve the name robotics.OccupancyGrid

9 次查看(过去 30 天)
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 个评论
Amrtanshu Raj
Amrtanshu Raj 2021-6-21
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)

请先登录,再进行评论。

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Network Connection and Exploration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by