ros2_rust
ros2_rust copied to clipboard
Make wait set growable
Currently, on each iteration of rclrs::spin(), the wait set is regenerated from scratch.
It would be more efficient to be able to push new waitable entities, if any, into the existing wait set – and re-allocating storage if the capacity is not sufficient. This could work a bit like a Vec – doubling capacity each time the capacity is exceeded.