MATLAB-Turtlebot3 Network Connection Issue

조회 수: 5 (최근 30일)
Shivam Bajpai
Shivam Bajpai 2023년 5월 30일
댓글: Jagadeesh Konakalla 2023년 6월 6일
Hello everyone,
I am working on Simulink and turtlebot3 (TB3). I am connecting both of them through ROS (Robotic Opersting System). In Feb, I operated TB3 using Simulink and it was working fine. But now, I am trying to configure the TB3 ROS network on Simulink, it is showing an error (in picture (right side)), despite MATLAB is connecting to TB3 successfully and showing the TB3 ROS topics (bottom figure) on command windows and also ping TB3 successfully (left figure). I don't know what's wrong. I am following the all steps that I followed in Feb. Only difference is that now I am using MATLAB 2023a and in Feb I was using MATLAB 2022b. Kindly gelp me to fix this issue asap. Thank you. Moreover I am writing cpmmand in TB3 'roslaunch turtlebot3_bringup turtlebot3_core.launch".
  댓글 수: 3
Shivam Bajpai
Shivam Bajpai 2023년 5월 31일
Shivam Bajpai
Shivam Bajpai 2023년 5월 31일
Here is the image.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2023년 6월 1일
Hi Shivam,
Can you confirm what is the address of ROS Master IP in the Turtlebot 3 ?
The MATLAB rosinit is connected to the 192.168.0.152:11311, where as in Simulink you provided the IP address as 192.168.0.158. Please check it.
  댓글 수: 2
Shivam Bajpai
Shivam Bajpai 2023년 6월 2일
IP address of ROS_MASTER_URI is 192.168.0.152 (IP address of system contains MATLAB)
Jagadeesh Konakalla
Jagadeesh Konakalla 2023년 6월 6일
The procedure to launch a ROS terminal in Turtle bot3, then the roscore command. You can note down the value of ROS_MASTER_URI. then, please pass the noted value of Master URI to the rosinit function call. This ensures that MATLAB is connected to the Turtlebot3 ROs Master.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 ROS Network Access in Simulink에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by