Huge code generated for a simple Simulink design
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a query regarding Robotics toolbox and Code generator. Basically my model has three inputs and 3 output. For a given XYZ coordinate I’m trying to compute the joint angle for my three joint manipulator. I am using the following block for the same Compute joint configurations to achieve an end-effector pose - Simulink - MathWorks Deutschland and I already have created a rigid body from a URDF. Everything seems to work fine, I get accurate joint angle as output, But I’m having problem with code generation. Once I generate the code for this simple model, It generates 14k lines of code (Handwritten code for the same would be around 200-300 lines). Find below screenshot of the matlab design, A very simple design with three cordinates as input and joint angles as output. Is there something im doing wrong ? Or in general the matlab generates huge codes for simple design ?

댓글 수: 0
답변 (1개)
Karsh Tharyani
2022년 7월 28일
I would suggest you reach out to our Technical Support team with the reproducible of the issue. That will enable us to diagnose this in an efficient manner.
Best,
Karsh
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!