Go to the documentation of this file.
30 using namespace FindAndGraspObjectGroup;
44 ARMARX_VERBOSE <<
"Entering InstallTerminateConditions::onEnter()";
47 float timeoutGrasp = getInput<float>(
"timeoutGrasp");
50 float thresholdVelocity = getInput<float>(
"thresholdVelocity");
51 ARMARX_DEBUG <<
"Installing allJointVelocitiesLow condition, threshold: " << thresholdVelocity <<
flush;
71 Term allJointVelocitiesLow_NEW;
76 for (
int i = 0; i < dataFieldsList->getSize(); i++)
78 allJointVelocitiesLow_NEW = allJointVelocitiesLow_NEW &&
98 std::string handUnitName = getInput<std::string>(
"handUnitName");
99 ARMARX_DEBUG <<
"xx..................SENDING OBJECTGRASPED TO hand unit name " << handUnitName <<
"...................";
105 ARMARX_DEBUG <<
"xx..................SENDING OBJECTGRASPED TO hand unit name " << handUnitName <<
".......OK: sending Vitalis............";
106 rsContext->
getHandUnit(handUnitName)->setObjectGrasped(
"Vitalis");
112 NameControlModeMap controlModes;
114 for (
int j = 0; j < jointNames->getSize(); j++)
117 jointNamesAndValues[jointNames->getVariant(j)->getString()] = 0.0;
118 controlModes[jointNames->getVariant(j)->getString()] = eVelocityControl;
130 return "InstallTerminateConditions";
HandUnitInterfacePrx getHandUnit(const std::string &handUnitName)
void removeCondition(ConditionIdentifier conditionId)
Utility function to remove an installed condition on the distributed conditionhandler.
static SubClassRegistry Registry
static VarList createParameterList()
Static helper method to create an empty parameterlist.
ActionEventIdentifier condGraspTimeout
static std::string GetName()
ConditionIdentifier condAllJointVelocitiesLow
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
ActionEventIdentifier setTimeoutEvent(int timeoutDurationMs, const EventPtr &evt)
Utility function to start a timer on the systemObserver and register an event on the conditionHandler...
Class for legacy to stay compatible with old statecharts.
DataFieldIdentifierPtr getDataFieldIdentifier() const
const LogSender::manipulator flush
ConditionIdentifier installCondition(const Term &condition, const EventPtr evt, const std::string &desc="")
Utility function to install a condition on the distributed conditionhandler.
InstallTerminateConditions(XMLStateConstructorParams stateData)
The DatafieldRef class is similar to the ChannelRef, but points to a specific Datafield instead of to...
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
void removeTimeoutEvent(const ActionEventIdentifier &id)
KinematicUnitInterfacePrx kinematicUnitPrx
This file offers overloads of toIce() and fromIce() functions for STL container types.