Using Occupancy Grid/Map in Simulink

17 ビュー (過去 30 日間)
Slava Shougaev
Slava Shougaev 2020 年 10 月 20 日
コメント済み: Slava Shougaev 2020 年 11 月 2 日
How can I use occupancy map in Simulink?
I try to implement a path planner for a TurtleBot in Simulink. For the path planner I need to use an occupancy map.
I use Simulink because I have an interface for contacting with both the robot (ROS) and Optitrack cameras in Simulink.
I didn't find a way to define/input an occupancy grid into a Simulink model.
I tried to input it as a matrix, by transforming it back and forth using the command "occupancyMatrix", but then Simulink shows the following error:
"Dimension 1 is fixed on the left-hand side but varies on the right ([40 x 40] ~= [:? x :?])."
The error is shown while using the command:
sensedMapMat = double(occupancyMatrix(sensedMap) | occupancyMatrix(tempMap));
If not writing 'double', another error appears:
"This assignment writes a 'logical' value into a 'double' type. Code generation does not support changing types through assignment. Check preceding assignments or input type specifications for type mismatches."
How can I work with occupancy maps/grids in Simulink?

採用された回答

Amrtanshu Raj
Amrtanshu Raj 2020 年 10 月 30 日
Hi,
You can refer to this documentation for implementation pathplanner in Simulink using occupancy map(check the planning block).
Hope this helps.
  1 件のコメント
Slava Shougaev
Slava Shougaev 2020 年 11 月 2 日
It requires more software installation to run the example, but at least there is a mention of how to use maps in Simulink.
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by