25#include <unordered_set>
30#include <ArmarXCore/interface/components/TopicRecorderInterface.h>
48 "Storage variant to use, currently 'database' (default) and 'file' are available");
51 "Name of the topic the DebugObserver listens on");
54 "TopicReplayerListener",
55 "Name of the topic the recorded data should be written to");
91 TopicReplayerListenerInterfacePrx replayerListener;
95 std::unordered_set<std::string> replayingTopics;
96 bool replayingTopicsNotSupportedByFile =
false;
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Component()
Protected default constructor. Used for virtual inheritance. Use createManagedIceObject() instead.
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
The TimeKeeper class tracks the passing of time and allows to stop it, restart it,...
TopicReplayerProperties(std::string prefix)
void onInitComponent() override
Pure virtual hook for the subclass.
IceUtil::Time getCurrentTimePosition() const
RunningTask< TopicReplayer >::pointer_type task
void onDisconnectComponent() override
Hook for subclass.
void setReplaySpeed(double factor)
void setAutoplay(bool autoplay)
std::vector< std::string > getRecordedTopics()
IceUtil::Time getReplayLength() const
void onConnectComponent() override
Pure virtual hook for the subclass.
PropertyDefinitionsPtr createPropertyDefinitions() override
void setReplayingTopics(std::vector< std::string > topics)
void jumpToPosition(IceUtil::Time timestamp)
std::string getDefaultName() const override
Retrieve default name of component.
This file offers overloads of toIce() and fromIce() functions for STL container types.
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugObserverInterface > DebugObserverInterfacePrx
std::shared_ptr< TopicReaderInterface > TopicReaderInterfacePtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.