Go to the documentation of this file.
42 usingTopic(getProperty<std::string>(
"DebugObserverTopicName"));
53 const AMD_DebugObserverInterface_setDebugDatafieldPtr& amd,
54 const std::string& channelName,
55 const std::string& datafieldName,
57 const Ice::Current&
c)
59 addWorkerJob(
"DebugObserver::setDebugDatafield", [
this, amd, channelName, datafieldName,
value]
84 const AMD_DebugObserverInterface_setDebugChannelPtr& amd,
85 const std::string& channelName,
87 const Ice::Current&
c)
89 addWorkerJob(
"DebugObserver::setDebugChannel", [
this, amd, channelName, valueMap]
100 const AMD_DebugObserverInterface_removeDebugDatafieldPtr& amd,
101 const std::string& channelName,
102 const std::string& datafieldName,
105 addWorkerJob(
"DebugObserver::removeDebugDatafield", [
this, amd, channelName, datafieldName]
116 const AMD_DebugObserverInterface_removeDebugChannelPtr& amd,
117 const std::string& channelName,
120 addWorkerJob(
"DebugObserver::removeDebugChannel", [
this, amd, channelName]
131 const AMD_DebugObserverInterface_removeAllChannelsPtr& amd,
134 addWorkerJob(
"DebugObserver::removeAllChannels", [
this, amd]
139 ChannelRegistry::iterator it = channels.end();
141 for (; it != channels.end(); it++)
143 ChannelRegistryEntry& entry = it->second;
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
std::map< std::string, VariantBasePtr > StringVariantBaseMap
PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitObserver() override
Framework hook.
void removeChannel(std::string channelName)
Remove a channel.
void removeAllChannels_async(const AMD_DebugObserverInterface_removeAllChannelsPtr &amd, const ::Ice::Current &) override
Removes all channels.
bool existsChannel(const std::string &channelName) const
void removeDebugChannel_async(const AMD_DebugObserverInterface_removeDebugChannelPtr &amd, const ::std::string &channelName, const ::Ice::Current &) override
Removes a channel and all its datafield it has.
std::shared_ptr< Value > value()
void setDataFieldFlatCopy(const std::string &channelName, const std::string &datafieldName, const VariantPtr &value, bool triggerFilterUpdate=true)
void removeDebugDatafield_async(const AMD_DebugObserverInterface_removeDebugDatafieldPtr &amd, const ::std::string &channelName, const ::std::string &datafieldName, const ::Ice::Current &) override
Removes a datafield from the DebugObserver.
void offerOrUpdateDataFieldsFlatCopy(const std::string &channelName, const StringVariantBaseMap &valueMap)
void removeDatafield(DataFieldIdentifierBasePtr id)
void onConnectObserver() override
Framework hook.
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
ChannelRegistry getAvailableChannels(bool includeMetaChannels)
Retrieve information on all sensory data channels available from the observer.
bool existsDataField(const std::string &channelName, const std::string &datafieldName) const
void setDebugDatafield_async(const AMD_DebugObserverInterface_setDebugDatafieldPtr &amd, const std::string &channelName, const std::string &datafieldName, const VariantBasePtr &value, const Ice::Current &) override
Creates or updates (if it already exists) a datafield in a channel.
void setDebugChannel_async(const AMD_DebugObserverInterface_setDebugChannelPtr &amd, const std::string &channelName, const StringVariantBaseMap &valueMap, const Ice::Current &) override
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
std::string getName() const
Retrieve name of object.
void offerDataFieldWithDefault(std::string channelName, std::string datafieldName, const Variant &defaultValue, std::string description)
Offer a datafield with default value.
void addWorkerJob(const std::string &name, std::function< void(void)> &&f) const
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file offers overloads of toIce() and fromIce() functions for STL container types.
DataFieldIdentifier provide the basis to identify data field within a distributed ArmarX scenario.
void callAndPassExceptionToAMD(auto &amd, auto f) const
void offerChannel(std::string channelName, std::string description)
Offer a channel.