66 return static_cast<Ice::Long
>(
clock.getTime().toMilliSeconds());
98 ARMARX_DEBUG <<
"Setting TimeServer clock speed to " << newSpeed;
99 clock.setSpeed(newSpeed);
105 return clock.getSpeed();
124 "ArmarXTimeserver"));
void onInitComponent() override
void setSpeed(Ice::Float newSpeed, const ::Ice::Current &=Ice::emptyCurrent) override
void broadcastTime()
periodically writes the current time to the "Time" topic
Ice::Int getStepTimeMS(const ::Ice::Current &=Ice::emptyCurrent) override
void onDisconnectComponent() override
void start(const ::Ice::Current &=Ice::emptyCurrent) override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
~ArmarXTimeserver() override
PeriodicTask< ArmarXTimeserver >::pointer_type broadcastTimeTask
broadcastTimeTask calls broadcastTime() periodically
int stepTimeMS
time the clock advances dirung one call of step() in milliseconds
void onConnectComponent() override
Ice::Float getSpeed(const ::Ice::Current &=Ice::emptyCurrent) override
TimeServerListenerPrx timeTopicPrx
a handle for the topic "Time"
void onExitComponent() override
void stop(const ::Ice::Current &=Ice::emptyCurrent) override
Ice::Long getTime(const ::Ice::Current &=Ice::emptyCurrent) override
getTime returns the current (simulator) time as milliseconds (as in IceUtil::Time::toMilliSeconds)
void step(const ::Ice::Current &=Ice::emptyCurrent) override
step() advances the time by the value of ArmarX.ArmarXTimeserver.StepTimeMS (in milliseconds) the def...
std::string getConfigDomain()
Retrieve config domain for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
TopicProxyType getTopic(const std::string &name)
Returns a proxy of the specified topic.
The periodic task executes one thread method repeatedly using the time period specified in the constr...
The TimeKeeper class tracks the passing of time and allows to stop it, restart it,...
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.