-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (28 loc) · 759 Bytes
/
main.cpp
File metadata and controls
41 lines (28 loc) · 759 Bytes
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
#include "process/process.h"
#include "display_map/display_map.h"
#include <thread>
#include <vector>
int main()
{
// NS_PROCESS::Process process;
// process.init();
// process.process();
// 测试实时显示
NS_DISPLAY_MAP::display_map dpm;
vector<NS_DISPLAY_MAP::STR_GRIDS_FLAG> map_index_rand;
while (1)
{
//随机生成数据测试
for (size_t i = 0; i < 60; i++)
{
NS_DISPLAY_MAP::STR_GRIDS_FLAG point_obtle = {rand() % 100, rand() % 100, rand() % 5};
map_index_rand.push_back(point_obtle);
}
dpm.inital();
dpm.set_input_index(map_index_rand);
dpm.display();
waitKey(1000);
}
system("puase");
return 0;
}