Добавлен алгоритм для задания позиций захвата
This commit is contained in:
parent
29cad491f5
commit
0c8767e3f5
3 changed files with 136 additions and 0 deletions
|
@ -183,11 +183,15 @@ def getLocalPartProps(obj):
|
|||
"label": obj.Label,
|
||||
"parent_label": obj_parent_label,
|
||||
"placement": placement2pose(old_placement),
|
||||
# "grip properties": { "grip open": obj.GripOpen, "grip depth": obj.GripDepth, "grip width": obj.GripWidth}
|
||||
# "boundingbox": boundingBox2list(obj.Shape.BoundBox),
|
||||
# "volume": obj.Shape.Volume*1e-9,
|
||||
# "centerofmass": vector2list(obj.Shape.CenterOfMass),
|
||||
# "principalproperties": principalProperties2dict(obj.Shape.PrincipalProperties)
|
||||
}
|
||||
if obj.GripOpen != None:
|
||||
partprops["grip properties"] = { "grip open": obj.GripOpen, "grip depth": obj.GripDepth, "grip width": obj.GripWidth}
|
||||
|
||||
# obj.Placement = old_placement
|
||||
return partprops
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue