Class AsyncBidder

Class Documentation

class AsyncBidder

Public Types

using Respond = std::function<void(const Response&)>
using ReceiveNotice = std::function<void(const BidNoticeMsg &notice, Respond respond)>

Callback function when a bid notice is received from the autioneer

Param notice:

[in] bid notice msg

Return:

submission Estimates of a task. This submission is used by dispatcher for eval

Public Static Functions

static std::shared_ptr<AsyncBidder> make(const std::shared_ptr<rclcpp::Node> &node, ReceiveNotice notice_cb)

Create a bidder to bid for incoming task requests from Task Dispatcher

Parameters:
  • node[in] ROS 2 node instance

  • fleet_name[in] Name of the bidder

  • valid_task_types[in] A list of valid tasks types which are supported by the bidder

  • submission_cb[in] fn which is used to provide a bid submission during a call for bid