fix(parallel_gripper): rename variables for consistency#2314
Conversation
- 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_
christophfroehlich
left a comment
There was a problem hiding this comment.
As it is used now, it is basically always max_velocity and max_effort? But I'm also fine with the changes.
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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 |
5a74f29
into
ros-controls:master
(cherry picked from commit 5a74f29)
(cherry picked from commit 5a74f29)
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.