RCL - RoboCLuedo  v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1

◆ ServiceAddHint()

bool ServiceAddHint ( robocluedo_msgs::AddHint::Request &  hint,
robocluedo_msgs::AddHint::Response &  success 
)

implementation of service SERVICE_INTERFACE_ADD_HINT

The service registers a property with a value referred to a hypothesis given its numeric ID. Here is the followed procedure:

  1. check if the hypothesis ID exists
  2. if it doesn't exist, create it
  3. check if the value exists
  4. if the value doesn't exist, create it
  5. set the property
  6. update the ontology
Parameters
hintthe hint to add to the ontology
successrequest accomplished or not
See also
AddHint.srv
Note
the DISJOINT on hypotheses is not performed; see ArmorCluedo::AddIndiv about the parameter 'makeDisjoint'

Definition at line 174 of file cluedo_armor_interface.cpp.

References robocluedo_main::hint, OUTLOG, SERVICE_INTERFACE_ADD_HINT, SS, and SSS.