-
Notifications
You must be signed in to change notification settings - Fork 44
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
Upgrade parameters #274
Upgrade parameters #274
Conversation
What should be the approach with parameter constrains?
rclc/rclc_parameter/include/rclc_parameter/rclc_parameter.h Lines 488 to 490 in cb7f5a1
Related: #273 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review
@Acuadros95 please rebase on master to get changed Then the CI RCLC Rolling should run. |
bc6987a
to
911a774
Compare
@JanStaschulat Looking good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, do not merge until documentation in micro-ROS webpage is ready.
@JanStaschulat @ralph-lange would you mind taking a quick look here? We are implementing new functionalities and modifying several things.
Codecov Report
@@ Coverage Diff @@
## master #274 +/- ##
==========================================
+ Coverage 64.77% 69.13% +4.36%
==========================================
Files 16 16
Lines 2197 2715 +518
Branches 647 765 +118
==========================================
+ Hits 1423 1877 +454
+ Misses 459 451 -8
- Partials 315 387 +72
Continue to review full report at Codecov.
|
Documentation here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the documentation, function declarations for the parameter server, and the example. @JanStaschulat, can you please focus on the parameter server implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM some minor changes like
- using NULL pointer checks for pointer arguments
- using the
|=
operator to aggregate state information - updated documentation.
- one wrong return value
- code style: each parameter of a function should be in a new line
I have not looked at unit tests yet.
* Update Signed-off-by: Pablo Garrido <[email protected]> * Fix typos Co-authored-by: acuadros95 <[email protected]>
Co-authored-by: Ralph Lange <[email protected]>
Co-authored-by: Jan Staschulat <[email protected]>
adb00cb
to
ce8e99c
Compare
Looks already very great to me. Could you add a few simple test cases to check for the NULL pointer arguments. rclc_parameter package has already a high coverage about 70%. Which is great. I think with a few simple function calls with https://app.codecov.io/gh/ros2/rclc/compare/274/diff In general, the current code coverage of all |
@JanStaschulat Updated coverage to 80% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Great job, @JanStaschulat thanks a lot for the thorough review |
Updated documentation PR with latest review: micro-ROS/micro-ROS.github.io#366 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-humble-hawksbill-released/25729/14 |
Functionality upgrade on micro-ROS parameters:
Remove parameters: Using API and
ros2 param delete
Add new parameters with
ros2 param set
, configurable with optionallow_undeclared_parameters
Control of this features and parameter changes on user callback:
rclc/rclc_parameter/include/rclc_parameter/rclc_parameter.h
Lines 77 to 83 in a79d5b8
Added
ros2 param describe
:Added low memory mode, reducing the memory allocated with certain constrains:
rclc_add_parameter_description
)Memory benchmark on STM32F4 for 7 parameters with
RCLC_PARAMETER_MAX_STRING_LENGTH = 50
andnotify_changed_over_dds = true
Test suite upgrade with parameterized
rclc_parameter_options_t
options.Update tutorials and documentation: