Skip to content

Commit

Permalink
Merge pull request #41 from mujin/bump2.10.0
Browse files Browse the repository at this point in the history
Update graphclient 2.10.0
  • Loading branch information
ziyan committed Jun 25, 2024
2 parents 1673037 + c670587 commit d87c9b5
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.8.0 (2024-06-21)

### Changes

- Support `GetWebStackState`.

## 0.7.11 (2024-06-14)

### Changes
Expand Down
2 changes: 1 addition & 1 deletion python/mujinwebstackclient/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.7.11'
__version__ = '0.8.0'

# Do not forget to update CHANGELOG.md

56 changes: 55 additions & 1 deletion python/mujinwebstackclient/webstackgraphclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# DO NOT EDIT, THIS FILE WAS AUTO-GENERATED
# GENERATED BY: mujin_webstackclientpy_generategraphclient.py
# GENERATED AGAINST: mujinwebstack/2.9.14+fc5d71d8cac090905a386ca503248dda7a4b0302
# GENERATED AGAINST: mujinwebstack/2.10.0+0cdb864bf9c743e90fd76f3184ae020b165398c0
#

from .webstackgraphclientutils import GraphClientBase
Expand Down Expand Up @@ -1183,6 +1183,20 @@ def GetVisionTaskModuleByVisionTaskType(self, visionTaskType, fields=None, timeo
]
return self._CallSimpleGraphAPI('query', operationName='GetVisionTaskModuleByVisionTaskType', parameterNameTypeValues=parameterNameTypeValues, returnType='VisionTaskModule', fields=fields, timeout=timeout)

def GetWebStackState(self, fields=None, timeout=None):
"""Get published component states of WebStack.
Args:
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
WebStackState: WebStackState contains published component states of WebStack.
"""
parameterNameTypeValues = [
]
return self._CallSimpleGraphAPI('query', operationName='GetWebStackState', parameterNameTypeValues=parameterNameTypeValues, returnType='WebStackState', fields=fields, timeout=timeout)

def IsAttachedSensorMoveable(self, attachedSensorName, bodyName, environmentId, fields=None, timeout=None):
"""Check and see if attached sensor is moveable on a robot
Expand Down Expand Up @@ -1307,6 +1321,25 @@ def ListConfigurations(self, options=None, resolveReferences=None, fields=None,
]
return self._CallSimpleGraphAPI('query', operationName='ListConfigurations', parameterNameTypeValues=parameterNameTypeValues, returnType='ListConfigurationsReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListConfigurationsEx(self, options=None, resolveReferences=None, fields=None, timeout=None):
"""List available configurations using aggregation options.
Args:
options (ListOptionsWithAggregationsInput, optional):
resolveReferences (bool, optional): Whether to operate on resolved configurations. Defaults to operate and return unresolved data.
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
ListConfigurationsExReturnValue:
"""
parameterNameTypeValues = [
('options', 'ListOptionsWithAggregationsInput', options),
('resolveReferences', 'Boolean', resolveReferences),
]
return self._CallSimpleGraphAPI('query', operationName='ListConfigurationsEx', parameterNameTypeValues=parameterNameTypeValues, returnType='ListConfigurationsExReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListConnectedBodies(self, bodyId, environmentId, options=None, resolveReferences=None, units=None, fields=None, timeout=None):
"""List connected bodies defined on a robot.
Expand Down Expand Up @@ -1404,6 +1437,27 @@ def ListEnvironments(self, options=None, resolveReferences=None, units=None, fie
]
return self._CallSimpleGraphAPI('query', operationName='ListEnvironments', parameterNameTypeValues=parameterNameTypeValues, returnType='ListEnvironmentsReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListEnvironmentsEx(self, options=None, resolveReferences=None, units=None, fields=None, timeout=None):
"""List environments with aggregations.
Args:
options (ListOptionsWithAggregationsInput, optional):
resolveReferences (bool, optional): Whether to operate on resolved bodies in the environment. Defaults to operate and return unresolved data.
units (UnitSelectionInput, optional): Optional unit selection.
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
ListEnvironmentsExReturnValue:
"""
parameterNameTypeValues = [
('options', 'ListOptionsWithAggregationsInput', options),
('resolveReferences', 'Boolean', resolveReferences),
('units', 'UnitSelectionInput', units),
]
return self._CallSimpleGraphAPI('query', operationName='ListEnvironmentsEx', parameterNameTypeValues=parameterNameTypeValues, returnType='ListEnvironmentsExReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListGeometries(self, bodyId, environmentId, linkId, options=None, resolveReferences=None, units=None, fields=None, timeout=None):
"""List geometries in a link.
Expand Down

0 comments on commit d87c9b5

Please sign in to comment.