55 const AMD_DebugObserverInterface_setDebugDatafieldPtr& amd,
56 const std::string& channelName,
57 const std::string& datafieldName,
59 const Ice::Current&
c)
62 "DebugObserver::setDebugDatafield",
63 [
this, amd, channelName, datafieldName, value]
77 channelName, datafieldName, *VariantPtr::dynamicCast(value),
"");
82 channelName, datafieldName, VariantPtr::dynamicCast(value));
93 const std::string& channelName,
95 const Ice::Current&
c)
98 [
this, amd, channelName, valueMap]
112 const AMD_DebugObserverInterface_removeDebugDatafieldPtr& amd,
113 const std::string& channelName,
114 const std::string& datafieldName,
118 [
this, amd, channelName, datafieldName]
124 getName(), channelName, datafieldName));
132 const AMD_DebugObserverInterface_removeDebugChannelPtr& amd,
133 const std::string& channelName,
137 [
this, amd, channelName]
150 const AMD_DebugObserverInterface_removeAllChannelsPtr& amd,
161 ChannelRegistry::iterator it =
166 ChannelRegistryEntry& entry = it->second;
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
Checks if the numbers published in the relevant data fields equal a reference value.
Checks if the relevant data fields have been updated since the installation of this condition.
DataFieldIdentifier provide the basis to identify data field within a distributed ArmarX scenario.
void onConnectObserver() override
Framework hook.
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 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 removeAllChannels_async(const AMD_DebugObserverInterface_removeAllChannelsPtr &amd, const ::Ice::Current &) override
Removes all channels.
PropertyDefinitionsPtr createPropertyDefinitions() override
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.
void onInitObserver() override
Framework hook.
void setDebugChannel_async(const AMD_DebugObserverInterface_setDebugChannelPtr &amd, const std::string &channelName, const StringVariantBaseMap &valueMap, const Ice::Current &) override
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
std::string getName() const
Retrieve name of object.
bool existsChannel(const std::string &channelName) const
void offerChannel(std::string channelName, std::string description)
Offer a channel.
void removeDatafield(DataFieldIdentifierBasePtr id)
void removeChannel(std::string channelName)
Remove a channel.
void offerConditionCheck(std::string checkName, ConditionCheck *conditionCheck)
Offer a condition check.
void updateChannel(const std::string &channelName, const std::set< std::string > &updatedDatafields=std::set< std::string >())
Update all conditions for a channel.
void addWorkerJob(const std::string &name, std::function< void(void)> &&f) const
void offerDataFieldWithDefault(std::string channelName, std::string datafieldName, const Variant &defaultValue, std::string description)
Offer a datafield with default value.
bool existsDataField(const std::string &channelName, const std::string &datafieldName) const
ChannelRegistry getAvailableChannels(bool includeMetaChannels)
Retrieve information on all sensory data channels available from the observer.
void setDataFieldFlatCopy(const std::string &channelName, const std::string &datafieldName, const VariantPtr &value, bool triggerFilterUpdate=true)
void callAndPassExceptionToAMD(auto &amd, auto f) const
void offerOrUpdateDataFieldsFlatCopy(const std::string &channelName, const StringVariantBaseMap &valueMap)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::map< std::string, VariantBasePtr > StringVariantBaseMap
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::Handle<::armarx::VariantBase > VariantBasePtr