ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Executors do not spin correctly when launched separately

asked 2022-08-31 16:39:12 -0600

HarunTeper gravatar image

updated 2022-08-31 16:39:33 -0600


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:

However, when launching "", 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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-09-01 04:05:55 -0600

HarunTeper gravatar image

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

edit flag offensive delete link more

Question Tools



Asked: 2022-08-31 16:39:12 -0600

Seen: 65 times

Last updated: Sep 01 '22