WSL, ROS Humble - Simulink

12 ビュー (過去 30 日間)
Denizhan AKINCI
Denizhan AKINCI 2024 年 7 月 17 日
回答済み: Daniele Sportillo 2024 年 7 月 17 日
Hello,
I am using ROS Humbe on WSL2 with Ubuntu 22.04 and I was wondering if I should install MATLAB into my Ubuntu System ? Or MATLAB on my Windows can still communicate with ROS ? Has any one ever tried using it ?

採用された回答

Daniele Sportillo
Daniele Sportillo 2024 年 7 月 17 日
Hi Denizhan,
you don't need to install MATLAB on your Ubuntu system. MATLAB on your Windows will be able to communicate with ROS installed on WSL.
To test you can run on your WSL:
ros2 topic echo /chatter
and in MATLAB:
node = ros2node("/MyNode");
pub = ros2publisher(node,"/chatter","std_msgs/String");
msg = ros2message(pub);
msg.data = 'Hello!';
send(pub,msg);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeROS Network Access in Simulink についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by