How Can I Plot SerialLink in 3D graph in App Designer
3 views (last 30 days)
Show older comments
Hi,
I would like to know how can I plot SerialLink arm in 3D grap in App Designer?
Here is my code:
app.L = Link();
app.L(1) = Link([0 0.127300 0.000000 pi/2]);
app.L(2) = Link([0 0.000000 -0.61200 0]);
app.L(3) = Link([0 0.000000 -0.57230 0]);
app.L(4) = Link([0 0.163941 0.000000 pi/2]);
app.L(5) = Link([0 0.115700 0.000000 -(pi/2)]);
app.L(6) = Link([0 0.092200 0.000000 0.000000]);
app.Rob = SerialLink(app.L);
app.Rob.name = 'UR10';
app.Rob.plot( [app.j]);
and i have my value app.j as well. Just that if i used app.Rob.plot( [app.j]); it would be a pop up graph, however i would like it to stick on my main interface, where i located a axes graph for it.
I tried app.Rob.plot(app.j,app.UIAxes2);
Here is the error message, please help:-
Error using matlab.ui.control.UIAxes/horzcat
Conversion to matlab.ui.control.UIAxes from char is not possible.
Error in RTBPlot.plot_options (line 719)
error(['unknown option: ' args{1}]);
Error in SerialLink/plot (line 213)
opt = RTBPlot.plot_options(robot, varargin);
0 Comments
Answers (1)
See Also
Categories
Find more on Line Plots 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!