20 #include "cartographer/common/config.h" 24 #include "gtest/gtest.h" 29 TEST(ConfigurationFilesTest, ValidateMapBuilderOptions) {
30 const string kCode = R
"text( 31 include "map_builder.lua" 32 MAP_BUILDER.use_trajectory_builder_2d = true 33 return MAP_BUILDER)text"; 34 EXPECT_NO_FATAL_FAILURE({ 37 std::vector<string>{string(::cartographer::common::kSourceDirectory) +
38 "/configuration_files"});
40 kCode, std::move(file_resolver));
45 TEST(ConfigurationFilesTest, ValidateTrajectoryBuilderOptions) {
46 const string kCode = R
"text( 47 include "trajectory_builder.lua" 48 TRAJECTORY_BUILDER.trajectory_builder_2d.use_imu_data = false 49 return TRAJECTORY_BUILDER)text"; 50 EXPECT_NO_FATAL_FAILURE({ 53 std::vector<string>{string(::cartographer::common::kSourceDirectory) +
54 "/configuration_files"});
56 kCode, std::move(file_resolver));
58 &lua_parameter_dictionary);
proto::MapBuilderOptions CreateMapBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::TrajectoryBuilderOptions CreateTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
_Unique_if< T >::_Single_object make_unique(Args &&...args)