Example #1
0
 def __init__(self, parent, gui, title):
     QWidget.__init__(self)
     self.gui = gui
     self.grasp = None
     self.title = QLabel()
     self.title.setText(title)
     self.draw_functions = draw_functions.DrawFunctions('grasp_markers')
     self.pickup_result = None
     self.listener = tf.TransformListener()
     self.grasp_display_publisher = rospy.Publisher("/grasp_display", Grasp)
     self.pickupservice = Execution()
Example #2
0
    def __init__(self):
        self.draw_functions = draw_functions.DrawFunctions('grasp_markers')

        self.pickupservice = Execution()
        self.object = None
        self.object_name = None
        self.server = actionlib.SimpleActionServer('pick_object',
                                                   PickObjectAction,
                                                   self.execute, False)
        self.server.start()
        loginfo("Step actionlib servers: pick server ready")
Example #3
0
    def __init__(self):
        self.draw_functions = draw_functions.DrawFunctions('grasp_markers')
        #We're creating another Execution object here (there's another one in pick_server.py)
        #We need to make sure that they don't interfere with each other
        #(Execution doesn't provide any service, so it shouldn't be a problem)
        self.pickupservice = Execution()
        self.listener = self.pickupservice.listener

        self.server = actionlib.SimpleActionServer('place_object',
                                                   PlaceObjectAction,
                                                   self.execute, False)
        self.server.start()

        rospy.loginfo("Step actionlib servers: place server ready")