Class SimpleMotionPowerSink
Defined in File SimpleMotionPowerSink.hpp
Inheritance Relationships
Base Type
public rmf_battery::MotionPowerSink
(Class MotionPowerSink)
Class Documentation
-
class SimpleMotionPowerSink : public rmf_battery::MotionPowerSink
Public Functions
-
SimpleMotionPowerSink(const BatterySystem &battery_system, const MechanicalSystem &mechanical_system)
Constructor
- Parameters:
battery_system – [in] The BatterySystem of the robot
mechanical_system – [in] The MechanicalSystem of the robot
-
const BatterySystem &battery_system() const
Get a constant reference to the battery system.
-
const MechanicalSystem &mechanical_system() const
Get a constant reference to the mechanical system.
-
virtual double compute_change_in_charge(const rmf_traffic::Trajectory &trajectory) const final
Compute change in state-of-charge estimate of 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
-
SimpleMotionPowerSink(const BatterySystem &battery_system, const MechanicalSystem &mechanical_system)