135#include "bitrl/extern/nlohmann/json/json.hpp"
145namespace envs::gymnasium
153 ContinuousVectorStateDiscreteActionEnv<6, 2, 0, real_t>>
165 static const std::string
URI;
214 make(
const std::string &
version,
const std::unordered_map<std::string, std::any> &options,
215 const std::unordered_map<std::string, std::any> &
reset_options)
override final;
const std::unordered_map< std::string, std::any > & reset_options() const noexcept
Access the configuration options provided to make().
Definition env_base.h:104
TimeStepType time_step_type
Alias for the type returned when stepping the environment.
Definition env_base.h:41
std::string version() const noexcept
Get the environment version set during make().
Definition env_base.h:142
class Acrobot. The Acrobot class. Interface for Gymnasium::Acrobot environment.
Definition acrobot_env.h:154
GymnasiumEnvBase< TimeStep< std::vector< real_t > >, ContinuousVectorStateDiscreteActionEnv< 6, 2, 0, real_t > >::base_type base_type
Base class type.
Definition acrobot_env.h:175
base_type::state_type state_type
The type of the state.
Definition acrobot_env.h:200
base_type::state_space_type state_space_type
The type describing the state space for the environment.
Definition acrobot_env.h:185
base_type::action_type action_type
The type of the action to be undertaken in the environment.
Definition acrobot_env.h:195
base_type::action_space_type action_space_type
The type of the action space for the environment.
Definition acrobot_env.h:190
~Acrobot() override=default
static const std::string URI
The URI for accessing the environment.
Definition acrobot_env.h:165
static const std::string name
The name of the environment.
Definition acrobot_env.h:160
virtual time_step_type step(const action_type &action) override final
step. Step in the environment following the given action.
Definition acrobot_env.cpp:61
virtual time_step_type create_time_step_from_response_(const nlohmann::json &response) const override final
Handle the reset response from the environment server.
Definition acrobot_env.cpp:17
virtual void make(const std::string &version, const std::unordered_map< std::string, std::any > &options, const std::unordered_map< std::string, std::any > &reset_options) override final
make. Build the environment
Definition acrobot_env.cpp:43
base_type::time_step_type time_step_type
The time step type we return every time a step in the environment is performed.
Definition acrobot_env.h:180
uint_t n_actions() const noexcept
n_actions. Returns the number of actions
Definition acrobot_env.h:226
Base class for all Gymnasium environment wrappers.
Definition gymnasium_env_base.h:41
Utility class to facilitate HTTP requests between the environments REST API and C++ drivers.
Definition rest_rl_env_client.h:29
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23
std::size_t uint_t
uint_t
Definition bitrl_types.h:43
Definition env_types.h:67