RobotUnitObserver.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include "util.h"
6 
8 {
9  class Publisher;
10 }
11 
12 namespace armarx
13 {
14  TYPEDEF_PTRS_HANDLE(RobotUnitObserver);
15 
16  class RobotUnitObserver : public Observer
17  {
18  public:
19  const std::string additionalChannel = "Additional";
20  const std::string timingChannel = "TimingInformation";
21  const std::string controlDevicesChannel = "ControlDevices";
22  const std::string sensorDevicesChannel = "SensorDevices";
23 
24  RobotUnitObserver() = default;
25 
26  void offerOrUpdateDataFieldsFlatCopy_async(const std::string& channelName,
27  StringVariantBaseMap&& valueMap);
28  // Observer interface
29  protected:
30  void
31  onInitObserver() override
32  {
33  }
34 
35  void onConnectObserver() override;
36 
38 
39  // ManagedIceObject interface
40  protected:
41  std::string
42  getDefaultName() const override
43  {
44  return "RobotUnitObserver";
45  }
46  };
47 } // namespace armarx
armarx::StringVariantBaseMap
std::map< std::string, VariantBasePtr > StringVariantBaseMap
Definition: ManagedIceObject.h:111
armarx::Observer
Baseclass for all ArmarX Observers.
Definition: Observer.h:80
armarx::TYPEDEF_PTRS_HANDLE
TYPEDEF_PTRS_HANDLE(NJointCartesianNaturalPositionController)
armarx::RobotUnitObserver
Definition: RobotUnitObserver.h:16
armarx::RobotUnitObserver::RobotUnitObserver
RobotUnitObserver()=default
armarx::RobotUnitObserver::offerOrUpdateDataFieldsFlatCopy_async
void offerOrUpdateDataFieldsFlatCopy_async(const std::string &channelName, StringVariantBaseMap &&valueMap)
Definition: RobotUnitObserver.cpp:8
armarx::RobotUnitObserver::timingChannel
const std::string timingChannel
Definition: RobotUnitObserver.h:20
Observer.h
util.h
armarx::RobotUnitObserver::sensorDevicesChannel
const std::string sensorDevicesChannel
Definition: RobotUnitObserver.h:22
armarx::RobotUnitObserver::onConnectObserver
void onConnectObserver() override
Framework hook.
Definition: RobotUnitObserver.cpp:17
armarx::RobotUnitModule::Publisher
This Module manages publishing of all data to Topics, updating of all units managed by the Units modu...
Definition: RobotUnitModulePublisher.h:98
armarx::RobotUnitObserver::onInitObserver
void onInitObserver() override
Framework hook.
Definition: RobotUnitObserver.h:31
armarx::RobotUnitObserver::controlDevicesChannel
const std::string controlDevicesChannel
Definition: RobotUnitObserver.h:21
armarx::RobotUnitObserver::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: RobotUnitObserver.h:42
armarx::RobotUnitModule
Definition: ControlDevice.h:34
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::RobotUnitObserver::additionalChannel
const std::string additionalChannel
Definition: RobotUnitObserver.h:19