8#include <RobotsIO/Utils/DatasetSpatialVelocity.h>
11using namespace RobotsIO::Utils;
14DatasetSpatialVelocity::DatasetSpatialVelocity(
const std::string& file_path,
const std::size_t& skip_rows,
const std::size_t& skip_cols,
const std::size_t& expected_cols,
const int rx_time_index,
const int tx_time_index) :
15 DatasetDataStream(file_path, skip_rows, skip_cols, expected_cols, rx_time_index, tx_time_index)
19DatasetSpatialVelocity::~DatasetSpatialVelocity()
23double DatasetSpatialVelocity::elapsed_time()
29VectorXd DatasetSpatialVelocity::twist()
35bool DatasetSpatialVelocity::freeze(
const bool blocking)
37 if (!DatasetDataStream::freeze())
44 double rx_time = DatasetDataStream::rx_time();
46 if (last_time_initialized_)
47 elapsed_time_ = rx_time - last_time_;
49 last_time_initialized_ =
true;