Canny-EVT
A library for ***
Loading...
Searching...
No Matches
type.h
1//
2// Created by mpl on 23-4-5.
3//
4
5#ifndef CannyEVT_TYPE_H
6#define CannyEVT_TYPE_H
7
8#include <memory>
9#include <vector>
10#include <Eigen/Core>
11
12namespace CannyEVT
13{
14
15struct ImuMsg
16{
17 typedef std::shared_ptr<ImuMsg> Ptr;
18 typedef std::shared_ptr<ImuMsg const> ConstPtr;
19
20 ImuMsg(const double ts, const Eigen::Vector3d& acc, const Eigen::Vector3d& gyr):ts(ts), acc(acc), gyr(gyr)
21 {}
22
23 double ts;
24 Eigen::Vector3d acc;
25 Eigen::Vector3d gyr;
26};
27
29{
30 typedef std::shared_ptr<EventMsg> Ptr;
31 typedef std::shared_ptr<EventMsg const> ConstPtr;
32
33 EventMsg(double ts, size_t x, size_t y, bool p):ts(ts), x(x), y(y), p(p)
34 {}
35
36 double ts;
37 size_t x, y;
38 bool p;
39};
40
41
43{
44 FrameData(std::vector<EventMsg::ConstPtr> event, double ts):
45 eventData(std::move(event)), stamp(std::move(ts))
46 {}
47
48 std::vector<EventMsg::ConstPtr> eventData;
49 double stamp;
50};
51
52
53struct Point {
54
55 typedef std::shared_ptr<Point> Ptr;
56 typedef std::shared_ptr<Point const> ConstPtr;
57
58 Point(double x, double y, double z, double xg, double yg, double zg):
59 x(x), y(y), z(z), xg(xg), yg(yg), zg(zg)
60 {};
61
62 double x;
63 double y;
64 double z;
65
66 double xg;//3D gradient
67 double yg;
68 double zg;
69};
70
71typedef std::shared_ptr<std::vector<Point>> pCloud;
72
73}
74
75#endif //CannyEVT_TYPE_H
Definition type.h:29
Definition type.h:43
Definition type.h:16
Definition type.h:53