feat(api): add optional user_grip_force param to LabwareMovementHandl… #17524
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.
…er.move_labware_with_gripper
The user_grip_force parameter allows the grip force to be set based off a user-specified parameter, instead of the default value for the labware.
Overview
This pull request is not complete--I'm opening it because this is a feature I'd like to have, and I want to start a discussion to see how feasible it would be before I get too far in the weeds with implementing it.
I would like to be able to manually specify the gripping force the gripper uses when moving labware. I'm not too familiar with the codebase, but it looks like the core of this change would be to add a
user_grip_force
parameter to theLabwareMovementHandler.move_labware_with_gripper
function, so I've gone ahead and done that.Test Plan and Hands on Testing
Because this is just an initial idea, I have not yet tested this change.
Changelog
user_grip_force parameter to LabwareMovementHandler.move_labware_with_gripper
Review requests
LabwareMovementHandler
class is translated into theProtocolContext.move_labware
function in the Python API, so I'd appreciate some pointers on how to propagate the feature up to that level.gripForce
parameter for the labware definitions in opentrons/tree/edge/shared-data/labware/definitions/, the highest value I saw was 21 N, so I guessed and set a limit of 25 N in my code. If you have an official value for that limit, that would be good to know.Risk assessment
For users who don't use this new parameter, this feature would not change anything, because the default is just to execute the command in the way it's currently done.
The user-specified grip force needs to be limited from being set to too high of a value. I have included a structure for such a limitation into my code.