Class ChargeBatteryFactory

Inheritance Relationships

Base Type

Class Documentation

class ChargeBatteryFactory : public rmf_task::RequestFactory

The ChargeBatteryFactory will generate a ChargeBattery request which requires an AGV to return to its desginated charging_waypoint as specified in its agv::State and wait till its battery charges up to the recharge_soc configured in agv::Constraints recharge_soc specified in its agv::Constraints

Public Functions

ChargeBatteryFactory()

Constructor.

explicit ChargeBatteryFactory(const std::string &requester, std::function<rmf_traffic::Time()> time_now_cb)

Constructor

Parameters:
  • requester[in] The identifier of the entity that owns this RequestFactory, that will be the designated requester of each new request.

  • time_now_cb[in] Callback function that returns the current time.

virtual ConstRequestPtr make_request(const State &state) const final

Documentation inherited.