Skip to content
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

fix qos of trial_config subscriber to implement droppedpart challenge #334

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

saahu27
Copy link
Collaborator

@saahu27 saahu27 commented Apr 24, 2024

The Dropped part Challenge does not work because of the Qos profile mismatch between the publisher and subscriber.

@saahu27 saahu27 requested review from zeidk and jaybrecht April 24, 2024 18:11
@jaybrecht jaybrecht linked an issue Apr 25, 2024 that may be closed by this pull request
@@ -155,8 +155,11 @@ namespace ariac_plugins
impl_->first_publish_ = true;

// Connect Subscribers
rclcpp::QoS custom_qos(1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep consistency with the task manager plugin use this format for the QoS:

rclcpp::QoS qos_profile = rclcpp::QoS(rclcpp::KeepLast(1)).transient_local().reliable();

impl_->trial_config_sub_ = impl_->ros_node_->create_subscription<ariac_msgs::msg::Trial>(
        "/ariac/trial_config", qos.get_subscription_qos("/ariac/trial_config", qos_profile),
        std::bind(&VacuumGripperPluginPrivate::OnTrialCallback, impl_.get(), std::placeholders::_1));

Copy link
Collaborator

@jaybrecht jaybrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring out that it was a QoS issue with the subscription. Can you update with the change I requested.

@jaybrecht jaybrecht changed the base branch from ariac2024 to drop_part_challenge_fix April 25, 2024 14:54
@jaybrecht jaybrecht merged commit b5af92e into usnistgov:drop_part_challenge_fix Apr 25, 2024
1 check passed
jaybrecht added a commit that referenced this pull request Apr 30, 2024
* fix qos of trial_config subscriber to implement droppedpart challenge (#334)

* fix qos of trial_config subscriber to implement droppedpart challenge

* change qos profile to match task manager

* Updated version numbers

---------

Co-authored-by: Sahruday <sahrudaypatti@gmail.com>
Co-authored-by: Joseph Fernandez <jothomas0615@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drop part challenge does not drop a part
2 participants