Skip to content
Snippets Groups Projects
Commit 8367858d authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Merge branch 'fix/mns-reading-properties' into 'master'

Fix/mns reading properties

See merge request ArmarX/RobotAPI!206
parents eeb60f6f 5b44172e
No related branches found
No related tags found
No related merge requests found
#include "Plugin.h"
#include <RobotAPI/libraries/armem/client/MemoryNameSystem.h>
#include <RobotAPI/libraries/armem/core/error.h>
#include <RobotAPI/libraries/armem/core/ice_conversions.h>
......@@ -44,6 +45,9 @@ namespace armarx::armem::client::plugins
void Plugin::preOnInitComponent()
{
parent<Component>().getProperty(memoryNameSystemName, makePropertyName(PROPERTY_MNS_NAME_NAME));
parent<Component>().getProperty(memoryNameSystemEnabled, makePropertyName(PROPERTY_MNS_ENABLED_NAME));
if (isMemoryNameSystemEnabled())
{
parent().usingProxy(getMemoryNameSystemName());
......
......@@ -60,7 +60,7 @@ namespace armarx::armem::client::plugins
mns::MemoryNameSystemInterfacePrx getMemoryNameSystemProxy();
protected:
private:
/// The MNS client.
MemoryNameSystem memoryNameSystem;
......@@ -69,8 +69,6 @@ namespace armarx::armem::client::plugins
std::string memoryNameSystemName = "MemoryNameSystem";
protected:
static constexpr const char* PROPERTY_MNS_ENABLED_NAME = "mns.MemoryNameSystemEnabled";
static constexpr const char* PROPERTY_MNS_NAME_NAME = "mns.MemoryNameSystemName";
......
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