Go to the documentation of this file.
3 #include <SimoxUtility/math/scale_value.h>
14 defs->optional(
enabled, prefix +
"enabled",
15 "If true, object poses decay over time when not localized anymore.");
17 "Duration after latest localization before decay starts.");
19 "How long to reach minimal confidence.");
21 "Confidence when decay starts.");
23 "Confidence after decay duration.");
25 "Remove objects whose confidence is lower than this value.");
48 float Decay::calculateConfidence(
const DateTime& localization,
const DateTime& now)
const
50 const float duration =
static_cast<float>((now - localization).toSecondsDouble());
61 return simox::math::scale_value_from_to(
armarx::RemoteGui::Client::FloatSlider maxConfidence
std::vector< ObjectPose > ObjectPoseSeq
void update(Decay &decay)
void updateConfidence(objpose::ObjectPose &pose, const DateTime &now) const
void updateConfidences(objpose::ObjectPoseSeq &objectPoses, const DateTime &now) const
Models decay of object localizations by decreasing the confidence the longer the object was not local...
GridLayout & add(Widget const &child, Pos pos, Span span=Span{1, 1})
void setValue(float newValue)
std::vector< T > max(const std::vector< T > &v1, const std::vector< T > &v2)
void setRange(float min, float max)
void setValue(float newValue)
float removeObjectsBelowConfidence
armarx::RemoteGui::Client::CheckBox enabled
armarx::RemoteGui::Client::FloatSlider minConfidence
uint32_t Label
Type of an object label.
bool isStatic
Whether object is static. Static objects don't decay.
float delaySeconds
Duration after latest localization before decay starts.
armarx::RemoteGui::Client::FloatSpinBox delaySeconds
float durationSeconds
How long to reach minConfidence.
void setDecimals(int decimals)
void setup(const Decay &decay)
void setLabel(std::string const &text)
void setRange(float min, float max)
Represents a point in time.
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="decay.")
armarx::RemoteGui::Client::FloatSpinBox durationSeconds
void setValue(bool newValue)
std::optional< ObjectAttachmentInfo > attachment
Attachment information.
armarx::RemoteGui::Client::GroupBox group
float confidence
Confidence in [0, 1] (1 = full, 0 = none).
An object pose as stored by the ObjectPoseStorage.
armarx::RemoteGui::Client::FloatSlider removeObjectsBelowConfidence
DateTime timestamp
Source timestamp.