Skip to content

[JTC] Activate checks for parameter validation#857

Merged
bmagyar merged 4 commits intoros-controls:masterfrom
christophfroehlich:jtc/parameter_validators
Nov 30, 2023
Merged

[JTC] Activate checks for parameter validation#857
bmagyar merged 4 commits intoros-controls:masterfrom
christophfroehlich:jtc/parameter_validators

Conversation

@christophfroehlich
Copy link
Copy Markdown
Member

@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 Triggers PR backport to ROS 2 humble. backport-iron labels Nov 25, 2023
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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. 👏

Comment thread joint_trajectory_controller/test/test_trajectory_controller.cpp Outdated
Comment thread joint_trajectory_controller/test/test_trajectory_controller.cpp Outdated
Comment thread joint_trajectory_controller/test/test_trajectory_controller.cpp Outdated
@christophfroehlich
Copy link
Copy Markdown
Member 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
Copy Markdown
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
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
greencookie-afk pushed a commit to greencookie-afk/ros2_controllers that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-humble Triggers PR backport to ROS 2 humble.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants