 |
RCL - RoboCLuedo
v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1
|
Go to the documentation of this file.
18 #include "armor_tools_armor_cluedo.h"
19 #include "armor_msgs/ArmorDirective.h"
20 #include "armor_msgs/ArmorDirectiveReq.h"
21 #include "armor_msgs/ArmorDirectiveRes.h"
26 int main(
int argc,
char* argv[] )
28 ros::init( argc, argv,
"example_armor_cluedo_1" );
37 armor.
Init(
"/root/ontologies/my_super_ontology.owl" );
45 armor.
AddIndiv(
"Broccoli",
"WEAPON" );
46 armor.
AddIndiv(
"Stadium",
"PLACE" );
47 armor.
AddIndiv(
"SmartHypothesis",
"HYPOTHESIS" );
57 std::vector<std::string> classes_of_john = armor.
GetClassOfIndiv(
"John" );
60 std::vector<std::string> indiv_of_class_weapon = armor.
GetIndivOfClass(
"WEAPON" );
63 if( armor.
ExistsIndiv(
"Tower" ) ==
false ) std::cout <<
"'Tower' not defined." << std::endl;
64 if( armor.
ExistsIndiv(
"Stadium" ) ==
true ) std::cout <<
"'Stadium' exists!" << std::endl;
bool AddIndiv(std::string indivname, std::string classname, bool makeDisjoint=true)
add an individual to the ontology
bool Init(std::string ontologyPath)
initizalize the interface
std::vector< std::string > GetIndivOfClass(std::string classname)
find the individuals belonging to a class
bool UpdateOntology()
send the command REASON
int main(int argc, char *argv[])
std::vector< std::string > GetClassOfIndiv(std::string indivname, bool deep)
get the class of a given individual
additional utilities for aRMOR
bool ExistsIndiv(std::string indivname)
check if an individual exists
A minimal C++ client for aRMOR.