petercorke / machinevision-toolbox-matlab

Machine Vision Toolbox for MATLAB
GNU Lesser General Public License v2.1
204 stars 97 forks source link

SE3 Error #16

Open xtream111 opened 4 years ago

xtream111 commented 4 years ago

When I try to run the live script from chapter 15, this part from the second section

P = mkgrid( 2, 0.5, 'pose', SE3(0,0,3) );

gives me the following error

`The class SE3 has no Constant property or Static method named 'check'. Error in mkgrid (line 72)

p=SE3.check(opt.pose)*p;`

Why is this happening and what is the solution.

Thanks

allbluelai commented 3 years ago

In PBVS.m, change the code

            %vs.camera.clf();
            vs.camera.T = SE3.check(vs.T0);    % set camera back to its initial pose
            vs.Tcam = SE3.check(vs.T0);        % initial camera/robot pose

to

            %vs.camera.clf();
            vs.camera.T = SE3.convert(vs.T0);    % set camera back to its initial pose
            vs.Tcam = SE3.convert(vs.T0);        % initial camera/robot pose