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__
yarp::manager::OUTPUTD
@ OUTPUTD
Definition: ymm-types.h:24
yarp::manager::__OS
__OS
Definition: ymm-types.h:38
yarp::manager::__GyPoint
Definition: ymm-types.h:45
yarp::manager::WINDOWS
@ WINDOWS
Definition: ymm-types.h:40
yarp::manager::RESOURCE
@ RESOURCE
Definition: ymm-types.h:29
yarp::manager::EVENT_PORT
@ EVENT_PORT
Definition: ymm-types.h:27
yarp::manager::__GyPoint::y
double y
Definition: ymm-types.h:47
yarp::manager::MODULE
@ MODULE
Definition: ymm-types.h:22
yarp::manager::OS
enum yarp::manager::__OS OS
yarp::manager::GyPoint
struct yarp::manager::__GyPoint GyPoint
yarp::manager::NODE_OTHER
@ NODE_OTHER
Definition: ymm-types.h:35
yarp::manager::NODE_FILENAME
@ NODE_FILENAME
Definition: ymm-types.h:33
yarp::manager::LINUX
@ LINUX
Definition: ymm-types.h:39
yarp::manager::SERVICE_PORT
@ SERVICE_PORT
Definition: ymm-types.h:26
yarp::manager::__NodeType
__NodeType
Definition: ymm-types.h:21
yarp::manager::APPLICATION
@ APPLICATION
Definition: ymm-types.h:28
yarp::manager::NODE_APPTEMPLATE
@ NODE_APPTEMPLATE
Definition: ymm-types.h:34
yarp::manager::INOUTD
@ INOUTD
Definition: ymm-types.h:30
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::manager::__GyPoint::x
double x
Definition: ymm-types.h:46
yarp::manager::INPUTD
@ INPUTD
Definition: ymm-types.h:23
yarp::manager::STREAM_PORT
@ STREAM_PORT
Definition: ymm-types.h:25
yarp::manager::OTHER
@ OTHER
Definition: ymm-types.h:42
yarp::manager::MAC
@ MAC
Definition: ymm-types.h:41
yarp::manager::NodeType
enum yarp::manager::__NodeType NodeType