31CloseHandWithTorques::SubClassRegistry
49 NameValueMap jointNamesAndValues;
51 if (jointNames->getSize() == jointTorquesGraspList->getSize())
53 for (
int j = 0; j < jointNames->getSize(); j++)
55 jointNamesAndValues[jointNames->getVariant(j)->getString()] =
56 jointTorquesGraspList->getVariant(j)->getFloat();
61 throw LocalException(
"StateCloseHandWithTorques: List lengths do not match!");
66 ARMARX_DEBUG <<
"Installing timeoutMinExecutionTime condition";
67 float timeoutMinExecutionTime =
getInput<float>(
"timeoutMinExecutionTime");
84 return "CloseHandWithTorques";
CloseHandWithTorques(XMLStateConstructorParams stateData)
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
static std::string GetName()
ActionEventIdentifier condMinimumExecutionTimeout
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
static SubClassRegistry Registry
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
KinematicUnitInterfacePrx kinematicUnitPrx
ContextType * getContext() const
void removeTimeoutEvent(const ActionEventIdentifier &id)
ActionEventIdentifier setTimeoutEvent(int timeoutDurationMs, const EventPtr &evt)
Utility function to start a timer on the systemObserver and register an event on the conditionHandler...
EventPtr createEvent()
Utility function to create a new Event.
std::enable_if_t< std::is_base_of_v< VariantDataClass, T >, IceInternal::Handle< T > > getInput(const std::string &key) const
getInput can be used to access a specific input parameter.
XMLStateTemplate(const XMLStateConstructorParams ¶ms)
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
#define ARMARX_VERBOSE
The logging level for verbose information.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< SingleTypeVariantList > SingleTypeVariantListPtr
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr