15 #ifndef NAV2_COLLISION_MONITOR__TYPES_HPP_
16 #define NAV2_COLLISION_MONITOR__TYPES_HPP_
20 namespace nav2_collision_monitor
30 inline bool operator<(
const Velocity & second)
const
32 const double first_vel = x * x + y * y + tw * tw;
33 const double second_vel = second.x * second.x + second.y * second.y + second.tw * second.tw;
35 return first_vel < second_vel;
38 inline Velocity operator*(
const double & mul)
const
40 return {x * mul, y * mul, tw * mul};
43 inline bool isZero()
const
45 return x == 0.0 && y == 0.0 && tw == 0.0;
77 ActionType action_type;
79 std::string polygon_name;
Velocity for 2D model of motion.