ros2_rust icon indicating copy to clipboard operation
ros2_rust copied to clipboard

Make wait set growable

Open nnmm opened this issue 3 years ago • 0 comments

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.

nnmm avatar Oct 06 '22 13:10 nnmm