ROS initiate in MATLAB
古いコメントを表示
Hey guys,
I'm trying to play with ROS interface to MATLAB. I tried the communication between MATLAB and an external ROS master (another computer) and let matlab playing as a node. It works perfectly but the system has a certain amout of delay. According to the description of rosinit in the MATLAB support, it could initalize a local ros master by simply using rosinit without any address. But this doesn't works for me and here are the errors MATLAB showing me.

And a command window jump out showing this:

Does anyone have any idea what's going on? Or is there any prerequsite for running ROS using MATLAB besides python?
4 件のコメント
Jagadeesh Konakalla
2021 年 11 月 25 日
Hi,
Based on the snapshot that you shared looks like rosmaster is launced but failed to detect that rosmaster is running by MATLAB.
Yes, you are right. The rosinit requires Python.
Please provide me the following information to debug further.
- What version of MATLAB that you are using ?
- Provide me the output of the following commands after you run rosinit in MATLAB command window.
>> cmd = 'tasklist /FI "WINDOWTITLE eq rosmaster - rosmaster --core -p 11311 -w 3" /FO TABLE /NH';
>> [status, result] = system(cmd);
- Please run the following command to Generate basic diagnostic information in rossupport.txt . Please share the generated file with us.
>> ros.internal.generateSupportFile
Thanks and regards,
Jagadeesh K.
zihui lang
2021 年 11 月 25 日
Jagadeesh Konakalla
2021 年 11 月 26 日
Hi Zihui,
The tasklist program of windows is present in the folder C:\WINDOWS\system32. This path is missing from your windows PATH environement variable. Can you please add C:\WINDOWS\system32 to windows PATH enviornement variable and then restart the MATLAB. It should work.
Thanks,
Jagadeesh K.
zihui lang
2021 年 11 月 27 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Publishers and Subscribers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!