Fix broken test. (#339)

master
Holger Rapp 2017-05-16 14:14:01 +02:00 committed by GitHub
parent 8c56b44bdd
commit 227e46c285
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ namespace cartographer_ros {
namespace { namespace {
TEST(OccupancyGridTest, ComputeMapLimits) { TEST(OccupancyGridTest, ComputeMapLimits) {
constexpr int kTrajectoryId = 0;
const ::cartographer::mapping::TrajectoryNode::ConstantData constant_data{ const ::cartographer::mapping::TrajectoryNode::ConstantData constant_data{
::cartographer::common::FromUniversal(52), ::cartographer::common::FromUniversal(52),
::cartographer::sensor::RangeData{ ::cartographer::sensor::RangeData{
@ -33,7 +34,7 @@ TEST(OccupancyGridTest, ComputeMapLimits) {
{}}, {}},
::cartographer::sensor::Compress( ::cartographer::sensor::Compress(
::cartographer::sensor::RangeData{Eigen::Vector3f::Zero(), {}, {}}), ::cartographer::sensor::RangeData{Eigen::Vector3f::Zero(), {}, {}}),
nullptr, ::cartographer::transform::Rigid3d::Identity()}; kTrajectoryId, ::cartographer::transform::Rigid3d::Identity()};
const ::cartographer::mapping::TrajectoryNode trajectory_node{ const ::cartographer::mapping::TrajectoryNode trajectory_node{
&constant_data, ::cartographer::transform::Rigid3d::Identity()}; &constant_data, ::cartographer::transform::Rigid3d::Identity()};
constexpr double kResolution = 0.05; constexpr double kResolution = 0.05;