Unable to publish to ROS2 network with Simulink ROS2 Toolbox

9 ビュー (過去 30 日間)
Ruggero Simonelli
Ruggero Simonelli 2022 年 6 月 3 日
編集済み: Cam Salzberger 2022 年 6 月 16 日
Hi,
I am using MATLAB/Simulink R2022a and want to connect to a ROS2 foxy network on a Ubuntu 20.04 machine, with an arrangement as per screenshot
Now, as long as I execute command in the MATLAB window:
ros2 topic list
I can correctly visualize the /my_topic as expected.
Executing the same command in the terminal /my_topic is not found.
Using dashing is not an option for project reasons, and the workaround of usingcyclonedds is not working.
What can I do to publish the topic to the "external" network?

回答 (1 件)

Cam Salzberger
Cam Salzberger 2022 年 6 月 16 日
編集済み: Cam Salzberger 2022 年 6 月 16 日
Hello Ruggero,
If you are using R2022a, MATLAB will also be using Foxy as the ROS 2 distribution, so the inability to communicate between Dashing and MATLAB should not be an issue.
Have a look at this answer, where I've gone into some detail on different issues that can happen between ROS 2 nodes/systems. Also consider checking this one as well.
-Cam

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by