feat(robotiq_driver): expose object detection and effort as state interfaces - #39
Open
ebarnett3 wants to merge 1 commit into
Open
feat(robotiq_driver): expose object detection and effort as state interfaces#39ebarnett3 wants to merge 1 commit into
ebarnett3 wants to merge 1 commit into
Conversation
…erfaces The hardware interface exported position and velocity only, so nothing downstream could tell a caught part from a missed one, or judge a grip. Both values already arrive in the status block the SDK exchanges every cycle. Export effort from gCU and object_status from gOBJ. Effort is read back through the same full scale the rFR command is written against, so the effort reported and the effort requested share a scale; it stays a motor-current proxy, not a measurement of the grip. object_status carries gOBJ unchanged — 0 moving, 1 held while opening, 2 held while closing, 3 at the requested position — since a remapping would only cost consumers the manual's vocabulary. on_init no longer demands exactly two state interfaces. A description may now declare any of the four, and is rejected only for naming a fifth the hardware cannot answer for. Measured on a 2F-85 over a reactivation sweep: object_status ran 3 -> 0 -> 3, effort ran 0 to 92.16 N in steps of 0.9216 N, which is the 235 N full scale over the 255 counts of the register. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Closes #26.
The hardware interface exported position and velocity only, so nothing downstream could tell a caught part from a missed one, or judge a grip. Both values already arrive in the status block the SDK exchanges every cycle.
Export effort from gCU and object_status from gOBJ. Effort is read back through the same full scale the rFR command is written against, so the effort reported and the effort requested share a scale; it stays a motor-current proxy, not a measurement of the grip. object_status carries gOBJ unchanged — 0 moving, 1 held while opening, 2 held while closing, 3 at the requested position — since a remapping would only cost consumers the manual's vocabulary.
on_init no longer demands exactly two state interfaces. A description may now declare any of the four, and is rejected only for naming a fifth the hardware cannot answer for.
Measured on a 2F-85 over a reactivation sweep: object_status ran 3 -> 0 -> 3, effort ran 0 to 92.16 N in steps of 0.9216 N, which is the 235 N full scale over the 255 counts of the register.
Verification
robotiq_drivertests pass, including three new ones: two on the register/SI round trip and one pinning the exported state-interface names.use_fake_hardware:=true) still activates all three controllers with the two new interfaces declared.ros2 control list_hardware_interfacesreportseffortandobject_status, and both carry live values on/dynamic_joint_states.