15 #ifndef NAV2_COLLISION_MONITOR__TYPES_HPP_
16 #define NAV2_COLLISION_MONITOR__TYPES_HPP_
21 namespace nav2_collision_monitor
31 inline bool operator<(
const Velocity & second)
const
33 const double first_vel = x * x + y * y + tw * tw;
34 const double second_vel = second.x * second.x + second.y * second.y + second.tw * second.tw;
36 return first_vel < second_vel;
39 inline Velocity operator*(
const double & mul)
const
41 return {x * mul, y * mul, tw * mul};
44 inline bool isZero()
const
46 return x == 0.0 && y == 0.0 && tw == 0.0;
56 std::string source =
"";
80 ActionType action_type;
82 std::string polygon_name;
83 std::vector<Point> triggering_points;
Point with 2D collision-check coordinates and optional z from the source.
Velocity for 2D model of motion.