1#include "state_representation/IOState.hpp"
7 this->set_data(Eigen::VectorXd::Map(data.data(), data.size()));
12 Eigen::Vector<bool, Eigen::Dynamic> vec;
13 vec.resize(data.size());
14 for (
unsigned int i = 0; i < data.size(); ++i) {
22 return {this->data_.data(), this->data_.data() + this->data_.size()};
27 std::vector<bool> vec;
28 vec.resize(this->get_size());
29 for (
unsigned int i = 0; i < this->get_size(); ++i) {
30 vec.at(i) = this->data_(i);
void set_data(const Eigen::Vector< T, Eigen::Dynamic > &data)
Set the values of the IO state from a single Eigen vector.
std::vector< T > to_std_vector() const
Return the IO values as a std vector.
Core state variables and objects.