Template Function homing_local_planner::distance_points2d

Function Documentation

template<typename P1, typename P2>
inline double homing_local_planner::distance_points2d(const P1 &point1, const P2 &point2)

Calculate Euclidean distance between two 2D point datatypes.

Parameters:
  • point1 – object containing fields x and y

  • point2 – object containing fields x and y

Returns:

Euclidean distance: ||point2-point1||