Connecting Simulink on Windows to ROS2 Jazzy Running in a VMWare Virtual Machine
28 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am Trying to connect MATLAB (and Simulink) running in my windows 11 Host computer to ROS2 Jazzy running in a Virtual Machine (VMWare) with Unbuntu 24.04.
Although many sources suggested using a briged network connection between host and guest, that did not work for me. I was able to set a network adapter to "Host-Only" between the VM and the Host. After disabling the windows firewall I was able to ping the VM through windows and vice versa.
I then Launched a turtleSim node on the VM, to see if i could visualize it in MATLAB, therefore:
- In my Ubuntu terminal I sourced my environment and set a ROS_DOMAIN_ID to 99, and ran the node.
- In my MATLAB console I: Set the same ROS_DOMAIN_ID
setenv('ROS_DOMAIN_ID', '99');
- Tried to visualize topics and nodes running in the network:
ros2 topic list
ros2 node list
- The output to both of these commands was: "Transport stopped."
- Furthermore, in another test, I tried creating a node first, in the same domain ID, I got the following:

Is there anything I am missing and I should check? I am not very familiar with network connections and such things, so I don't know where to look to further debug this issue, is it more likely a connection issue, or a MATLAB issue?
0 件のコメント
回答 (1 件)
Frederik
2025 年 3 月 8 日
Hello Joubert,
I have the exact same issue and found this:
ROS2 Jazzy is not yet compatible with the ROS Toolbox in Matlab and Simulink. You should install ROS 2 Humble if running Matlab 2024b. See the website above for more information.
Best regards and good luck.
2 件のコメント
Abhishek
2025 年 3 月 25 日
Hi Joubert and Frederik,
ROS Toolbox will support ROS 2 Jazzy in MATLAB R2025a. You can try it now with the MATLAB R2025a Prerelease.
Best regards.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!