Go to the documentation of this file.
10 #include <unordered_map>
42 StateFactory(
const std::vector<std::string> & paths,
const std::vector<std::string> & files,
bool verbose);
45 void load_libraries(
const std::vector<std::string> & paths);
48 void load_files(
const std::vector<std::string> & files);
51 void load(
const std::map<std::string, mc_rtc::Configuration> & states);
90 StatePtr create(
const std::string & state);
93 bool hasState(
const std::string & state)
const;
96 const std::vector<std::string> & states()
const;
99 bool load_with_loader(
const std::string & state);
111 template<
typename RetT,
typename... Args>
112 void register_object(
const std::string & name, std::function<RetT *(
const Args &...)> callback)
115 states_.push_back(name);
132 return states_configurations_.at(state);
137 StatePtr create(
const std::string & state,
const std::string & final_name);
140 StatePtr create(
const std::string & state,
145 void update(
const std::string & cn);
148 std::vector<std::string> states_;
149 std::unordered_map<std::string, StateConfiguration> states_configurations_;
mc_rtc::Configuration config
Definition: StateFactory.h:126
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
const StateConfiguration & configuration(const std::string &state) const
Definition: StateFactory.h:130
#define MC_CONTROL_FSM_DLLAPI
Definition: api.h:50
ltdl wrapper for factory-like classes
Definition: loader.h:37
std::string arg
Definition: StateFactory.h:124
Definition: StateFactory.h:32
struct MC_CONTROL_FSM_DLLAPI Controller
Definition: State.h:23
std::string base
Definition: StateFactory.h:122
Definition: StateFactory.h:119
ltdl wrapper for mc_rtc purpose
struct MC_RTC_UTILS_DLLAPI Configuration
Definition: Configuration.h:46
Definition: CompletionCriteria.h:10
void register_object(const std::string &name, std::function< RetT *(const Args &...)> callback)
std::shared_ptr< State > StatePtr
Definition: State.h:172
Definition: Controller.h:49
void register_object(const std::string &name, std::function< RetT *(const Args &...)> callback)
Definition: StateFactory.h:112