Template Class GymnasiumVecEnvBase

Inheritance Relationships

Base Type

Class Documentation

template<typename VectorTimeStepType, typename SpaceType>
class GymnasiumVecEnvBase : public bitrl::envs::gymnasium::GymnasiumEnvBase<VectorTimeStepType, SpaceType>

Public Types

typedef GymnasiumEnvBase<VectorTimeStepType, SpaceType>::base_type base_type

The 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.

typedef base_type::action_type action_type

The type of the action to be undertaken in the environment.

typedef base_type::state_type state_type

The type of the state.

Public Functions

virtual void make(const std::string &version, const std::unordered_map<std::string, std::any> &options) = 0

make. Builds the environment.

Parameters:
  • version. – the version of the environment to build

  • options. – Options to use for building the environment. Concrete classes may choose to hold a copy

inline uint_t get_n_envs() const noexcept

Returns the number of environments.

inline void reset_if_any_done(bool flag) noexcept
inline bool get_reset_if_any_done() const noexcept

Protected Functions

GymnasiumVecEnvBase(const RESTApiServerWrapper &api_server, const uint_t cidx, const std::string &name)

Constructor.

GymnasiumVecEnvBase(const GymnasiumVecEnvBase &other)