iCub-main
template_buttons.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3  * Author: Valentina Gaggero
4  * email: valentina.gaggero@iit.it
5  * website: www.robotcub.org
6  * Permission is granted to copy, distribute, and/or modify this program
7  * under the terms of the GNU General Public License, version 2 or any
8  * later version published by the Free Software Foundation.
9  *
10  * A copy of the license can be found at
11  * http://www.robotcub.org/icub/license/gpl.txt
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16  * Public License for more details
17 */
18 
19 
20 // - include guard ----------------------------------------------------------------------------------------------------
21 #ifndef _TEMPLATE_BUTTONS_H_
22 #define _TEMPLATE_BUTTONS_H_
23 
24 
25 
38 // - external dependencies --------------------------------------------------------------------------------------------
39 
40 #include "stdint.h"
41 #include "stdlib.h"
42 #include "stdio.h"
43 #include <string>
44 #include <signal.h>
45 #include <iostream>
46 
47 using namespace std;
48 
49 // Ace stuff
50 #include <ace/ACE.h>
51 #include "ace/SOCK_Dgram.h"
52 #include "ace/Addr.h"
53 #include "ace/Thread.h"
54 #include "ace/Logging_Strategy.h"
55 
56 
57 // - public #define --------------------------------------------------------------------------------------------------
58 
59 
60 
61 // - declaration of public user-defined types -------------------------------------------------------------------------
62 
63 
64 // - declaration of extern public variables, ... but better using use _get/_set instead -------------------------------
65 // empty-section
66 
67 
68 // - declaration of extern public functions ---------------------------------------------------------------------------
69 void commands(void);
70 
71 uint32_t callback_button_0(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
72 uint32_t callback_button_1(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
73 uint32_t callback_button_2(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
74 uint32_t callback_button_3(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
75 uint32_t callback_button_4(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
76 uint32_t callback_button_5(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
77 uint32_t callback_button_6(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
78 uint32_t callback_button_7(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
79 uint32_t callback_button_8(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
80 uint32_t callback_button_9(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
81 uint32_t callback_button_10(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr);
88 #endif // include-guard
89 
90 
91 // - end-of-file (leave a blank line after)----------------------------------------------------------------------------
92 
callback_button_10
uint32_t callback_button_10(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:345
callback_button_9
uint32_t callback_button_9(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:339
callback_button_8
uint32_t callback_button_8(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:334
callback_button_2
uint32_t callback_button_2(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:234
callback_button_3
uint32_t callback_button_3(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:258
commands
void commands(void)
Definition: diagnostics_buttons.cpp:85
callback_button_0
uint32_t callback_button_0(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:141
callback_button_1
uint32_t callback_button_1(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:209
callback_button_6
uint32_t callback_button_6(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:324
callback_button_4
uint32_t callback_button_4(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:304
callback_button_7
uint32_t callback_button_7(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:329
callback_button_5
uint32_t callback_button_5(uint8_t *payload_ptr, uint32_t payload_size, ACE_INET_Addr *addr)
Definition: diagnostics_buttons.cpp:319