-
Notifications
You must be signed in to change notification settings - Fork 703
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
feat(default_ad_api_helpers): use polling subscriber #7416
feat(default_ad_api_helpers): use polling subscriber #7416
Conversation
Signed-off-by: Sho Iwasawa <sho.iwasawa.2@tier4.jp>
Signed-off-by: Sho Iwasawa <sho.iwasawa.2@tier4.jp>
Signed-off-by: Sho Iwasawa <sho.iwasawa.2@tier4.jp>
Signed-off-by: Sho Iwasawa <sho.iwasawa.2@tier4.jp>
Signed-off-by: Sho Iwasawa <sho.iwasawa.2@tier4.jp>
IMO |
const rclcpp::Time current_time = this->get_clock()->now(); | ||
auto fixed_goal_msg = sub_fixed_goal_.takeData(); | ||
auto rough_goal_msg = sub_rough_goal_.takeData(); | ||
auto waypoint_msg = sub_waypoint_.takeData(); |
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 change reduces waypoint throughput. Only one waypoint can be added per timer period. Also, information about the order of arrival of waypoints and goals is lost. Waypoints and goal must be processed in the order in which they arrive.
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.
Thank you for taking the time to review my PR.
I understand your concerns regarding the usage of take().
Therefore, I will close this PR.
Description
The same as #6997 based on the discussion, the polling subscriber is used in the default_ad_api_helpers.
Tests performed
psim test were performed
Effects on system behavior
Nothing but more efficient CPU usage
Interface changes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.