Skip to content
Snippets Groups Projects
Commit 3c2eee4a authored by Fabian Reister's avatar Fabian Reister
Browse files

fixing conversion of aron event

parent 3bdae14c
No related branches found
No related tags found
1 merge request!22emitting UserAbortEvent instead of GoalReached on stop()
......@@ -2,6 +2,7 @@
#include <mutex>
#include <type_traits>
#include "ArmarXCore/core/exceptions/local/ExpressionException.h"
#include <ArmarXCore/core/logging/Logging.h>
#include <ArmarXCore/core/services/tasks/PeriodicTask.h>
......@@ -54,6 +55,7 @@ namespace armarx::navigation::client
return;
}
ARMARX_TRACE;
handleEvents(qResult.memory);
}
......@@ -64,7 +66,11 @@ namespace armarx::navigation::client
static_assert(std::is_base_of<armarx::aron::codegenerator::cpp::AronGeneratedClass,
AronEventT>::value);
const auto dto = AronEventT::FromAron(entity.data());
// see events::Writer::storeImpl
const auto dataDict = aron::data::Dict::DynamicCastAndCheck(entity.data()->getElement("data"));
ARMARX_CHECK_NOT_NULL(dataDict);
const auto dto = AronEventT::FromAron(dataDict);
core::fromAron(dto, bo);
return bo;
}
......
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