20 #ifndef _WORLDSTATE_H_
21 #define _WORLDSTATE_H_
24 #include "TimestampedReward.h"
25 #include "TimestampedString.h"
26 #include "TimestampedVideoFrame.h"
69 std::vector< boost::shared_ptr< TimestampedVideoFrame > >
video_frames;
75 std::vector< boost::shared_ptr< TimestampedReward > >
rewards;
81 std::vector< boost::shared_ptr< TimestampedString > >
observations;
87 std::vector< boost::shared_ptr< TimestampedString > >
errors;
89 friend std::ostream& operator<<(std::ostream& os,
const WorldState& ws);
Represents the state of the game world at a moment in time.
Definition: WorldState.h:35
int number_of_observations_since_last_state
Contains the number of observations that have been received since the last time the world state was t...
Definition: WorldState.h:63
bool is_mission_running
Specifies whether the mission was still running at the moment this world state was taken.
Definition: WorldState.h:45
std::vector< boost::shared_ptr< TimestampedVideoFrame > > video_frames
Contains the timestamped video frames that are stored in this world state.
Definition: WorldState.h:69
std::vector< boost::shared_ptr< TimestampedReward > > rewards
Contains the timestamped rewards that are stored in this world state.
Definition: WorldState.h:75
std::vector< boost::shared_ptr< TimestampedString > > errors
If there are errors in receiving the messages then we log them here.
Definition: WorldState.h:87
std::vector< boost::shared_ptr< TimestampedString > > mission_control_messages
Contains the timestamped mission control messages that are stored in this world state.
Definition: WorldState.h:84
int number_of_video_frames_since_last_state
Contains the number of video frames that have been received since the last time the world state was t...
Definition: WorldState.h:51
std::vector< boost::shared_ptr< TimestampedString > > observations
Contains the timestamped observations that are stored in this world state.
Definition: WorldState.h:81
bool has_mission_begun
Specifies whether the mission had begun when this world state was taken (whether or not it has since ...
Definition: WorldState.h:42
int number_of_rewards_since_last_state
Contains the number of rewards that have been received since the last time the world state was taken.
Definition: WorldState.h:57
void clear()
Resets the world state to be empty, with no mission running.