21 static std::unique_ptr<RobotConfig>
loadConfig(std::string filepath, std::vector<std::string>& errors);
26 const std::vector<std::string>&
getNames()
const {
return names_; }
28 const std::vector<std::string>&
getFamilies()
const {
return families_; }
30 const std::string&
getHrdf()
const {
return hrdf_; }
32 std::string
getGains(
const std::string& key)
const {
return gains_.count(key) == 0 ?
"" : gains_.at(key); }
34 const std::map<std::string, std::string>&
getGains() {
return gains_; }
36 const std::vector<experimental::arm::PluginConfig>&
getPluginConfigs()
const {
return plugin_configs_; }
39 const std::map<std::string, std::string>&
getUserData() {
return user_data_; }
44 std::vector<std::string> names_;
45 std::vector<std::string> families_;
49 std::map<std::string, std::string> gains_;
51 std::vector<experimental::arm::PluginConfig> plugin_configs_;
53 std::map<std::string, std::string> user_data_;
const std::vector< std::string > & getFamilies() const
Definition: robot_config.hpp:28
const std::vector< experimental::arm::PluginConfig > & getPluginConfigs() const
Definition: robot_config.hpp:36
static std::unique_ptr< RobotConfig > loadConfig(std::string filepath, std::vector< std::string > &errors)
Definition: robot_config.cpp:41
std::string getGains(const std::string &key) const
Definition: robot_config.hpp:32
const std::map< std::string, std::string > & getGains()
Definition: robot_config.hpp:34
const std::map< std::string, std::string > & getUserData()
Definition: robot_config.hpp:39
Definition: robot_config.hpp:13
const std::string & getHrdf() const
Definition: robot_config.hpp:30
const std::vector< std::string > & getNames() const
Definition: robot_config.hpp:26