Undefined function "setFixedTransform"

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

답변 (1개)

Walter Roberson
Walter Roberson 2019년 12월 3일

1 개 추천

It does appear to be a bug. The line
setFixedTransform(newBody1,tformTree);
should probably be
setFixedTransform(newBody1.Joint,tformTree);

댓글 수: 2

Valentin LEFEBVRE
Valentin LEFEBVRE 2019년 12월 3일
It is working without error with your correction!
Thanks!
Cam Salzberger
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 ROS Toolbox에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2019년 12월 3일

편집:

2019년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by