VoteSpecifier.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include "Object.hpp"
21 #include "Quaternion.hpp"
22 #include <boost/shared_ptr.hpp>
23 #include <string>
24 
25 namespace ISM {
26 
31  {
41  double radius;
43  std::string patternName;
45  std::string objectType;
47  std::string observedId;
51  uint32_t weight;
52 
53  VoteSpecifier( const VoteSpecifier& other ) : radius(other.radius), patternName(other.patternName),
54  objectType(other.objectType), observedId(other.observedId),
55  trackIndex(other.trackIndex)
56  {
57  objectToRefQuat = QuaternionPtr(new Quaternion(*(other.objectToRefQuat)));
58  objectToRefPoseQuat = QuaternionPtr(new Quaternion(*(other.objectToRefPoseQuat)));
59  refToObjectQuat = QuaternionPtr(new Quaternion(*(other.refToObjectQuat)));
60  refToObjectPoseQuat = QuaternionPtr(new Quaternion(*(other.refToObjectPoseQuat)));
61  }
62 
63  VoteSpecifier( QuaternionPtr objectToRefQuat, QuaternionPtr objectToRefPoseQuat,
64  QuaternionPtr refToObjectQuat, QuaternionPtr refToObjectPoseQuat,
65  double radius ) : objectToRefQuat(objectToRefQuat), objectToRefPoseQuat(objectToRefPoseQuat),
66  refToObjectQuat(refToObjectQuat), refToObjectPoseQuat(refToObjectPoseQuat),
67  radius(radius)
68  {
69  this->trackIndex = -1;
70  };
71 
72  VoteSpecifier( QuaternionPtr objectToRefQuat, QuaternionPtr objectToRefPoseQuat,
73  QuaternionPtr refToObjectQuat, QuaternionPtr refToObjectPoseQuat,
74  double radius, std::string patternName,std::string objectType,
75  std::string observedId, int trackIndex = -1) : objectToRefQuat(objectToRefQuat), objectToRefPoseQuat(objectToRefPoseQuat),
76  refToObjectQuat(refToObjectQuat), refToObjectPoseQuat(refToObjectPoseQuat),
77  radius(radius), patternName(patternName), objectType(objectType), observedId(observedId),
78  trackIndex(trackIndex)
79  {};
80  };
81  typedef boost::shared_ptr<VoteSpecifier> VoteSpecifierPtr;
82 
83  std::ostream& operator<<(std::ostream &strm, const ISM::VoteSpecifier &v);
84  std::ostream& operator<<(std::ostream &strm, const ISM::VoteSpecifierPtr &v);
85 }
VoteSpecifier(QuaternionPtr objectToRefQuat, QuaternionPtr objectToRefPoseQuat, QuaternionPtr refToObjectQuat, QuaternionPtr refToObjectPoseQuat, double radius, std::string patternName, std::string objectType, std::string observedId, int trackIndex=-1)
std::string observedId
Object that votes. Its identifier within its class.
QuaternionPtr refToObjectQuat
Transformation from ism reference to object in scene: Position as direction vector.
uint32_t weight
weight (eg after filtering)
boost::shared_ptr< Quaternion > QuaternionPtr
Definition: Quaternion.hpp:39
VoteSpecifier(const VoteSpecifier &other)
VoteSpecifier(QuaternionPtr objectToRefQuat, QuaternionPtr objectToRefPoseQuat, QuaternionPtr refToObjectQuat, QuaternionPtr refToObjectPoseQuat, double radius)
QuaternionPtr objectToRefQuat
Transformation from object in scene to ism reference: Position as direction vector.
int trackIndex
Index of the sample, of the voting object&#39;s trajectory, from which the vote was generated.
QuaternionPtr refToObjectPoseQuat
Transformation from ism reference to object in scene: Transforms orientation of reference into orient...
double radius
Length of direction vectors. Extracted to make scene representation independant of scale (absolute di...
std::string patternName
Name of scene for which is voted.
std::ostream & operator<<(std::ostream &strm, const ISM::ObjectRelation &r)
std::string objectType
Object that votes. Its type.
boost::shared_ptr< VoteSpecifier > VoteSpecifierPtr
this namespace contains all generally usable classes.
QuaternionPtr objectToRefPoseQuat
Transformation from object in scene to ism reference: Transforms orientation of object into orientati...


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41