diff --git a/src/giskardpy/python_interface.py b/src/giskardpy/python_interface.py index 1946ca91a9..183a47cf14 100644 --- a/src/giskardpy/python_interface.py +++ b/src/giskardpy/python_interface.py @@ -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 :)