Class robot_interfaces::RobotBinaryLogReader

template<typename Action, typename Observation, typename Status_t = Status>
class RobotBinaryLogReader

Read the data from a robot log file.

The data is read from the specified file and stored to the data member where it can be accessed.

Public Types

typedef RobotLogEntry<Action, Observation, Status_t> LogEntry
typedef RobotLogEntry<Action, Observation, Status_t> LogEntry

Public Functions

inline RobotBinaryLogReader()
inline RobotBinaryLogReader(const std::string &filename)

Read data from the specified file.

The data is stored to RobotBinaryLogReader::data.

Parameters:

filename – Path to the robot log file.

inline void read_file(const std::string &filename)

Read data from the specified file.

The data is stored to RobotBinaryLogReader::data.

Parameters:

filename – Path to the robot log file.

inline void write_file(const std::string &filename)

Write data to the specified file.

Parameters:

filename – Path to the output file.

inline RobotBinaryLogReader()
inline RobotBinaryLogReader(const std::string &filename)

Read data from the specified file.

The data is stored to RobotBinaryLogReader::data.

Parameters:

filename – Path to the robot log file.

inline void read_file(const std::string &filename)

Read data from the specified file.

The data is stored to RobotBinaryLogReader::data.

Parameters:

filename – Path to the robot log file.

inline void write_file(const std::string &filename)

Write data to the specified file.

Parameters:

filename – Path to the output file.

Public Members

std::vector<LogEntry> data

Public Static Attributes

static constexpr uint32_t FORMAT_VERSION = 2