Class Acrobot¶
Defined in File acrobot_env.h
Inheritance Relationships¶
Base Type¶
public bitrl::envs::gymnasium::GymnasiumEnvBase< TimeStep< std::vector< real_t > >, ContinuousVectorStateDiscreteActionEnv< 6, 2, 0, real_t > >(Template Class GymnasiumEnvBase)
Class Documentation¶
-
class Acrobot : public bitrl::envs::gymnasium::GymnasiumEnvBase<TimeStep<std::vector<real_t>>, ContinuousVectorStateDiscreteActionEnv<6, 2, 0, real_t>>¶
class Acrobot. The Acrobot class. Interface for Gymnasium::Acrobot environment.
Public Types
-
typedef GymnasiumEnvBase<TimeStep<std::vector<real_t>>, ContinuousVectorStateDiscreteActionEnv<6, 2, 0, real_t>>::base_type base_type¶
Base class type.
-
typedef base_type::time_step_type time_step_type¶
The time step type we return every time a step in the environment is performed.
-
typedef base_type::state_space_type state_space_type¶
The type describing the state space for the environment.
-
typedef base_type::action_space_type action_space_type¶
The type of the action space for the environment.
Public Functions
-
Acrobot(const RESTApiServerWrapper &api_server)¶
Acrobot. Constructor.
- Parameters:
api_server. – The RESTApiServerWrapper instance to use
-
Acrobot(const RESTApiServerWrapper &api_server, const uint_t cidx)¶
Acrobot. Constructor.
- Parameters:
api_server. – The RESTApiServerWrapper instance to use
cidx. – The index to assign to the created environment
-
~Acrobot() = default¶
~Acrobot. Destructor
-
virtual void make(const std::string &version, const std::unordered_map<std::string, std::any> &options) final override¶
make. Build the environment
- Parameters:
version. – The version of the environment to create
options. – The options to use when creating the environment
-
virtual time_step_type step(const action_type &action) final override¶
step. Step in the environment following the given action.
- Parameters:
action. – The action to execute
Public Static Attributes
-
static const std::string name = "Acrobot"¶
The name of the environment.
-
static const std::string URI = "/gymnasium/acrobot-env"¶
The URI for accessing the environment.
Protected Functions
-
virtual time_step_type create_time_step_from_response_(const nlohmann::json &response) const final override¶
Handle the reset response from the environment server.
-
typedef GymnasiumEnvBase<TimeStep<std::vector<real_t>>, ContinuousVectorStateDiscreteActionEnv<6, 2, 0, real_t>>::base_type base_type¶