rcv toolbox_rover
Show older comments
so, after i run rcvtoolbox v9.9 or v.10 i try to run the code below so that i see a rover(triangle) moving between points but i get the following message "Abstract classes cannot be instantiated. Class 'Vehicle' defines abstract methods and/or properties.
Error in erotima1_k (line 6)
oxima=Vehicle(diag([0.005,0.5*pi/180].^2));"
------
i run the code by typing at the command window "[info,v]=mobile_robot_multiple_targets([3 4;5 6; 6 7;8 7])"
------
code
--------
clc;
clear all;
close all
clear memory;
K=2;
oxima=Vehicle(diag([0.005,0.5*pi/180].^2));
oxima.maxspeed=1;
targetx = 10;
targety = 10;
apostasi=100;
%initfis=readfis('initfis.fis');
while apostasi>0.05,
output=oxima.x;
oximaX=output(1);
oximaY=output(2);
oxima8=output(3);
neoX=targetx-oximaX;
neoY=targety-oximaY;
apostasi=sqrt(neoX^2 + neoY^2);
neo8=atan2(neoY,neoX);
e=neo8 - oxima8;
while abs(e)>=pi,
if e<(-1*pi),
e=e+2*pi;
end
if e>=pi,
e=e-2*pi;
end
end
%f_command=evalfis(e,initfis);
f_command=K*e;
oxima.update([1 f_command])
%oxima.update(fliplr(f_command));
oxima.plot(output,'scale',0.15,'fill');
hold on
plot(targetx,targety,'bo','MarkerSize',10);
plot(targetx,targety,'r.','MarkerSize',6);
hold off
grid on; axis([-15 15 -15 15])
drawnow;
end
hold on
oxima.plot_xy('r');
--------
using matlab r2018b
some of my colleagues made it work
my professor said he has seen this type of error message before and that i should try to use another version of rcvtoolbox whixh i did but still the same.
any help?
thank you
Answers (0)
Categories
Find more on Entering Commands 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!