Fix #14
This commit is contained in:
parent
8366e5c0c9
commit
edb4594ef5
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue