How to import the rigid body tree for c code generation in matlab
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!