필터 지우기
필터 지우기

Rosinit error: Undefined function or variable 'rosinit'

조회 수: 1 (최근 30일)
Alireza Manzoori
Alireza Manzoori 2016년 7월 31일
답변: Josh Chen 2023년 4월 17일
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
Robin Narbey
Robin Narbey 2016년 8월 2일
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
Alireza Manzoori 2016년 8월 5일
편집: Alireza Manzoori 2016년 8월 5일
@Swarooph: I tried that command to check my license, and the answer was zero. But the problem is that it returns zero for all of the toolboxes that I have and am already using without a problem (e.g. the Control System Toolbox).
@Robin Narbey: I was thinking of trying another version actually. Thanks a lot for pointing out, I appreciate it :)
Cheers

댓글을 달려면 로그인하십시오.

답변 (1개)

Josh Chen
Josh Chen 2023년 4월 17일
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

카테고리

Help CenterFile Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by