SensorValueBattery.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 
7 namespace armarx
8 {
9 
10  enum class BatteryState : std::uint8_t
11  {
12  unavailable = 0,
13  discharging = 1,
14  charging = 2,
15  notCharging = 3,
16  full = 4
17  };
18 
19  class SensorValueBattery : virtual public SensorValueBase
20  {
21  public:
23 
24  std::uint8_t state;
27  float energy_Wh;
32  float voltage_V;
33  float current_A;
34  float power_W;
36  bool hasError;
37 
40  {
47  "energyFromFullCharge_pct");
49  "fullEnergyFromDesignEnergy_pct");
57  return svi;
58  }
59  };
60 
61 } // namespace armarx
armarx::SensorValueBattery::power_W
float power_W
Definition: SensorValueBattery.h:34
armarx::SensorValueBase
The SensorValueBase class.
Definition: SensorValueBase.h:40
armarx::SensorValueBattery::remainingTime_h
float remainingTime_h
Definition: SensorValueBattery.h:35
armarx::SensorValueBattery::fullChargeEnergy_Wh
float fullChargeEnergy_Wh
Definition: SensorValueBattery.h:26
armarx::SensorValueBattery::hasError
bool hasError
Definition: SensorValueBattery.h:36
armarx::SensorValueBattery::energyFromFullCharge_pct
float energyFromFullCharge_pct
Definition: SensorValueBattery.h:28
armarx::BatteryState
BatteryState
Definition: SensorValueBattery.h:10
armarx::introspection::ClassMemberInfo
Definition: ClassMemberInfo.h:34
armarx::SensorValueBattery::GetClassMemberInfo
static SensorValueInfo< SensorValueBattery > GetClassMemberInfo()
Definition: SensorValueBattery.h:39
armarx::SensorValueBattery::fullEnergyFromDesignEnergy_pct
float fullEnergyFromDesignEnergy_pct
Definition: SensorValueBattery.h:29
SensorValueBase.h
armarx::SensorValueBattery::state
DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION std::uint8_t state
Definition: SensorValueBattery.h:24
armarx::introspection::ClassMemberInfo::addMemberVariable
EntryConfigurator< ClassType > addMemberVariable(MemberType ClassType::*ptr, const std::string &name)
add a member variable of the current class
armarx::BatteryState::full
@ full
armarx::SensorValueBattery::ratedVoltage_V
float ratedVoltage_V
Definition: SensorValueBattery.h:31
armarx::SensorValueBattery::voltage_V
float voltage_V
Definition: SensorValueBattery.h:32
armarx::BatteryState::discharging
@ discharging
DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION
#define DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION
Definition: SensorValueBase.h:139
armarx::SensorValueBattery::designEnergy_Wh
float designEnergy_Wh
Definition: SensorValueBattery.h:25
armarx::SensorValueBattery::energy_Wh
float energy_Wh
Definition: SensorValueBattery.h:27
armarx::SensorValueBattery::current_A
float current_A
Definition: SensorValueBattery.h:33
armarx::SensorValueBattery
Definition: SensorValueBattery.h:19
armarx::BatteryState::notCharging
@ notCharging
armarx::BatteryState::unavailable
@ unavailable
armarx::BatteryState::charging
@ charging
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::SensorValueBattery::temperature_degC
float temperature_degC
Definition: SensorValueBattery.h:30