27 #include <Eigen/Geometry>
29 #include <RobotAPI/interface/units/LaserScannerUnit.h>
34 template <
typename EigenVectorT>
40 point.x() = laserScanStep.distance * std::cos(laserScanStep.angle);
41 point.y() = laserScanStep.distance * std::sin(laserScanStep.angle);
46 template <
typename EigenVectorT>
47 std::vector<EigenVectorT>
50 std::vector<EigenVectorT> points;
51 points.reserve(laserScan.size());
55 std::back_inserter(points),
56 [](
const LaserScanStep& pt) { return toCartesian<EigenVectorT>(pt); });