- Instead of using two ROS_MASTER_URI, put the two turtlebots in the same ROS_MASTER_URI and distinguish them by putting into different namespace - this way, you just need to give different topic name with namespace infront.
- You can also open two MATLAB sessions and set different ROS_MASTER_URI as shown below:
unable to connect 2 turtlebot3-burger with Simulink using ros subscribe block
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hemant Pandey
am 26 Nov. 2023
Kommentiert: Hemant Pandey
am 28 Nov. 2023
I am trying to connect ot 2 turtlebots with different ROS_MATER_URI using subscribe block however I am unable to do so as subscribe block "configure network address" setting are uniform and no 2 blocks can have differnt ip for ROS_MASTER_URI is there way to move forward in the simulink itself I am not looking for solution where ros bridge or similar settings are used. I am using windows 10 matlab r2022b.
Thank you for help
0 Kommentare
Akzeptierte Antwort
Josh Chen
am 27 Nov. 2023
Hi Hemant,
Do you need to control those two turtlebots with different ROS_MASTER_URI with one single Simulink model? If yes, could you elaborate more about why they have to be controlled within the same Simulink model?
As you may already found by yourself, there is no way to set two different ROS_MASTER_URI in one MATLAB session, even if you open two separate Simulink.
Based on what I saw from your problem statement, here are two options you may try:
Hope that helps,
Josh
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Publishers and Subscribers 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!