78 RobotControl::createStaticInstance()
84 assert(stateList.size() > 0);
85 int robotFunctionalStateId = stateList.begin()->first;
94 if (!proxyName.empty() && !stateName.empty())
106 state->getObjectScheduler()->waitForObjectState(eManagedIceObjectStarted, 5000);
108 evt->eventReceiverName =
"toAll";
109 evt->properties[
"proxyName"] =
new SingleVariant(proxyName);
110 evt->properties[
"stateName"] =
new SingleVariant(stateName);
151 stateScenarioRunning,
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
ArmarXObjectSchedulerPtr getObjectScheduler() const
static ParameterMappingPtr createMapping()
Creates a new instance of a ParameterMapping. Since the constructors are private, this method must be...
StateBasePtr robotFunctionalState
Refernce to the currently active Functionsl state.
void onConnectRemoteStateOfferer() override
Virtual function, in which the user can fetch some proxies.
void onExitRemoteStateOfferer() override
Virtual function, in which the user can implement some clean up.
void onInitRemoteStateOfferer() override
Pure virtual function, in which the states must be added, that should be remote-accessable.
void startRobotStatechart()
PropertyDefinitionsPtr createPropertyDefinitions() override
void hardReset(const Ice::Current &=Ice::emptyCurrent) override
EventPtr createEvent()
Utility function to create a new Event.
StateBasePtr addState(StateBasePtr pNewState)
StateBasePtr setInitState(StateBasePtr initState, ParameterMappingPtr initialStateMapping=ParameterMappingPtr())
Sets the initial substate of this state.
TransitionIceBase & addTransition(EventPtr event, StateIceBasePtr sourceState, StateIceBasePtr destinationState, ParameterMappingIceBasePtr mappingToNextStatesInput=nullptr, ParameterMappingIceBasePtr mappingToParentStatesLocal=nullptr, ParameterMappingIceBasePtr mappingToParentStatesOutput=nullptr)
virtual RemoteStatePtr addDynamicRemoteState(std::string instanceName)
Function to add a new dynamic remote substate to this state.
TransitionIceBase & addTransitionFromAllStates(StateIceBasePtr destinationState, ParameterMappingIceBasePtr mappingToNextStatesInput=nullptr, ParameterMappingIceBasePtr mappingToParentStatesLocal=nullptr, ParameterMappingIceBasePtr mappingToParentStatesOutput=nullptr)
Function to add a new transition from all substates to destinationState.
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
#define ARMARX_INFO
The normal logging level.
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
const LogSender::manipulator flush
IceInternal::Handle< DynamicRemoteState > DynamicRemoteStatePtr
IceInternal::Handle< Event > EventPtr
Typedef of EventPtr as IceInternal::Handle<Event> for convenience.
IceInternal::Handle< StateBase > StateBasePtr
int createRemoteStateInstance(const std::string &stateName, const RemoteStateIceBasePrx &remoteStatePrx, const std::string &parentStateItentifierStr, const std::string &instanceName, const Ice::Current &context=Ice::emptyCurrent) override
void removeInstance(int stateId, const Ice::Current &=Ice::emptyCurrent) override
void issueEvent(int receivingStateId, const EventBasePtr &evt, const Ice::Current &=Ice::emptyCurrent) override
std::map< int, StateBasePtr > getChildStatesByName(int parentId, std::string stateName)
void callRemoteState(int stateId, const StringVariantContainerBaseMap &properties, const Ice::Current &context=Ice::emptyCurrent) override
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
void defineSubstates() override
Virtual function, in which substates, transition and mappings can be added.
void defineState() override
Virtual function, in which this state can be configured.
void defineSubstates() override
Virtual function, in which substates, transition and mappings can be added.