-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.h
41 lines (32 loc) · 971 Bytes
/
defines.h
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
/**
* This header file contains many preprocessor defines and some fundamental types.
* Most of them do not change unless the physical model of HDL Lader changed.
* Adjustable parameters should be put in config.h file.
*
* Author: Zou Lu ([email protected])
* Date: 2015-9-1
*/
#ifndef DEFINES_H
#define DEFINES_H
//define some constant
#define ANGLE_NUM 36000 //divide the whole 360 degree to small pieces
#define LASER_NUM 64 //the total num of laser beam from the ladar is 64
//struct used to store raw hdl data
typedef struct
{
unsigned short distance; //corresponse to original 'dist'
unsigned short rotAngle; //corresponse to original 'rot'
unsigned char intensity; //corresponse to original 'i'
unsigned char beamId; //corresponse to original 'c'
}RawHdlPoint;
typedef struct{
int x;
int y;
int z;
}HdlPointXYZ;
typedef struct{
double x;
double y;
double eulr;
}Carpose;
#endif // DEFINES_H