87#include "bitsim/extern/nlohmann/json/json.hpp"
104 ContinuousVectorStateContinuousScalarBoundedActionEnv<
105 3, 1, RealRange<-2.0, 2.0>, 0, real_t>>
117 static const std::string
URI;
171 make(
const std::string &
version,
const std::unordered_map<std::string, std::any> & ,
172 const std::unordered_map<std::string, std::any> &
reset_options)
override final;
SpaceType::state_space state_space_type
Type describing the environment state space.
Definition env_base.h:45
SpaceType::state_type state_type
Type describing an individual state.
Definition env_base.h:48
const std::unordered_map< std::string, std::any > & reset_options() const noexcept
Definition env_base.h:105
SpaceType::action_space action_space_type
Type describing the environment action space.
Definition env_base.h:51
TimeStepType time_step_type
Alias for the type returned when stepping the environment.
Definition env_base.h:42
SpaceType::action_type action_type
Type representing an individual action.
Definition env_base.h:54
std::string version() const noexcept
Definition env_base.h:143
GymnasiumEnvBase(network::RESTRLEnvClient &api_server, const std::string &name)
Definition gymnasium_env_base.h:139
base_type::action_type action_type
The type of the action to be undertaken in the environment.
Definition pendulum_env.h:145
uint_t n_actions() const noexcept
n_actions. Returns the number of actions
Definition pendulum_env.h:182
virtual void make(const std::string &version, const std::unordered_map< std::string, std::any > &, const std::unordered_map< std::string, std::any > &reset_options) override final
make. Build the environment
~Pendulum() override=default
~Pendulum. Destructor
Pendulum(const Pendulum &other)
copy ctor
base_type::state_space_type state_space_type
The type describing the state space for the environment.
Definition pendulum_env.h:135
virtual time_step_type step(const action_type &action) override final
step. Step in the environment following the given action
base_type::action_space_type action_space_type
The type of the action space for the environment.
Definition pendulum_env.h:140
virtual time_step_type create_time_step_from_response_(const nlohmann::json &response) const override final
Handle the reset response from the environment server.
base_type::time_step_type time_step_type
The time step type we return every time a step in the environment is performed.
Definition pendulum_env.h:130
static const std::string URI
The URI for accessing the environment.
Definition pendulum_env.h:117
base_type::state_type state_type
The type of the state.
Definition pendulum_env.h:150
static const std::string name
name
Definition pendulum_env.h:112
GymnasiumEnvBase< TimeStep< std::vector< real_t > >, ContinuousVectorStateContinuousScalarBoundedActionEnv< 3, 1, RealRange<-2.0, 2.0 >, 0, real_t > >::base_type base_type
Base class type.
Definition pendulum_env.h:124
Pendulum(network::RESTRLEnvClient &api_server)
Pendulum. Constructor.
Utility class to facilitate HTTP requests between the environments REST API and C++ drivers.
Definition rest_rl_env_client.h:28
Definition lunar_lander_env.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:141
A range of double precision floating point values.
Definition bitsim_types.h:167