20 #include "cartographer/common/config.h" 24 #include "gtest/gtest.h" 29 TEST(ConfigurationFilesTest, ValidateMapBuilderOptions) {
30 const std::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<std::string>{
38 std::string(::cartographer::common::kSourceDirectory) +
39 "/configuration_files"});
41 kCode, std::move(file_resolver));
46 TEST(ConfigurationFilesTest, ValidateTrajectoryBuilderOptions) {
47 const std::string kCode = R
"text( 48 include "trajectory_builder.lua" 49 TRAJECTORY_BUILDER.trajectory_builder_2d.use_imu_data = false 50 return TRAJECTORY_BUILDER)text"; 51 EXPECT_NO_FATAL_FAILURE({ 54 std::vector<std::string>{
55 std::string(::cartographer::common::kSourceDirectory) +
56 "/configuration_files"});
58 kCode, std::move(file_resolver));
60 &lua_parameter_dictionary);
_Unique_if< T >::_Single_object make_unique(Args &&... args)
proto::MapBuilderOptions CreateMapBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::TrajectoryBuilderOptions CreateTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)