ros simulink with different two laptop
4 views (last 30 days)
Show older comments
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...
0 Comments
Answers (1)
Cam Salzberger
on 3 May 2018
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
0 Comments
See Also
Categories
Find more on Network Connection and Exploration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!