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

fix: platform observer didn't receive platform velocity

parent 93eaa7a6
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ namespace armarx ...@@ -38,7 +38,7 @@ namespace armarx
def->topic(odometryPrx); def->topic(odometryPrx);
def->topic(globalPosePrx); def->topic(globalPosePrx);
def->topic(listenerPrx, listenerChannelName, ""); // def->topic(listenerPrx, listenerChannelName, "");
def->component(robotStateComponent); def->component(robotStateComponent);
...@@ -59,6 +59,8 @@ namespace armarx ...@@ -59,6 +59,8 @@ namespace armarx
void PlatformUnit::onConnectComponent() void PlatformUnit::onConnectComponent()
{ {
listenerPrx = getTopic<PlatformUnitListenerPrx>(listenerChannelName);
this->onStartPlatformUnit(); this->onStartPlatformUnit();
} }
......
...@@ -134,7 +134,7 @@ namespace armarx ...@@ -134,7 +134,7 @@ namespace armarx
// legacy interface // legacy interface
const auto& vel = odomVelocity.twist; const auto& vel = odomVelocity.twist;
// listenerPrx->reportPlatformVelocity(vel.linear.x(), vel.linear.y(), vel.angular.z()); listenerPrx->reportPlatformVelocity(vel.linear.x(), vel.linear.y(), vel.angular.z());
} }
} }
......
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