How can I convert homogeneous transformation matrix into rigid3d object?
Ältere Kommentare anzeigen
I got a homogeneous transformation matrix from 'getTransform' function in Robotics System Toolbox in order to use it to convert point clouds in end-effector frame to base frame by 'pctransform' function.(R2022a)
I tried to convert the homogeneous transform matrix into rigid3d object as below and pass it to 'pctransform', but it didn't return the expected result.
transform = getTransform( robot, confg, 'sourcebody', 'targetbody');
rot=tform2rotm(transform);
trvec=tform2trvec(transform);
tform=rigid3d(rot,trvec);
pcOut=pctransform(pcIn,tform);
What's wrong in the above process?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Robotics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!