フィルターのクリア

readAprilTag in Simulink for code generation

1 回表示 (過去 30 日間)
Alberto Sconfienza
Alberto Sconfienza 2021 年 3 月 12 日
編集済み: Dingzhi Zhang 2021 年 11 月 24 日
Good morning,
Someone has any ideas on how I can use the function readAprilTag in Simulink for code generation?
Or someone has done before the estimation and pose of an AprilTag in Simulink?
Thank you.
Alberto

回答 (1 件)

Uday Pradhan
Uday Pradhan 2021 年 3 月 15 日
Hi Alberto,
The "readAprilTag" function is currently not supported for code generation. You could use the coder.extrinsic API to include such functions in your custom code:
coder.extrinsic('readAprilTag');
I hope this helps!
  2 件のコメント
Alberto Sconfienza
Alberto Sconfienza 2021 年 3 月 16 日
I tried, but what I get is this error:
The extrinsic function 'readAprilTag' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'readAprilTag' or by ensuring that its outputs are unused.
Dingzhi Zhang
Dingzhi Zhang 2021 年 11 月 24 日
編集済み: Dingzhi Zhang 2021 年 11 月 24 日
Same problem here. I think for the function 'readAprilTag' is only possible to use coder in the host system, but not possible to use in the target system, which for example can be the RaspberryPi.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
  • Generates code only on host platforms.
  • You must specify the input argument tagFamily as a character vector or an array of character vectors. String inputs are not supported.

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

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Parrot Drones についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by