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 deprecation warning #69

Merged
merged 2 commits into from
Jul 12, 2020
Merged

fix deprecation warning #69

merged 2 commits into from
Jul 12, 2020

Conversation

mikeferguson
Copy link
Member

No description provided.

@mikeferguson
Copy link
Member Author

Tested on Foxy with a ust-20lx

@mikeferguson
Copy link
Member Author

This won't work on Dashing, so we should probably merge #71 and do a new/final release to dashing before merging this

Copy link

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

Now that deprecated API has been removed, releasing this patch into rolling should fix http://build.ros2.org/view/Rbin_uF64/job/Rbin_uF64__urg_node__ubuntu_focal_amd64__binary/17/

src/urg_node.cpp Outdated
@@ -116,7 +116,7 @@ void UrgNode::initSetup()

diagnostic_updater_.add("Hardware Status", this, &UrgNode::populateDiagnosticsStatus);

this->set_on_parameters_set_callback(std::bind(&UrgNode::param_change_callback, this,
this->add_on_set_parameters_callback(std::bind(&UrgNode::param_change_callback, this,

Choose a reason for hiding this comment

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

I think we need to hold a reference to the returned shared pointer, otherwise the callback may be unregistered.

@mikeferguson
Copy link
Member Author

passes, has crustify issues on F/R - which I'll fix in separate PR

@mikeferguson mikeferguson merged commit b2605ff into ros-drivers:ros2-devel Jul 12, 2020
@mikeferguson mikeferguson deleted the fix_deprecation branch July 12, 2020 19:52
@Yu1107
Copy link

Yu1107 commented Mar 31, 2021

same problem on ubuntu 18.04 dashing

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.

3 participants