MATLAB Answers

readAprilTag in Simulink for code generation

3 views (last 30 days)
Alberto Sconfienza
Alberto Sconfienza on 12 Mar 2021
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

Answers (1)

Uday Pradhan
Uday Pradhan on 15 Mar 2021
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!
  1 Comment
Alberto Sconfienza
Alberto Sconfienza on 16 Mar 2021
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!