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

[tricycle_controller] Use generate_parameter_library #957

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

christophfroehlich
Copy link
Contributor

@christophfroehlich christophfroehlich commented Dec 31, 2023

As per title.

  • use generate_parameter_library, remove not anymore needed checks and variables, rewrite tests
  • let the load_controller test use the yaml from the test file

I also updated the documentation a bit, see #850

This breaks ABI because of the class variable change, is this a bad idea to backport?

@christophfroehlich christophfroehlich added backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron. labels Dec 31, 2023
Copy link

codecov bot commented Dec 31, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (6623cdd) 47.81% compared to head (88b6c12) 48.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #957      +/-   ##
==========================================
+ Coverage   47.81%   48.47%   +0.66%     
==========================================
  Files          41       41              
  Lines        3871     3812      -59     
  Branches     1827     1771      -56     
==========================================
- Hits         1851     1848       -3     
+ Misses        751      749       -2     
+ Partials     1269     1215      -54     
Flag Coverage Δ
unittests 48.47% <21.21%> (+0.66%) ⬆️

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

Files Coverage Δ
...nclude/tricycle_controller/tricycle_controller.hpp 100.00% <ø> (ø)
tricycle_controller/src/tricycle_controller.cpp 38.73% <21.21%> (+5.78%) ⬆️

@@ -357,7 +291,7 @@ CallbackReturn TricycleController::on_configure(const rclcpp_lifecycle::State &
}

// initialize command subscriber
if (use_stamped_vel_)
if (params_.use_stamped_vel)
Copy link
Member

Choose a reason for hiding this comment

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

probably due to be removed soon too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in this PR or in a follow up?

Copy link
Member

Choose a reason for hiding this comment

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

as you wish

@bmagyar bmagyar merged commit 8d732f1 into ros-controls:master Jan 29, 2024
12 of 14 checks passed
mergify bot pushed a commit that referenced this pull request Jan 29, 2024
(cherry picked from commit 8d732f1)

# Conflicts:
#	tricycle_controller/src/tricycle_controller.cpp
#	tricycle_controller/test/test_tricycle_controller.cpp
mergify bot pushed a commit that referenced this pull request Jan 29, 2024
(cherry picked from commit 8d732f1)

# Conflicts:
#	tricycle_controller/test/test_tricycle_controller.cpp
christophfroehlich added a commit that referenced this pull request Mar 13, 2024
(cherry picked from commit 8d732f1)

# Conflicts:
#	tricycle_controller/src/tricycle_controller.cpp
#	tricycle_controller/test/test_tricycle_controller.cpp
christophfroehlich added a commit that referenced this pull request Mar 13, 2024
(cherry picked from commit 8d732f1)

# Conflicts:
#	tricycle_controller/test/test_tricycle_controller.cpp
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 maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants