13.07.2015 Views

TESIS DOCTORAL - Robotics Lab - Universidad Carlos III de Madrid

TESIS DOCTORAL - Robotics Lab - Universidad Carlos III de Madrid

TESIS DOCTORAL - Robotics Lab - Universidad Carlos III de Madrid

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

152 Chapter 7. Implementing the <strong>de</strong>cision making systemLoad data aboutRFID objectsRFIDOBJECTSXML FILE[non RFID tag <strong>de</strong>tected][RFID tag <strong>de</strong>tected]Read data fromRFID tagShortTermMemory[new object Oj][it was recentlybeing <strong>de</strong>tected]event(DISCOVERED_RFID_OBJECT,Oj_id)CheckingdisappearingtimeoutsReset disappearingtimeoutUpdate the list ofrecently <strong>de</strong>tectedrfid objects[all timeouts > 0][timeout for object Oi is 0]event(DISAPPEARED_RFID_OBJECT,Oi_id}Update the list ofrecently <strong>de</strong>tectedrfid objectsFigure 7.11: Activity diagram of RFID discoverer skillThe skill implementing this action is called the Charge skill. The process for rechargingthe battery is shown in Figure 7.13. The first step is to <strong>de</strong>termine if the robot is alreadyplugged. If it is not, it approaches the docking station using the navigation system. Therobot knows several well-known positions and the location monitor skill (Section 7.4.1)is in charge of moving it to the front of the docking station. Once the robot is facing thedocking station, it has to accurately center its plug to the socket in the charger. This task isachieved by means of the laser telemeter which gives higher resolution than the geometricnavigation. Then, Maggie moves back until the plug fits into the socket. This is <strong>de</strong>tected bythe Docking Station Sensor skill (Section 7.4.3). In the last step the robot remains pluggeduntil its battery is totally recharged. Finally, the successful end of the action is pointed outby emitting the CHARGED event. In case an error occurs, an event, which indicates the typeof error, is sent.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!