Go to the documentation of this file.
30 using namespace FindAndGraspObjectGroup;
33 InstallTerminateConditions::SubClassRegistry
45 ARMARX_VERBOSE <<
"Entering InstallTerminateConditions::onEnter()";
48 float timeoutGrasp = getInput<float>(
"timeoutGrasp");
51 float thresholdVelocity = getInput<float>(
"thresholdVelocity");
52 ARMARX_DEBUG <<
"Installing allJointVelocitiesLow condition, threshold: " << thresholdVelocity
73 Term allJointVelocitiesLow_NEW;
76 getInput<SingleTypeVariantList>(
"jointVelocitiesDatafields");
79 for (
int i = 0; i < dataFieldsList->getSize(); i++)
81 allJointVelocitiesLow_NEW =
82 allJointVelocitiesLow_NEW &&
89 installCondition(allJointVelocitiesLow_NEW, createEvent<EvAllJointVelocitiesLow>());
105 std::string handUnitName = getInput<std::string>(
"handUnitName");
106 ARMARX_DEBUG <<
"xx..................SENDING OBJECTGRASPED TO hand unit name " << handUnitName
107 <<
"...................";
113 ARMARX_DEBUG <<
"xx..................SENDING OBJECTGRASPED TO hand unit name "
114 << handUnitName <<
".......OK: sending Vitalis............";
115 rsContext->
getHandUnit(handUnitName)->setObjectGrasped(
"Vitalis");
121 NameControlModeMap controlModes;
123 for (
int j = 0; j < jointNames->getSize(); j++)
126 jointNamesAndValues[jointNames->getVariant(j)->getString()] =
128 controlModes[jointNames->getVariant(j)->getString()] = eVelocityControl;
141 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)
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
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...
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.