1#ifndef BITRL_CLASSIC_CONTROL_CART_POLE_H
2#define BITRL_CLASSIC_CONTROL_CART_POLE_H
12#include <unordered_map>
40 ContinuousVectorStateDiscreteActionEnv<4, 2, 0, real_t>>
55 const std::unordered_map<std::string, std::any> &
make_options,
56 const std::unordered_map<std::string, std::any> &
reset_options)
override;
ContinuousVectorStateDiscreteActionEnv< 4, 2, 0, real_t >::state_type state_type
Definition env_base.h:48
const std::unordered_map< std::string, std::any > & reset_options() const noexcept
Definition env_base.h:105
EnvBase(const std::string &idx=bitsim::consts::INVALID_STR, const std::string &name=bitsim::consts::INVALID_STR)
TimeStep< std::vector< real_t > > time_step_type
Definition env_base.h:42
const std::unordered_map< std::string, std::any > & make_options() const noexcept
Definition env_base.h:96
ContinuousVectorStateDiscreteActionEnv< 4, 2, 0, real_t >::action_type action_type
Definition env_base.h:54
std::string version() const noexcept
Definition env_base.h:143
time_step_type reset(uint_t seed)
Start an episode with the given seed.
base_type::time_step_type time_step_type
Definition cart_pole.h:46
const bitsim::dynamics::CartPoleDynamics & dynamics() const noexcept
Definition cart_pole.h:79
void make(const std::string &version, const std::unordered_map< std::string, std::any > &make_options, const std::unordered_map< std::string, std::any > &reset_options) override
Construct the environment instance.
void close() override
Close and release any acquired environment resources.
time_step_type reset() override
Start an episode with the next seed.
time_step_type step(const action_type &action) override
Push the cart: 0 to the left, 1 to the right.
EnvBase< TimeStep< std::vector< real_t > >, ContinuousVectorStateDiscreteActionEnv< 4, 2, 0, real_t > > base_type
Definition cart_pole.h:45
uint_t max_steps() const noexcept
Definition cart_pole.h:77
uint_t n_steps() const noexcept
Definition cart_pole.h:75
static constexpr real_t THETA_LIMIT
Definition cart_pole.h:50
base_type::state_type state_type
Definition cart_pole.h:47
base_type::action_type action_type
Definition cart_pole.h:48
A cart on a straight track, pushed by a horizontal force F, with a pole hinged on it.
Definition cart_pole_dynamics.h:70
Definition cart_pole.h:18
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
double real_t
real_t
Definition bitsim_types.h:20
Definition env_types.h:67