Skip to content
Snippets Groups Projects
Verified Commit 92e32f9d authored by Christian Dreher's avatar Christian Dreher
Browse files

fix: Align initalization order with definition order to fix build problems from warnings

parent 00ddf9b8
No related branches found
No related merge requests found
......@@ -58,8 +58,8 @@ namespace armarx
ArticulatedObjectLocalizerDynamicSimulation::ArticulatedObjectLocalizerDynamicSimulation()
{
addPlugin(articulatedObjectWriterPlugin);
addPlugin(articulatedObjectReaderPlugin);
addPlugin(articulatedObjectWriterPlugin);
addPlugin(articulatedObjectReaderPlugin);
}
void
......@@ -113,8 +113,8 @@ namespace armarx
void
ArticulatedObjectLocalizerDynamicSimulation::setupObjects()
{
const auto descriptions =
articulatedObjectReaderPlugin->get().queryDescriptions(armarx::DateTime::Now(), std::nullopt);
const auto descriptions = articulatedObjectReaderPlugin->get().queryDescriptions(
armarx::DateTime::Now(), std::nullopt);
std::unordered_map<std::string, std::shared_ptr<VirtualRobot::Robot>> newKnownObjects;
......@@ -200,8 +200,8 @@ namespace armarx
.xml = PackagePath(armarx::ArmarXDataPath::getProject(
{"PriorKnowledgeData"}, obj.getFilename()),
obj.getFilename()),
.info = {},
.visualization = {}},
.visualization = {},
.info = {}},
.instance = "", // TODO(fabian.reister):
.config =
{
......@@ -262,7 +262,8 @@ namespace armarx
armarx::armem::articulated_object::ArticulatedObject obj =
convert(*robot, armarx::DateTime::Now());
obj.instance = static_cast<std::string>("0"); // we assume that there is only one object of a type
obj.instance =
static_cast<std::string>("0"); // we assume that there is only one object of a type
ARMARX_DEBUG << "Publishing new state for object `" << name << "`, instance id: `"
<< obj.instance << "`";
......
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