33InstallTerminateConditions::SubClassRegistry
45 ARMARX_VERBOSE <<
"Entering InstallTerminateConditions::onEnter()";
52 ARMARX_DEBUG <<
"Installing allJointVelocitiesLow condition, threshold: " << thresholdVelocity
73 Term allJointVelocitiesLow_NEW;
79 for (
int i = 0; i < dataFieldsList->getSize(); i++)
81 allJointVelocitiesLow_NEW =
82 allJointVelocitiesLow_NEW &&
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");
120 NameValueMap jointNamesAndValues;
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";
The DatafieldRef class is similar to the ChannelRef, but points to a specific Datafield instead of to...
DataFieldIdentifierPtr getDataFieldIdentifier() const
InstallTerminateConditions(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()
ConditionIdentifier condAllJointVelocitiesLow
static SubClassRegistry Registry
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
ActionEventIdentifier condGraspTimeout
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
Literals are part of the user front end of the ArmarX condition mechanism.
static VarList createParameterList()
Static helper method to create an empty parameterlist.
KinematicUnitInterfacePrx kinematicUnitPrx
HandUnitInterfacePrx getHandUnit(const std::string &handUnitName)
ContextType * getContext() const
void removeCondition(ConditionIdentifier conditionId)
Utility function to remove an installed condition on the distributed conditionhandler.
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.
ConditionIdentifier installCondition(const Term &condition, const EventPtr evt, const std::string &desc="")
Utility function to install a condition on the distributed conditionhandler.
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.
Terms are part of the user front end of the ArmarX condition mechanism.
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
const LogSender::manipulator flush
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr