Loading a occupancy grid into a function block in simulink

조회 수: 6 (최근 30일)
Ellena Papadopoulos
Ellena Papadopoulos 2020년 5월 4일
답변: Amrtanshu Raj 2021년 4월 21일
Hi All,
I currently have a script which is able to find the locations in an occupancy grid (called map) which have either a 1 or a 0 to place a waypoint. I have run it on my map and it works perfectly. However when I move the script into a function block in simulink i get an error where it says it can't find the map even though its in my workspace. I have tried to load it in from the workspace but i get another saying the type of variable isn't accepted.
I'm at a loss and have searched the web to see if anyone else has had this issue.
Any help would be appreciated.
  댓글 수: 2
Githin John
Githin John 2020년 5월 7일
What format is the map stored in? as a matrix or an occupancy map object?
Ellena Papadopoulos
Ellena Papadopoulos 2020년 5월 8일
Hi Githin,
Its stored in an occupancy map object. I'm just not sure the occupancy map object can be use in a MATLAB Function Block in Simulink or if its only able to be used in the robotic toolbox blocks.
Thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Amrtanshu Raj
Amrtanshu Raj 2021년 4월 21일
Hi,
You can refer to this documentation for implementation of Occupancy map in Simulink(check the planning block).
Here a binary Occupancy map is used inside a Matlab Function Block.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by