Issue in publishing ROS topic to another PC

1 Ansicht (letzte 30 Tage)
Kazuo
Kazuo am 13 Dez. 2022
Kommentiert: Kazuo am 16 Dez. 2022
When PC(②) try to read the rostopic published from MATLAB(①) with the command: "rostopic echo <topicname>", I can't see anything, even though I confirmed ROS connection (both PC can see all rostopics with the command: "rostopic list") and MATLAB(①) can read the rostopic published from another PC(②).
PC configurations are below;
①Windows PC (MATLAB installed) IP:192.168.1.100
ROS_MASTER_URI=http://192.168.1.1:11311, ROS_IP=192.168.1.100, ROS_HOSTNAME=192.168.1.100
②Ubuntu PC (Ubuntu 18.04, melodic) IP: 192.168.1.1
ROS_MASTER_URI=http://192.168.1.1:11311, ROS_IP=192.168.1.1, ROS_HOSTNAME=192.168.1.1
Also, I read this Q&A(https://jp.mathworks.com/matlabcentral/answers/447902-issue-publishing-ros-messages-to-another-machine?s_tid=srchtitle) and I configured the firewall (outbound rule accept for MATLAB), but it doesn't work.
I'm using MATLAB 2022a and ROS Toolbox.
Could you help me with this?

Akzeptierte Antwort

Josh Chen
Josh Chen am 15 Dez. 2022
Hello Kazuo,
The environment variable configuration you shared looks correct to me.
I suspect this may still have something to do with the firewall setup. Could you please also confirm the firewall on Ubuntu PC is disabled or the incoming is allowed?
If this still not addressing the issue, please reach out to our Technical Support team so we can take a closer look.
Thanks,
Josh
  1 Kommentar
Kazuo
Kazuo am 16 Dez. 2022
I confirmed Ubuntu PC can interact with another Ubuntu PC with ROS. Therefore, I think there's no firewall issue in Ubuntu PC.
I sent the request form to tech support team.
Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Network Connection and Exploration finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by