63 EXPECT_EQ(sensors_config->getSensorPluginConfig().size(), 0u);
66 auto configs = sensors_config->load3DSensorsYAML(default_yaml_path_);
70 ASSERT_EQ(configs.size(), 2u);
72 EXPECT_EQ(configs[0][
"sensor_plugin"], std::string(
"occupancy_map_monitor/PointCloudOctomapUpdater"));
74 EXPECT_EQ(configs[1][
"sensor_plugin"], std::string(
"occupancy_map_monitor/DepthImageOctomapUpdater"));
83 EXPECT_EQ(sensors_config->getSensorPluginConfig().size(), 0u);
85 generateFiles<PerceptionConfig>(
"sensors");
87 std::filesystem::path generated = output_dir_ /
"config/sensors_3d.yaml";
89 ASSERT_TRUE(std::filesystem::is_regular_file(generated));
91 sensors_config->loadPrevious(std::filesystem::path(
"fake_path"), YAML::Node());
94 EXPECT_EQ(sensors_config->getSensorPluginConfig().size(), 2u);
96 generateFiles<PerceptionConfig>(
"sensors");
98 expectYamlEquivalence(generated, default_yaml_path_);