Skip to content

Commit

Permalink
Slashes need to be escaped in metadata but not in massproperties (?) …
Browse files Browse the repository at this point in the history
…(see #48 and onshape support ticket)
  • Loading branch information
Gregwar committed Mar 10, 2021
1 parent 0614664 commit 80522fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onshape_to_robot/onshape_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,6 @@ def invoke():

def part_mass_properties(self, did, mid, eid, partid, configuration = 'default'):
def invoke():
return self._api.request('get', '/api/parts/d/' + did + '/m/' + mid + '/e/' + eid + '/partid/'+escape_slash(partid)+'/massproperties', query={'configuration': configuration})
return self._api.request('get', '/api/parts/d/' + did + '/m/' + mid + '/e/' + eid + '/partid/'+partid+'/massproperties', query={'configuration': configuration})

return json.loads(self.cache_get('massproperties', (did, mid, eid, self.hash_partid(partid), configuration), invoke, True))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="onshape-to-robot",
version="0.3.9",
version="0.3.10",
author="Rhoban team",
author_email="[email protected]",
description="Converting OnShape assembly to robot definition (SDF or URDF) through OnShape API ",
Expand Down

0 comments on commit 80522fc

Please sign in to comment.