23 #ifndef SRC_TYPES_ENVIRONMENT_HPP_
24 #define SRC_TYPES_ENVIRONMENT_HPP_
26 #include <types/Position2D.hpp>
27 #include <types/TensorTypes.hpp>
28 #include <types/MatrixTypes.hpp>
29 #include <logger/Log.hpp>
31 #include <configuration/PropertyTree.hpp>
34 namespace environments {
150 bool moveAgent (mic::types::Action2DInterface ac_);
222 virtual bool isActionAllowed(mic::types::Position2D pos_, mic::types::Action2DInterface ac_);
235 mic::configuration::Property<size_t>
width;
238 mic::configuration::Property<size_t>
height;
virtual void initializeEnvironment()=0
virtual mic::types::MatrixXfPtr encodeObservation()=0
Abstract class representing an environment.
size_t channels
Number of channels.
virtual mic::types::MatrixXfPtr encodeEnvironment()=0
virtual bool isStateTerminal(long x_, long y_)
Environment(std::string node_name_)
virtual void moveAgentToInitialPosition()
virtual size_t getEnvironmentSize()
virtual size_t getObservationWidth()
mic::configuration::Property< size_t > width
Property: width of the environment.
virtual bool isActionAllowed(long x_, long y_, size_t action_)
bool pomdp_flag
Flag related to.
virtual mic::types::Position2D getAgentPosition()=0
virtual size_t getEnvironmentWidth()
virtual bool moveAgentToPosition(mic::types::Position2D pos_)=0
virtual size_t getObservationSize()
virtual std::string observationToString()=0
bool moveAgent(mic::types::Action2DInterface ac_)
mic::configuration::Property< size_t > roi_size
Property: size of the ROI (region of interest).
mic::types::TensorXfPtr observation_grid
virtual size_t getEnvironmentHeight()
mic::types::TensorXfPtr environment_grid
Tensor storing the environment.
virtual std::string environmentToString()=0
mic::types::TensorXfPtr & getEnvironment()
mic::types::Position2D initial_position
Property: initial position of the agent.
virtual float getStateReward(mic::types::Position2D pos_)=0
mic::configuration::Property< size_t > height
Property: height of the environment.
virtual size_t getChannels()
virtual bool isStateAllowed(long x_, long y_)
virtual size_t getObservationHeight()