Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add numPlaced in ManuallyPlacePackItems() #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions python/mujinplanningclient/binpickingplanningclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def SetCurrentLayoutDataSendOnObjectUpdateData(self, doUpdate, containername=Non
taskparameters.update(kwargs)
return self.ExecuteCommand(taskparameters, fireandforget=fireandforget)

def ManuallyPlacePackItem(self, packFormationComputationResult=None, inputPartIndex=None, placeLocationNames=None, placedTargetPrefix=None, dynamicGoalsGeneratorParameters=None, orderNumber=None, numLeftToPick=None, timeout=10, fireandforget=False):
def ManuallyPlacePackItem(self, packFormationComputationResult=None, inputPartIndex=None, placeLocationNames=None, placedTargetPrefix=None, dynamicGoalsGeneratorParameters=None, orderNumber=None, numLeftToPick=None, numPlaced=None, timeout=10, fireandforget=False):
"""Places an item according to the pack formation assuming the item is placed manually and updates robotbridge state

Args:
Expand All @@ -644,6 +644,7 @@ def ManuallyPlacePackItem(self, packFormationComputationResult=None, inputPartIn
dynamicGoalsGeneratorParameters:
orderNumber:
numLeftToPick:
numPlaced:
timeout (float, optional): Time in seconds after which the command is assumed to have failed. (Default: 10)
fireandforget (bool, optional): If True, does not wait for the command to finish and returns immediately. The command remains queued on the server. (Default: False)
"""
Expand All @@ -657,8 +658,8 @@ def ManuallyPlacePackItem(self, packFormationComputationResult=None, inputPartIn
taskparameters['orderNumber'] = orderNumber
if numLeftToPick is not None:
taskparameters['numLeftToPick'] = numLeftToPick
if numLeftToPick is not None:
taskparameters['numLeftToPick'] = numLeftToPick
if numPlaced is not None:
taskparameters['numPlaced'] = numPlaced
if placedTargetPrefix:
taskparameters['placedTargetPrefix'] = placedTargetPrefix
if dynamicGoalsGeneratorParameters is not None:
Expand Down