Undefined function "setFixedTransform"
1 次查看(过去 30 天)
显示 更早的评论
Greetings,
Thank you in advance.
I've been following the mathworks "Build a Robot step by step" at mathworks.com/help/robotics/ug/build-a-robot-step-by-step.html
For the line :
setFixedTransform(newBody1,tformTree);
I get the following error :
Undefined function 'setFixedTransform' for input arguments of type 'rigidBody'.
When putting this function on comment, it is working perfectly and I get the same result as the tutorial with the last command :
showdetails(robot)
Every Add-Ons from the installation of Matlab 2019b were installed.
I tried this tutorial on 2 other computer and still get the same error.
Can somebody help me find why is this function not working ?
Thank you,
Valentin
0 个评论
回答(1 个)
Walter Roberson
2019-12-3
It does appear to be a bug. The line
setFixedTransform(newBody1,tformTree);
should probably be
setFixedTransform(newBody1.Joint,tformTree);
2 个评论
Cam Salzberger
2019-12-5
编辑:Cam Salzberger
2019-12-5
Thanks for finding this, Valentin, and for your fix, Walter. I've let the team know about the issue.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!