-
Notifications
You must be signed in to change notification settings - Fork 682
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): change to read topic by polling #7400
feat(default_ad_api): change to read topic by polling #7400
Conversation
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
…om:shtokuda/autoware.universe into feat/use-polling-subscriber-default_ad_api
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
// Set the status if it is unknown. | ||
const auto is_vehicle_stopped = stop_checker_->isVehicleStopped(stop_duration_); | ||
for (auto & factor : velocity.factors) { | ||
if ((factor.status == VelocityFactor::UNKNOWN) && (!std::isnan(factor.distance))) { | ||
const auto is_stopped = is_vehicle_stopped && (factor.distance < stop_distance_); | ||
factor.status = is_stopped ? VelocityFactor::STOPPED : VelocityFactor::APPROACHING; | ||
} | ||
} | ||
} | ||
|
||
pub_velocity_factors_->publish(velocity); | ||
pub_steering_factors_->publish(steering); | ||
pub_velocity_factors_->publish(velocity); | ||
pub_steering_factors_->publish(steering); | ||
} |
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.
What do you intend to execute them if (trajectory_ && kinematic_state_)
which originally executed regardless of trajectory_
and kinematic_state_
.
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.
Apologies for any confusion. I misunderstood that published topics in on_timer
are related to subscribed topics directly. I will revert to the original implementation.
@shtokuda |
Sorry, I didn't explain about |
Signed-off-by: shtokuda <[email protected]> Co-authored-by: Shumpei Wakabayashi <[email protected]>
Signed-off-by: shtokuda <[email protected]> Co-authored-by: Shumpei Wakabayashi <[email protected]>
Signed-off-by: shtokuda <[email protected]> Co-authored-by: Shumpei Wakabayashi <[email protected]>
…github.com:shtokuda/autoware.universe into feat/use-polling-subscriber-default_ad_api" Signed-off-by: shtokuda <[email protected]>
I overlooked this 🙏 |
@isamu-takagi |
@shmpwk There are two subscriber wrappers that conflict. Can you wait while I work on a solution for component_interface_utils? It would also be useful to have an implementation of polling subscription using a free function. |
Close because #7588 has taken over. |
Description
Some callback were replaced with polling subscriber.
I show a list of fixed node in default_ad_api in this PR.
Tests performed
The module works as before
I checked published data of following topics on the planning_simulator;
Notes for reviewers
The motion node has two subscribers, which subscribe to the 'is_pause' and 'is_start' topics.
Is it sufficient to update only the on_timer function?
Interface changes
ROS Topic Changes
ROS Parameter Changes
Effects on system behavior
None
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.