Skip to content
Snippets Groups Projects
Commit 6bc8c5ad authored by armar-user's avatar armar-user
Browse files

PlatformUnit: using standard way of offering topic

parent 71ade30b
No related branches found
No related tags found
1 merge request!295Simplified usage of PlatformUnit-related topics
......@@ -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();
}
......
......@@ -117,7 +117,7 @@ namespace armarx
protected:
std::string listenerChannelName;
// std::string listenerChannelName;
/**
* PlatformUnitListener proxy for publishing state updates
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment