34 #define DEFAULT_SETTINGS_AGENT_INSTANCES_SEGMENT_NAME "agentInstances"
41 void CoupledInteractionGroupStatechartContext::onInitStatechartContext()
48 usingProxy(getProperty<std::string>(
"KinematicUnitName").getValue());
49 usingProxy(getProperty<std::string>(
"KinematicUnitObserverName").getValue());
50 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
51 usingProxy(getProperty<std::string>(
"TCPControlUnitName").getValue());
52 usingProxy(getProperty<std::string>(
"TCPControlUnitObserverName").getValue());
53 usingProxy(getProperty<std::string>(
"WorkingMemoryName").getValue());
54 usingProxy(getProperty<std::string>(
"ObjectMemoryObserverName").getValue());
55 usingProxy(getProperty<std::string>(
"PriorKnowledgeName").getValue());
56 usingProxy(getProperty<std::string>(
"ViewSelectionName").getValue());
57 usingProxy(getProperty<std::string>(
"ForceTorqueObserverName").getValue());
58 platformUnitObserverName = getProperty<std::string>(
"PlatformUnitObserverName").getValue();
59 platformUnitName = getProperty<std::string>(
"PlatformUnitName").getValue();
60 ARMARX_INFO <<
"Using platform unit:" << platformUnitName <<
", platform observer:" << platformUnitObserverName;
62 usingProxy(platformUnitName);
63 usingProxy(platformUnitObserverName);
65 offeringTopic(
"DebugDrawerUpdates");
69 void CoupledInteractionGroupStatechartContext::onConnectStatechartContext()
81 robotStateComponent = getProxy<RobotStateComponentInterfacePrx>(getProperty<std::string>(
"RobotStateComponentName").getValue());
82 kinematicUnitPrx = getProxy<KinematicUnitInterfacePrx>(getProperty<std::string>(
"KinematicUnitName").getValue());
83 kinematicUnitObserverPrx = getProxy<KinematicUnitObserverInterfacePrx>(getProperty<std::string>(
"KinematicUnitObserverName").getValue());
84 tcpControlPrx = getProxy<TCPControlUnitInterfacePrx>(getProperty<std::string>(
"TCPControlUnitName").getValue());
85 tcpControlUnitObserverPrx = getProxy<TCPControlUnitObserverInterfacePrx>(getProperty<std::string>(
"TCPControlUnitObserverName").getValue());
86 workingMemoryProxy = getProxy<memoryx::WorkingMemoryInterfacePrx>(getProperty<std::string>(
"WorkingMemoryName").getValue());
87 objectMemoryObserverProxy = getProxy<memoryx::ObjectMemoryObserverInterfacePrx>(getProperty<std::string>(
"ObjectMemoryObserverName").getValue());
88 priorKnowledgeProxy = getProxy<memoryx::PriorKnowledgeInterfacePrx>(getProperty<std::string>(
"PriorKnowledgeName").getValue());
91 platformUnitPrx = getProxy<PlatformUnitInterfacePrx>(platformUnitName);
92 platformUnitObserverPrx = getProxy<PlatformUnitObserverInterfacePrx>(platformUnitObserverName);
93 viewSelectionProxy = getProxy<ViewSelectionInterfacePrx>(getProperty<std::string>(
"ViewSelectionName").getValue());
94 ftUnitObserverPrx = getProxy<ForceTorqueUnitObserverInterfacePrx>(getProperty<std::string>(
"ForceTorqueObserverName").getValue());
97 remoteRobot.reset(
new RemoteRobot(robotStateComponent->getSynchronizedRobot()));
99 debugDrawerTopicProxy = getTopic<armarx::DebugDrawerInterfacePrx>(
"DebugDrawerUpdates");
112 if (agentInstancesProxy)
114 agent = AgentInstancePtr::dynamicCast(agentInstancesProxy->getAgentInstanceByName(
"Armar3"));
137 robotPose.block(0, 3, 3, 1) = agentPosition->toEigen();
142 if (agentOrientation)
144 robotPose.block(0, 0, 3, 3) = agentOrientation->toEigen();
154 getConfigIdentifier()));