<SOS> Unrecognized function or variable 'setOccupancy'.

1 回表示 (過去 30 日間)
Tuhin Banerjee
Tuhin Banerjee 2021 年 12 月 7 日
回答済み: Cam Salzberger 2021 年 12 月 8 日
Hi team,
I am trying to create an occupany map and set occupied space. However i am getting the error
"Unrecognized function or variable 'setOccupancy'."
%create occupany map and set occupied space
signFollowerMap = binaryOccupancyMap(5.2,5.2,100);
setOccupancy(signFollowerMap,[1,1],~imageMaskResized,"grid")
show(setOccupancy)

回答 (2 件)

Walter Roberson
Walter Roberson 2021 年 12 月 7 日
It needs the Robotic System Toolbox, R2015a or later.
That is the same software and release that introduced binaryOccupancyMap, so it would be expected that if you had the first that you would also have the second -- unless you happen to have some third-party toolbox installed that defines one but not the other.

Cam Salzberger
Cam Salzberger 2021 年 12 月 8 日
Pretty sure this is the issue:
show(setOccupancy)
There is no variable by that name. I believe you mean "show(signFollowerMap)"
-Cam

カテゴリ

Help Center および File ExchangeCoordinate Transformations についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by