Skip to content

Commit

Permalink
Merge pull request #321 from tier4/feature/sensors-regression-tests
Browse files Browse the repository at this point in the history
Added Sensor (Lidar and Imu) Test
  • Loading branch information
mackierx111 authored Aug 13, 2024
2 parents 2f2490b + 9973f98 commit 254b422
Show file tree
Hide file tree
Showing 12 changed files with 1,882 additions and 605 deletions.
605 changes: 551 additions & 54 deletions Assets/Tests/PlayMode/Sensors/SensorsTest.cs

Large diffs are not rendered by default.

1,292 changes: 741 additions & 551 deletions Assets/Tests/PlayMode/Sensors/SensorsTest.unity

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Assets/Tests/PlayMode/Sensors/Settings.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

370 changes: 370 additions & 0 deletions Assets/Tests/PlayMode/Sensors/Settings/TestVolumeProfile.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3768527809937896628
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0d7593b3a9277ac4696b20006c21dde2, type: 3}
m_Name: VisualEnvironment
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
skyType:
m_OverrideState: 1
m_Value: 1
skyAmbientMode:
m_OverrideState: 1
m_Value: 0
fogType:
m_OverrideState: 0
m_Value: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: TestVolumeProfile
m_EditorClassIdentifier:
components:
- {fileID: 1062231254598306812}
- {fileID: -3768527809937896628}
- {fileID: 6553751843573519693}
- {fileID: 5701176100694489548}
--- !u!114 &1062231254598306812
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7ddcec8a8eb2d684d833ac8f5d26aebd, type: 3}
m_Name: HDShadowSettings
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
maxShadowDistance:
m_OverrideState: 1
m_Value: 500
min: 0
directionalTransmissionMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
cascadeShadowSplitCount:
m_OverrideState: 0
m_Value: 4
min: 1
max: 4
cascadeShadowSplit0:
m_OverrideState: 0
m_Value: 0.05
cascadeShadowSplit1:
m_OverrideState: 0
m_Value: 0.15
cascadeShadowSplit2:
m_OverrideState: 0
m_Value: 0.3
cascadeShadowBorder0:
m_OverrideState: 0
m_Value: 0
cascadeShadowBorder1:
m_OverrideState: 0
m_Value: 0
cascadeShadowBorder2:
m_OverrideState: 0
m_Value: 0
cascadeShadowBorder3:
m_OverrideState: 0
m_Value: 0
--- !u!114 &5701176100694489548
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2d08ce26990eb1a4a9177b860541e702, type: 3}
m_Name: Exposure
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
mode:
m_OverrideState: 1
m_Value: 0
meteringMode:
m_OverrideState: 0
m_Value: 2
luminanceSource:
m_OverrideState: 0
m_Value: 1
fixedExposure:
m_OverrideState: 1
m_Value: 13
compensation:
m_OverrideState: 1
m_Value: -0.4
limitMin:
m_OverrideState: 0
m_Value: -1
limitMax:
m_OverrideState: 0
m_Value: 14
curveMap:
m_OverrideState: 0
m_Value:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -10
value: -10
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 20
value: 20
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
limitMinCurveMap:
m_OverrideState: 0
m_Value:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -10
value: -12
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 20
value: 18
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
limitMaxCurveMap:
m_OverrideState: 0
m_Value:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -10
value: -8
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 20
value: 22
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
adaptationMode:
m_OverrideState: 0
m_Value: 1
adaptationSpeedDarkToLight:
m_OverrideState: 0
m_Value: 3
min: 0.001
adaptationSpeedLightToDark:
m_OverrideState: 0
m_Value: 1
min: 0.001
weightTextureMask:
m_OverrideState: 0
m_Value: {fileID: 0}
histogramPercentages:
m_OverrideState: 0
m_Value: {x: 40, y: 90}
min: 0
max: 100
histogramUseCurveRemapping:
m_OverrideState: 0
m_Value: 0
targetMidGray:
m_OverrideState: 0
m_Value: 0
centerAroundExposureTarget:
m_OverrideState: 0
m_Value: 0
proceduralCenter:
m_OverrideState: 0
m_Value: {x: 0.5, y: 0.5}
proceduralRadii:
m_OverrideState: 0
m_Value: {x: 0.3, y: 0.3}
maskMinIntensity:
m_OverrideState: 0
m_Value: -30
maskMaxIntensity:
m_OverrideState: 0
m_Value: 30
proceduralSoftness:
m_OverrideState: 0
m_Value: 0.5
min: 0
--- !u!114 &6553751843573519693
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59b6606ef2548734bb6d11b9d160bc7e, type: 3}
m_Name: HDRISky
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
rotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
skyIntensityMode:
m_OverrideState: 1
m_Value: 1
exposure:
m_OverrideState: 0
m_Value: 0
multiplier:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxValue:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxColor:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
desiredLuxValue:
m_OverrideState: 1
m_Value: 10000
updateMode:
m_OverrideState: 0
m_Value: 0
updatePeriod:
m_OverrideState: 0
m_Value: 0
min: 0
includeSunInBaking:
m_OverrideState: 0
m_Value: 0
hdriSky:
m_OverrideState: 0
m_Value: {fileID: 0}
enableDistortion:
m_OverrideState: 1
m_Value: 0
procedural:
m_OverrideState: 0
m_Value: 1
flowmap:
m_OverrideState: 0
m_Value: {fileID: 0}
upperHemisphereOnly:
m_OverrideState: 0
m_Value: 1
scrollDirection:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
scrollSpeed:
m_OverrideState: 0
m_Value: 2
min: 0
enableBackplate:
m_OverrideState: 0
m_Value: 0
backplateType:
m_OverrideState: 0
m_Value: 0
groundLevel:
m_OverrideState: 0
m_Value: 0
scale:
m_OverrideState: 0
m_Value: {x: 32, y: 32}
projectionDistance:
m_OverrideState: 0
m_Value: 16
min: 0.0000001
plateRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexOffset:
m_OverrideState: 0
m_Value: {x: 0, y: 0}
blendAmount:
m_OverrideState: 0
m_Value: 0
min: 0
max: 100
shadowTint:
m_OverrideState: 0
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
hdr: 0
showAlpha: 1
showEyeDropper: 1
pointLightShadow:
m_OverrideState: 0
m_Value: 0
dirLightShadow:
m_OverrideState: 0
m_Value: 0
rectLightShadow:
m_OverrideState: 0
m_Value: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Tests/PlayMode/Sensors/TestsResources.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 254b422

Please sign in to comment.