Skip to content

Correct Rolling compile errors and warnings#431

Closed
destogl wants to merge 1 commit intoSteveMacenski:ros2from
b-robotized-forks:ros2-rolling-compile-errors
Closed

Correct Rolling compile errors and warnings#431
destogl wants to merge 1 commit intoSteveMacenski:ros2from
b-robotized-forks:ros2-rolling-compile-errors

Conversation

@destogl
Copy link

@destogl destogl commented Aug 26, 2021

This PR contains trivial changes, mostly about missing includes, to get ros2 branch compiled under rolling.
I also resolve a deprecation warning about declare_parameter without a value.

Copy link
Owner

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

LGTM, just need to use the right declare in parameter updates

{
auto temp_node = std::make_shared<rclcpp::Node>("slam_toolbox");
temp_node->declare_parameter("stack_size_to_use");
temp_node->declare_parameter("stack_size_to_use", stack_size);
Copy link
Owner

Choose a reason for hiding this comment

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

This should be a type declaration, not a default declaration. This was intentionally not including a default so it uses system defaults when not manually overrided.

Copy link
Owner

@SteveMacenski SteveMacenski Aug 26, 2021

Choose a reason for hiding this comment

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

e.g.

temp_node->declare_parameter("stack_size_to_use", rclcpp::PARAMETER_INTEGER);

@SteveMacenski
Copy link
Owner

@destogl any update?

@SteveMacenski
Copy link
Owner

Handling this myself to speed it up, PR #436

@destogl destogl deleted the ros2-rolling-compile-errors branch April 11, 2022 07:24
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.

2 participants