30 #include <RobotAPI/interface/units/PlatformUnitInterface.h>
31 #include <RobotAPI/interface/observers/PlatformUnitObserverInterface.h>
32 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
33 #include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
40 #include <IceUtil/Time.h>
41 #include <RobotAPI/interface/ArViz/Component.h>
55 defineOptionalProperty<std::string>(
"PlatformUnitName",
"PlatformUnit",
"Name of the PlatformUnit to use");
56 defineOptionalProperty<std::string>(
"PlatformUnitObserverName",
"PlatformUnitObserver",
"Name of the PlatformUnitObserver to use");
57 defineOptionalProperty<std::string>(
"DebugDrawerTopic",
"DebugDrawerUpdates",
"Name of the DebugDrawerTopic to use");
58 defineOptionalProperty<std::string>(
"PriorKnowledgeName",
"PriorKnowledge",
"Name of the PriorKnowledge memory to use");
59 defineOptionalProperty<std::string>(
"GraphNodePoseResolverName",
"GraphNodePoseResolver",
"Name of the GraphNodePoseResolver to use");
60 defineOptionalProperty<std::string>(
"ArVizTopicName",
"ArVizTopic",
"Name of the ar viz topic that should be used");
61 defineOptionalProperty<std::string>(
"MemoryNameSystemName",
"MemoryNameSystem",
"Name of the Memory Name System that should be used");
71 return "PlatformContext";
77 platformUnitObserverName = getProperty<std::string>(
"PlatformUnitObserverName").getValue();
78 platformUnitDynamicSimulationName = getProperty<std::string>(
"PlatformUnitName").getValue();
79 priorKnowledgeName = getProperty<std::string>(
"PriorKnowledgeName").getValue();
81 usingProxy(platformUnitDynamicSimulationName);
82 usingProxy(platformUnitObserverName);
83 offeringTopic(getProperty<std::string>(
"DebugDrawerTopic").getValue());
84 offeringTopic(
"DebugObserver");
85 usingProxy(priorKnowledgeName);
86 offeringTopic(getProperty<std::string>(
"ArVizTopicName").getValue());
87 usingProxy(getProperty<std::string>(
"GraphNodePoseResolverName").getValue());
88 usingProxyFromProperty(
"MemoryNameSystemName");
96 debugObserverPrx = getTopic<DebugObserverInterfacePrx>(
"DebugObserver");
97 platformUnitPrx = getProxy<PlatformUnitInterfacePrx>(platformUnitDynamicSimulationName);
98 platformUnitObserverPrx = getProxy<PlatformUnitObserverInterfacePrx>(platformUnitObserverName);
99 debugDrawer = getTopic<DebugDrawerInterfacePrx>(getProperty<std::string>(
"DebugDrawerTopic").getValue());
100 priorKnowledgePrx = getProxy<memoryx::PriorKnowledgeInterfacePrx>(priorKnowledgeName);
101 graphNodePoseResolverPrx = getProxy<memoryx::GraphNodePoseResolverInterfacePrx>(getProperty<std::string>(
"GraphNodePoseResolverName").getValue());
102 arvizTopic = getTopic<armarx::viz::TopicPrx>(getProperty<std::string>(
"ArVizTopicName").getValue());
103 getProxyFromProperty(memoryNameSystemPrx,
"MemoryNameSystemName");
113 getConfigIdentifier()));
117 return platformUnitObserverName;