Skip to content

fix deprecation warning#69

Merged
mikeferguson merged 2 commits intoros-drivers:ros2-develfrom
mikeferguson:fix_deprecation
Jul 12, 2020
Merged

fix deprecation warning#69
mikeferguson merged 2 commits intoros-drivers:ros2-develfrom
mikeferguson:fix_deprecation

Conversation

@mikeferguson
Copy link
Copy Markdown
Member

No description provided.

@mikeferguson
Copy link
Copy Markdown
Member Author

Tested on Foxy with a ust-20lx

@mikeferguson
Copy link
Copy Markdown
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
Copy Markdown

@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
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,
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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