Fail to list ros2 topics when ubuntu publish topics with same ros_domain_id and same subnet.

33 ビュー (過去 30 日間)
景宇 刘
景宇 刘 2022 年 5 月 6 日
回答済み: Josh Chen 2023 年 1 月 10 日
Env: Ubuntu 20.04 LTS VM; ROS2-Foxy; Middle DDS Implementation: Fast/Cyclone; Topics published by px4_ros_com.
When i set ros_domain_id=0 both in ubuntu and matlab, it seems that matlab or ubuntu local could list topics with same id. However, when i set ros_domain_id to non-zero value, matlab or ubuntu local could only list topics with id=0. For example, i set ros_domain_id to 25 and pulish topics of px4_msgs, matlab and ubuntu local with ros_domain_id = 0 can list topics instead of ros_domain_id = 25.
  8 件のコメント
Cam Salzberger
Cam Salzberger 2022 年 5 月 9 日
Sounds like it. Are you working off of this example, or using your own call to the PX4 software?
景宇 刘
景宇 刘 2022 年 5 月 9 日
It's my own test. The example of px4 with ros2 in matlab, it tested before with ros_domain_id = 0, and worked fine, others id was same problem.

サインインしてコメントする。

回答 (1 件)

Josh Chen
Josh Chen 2023 年 1 月 10 日
Hi Jingyu,
I hope you've found a solution to this issue. If not, please also feel free to also reach out to our techinical support team, and we can take a closer look.
For people who might face simimlar issue, as Cam pointed, you may also want to check the following to links to see if they can help resolving the issue or narrowing down the root cause:
Thanks,
Josh

カテゴリ

Help Center および File ExchangeROS 2 Network Access in Simulink についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by