#include <robot_env.h>
|
| | RobotEnv ()=default |
| |
| virtual void | make (const std::string &version, const std::unordered_map< std::string, std::any > &make_options, const std::unordered_map< std::string, std::any > &reset_options) override |
| | Construct the environment instance.
|
| |
| virtual void | close () override |
| | Close and release any acquired environment resources.
|
| |
| virtual time_step_type | reset () override |
| | Reset the environment to an initial state using the reset options specified during make.
|
| |
| virtual time_step_type | step (const action_type &) override |
| |
| void | simulate () |
| |
| virtual | ~EnvBase ()=default |
| | Virtual destructor.
|
| |
| virtual time_step_type | step (const action_type &action)=0 |
| | Perform one step in the environment using an action.
|
| |
| const std::unordered_map< std::string, std::any > & | make_options () const noexcept |
| | Access the configuration options provided to make().
|
| |
| const std::unordered_map< std::string, std::any > & | reset_options () const noexcept |
| | Access the configuration options provided to make().
|
| |
| T | read_option (const std::string &op_name) const |
| | Read a specific make() option and cast it to the requested type.
|
| |
| std::string | idx () const noexcept |
| | Get the id identifying this environment within a simulation batch. The id is valid only if make has been called.
|
| |
| bool | is_created () const noexcept |
| | Check if make() has successfully initialized the environment.
|
| |
| std::string | env_name () const noexcept |
| | Get the name of this environment instance.
|
| |
| std::string | version () const noexcept |
| | Get the environment version set during make().
|
| |
◆ action_type
◆ RobotEnv()
| example_13::RobotEnv::RobotEnv |
( |
| ) |
|
|
default |
◆ close()
| virtual void example_13::RobotEnv::close |
( |
| ) |
|
|
inlineoverridevirtual |
◆ make()
| virtual void example_13::RobotEnv::make |
( |
const std::string & |
version, |
|
|
const std::unordered_map< std::string, std::any > & |
make_options, |
|
|
const std::unordered_map< std::string, std::any > & |
reset_options |
|
) |
| |
|
overridevirtual |
Construct the environment instance.
- Parameters
-
| version | Version string used to control environment variant |
| make_options | Key-value configuration options for environment creation. |
| reset_options | Key-value configuration how the environment should be reset |
- Note
- Derived classes should use set_version_() and set_make_options_() internally. They may store selected options for later use.
Implements bitrl::envs::EnvBase< time_step_type, space_type >.
◆ reset()
◆ simulate()
| void example_13::RobotEnv::simulate |
( |
| ) |
|
◆ step()
The documentation for this class was generated from the following file: