If callbacks are all very fast – say, just data copying, with another thread actually processing – you may never see any need for multiple spinOnce calls. In fact, that’s what I’ve done for a large Qt project: a single spinOnce thread, quick callbacks, and additional threads for other processing.
ROS--tutorial
最新推荐文章于 2022-11-23 10:02:57 发布