![]() |
RCL - RoboCLuedo
v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1
|
void hintCallback | ( | const std_msgs::EmptyConstPtr & | emptySignal | ) |
subscriber to SUBSCRIBER_HINT_SIGNAL and publisher of PUBLISHER_HINT
The arrival of a message means that the robot has entered in one room. The Oracle can decide if drop the hint or not: if the Oracle refuses the request, nothing is issued through the topic PUBLISHER_HINT. Otherwise, it takes from the list of hints mysterylist the last one, remove it from the list, and publishes it.
emptySignal | empty 'request' |
Definition at line 225 of file cluedo_oracle.cpp.