RobotUnitObserver.cpp
Go to the documentation of this file.
1
#include "
RobotUnitObserver.h
"
2
3
#include <
ArmarXCore/observers/exceptions/user/InvalidDatafieldException.h
>
4
5
namespace
armarx
6
{
7
void
8
RobotUnitObserver::offerOrUpdateDataFieldsFlatCopy_async
(
const
std::string& channelName,
9
StringVariantBaseMap
&& valueMap)
10
{
11
addWorkerJob
(
"RobotUnitObserver::offerOrUpdateDataFieldsFlatCopy_async"
,
12
[
this
, channelName, vmap = std::move(valueMap)]
13
{
offerOrUpdateDataFieldsFlatCopy
(channelName, vmap); });
14
}
15
16
void
17
RobotUnitObserver::onConnectObserver
()
18
{
19
offerChannel
(
sensorDevicesChannel
,
"Devices that provide sensor data"
);
20
offerChannel
(
controlDevicesChannel
,
"Devices that are controlled by JointControllers"
);
21
offerChannel
(
timingChannel
,
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
RobotAPI
components
units
RobotUnit
RobotUnitObserver.cpp
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17