readAprilTag in Simulink for code generation

3 views (last 30 days)
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.

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:
I hope this helps!
Dingzhi Zhang
Dingzhi Zhang on 24 Nov 2021
Edited: Dingzhi Zhang on 24 Nov 2021
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.

Sign in to comment.


Find more on MATLAB Support Package for Parrot Drones in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!