/kb/remove_fact#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/kb/remove_fact Quick Facts

Category

Knowledge and reasoning

Message type

std_msgs/String

Direction

⬅️ you normally publish to this topic.

Statements published to this topic are removed from the knowledge base. The string must represent a <s, p, o> triple, with terms separated by a space. See KnowledgeCore documentation for details.

Quick snippets#

Publish data on the topic#
$ rostopic pub /kb/remove_fact std_msgs/String # press Tab twice to complete

How to use in your code#

Publish to the topic using Python#
 1import rospy
 2from std_msgs.msg import String
 3
 4if __name__ == "__main__":
 5    rospy.init_node("publisher")
 6
 7    pub = rospy.Publisher("/kb/remove_fact", String, queue_size=10)
 8    rate = rospy.Rate(10) # 10Hz
 9    msg = String()
10
11    while not rospy.is_shutdown():
12
13        # check http://docs.ros.org/en/api/std_msgs/html/msg/String.html
14        # for the msg structure
15        # msg.data = ...
16        pub.publish(msg)
17
18        rate.sleep()