Go to the documentation of this file.
25 #include <ArmarXCore/interface/components/TopicRecorderInterface.h>
35 #include <unordered_set>
48 defineOptionalProperty<bool>(
"Loop",
false,
"Loop playback");
49 defineRequiredProperty<std::string>(
"RecordFile",
"File with recorded data");
50 defineOptionalProperty<std::string>(
"StorageMode",
"database",
"Storage variant to use, currently 'database' (default) and 'file' are available");
51 defineOptionalProperty<std::string>(
"DebugObserverName",
"DebugObserver",
"Name of the topic the DebugObserver listens on");
52 defineOptionalProperty<std::string>(
"TopicName",
"TopicReplayerListener",
"Name of the topic the recorded data should be written to");
88 TopicReplayerListenerInterfacePrx replayerListener;
92 std::unordered_set<std::string> replayingTopics;
93 bool replayingTopicsNotSupportedByFile =
false;
The TimeKeeper class tracks the passing of time and allows to stop it, restart it,...
void setReplayingTopics(std::vector< std::string > topics)
void onDisconnectComponent() override
Hook for subclass.
PropertyDefinitionsPtr createPropertyDefinitions() override
void jumpToPosition(IceUtil::Time timestamp)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
std::string getDefaultName() const override
Retrieve default name of component.
void setReplaySpeed(double factor)
IceUtil::Time getReplayLength() const
IceUtil::Time getCurrentTimePosition() const
RunningTask< TopicReplayer >::pointer_type task
armarx::core::time::DateTime Time
Baseclass for all ArmarX ManagedIceObjects requiring properties.
TopicReplayerProperties(std::string prefix)
Default component property definition container.
std::shared_ptr< TopicReaderInterface > TopicReaderInterfacePtr
std::vector< std::string > getRecordedTopics()
void onInitComponent() override
Pure virtual hook for the subclass.
void setAutoplay(bool autoplay)
void onConnectComponent() override
Pure virtual hook for the subclass.
This file offers overloads of toIce() and fromIce() functions for STL container types.