SIMULINK ROS Permission denied
조회 수: 24 (최근 30일)
이전 댓글 표시
MATLAB System block 'Sine_publisher/Publish/SinkBlock' error occurred when invoking 'setupImpl' method of 'ros.slroscpp.internal.block.Publisher'. The error was thrown from ' '/usr/local/MATLAB/R2021b/toolbox/ros/slroscpp/+ros/+slroscpp/+internal/+block/Publisher.m' at line 142 '/usr/local/MATLAB/R2021b/toolbox/simulink/ui/studio/config/m/+SLStudio/StartPauseContinue.p' at line 0 '/usr/local/MATLAB/R2021b/toolbox/simulink/ui/studio/config/m/+SLStudio/ToolBars.p' at line 0'.
Caused by: Permission denied
댓글 수: 3
Mahshad Kadkhodazade
2022년 12월 5일
I'm having the same error. I attached my model.
p.s.: first time, I initialized roscore on ubuntu, then on matlab. I got this error.
second time, I restarted my computer and this time initialized ros on matlab. Still the same error.
Mahshad Kadkhodazade
2022년 12월 5일
I solved it by going to matlab script and changing the folder directory to the folder where the python code of my publisher node exists. I got this idea from below link:
https://forums.ni.com/t5/LabVIEW/permission-denied-error-when-using-Matlab-script/td-p/3209865
p.s.: I got this error in Simulink of a ROS publisher block. I had defined a publisher node in ROS before running this simulink block.
답변 (1개)
Jagadeesh Konakalla
2023년 4월 7일
Based on the error message, you are running the model where you do not have write permissions. Please run the simulink model where you have write permissions.
Thanks,
Jagadeesh K
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!