Class AsyncBidder

Class Documentation

class rmf_task_ros2::bidding::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

Return

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

Parameters
  • [in] notice: bid notice msg

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
  • [in] node: ROS 2 node instance

  • [in] fleet_name: Name of the bidder

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

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