I fixed this by setting MATLAB_USE_USERWORK=1 in ~/.bashrc, in this way the pathdef.m in my local MATLAB working folder will be loaded during Matlab startup.
ROS Custom Message Support not found after Matlab restart
조회 수: 2 (최근 30일)
이전 댓글 표시
I installed ROS Custom Message Support following instructions here: http://www.mathworks.com/help/robotics/ug/ros-custom-message-support.html
But after I restart Matlab, rosgenmsg is not recognized as a function. How to fix this? Thanks!
Zhen
댓글 수: 4
Walter Roberson
2016년 3월 23일
Fady,
fid = fopen('~/.bashrc', 'a');
fprintf(fid, 'MATLAB_USE_USERWORK=1\n');
fclose(fid)
Shantnu Kakkar
2017년 11월 24일
I did this. After opening my ~./bashrc, I can see MATLAB_USE_USERWORK=1 at the very bottom. But still matlab is not recognising "rosgenmsg" as a function.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!