-
Notifications
You must be signed in to change notification settings - Fork 2
Add events queue abstract class and implem #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add events queue abstract class and implem #40
Conversation
rclcpp/include/rclcpp/experimental/buffers/performance_events_queue.hpp
Outdated
Show resolved
Hide resolved
rclcpp/include/rclcpp/experimental/buffers/performance_events_queue.hpp
Outdated
Show resolved
Hide resolved
|
With my latest changes this PR could be merged. |
| */ | ||
| RCLCPP_PUBLIC | ||
| void | ||
| set_queue_size_limit(size_t queue_size_limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not pass this to constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it on 5780ccf
| bounded_queue->set_queue_size_limit(10); | ||
|
|
||
| // Create an events executor using the bounded queue | ||
| EventsExecutor executor_sub(std::move(bounded_queue)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit-tests for the queues should be independent from the executor.
You should just create a queue and start manually pushing/popping things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I pushed this commit mauropasse@6fb2463
but this PR is not being updated, strange. I'll wait some time to see if gets updated
Here I create a pure virtual
EventsQueueclass and an implementationSimpleEventsQueueUsage:
Todo:
Implement in a different PR other policies