Go to the documentation of this file.
27 #include <ArmarXCore/interface/components/SimpleStatechartExecutorInterface.h>
29 #include <ArmarXCore/interface/statechart/RemoteStateOffererIce.h>
33 #include <condition_variable>
50 defineOptionalProperty<std::string>(
"PackagesForVariantLibraries",
"ArmarXCore, ArmarXGui, RobotAPI",
51 "Comma-seperated list of packages that are used for loading nessecary libraries for used variants");
73 virtual public armarx::SimpleStatechartExecutorInterface
90 return "SimpleStatechartExecutor";
100 void statechartTask();
101 ContainerTypePtr checkIfLibraryNeedsToBeLoaded(
const StateParameterIceBasePtr parameter)
const;
102 bool isCurrentStateIdValid()
const;
105 mutable std::mutex _finishedMutex;
106 mutable std::condition_variable _finishedCondition;
109 StatechartExecutionResult _lastResult;
114 RemoteStateOffererInterfacePrx _prx;
117 Ice::StringSeq _packages;
119 std::map<std::string, DynamicLibraryPtr> _loadedDynamicLibraries;
StringVariantContainerBaseMap getSetOutputParameters(const Ice::Current &) override
std::string getDefaultName() const override
Retrieve default name of component.
void ensureVariantLibrariesAreLoaded(const StateParameterMap &inputArguments, const Ice::Current &) override
bool hasExecutionFinished(const Ice::Current &) override
void stopImmediatly(const Ice::Current &) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
bool startStatechart(const std::string &proxyName, const std::string &stateName, const StateParameterMap &inputArguments, const Ice::Current &) override
void preloadLibrariesFromHumanNames(const StringList &typeNames, const Ice::Current &) override
QMap< QString, StateParameterPtr > StateParameterMap
StatechartExecutionResult waitUntilStatechartExecutionIsFinished(const Ice::Current &) override
SimpleStatechartExecutorPropertyDefinitions(std::string prefix)
void onExitComponent() override
Hook for subclass.
Baseclass for all ArmarX ManagedIceObjects requiring properties.
StateParameterMap getOutputParameters(const Ice::Current &) override
This component provides interface functions to execute a statechart, stop the currently running state...
Default component property definition container.
std::shared_ptr< VariantInfo > VariantInfoPtr
void onConnectComponent() override
Pure virtual hook for the subclass.
void onInitComponent() override
Pure virtual hook for the subclass.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Creates the property definition container.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::vector< std::string > StringList