ros simulink with different two laptop
Afficher commentaires plus anciens
Hi, i am trying to use simulink ros block with different two laptop, one is called A, the other is called B. i command A with rosinit, and also command B with rosinit('A ip address'). this result create two matlab_global_node. i want to A as a master node, so i publish data with simulink publish block, and B is subscribe block. but no data is received. What I have to do? sorry to not well in English...
Réponses (1)
Cam Salzberger
le 3 Mai 2018
0 votes
Hello,
What I am assuming happened is that both Simulink instances are retaining their default connection settings. This will result in Simulink on system B hosting a second master, rather than connecting to the first master. I would suggest checking the Simulink network connection settings. System A can be left to default or set to localhost and 11311. System B should have System A's hostname/IP and port listed under the "Custom" option.
You can always run the models, and while they're running, use rosnode list and other network introspection tools from System A's MATLAB to get an idea of what might be going on.
Hope this helps!
-Cam
Catégories
En savoir plus sur Network Connection and Exploration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!