RCL requires not only adding individuals, but also working with the properties of the individuals. You can get all the available methods from this small example.
- 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_2" );
ros::NodeHandle nh;
armor.
Init(
"/root/ontologies/my_super_ontology.owl" );
armor.
AddIndiv(
"SmartHypothesis",
"HYPOTHESIS" );
std::vector<std::string> values = GetValuedOfIndiv( "where", "SmartHypothesis" );
return 0;
}
- 002 - Working with properties