How can I convert homogeneous transformation matrix into rigid3d object?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Robotics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!