Index in position 2 exceeds array bounds (must not exceed 1). Error in RRR_Robot>btn_Forward_Callback (line 167) handles.Pos_X.String = num2str(floor(T(1,4))); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robot (line 42) gui_mainfcn(gui_State, varargin{:}); how to solve this error @Ahmed Abdelbasit
SOLUTION: This object named 'T' is not a normal matrix so normal indexing wont work. 'T' is a special class of object called 'SE3' and Matlab thinks it's a scalar 1x1 (thats why the error says you can't exceed 1, cause it's a 1x1 object). The SE3 class has a method that can extract the translation part you need into a 1x3. The method is 'tform2trvec(T.T)', where T the SE3 object. From there you can use normal referencing on that 1x3.
Thank you for the video it inspire me to learn more about it. Anyway do you have any book reference / website to learn robotic especially in matlab and the analysis of robotic arm. Thanks
Hi there, thank you for your video. Following problem occurs: Do you (or someone else) know, why it isn't opening any new window or any figure when pressing the "Forward"-Button? Thank you!
It helped me a lot but Sir i m getting few errors. I wrote the same GUI and followed all steps but still i am getting only black GUI with layout. Please sir help me out. Attempt to reference field of non-structure array. Error in untitled>fk_Callback (line 81) Th_1 = str2double(handles.q1.String)*pi/180; Error in gui_mainfcn (line 96) feval(varargin{:}); Error in untitled (line 42) gui_mainfcn(gui_State, varargin{:}); Error in @(hObject,eventdata)untitled('fk_Callback',hObject,eventdata,guidata(hObject))
My robot runs forward kinematics but doesn't display the X,Y,Z values. An error is brought up with the use of 'floor' in handles.pos_X.String = num2str(floor(T(1),4)); is there any alternative name to use?
Don't know if you still need this but here you are. The object structure has probably changed since the video has been posted, you can access to the positions through the subfield t like T.t(i) with i=1,2,3. So it should look like app.Pos_XEditField.Value = num2str(floor(T.t(1))); app.Pos_YEditField.Value = num2str(floor(T.t(2))); app.Pos_ZEditField.Value = num2str(floor(T.t(3))); I'm using the newer Matlab GUI editor, if you are still using GUIDE I think it should be something like handles.pos_X.String = num2str(floor(T.t(1)); handles.pos_Y.String = num2str(floor(T.t(2)); handles.pos_Z.String = num2str(floor(T.t(3));
No appropriate method, property, or field 'string' for class 'matlab.ui.control.UIControl'. Error in RRR_Robot>btn_forward_Callback (line 219) Th_1 = str2double(handles.Theta_1.string)*pi/180; Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in @(hObject,eventdata)RRR_Robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback would you help me please
No appropriate method, property, or field 'string' for class 'matlab.ui.control.UIControl'. Error in mytest>for_kin_Callback (line 147) Th_1=str2double(handles.theta1.string)*pi/180; Error in gui_mainfcn (line 95) feval(varargin{:}); Error in mytest (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)mytest('for_kin_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. please help
Hi! So I just solved this problem with a friends help. If you press T on 'workspace', you will get that T is made from 4 arrays (t, n, o, a) to form a structured element which we see is T. In the command window, typing T gives you a 4x4 matrix. Yet when you type size(T), it will return 1 1. Thus. in order to retrieve the X, Y and Z coordinates from T, you must specify T.t(1,1), T.t(2,1) and T.t(3,1) respectively.
Hi Ahmed, thanks for your video. However, I have a difficulties in running the GUI which is; Index exceeds matrix dimensions. Error in btn_Forward_Callback handles.Pos_X.String = num2str(floor(T(1,4))) How can I solve this problem. Please help,
Hi Emre, did you manage to solve this problem? I have the same problem and I am suspecting that it is because I am trying to work with 5DOF but Ahmed used 3DOF. Thanks
Hi Chris, I solved it, but I am sorry that I have some project nowadays. Therefore, I will suggest a method and give an information about what I remember. Would you try to replace T(1,4) with T(4). The main reason is that T is not a matrix, actually. If you cannot solve the problem, you check on Peter Corke web-page. And, I can send my study, later.
handles.Robot.plot(traj1(i,:)) T = handles.Robot.fkine(traj1(i,:)) array = transl(T)
array(1) array(2) array(3) handles.x_pos = floor(array(1)); handles.y_pos = floor(array(2)); handles.z_pos = floor(array(3)); I have used these instructions above, I hope that you can solve.
Emre Akkaya Thank you Emre for the piece of code, unfortunately it is now showing "Reference to non-existent field 'Robot' yet The name of my serial link are referenced as Robot. It is also stating that 'traj1' might be used before it is being defined. Could it be that I must add any code before?
Thanks a lot, I really got to learn this but I'm facing one issue with Forward and Inverse Kinematics part at the end. Kindly, help me with the errors which I got, Thanks! These are the errors which I got- Undefined function 'Link' for input arguments of type 'double'. Error in RRR_Robot>btn_forward_Callback (line 158) L(1) = Link([0 L_1 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robot('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback
I have the same problem. Is this necessary to install Peter Corke toolbox? I have only toolbox of matlab. Very important to know! I will be very thankfull for the answer
how to fix this error: Attempt to reference field of non-structure array. Error in arm_robot>btn_forward_Callback (line 220) Th_1 = str2double(handles.Theta_1.String)*pi/180; Error in gui_mainfcn (line 96) feval(varargin{:}); Error in arm_robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in @(hObject,eventdata)arm_robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
hello ahmed, i have some problem Undefined function or variable 'txtStep_CreateFcn'. Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robot('txtStep_CreateFcn',hObject,eventdata,guidata(hObject)) how to solve this error ?
I don't know Why i can't run mine. This is my program error Error using SerialLink/ikine (line 164) Number of robot DOF must be >= the same number of 1s in the mask matrix Error in Gui_Robot_3_DOF>Btn_Nhap_toa_do_diem_cuoi_Callback (line 257) J = Robot.ikine(T, [0 0 0], [1 1 1 0 0 0])*180/pi; Error in gui_mainfcn (line 95) feval(varargin{:}); Error in Gui_Robot_3_DOF (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Gui_Robot_3_DOF('Btn_Nhap_toa_do_diem_cuoi_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback
I have the same problem, This is my program error: umber of robot DOF must be >= the same number of 1s in the mask matrix Error in prueba2>btn_inverse_Callback (line 271) J=Robot.ikine(T, [0 0 0],[1 1 1 0 0 0])*180/pi; Error in gui_mainfcn (line 95) feval(varargin{:}); Error in prueba2 (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)prueba2('btn_inverse_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. Can you help me please ? Thanks a lot of !
Hi sir, I wrote all function and did all you explained but there was error in Forward execution told me:JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
@@Vikram-od6ur actually if it does not work you need to install robot toolbox for matlab (which worked for me) ruclips.net/video/6ZO23KpbWic/видео.html
Here are the errors which i receive on forward kinematics Undefined function 'Link' for input arguments of type 'double'. Error in robot>btn_forward_Callback (line 227) l(1)=Link([0 l_1 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. Undefined function 'Link' for input arguments of type 'double'. Error in robot>btn_forward_Callback (line 227) l(1)=Link([0 l_1 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. Undefined function 'Link' for input arguments of type 'double'. Error in robot>btn_forward_Callback (line 227) l(1)=Link([0 l_1 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. Undefined function 'Link' for input arguments of type 'double'. Error in robot>btn_forward_Callback (line 227) l(1)=Link([0 l_1 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in robot (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.
when i run forward kinematics i get this following error :- Index exceeds matrix dimensions. Error in rrr>btnfrwd_Callback (line 167) handles.pos_x.String=num2str(floor(T(1,4))); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in rrr (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)rrr('btnfrwd_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. >>
Hey I was facing the same issue right now. So I solved it like this: Notice T = Robot.fkine([Th_1 Th_2 Th_3]); gives an SE3 object. If you call T in command line, it will display a 4x4 Matrix. Try calling individual elements from this matrix conventionally, you'll notice you can't. To overcome this problem, extract the 4th column of T by using code T.transl Then instead of calling T(1,4), call the individual elements from the new vector obtained. Example code: T = Robot.fkine([Th_1 Th_2 Th_3]); T_tr = T.transl; handles.Pos_X.String = num2str(floor(T_tr(1))); handles.Pos_Y.String = num2str(floor(T_tr(2))); handles.Pos_Z.String = num2str(floor(T_tr(3)));
The same problem with most of the comment is happening to me also. the matlab can't figure out what is link , matlab gives an error as the variable is not defined so the question is how do I define Link ? or what should I say Link is equal to ??? Undefined function or variable 'Link'.
@@AhmedAbdelbasit yes I just did download it from Gethub, and I saved the 'RRR_Robot' inside the robotics-toolbox-matlab-master and I am facing a new issue: Undefined function or variable 'tb_optparse'. Error in Link (line 290) [opt,args] = tb_optparse(opt, varargin); Error in RRR_Robotic>btn_forward_Callback (line 161) L(1)= Link([L_1 0 0 pi/2]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robotic (line 45) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robotic('btn_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.
@@AhmedAbdelbasit So I tried to re-do it from the beginning, I am getting this: Undefined function or variable 'L'. Error in RRR_Robotic>bnt_forward_Callback (line 158) Robot = SerialLink(L); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in RRR_Robotic (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robotic('bnt_forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.
i have some problem, Error using SerialLink/plot (line 206) Insufficient columns in q Error in test>btn_Forward_Callback (line 239) Robot.plot ([Th_1 Th_2 Th_3]); Error in gui_mainfcn (line 95) feval(varargin{:}); Error in test (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)test('btn_Forward_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback. please helpme somebody :(
@@pushpalathachilakalapudil9174 Before you start in GUI ; instal robotics toolbox; go to PETER CORKE toolbox; www.petercorke.com/RTB/button.php; download the latest zip file, and search in youtube the other steps to activate rvc_tools; after that it going to be ok, good luck
Sir, I'm getting stuck when i click on forward button I'm not getting any output in the form of any window or any simulation Plz help me out with this problem
It's the links of your robot. For exampel, most industrial robots consist of 6 links with varying length. A tip is to write "help Link" in matlab, it will then show you everything you need to know about the command.
I installed both rtb 10.3 and rtb 9.10 but couldn't find a solution for the problem of "Link" function !!! it keeps showing that it doesn't accept double type input ....
@@AhmedAbdelbasit it worked as simulation actually for the link function part but still can't get values in boxes of joints angles in fk and values of x,y,z in invk in the figure
@@AhmedAbdelbasit Still (inverse kinematics) doesn't work showing errors in these -) Number of robot DOF must be >= the same number of 1s in the mask matrix -) J=Robot.ikine(T,[0 0 0], [1 1 1 0 0 0])*180/pi; -) feval(varargin{:}); -) gui_mainfcn(gui_State, varargin{:});
Hi! So I just solved this problem with a friends help. If you press T on 'workspace', you will get that T is made from 4 arrays (t, n, o, a) to form a structured element which we see is T. In the command window, typing T gives you a 4x4 matrix. Yet when you type size(T), it will return 1 1. Thus. in order to retrieve the X, Y and Z coordinates from T, you must specify T.t(1,1), T.t(2,1) and T.t(3,1) respectively.
Number of robot DOF must be >= the same number of 1s in the mask matrix Thats the error im geting from using J = Robot.ikine(T, [0,0,0], [1 1 1 0 0 0]) *180/pi; Any tips? Btw. In matlab 2016 it fix problem with fkiine handles.Pos_X.String = num2str(floor(T.t(1))); handles.Pos_Y.String = num2str(floor(T.t(2))); handles.Pos_Z.String = num2str(floor(T.t(3)));
Hi Maciej, use Robot.ikine(T, [0 0 0], 'mask', [1 1 1 0 0 0])*180/pi; Option is called 'mask' , M where M is a 6X1 vector The mask states which Degree of freedom can be ignored. The vector [1 1 1 0 0 0] means x y z is 1 i.e we need them, and rotation x y z is 0 i.e not needed or can be ignored. which corresponds to this 3 DOF robot in Ahmed's example.
From now on i'm a huge fan of you
Index in position 2 exceeds array bounds (must not exceed 1).
Error in RRR_Robot>btn_Forward_Callback (line 167)
handles.Pos_X.String = num2str(floor(T(1,4)));
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robot (line 42)
gui_mainfcn(gui_State, varargin{:});
how to solve this error @Ahmed Abdelbasit
did you get this fixed ?
SOLUTION:
This object named 'T' is not a normal matrix so normal indexing wont work. 'T' is a special class of object called 'SE3' and Matlab thinks it's a scalar 1x1 (thats why the error says you can't exceed 1, cause it's a 1x1 object). The SE3 class has a method that can extract the translation part you need into a 1x3. The method is 'tform2trvec(T.T)', where T the SE3 object. From there you can use normal referencing on that 1x3.
I suggest the following code;
T=Robot.fkine([Th_1 Th_2 Th_3 ]).T;
@@veyselkarani2282thank you very much😊
thank you@@veyselkarani2282
Thank you for the video it inspire me to learn more about it. Anyway do you have any book reference / website to learn robotic especially in matlab and the analysis of robotic arm. Thanks
Hi there,
thank you for your video.
Following problem occurs:
Do you (or someone else) know, why it isn't opening any new window or any figure when pressing the "Forward"-Button?
Thank you!
Thank you very much, useful video
There are errors in 150, 42 lines
and other lines. Would you please tell me what to change? Thank you
yes me too in same lines you have solution please
yes me too in same lines you have solution please
Great Video!!! You are Cool!
It helped me a lot but Sir i m getting few errors. I wrote the same GUI and followed all steps but still i am getting only black GUI with layout. Please sir help me out.
Attempt to reference field of non-structure array.
Error in untitled>fk_Callback (line 81)
Th_1 = str2double(handles.q1.String)*pi/180;
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in untitled (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)untitled('fk_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
make sure you've set the same tags for UI controls
My robot runs forward kinematics but doesn't display the X,Y,Z values. An error is brought up with the use of 'floor' in handles.pos_X.String = num2str(floor(T(1),4)); is there any alternative name to use?
Don't know if you still need this but here you are. The object structure has probably changed since the video has been posted, you can access to the positions through the subfield t like T.t(i) with i=1,2,3. So it should look like
app.Pos_XEditField.Value = num2str(floor(T.t(1)));
app.Pos_YEditField.Value = num2str(floor(T.t(2)));
app.Pos_ZEditField.Value = num2str(floor(T.t(3)));
I'm using the newer Matlab GUI editor, if you are still using GUIDE I think it should be something like
handles.pos_X.String = num2str(floor(T.t(1));
handles.pos_Y.String = num2str(floor(T.t(2));
handles.pos_Z.String = num2str(floor(T.t(3));
@@uhNamelesshow about the Theta_ do we still use str2double for App Designer
No appropriate method, property, or field 'string' for class 'matlab.ui.control.UIControl'.
Error in RRR_Robot>btn_forward_Callback (line 219)
Th_1 = str2double(handles.Theta_1.string)*pi/180;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)RRR_Robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
would you help me please
Good
Thanks but please remove background music it is diverting our focus
how to make matlab shows all the inverse kinematics equations?
No appropriate method, property, or field 'string' for class 'matlab.ui.control.UIControl'.
Error in mytest>for_kin_Callback (line 147)
Th_1=str2double(handles.theta1.string)*pi/180;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in mytest (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)mytest('for_kin_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
please help
Hi! So I just solved this problem with a friends help. If you press T on 'workspace', you will get that T is made from 4 arrays (t, n, o, a) to form a structured element which we see is T.
In the command window, typing T gives you a 4x4 matrix. Yet when you type size(T), it will return 1 1. Thus. in order to retrieve the X, Y and Z coordinates from T, you must specify T.t(1,1), T.t(2,1) and T.t(3,1) respectively.
@@MrEmbekk thanks. it worked!
How can i make Netflix logo in matlab robotics puma560 can you make video for it ?
great!!
Hi Ahmed, thanks for your video. However, I have a difficulties in running the GUI which is;
Index exceeds matrix dimensions.
Error in btn_Forward_Callback
handles.Pos_X.String = num2str(floor(T(1,4)))
How can I solve this problem. Please help,
Hi Emre, did you manage to solve this problem? I have the same problem and I am suspecting that it is because I am trying to work with 5DOF but Ahmed used 3DOF. Thanks
Hi Chris,
I solved it, but I am sorry that I have some project nowadays. Therefore, I will suggest a method and give an information about what I remember. Would you try to replace T(1,4) with T(4). The main reason is that T is not a matrix, actually. If you cannot solve the problem, you check on Peter Corke web-page. And, I can send my study, later.
Yes I have tried T(4) and also T(1,4,:) yet the same error keeps on coming up. Thanks Emre that would be great.
handles.Robot.plot(traj1(i,:))
T = handles.Robot.fkine(traj1(i,:))
array = transl(T)
array(1)
array(2)
array(3)
handles.x_pos = floor(array(1));
handles.y_pos = floor(array(2));
handles.z_pos = floor(array(3));
I have used these instructions above, I hope that you can solve.
Emre Akkaya Thank you Emre for the piece of code, unfortunately it is now showing "Reference to non-existent field 'Robot' yet The name of my serial link are referenced as Robot. It is also stating that 'traj1' might be used before it is being defined. Could it be that I must add any code before?
Thanks a lot, I really got to learn this but I'm facing one issue with Forward and Inverse Kinematics part at the end.
Kindly, help me with the errors which I got, Thanks! These are the errors which I got-
Undefined function 'Link' for input arguments of type 'double'.
Error in RRR_Robot>btn_forward_Callback (line 158)
L(1) = Link([0 L_1 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
are you sure you have successfully installed " Peter Corke robotics toolbox " ?? or you are working with the original toolbox of matlab ??
actually you sir didn't show the code for displaying the plot in axes1.
I have the same problem. Is this necessary to install Peter Corke toolbox? I have only toolbox of matlab. Very important to know! I will be very thankfull for the answer
how to fix this error: Attempt to reference field of non-structure array.
Error in arm_robot>btn_forward_Callback (line 220)
Th_1 = str2double(handles.Theta_1.String)*pi/180;
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in arm_robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)arm_robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
have the same problem, have u already solved it?
hello ahmed, i have some problem
Undefined function or variable 'txtStep_CreateFcn'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robot('txtStep_CreateFcn',hObject,eventdata,guidata(hObject))
how to solve this error ?
Thank u Soo much Brother
you are welcome bro ^^
Can U tell me? Which toolbox U used in this project. where I can get it
I don't know Why i can't run mine. This is my program error
Error using SerialLink/ikine (line 164)
Number of robot DOF must be >= the same number of 1s in the mask matrix
Error in Gui_Robot_3_DOF>Btn_Nhap_toa_do_diem_cuoi_Callback (line 257)
J = Robot.ikine(T, [0 0 0], [1 1 1 0 0 0])*180/pi;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Gui_Robot_3_DOF (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Gui_Robot_3_DOF('Btn_Nhap_toa_do_diem_cuoi_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
to install peter corke robotics toolbox, visit this site : petercorke.com/wordpress/toolboxes/robotics-toolbox
I have the same problem, This is my program error:
umber of robot DOF must be >= the same number of 1s in the mask matrix
Error in prueba2>btn_inverse_Callback (line 271)
J=Robot.ikine(T, [0 0 0],[1 1 1 0 0 0])*180/pi;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in prueba2 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)prueba2('btn_inverse_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Can you help me please ? Thanks a lot of !
TQ ahmed sir
شكراً جزيلاً
Hi sir, I wrote all function and did all you explained but there was error in Forward execution told me:JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
I need help in making the GUI showing the Center of Mass of the robot. Can I have your email or anything ?
i am having problem in inverse kinematics of 5 DOF program using this GUI. can you help me out
hey gui, you done it?
Can u please tell me how u have simulated it like I am getting error as something hobject is not declared etc type
Link fuction is not applicable to my matlab any possible solution
You can make delta robots bro
For me its working fine but i dont know why i cant get X,Y,Z display Pos X , Y , Z
append the following line :
T = T.T
after the following line in fkine button call back:
T = Robot.fkine([ Th_1 Th_2 Th_3 ]);
@@AhmedAbdelbasit Thanks Ahmed !! ✨✨
@@AhmedAbdelbasit for inverse caller back error
Sir i have a an Error saying 'Undefined function 'Link' for input arguments of
type 'double'.' how to solve it please help me
www.mathworks.com/matlabcentral/answers/162103-undefined-function-for-input-arguments-of-type-double
@@afaquesayyed8570 thank you sir, thanks for your reply
@@Vikram-od6ur actually if it does not work you need to install robot toolbox for matlab (which worked for me)
ruclips.net/video/6ZO23KpbWic/видео.html
@@afaquesayyed8570 i have robotics toolbox installed but it is created by Mathworks it requires the one created by peter . I cant find it
Error in untitled>btn_Inverse_Callback (line 268)
handles.Theta_1.String = num2str(floor(J(1)));
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in untitled (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)untitled('btn_Inverse_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Can u help me with this problem?
Here are the errors which i receive on forward kinematics
Undefined function 'Link' for input arguments of type 'double'.
Error in robot>btn_forward_Callback (line 227)
l(1)=Link([0 l_1 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Undefined function 'Link' for input arguments of type 'double'.
Error in robot>btn_forward_Callback (line 227)
l(1)=Link([0 l_1 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Undefined function 'Link' for input arguments of type 'double'.
Error in robot>btn_forward_Callback (line 227)
l(1)=Link([0 l_1 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Undefined function 'Link' for input arguments of type 'double'.
Error in robot>btn_forward_Callback (line 227)
l(1)=Link([0 l_1 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in robot (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)robot('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
.
when i run forward kinematics i get this following error :-
Index exceeds matrix dimensions.
Error in rrr>btnfrwd_Callback (line 167)
handles.pos_x.String=num2str(floor(T(1,4)));
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in rrr (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)rrr('btnfrwd_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
>>
Hey I was facing the same issue right now. So I solved it like this:
Notice T = Robot.fkine([Th_1 Th_2 Th_3]); gives an SE3 object. If you call T in command line, it will display a 4x4 Matrix. Try calling individual elements from this matrix conventionally, you'll notice you can't.
To overcome this problem, extract the 4th column of T by using code T.transl
Then instead of calling T(1,4), call the individual elements from the new vector obtained.
Example code:
T = Robot.fkine([Th_1 Th_2 Th_3]);
T_tr = T.transl;
handles.Pos_X.String = num2str(floor(T_tr(1)));
handles.Pos_Y.String = num2str(floor(T_tr(2)));
handles.Pos_Z.String = num2str(floor(T_tr(3)));
@@wahajahmad6850 thanks! u save me a lot with my research project code
@@sergioalonsoortizpauca5481 hello please help me , after applying the above corrections still I am getting some errors, please please HELP...
There's a problem in my inverse part, there's no value that shows after i run the inverse kinematics but the forward kinematics really works fine
same problem plz help !!!
The same problem with most of the comment is happening to me also.
the matlab can't figure out what is link , matlab gives an error as the variable is not defined
so the question is how do I define Link ? or what should I say Link is equal to ???
Undefined function or variable 'Link'.
Did you install peter corke toolbox?
@@AhmedAbdelbasit yes I just did download it from Gethub, and I saved the 'RRR_Robot' inside the robotics-toolbox-matlab-master and I am facing a new issue:
Undefined function or variable 'tb_optparse'.
Error in Link (line 290)
[opt,args] = tb_optparse(opt, varargin);
Error in RRR_Robotic>btn_forward_Callback (line 161)
L(1)= Link([L_1 0 0 pi/2]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robotic (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robotic('btn_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
@@AhmedAbdelbasit So I tried to re-do it from the beginning, I am getting this:
Undefined function or variable 'L'.
Error in RRR_Robotic>bnt_forward_Callback (line 158)
Robot = SerialLink(L);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in RRR_Robotic (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_Robotic('bnt_forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
i have some problem,
Error using SerialLink/plot (line 206)
Insufficient columns in q
Error in test>btn_Forward_Callback (line 239)
Robot.plot ([Th_1 Th_2 Th_3]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in test (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)test('btn_Forward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
please helpme somebody :(
Link??? it has error in link
Could u know how to sort that error
@@pushpalathachilakalapudil9174 Before you start in GUI ; instal robotics toolbox; go to PETER CORKE toolbox; www.petercorke.com/RTB/button.php; download the latest zip file, and search in youtube the other steps to activate rvc_tools; after that it going to be ok, good luck
would you, please, make a video for 6 DOF Inverse kinematics?
MATLAB code or analysis ?
@@AhmedAbdelbasit matlab code
@@AhmedAbdelbasitcould u plz sort that link error
Does anyone know MATLAB here?
Sir,
I'm getting stuck when i click on forward button
I'm not getting any output in the form of any window or any simulation
Plz help me out with this problem
Hi there - I have the same problem. Maybe there is someone who knows the answer.
WHAT IS [Link]
It's the links of your robot. For exampel, most industrial robots consist of 6 links with varying length. A tip is to write "help Link" in matlab, it will then show you everything you need to know about the command.
@@simonahr3396 hello bro can you help me please in gui of robot abb irb 120
I installed both rtb 10.3 and rtb 9.10 but couldn't find a solution for the problem of "Link" function !!!
it keeps showing that it doesn't accept double type input ....
are you sure that you use [petercorke] robotics tool box? it is different from the MATLAB's one.
@@AhmedAbdelbasit it worked as simulation actually for the link function part but still can't get values in boxes of joints angles in fk and values of x,y,z in invk in the figure
@@hasangenco7396 append the following line :
T = T.T
after the following line in fkine button call back:
T = Robot.fkine([ Th_1 Th_2 Th_3 ]);
@@AhmedAbdelbasit Thank you very much!! that worked for Forward kinematics ... I could see the x,y,z coordinates in the figure window
@@AhmedAbdelbasit Still (inverse kinematics) doesn't work showing errors in these
-) Number of robot DOF must be >= the same number of 1s in the mask matrix
-) J=Robot.ikine(T,[0 0 0], [1 1 1 0 0 0])*180/pi;
-) feval(varargin{:});
-) gui_mainfcn(gui_State, varargin{:});
Bass heavy track.
i used same program but there is some issue regrading line 95 in guide.
Hi! So I just solved this problem with a friends help. If you press T on 'workspace', you will get that T is made from 4 arrays (t, n, o, a) to form a structured element which we see is T.
In the command window, typing T gives you a 4x4 matrix. Yet when you type size(T), it will return 1 1. Thus. in order to retrieve the X, Y and Z coordinates from T, you must specify T.t(1,1), T.t(2,1) and T.t(3,1) respectively.
Number of robot DOF must be >= the same number of 1s in the mask matrix Thats the error im geting from using
J = Robot.ikine(T, [0,0,0], [1 1 1 0 0 0]) *180/pi; Any tips?
Btw. In matlab 2016 it fix problem with fkiine
handles.Pos_X.String = num2str(floor(T.t(1)));
handles.Pos_Y.String = num2str(floor(T.t(2)));
handles.Pos_Z.String = num2str(floor(T.t(3)));
Hi Maciej, use Robot.ikine(T, [0 0 0], 'mask', [1 1 1 0 0 0])*180/pi;
Option is called 'mask' , M where M is a 6X1 vector
The mask states which Degree of freedom can be ignored. The vector [1 1 1 0 0 0] means x y z is 1 i.e we need them, and rotation x y z is 0 i.e not needed or can be ignored. which corresponds to this 3 DOF robot in Ahmed's example.
@@MoistKing thanx that solved the problem for me :)
@@MoistKing tq
Thank you it helped
@@MoistKing Thanks so much for the help!
please can you give me source code
github.com/AhmedAbdelbasit/Robotic-Manipulator/tree/master/Second_Tutorials
khe, es ute, dio, o khe a mi no me sale la inversa
prro
append the following line :
T = T.T
after the following line in fkine button call back:
T = Robot.fkine([ Th_1 Th_2 Th_3 ]);
Error might be solved as follows;
T = Robot.fkine([(handles.teta1)*(pi/180) (handles.teta2)*(pi/180) (handles.teta3)*(pi/180)])
array = transl(T)
array(1)
array(2)
array(3)
F1 = floor(array(1));
F2 = floor(array(2));
F3 = floor(array(3));
in which code line should i insert
Thanks
please can you give me users’ code
What do you mean by users' code ?
The source code is provided in the description of the second video mentioned above
@@AhmedAbdelbasit thanks my friend