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

Executors do not spin correctly when launched separately

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

HarunTeper gravatar image

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

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_sys...

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

HarunTeper gravatar image

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

edit flag offensive delete link more

Question Tools

2 followers

Stats

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

Seen: 66 times

Last updated: Sep 01 '22