GAMS  1.2.2
AuctionMinimumDistance.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_AUCTIONS_MINIMUM_DISTANCE_H_
55 #define _GAMS_AUCTIONS_MINIMUM_DISTANCE_H_
56 
57 #include <vector>
58 #include <string>
59 #include <map>
60 
61 #include "madara/knowledge/containers/StringVector.h"
62 
63 #include "AuctionBase.h"
64 #include "AuctionFactory.h"
65 
68 #include "gams/pose/Position.h"
69 
70 namespace gams
71 {
72  namespace auctions
73  {
78  {
79  public:
87  AuctionMinimumDistance (const std::string & auction_prefix = "",
88  const std::string & agent_prefix = "",
89  madara::knowledge::KnowledgeBase * knowledge = 0,
90  platforms::BasePlatform * platform = 0);
91 
95  virtual ~AuctionMinimumDistance ();
96 
101  virtual std::string get_leader (void);
102 
107  void set_target (pose::Position target);
108 
113  void set_target (utility::GPSPosition target);
114 
119  void set_platform (platforms::BasePlatform * platform);
120 
124  void calculate_bids (void);
125 
126  protected:
127 
132 
137  };
138 
143  {
144  public:
145 
150 
154  virtual ~AuctionMinimumDistanceFactory ();
155 
163  virtual AuctionBase * create (const std::string & auction_prefix = "",
164  const std::string & agent_prefix = "",
165  madara::knowledge::KnowledgeBase * knowledge = 0);
166  };
167  }
168 }
169 
170 #endif // _GAMS_AUCTIONS_MINIMUM_DISTANCE_H_
Base class for an auction factory.
Copyright (c) 2016 Carnegie Mellon University.
Copyright (c) 2016 Carnegie Mellon University.
Base class for an auction.
Definition: AuctionBase.h:78
The base platform for all platforms to use.
Definition: BasePlatform.h:190
pose::Position target_
The location that distance will be calculated to.
Contains all GAMS-related tools, classes and code.
An auction where the winner is the closest agent to a location.
Factory for creating minimum-bid auctions.
#define GAMS_EXPORT
Definition: GamsExport.h:20
platforms::BasePlatform * platform_
The platform is necessary to construct poses (we need frame)
A position in the global positioning system reference frame.
Definition: GPSPosition.h:77
Copyright (c) 2016 Carnegie Mellon University.
Copyright (c) 2014 Carnegie Mellon University.