5 #include <SimoxUtility/algorithm/apply.hpp>
17 const auto transformPoint =
18 [](
const Eigen::Vector2f& point,
const Eigen::Isometry3f& global_T_frame)
19 {
return to2D(global_T_frame *
to3D(point)); };
21 const auto transformPoints =
22 [&](
const std::vector<Eigen::Vector2f>& points,
const Eigen::Isometry3f& global_T_frame)
24 return simox::alg::apply(points,
25 [&](
const Eigen::Vector2f& point)
26 {
return transformPoint(point, global_T_frame); });
34 .vertices = transformPoints(feature.
convexHull->vertices, transformation),
39 transformed.
circle = {.center = transformPoint(feature.
circle->center, transformation),
40 .radius = feature.
circle->radius};
49 transformed.
chain = transformPoints(feature.
chain.value(), transformation);
51 transformed.
points = transformPoints(feature.
points, transformation);