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

changes to avoid deprecated API's #399

Merged
merged 1 commit into from
May 8, 2019
Merged

changes to avoid deprecated API's #399

merged 1 commit into from
May 8, 2019

Conversation

wjwwood
Copy link
Member

@wjwwood wjwwood commented May 7, 2019

Connects to ros2/rclcpp#713

Signed-off-by: William Woodall <william@osrfoundation.org>
@wjwwood wjwwood self-assigned this May 7, 2019
@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label May 7, 2019
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

I agree that a follow-up changing the class would be good. LGTM

Copy link
Member

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -66,7 +66,7 @@ void GoalTool::updateTopic()
{
// TODO(anhosi, wjwwood): replace with abstraction for publishers once available
publisher_ = context_->getRosNodeAbstraction().lock()->get_raw_node()->
template create_publisher<geometry_msgs::msg::PoseStamped>(topic_property_->getStdString());
template create_publisher<geometry_msgs::msg::PoseStamped>(topic_property_->getStdString(), 10);
Copy link
Member

Choose a reason for hiding this comment

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

In these cases an explicit local variable for the numeric parameter might be more readable, like https://github.com/ros2/rosidl_python/blob/c66c3b7075a8e9c9ef01826f547d7996e0c6c604/rosidl_generator_py/resource/_msg_support.c.em#L623-L624

This certainly doesn't need to be addressed to get this merged - it is merely a thought.

@wjwwood wjwwood merged commit cb2fb54 into ros2 May 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the require_history_depth branch May 8, 2019 21:25
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label May 8, 2019
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.

None yet

3 participants