0
$\begingroup$

Rosanswers logo

Hello,

I would like to build a modular package in which you can model some ROS systems using YAML files. You can find the github repository here:

https://github.com/HarunTeper/ros_system_model

However, when launching "launch_system.launch.py", the created executors do not spin correctly in their corresponding threads, but are somehow stuck in the spinning process without executing the nodes. In "src/system_composition.cpp" I try to create a vector of executors and create a separate thread for each that I also save in a vector. While everything is generated correctly, the executors are not spinning correctly.

What do I need to change to get the correct behaviour?


Originally posted by HarunTeper on ROS Answers with karma: 13 on 2022-08-31

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I fixed the issue by saving all created nodes in a separate vector.


Originally posted by HarunTeper with karma: 13 on 2022-09-01

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.