/advanced_grasping/grasp#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/advanced_grasping/grasp Quick Facts

Category

Mobile manipulation

Message type

pal_bt_grasping_msgs/GraspObject

Instructs the robot to grasp an object (part of the Advanced Grasping pipeline).

See Overview of the Advanced Grasping pipeline for details and tutorials.

Quick snippets#

Send a goal from the command-line#
$ rostopic pub /advanced_grasping/grasp/goal pal_bt_grasping_msgs/GraspObjectActionGoal # press Tab to complete the message prototype

How to use in your code#

Call the action from a Python script#
#!/usr/bin/env python

import rospy
import actionlib
from pal_bt_grasping_msgs.msg import *


if __name__ == "__main__":

    client = actionlib.SimpleActionClient("/advanced_grasping/grasp", pal_bt_grasping_msgs.msg.GraspObjectAction)
    client.wait_for_server()

    # check the pal_bt_grasping_msgs/GraspObjectGoal message
    # definition for the possible goal parameters
    goal = pal_bt_grasping_msgs.msg.GraspObjectGoal(param1=..., param2=...)

    client.send_goal(goal)
    client.wait_for_result()

    rospy.loginfo("Action returned: %s" % client.get_result())