diff --git a/source/Navigation/components/NavigationMemory/CMakeLists.txt b/source/Navigation/components/NavigationMemory/CMakeLists.txt index 19721ffb181564c579749cd4dce0730d98b7fccf..ae5f287c005284fa10197b3dcc96960b75128e15 100644 --- a/source/Navigation/components/NavigationMemory/CMakeLists.txt +++ b/source/Navigation/components/NavigationMemory/CMakeLists.txt @@ -31,6 +31,8 @@ armarx_add_component( ## ${PROJECT_NAME}Interfaces # For ice interfaces from this package. # This component ## NavigationMemoryInterfaces # If you defined a component ice interface above. + Navigation::Graph + Navigation::Location SOURCES NavigationMemory.cpp diff --git a/source/Navigation/components/NavigationMemory/NavigationMemory.cpp b/source/Navigation/components/NavigationMemory/NavigationMemory.cpp index 7b4bb34fa588459c42dd294eccbd322474624813..c914b239ceaed33b9ea008533e8dadcd81ccfde1 100644 --- a/source/Navigation/components/NavigationMemory/NavigationMemory.cpp +++ b/source/Navigation/components/NavigationMemory/NavigationMemory.cpp @@ -24,6 +24,10 @@ #include <Navigation/libraries/core/aron/Trajectory.aron.generated.h> #include <Navigation/libraries/core/aron/Twist.aron.generated.h> +#include <armarx/navigation/location/aron/Location.aron.generated.h> +#include <armarx/navigation/location/constants.h> +#include <armarx/navigation/graph/aron/Graph.aron.generated.h> +#include <armarx/navigation/graph/constants.h> // Include headers you only need in function definitions in the .cpp. @@ -88,6 +92,12 @@ namespace armarx workingMemory.addCoreSegment("Events"); //, armem::example::ExampleData::toAronType()); // workingMemory.addCoreSegment("Exceptions"); //, armem::example::ExampleData::toAronType()); + + + workingMemory.addCoreSegment(nav::loc::coreSegmentName, + nav::loc::arondto::Location::toAronType()); + workingMemory.addCoreSegment(nav::graph::coreSegmentName, + nav::graph::arondto::Graph::toAronType()); } diff --git a/source/armarx/navigation/graph/aron/Graph.xml b/source/armarx/navigation/graph/aron/Graph.xml index 38d9fe74668c3d9709a292062c5a1716720aea53..69d0f78ad18143fe4fc1291004bfa09919bc70fb 100644 --- a/source/armarx/navigation/graph/aron/Graph.xml +++ b/source/armarx/navigation/graph/aron/Graph.xml @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8" ?> <AronTypeDefinition> <CodeIncludes> - <!--Include include="armarx/navigation/locations/aron/Location.aron.generated.h" /--> + <!--Include include="armarx/navigation/location/aron/Location.aron.generated.h" /--> </CodeIncludes> <AronIncludes> - <!-- <Include include="<armarx/navigation/locations/aron/Location.xml>" /> --> + <!-- <Include include="<armarx/navigation/location/aron/Location.xml>" /> --> </AronIncludes> <GenerateTypes> - <Object name='armarx::nav::graphs::arondto::Graph'> + <Object name='armarx::nav::graph::arondto::Graph'> <!--ObjectChild key='location'> - <armarx::nav::locs::arondto::Location /> + <armarx::nav::loc::arondto::Location /> </ObjectChild--> </Object> diff --git a/source/armarx/navigation/graph/constants.cpp b/source/armarx/navigation/graph/constants.cpp index e1b0ee56699816d740a8d7cbe5bc1e376036ec78..543952eec0a691c399ad1e78c6af7deb1be0fd65 100644 --- a/source/armarx/navigation/graph/constants.cpp +++ b/source/armarx/navigation/graph/constants.cpp @@ -1,11 +1,9 @@ -#include "aron_conversions.h" +#include "constants.h" namespace armarx::nav { - void core::test() - { + const std::string graph::coreSegmentName = "Graph"; - } } diff --git a/source/armarx/navigation/graph/constants.h b/source/armarx/navigation/graph/constants.h index 0897a62a14b5f1cb64bb7638afae375ae934020e..7e518c7e31c4f8553f194951a756aa4c8da791b1 100644 --- a/source/armarx/navigation/graph/constants.h +++ b/source/armarx/navigation/graph/constants.h @@ -21,10 +21,12 @@ #pragma once +#include <string> -namespace armarx::nav::core + +namespace armarx::nav::graph { - void test(); + extern const std::string coreSegmentName; } diff --git a/source/armarx/navigation/location/aron/Location.xml b/source/armarx/navigation/location/aron/Location.xml index eb3cc69694a5afa77c9905d45c27d5f6d3e5aef0..4bc0d14fcf6a22a63c9e0f75a91707a406b39a34 100644 --- a/source/armarx/navigation/location/aron/Location.xml +++ b/source/armarx/navigation/location/aron/Location.xml @@ -15,7 +15,7 @@ --> - <Object name='armarx::nav::locs::arondto::ObjectRelativeLocation'> + <Object name='armarx::nav::loc::arondto::ObjectRelativeLocation'> <ObjectChild key='objectInstanceID'> <armarx::armem::arondto::MemoryID /> @@ -28,14 +28,14 @@ </Object> - <Object name='armarx::nav::locs::arondto::Location'> + <Object name='armarx::nav::loc::arondto::Location'> <ObjectChild key='globalRobotPose'> <Pose /> </ObjectChild> <ObjectChild key='relativeToObject'> - <armarx::nav::locs::arondto::ObjectRelativeLocation optional="true" /> + <armarx::nav::loc::arondto::ObjectRelativeLocation optional="true" /> </ObjectChild> </Object> diff --git a/source/armarx/navigation/location/constants.cpp b/source/armarx/navigation/location/constants.cpp index d35921fdfa4dab9065db84466266e72caf3b0d93..4a9a4ca4dfdb70c62f28835c526e922ca833bfcc 100644 --- a/source/armarx/navigation/location/constants.cpp +++ b/source/armarx/navigation/location/constants.cpp @@ -1,11 +1,9 @@ -#include "aron_conversions.h" +#include "constants.h" namespace armarx::nav { - void coree::test() - { + const std::string loc::coreSegmentName = "Location"; - } } diff --git a/source/armarx/navigation/location/constants.h b/source/armarx/navigation/location/constants.h index 44692727b775dd29659fecaf1de744692f10cf1c..31d558d0834e91a374e6a0eacb4e2265b9168bd5 100644 --- a/source/armarx/navigation/location/constants.h +++ b/source/armarx/navigation/location/constants.h @@ -21,10 +21,12 @@ #pragma once +#include <string> -namespace armarx::nav::coree + +namespace armarx::nav::loc { -void test(); + extern const std::string coreSegmentName; }