37 "DebugObserverName",
"DebugObserver",
"Name of the topic the DebugObserver listens on");
43 return "TopicTimingServer";
63 lastSmallTime = IceUtil::Time::now();
89 TopicTimingServer::run()
92 while (!task->isStopped())
94 IceUtil::Time time_now = IceUtil::Time::now();
96 topic_timing::SmallData
data;
97 data.sentTimestamp = time_now.toMicroSeconds();
101 IceUtil::Time time_sent = IceUtil::Time::now();
103 IceUtil::Time dur_send = time_sent - time_now;
105 IceUtil::Time dur_cycle = time_now - lastSmallTime;
106 lastSmallTime = time_now;
109 channel[
"DurationSend"] =
new Variant(dur_send.toMilliSecondsDouble());
110 channel[
"DurationCycle"] =
new Variant(dur_cycle.toMilliSecondsDouble());
111 debugObserver->setDebugChannel(
"TopicTimingServerSmall", channel);
113 c.waitForCycleDuration();
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
TopicProxyType getTopicFromProperty(const std::string &propertyName)
Get a topic proxy whose name is specified by the given property.
void offeringTopicFromProperty(const std::string &propertyName)
Offer a topic whose name is specified by the given property.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
This util class helps with keeping a cycle time during a control cycle.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
TopicTimingServerPropertyDefinitions(std::string prefix)
virtual void onInitComponent() override
virtual void onDisconnectComponent() override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
virtual void onConnectComponent() override
virtual void onExitComponent() override
virtual std::string getDefaultName() const override
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.