R2015a Robotics System Toolbox: Cannot subscribe to topics on Windows MATLAB node
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 27 Mai 2015
Bearbeitet: MathWorks Support Team
am 9 Jun. 2015
I have my roscore running on my Ubuntu machine which is running the Gazebo simulator. I configured the MATLAB node with the ROS_MASTER_URI environment variable and I can see the topics generated from the simulator using 'rostopic list' however I cannot subscribe or echo any of the topics on MATLAB. How do I fix this?
Akzeptierte Antwort
MathWorks Support Team
am 9 Jun. 2015
Please add the host name and IP address of your Ubuntu machine to the 'C:\Windows\System32\drivers\etc\hosts' file. In the 'hosts' file add the IP address and host name as shown below.
For example,
102.54.94.97 <Linux Host Name>
To initialize the MATLAB rosnode, please run the following commands when connecting to the network:
>>rosshutdown();
>>rosinit('<Linux Host Name', 'NodeHost', '<Windows Host Name>')
You should then be able to subscribe and echo topics that are published over the network.
0 Kommentare
Weitere Antworten (0)
Siehe auch
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!