Go to the documentation of this file.
90 virtual bool read_msg(std::string &) {
return false; }
97 const std::string &
output() const noexcept {
return output_; }
100 const std::string &
name() {
return name_; }
102 void name(
const std::string & n) { name_ = n; }
106 void output(
const std::string & o) { output_ = o; }
163 std::vector<std::pair<mc_tasks::MetaTaskPtr, mc_rtc::Configuration>>
tasks_;
168 std::string name_ =
"";
169 std::string output_ =
"";
180 #ifndef MC_RTC_BUILD_STATIC
183 # define FSM_STATE_API __declspec(dllexport)
186 # define FSM_STATE_API __attribute__((visibility("default")))
188 # define FSM_STATE_API
192 # define EXPORT_SINGLE_STATE(NAME, TYPE) \
195 FSM_STATE_API void MC_RTC_FSM_STATE(std::vector<std::string> & names) \
199 FSM_STATE_API void destroy(mc_control::fsm::State * ptr) \
203 FSM_STATE_API mc_control::fsm::State * create(const std::string &) \
211 # define EXPORT_SINGLE_STATE(NAME, TYPE) \
214 static auto registered = []() \
216 using fn_t = std::function<TYPE *()>; \
217 mc_control::fsm::Controller::factory().register_object(NAME, fn_t([]() { return new TYPE(); })); \
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
virtual bool read_msg(std::string &)
Definition: State.h:90
virtual bool read_write_msg(std::string &, std::string &)
Definition: State.h:93
#define MC_CONTROL_FSM_DLLAPI
Definition: api.h:50
std::vector< mc_tasks::PostureTaskPtr > postures_
Definition: State.h:165
void name(const std::string &n)
Definition: State.h:102
std::vector< mc_solver::ConstraintSetPtr > constraints_
Definition: State.h:161
mc_rtc::Configuration constraints_config_
Definition: State.h:152
std::vector< std::pair< mc_tasks::MetaTaskPtr, mc_rtc::Configuration > > tasks_
Definition: State.h:163
mc_rtc::Configuration config_
Definition: State.h:158
mc_rtc::Configuration tasks_config_
Definition: State.h:154
virtual ~State()
Definition: State.h:60
mc_rtc::Configuration add_collisions_after_config_
Definition: State.h:148
mc_rtc::Configuration add_collisions_config_
Definition: State.h:144
mc_rtc::Configuration remove_collisions_config_
Definition: State.h:146
Definition: CompletionCriteria.h:10
mc_rtc::Configuration add_contacts_after_config_
Definition: State.h:140
const std::string & output() const noexcept
Definition: State.h:97
void output(const std::string &o)
Definition: State.h:106
std::shared_ptr< State > StatePtr
Definition: State.h:172
mc_rtc::Configuration add_contacts_config_
Definition: State.h:136
mc_rtc::Configuration remove_contacts_after_config_
Definition: State.h:142
mc_rtc::Configuration remove_posture_task_
Definition: State.h:156
mc_rtc::Configuration remove_collisions_after_config_
Definition: State.h:150
Definition: Controller.h:49
virtual void stop(Controller &)
Definition: State.h:87
const std::string & name()
Definition: State.h:100
mc_rtc::Configuration remove_contacts_config_
Definition: State.h:138