47 robotStateComponent, VirtualRobot::RobotIO::RobotDescription::eStructure);
50 memoryx::WorkingMemoryInterfacePrx workingMemory =
53 agentInstanceSegment = workingMemory->getAgentInstancesSegment();
56 robotAgent->setSharedRobot(robotStateComponent->getSynchronizedRobot());
57 robotAgent->setName(robotStateComponent->getRobotName());
58 robotAgent->setAgentFilePath(robotStateComponent->getRobotFilename());
61 std::string robotAgentId =
62 agentInstanceSegment->upsertEntityByName(robotAgent->getName(), robotAgent);
63 robotAgent->setId(robotAgentId);
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
static VirtualRobot::RobotPtr createLocalCloneFromFile(RobotStateComponentInterfacePrx robotStatePrx, VirtualRobot::RobotIO::RobotDescription loadMode=VirtualRobot::RobotIO::eFull)
This is a convenience function for createLocalClone, which automatically gets the filename from the R...
void onInitComponent() override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
void onExitComponent() override
std::string const GlobalFrame
Variable of the global coordinate system.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.