In this example I'm going to show how the combination of the two classes ArmorTools and ArmorCluedo structure the reasoning process, which is at the base of how RCL works.
- Warning
- this code was written only for your understanding. Probably it won't compile.
#include "ros/ros.h"
#include "armor_tools_armor_cluedo.h"
#include "armor_msgs/ArmorDirective.h"
#include "armor_msgs/ArmorDirectiveReq.h"
#include "armor_msgs/ArmorDirectiveRes.h"
#include <iostream>
#include <string>
int main(
int argc,
char* argv[] )
{
ros::init( argc, argv, "example_armor_cluedo_3" );
ros::NodeHandle nh;
armor.
Init(
"/root/ontologies/my_super_ontology.owl" );
armor.
AddIndiv(
"SmartHypothesis",
"HYPOTHESIS" );
std::vector<std::string> complete_hypotheses = FindCompleteHypotheses( );
std::vector<std::string> inconsistent_hypotheses = FindCompleteHypotheses( );
armor.
AddIndiv(
"AnotherSmartHypothesis",
"HYPOTHESIS" );
return 0;
}
- 003 - Reasoning Workflow