RobotUnitObserver.cpp
Go to the documentation of this file.
1 #include "RobotUnitObserver.h"
2 
4 
5 namespace armarx
6 {
7  void
9  StringVariantBaseMap&& valueMap)
10  {
11  addWorkerJob("RobotUnitObserver::offerOrUpdateDataFieldsFlatCopy_async",
12  [this, channelName, vmap = std::move(valueMap)]
13  { offerOrUpdateDataFieldsFlatCopy(channelName, vmap); });
14  }
15 
16  void
18  {
19  offerChannel(sensorDevicesChannel, "Devices that provide sensor data");
20  offerChannel(controlDevicesChannel, "Devices that are controlled by JointControllers");
22  "Channel for timings of the different phases of the robot unit");
23  offerChannel(additionalChannel, "Additional custom datafields");
24  }
25 } // namespace armarx
armarx::StringVariantBaseMap
std::map< std::string, VariantBasePtr > StringVariantBaseMap
Definition: ManagedIceObject.h:111
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
RobotUnitObserver.h
armarx::RobotUnitObserver::sensorDevicesChannel
const std::string sensorDevicesChannel
Definition: RobotUnitObserver.h:22
InvalidDatafieldException.h
armarx::Observer::offerOrUpdateDataFieldsFlatCopy
void offerOrUpdateDataFieldsFlatCopy(const std::string &channelName, const StringVariantBaseMap &valueMap)
Definition: Observer.cpp:236
armarx::RobotUnitObserver::onConnectObserver
void onConnectObserver() override
Framework hook.
Definition: RobotUnitObserver.cpp:17
armarx::RobotUnitObserver::controlDevicesChannel
const std::string controlDevicesChannel
Definition: RobotUnitObserver.h:21
armarx::Observer::addWorkerJob
void addWorkerJob(const std::string &name, std::function< void(void)> &&f) const
Definition: Observer.cpp:1099
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
armarx::Observer::offerChannel
void offerChannel(std::string channelName, std::string description)
Offer a channel.
Definition: Observer.cpp:126