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 std::chrono::system_clock::time_point local_time;
21 };
22
23 using json = nlohmann::json;
24 using ordered_json = nlohmann::ordered_json;
25
27 {
28 int rows;
29 int cols;
30 int type;
31 std::vector<double> data;
32 };
33
35 {
36 std::string camera_serial;
37 uint16_t dvs_cols;
38 uint16_t dvs_rows;
39 uint16_t aps_cols;
40 uint16_t aps_rows;
41
44
45 std::map<std::string, MatrixData> affine_matrix;
46
47 std::vector<double> rotation;
48 std::vector<double> translation;
49 };
50
51} // namespace dvsense
52
53#endif
Definition TypeUtils.hpp:9
TimeStamp start_timestamp
Definition TypeUtils.hpp:13
std::vector< double > data
Definition TypeUtils.hpp:31
MatrixData camera_matrix
Definition TypeUtils.hpp:42
std::vector< double > translation
Definition TypeUtils.hpp:48
nlohmann::json json
Definition TypeUtils.hpp:23
std::map< std::string, MatrixData > affine_matrix
Definition TypeUtils.hpp:45
std::string camera_serial
Definition TypeUtils.hpp:36
int rows
Definition TypeUtils.hpp:28
TimeStamp aps_start_timestamp
Definition TypeUtils.hpp:15
uint64_t max_events
Definition TypeUtils.hpp:16
std::vector< double > rotation
Definition TypeUtils.hpp:47
int cols
Definition TypeUtils.hpp:29
std::string serial_number
Definition TypeUtils.hpp:19
MatrixData dist_coeffs
Definition TypeUtils.hpp:43
nlohmann::ordered_json ordered_json
Definition TypeUtils.hpp:24
uint16_t dvs_height
Definition TypeUtils.hpp:18
uint16_t dvs_width
Definition TypeUtils.hpp:17
uint16_t dvs_rows
Definition TypeUtils.hpp:38
TimeStamp end_timestamp
Definition TypeUtils.hpp:14
uint16_t aps_cols
Definition TypeUtils.hpp:39
std::chrono::system_clock::time_point local_time
Definition TypeUtils.hpp:20
int type
Definition TypeUtils.hpp:30
uint16_t dvs_cols
Definition TypeUtils.hpp:37
uint16_t aps_rows
Definition TypeUtils.hpp:40
uint64_t TimeStamp
Definition TypeUtils.hpp:10
Definition TypeUtils.hpp:35
Definition TypeUtils.hpp:12
Definition TypeUtils.hpp:27