Пример #1
0
 def obj_request_cb(userdata, request):
     req = ObjectTranslatorRequest()
     req.objname = userdata.object_name
     print "Asking coord_translator for " + req.objname
     return req
Пример #2
0
 def obj_request_cb(self, obj_name):
     req = ObjectTranslatorRequest()
     req.objname = obj_name
     return req
 def loc_request_cb(userdata, request):
     req = ObjectTranslatorRequest()
     req.objname = userdata.object_to_search_for
     rospy.loginfo( "Asking coord_translator for " + req.objname )
     return req
 def loc_request_cb(userdata, request):
     req = ObjectTranslatorRequest()
     req.objname = userdata.pose_object.object_list[0].name if input_nobj != self.ONE_OBJECT else userdata.pose_object.name
     print "Asking coord_translator for " + req.objname
     return req