moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
All the controller configurations. More...
#include <controllers_config.hpp>
Public Member Functions | |
bool | isConfigured () const override |
Return true if this part of the configuration is completely set up. More... | |
std::vector< ControllerInfo > & | getControllers () |
Gets controllers_ vector. More... | |
bool | addController (const std::string &name, const std::string &type, const std::vector< std::string > &joint_names) |
Adds a controller to controllers_ vector. More... | |
bool | addController (const ControllerInfo &new_controller) |
Adds a controller to controllers_ vector. More... | |
ControllerInfo * | findControllerByName (const std::string &controller_name) |
bool | deleteController (const std::string &controller_name) |
bool | hasChangedGroups () const |
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. More... | |
virtual void | onInit () |
Overridable initialization method. More... | |
const std::string & | getName () |
The name for this part of the configuration. More... | |
virtual void | loadPrevious (const std::filesystem::path &, const YAML::Node &) |
Loads the configuration from an existing MoveIt configuration. More... | |
virtual YAML::Node | saveToYaml () const |
Optionally save "meta" information for saving in the .setup_assistant yaml file. More... | |
virtual void | collectFiles (const std::filesystem::path &, const GeneratedTime &, std::vector< GeneratedFilePtr > &) |
Collect the files generated by this configuration and add them to the vector. More... | |
virtual void | collectDependencies (std::set< std::string > &) const |
Collect the package dependencies generated by this configuration. More... | |
virtual void | collectVariables (std::vector< TemplateVariable > &) |
Collect key/value pairs for use in templates. More... | |
Protected Attributes | |
std::vector< ControllerInfo > | controllers_ |
Controllers config data. More... | |
bool | changed_ |
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_ |
All the controller configurations.
Definition at line 62 of file controllers_config.hpp.
bool moveit_setup::controllers::ControllersConfig::addController | ( | const ControllerInfo & | new_controller | ) |
Adds a controller to controllers_ vector.
new_controller | a new Controller to add |
Definition at line 55 of file controllers_config.cpp.
bool moveit_setup::controllers::ControllersConfig::addController | ( | const std::string & | name, |
const std::string & | type, | ||
const std::vector< std::string > & | joint_names | ||
) |
Adds a controller to controllers_ vector.
name | Name of the controller |
type | type of the controller |
joint_names | vector of the joint names |
Definition at line 45 of file controllers_config.cpp.
bool moveit_setup::controllers::ControllersConfig::deleteController | ( | const std::string & | controller_name | ) |
Delete controller by name
controller_name | - name of controller to delete |
Definition at line 87 of file controllers_config.cpp.
ControllerInfo * moveit_setup::controllers::ControllersConfig::findControllerByName | ( | const std::string & | controller_name | ) |
Find the associated controller by name
controller_name | - name of controller to find in datastructure |
Definition at line 70 of file controllers_config.cpp.
|
inline |
Gets controllers_ vector.
Definition at line 73 of file controllers_config.hpp.
|
inline |
Definition at line 110 of file controllers_config.hpp.
|
inlineoverridevirtual |
Return true if this part of the configuration is completely set up.
Reimplemented from moveit_setup::SetupConfig.
Definition at line 65 of file controllers_config.hpp.
|
protected |
Definition at line 119 of file controllers_config.hpp.
|
protected |
Controllers config data.
Definition at line 118 of file controllers_config.hpp.