forked from augcog/OpenARK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVersion.h.in
68 lines (59 loc) · 2.04 KB
/
Version.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
@_AZURE_KINECT_SDK_@#define AZURE_KINECT_ENABLED
@_AZURE_KINECT_SDK_@#define OPENARK_CAMERA_TYPE "azurekinect"
@_RSSDK2_@#define RSSDK2_ENABLED
@_RSSDK2_@#define OPENARK_CAMERA_TYPE "realsense"
@_RSSDK_@#define RSSDK_ENABLED
@_RSSDK_@#define OPENARK_CAMERA_TYPE "sr300"
@_PMDSDK_@#define PMDSDK_ENABLED
@_PMDSDK_@#define OPENARK_CAMERA_TYPE "pmd"
#define OPENARK_VERSION_MAJOR @OpenARK_VERSION_MAJOR@
#define OPENARK_VERSION_MINOR @OpenARK_VERSION_MINOR@
#define OPENARK_VERSION_PATCH @OpenARK_VERSION_PATCH@
// Uncomment to enable debug code
@_DEBUG_@#define DEBUG
// Constants
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef PI
#define PI 3.14159265358979323846
#endif
// Custom assertion statement that prints out a message
#if !defined(NDEBUG) || defined(DEBUG)
# define ARK_ASSERT(condition, message) \
do { \
if (!(condition)) { \
std::cerr << "OpenARK assertion '" << (#condition) << "' failed in " << \
__FILE__ << " at line " << __LINE__ << ": " << message << "\n"; \
std::terminate(); \
} \
} while (false)
#else
// disable assert if not debugging
# define ARK_ASSERT(condition, message) do { } while (false)
#endif
// Necessary for typedefs
#include <opencv2/core/types.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <vector>
// OpenARK namespace
namespace ark {
// OpenARK version number (modify in CMakeLists.txt)
static const char * VERSION = "@OpenARK_VERSION_MAJOR@.@OpenARK_VERSION_MINOR@.@OpenARK_VERSION_PATCH@";
// Typedefs for common types
typedef cv::Point Point;
typedef cv::Point2i Point2i;
typedef cv::Point2f Point2f;
typedef cv::Point2d Point2d;
typedef cv::Vec2f Vec2f;
typedef cv::Vec2d Vec2d;
typedef cv::Vec2i Vec2i;
typedef cv::Vec3b Vec3b;
typedef cv::Vec3f Vec3f;
typedef cv::Vec3d Vec3d;
typedef cv::Vec3i Vec3i;
// generic smart pointer shorthands
typedef std::shared_ptr<std::vector<Point2i> > VecP2iPtr;
typedef std::shared_ptr<std::vector<Vec3f> > VecV3fPtr;
}