/advanced_grasping/perception#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/advanced_grasping/perception Quick Facts

Category

Mobile manipulation

Message type

pal_bt_grasping_msgs/Perception

Look for an object and add it to the MoveIt! planning scene (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/perception/goal pal_bt_grasping_msgs/PerceptionActionGoal # 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/perception", pal_bt_grasping_msgs.msg.PerceptionAction)
    client.wait_for_server()

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

    client.send_goal(goal)
    client.wait_for_result()

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