Class MotionPowerSink
Defined in File MotionPowerSink.hpp
Inheritance Relationships
Derived Type
public rmf_battery::agv::SimpleMotionPowerSink
(Class SimpleMotionPowerSink)
Class Documentation
-
class MotionPowerSink
Subclassed by rmf_battery::agv::SimpleMotionPowerSink
Public Functions
-
virtual double compute_change_in_charge(const rmf_traffic::Trajectory &trajectory) const = 0
Compute change in state-of-charge of the battery due to locomotion of the robot along a trajectory.
- Parameters:
trajectory – [in] A valid rmf_traffic:::Trajectory over which the change in charge has to to be computed
- Returns:
The charge depleted as a fraction of the total battery capacity
-
virtual ~MotionPowerSink() = default
-
virtual double compute_change_in_charge(const rmf_traffic::Trajectory &trajectory) const = 0