YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
9namespace yarp::manager {
10
11
12#define WITH_GEOMETRY
13/*
14* TODO: check for the proper namespace
15*/
16
33
34typedef enum __OS {
38 OTHER
40
41typedef struct __GyPoint {
42 double x;
43 double y;
45
46
47/*
48typedef enum __Carrier {
49 TCP,
50 UDP,
51 MCAST,
52 SHMEM,
53 TEXT,
54 UNKNOWN
55} Carrier;
56*/
57
58
59} // namespace yarp::manager
60
61
62/*
63* declaring debugging macros
64*/
65#ifdef YMM_DEBUG
66 #include <iostream>
67 #include <cassert>
68 #define __ASSERT( _cond ) assert(_cond)
69 #define __CHECK_NULLPTR(_ptr) \
70 assert(_ptr); \
71 if( !_ptr ) return 0;
72
73 #define __DEBUG_MSG(msg) std::cout<<"YMM: "<<msg<<endl;
74
75#else
76 #define __ASSERT( _cond )
77 #define __CHECK_NULLPTR(_ptr) \
78 if( !_ptr ) return 0;
79
80 #define __DEBUG_MSG(msg)
81
82#endif //YMM_DEBUG
83
84
85#endif // __YARP_MANAGER_YMMTYPES__
enum yarp::manager::__NodeType NodeType
struct yarp::manager::__GyPoint GyPoint
enum yarp::manager::__OS OS