Class sdm::GymInterface
Class List > sdm > GymInterface
#include <gym_interface.hpp>
Inherited by the following classes: sdm::BaseBeliefMDP, sdm::BaseBeliefMDP, sdm::InteractiveWorld, sdm::MDP, sdm::MDPInterface
Public Functions
Type | Name |
---|---|
virtual std::shared_ptr< Space > | getActionSpaceAt (const std::shared_ptr< Observation > & observation, number t) = 0 Get the action space. |
virtual std::shared_ptr< Action > | getRandomAction (const std::shared_ptr< Observation > & observation, number t) = 0 Get random action. |
virtual std::shared_ptr< Observation > | reset () = 0 Reset the environment and return initial observation. |
virtual std::tuple< std::shared_ptr< Observation >, std::vector< double >, bool > | step (std::shared_ptr< Action > action) = 0 Do a step on the environment. |
Public Functions Documentation
function getActionSpaceAt
virtual std::shared_ptr< Space > sdm::GymInterface::getActionSpaceAt (
const std::shared_ptr< Observation > & observation,
number t
) = 0
Parameters:
observation
the observation in considerationt
time step
Returns:
the action space.
function getRandomAction
virtual std::shared_ptr< Action > sdm::GymInterface::getRandomAction (
const std::shared_ptr< Observation > & observation,
number t
) = 0
Parameters:
observation
the observation in consideration.t
time step.
Returns:
the random action.
function reset
virtual std::shared_ptr< Observation > sdm::GymInterface::reset () = 0
Returns:
the initial observation
function step
virtual std::tuple< std::shared_ptr< Observation >, std::vector< double >, bool > sdm::GymInterface::step (
std::shared_ptr< Action > action
) = 0
Parameters:
action
the action to execute
Returns:
the information produced. Include : next observation, rewards, episode done
The documentation for this class was generated from the following file src/sdm/world/gym_interface.hpp