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>(
45 getProperty<std::string>(
"RobotStateComponentName").getValue());
47 robotStateComponent, VirtualRobot::RobotIO::RobotDescription::eStructure);
48 if (!getProperty<std::string>(
"WorkingMemoryName").getValue().
empty())
50 memoryx::WorkingMemoryInterfacePrx workingMemory =
51 getProxy<memoryx::WorkingMemoryInterfacePrx>(
52 getProperty<std::string>(
"WorkingMemoryName").getValue());
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);