Trajecotry generator gives an error on getStartTime() #114
-
Hi there, 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. So I went ahead and copied the following code of the github:
This however provides a simular error:
The only thing that possibly changed is that before I loaded in a previous version of the API 1.7... 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
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sometimes MATLAB has issues with loading Java libraries after other Java have been executed. Did you try restarting MATLAB and running just this snippet? If that fixes it, you may need to pre-load your other dependencies first. Here is some more info: https://github.com/HebiRobotics/MatlabI ... -libraries
|
Beta Was this translation helpful? Give feedback.
-
Hi Florian, I did not try to load dependencies or the correct API lib, I might perhaps have this week a window where i can have a closer look at what is going on. Thanks for the pointer to this possible problem. Kind regards, Roy
|
Beta Was this translation helpful? Give feedback.
Sometimes MATLAB has issues with loading Java libraries after other Java have been executed. Did you try restarting MATLAB and running just this snippet?
If that fixes it, you may need to pre-load your other dependencies first. Here is some more info: https://github.com/HebiRobotics/MatlabI ... -libraries