Skip to content
Snippets Groups Projects
Commit 163a912c authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Merge remote-tracking branch 'origin/master' into...

Merge remote-tracking branch 'origin/master' into feature/move-laser-scanner-feature-extraction-to-navigation
parents 24bc76cc 07870f31
No related branches found
No related tags found
1 merge request!327Remove laser scanner features memory
This commit is part of merge request !327. Comments created here will be created in the context of that merge request.
......@@ -54,15 +54,19 @@ namespace armarx::aron::type
{
memberTypes[key] = FromAronDTO(*t, path.withElement(key));
}
if (o.parent)
{
extends = FromAronObjectDTO(o.parent);
}
}
ObjectPtr Object::FromAronObjectDTO(const type::dto::AronObjectPtr& aron)
ObjectPtr Object::FromAronObjectDTO(const type::dto::AronObjectPtr& aron, const aron::Path& path)
{
if (!aron)
{
return nullptr;
}
return std::make_shared<Object>(*aron);
return std::make_shared<Object>(*aron, path);
}
type::dto::AronObjectPtr Object::ToAronObjectDTO(const ObjectPtr& aron)
......@@ -141,6 +145,7 @@ namespace armarx::aron::type
ARMARX_CHECK_NOT_NULL(p);
type::dto::AronObjectPtr ex = p->toAronObjectDTO();
ARMARX_CHECK_NOT_NULL(ex);
aron->parent = ex;
extends = p;
}
......
......@@ -48,7 +48,8 @@ namespace armarx::aron::type
Object(const std::string&, const std::vector<std::string>& templates = {}, const std::vector<std::string>& templateInstantiations = {}, const std::map<std::string, VariantPtr>& = {}, const Path& = Path());
Object(const type::dto::AronObject&, const Path& = Path());
static ObjectPtr FromAronObjectDTO(const type::dto::AronObjectPtr&);
static ObjectPtr FromAronObjectDTO(const type::dto::AronObjectPtr&,
const aron::Path& path = aron::Path());
static type::dto::AronObjectPtr ToAronObjectDTO(const ObjectPtr&);
// public member functions
......
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