22 #include "gtest/gtest.h" 30 point_cloud.emplace_back(0.5f, 0.5f, 1.f);
31 point_cloud.emplace_back(3.5f, 0.5f, 42.f);
34 EXPECT_NEAR(-0.5f, transformed_point_cloud[0].x(), 1e-6);
35 EXPECT_NEAR(0.5f, transformed_point_cloud[0].y(), 1e-6);
36 EXPECT_NEAR(-0.5f, transformed_point_cloud[1].x(), 1e-6);
37 EXPECT_NEAR(3.5f, transformed_point_cloud[1].y(), 1e-6);
42 point_cloud.emplace_back(0.5f, 0.5f, 1.f, 0.f);
43 point_cloud.emplace_back(3.5f, 0.5f, 42.f, 0.f);
46 EXPECT_NEAR(-0.5f, transformed_point_cloud[0].x(), 1e-6);
47 EXPECT_NEAR(0.5f, transformed_point_cloud[0].y(), 1e-6);
48 EXPECT_NEAR(-0.5f, transformed_point_cloud[1].x(), 1e-6);
49 EXPECT_NEAR(3.5f, transformed_point_cloud[1].y(), 1e-6);
PointCloud TransformPointCloud(const PointCloud &point_cloud, const transform::Rigid3f &transform)
TimedPointCloud TransformTimedPointCloud(const TimedPointCloud &point_cloud, const transform::Rigid3f &transform)
std::vector< Eigen::Vector3f > PointCloud
std::vector< Eigen::Vector4f > TimedPointCloud
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)