27#include <VirtualRobot/Robot.h>
28#include <VirtualRobot/RobotNodeSet.h>
36GraspingWithTorques::SubClassRegistry
55 VirtualRobot::RobotNodeSetPtr nodeSet =
62 for (
size_t i = 0; i < nodeSet->getSize(); i++)
64 jointNames.
addVariant(nodeSet->getNode(i)->getName());
66 context->
getDatafieldRef(tempChannelRef, nodeSet->getNode(i)->getName()));
70 setLocal(
"jointVelocitiesDatafields", dataFields);
83 return "GraspingWithTorques";
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
static SubClassRegistry Registry
static std::string GetName()
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
GraspingWithTorques(XMLStateConstructorParams stateData)
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
VirtualRobot::RobotPtr remoteRobot
std::string getKinematicUnitObserverName()
The SingleTypeVariantList class is a subclass of VariantContainer and is comparable to a std::vector<...
void addVariant(const Variant &variant)
ContextType * getContext() const
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.
void setLocal(std::string const &key, const Variant &value)
setLocal() sets a local parameter.
DatafieldRefPtr getDatafieldRef(const DataFieldIdentifier &datafieldIdentifier) override
ChannelRefPtr getChannelRef(const std::string &observerName, const std::string &channelName) override
XMLStateTemplate(const XMLStateConstructorParams ¶ms)
#define ARMARX_VERBOSE
The logging level for verbose information.
const VariantTypeId String
const VariantTypeId DatafieldRef
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< ChannelRef > ChannelRefPtr
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr