Class RobotConfig

Nested Relationships

Nested Types

Class Documentation

class RobotConfig

Public Functions

inline const std::vector<std::string> &getNames() const
inline const std::vector<std::string> &getFamilies() const
inline const std::string &getHrdf() const
inline std::string getGains(const std::string &key) const
inline const std::map<std::string, std::string> &getGains() const
inline const std::string &getParentDirectory() const
inline const std::vector<experimental::arm::PluginConfig> &getPluginConfigs() const
inline const UserData &getUserData() const

Public Static Functions

static std::unique_ptr<RobotConfig> loadConfig(std::string filepath, std::vector<std::string> &errors)
struct UserData

Public Functions

inline bool getBool(const std::string &key, bool default_value = false) const
inline bool hasBool(const std::string &key) const
inline double getFloat(const std::string &key, double default_value = 0.0) const
inline bool hasFloat(const std::string &key) const
inline std::string getString(const std::string &key, std::string default_value = "") const
inline bool hasString(const std::string &key) const
inline std::vector<bool> getBoolList(const std::string &key, std::vector<bool> default_value = {}) const
inline bool hasBoolList(const std::string &key) const
inline std::vector<double> getFloatList(const std::string &key, std::vector<double> default_value = {}) const
inline bool hasFloatList(const std::string &key) const
inline std::vector<std::string> getStringList(const std::string &key, std::vector<std::string> default_value = {}) const
inline bool hasStringList(const std::string &key) const

Public Members

std::map<std::string, bool> bools_
std::map<std::string, double> floats_
std::map<std::string, std::string> strings_
std::map<std::string, std::vector<bool>> bool_lists_
std::map<std::string, std::vector<double>> float_lists_
std::map<std::string, std::vector<std::string>> string_lists_