This documentation page has been auto-generated.

It may be missing some details.

/kb/lookup Quick Facts


Knowledge and reasoning

Message type


Search the knowledge base for a term matching a string. The search is performed both on terms’ names and on label.

Returns the list of found terms, alongside with their type (one of instance, class, datatype_property, object_property, literal).

See KnowledgeCore documentation for details.

Quick snippets#

Call the service from command-line#
$ rosservice call /kb/lookup knowledge_core/Lookup
# (tip: press Tab to complete the message prototype)
Call the service from a Python script#
#!/usr/bin/env python

import rospy
from knowledge_core.srv import *

if __name__ == "__main__":


        proxy = rospy.ServiceProxy("/kb/lookup", Lookup)
        response = proxy(args...) # check the knowledge_core/Lookup message type for the expected arguments

    except rospy.ServiceException as e:
        rospy.logerror("Service call failed: %s" % e)