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

Revision history [back]

click to hide/show revision 1
initial version

What kind of executor are you using? If you are using the default rclcpp::spin() I think that uses a single threaded executor by default, which will call only one callback at a time. I would suggest trying a multithreaded executor, something like this:

rclcpp::executors::MultiThreadedExecutor executor;
executor.add_node(node);
executor.spin();

See the docs for more information