54 #ifndef _GAMS_AUCTIONS_MINIMUM_DISTANCE_H_
55 #define _GAMS_AUCTIONS_MINIMUM_DISTANCE_H_
61 #include "madara/knowledge/containers/StringVector.h"
88 const std::string & agent_prefix =
"",
89 madara::knowledge::KnowledgeBase * knowledge = 0,
164 const std::string & agent_prefix =
"",
165 madara::knowledge::KnowledgeBase * knowledge = 0);
Copyright(c) 2016 Carnegie Mellon University.
Copyright(c) 2016 Carnegie Mellon University.
Copyright(c) 2016 Carnegie Mellon University.
Base class for an auction.
Base class for an auction factory.
Factory for creating minimum-bid auctions.
virtual ~AuctionMinimumDistanceFactory()
Destructor.
virtual AuctionBase * create(const std::string &auction_prefix="", const std::string &agent_prefix="", madara::knowledge::KnowledgeBase *knowledge=0)
Creates a minimum-bid auction.
AuctionMinimumDistanceFactory()
Constructor.
An auction where the winner is the closest agent to a location.
void set_target(utility::GPSPosition target)
Sets the target of the distance calculations.
platforms::BasePlatform * platform_
The platform is necessary to construct poses(we need frame)
AuctionMinimumDistance(const std::string &auction_prefix="", const std::string &agent_prefix="", madara::knowledge::KnowledgeBase *knowledge=0, platforms::BasePlatform *platform=0)
Constructor.
virtual ~AuctionMinimumDistance()
Constructor.
void calculate_bids(void)
Calculate bids using current agent locations.
void set_target(pose::Position target)
Sets the target of the distance calculations.
virtual std::string get_leader(void)
Returns the leader of the bidding process.
void set_platform(platforms::BasePlatform *platform)
Sets the platform whose frame we are referencing.
pose::Position target_
The location that distance will be calculated to.
A position in the global positioning system reference frame.
Contains all GAMS-related tools, classes and code.
Copyright (c) 2015-2018 Carnegie Mellon University.