31 #include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
32 #include <RobotAPI/interface/observers/PlatformUnitObserverInterface.h>
33 #include <RobotAPI/interface/units/PlatformUnitInterface.h>
34 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
41 #include <IceUtil/Time.h>
43 #include <RobotAPI/interface/ArViz/Component.h>
56 defineOptionalProperty<std::string>(
57 "PlatformUnitName",
"PlatformUnit",
"Name of the PlatformUnit to use");
58 defineOptionalProperty<std::string>(
"PlatformUnitObserverName",
59 "PlatformUnitObserver",
60 "Name of the PlatformUnitObserver to use");
61 defineOptionalProperty<std::string>(
62 "DebugDrawerTopic",
"DebugDrawerUpdates",
"Name of the DebugDrawerTopic to use");
63 defineOptionalProperty<std::string>(
64 "PriorKnowledgeName",
"PriorKnowledge",
"Name of the PriorKnowledge memory to use");
65 defineOptionalProperty<std::string>(
"GraphNodePoseResolverName",
66 "GraphNodePoseResolver",
67 "Name of the GraphNodePoseResolver to use");
68 defineOptionalProperty<std::string>(
69 "ArVizTopicName",
"ArVizTopic",
"Name of the ar viz topic that should be used");
70 defineOptionalProperty<std::string>(
71 "MemoryNameSystemName",
73 "Name of the Memory Name System that should be used");
84 return "PlatformContext";
92 platformUnitObserverName =
93 getProperty<std::string>(
"PlatformUnitObserverName").getValue();
94 platformUnitDynamicSimulationName =
95 getProperty<std::string>(
"PlatformUnitName").getValue();
96 priorKnowledgeName = getProperty<std::string>(
"PriorKnowledgeName").getValue();
98 usingProxy(platformUnitDynamicSimulationName);
99 usingProxy(platformUnitObserverName);
100 offeringTopic(getProperty<std::string>(
"DebugDrawerTopic").getValue());
101 offeringTopic(
"DebugObserver");
102 usingProxy(priorKnowledgeName);
103 offeringTopic(getProperty<std::string>(
"ArVizTopicName").getValue());
104 usingProxy(getProperty<std::string>(
"GraphNodePoseResolverName").getValue());
105 usingProxyFromProperty(
"MemoryNameSystemName");
114 debugObserverPrx = getTopic<DebugObserverInterfacePrx>(
"DebugObserver");
115 platformUnitPrx = getProxy<PlatformUnitInterfacePrx>(platformUnitDynamicSimulationName);
116 platformUnitObserverPrx =
117 getProxy<PlatformUnitObserverInterfacePrx>(platformUnitObserverName);
118 debugDrawer = getTopic<DebugDrawerInterfacePrx>(
119 getProperty<std::string>(
"DebugDrawerTopic").getValue());
120 priorKnowledgePrx = getProxy<memoryx::PriorKnowledgeInterfacePrx>(priorKnowledgeName);
121 graphNodePoseResolverPrx = getProxy<memoryx::GraphNodePoseResolverInterfacePrx>(
122 getProperty<std::string>(
"GraphNodePoseResolverName").getValue());
123 arvizTopic = getTopic<armarx::viz::TopicPrx>(
124 getProperty<std::string>(
"ArVizTopicName").getValue());
125 getProxyFromProperty(memoryNameSystemPrx,
"MemoryNameSystemName");
140 return platformUnitObserverName;