31CloseHandWithJointAngles::SubClassRegistry
49 NameValueMap jointNamesAndValues;
50 NameControlModeMap controlModes;
52 if (jointNames->getSize() == jointAnglesGraspList->getSize())
54 for (
int j = 0; j < jointNames->getSize(); j++)
56 jointNamesAndValues[jointNames->getVariant(j)->getString()] =
57 jointAnglesGraspList->getVariant(j)->getFloat();
58 controlModes[jointNames->getVariant(j)->getString()] = ePositionControl;
63 throw LocalException(
"stateCloseHandWithJointAngles: List lengths do not match!");
69 ARMARX_LOG << eINFO <<
"Installing timeoutGrasp condition";
87 return "CloseHandWithJointAngles";
ActionEventIdentifier condGraspWithJointAnglesTimeout
static SubClassRegistry Registry
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
CloseHandWithJointAngles(XMLStateConstructorParams stateData)
static std::string GetName()
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
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_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