/kb/lookup
#
Caution
This documentation page has been auto-generated.
It may be missing some details.
/kb/lookup
Quick Facts
- Category
- Message type
knowledge_core/Lookup
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#
$ rosservice call /kb/lookup knowledge_core/Lookup
# (tip: press Tab to complete the message prototype)
#!/usr/bin/env python
import rospy
from knowledge_core.srv import *
if __name__ == "__main__":
rospy.wait_for_service("/kb/lookup")
try:
proxy = rospy.ServiceProxy("/kb/lookup", Lookup)
response = proxy(args...) # check the knowledge_core/Lookup message type for the expected arguments
rospy.loginfo(response)
except rospy.ServiceException as e:
rospy.logerror("Service call failed: %s" % e)