34 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
35 if (!getProperty<std::string>(
"WorkingMemoryName").getValue().
empty())
37 usingProxy(getProperty<std::string>(
"WorkingMemoryName").getValue());
44 robotStateComponent = getProxy<RobotStateComponentInterfacePrx>(getProperty<std::string>(
"RobotStateComponentName").getValue());
46 if (!getProperty<std::string>(
"WorkingMemoryName").getValue().
empty())
48 memoryx::WorkingMemoryInterfacePrx workingMemory = getProxy<memoryx::WorkingMemoryInterfacePrx>(getProperty<std::string>(
"WorkingMemoryName").getValue());
49 agentInstanceSegment = workingMemory->getAgentInstancesSegment();
52 robotAgent->setSharedRobot(robotStateComponent->getSynchronizedRobot());
53 robotAgent->setName(robotStateComponent->getRobotName());
54 robotAgent->setAgentFilePath(robotStateComponent->getRobotFilename());
57 std::string robotAgentId = agentInstanceSegment->upsertEntityByName(robotAgent->getName(), robotAgent);
58 robotAgent->setId(robotAgentId);