How to connect Matlab with ROS over Network?

2 Ansichten (letzte 30 Tage)
Matthias B
Matthias B am 11 Jan. 2018
Kommentiert: sanjay kumar am 23 Mai 2019
Hello Matlab-Users,
I have a big problem setting up a connection between Matlab and ROS!
my situation:
  • PC 1: Ubuntu 16.04 / Ros kinetic / roscore running
  • PC 2: Windows 10 / Matlab 2017b / Robotics System Toolbox
  • Self-made simple publisher and subscriber system to check connectivity
  • set environment variables (ROS_HOSTNAME_URI/ROS_IP) on Ubuntu machine
  • Connection is set up -> rosnode list shows all active nodes on both PCs
  • rostopic list also shows the active topics (doesn't matter on which PC Nodes are publishing on/subscribing to)
  • publishing data from a node running on Ubuntu machine and subscribing to the same topic in Matlab works fine
  • other way round does not work / you can echo the topic, but there is never data coming
I've already read many posts dealing with the same issue, but there was nothing that really worked in my case!
I really hope that you can give me some useful advice! It is very important for me to have success in setting up the connection!
Thanks a lot for your help!!!
  1 Kommentar
sanjay kumar
sanjay kumar am 23 Mai 2019
  • publishing data from a node running on Ubuntu machine and subscribing to the same topic in Matlab works fine
For u this happens, Can u tell me howto do this?
Coz for me reverse like Matlab to Ubuntu is working fine.
But reverse is not working... can u tell me how?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Andrea Trivisonne
Andrea Trivisonne am 4 Mär. 2019
Hi Matthias, I have the same problem. Did you find a solution? I would be very grateful if you helpe me, thank you!

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by