-
Notifications
You must be signed in to change notification settings - Fork 0
Add Publish Action #20
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
Conversation
|
POC works, just need to do some more checks |
|
Ready for review. We'll need to think of a cleaner solution long-term |
jplapp
left a comment
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.
This looks great and I think of all our discussed approaches, this is the nicest one
Regarding the nav2 generalization - I think one would also need to think about how to abstract the "trigger" so whether using a topic , some fixed interval, or e.g. an update from the input topics
| for (std::shared_ptr<Polygon> polygon : polygons_) { | ||
| if (polygon->getActionType() == PUBLISH) { | ||
| timer_ = this->create_wall_timer( | ||
| 100ms, |
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.
on second thought, I think it would be nice to be able to configure this interval, depending on the application also a reduced frequency could be used, e.g. 5Hz or 2Hz to further reduce CPU impact
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.
at 10 Hz the CPU usage was not more than 10%. But I can surely still add it if you see it necessary
For https://lvserv01.logivations.com/browse/AMRNAV-3997.