petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.26k stars 440 forks source link

Catch a bug in SerialLink.fkine() #131

Open StvLi opened 8 months ago

StvLi commented 8 months ago

When I was following the procudure in textbook Robotics, Vision and Control: Fundamental Algorithms in MATLAB, I found that the output SE(3) of SerialLink.fkine() was not it supposed to be.

the function output: 微信图片_20240116201558 what it supposed to be according to the textbook in Page 200, which had been confirmed by my own culcalation: 微信图片_20240116201659

So, I belived there must be a bug in fkine and finally found it here: at SerialLink\fkine.m line 63: the original one is q = robot.todegrees(q); and it should be: q = robot.toradians(q);

after replacing this line, everything goes perfect: 微信图片_20240116202348 correct this bug in next version plz

Love your great works, Greeting with my best wish!