26 namespace environments {
31 roi_size(
"roi_size", 0),
32 environment_grid(new mic::types::TensorXf()),
33 observation_grid(new mic::types::TensorXf())
36 registerProperty(
width);
50 LOG(LDEBUG) <<
"Current agent position = " << cur_pos;
51 LOG(LDEBUG) <<
"Move to be performed = " << ac_;
53 mic::types::Position2D new_pos = cur_pos + ac_;
71 mic::types::Position2D pos(x_,y_);
72 mic::types::NESWAction ac(action_);
74 mic::types::Position2D new_pos = pos + ac;
81 mic::types::Position2D new_pos = pos_ + ac_;
89 mic::types::Position2D new_pos = pos + ac_;
virtual bool isStateTerminal(long x_, long y_)
Environment(std::string node_name_)
virtual void moveAgentToInitialPosition()
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 bool moveAgentToPosition(mic::types::Position2D pos_)=0
bool moveAgent(mic::types::Action2DInterface ac_)
mic::configuration::Property< size_t > roi_size
Property: size of the ROI (region of interest).
mic::types::Position2D initial_position
Property: initial position of the agent.
mic::configuration::Property< size_t > height
Property: height of the environment.
virtual bool isStateAllowed(long x_, long y_)