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

1 visualización (últimos 30 días)
Mihir Deshmukh
Mihir Deshmukh el 1 de Sept. de 2020
Respondida: Ran Shaham el 20 de En. de 2022
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?

Respuestas (1)

Ran Shaham
Ran Shaham el 20 de En. de 2022
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.

Categorías

Más información sobre Robotics en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by