Add minor improvements

This commit is contained in:
Daniel Santos-Olivan 2020-11-30 16:00:17 +01:00 committed by bernat
parent cffda1b8de
commit 75feb3d1a8
1 changed files with 6 additions and 1 deletions

View File

@ -96,8 +96,8 @@ class Scenario():
actor_snapshot = np.array([ actor_snapshot = np.array([
float(snapshot.frame - self.init_timestamp['frame0']), \ float(snapshot.frame - self.init_timestamp['frame0']), \
snapshot.timestamp.elapsed_seconds - self.init_timestamp['time0'], \ snapshot.timestamp.elapsed_seconds - self.init_timestamp['time0'], \
actor.get_velocity().x, actor.get_velocity().y, actor.get_velocity().z, \
actor.get_location().x, actor.get_location().y, actor.get_location().z, \ actor.get_location().x, actor.get_location().y, actor.get_location().z, \
actor.get_velocity().x, actor.get_velocity().y, actor.get_velocity().z, \
actor.get_angular_velocity().x, actor.get_angular_velocity().y, actor.get_angular_velocity().z]) actor.get_angular_velocity().x, actor.get_angular_velocity().y, actor.get_angular_velocity().z])
return actor_snapshot return actor_snapshot
@ -332,4 +332,9 @@ class TestSensorDeterminism(SyncSmokeTest):
test_sensors.test_scenario(repetitions=5, sim_tics = 100) test_sensors.test_scenario(repetitions=5, sim_tics = 100)
except DeterminismError as err: except DeterminismError as err:
test_sensors.scene.clear_scene() test_sensors.scene.clear_scene()
# Remove all the output files
shutil.rmtree(output_path)
self.fail(err) self.fail(err)
# Remove all the output files
shutil.rmtree(output_path)