Cannot start ROS2 node

조회 수: 22 (최근 30일)
Antonia Hoffman
Antonia Hoffman 2025년 2월 21일
편집: Walter Roberson 2025년 6월 6일
When I ran ros2 topic list on my M2 Macbook Air running MATLAB 2024b I get the following error:
Error using ros2 (line 117)
Error creating the ROS 2 node /_matlab_introspec__0_rmw_fastrtps_cpp.
Caused by:
Unrecognized field name "CustomMessageMapVersion".
I had just launched MATLAB and not run any other commands beforehand; the workspace is clear.
I have ROS2 Humble and Jazzy installed in different virtual machines. I would like to connect to a ROS2 Jazzy virtual machine running in UTM so that I can do simulations with the new Gazebo. I hope this is possible! Thanks!
  댓글 수: 1
Karthik Reddy Vennapureddy
Karthik Reddy Vennapureddy 2025년 2월 24일
Hi Antonia,
Can you share the output of the following commands in MATLAB to help on this issue:
pref = getpref('ROS_Toolbox')
and
share rossupport.txt file generated by executing
ros.internal.generateSupportFile
Thanks,
Karthik Reddy

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

답변 (1개)

Kautuk Raj
Kautuk Raj 2025년 6월 6일
Hello Antonia,
I was also facing the same error while using ROS2 in one of my workflows.
Upon some research, I found that following the given steps in this GitHub issue comment resolved it for me: https://github.com/eProsima/Fast-DDS/issues/2003#issuecomment-1160245640
I recommend you to try the same.

카테고리

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

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by