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

[JTC] Activate checks for parameter validation #857

Merged

Conversation

christophfroehlich
Copy link
Contributor

@christophfroehlich christophfroehlich commented Nov 25, 2023

I refactored the temporarily deactivated test for parameter validation.

It checks now if validators are set correctly for generate_parameter_library (GPL checks for parameter itself only; during on_init()) and if valid combinations are checked by JTC during on_configure()

@christophfroehlich christophfroehlich added backport-humble This label should be used by maintainers only! Label triggers PR backport to ROS2 humble. backport-iron labels Nov 25, 2023
Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Merging #857 (30db92a) into master (b6841ea) will decrease coverage by 0.03%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #857      +/-   ##
==========================================
- Coverage   47.22%   47.19%   -0.03%     
==========================================
  Files          40       40              
  Lines        3636     3636              
  Branches     1716     1716              
==========================================
- Hits         1717     1716       -1     
+ Misses        735      734       -1     
- Partials     1184     1186       +2     
Flag Coverage Δ
unittests 47.19% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

Minor comments. The rest looks good to me. 👏

@christophfroehlich
Copy link
Contributor Author

christophfroehlich commented Nov 25, 2023

Minor comments. The rest looks good to me. 👏

you are right, but the configure() method calls the lifecycle node transition, not the controller_interface callback. But I use the returned state now instead of calling get_state() again.

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

LGTM

@bmagyar bmagyar merged commit fcc0847 into ros-controls:master Nov 30, 2023
13 of 14 checks passed
mergify bot pushed a commit that referenced this pull request Nov 30, 2023
(cherry picked from commit fcc0847)

# Conflicts:
#	joint_trajectory_controller/test/test_trajectory_controller.cpp
#	joint_trajectory_controller/test/test_trajectory_controller_utils.hpp
mergify bot pushed a commit that referenced this pull request Nov 30, 2023
(cherry picked from commit fcc0847)

# Conflicts:
#	joint_trajectory_controller/test/test_trajectory_controller_utils.hpp
@christophfroehlich christophfroehlich deleted the jtc/parameter_validators branch November 30, 2023 20:14
christophfroehlich added a commit to christophfroehlich/ros2_controllers that referenced this pull request Nov 30, 2023
bmagyar added a commit that referenced this pull request Dec 1, 2023
* [JTC] Activate checks for parameter validation (#857)

(cherry picked from commit fcc0847)

# Conflicts:
#	joint_trajectory_controller/test/test_trajectory_controller_utils.hpp

* fix conflict

* Fix Mergify/bp/iron/pr 857 (#874)

* Revert "fix conflict"

This reverts commit c0aaabf.

* Fix merge conflict

---------

Co-authored-by: Christoph Fröhlich <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
christophfroehlich added a commit to christophfroehlich/ros2_controllers that referenced this pull request Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintainers only! Label triggers PR backport to ROS2 humble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants