Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
DataCache
CommonDefine.h
Go to the documentation of this file.
1
#pragma once
2
3
//返回值
4
enum
RET_CODE
5
{
6
RET_ERROR
= -1,
//错误,入参为空?
7
RET_SUCCESS
//成功
8
};
9
10
//初始化报文结构
11
/*******************************************
12
* Type: 1字节 报文类型
13
* CNum: 1字节 摄像头数量
14
* ******************************************/
15
/*
16
0 1 2
17
+-------+-------+
18
| Type |CNum|
19
+-------+-------+
20
*/
21
22
//初始化报文结构体
23
typedef
struct
24
{
25
int8_t
m_iType
;
//报文类型
26
int8_t
m_iCamNum
;
//有几个摄像头
27
}
InitMsg
;
28
//数据传输数据结构
29
/*******************************************
30
* Type: 1字节 报文类型
31
* CNUM: 1字节 摄像头数量
32
* ******************************************/
33
/*
34
0 1 2 3 4
35
+-------+-------+-------+-------+
36
| Type |CNum|
37
+-------+-------+-------+-------+
38
*/
39
typedef
struct
40
{
41
int8_t
m_iType
;
//报文类型
42
int8_t
m_i
;
43
44
}
DataTransMsg
;
RET_CODE
RET_CODE
Definition:
CommonDefine.h:4
RET_ERROR
Definition:
CommonDefine.h:6
DataTransMsg
Definition:
CommonDefine.h:39
DataTransMsg::m_iType
int8_t m_iType
Definition:
CommonDefine.h:41
InitMsg::m_iType
int8_t m_iType
Definition:
CommonDefine.h:25
InitMsg
Definition:
CommonDefine.h:23
DataTransMsg::m_i
int8_t m_i
Definition:
CommonDefine.h:42
RET_SUCCESS
Definition:
CommonDefine.h:7
InitMsg::m_iCamNum
int8_t m_iCamNum
Definition:
CommonDefine.h:26
orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47