How to import the rigid body tree for c code generation in matlab

조회 수: 3 (최근 30일)
Mihir Deshmukh
Mihir Deshmukh 2020년 9월 1일
답변: Ran Shaham 2022년 1월 20일
I want to generate the c code for inverse kinematics calculations of my robot, but getting the error, that rigid body tree should be of handle class, and not able to generate the c code , can anyone guide me through this?

답변 (1개)

Ran Shaham
Ran Shaham 2022년 1월 20일
I Found a workaround that can help you.
Build the robot as usual in matlab, then use this :
robot.writeAsFunction('BuildRobot')
This will generate a code that automaitcly builds the rigidBodyTree. and this code can be compiled.
Just add the generated file to the compilation and run it instead of importing.

카테고리

Help CenterFile Exchange에서 Robotics에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by