27#include <VirtualRobot/Grasping/GraspSet.h>
31#include <MemoryX/interface/components/PriorKnowledgeInterface.h>
32#include <MemoryX/interface/observers/ObjectMemoryObserverInterface.h>
59 memoryx::PersistentObjectClassSegmentBasePrx classesSegmentPrx =
61 memoryx::CommonStorageInterfacePrx databasePrx = context->
priorMemoryProxy->getCommonStorage();
63 memoryx::EntityBasePtr entity =
68 VirtualRobot::ManipulationObjectPtr mo = simoxWrapper->getManipulationObject();
85 VirtualRobot::GraspSetPtr gs = mo->getGraspSet(graspSetName);
91 ARMARX_DEBUG <<
"VisualServoObject: getting grasp with name: " << graspName <<
flush;
118 const std::string& inputName)
122 ChannelRefBasePtr objectChannel =
127 setLocal(objectChannelName, objectChannel);
128 ARMARX_DEBUG <<
"setLocal() for objectName: " << objectName
129 <<
"; objectChannelName: " << objectChannelName;
141 return "VisualServoObject";
VirtualRobot::GraspPtr graspDefinition
memoryx::PriorKnowledgeInterfacePrx priorMemoryProxy
memoryx::ObjectMemoryObserverInterfacePrx objectMemoryObserver
static SubClassRegistry Registry
VisualServoObject(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()
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
void setLocalObjectChannelFromInput(const std::string &objectChannelName, const std::string &inputName)
static XMLStateFactoryBasePtr CreateInstance(XMLStateConstructorParams stateData)
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.
std::enable_if_t< std::is_base_of_v< VariantDataClass, T >, IceInternal::Handle< T > > getLocal(const std::string &key) const
getLocal can be used to access a specific input parameter.
void setLocal(std::string const &key, const Variant &value)
setLocal() sets a local parameter.
XMLStateTemplate(const XMLStateConstructorParams ¶ms)
SimoxObjectWrapper offers a simplified access to the Simox ManipulationObject (i.e visualization,...
GridFileManager provides utility functions for working with files in Mongo GridFS and links to them s...
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
#define ARMARX_VERBOSE
The logging level for verbose information.
This file offers overloads of toIce() and fromIce() functions for STL container types.
const LogSender::manipulator flush
IceInternal::Handle< XMLStateFactoryBase > XMLStateFactoryBasePtr
IceInternal::Handle< SimoxObjectWrapper > SimoxObjectWrapperPtr
IceInternal::Handle< ObjectClass > ObjectClassPtr
std::shared_ptr< GridFileManager > GridFileManagerPtr