What am I doing wrong when using matlab and ros?
古いコメントを表示
I want start roscore in terminal ubuntu and creat node in matlab. I have "Error creating the node /matlab_global_node_" when use rosinit. What am I doing wrong? Thanks
回答 (1 件)
bio lim
2016 年 11 月 30 日
When you start ROS on your terminal using roscore, check out the section:
ROS_MASTER_URI=http://XXXX:11311/
where XXXX is your computer name.
Then on your MATLAB, try setting as follows:
setenv('ROS_MASTER_URI', 'http://XXXX:11311/');
rosinit('NodeName', '/Matlab');
4 件のコメント
Serj Titov
2016 年 11 月 30 日
編集済み: Serj Titov
2016 年 11 月 30 日
bio lim
2016 年 12 月 1 日
Have you tried perhaps initializing your node directly to your IP by:
rosinit('http://IPDADDRESS')
If not, could it be possible that the global node is already running, and you have not shut down the global node? Did you check the list of nodes that are running in your ROS with rosnode list?
If the above doesn't help, could you give me the entire information about your experimental setup?
Serj Titov
2016 年 12 月 6 日
Shubham Jena
2018 年 6 月 5 日
run rosinit('http://192.168.42.105:46565')
カテゴリ
ヘルプ センター および 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!
