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
| #ifndef HUMAN_VELOCITY_H
| #define HUMAN_VELOCITY_H
| #include <vector>
| #include "math_utils.h"
| using namespace std;
| class HumanVelocity
| {
| public:
| int MAX_SIZE;
| vector<vector<int>> coords_structure;
| vector<float> move_dist;
| int RPS;
| double total_distance;
| int store_pointer;
| int init_size;
| double real_world_rate;
| MathUtils math_utils;
|
| public:
| HumanVelocity();
| HumanVelocity(int bottom_distance, int base_distance);
| void add_next_point(int point_x, int point_y, double point_z, double frame_presrate);
| double cal_human_velocity(int rps);
| };
|
| #endif
|
|