Rosinit error: Undefined function or variable 'rosinit'
Ältere Kommentare anzeigen
I am trying to initialize ROS on MATLAB R2015b on Windows 10 64-bit. I have the Robotics System Toolbox installed (as verified by 'ver'). When I enter the 'rosinit' command in the command line, I get this error:
Undefined function or variable 'rosinit'.
Sorry if this sounds stupid, but do I need to have ROS installed on my Windows in order to use this package? The official help page does not explain anything about this!
Thanks
5 Kommentare
Swarooph
am 1 Aug. 2016
Is this a new MATLAB installation? OR
Did you install the toolbox separately on top of an existing installation?
In either of these cases, you could execute the following commands to reset MATLAB's path to factory conditions. Note that this will remove any user added path that will need to be manually added later. But this is one way to reset MATLAB back to its 'pristine' condition.
restoredefaultpath
rehash toolboxcache
Alireza Manzoori
am 1 Aug. 2016
Swarooph
am 1 Aug. 2016
AFAIK, at least for the rosinit command without any input arguments.
There could be a chance that you are trying to pull a license from only a limited number available in the pool. In this case, you can try the following command to see if you can actually check out a license:
license('checkout','Robotics_System_Toolbox')
If the answer is 1, you are actually able to check out the license. But I am guessing your answer will be 0 in which case, you should get in touch with your license administrator or MathWorks support to get a better picture.
Robin Narbey
am 2 Aug. 2016
Hi, Yesterday withs matlab R2014a and R2015b i obtain the same error as you when I try to start "rosinit". This morning I install the R2016a and all work well :) You should try to update your version.
Have a good day,
Alireza Manzoori
am 5 Aug. 2016
Bearbeitet: Alireza Manzoori
am 5 Aug. 2016
Antworten (1)
Josh Chen
am 17 Apr. 2023
0 Stimmen
Hi Alireza,
This error indicates that MATLAB is not able to find the function 'rosinit'. Likely, some path got messed up. You can verify this by calling:
>> which rosinit
If it does not return a path to the rosinit.m file, that means this is a path issue.
Please let us know if you are still facing this issue with another version.
Thanks,
Josh
Kategorien
Mehr zu Publishers and Subscribers finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!