Template Class GymWalk¶
Defined in File gym_walk.h
Inheritance Relationships¶
Base Type¶
public bitrl::envs::EnvBase< TimeStep< uint_t >, ScalarDiscreteEnv< state_size, 2, 0, 0 > >(Template Class EnvBase)
Class Documentation¶
-
template<uint_t state_size>
class GymWalk : public bitrl::envs::EnvBase<TimeStep<uint_t>, ScalarDiscreteEnv<state_size, 2, 0, 0>>¶ class GymWalk. Interface for the GymWalk environment
Public Types
-
typedef EnvBase<TimeStep<uint_t>, ScalarDiscreteEnv<state_size, 2, 0, 0>> base_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
-
GymWalk(const RESTApiServerWrapper &api_server)¶
Constructor.
-
GymWalk(const RESTApiServerWrapper &api_server, const uint_t cidx)¶
Constructor.
-
virtual void make(const std::string &version, const std::unordered_map<std::string, std::any> &options) final override¶
make. Builds the environment. Optionally we can choose if the environment will be slippery
-
virtual bool is_alive() const final override¶
-
virtual void close() final override¶
close the environment
-
virtual time_step_type step(const action_type &action) final override¶
step
- Parameters:
action –
- Returns:
-
virtual time_step_type reset(uint_t seed, const std::unordered_map<std::string, std::any> &options) final override¶
Reset the environment.
-
typedef EnvBase<TimeStep<uint_t>, ScalarDiscreteEnv<state_size, 2, 0, 0>> base_type¶