Ejemplo n.º 1
0
def ask_category(category):
    if TEST:
        return idx2obj(1,rospy.get_param('/robocup_params/it_category/'+category.replace("/gpsr","")))
    print "category: " + category
    ad = askCategorySM(GRAMMAR_NAME = category)
    out = ad.execute()
    obj = ad.userdata._data['object_name']
    print "EL OBJ ES AKET!!!!!!!!!!!!!!!!!!!!!!!!!!!ask_category!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"+obj
    return obj   #--------------'''
Ejemplo n.º 2
0
def ask_category(category):
    if TEST:
        return idx2obj(
            1,
            rospy.get_param('/robocup_params/it_category/' +
                            category.replace("/gpsr", "")))
    print "category: " + category
    ad = askCategorySM(GRAMMAR_NAME=category)
    out = ad.execute()
    obj = ad.userdata._data['object_name']
    print "EL OBJ ES AKET!!!!!!!!!!!!!!!!!!!!!!!!!!!ask_category!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + obj
    return obj  #--------------'''
Ejemplo n.º 3
0
def ask_category(category):
    if TEST:
        if category == "drink":
            return 'coke'
        if category == "food":
            return 'cookies'
        if category == "snack":
            return 'chocolate'
        if category == "cleaning":
            return 'deodorant'
        if category == "kitchenware":
            return 'spoon'
    ad = askCategorySM(GRAMMAR_NAME = category)
    out = ad.execute()
    obj = ad.userdata._data['object_name']
    #ob = obj2idx(ad.userdata.object_name, 'ITEMS')
    print "EL OBJ ES AKET!!!!!!!!!!!!!!!!!!!!!!!!!!!ask_category!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"+obj
    return obj   #--------------'''
Ejemplo n.º 4
0
def ask_category(category):
    if TEST:
        if category == "drink":
            return 'coke'
        if category == "food":
            return 'cookies'
        if category == "snack":
            return 'chocolate'
        if category == "cleaning":
            return 'deodorant'
        if category == "kitchenware":
            return 'spoon'
    ad = askCategorySM(GRAMMAR_NAME=category)
    out = ad.execute()
    obj = ad.userdata._data['object_name']
    #ob = obj2idx(ad.userdata.object_name, 'ITEMS')
    print "EL OBJ ES AKET!!!!!!!!!!!!!!!!!!!!!!!!!!!ask_category!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + obj
    return obj  #--------------'''