I have been running an application flawlessly for quite some time now, but after the latest update in matlab 2022b with the HEBI Matlab API 1.8.0 if have been getting this error:
I do not recall making any changes to my code so I could not really figure out why this is happening.Incorrect number or types of inputs or outputs for function 'getStartTime'.
Error in HebiTrajectory (line 172)
this.startTime = getStartTime(obj);
So I went ahead and copied the following code of the github:
Code: Select all
trajGen = HebiTrajectoryGenerator();
% Go from 0 to 180-degrees in 3 seconds
waypoints = [
0;
pi ];
time = [ 0 3 ];
% This function generates smooth minimum jerk trajectories
trajectory = trajGen.newJointMove( waypoints, 'time', time );
% Visualize the trajectory
HebiUtils.plotTrajectory(trajectory);
drawnow;
The only thing that possibly changed is that before I loaded in a previous version of the API 1.7...Incorrect number or types of inputs or outputs for function 'getStartTime'.
Error in HebiTrajectory (line 172)
this.startTime = getStartTime(obj);
Error in HebiTrajectoryGenerator/newJointMove (line 362)
trajectory = HebiTrajectory(newJointMove(this.obj, varargin{:}));
Normally with the parameters waypoints and times you would have a trajectory object with properties startTime, endTime, and duration, however when I examine the object returned by the code above, specifically in the file HebiTrajectory.m, I see on line 171 that obj only contains a 'duration' attribute.
It is therefore that the error at line 172 is produced...
Please advise if you spot a clear error in the example above or if a workaround for this error is available.
Kind regards,
Roy