8#include <RobotAPI/libraries/armem_task_outcome/aron/TaskOutcome.aron.generated.h>
37 const std::string& provider,
45 const std::string& provider,
59 armarx::task_outcome::arondto::TaskOutcome outcomeAron;
60 toAron(outcomeAron, outcome);
65 .withProviderSegmentName(provider)
66 .withEntityName(outcome.taskName);
71 .instancesData = {outcomeAron.toAron()},
72 .referencedTime = referencedTime,
82 ARMARX_DEBUG <<
"Committing task outcome for '" << outcome.taskName
83 <<
"' (type: " <<
static_cast<int>(outcome.taskType) <<
")";
The memory name system (MNS) client.
CommitResult commit(const Commit &commit) const
Writes a Commit to the memory.
armem::client::Writer & memoryWriter()
void connect(armarx::armem::client::MemoryNameSystem &mns)
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
bool commitTaskOutcome(const TaskOutcome &outcome, const std::string &provider, const armem::Time &referencedTime)
bool commitTaskOutcomes(const std::vector< TaskOutcome > &outcomes, const std::string &provider, const armem::Time &referencedTime)
~TaskOutcomeWriter() override
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
#define ARMARX_VERBOSE
The logging level for verbose information.
void toAron(armarx::task_outcome::arondto::TaskOutcomeType &dto, const TaskOutcomeType &bo)
armarx::core::time::DateTime Time
const armem::MemoryID TaskOutcomeCoreSegmentID
std::string GetHandledExceptionString()
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
A bundle of updates to be sent to the memory.
An update of an entity for a specific point in time.