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
11namespace 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
constexpr T c
Component()
Protected default constructor. Used for virtual inheritance. Use createManagedIceObject() instead.
Definition Component.cpp:66
dto::BatteryStatus getBatteryStatus(const Ice::Current &current) 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
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.