YARP
Yet Another Robot Platform
ymm-types.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_MANAGER_YMMTYPES
7 #define YARP_MANAGER_YMMTYPES
8 
9 namespace yarp {
10 namespace manager {
11 
12 
13 #define WITH_GEOMETRY
14 /*
15 * TODO: check for the proper namespace
16 */
17 
18 typedef enum __NodeType {
28 // BEHAVIOR,
29 // GROUP,
34 
35 typedef enum __OS {
38  MAC,
39  OTHER
40 } OS;
41 
42 typedef struct __GyPoint {
43  double x;
44  double y;
46 
47 
48 /*
49 typedef enum __Carrier {
50  TCP,
51  UDP,
52  MCAST,
53  SHMEM,
54  TEXT,
55  UNKNOWN
56 } Carrier;
57 */
58 
59 
60 } // namespace yarp
61 } // namespace manager
62 
63 
64 
65 /*
66 * declaring debugging macros
67 */
68 #ifdef YMM_DEBUG
69  #include <iostream>
70  #include <cassert>
71  #define __ASSERT( _cond ) assert(_cond)
72  #define __CHECK_NULLPTR(_ptr) \
73  assert(_ptr); \
74  if( !_ptr ) return 0;
75 
76  #define __DEBUG_MSG(msg) std::cout<<"YMM: "<<msg<<endl;
77 
78 #else
79  #define __ASSERT( _cond )
80  #define __CHECK_NULLPTR(_ptr) \
81  if( !_ptr ) return 0;
82 
83  #define __DEBUG_MSG(msg)
84 
85 #endif //YMM_DEBUG
86 
87 
88 #endif // __YARP_MANAGER_YMMTYPES__
@ NODE_APPTEMPLATE
Definition: ymm-types.h:31
enum yarp::manager::__NodeType NodeType
struct yarp::manager::__GyPoint GyPoint
enum yarp::manager::__OS OS
The main, catch-all namespace for YARP.
Definition: dirs.h:16