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