This commit is contained in:
nsubiron 2017-04-25 18:30:30 +02:00
parent 8366e5c0c9
commit edb4594ef5
2 changed files with 5 additions and 2 deletions

View File

@ -131,7 +131,8 @@ static bool SendReward(
const ACarlaPlayerState &PlayerState)
{
auto reward = std::make_unique<carla::Reward_Values>();
reward->timestamp = PlayerState.GetPlatformTimeStamp();
reward->platform_timestamp = PlayerState.GetPlatformTimeStamp();
reward->game_timestamp = PlayerState.GetGameTimeStamp();
Set(reward->player_location, PlayerState.GetLocation());
Set(reward->player_orientation, PlayerState.GetOrientation());
Set(reward->player_acceleration, PlayerState.GetAcceleration());

View File

@ -43,8 +43,10 @@ namespace carla {
struct Reward_Values {
Reward_Values();
~Reward_Values();
/// Time-stamp of the current frame.
/// Time-stamp of the current frame, in milliseconds as given by the OS.
int32_t platform_timestamp;
/// In-game time-stamp, milliseconds elapsed since the beginning of the
/// current level.
int32_t game_timestamp;
/// World location of the player.
Vector2D player_location;