Cannot Connect to ROS Master Running on Odroid XU4

3 ビュー (過去 30 日間)
Andrew Poissant
Andrew Poissant 2019 年 8 月 16 日
回答済み: Andrew Poissant 2019 年 8 月 22 日
I am trying to connect to the ROS master running on an odroid XU4. However, whenever I try to use rosinit, I get the error: "Cannot connect to ROS master at http://172.16.0.127:11311. Check the specified address or hostname." The Odroid XU4 is running Ubuntu 16.04. I set up a static IP address of 172.16.0.127, which is verified by running the 'infconfig' command. I also ran 'echo $ROS_MASTER_URI' in Ubuntu and get 'http://172.16.0.127:11311'. It seems that everything is set up properly but matlab can't establish connection? How do I resolve this issue?
Code Run in Matlab:
rosinit('172.16.0.127')
  2 件のコメント
Cam Salzberger
Cam Salzberger 2019 年 8 月 20 日
Are you sure the port number is supposed to be 1131? The default is usually 11311.
Andrew Poissant
Andrew Poissant 2019 年 8 月 22 日
編集済み: Andrew Poissant 2019 年 8 月 22 日
Sorry, that was a typo on my part. I have 11311 as the port number. I updated the question. I also included screenshots showing my Windows computer (running matlab) pinging my odroid device (running ROS) at IP 172.16.0.127.

サインインしてコメントする。

採用された回答

Andrew Poissant
Andrew Poissant 2019 年 8 月 22 日
I found out you need to actively run ROS on the Odroid in order to be able to connect to it to matlab. After running the command 'roscore' in the Ubuntu terminal, I was able to connect via rosinit('http://172.16.0.127:11311').

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by