DvsenseDriver  1.1.3
The SDK for dvsense products.
载入中...
搜索中...
未找到
TypeUtils.hpp
1#ifndef __TYPE_UTILS_HPP__
2#define __TYPE_UTILS_HPP__
3
4#include <cstdint>
5#include <string>
6#include <map>
7#include "DvsenseBase/Utils/Json/nlohmann/json.hpp"
8namespace dvsense
9{
10 typedef uint64_t TimeStamp;
12 {
13 TimeStamp start_timestamp; // Start timestamp of the raw file
14 TimeStamp end_timestamp; // End timestamp of the raw file
15 TimeStamp aps_start_timestamp; // End timestamp of the raw file
16 uint64_t max_events; // Maximum number of events in the raw file
17 uint16_t dvs_width;
18 uint16_t dvs_height;
19 std::string serial_number;
20 };
21
22 using json = nlohmann::json;
23 using ordered_json = nlohmann::ordered_json;
24
26 {
27 int rows;
28 int cols;
29 int type;
30 std::vector<double> data;
31 };
32
34 {
35 std::string camera_serial;
36 uint16_t dvs_cols;
37 uint16_t dvs_rows;
38 uint16_t aps_cols;
39 uint16_t aps_rows;
40
43
44 std::map<std::string, MatrixData> affine_matrix;
45
46 std::vector<double> rotation;
47 std::vector<double> translation;
48 };
49
50} // namespace dvsense
51
52#endif
定义 TypeUtils.hpp:9
TimeStamp start_timestamp
定义 TypeUtils.hpp:13
std::vector< double > data
定义 TypeUtils.hpp:30
MatrixData camera_matrix
定义 TypeUtils.hpp:41
std::vector< double > translation
定义 TypeUtils.hpp:47
nlohmann::json json
定义 TypeUtils.hpp:22
std::map< std::string, MatrixData > affine_matrix
定义 TypeUtils.hpp:44
std::string camera_serial
定义 TypeUtils.hpp:35
int rows
定义 TypeUtils.hpp:27
TimeStamp aps_start_timestamp
定义 TypeUtils.hpp:15
uint64_t max_events
定义 TypeUtils.hpp:16
std::vector< double > rotation
定义 TypeUtils.hpp:46
int cols
定义 TypeUtils.hpp:28
std::string serial_number
定义 TypeUtils.hpp:19
MatrixData dist_coeffs
定义 TypeUtils.hpp:42
nlohmann::ordered_json ordered_json
定义 TypeUtils.hpp:23
uint16_t dvs_height
定义 TypeUtils.hpp:18
uint16_t dvs_width
定义 TypeUtils.hpp:17
uint16_t dvs_rows
定义 TypeUtils.hpp:37
TimeStamp end_timestamp
定义 TypeUtils.hpp:14
uint16_t aps_cols
定义 TypeUtils.hpp:38
int type
定义 TypeUtils.hpp:29
uint16_t dvs_cols
定义 TypeUtils.hpp:36
uint16_t aps_rows
定义 TypeUtils.hpp:39
uint64_t TimeStamp
定义 TypeUtils.hpp:10
定义 TypeUtils.hpp:34
定义 TypeUtils.hpp:12
定义 TypeUtils.hpp:26