VotedPose.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include "typedef.hpp"
21 #include "common_type/Pose.hpp"
23 #include "common_type/Object.hpp"
24 
25 namespace ISM {
26  struct VotedPose {
30  double weight;
32 
33  VotedPose(const VotedPose& other):
34  pose(PosePtr(new Pose(*(other.pose)))),
35  vote(VoteSpecifierPtr(new VoteSpecifier(*(other.vote)))),
36  source(ObjectPtr(new Object(*(other.source)))),
37  weight(other.weight), weightDenominator(other.weightDenominator)
38  { }
39 
40  VotedPose(PosePtr pose, VoteSpecifierPtr vote, ObjectPtr source, double weight, double weightDenominator):
41  pose(pose), vote(vote), source(source), weight(weight), weightDenominator(weightDenominator)
42  { }
43  };
44 
45  std::ostream& operator<<(std::ostream &strm, const ISM::VotedPose &v);
46  std::ostream& operator<<(std::ostream &strm, const ISM::VotedPosePtr &v);
47 }
PosePtr pose
Definition: VotedPose.hpp:27
VotedPose(PosePtr pose, VoteSpecifierPtr vote, ObjectPtr source, double weight, double weightDenominator)
Definition: VotedPose.hpp:40
VoteSpecifierPtr vote
Definition: VotedPose.hpp:28
double weightDenominator
Definition: VotedPose.hpp:31
std::ostream & operator<<(std::ostream &strm, const ISM::ObjectRelation &r)
boost::shared_ptr< VotedPose > VotedPosePtr
Definition: typedef.hpp:31
ObjectPtr source
Definition: VotedPose.hpp:29
boost::shared_ptr< VoteSpecifier > VoteSpecifierPtr
boost::shared_ptr< Pose > PosePtr
Definition: Pose.hpp:79
this namespace contains all generally usable classes.
boost::shared_ptr< Object > ObjectPtr
Definition: Object.hpp:82
VotedPose(const VotedPose &other)
Definition: VotedPose.hpp:33


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