Skip to content

Runtime parameters created from other parameters - #20

Merged
tylerjw merged 10 commits into
ros-tooling:mainfrom
pac48:parameter-map-other-parameter
Jul 27, 2022
Merged

tylerjw merged 10 commits into
ros-tooling:mainfrom
pac48:parameter-map-other-parameter

Conversation

@pac48

@pac48 pac48 commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

No description provided.

pac48 added 7 commits July 26, 2022 13:53
…library into parameter-map-other-parameter

� Conflicts:
�	generate_parameter_library_py/generate_parameter_library_py/jinja_templates/declare_struct
�	generate_parameter_library_py/generate_parameter_library_py/main.py
@pac48
pac48 force-pushed the parameter-map-other-parameter branch from e36baaf to 82288bc Compare July 27, 2022 01:14
…rate_parameter_library into parameter-map-other-parameter

� Conflicts:
�	generate_parameter_library_py/generate_parameter_library_py/main.py
@pac48
pac48 force-pushed the parameter-map-other-parameter branch from 82288bc to 27997ae Compare July 27, 2022 01:15
@pac48 pac48 changed the title Runtime created parameters created from other parameters Runtime parameters created from other parameters Jul 27, 2022
Comment on lines +62 to +72
bool refresh_dynamic_parameters() {
// TODO remove any destroyed dynamic parameters
{%- filter indent(width=6) %}
{{remove_dynamic_parameters}}
{%- endfilter %}
// declare any new dynamic parameters
rclcpp::Parameter param;
{%- filter indent(width=6) %}
{{update_declare_dynamic_parameters}}
{%- endfilter %}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This function returns a bool so it needs a return statement at the end.

/home/tyler/code/ws_gen_ros2_control/build/generate_parameter_library_example/admittance_controller_parameters/include/admittance_controller_parameters.hpp:392:5: warning: no return statement in function returning non-void [-Wreturn-type]
  392 |     }
      |     ^
---

@tylerjw tylerjw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tested and this works. Thank you for putting this together so quickly.

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