msgs(gripper): trim unused state fields and action feedback#66
Open
ApatShe wants to merge 2 commits into
Open
Conversation
Addresses two PR review comments on gripper_guidance/src/gripper_reference_filter_ros.cpp: L145 (jorgenfj): "Does the gripper reference message need to be 6d if we ever only use the first two dims?" GripperReferenceFilter trimmed from 6 floats (roll, pinch, roll_dot, pinch_dot, roll_dotdot, pinch_dotdot) to 2 floats (roll, pinch). The filter genuinely computes derivatives but no downstream consumer (controller translator, sim bridge, CAN interface) reads anything beyond .roll and .pinch. GripperWaypoint changed from nested GripperReferenceFilter roll/pinch (only .roll.roll and .pinch.pinch were ever read; the five derivative fields per axis were always sent as 0 and never read) to flat float64 roll, float64 pinch. L258 (jorgenfj): "Should remove feedback from the action definition and just publish to topic if anyone is interested" GripperReferenceFilterWaypoint.action: feedback section emptied. The filter already publishes its smoothed reference on the topic output; mirroring it as action feedback was redundant.
Required by the open-loop gripper controller added in vortexntnu/vortex-gripper#10. The action accepts a velocity command and a fixed duration. The controller publishes that velocity on GripperStateVelocityCommand at a fixed rate for the specified duration, then stops and completes the goal. Intended as a feedback-free fallback when gripper state is not observable. Goal: float64 roll_velocity float64 pinch_velocity float64 duration_seconds uint8 mode (ROLL_AND_PINCH=0, ONLY_ROLL=1, ONLY_PINCH=2) Result: bool success Feedback: float64 elapsed_seconds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses two PR review comments on
gripper_guidance/src/gripper_reference_filter_ros.cpp:
(jorgenfj): "Does the gripper reference message need to be 6d if we
ever only use the first two dims?"
GripperReferenceFilter trimmed from 6 floats (roll, pinch, roll_dot,
pinch_dot, roll_dotdot, pinch_dotdot) to 2 floats (roll, pinch). The
filter genuinely computes derivatives but no downstream consumer
(controller translator, sim bridge, CAN interface) reads anything
beyond .roll and .pinch.
GripperWaypoint changed from nested GripperReferenceFilter roll/pinch
(only .roll.roll and .pinch.pinch were ever read; the five derivative
fields per axis were always sent as 0 and never read) to flat float64
roll, float64 pinch.
(jorgenfj): "Should remove feedback from the action definition
and just publish to topic if anyone is interested"
GripperReferenceFilterWaypoint.action: feedback section emptied. The
filter already publishes its smoothed reference on the topic output;
mirroring it as action feedback was redundant.