| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef COMMON_H
- #define COMMON_H
- #include "radarobject.pb.h"
- //障碍物结构体
- struct Obst
- {
- Obst() {
- x = 0;
- y = 0;
- }
- Obst(iv::radar::radarobject obj) {
- x = obj.x();
- y = obj.y();
- }
- //毫米波雷达坐标系
- double x;
- double y;
- //世界坐标系
- double wx;
- double wy;
- double wz;
- };
- struct Param{
- Param() {
- x = 0.0;
- y = 0.0;
- z = 0.0;
- yaw = 0;
- pitch = 0;
- roll = 0;
- }
- double x;
- double y;
- double z;
- int pitch;
- int yaw;
- int roll;
- };
- #endif // COMMON_H
|