Skip to content

fix(parallel_gripper): rename variables for consistency#2314

Merged
christophfroehlich merged 1 commit intoros-controls:masterfrom
AkshayArjun:fix/parallel-gripper-rename
Apr 17, 2026
Merged

fix(parallel_gripper): rename variables for consistency#2314
christophfroehlich merged 1 commit intoros-controls:masterfrom
AkshayArjun:fix/parallel-gripper-rename

Conversation

@AkshayArjun
Copy link
Copy Markdown
Contributor

Description

Rename internal variables in parallel_gripper_controller for consistency
and clarity.

Relates to #1229

Is this user-facing behavior change?

Did you use Generative AI?

Yes, Claude (Anthropic) was used to help understand the codebase and
discuss the changes. The actual code changes were made manually.

Additional Information

This is the first of multiple PRs addressing the issues raised in #1229.
Each issue will be addressed in a separate PR as suggested by the maintainer.

- joint_command_interface_ -> joint_position_command_interface_
- effort_interface_ -> joint_effort_command_interface_
- speed_interface_ -> joint_speed_command_interface_
- Commands::max_velocity_ -> Commands::velocity_cmd_
- Commands::max_effort_ -> Commands::effort_cmd_
Copy link
Copy Markdown
Member

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

As it is used now, it is basically always max_velocity and max_effort? But I'm also fine with the changes.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 21.05263% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.13%. Comparing base (799f93e) to head (141a0c2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...roller/parallel_gripper_action_controller_impl.hpp 21.05% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2314      +/-   ##
==========================================
- Coverage   85.14%   85.13%   -0.02%     
==========================================
  Files         154      154              
  Lines       15417    15417              
  Branches     1334     1334              
==========================================
- Hits        13127    13125       -2     
- Misses       1797     1800       +3     
+ Partials      493      492       -1     
Flag Coverage Δ
unittests 85.13% <21.05%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
...roller/parallel_gripper_action_controller_impl.hpp 25.24% <21.05%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AkshayArjun
Copy link
Copy Markdown
Contributor Author

As it is used now, it is basically always max_velocity and max_effort? But I'm also fine with the changes.

You're right that these hold the user provided maximum velocity and effort constraints. The rename was done purely for naming consistency (problem #4) within the Commands struct alongside position_cmd_, and to prepare for (problem #5) where these values will be clamped against params_.max_effort and params_.max_velocity.

@christophfroehlich
Copy link
Copy Markdown
Member

As it is used now, it is basically always max_velocity and max_effort? But I'm also fine with the changes.

You're right that these hold the user provided maximum velocity and effort constraints. The rename was done purely for naming consistency (problem #4) within the Commands struct alongside position_cmd_, and to prepare for (problem #5) where these values will be clamped against params_.max_effort and params_.max_velocity.

you are referencing to very old issues with #4 syntax ;)

@christophfroehlich christophfroehlich merged commit 5a74f29 into ros-controls:master Apr 17, 2026
16 of 19 checks passed
@christophfroehlich christophfroehlich added backport-jazzy Triggers PR backport to ROS 2 jazzy. backport-kilted Triggers PR backport to ROS 2 kilted. labels Apr 17, 2026
mergify Bot pushed a commit that referenced this pull request Apr 17, 2026
mergify Bot pushed a commit that referenced this pull request Apr 17, 2026
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-jazzy Triggers PR backport to ROS 2 jazzy. backport-kilted Triggers PR backport to ROS 2 kilted.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants