WSL, ROS Humble - Simulink
    조회 수: 28 (최근 30일)
  
       이전 댓글 표시
    
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 ?
댓글 수: 0
채택된 답변
  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
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Custom Message Support에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

