Class Recorder

Nested Relationships

Nested Types

Class Documentation

class Recorder

Recorder concept interface.

Note

this defines an private concept struct, which each instance has to implement

Note

a type erasure pattern in implemented here to avoid strict inheritance, thus each possible recorder instance has to implement the virtual functions mentioned in the concept

Public Functions

template<typename T>
inline Recorder(T rec)

Constructor for recorder interface.

inline bool isInitialized() const

checks if the recorder is correctly initialized @

Returns:

bool value indicating true for success

inline void subscribe(bool state)
inline bool isSubscribed() const

checks if the recorder has a subscription and is hence allowed to record

Returns:

bool value indicating true for number of sub > 0

inline std::string topic() const
inline void reset(boost::shared_ptr<naoqi::recorder::GlobalRecorder> gr, float frequency)

initializes/resets the recorder into ROS with a given GlobalRecorder pointer and a frequency, this will be called at first for initialization

Parameters:
  • grGlobalRecorder pointer

  • frequency – the frequency of the recoder

inline void writeDump(const rclcpp::Time &time)
inline void setBufferDuration(float duration)

Friends

inline friend bool operator==(const Recorder &lhs, const Recorder &rhs)