3 #include <boost/geometry/algorithms/assign.hpp>
4 #include <boost/geometry/algorithms/detail/distance/interface.hpp>
6 #include <SimoxUtility/algorithm/apply.hpp>
12 computeDistance(
const std::vector<polygon_type>& obstacles,
const Eigen::Vector2f& pt)
17 for (
const auto& obstacle : obstacles)
32 std::vector<point_type> points = simox::alg::apply(hull,
toPoint);
33 points.push_back(points.front());
36 boost::geometry::assign_points(polygon, points);
44 return {pt.x(), pt.y()};