Difference between revisions of "Architecture:Unique Event Codes"
From The BABEL Development Site
(→Normalized events for modules with the standardized "Common Sensory IF") |
(→Normalized events for modules with the standardized "Common Sensory IF") |
||
Line 12: | Line 12: | ||
− | == Normalized events for modules | + | == Normalized events for HAD modules == |
<center> | <center> | ||
Line 21: | Line 21: | ||
<tr><td>HAD_Laser_Hokuyo:0-3</td><td> 1205:1208 (on new laser scan) </td><td>-</td></tr> | <tr><td>HAD_Laser_Hokuyo:0-3</td><td> 1205:1208 (on new laser scan) </td><td>-</td></tr> | ||
<tr><td>...</td><td> </td><td> </td></tr> | <tr><td>...</td><td> </td><td> </td></tr> | ||
+ | </table> | ||
+ | </center> | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
+ | == Normalized events for modules with the standardized "Common Sensory IF" == | ||
+ | |||
+ | <center> | ||
+ | <table border="1"> | ||
+ | <tr><td>'''Module name'''</td> | ||
+ | <td>'''Code for onNewObservation events'''</td> | ||
+ | <td>'''Code for onFailure events'''</td></tr> | ||
<tr><td>BS_IncrementalEgoMotion</td><td>1000</td><td>1001</td></tr> | <tr><td>BS_IncrementalEgoMotion</td><td>1000</td><td>1001</td></tr> | ||
<tr><td>BS_RangeSensors </td><td>1005</td><td>1006</td></tr> | <tr><td>BS_RangeSensors </td><td>1005</td><td>1006</td></tr> |
Revision as of 09:58, 22 May 2009
Previous: Data Types | Next: RPD_Server |
Contents
Event Codes
Events are a form of asynchronous communications between modules allowed by the BABEL framework. Each event is represented by a symbolic name within each module, but nothing avoids two programmers to accidentally set the same value for different events.
To avoid such problems, please, use and update these tables to ensure that event IDs remain unique.
Normalized events for HAD modules
Module name | Code for onNewObservation events | Code for onFailure events |
HAD_Laser_Hokuyo:0-3 | 1205:1208 (on new laser scan) | - |
... |
Normalized events for modules with the standardized "Common Sensory IF"
Module name | Code for onNewObservation events | Code for onFailure events |
BS_IncrementalEgoMotion | 1000 | 1001 |
BS_RangeSensors | 1005 | 1006 |
BS_GPS | 1010 | 1011 |
BS_GasSensors | 1015 | 1016 |
BS_Vision | 1020 | 1021 |
BS_Batteries | 1025 | 1026 |
... | ||
SD_HumanRobotInterfaces | 1500 | 1501 |
SD_PeopleDetector | 1505 | 1506 |
SD_Local3DMap | 1510 | 1511 |
SD_VisualLandmarks3D | 1515 | 1516 |
SD_HumanRobotInterfaces | 1520 | 1521 |
... |
Normalized events for modules with standardized "Function Executor IF"
Note that an event is raised whether the action finished successfully or by an error: the module should be asked for the termination state after the reception of a termination event:
Module name | Code for onActionTermination events |
BA_Speech | 2000 |
FE_HumanRobotInterfaces | 2500 |
FE_ReactiveNavigation | 2505 |
FE_PathFollowing | 2510 |
FE_DoorOpening | 2515 |
... |
Special cases
Module name | Code for onActionTermination events |
DRV_SPEECH | 5000 |