35 return {.name =
"PowerBoard",
36 .state = dto::BatteryState::unavailable,
37 .designEnergy_Wh = -1,
38 .fullChargeEnergy_Wh = -1,
40 .energyFromFullCharge_pct = 0,
41 .fullEnergyFromDesignEnergy_pct = 0,
42 .temperature_degC = -1,
47 .remainingTime_h = -1,
55 return "DiagnosticsSubUnit";
68 stat.name = deviceName;
69 stat.
state =
static_cast<dto::BatteryState
>(s->state);
89 std::map<std::string, std::size_t> batteryManagementDevices)
dto::BatteryStatus getBatteryStatus(const Ice::Current ¤t) const override
void onInitComponent() override
Pure virtual hook for the subclass.
void update(const SensorAndControl &sc, const JointAndNJointControllers &c) override
void onConnectComponent() override
Pure virtual hook for the subclass.
std::map< std::string, std::size_t > _batteryManagementDevices
void setBatteryManagementDevices(std::map< std::string, std::size_t > batteryManagementDevices)
std::string getDefaultName() const override
Retrieve default name of component.
std::map< std::string, dto::BatteryStatus > _lastBatteryStatuses
The SensorValueBase class.
float energyFromFullCharge_pct
float fullChargeEnergy_Wh
DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION std::uint8_t state
float fullEnergyFromDesignEnergy_pct
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
This file offers overloads of toIce() and fromIce() functions for STL container types.
detail::ControlThreadOutputBufferEntry SensorAndControl
Structure used by the RobotUnit to swap lists of Joint and NJoint controllers.
std::vector< PropagateConst< SensorValueBase * > > sensors