diff --git a/source/RobotAPI/components/units/PlatformUnit.cpp b/source/RobotAPI/components/units/PlatformUnit.cpp index 83da0bb8486a38a075e10c9c6fae5a273c254f51..a5414a34e838b6fd2268f7bfb26ddc527530624f 100644 --- a/source/RobotAPI/components/units/PlatformUnit.cpp +++ b/source/RobotAPI/components/units/PlatformUnit.cpp @@ -38,7 +38,7 @@ namespace armarx def->topic(odometryPrx); def->topic(globalPosePrx); - // def->topic(listenerPrx, listenerChannelName, ""); + def->topic(listenerPrx, "PlatformState"); def->component(robotStateComponent); @@ -50,17 +50,12 @@ namespace armarx { std::string platformName = getProperty<std::string>("PlatformName").getValue(); - listenerChannelName = platformName + "State"; - offeringTopic(listenerChannelName); - this->onInitPlatformUnit(); } void PlatformUnit::onConnectComponent() { - listenerPrx = getTopic<PlatformUnitListenerPrx>(listenerChannelName); - this->onStartPlatformUnit(); } diff --git a/source/RobotAPI/components/units/PlatformUnit.h b/source/RobotAPI/components/units/PlatformUnit.h index 1b0b9499a4f50e6ec0b64631aaf9f85c9fa5bca5..ee3c2a6999c0ba4f1f9560106f818826162c432f 100644 --- a/source/RobotAPI/components/units/PlatformUnit.h +++ b/source/RobotAPI/components/units/PlatformUnit.h @@ -117,7 +117,7 @@ namespace armarx protected: - std::string listenerChannelName; + // std::string listenerChannelName; /** * PlatformUnitListener proxy for publishing state updates */