7 #include <boost/geometry/algorithms/assign.hpp>
8 #include <boost/geometry/algorithms/detail/distance/interface.hpp>
10 #include <SimoxUtility/algorithm/apply.hpp>
16 computeDistance(
const std::vector<polygon_type>& obstacles,
const Eigen::Vector2f& pt)
21 for (
const auto& obstacle : obstacles)
33 std::vector<point_type> points = simox::alg::apply(hull,
toPoint);
34 points.push_back(points.front());
37 boost::geometry::assign_points(polygon, points);
45 return {pt.x(), pt.y()};
51 return {pt.x(), pt.y()};