Error creating the node in matlab

2 ビュー (過去 30 日間)
Ritesh Agarwal
Ritesh Agarwal 2017 年 6 月 20 日
回答済み: Jatin Waghela 2017 年 6 月 23 日
Hi, I am getting the following error when I entered rosinit command in MATLAB(2015a) command terminal. The error: Error creating the node /matlab_global_node_28699.
Please help me. Thanks,
Ritesh

回答 (1 件)

Jatin Waghela
Jatin Waghela 2017 年 6 月 23 日
To workaround this issue, can you try to create the java object directly:
ipAddress = '172.28.194.92';
rosCore = org.ros.RosCore.newPublic(ipAddress, 11311); rosCore.start();
rosinit('NodeHost', ipAddress)
Where 'ipAddress' is the local IP for the host computer, on Windows execute ipconfig /all in the command prompt to get this IP. If you wish to use the local ROS in a Simulink model you need to configure your ROS Network Addresses to feature his local IP address.

カテゴリ

Help Center および File ExchangeROS Network Access in Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by