From 227e46c285bd774cf45e3cbdf1bd23184458b2be Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 16 May 2017 14:14:01 +0200 Subject: [PATCH] Fix broken test. (#339) --- cartographer_ros/cartographer_ros/occupancy_grid_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cartographer_ros/cartographer_ros/occupancy_grid_test.cc b/cartographer_ros/cartographer_ros/occupancy_grid_test.cc index 51674b2..338f642 100644 --- a/cartographer_ros/cartographer_ros/occupancy_grid_test.cc +++ b/cartographer_ros/cartographer_ros/occupancy_grid_test.cc @@ -25,6 +25,7 @@ namespace cartographer_ros { namespace { TEST(OccupancyGridTest, ComputeMapLimits) { + constexpr int kTrajectoryId = 0; const ::cartographer::mapping::TrajectoryNode::ConstantData constant_data{ ::cartographer::common::FromUniversal(52), ::cartographer::sensor::RangeData{ @@ -33,7 +34,7 @@ TEST(OccupancyGridTest, ComputeMapLimits) { {}}, ::cartographer::sensor::Compress( ::cartographer::sensor::RangeData{Eigen::Vector3f::Zero(), {}, {}}), - nullptr, ::cartographer::transform::Rigid3d::Identity()}; + kTrajectoryId, ::cartographer::transform::Rigid3d::Identity()}; const ::cartographer::mapping::TrajectoryNode trajectory_node{ &constant_data, ::cartographer::transform::Rigid3d::Identity()}; constexpr double kResolution = 0.05;