ROS node generated by MATLAB runs as a process in Linux ?

3 ビュー (過去 30 日間)
Jaehyeon Im
Jaehyeon Im 2019 年 5 月 8 日
コメント済み: Alhaji Sankoh 2022 年 9 月 14 日
I'm trying to generate a ROS node using Simulink ROS Toolbox.
When I build and generate codes to Linux , does that ROS node run as a process or a thread ?
I wonder that there's any specific way to generate multi-threaded ROS nodes.

採用された回答

Cam Salzberger
Cam Salzberger 2019 年 5 月 8 日
Hello Jaehyeon,
ROS nodes, generated from Simulink or not, generally run as their own separate process. Certain operations will initiate an additional thread running for various purposes. When the node "spins", it should create a separate thread for monitoring the network, especially for subscribers.
If you are interested in having multiple ROS nodes in one process (for more efficient sharing of data through shared memory), you can look into ROS nodelets. Unfortunately, there is currently no way to generate nodelets from Simulink. Each model generates a single node, by design.
-Cam

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by