Go to the documentation of this file.
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;
89 std::map<std::string, std::size_t> batteryManagementDevices)
Structure used by the RobotUnit to swap lists of Joint and NJoint controllers.
The SensorValueBase class.
float fullChargeEnergy_Wh
std::vector< PropagateConst< SensorValueBase * > > sensors
float energyFromFullCharge_pct
float fullEnergyFromDesignEnergy_pct
DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION std::uint8_t state
std::map< std::string, dto::BatteryStatus > _lastBatteryStatuses
std::string getDefaultName() const override
Retrieve default name of component.
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
dto::BatteryStatus getBatteryStatus(const Ice::Current ¤t) const override
std::map< std::string, std::size_t > _batteryManagementDevices
void onConnectComponent() override
Pure virtual hook for the subclass.
void setBatteryManagementDevices(std::map< std::string, std::size_t > batteryManagementDevices)
double s(double t, double s0, double v0, double a0, double j)
This file offers overloads of toIce() and fromIce() functions for STL container types.
void onInitComponent() override
Pure virtual hook for the subclass.
void update(const SensorAndControl &sc, const JointAndNJointControllers &c) override