Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef MACROS_H
00017 #define MACROS_H
00018
00019
00020
00021 #define EXPAND_PLAIN_OBS(STATE_NAME, STATE_TYPE) \
00022 EXPAND(STATE_NAME, STATE_TYPE, POINT_CLOUD, point_cloud) \
00023 else \
00024 EXPAND(STATE_NAME, STATE_TYPE, POINT_CLOUD_AND_STICK, point_cloud_and_stick) \
00025 else \
00026 EXPAND(STATE_NAME, STATE_TYPE, KINECT_CLOUD, kinect_cloud) \
00027 else \
00028 EXPAND(STATE_NAME, STATE_TYPE, TRICLOPS_CLOUD, triclops_cloud)
00029
00030 #define EXPAND_STICK_OBS(STATE_NAME, STATE_TYPE) \
00031 EXPAND(STATE_NAME, STATE_TYPE, POINT_CLOUD_AND_STICK, point_cloud_and_stick)
00032
00033 #define EXPAND_ALL_TRACKERS \
00034 EXPAND_PLAIN_OBS (ANGLE_STATE, angle_state) \
00035 else \
00036 EXPAND_PLAIN_OBS (PIK_STATE, pik_state) \
00037 else \
00038 EXPAND_PLAIN_OBS (PROJECTION_STATE, projection_state) \
00039 else \
00040 EXPAND_PLAIN_OBS (TANGENT_STATE, tangent_state) \
00041 else \
00042 EXPAND_PLAIN_OBS (BGSUB_STATE, bgsub_state) \
00043 else \
00044 EXPAND_PLAIN_OBS (ANGLE_BGSUB_STATE, angle_bgsub_state) \
00045 else \
00046 EXPAND_PLAIN_OBS (HULL_STATE, hull_state) \
00047 else \
00048 EXPAND_PLAIN_OBS (BROWNIAN_STATE, brownian_state) \
00049 else \
00050 EXPAND_STICK_OBS (PIK_STATE, pik_state) \
00051 else \
00052 EXPAND_STICK_OBS (KBK_STICK_STATE, KBK_stick_state) \
00053 else \
00054 EXPAND_STICK_OBS (STICK_STATE, stick_state) \
00055 else \
00056 EXPAND_STICK_OBS (STICK2D_STATE, stick2d_state) \
00057 else \
00058 EXPAND_STICK_OBS (PIK_STICK_STATE, pik_stick_state) \
00059 else \
00060 EXPAND_STICK_OBS (BROWNIAN_STICK_STATE, brownian_stick_state) \
00061 else \
00062 { \
00063 std::cerr << "Unsupported combination of state and observation type" \
00064 << std::endl; \
00065 }
00066
00067 #endif // MACROS_H
00068