armarx::armem::wm Namespace Reference

Namespaces

 detail
 

Classes

class  CoreSegment
 Client-side working memory core segment. More...
 
class  Entity
 Client-side working memory entity. More...
 
class  EntityInstance
 Client-side working entity instance. More...
 
class  EntitySnapshot
 Client-side working memory entity snapshot. More...
 
class  FunctionalVisitor
 A Visitor which can be parametrized by std::function instead of inheriting and overriding. More...
 
class  Memory
 Client-side working memory. More...
 
class  ProviderSegment
 Client-side working memory provider segment. More...
 
class  Visitor
 A visitor for the hierarchical memory data structure. More...
 

Typedefs

template<class AronDtoT >
using EntityInstanceBase = base::EntityInstanceBase< AronDtoT, EntityInstanceMetadata >
 Entity instance with a concrete ARON DTO type as data. More...
 
using EntityInstanceData = armarx::aron::data::Dict
 Client-side working memory entity instance data (payload). More...
 
using EntityInstanceDataPtr = armarx::aron::data::DictPtr
 Pointer type of EntityInstanceData. More...
 
using EntityInstanceMetadata = base::EntityInstanceMetadata
 Client-side working memory entity instance metadata. More...
 

Functions

void fromIce (const data::CoreSegment &ice, CoreSegment &coreSegment)
 
void fromIce (const data::Entity &ice, Entity &entity)
 
void fromIce (const data::EntityInstance &ice, EntityInstance &data)
 
void fromIce (const data::EntitySnapshot &ice, EntitySnapshot &snapshot)
 
void fromIce (const data::Memory &ice, Memory &memory)
 
void fromIce (const data::ProviderSegment &ice, ProviderSegment &providerSegment)
 
void toIce (data::CoreSegment &ice, const CoreSegment &coreSegment)
 
void toIce (data::Entity &ice, const Entity &entity)
 
void toIce (data::EntityInstance &ice, const EntityInstance &data)
 
void toIce (data::EntitySnapshot &ice, const EntitySnapshot &snapshot)
 
void toIce (data::Memory &ice, const Memory &memory)
 
void toIce (data::ProviderSegment &ice, const ProviderSegment &providerSegment)
 
void toMemory (Memory &m, const armarx::armem::server::wm::Memory &structure, const std::vector< EntitySnapshot > &e)
 toMemory converts a vector of entity snapshots into a working memory and considers the structure of the memory before More...
 
void toMemory (Memory &m, const std::vector< CoreSegment > &e)
 
void toMemory (Memory &m, const std::vector< Entity > &e)
 
void toMemory (Memory &m, const std::vector< EntityInstance > &e)
 
void toMemory (Memory &m, const std::vector< EntitySnapshot > &e)
 
void toMemory (Memory &m, const std::vector< ProviderSegment > &e)
 

Typedef Documentation

◆ EntityInstanceBase

Entity instance with a concrete ARON DTO type as data.

This is the return type of EntityInstance::withDataAs<AronDtoT>().

Usage example:

#include <RobotAPI/libraries/aron/common/aron/time.aron.generated.h>
duration.microSeconds = 1000;
instance.data() = duration.toAron();
const armarx::arondto::Duration& durationOut = cast.data();
assert(durationOut.microseconds == 1000);

Definition at line 74 of file memory_definitions.h.

◆ EntityInstanceData

Client-side working memory entity instance data (payload).

Definition at line 22 of file memory_definitions.h.

◆ EntityInstanceDataPtr

Pointer type of EntityInstanceData.

Definition at line 26 of file memory_definitions.h.

◆ EntityInstanceMetadata

Client-side working memory entity instance metadata.

Definition at line 18 of file memory_definitions.h.

Function Documentation

◆ fromIce() [1/6]

void fromIce ( const data::CoreSegment &  ice,
CoreSegment coreSegment 
)

Definition at line 50 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ fromIce() [2/6]

void fromIce ( const data::Entity &  ice,
Entity entity 
)

Definition at line 32 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ fromIce() [3/6]

void fromIce ( const data::EntityInstance &  ice,
EntityInstance data 
)

Definition at line 14 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ fromIce() [4/6]

void fromIce ( const data::EntitySnapshot &  ice,
EntitySnapshot snapshot 
)

Definition at line 23 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ fromIce() [5/6]

void fromIce ( const data::Memory &  ice,
Memory memory 
)

Definition at line 59 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ fromIce() [6/6]

void fromIce ( const data::ProviderSegment &  ice,
ProviderSegment providerSegment 
)

Definition at line 41 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [1/6]

void toIce ( data::CoreSegment &  ice,
const CoreSegment coreSegment 
)

Definition at line 46 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [2/6]

void toIce ( data::Entity &  ice,
const Entity entity 
)

Definition at line 28 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [3/6]

void toIce ( data::EntityInstance &  ice,
const EntityInstance data 
)

Definition at line 10 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [4/6]

void toIce ( data::EntitySnapshot &  ice,
const EntitySnapshot snapshot 
)

Definition at line 19 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [5/6]

void toIce ( data::Memory &  ice,
const Memory memory 
)

Definition at line 55 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toIce() [6/6]

void toIce ( data::ProviderSegment &  ice,
const ProviderSegment providerSegment 
)

Definition at line 37 of file ice_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [1/6]

void toMemory ( Memory m,
const armarx::armem::server::wm::Memory structure,
const std::vector< EntitySnapshot > &  e 
)

toMemory converts a vector of entity snapshots into a working memory and considers the structure of the memory before

Parameters
mthe (empty) new memory
structurethe server working memory for structure information
ethe vector of entity snapshots

Definition at line 113 of file memory_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [2/6]

void toMemory ( Memory m,
const std::vector< CoreSegment > &  e 
)

Definition at line 6 of file memory_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [3/6]

void toMemory ( Memory m,
const std::vector< Entity > &  e 
)

Definition at line 31 of file memory_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [4/6]

void toMemory ( Memory m,
const std::vector< EntityInstance > &  e 
)

Definition at line 80 of file memory_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [5/6]

void toMemory ( Memory m,
const std::vector< EntitySnapshot > &  e 
)

Definition at line 52 of file memory_conversions.cpp.

+ Here is the call graph for this function:

◆ toMemory() [6/6]

void toMemory ( Memory m,
const std::vector< ProviderSegment > &  e 
)

Definition at line 16 of file memory_conversions.cpp.

+ Here is the call graph for this function:
armarx::conversions::cast
CvT cast(const auto &pt)
Definition: opencv.h:32
armarx::armem::wm::EntityInstance
Client-side working entity instance.
Definition: memory_definitions.h:32
armarx::armem::base::EntityInstanceBase::withDataAs
EntityInstanceBase< AronDtoT, MetadataT > withDataAs() const
Definition: EntityInstanceBase.h:164
armarx::armem::base::EntityInstanceBase
Data of a single entity instance.
Definition: EntityInstanceBase.h:80
armarx::armem::base::EntityInstanceBase::data
const DataT & data() const
Definition: EntityInstanceBase.h:129
armarx::armem::Duration
armarx::core::time::Duration Duration
Definition: forward_declarations.h:14