ros2node() freezes execution
이전 댓글 표시
Hello,
I'm trying to implement and run a ROS2 node in Matlab.
Yesterday, when I first used the Matlab ROS Toolbox, everything worked seamlessly.
Today, after a reboot of my device (Windows 10, 21H2), the simple node creation command
node = ros2node("name");
causes the execution to freeze infinitely until I manually kill the process libmwros2server.
Running and connecting any other ROS2 nodes outside of Matlab is working without any trouble.
I don't receive any errors or any feedback at all. I've tried rebooting my device multiple times and reinstalled Matlab with all toolboxes but without success.
I would appreciate any help on this one.
댓글 수: 4
Hendrik Steidl
2022년 4월 13일
Jagadeesh Konakalla
2022년 4월 13일
Hi Hendrik,
Please let me know which version of MATLAB that you are using. As per your response, looks like node creation is working on other Domain Ids.
Is the node creation failing outside the MATLAB too on your machine with Domain Id as 0 ?
Can you run the following command in the MATLAB command line and share the generated rossupport.txt file to debug further ?
ros.internal.generateSupportFile
Thanks,
Jagadeesh K
Hendrik Steidl
2022년 4월 13일
Kenneth De Leener
2022년 6월 10일
Hi everyone,
I ran into the same issue, attached rossupport.txt.
Some additional info:
- If I run a ros2 command like ros2 node list, followed by the creation of a ros2node, the ROS daemon locks up
- If you first run ros2node, it works fine, after the creation of a second node, it locks up again.
Thank you Hendrik for the work around, this was crucial for our project.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File 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!