Skip to content
Snippets Groups Projects
Commit 9366c193 authored by Fabian Reister's avatar Fabian Reister
Browse files

person target provider: properly setting properties

parent dd83300c
No related branches found
No related tags found
No related merge requests found
...@@ -63,12 +63,12 @@ namespace armarx::view_selection::components::person_target_provider ...@@ -63,12 +63,12 @@ namespace armarx::view_selection::components::person_target_provider
// Add an optionalproperty. // Add an optionalproperty.
// def->optional(properties.boxLayerName, "p.box.LayerName", "Name of the box layer in ArViz."); // def->optional(properties.boxLayerName, "p.box.LayerName", "Name of the box layer in ArViz.");
// def->optional(properties.numBoxes, "p.box.Number", "Number of boxes to draw in ArViz."); // def->optional(properties.numBoxes, "p.box.Number", "Number of boxes to draw in ArViz.");
def->optional(properties.providerName, "p.box.ProviderName", "OpenNIPointCloudProvider");
def->optional(properties.objectProviderDynamic, "p.objectProviderDynamic", "");
def->optional(properties.trackTime, def->optional(properties.trackTime,
"p.trackTime", "p.trackTime",
"Roughly the expected average tracking time of an object in seconds."); "Roughly the expected average tracking time of an object in seconds.");
def->optional(properties.robotName, "p.robotName", ""); def->optional(properties.robotName, "p.robotName", "");
def->optional(properties.providerName, "p.providerName", "");
def->optional(properties.headKeypoint, "p.headKeypoint", "");
return def; return def;
} }
...@@ -157,7 +157,7 @@ namespace armarx::view_selection::components::person_target_provider ...@@ -157,7 +157,7 @@ namespace armarx::view_selection::components::person_target_provider
Component::getHumans() Component::getHumans()
{ {
armarx::armem::human::client::Reader::Query query{ armarx::armem::human::client::Reader::Query query{
.providerName = "OpenNIPointCloudProvider", .providerName = properties.providerName,
.timestamp = armarx::Clock::Now(), .timestamp = armarx::Clock::Now(),
}; };
armarx::core::time::StopWatch sw; armarx::core::time::StopWatch sw;
......
...@@ -134,6 +134,8 @@ namespace armarx::view_selection::components::person_target_provider ...@@ -134,6 +134,8 @@ namespace armarx::view_selection::components::person_target_provider
double trackTime = 5.0f; double trackTime = 5.0f;
std::string targetLayerName = "targets"; std::string targetLayerName = "targets";
std::string headKeypoint = "Head";
}; };
Properties properties; Properties properties;
/* Use a mutex if you access variables from different threads /* Use a mutex if you access variables from different threads
......
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