Trouble connecting Unity and Matlab using ROS2

22 ビュー (過去 30 日間)
Mayur Shivaji
Mayur Shivaji 2024 年 10 月 13 日
編集済み: Mayur Shivaji 2024 年 10 月 13 日
I am trying to establish the connection between Matlab and Unity using Matlab's in-built ROS2. However, it seems like the tcp_endpoint node is not getting activated. I was able to do the same with ROS though.
To start the tcp_endpoint node I am running following commands.
pyFile = fullfile(matlabroot,'sys','ros2',computer('arch'),...
'ros2','lib','python3.9','site-packages','ros_tcp_endpoint','default_server_endpoint.py');
[status, msg] = ros.ros2.internal.runros2cmd(['python ' pyFile ' &']);
Unity is set to ROS2.
After these steps, when I run ros2 node list I do not see any running node.

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecialized Messages についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by