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

Jaehyeon Im · May 4, 2023 · 1.9K views
Question
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.
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 25, 2026
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.
 
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!