robotics system toolbox ... Undefined function or variable
조회 수: 20 (최근 30일)
이전 댓글 표시
Dear,
Thank you in advance.
I tried to build robot object as follows.
% DH Parameters table for robot arm
DH =[ 152.4 -90 280 0;
-289.8 90 0 0;
1300.0 -90 0 0;
228.6 90 0 0;
1080.0 90 0 0;
168.9 -90 0 0;
241.3 0 0 0];
%
rbtree = robotics.RigidBodyTree;
body1 = robotics.RigidBody('b1');
jnt1 = robotics.Joint('jnt1','revolute');
setFixedTransform(jnt1,DH(1,:),'dh');
body1.Joint = jnt1;
addBody(rbtree,body1,'base')
and I got an error which
“Undefined function 'axang2tform' for input arguments of type 'double'”.
Undefined function 'axang2tform' for input arguments of type 'double'.
Error in robotics.Joint/jointTransform (line 380)
TJ = axang2tform([v, q]);
Error in robotics.Joint/transformBodyToParent (line 497)
obj.jointTransform(q)*obj.ChildToJointTransform;
Error in robotics.RigidBodyTree/forwardKinematics (line 1092)
Ttree{i} = body.Joint.transformBodyToParent(qi);
Error in robotics.RigidBodyTree/estimateWorkspace (line 1261)
TT = obj.forwardKinematics(qh);
Error in robotics.RigidBodyTree/addBody (line 242)
obj.estimateWorkspace();
Error in Test_Robotics_Toolbox (line 55)
addBody(rbtree,body1,'base')
I checked Matlab path and the path is correct. I suppose functions in ‘Coordinate Transformation’ are not accessible. May I ask your help?
Thank you
Seungkook Jun
댓글 수: 0
채택된 답변
Walter Roberson
2017년 9월 19일
You appear to have a corrupt version of the Robotics System Toolbox. I suggest reinstalling it.
That is the sort of error I might expect to see if a newer Robotics System Toolbox was copied to R2015a or earlier.
추가 답변 (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!