moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
#include <package_settings_config.hpp>
Classes | |
class | GeneratedCMake |
class | GeneratedPackageXML |
class | GeneratedSettings |
Public Member Functions | |
void | loadPrevious (const std::filesystem::path &package_path, const YAML::Node &node) override |
Overridden method to load THIS config's data variables. | |
YAML::Node | saveToYaml () const override |
Optionally save "meta" information for saving in the .setup_assistant yaml file. | |
void | loadExisting (const std::string &package_path_or_name) |
Method for loading the contents of the .setup_assistant file into all the configs. | |
const std::filesystem::path & | getPackagePath () const |
const std::string & | getPackageName () const |
void | setPackagePath (const std::filesystem::path &package_path) |
void | setPackageName (const std::string &package_name) |
const GeneratedTime & | getGenerationTime () const |
bool | isConfigured () const override |
Return true if this part of the configuration is completely set up. | |
bool | hasValidName () const |
bool | hasValidEmail () const |
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. | |
void | collectVariables (std::vector< TemplateVariable > &variables) override |
Collect key/value pairs for use in templates. | |
void | loadDependencies () |
std::string | getAuthorName () const |
std::string | getAuthorEmail () const |
void | setAuthorName (const std::string &name) |
void | setAuthorEmail (const std::string &email) |
void | setGenerationTime () |
Public Member Functions inherited from moveit_setup::SetupConfig | |
SetupConfig ()=default | |
SetupConfig (const SetupConfig &)=default | |
SetupConfig (SetupConfig &&)=default | |
SetupConfig & | operator= (const SetupConfig &)=default |
SetupConfig & | operator= (SetupConfig &&)=default |
virtual | ~SetupConfig ()=default |
void | initialize (const std::shared_ptr< DataWarehouse > &config_data, const rclcpp::Node::SharedPtr &parent_node, const std::string &name) |
Called after construction to initialize the step. | |
virtual void | onInit () |
Overridable initialization method. | |
const std::string & | getName () |
The name for this part of the configuration. | |
virtual void | collectDependencies (std::set< std::string > &) const |
Collect the package dependencies generated by this configuration. | |
Protected Attributes | |
std::filesystem::path | config_pkg_path_ |
Loaded configuration package path - if an existing package was loaded, holds that path. | |
std::string | new_package_name_ { "unnamed_moveit_config" } |
Name of the new package that is being (or going) to be generated, based on user specified save path. | |
std::string | author_name_ |
Name of the author of this config. | |
std::string | author_email_ |
Email of the author of this config. | |
bool | author_info_changed_ { false } |
GeneratedTime | config_pkg_generated_timestamp_ |
Timestamp when configuration package was generated, if it was previously generated. | |
std::set< std::string > | package_dependencies_ |
Protected Attributes inherited from moveit_setup::SetupConfig | |
std::shared_ptr< DataWarehouse > | config_data_ |
rclcpp::Node::SharedPtr | parent_node_ |
std::string | name_ |
std::shared_ptr< rclcpp::Logger > | logger_ |
Definition at line 44 of file package_settings_config.hpp.
|
inlineoverridevirtual |
Collect the files generated by this configuration and add them to the vector.
[in] | package_path | the path to the root of the config package |
[in] | last_gen_time | The time (if any) when the config package was last generated |
[out] | files | Where to put the new generated files |
Reimplemented from moveit_setup::SetupConfig.
Definition at line 182 of file package_settings_config.hpp.
|
overridevirtual |
Collect key/value pairs for use in templates.
[out] | variables | Where to put the new Variables |
Reimplemented from moveit_setup::SetupConfig.
Definition at line 188 of file package_settings_config.cpp.
|
inline |
Definition at line 198 of file package_settings_config.hpp.
|
inline |
Definition at line 194 of file package_settings_config.hpp.
|
inline |
Definition at line 77 of file package_settings_config.hpp.
|
inline |
Definition at line 68 of file package_settings_config.hpp.
|
inline |
Definition at line 63 of file package_settings_config.hpp.
bool moveit_setup::PackageSettingsConfig::hasValidEmail | ( | ) | const |
Definition at line 211 of file package_settings_config.cpp.
bool moveit_setup::PackageSettingsConfig::hasValidName | ( | ) | const |
Definition at line 205 of file package_settings_config.cpp.
|
inlineoverridevirtual |
Return true if this part of the configuration is completely set up.
Reimplemented from moveit_setup::SetupConfig.
Definition at line 82 of file package_settings_config.hpp.
void moveit_setup::PackageSettingsConfig::loadDependencies | ( | ) |
Definition at line 179 of file package_settings_config.cpp.
void moveit_setup::PackageSettingsConfig::loadExisting | ( | const std::string & | package_path_or_name | ) |
Method for loading the contents of the .setup_assistant file into all the configs.
package_path_or_name | Either the path to the MoveIt config package folder OR the name of the package. |
Definition at line 73 of file package_settings_config.cpp.
|
overridevirtual |
Overridden method to load THIS config's data variables.
Not to be confused with loadExisting which is a PackageSettingsConfig-specific method for loading ALL configs and their data.
Reimplemented from moveit_setup::SetupConfig.
Definition at line 45 of file package_settings_config.cpp.
|
overridevirtual |
Optionally save "meta" information for saving in the .setup_assistant yaml file.
Reimplemented from moveit_setup::SetupConfig.
Definition at line 54 of file package_settings_config.cpp.
|
inline |
Definition at line 206 of file package_settings_config.hpp.
|
inline |
Definition at line 202 of file package_settings_config.hpp.
void moveit_setup::PackageSettingsConfig::setGenerationTime | ( | ) |
Definition at line 216 of file package_settings_config.cpp.
void moveit_setup::PackageSettingsConfig::setPackageName | ( | const std::string & | package_name | ) |
Definition at line 68 of file package_settings_config.cpp.
void moveit_setup::PackageSettingsConfig::setPackagePath | ( | const std::filesystem::path & | package_path | ) |
Definition at line 63 of file package_settings_config.cpp.
|
protected |
Email of the author of this config.
Definition at line 224 of file package_settings_config.hpp.
|
protected |
Definition at line 226 of file package_settings_config.hpp.
|
protected |
Name of the author of this config.
Definition at line 221 of file package_settings_config.hpp.
|
protected |
Timestamp when configuration package was generated, if it was previously generated.
Definition at line 229 of file package_settings_config.hpp.
|
protected |
Loaded configuration package path - if an existing package was loaded, holds that path.
Definition at line 215 of file package_settings_config.hpp.
|
protected |
Name of the new package that is being (or going) to be generated, based on user specified save path.
Definition at line 218 of file package_settings_config.hpp.
|
protected |
Definition at line 231 of file package_settings_config.hpp.