Properly Disconnect from ROS2 Network with Generated Code

5 ビュー (過去 30 日間)
Michael
Michael 2022 年 6 月 21 日
コメント済み: Michael 2022 年 6 月 22 日
The Matlab ROS2 publish/subscribe documentation suggests using clear to remove the sample nodes, publishers and subscribers from the ROS 2 network. See "Disconnect From ROS 2 Network" at the bottom of the page on the link. clear isn't supported for code generation but I need to deploy to complied code running on a remote machine. How should this be done for generated code so that my nodes and publishers don't still appear on the ROS2 network after my program completes?

採用された回答

Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 6 月 22 日
Hi Michael,
Yes, the clear is not supported in MATLAB codegeneration. The clear is used for Simulation purposes only.
For the deployed node, you do not need to do anything to remove the nodes from ROS2 network. When you kill the node, you should not see any publishers and nodes in the network.
Thanks,
Jagadeesh K

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by