DiagnosticsSubUnit.h
Go to the documentation of this file.
1 #pragma once
2 
4 
8 #include <RobotAPI/interface/units/DiagnosticsUnitInterface.h>
9 #include <RobotAPI/interface/units/LocalizationUnitInterface.h>
10 
11 namespace armarx
12 {
13 
15  virtual public RobotUnitSubUnit,
16  virtual public armarx::DiagnosticsUnitInterface,
17  virtual public Component
18  {
19  public:
20  dto::BatteryStatus getBatteryStatus(const Ice::Current& current) const override;
21 
22  std::string getDefaultName() const override;
23 
24  void update(const SensorAndControl& sc, const JointAndNJointControllers& c) override;
25 
26  void
27  setBatteryManagementDevices(std::map<std::string, std::size_t> batteryManagementDevices);
28 
29  protected:
30  void onInitComponent() override;
31  void onConnectComponent() override;
32 
33  std::map<std::string, std::size_t> _batteryManagementDevices;
34 
35  std::map<std::string, dto::BatteryStatus> _lastBatteryStatuses;
36 
37  /*
38  // UnitResourceManagementInterface interface
39  public:
40  void request(const Ice::Current &current);
41  void release(const Ice::Current &current);
42 
43  // UnitExecutionManagementInterface interface
44  public:
45  void init(const Ice::Current &current);
46  void start(const Ice::Current &current);
47  void stop(const Ice::Current &current);
48  UnitExecutionState getExecutionState(const Ice::Current &current);*/
49  };
50 
51 } // namespace armarx
armarx::JointAndNJointControllers
Structure used by the RobotUnit to swap lists of Joint and NJoint controllers.
Definition: JointAndNJointControllers.h:32
SensorValueBattery.h
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
armarx::RobotUnitSubUnit
Definition: RobotUnitSubUnit.h:35
armarx::detail::ControlThreadOutputBufferEntry
Definition: ControlThreadOutputBuffer.h:177
ForceTorqueUnit.h
armarx::DiagnosticsSubUnit::_lastBatteryStatuses
std::map< std::string, dto::BatteryStatus > _lastBatteryStatuses
Definition: DiagnosticsSubUnit.h:35
RobotUnitSubUnit.h
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::DiagnosticsSubUnit::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: DiagnosticsSubUnit.cpp:53
armarx::DiagnosticsSubUnit::getBatteryStatus
dto::BatteryStatus getBatteryStatus(const Ice::Current &current) const override
Definition: DiagnosticsSubUnit.cpp:9
armarx::DiagnosticsSubUnit
Definition: DiagnosticsSubUnit.h:14
armarx::DiagnosticsSubUnit::_batteryManagementDevices
std::map< std::string, std::size_t > _batteryManagementDevices
Definition: DiagnosticsSubUnit.h:33
armarx::DiagnosticsSubUnit::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: DiagnosticsSubUnit.cpp:106
armarx::DiagnosticsSubUnit::setBatteryManagementDevices
void setBatteryManagementDevices(std::map< std::string, std::size_t > batteryManagementDevices)
Definition: DiagnosticsSubUnit.cpp:88
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::DiagnosticsSubUnit::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: DiagnosticsSubUnit.cpp:100
armarx::DiagnosticsSubUnit::update
void update(const SensorAndControl &sc, const JointAndNJointControllers &c) override
Definition: DiagnosticsSubUnit.cpp:59