Class robot_interfaces::SensorLogReader

template<typename Observation>
class SensorLogReader

Read the data from a sensor log file.

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

Template Parameters:

Observation – Type of the sensor observation.

Public Types

typedef std::tuple<double, Observation> StampedObservation
typedef std::tuple<double, Observation> StampedObservation

Public Functions

inline SensorLogReader(const std::string &filename)

Read data from the specified file.

The data is stored to SensorLogReader::data.

Parameters:

filename – Path to the sensor log file.

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

Read data from the specified file.

The data is stored to SensorLogReader::data.

Parameters:

filename – Path to the sensor log file.

inline SensorLogReader(const std::string &filename)

Read data from the specified file.

The data is stored to SensorLogReader::data.

Parameters:

filename – Path to the sensor log file.

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

Read data from the specified file.

The data is stored to SensorLogReader::data.

Parameters:

filename – Path to the sensor log file.

Public Members

std::vector<Observation> data

Observations from the log file.

Todo:

rename to “observations”

Todo:

rename to “observations”

std::vector<double> timestamps

Timestamps of the time series from which the observations were logged.