15 #ifndef NAV2_COLLISION_MONITOR__TYPES_HPP_
16 #define NAV2_COLLISION_MONITOR__TYPES_HPP_
18 namespace nav2_collision_monitor
28 inline bool operator<(
const Velocity & second)
const
30 const double first_vel = x * x + y * y + tw * tw;
31 const double second_vel = second.x * second.x + second.y * second.y + second.tw * second.tw;
33 return first_vel < second_vel;
36 inline Velocity operator*(
const double & mul)
const
38 return {x * mul, y * mul, tw * mul};
41 inline bool isZero()
const
43 return x == 0.0 && y == 0.0 && tw == 0.0;
74 ActionType action_type;
Velocity for 2D model of motion.