#ifndef OBSERVATION_BUFFER_HPP #define OBSERVATION_BUFFER_HPP #include #include class ObservationBuffer { public: ObservationBuffer(int num_envs, int num_obs, int include_history_steps); ObservationBuffer(); void reset(std::vector reset_idxs, torch::Tensor new_obs); void insert(torch::Tensor new_obs); torch::Tensor get_obs_vec(std::vector obs_ids); private: int num_envs; int num_obs; int include_history_steps; int num_obs_total; torch::Tensor obs_buf; }; #endif // OBSERVATION_BUFFER_HPP