3 #include <SimoxUtility/algorithm/apply.hpp>
14 const auto transformPoint =
15 [](
const Eigen::Vector2f& point,
const Eigen::Isometry3f& global_T_frame)
16 {
return to2D(global_T_frame *
to3D(point)); };
18 const auto transformPoints =
19 [&](
const std::vector<Eigen::Vector2f>& points,
const Eigen::Isometry3f& global_T_frame)
21 return simox::alg::apply(points,
22 [&](
const Eigen::Vector2f& point)
23 {
return transformPoint(point, global_T_frame); });
31 .vertices = transformPoints(feature.
convexHull->vertices, transformation),
36 transformed.
circle = {.center = transformPoint(feature.
circle->center, transformation),
37 .radius = feature.
circle->radius};
46 transformed.
chain = transformPoints(feature.
chain.value(), transformation);
48 transformed.
points = transformPoints(feature.
points, transformation);