DvsenseDriver  1.1.4
The SDK for dvsense products.
Loading...
Searching...
No Matches
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
Definition TypeUtils.hpp:9
TimeStamp start_timestamp
Definition TypeUtils.hpp:13
std::vector< double > data
Definition TypeUtils.hpp:30
MatrixData camera_matrix
Definition TypeUtils.hpp:41
std::vector< double > translation
Definition TypeUtils.hpp:47
nlohmann::json json
Definition TypeUtils.hpp:22
std::map< std::string, MatrixData > affine_matrix
Definition TypeUtils.hpp:44
std::string camera_serial
Definition TypeUtils.hpp:35
int rows
Definition TypeUtils.hpp:27
TimeStamp aps_start_timestamp
Definition TypeUtils.hpp:15
uint64_t max_events
Definition TypeUtils.hpp:16
std::vector< double > rotation
Definition TypeUtils.hpp:46
int cols
Definition TypeUtils.hpp:28
std::string serial_number
Definition TypeUtils.hpp:19
MatrixData dist_coeffs
Definition TypeUtils.hpp:42
nlohmann::ordered_json ordered_json
Definition TypeUtils.hpp:23
uint16_t dvs_height
Definition TypeUtils.hpp:18
uint16_t dvs_width
Definition TypeUtils.hpp:17
uint16_t dvs_rows
Definition TypeUtils.hpp:37
TimeStamp end_timestamp
Definition TypeUtils.hpp:14
uint16_t aps_cols
Definition TypeUtils.hpp:38
int type
Definition TypeUtils.hpp:29
uint16_t dvs_cols
Definition TypeUtils.hpp:36
uint16_t aps_rows
Definition TypeUtils.hpp:39
uint64_t TimeStamp
Definition TypeUtils.hpp:10
Definition TypeUtils.hpp:34
Definition TypeUtils.hpp:12
Definition TypeUtils.hpp:26