Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SemRoCo/giskardpy
Browse files Browse the repository at this point in the history
  • Loading branch information
ichumuh committed Jun 21, 2022
2 parents bee6e22 + c401699 commit b28c52a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/giskardpy/python_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,30 @@ def set_pull_door_goal(self, tip_link, object_name_prefix, object_link_name, ang
weight=weight
)

def set_open_drawer_goal(self, tip_link, object_name_prefix, object_link_name, distance_goal,
weight=WEIGHT_ABOVE_CA):
"""
:type tip_link: str
:param tip_link: tip of manipulator (gripper) which is used
:type object_name_prefix: object name link prefix
:param object_name_prefix: string
:type object_link_name str
:param object_link_name name of the object link name
:type object_link_name str
:param object_link_name knob to grasp
:type distance_goal: float
:param distance_goal: how far to open
:type weight float
:param weight Default = WEIGHT_ABOVE_CA
"""
self.set_json_goal(u'OpenDrawer',
tip_link=tip_link,
object_name=object_name_prefix,
object_link_name=object_link_name,
distance_goal=distance_goal,
weight=weight
)

def update_god_map(self, updates):
"""
don't use, it's only for hacks :)
Expand Down

0 comments on commit b28c52a

Please sign in to comment.