util.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5#include <vector>
6
7#include <Eigen/Geometry>
8
10
11#include "types.h"
12
14{
22
23 std::optional<Eigen::Vector3f>
24 computeMeanPosition(const HumanPose& humanPose,
26
28 {
30 {
31 Eigen::Vector3f positionMM = Eigen::Vector3f::Zero();
33 double distanceThresholdMM = -1.0;
34 std::string modelIDs = std::string();
35
37 const std::string& prefix = std::string());
38
40
42
43 Eigen::Vector3f positionMM = Eigen::Vector3f::Zero();
45 std::optional<double> distanceThresholdMM = std::nullopt;
46 std::set<std::string> modelIDs;
47 };
48
49 std::optional<HumanPose>
50 getNearestHuman(const std::vector<HumanPose>& humanPoses,
52
53 bool checkVisibility(const HumanPose& pose, std::vector<std::string> labels, float threshold);
54
55 std::optional<Eigen::Vector3f> calculateDirectionOfHuman(const HumanPose& pose);
56
57
58 std::optional<Eigen::Isometry2f> calculatePose(const HumanPose& humanPose);
59
60} // namespace armarx::armem::human
std::optional< Eigen::Vector3f > computeMeanPosition(const HumanPose &humanPose, KeyPointCoordinateSystem coordSystem)
Definition util.cpp:31
std::optional< Eigen::Isometry2f > calculatePose(const HumanPose &humanPose)
Definition util.cpp:273
std::optional< Eigen::Vector3f > calculateDirectionOfHuman(const HumanPose &pose)
Definition util.cpp:155
std::optional< HumanPose > getNearestHuman(const std::vector< HumanPose > &humanPoses, const NearestHumanParameters &parameters)
Definition util.cpp:83
bool checkVisibility(const HumanPose &pose, std::vector< std::string > labels, const float threshold)
Definition util.cpp:236
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
void addTo(armarx::PropertyDefinitionsPtr &def, const std::string &prefix=std::string())
Definition util.cpp:114
KeyPointCoordinateSystem coordSystem
Definition util.h:44
std::optional< double > distanceThresholdMM
Definition util.h:45
struct armarx::armem::human::NearestHumanParameters::Properties properties
std::set< std::string > modelIDs
Definition util.h:46