1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-18 03:30:19 +01:00

Merge branch 'master' into imports

This commit is contained in:
Roman Dobosz
2018-04-24 07:43:04 +02:00
124 changed files with 10828 additions and 17 deletions

View File

@@ -177,7 +177,7 @@ class CarlaEnvironmentWrapper(ew.EnvironmentWrapper):
- np.abs(self.control.steer) * 10
# update measurements
self.observation = {
self.state = {
'observation': sensor_data['CameraRGB'].data,
'measurements': [measurements.player_measurements.forward_speed],
}
@@ -221,9 +221,9 @@ class CarlaEnvironmentWrapper(ew.EnvironmentWrapper):
self.game.start_episode(self.iterator_start_positions)
# start the game with some initial speed
observation = None
state = None
for i in range(self.num_speedup_steps):
observation = self.step([1.0, 0])['observation']
self.observation = observation
state = self.step([1.0, 0])['state']
self.state = state
return observation
return state