rospy.init_node('OpenCog_Perception') spacetime = SpaceTimeAndAtomSpace() full_path = os.path.realpath(__file__) config_file_name = os.path.dirname(full_path) + "/opencog_python_eval.conf" print config_file_name # import GSN/GPN schema initialize_opencog(spacetime.get_atomspace(), config_file_name) set_type_ctor_atomspace(spacetime.get_atomspace()) pm = PerceptionManager(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ag = ActionGenerator(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ac = AttentionController(spacetime.get_atomspace()) gn = GroundedKnowledge(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) time_step = 1 print "\nAtomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_block_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_item_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_entity_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_category_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_goal_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace())
config_file_name = os.path.dirname(full_path) + "/opencog_python_eval.conf" print config_file_name # import GSN/GPN schema initialize_opencog(spacetime.get_atomspace(), config_file_name) set_type_ctor_atomspace(spacetime.get_atomspace()) pm = PerceptionManager(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ag = ActionGenerator(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ac = AttentionController(spacetime.get_atomspace()) gn = GroundedKnowledge(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) time_step = 1 print "\nAtomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_block_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_item_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_entity_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_category_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) while not rospy.is_shutdown():
config_file_name = os.path.dirname(full_path) + "/opencog_python_eval.conf" print config_file_name # import GSN/GPN schema initialize_opencog(spacetime.get_atomspace(), config_file_name) set_type_ctor_atomspace(spacetime.get_atomspace()) pm = PerceptionManager(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ag = ActionGenerator(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) ac = AttentionController(spacetime.get_atomspace()) gn = GroundedKnowledge(spacetime.get_atomspace(), spacetime.get_space_server(), spacetime.get_time_server()) time_step = 1 print "\nAtomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_block_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_item_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_entity_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_category_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace()) gn.load_goal_knowledge(1.0) print "Atomspace contains %s atoms" % len(spacetime.get_atomspace())