필터 지우기
필터 지우기

I cannot connect matlab with ros2 toolbox

조회 수: 5 (최근 30일)
yuanwenjin yuan
yuanwenjin yuan 2023년 3월 7일
댓글: Jagadeesh Konakalla 2023년 3월 13일
when I use the "ros2node" function create a ros node and enter "ros2 topic list" in command line, just one topic "parameter_events" be found , but I find topics normally in my turtlebot3's terminal , and my notebook and turtlebot3 connects to the same internet.
  댓글 수: 1
Jagadeesh Konakalla
Jagadeesh Konakalla 2023년 3월 13일
Hi,
For the communication between MATLAB and ROS 2 network (in this case Turtlebot 3) , please make sure that following are set correctly.
  1. Please ensure that both uses same Domain ID. You can ceck the Domain ID of Turtlebot 3 terminal and use the same in the MATLAB.
  2. I advice that both use the same RMW middlwware. You can check the environemnet variable RMW_IMPLEMENTATION.
  3. Sometimes it is observed that different distributions of ROS 2 may not communicate. Which version of MATLAB that you are using ? Which version of ROS 2 distribution that you are using on Turtlebot3 ?
Let me know if this solves your issue.
Thanks,
Jagadeesh K.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS 2 Network Connection and Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by