50 void loadPrevious(
const std::filesystem::path& package_path,
const YAML::Node& node)
override;
53 static std::vector<SensorParameters>
load3DSensorsYAML(
const std::filesystem::path& file_path);
91 return "config/sensors_3d.yaml";
96 return "Configuration for perception with 3d sensors.";
99 bool writeYaml(YAML::Emitter& emitter)
override;
106 std::vector<GeneratedFilePtr>& files)
override
108 files.push_back(std::make_shared<GeneratedSensorConfig>(package_path, last_gen_time, *
this));
where all the data for each part of the configuration is stored.
PerceptionConfig & parent_
std::string getDescription() const override
Returns an English description of this file's purpose.
GeneratedSensorConfig(const std::filesystem::path &package_path, const GeneratedTime &last_gen_time, PerceptionConfig &parent)
bool hasChanges() const override
Returns true if this file will have changes when it is written to file.
std::filesystem::path getRelativePath() const override
Returns the path relative to the configuration package root.
bool writeYaml(YAML::Emitter &emitter) override
void setConfig(const SensorParameters ¶meters)
void collectFiles(const std::filesystem::path &package_path, const GeneratedTime &last_gen_time, std::vector< GeneratedFilePtr > &files) override
Collect the files generated by this configuration and add them to the vector.
bool isConfigured() const override
Return true if this part of the configuration is completely set up.
static std::vector< SensorParameters > load3DSensorsYAML(const std::filesystem::path &file_path)
Load perception sensor config.
const std::vector< SensorParameters > & getSensorPluginConfig()
Used for adding a sensor plugin configuration parameter to the sensor plugin configuration parameter ...
std::vector< SensorParameters > sensors_plugin_config_parameter_list_
Sensor plugin configuration parameter list, each sensor plugin type is a map of string pairs.
void loadPrevious(const std::filesystem::path &package_path, const YAML::Node &node) override
Loads the configuration from an existing MoveIt configuration.
void clearSensorPluginConfig()
Clear the sensor plugin configuration parameter list.
std::map< std::string, std::string > SensorParameters
std::filesystem::file_time_type GeneratedTime