![]() |
RCL - RoboCLuedo
v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1
|
bool ArmorCluedo::AddIndiv | ( | std::string | indivname, |
std::string | classname, | ||
bool | makeDisjoint = true |
||
) |
add an individual to the ontology
In simple words, this function adds the individual to the database.
Due to the need of the command "DISJOINT" in order to make the reasoner able to classify the hypotheses, and due to an issue with the command "DISJOINT IND CLASS", this function works in a more complex way. Here is how it works:
Since in RCL, the hypotheses are the only individuals with properties, there's no need to DISJOINT them. Hence, that last option can be useful to reduce the complexity of the method: if makeDisjoint is set to false, the function doesn't perform the last step. The element is tracked anyway.
indivname | the individual to add |
classname | the class of the individual to add |
makeDisjoint | perform disjoint or not? |
Definition at line 53 of file armor_cluedo.cpp.
References ArmorTools::SendCommand().