Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ease-ph
DeepLanguageUnderstanding
Physics Simulator
Commits
f41fb9e1
Verified
Commit
f41fb9e1
authored
Mar 10, 2020
by
Sebastian Höffner
Browse files
Adding zeroMQ communication to get context and run simulation in unity.
parent
3ce3ed04
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Assets/CommandLineUtil.meta
0 → 100644
View file @
f41fb9e1
fileFormatVersion: 2
guid: 8cf00f76cccbc4945b36fedf4bd5514e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/CommandLineUtil/CommandLineUtil.cs
0 → 100644
View file @
f41fb9e1
using
System
;
namespace
CommandLineUtil
{
public
class
CLU
{
public
static
string
ValueFor
(
string
optionName
)
{
string
[]
args
=
Environment
.
GetCommandLineArgs
();
string
option
=
$"--
{
optionName
}
"
;
for
(
int
i
=
0
;
i
<
args
.
Length
;
++
i
)
{
if
(
args
[
i
]
==
option
)
{
return
args
[
i
+
1
];
}
}
return
null
;
}
}
}
\ No newline at end of file
Assets/CommandLineUtil/CommandLineUtil.cs.meta
0 → 100644
View file @
f41fb9e1
fileFormatVersion: 2
guid: 658a404b096e24b3db4deed6364c9aa0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/DLU/Resources/context.json
View file @
f41fb9e1
This diff is collapsed.
Click to expand it.
Assets/DLU/Resources/instruction.json
deleted
100644 → 0
View file @
3ce3ed04
[
{
"components"
:
{},
"name"
:
"?task_0"
,
"is_a"
:
[
"http://www.ease-crc.org/ont/EASE-ACT.owl#Placing"
],
"classifies"
:
[
"action_0"
]
},
{
"components"
:
{},
"name"
:
"action_0"
,
"is_a"
:
[
"http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Action"
],
"hasParticipant"
:
[
"cup_0"
,
"actor_0"
]
},
{
"components"
:
{
"transform"
:
{
"position"
:
{
"x"
:
0.5925120115280159
,
"y"
:
0.653468012809754
,
"z"
:
-1.600627094507217
},
"orientation"
:
{
"x"
:
-1.3969840395589e-8
,
"y"
:
-0.918447494506836
,
"z"
:
1.11758726717426e-8
,
"w"
:
-0.395542949438095
}
},
"bounds"
:
{
"center"
:
{
"x"
:
0
,
"y"
:
0.0600000023841858
,
"z"
:
0.0177846029400826
},
"extents"
:
{
"x"
:
0
,
"y"
:
0.0600000023841858
,
"z"
:
0.0177846029400826
},
"size"
:
{
"x"
:
0
,
"y"
:
0.0600000023841858
,
"z"
:
0.0177846029400826
}
},
"containerVolume"
:
[
{
"type"
:
"BoxCollider"
,
"center"
:
{
"x"
:
-2.57680034637451
,
"y"
:
0.902314186096191
,
"z"
:
1.73480021953583
},
"size"
:
{
"x"
:
0.105839252471924
,
"y"
:
0.104725956916809
,
"z"
:
0.104326486587524
},
"extents"
:
{
"x"
:
0.0529196262359619
,
"y"
:
0.0523629784584045
,
"z"
:
0.0521632432937622
}
},
{
"type"
:
"BoxCollider"
,
"center"
:
{
"x"
:
-2.57640409469604
,
"y"
:
0.902528047561646
,
"z"
:
1.736492395401
},
"size"
:
{
"x"
:
0.0742592811584473
,
"y"
:
0.105153679847717
,
"z"
:
0.100225448608398
},
"extents"
:
{
"x"
:
0.0371296405792236
,
"y"
:
0.0525768399238586
,
"z"
:
0.0501127243041992
}
},
{
"type"
:
"BoxCollider"
,
"center"
:
{
"x"
:
-2.57640409469604
,
"y"
:
0.902442157268524
,
"z"
:
1.73649263381958
},
"size"
:
{
"x"
:
0.102631092071533
,
"y"
:
0.104981899261475
,
"z"
:
0.0802216529846191
},
"extents"
:
{
"x"
:
0.0513155460357666
,
"y"
:
0.0524909496307373
,
"z"
:
0.0401108264923096
}
}
]
},
"name"
:
"cup_0"
,
"is_a"
:
[
"http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Cup"
,
"http://www.ease-crc.org/ont/EASE.owl#DesignedContainer"
],
"isOntopOf"
:
[
"table_0"
]
},
{
"components"
:
{
"transform"
:
{
"position"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
},
"orientation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
}
}
},
"name"
:
"actor_0"
,
"is_a"
:
[
"http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#PhysicalAgent"
]
},
{
"components"
:
{
"transform"
:
{
"position"
:
{
"x"
:
1.43400001525879
,
"y"
:
0
,
"z"
:
-2.04800009727478
},
"orientation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
}
}
},
"name"
:
"table_0"
,
"is_a"
:
[
"http://www.ease-crc.org/ont/EASE.owl#Table"
]
}
]
\ No newline at end of file
Assets/DLU/Scenes/Controller.unity
0 → 100644
View file @
f41fb9e1
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!29
&1
OcclusionCullingSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
2
m_OcclusionBakeSettings
:
smallestOccluder
:
5
smallestHole
:
0.25
backfaceThreshold
:
100
m_SceneGUID
:
00000000000000000000000000000000
m_OcclusionCullingData
:
{
fileID
:
0
}
---
!u!104
&2
RenderSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
9
m_Fog
:
0
m_FogColor
:
{
r
:
0.5
,
g
:
0.5
,
b
:
0.5
,
a
:
1
}
m_FogMode
:
3
m_FogDensity
:
0.01
m_LinearFogStart
:
0
m_LinearFogEnd
:
300
m_AmbientSkyColor
:
{
r
:
0.212
,
g
:
0.227
,
b
:
0.259
,
a
:
1
}
m_AmbientEquatorColor
:
{
r
:
0.114
,
g
:
0.125
,
b
:
0.133
,
a
:
1
}
m_AmbientGroundColor
:
{
r
:
0.047
,
g
:
0.043
,
b
:
0.035
,
a
:
1
}
m_AmbientIntensity
:
1
m_AmbientMode
:
0
m_SubtractiveShadowColor
:
{
r
:
0.42
,
g
:
0.478
,
b
:
0.627
,
a
:
1
}
m_SkyboxMaterial
:
{
fileID
:
10304
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_HaloStrength
:
0.5
m_FlareStrength
:
1
m_FlareFadeSpeed
:
3
m_HaloTexture
:
{
fileID
:
0
}
m_SpotCookie
:
{
fileID
:
10001
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_DefaultReflectionMode
:
0
m_DefaultReflectionResolution
:
128
m_ReflectionBounces
:
1
m_ReflectionIntensity
:
1
m_CustomReflection
:
{
fileID
:
0
}
m_Sun
:
{
fileID
:
0
}
m_IndirectSpecularColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
m_UseRadianceAmbientProbe
:
0
---
!u!157
&3
LightmapSettings
:
m_ObjectHideFlags
:
0
serializedVersion
:
11
m_GIWorkflowMode
:
1
m_GISettings
:
serializedVersion
:
2
m_BounceScale
:
1
m_IndirectOutputScale
:
1
m_AlbedoBoost
:
1
m_EnvironmentLightingMode
:
0
m_EnableBakedLightmaps
:
1
m_EnableRealtimeLightmaps
:
0
m_LightmapEditorSettings
:
serializedVersion
:
12
m_Resolution
:
2
m_BakeResolution
:
40
m_AtlasSize
:
1024
m_AO
:
0
m_AOMaxDistance
:
1
m_CompAOExponent
:
1
m_CompAOExponentDirect
:
0
m_ExtractAmbientOcclusion
:
0
m_Padding
:
2
m_LightmapParameters
:
{
fileID
:
0
}
m_LightmapsBakeMode
:
1
m_TextureCompression
:
1
m_FinalGather
:
0
m_FinalGatherFiltering
:
1
m_FinalGatherRayCount
:
256
m_ReflectionCompression
:
2
m_MixedBakeMode
:
2
m_BakeBackend
:
1
m_PVRSampling
:
1
m_PVRDirectSampleCount
:
32
m_PVRSampleCount
:
512
m_PVRBounces
:
2
m_PVREnvironmentSampleCount
:
256
m_PVREnvironmentReferencePointCount
:
2048
m_PVRFilteringMode
:
1
m_PVRDenoiserTypeDirect
:
1
m_PVRDenoiserTypeIndirect
:
1
m_PVRDenoiserTypeAO
:
1
m_PVRFilterTypeDirect
:
0
m_PVRFilterTypeIndirect
:
0
m_PVRFilterTypeAO
:
0
m_PVREnvironmentMIS
:
1
m_PVRCulling
:
1
m_PVRFilteringGaussRadiusDirect
:
1
m_PVRFilteringGaussRadiusIndirect
:
5
m_PVRFilteringGaussRadiusAO
:
2
m_PVRFilteringAtrousPositionSigmaDirect
:
0.5
m_PVRFilteringAtrousPositionSigmaIndirect
:
2
m_PVRFilteringAtrousPositionSigmaAO
:
1
m_ExportTrainingData
:
0
m_TrainingDataDestination
:
TrainingData
m_LightProbeSampleCountMultiplier
:
4
m_LightingDataAsset
:
{
fileID
:
0
}
m_UseShadowmask
:
1
---
!u!196
&4
NavMeshSettings
:
serializedVersion
:
2
m_ObjectHideFlags
:
0
m_BuildSettings
:
serializedVersion
:
2
agentTypeID
:
0
agentRadius
:
0.5
agentHeight
:
2
agentSlope
:
45
agentClimb
:
0.4
ledgeDropHeight
:
0
maxJumpAcrossDistance
:
0
minRegionArea
:
2
manualCellSize
:
0
cellSize
:
0.16666667
manualTileSize
:
0
tileSize
:
256
accuratePlacement
:
0
debug
:
m_Flags
:
0
m_NavMeshData
:
{
fileID
:
0
}
---
!u!1
&44631459
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
44631460
}
-
component
:
{
fileID
:
44631462
}
m_Layer
:
0
m_Name
:
Camera
1
m_TagString
:
MainCamera
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!4
&44631460
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
44631459
}
m_LocalRotation
:
{
x
:
0.2194823
,
y
:
0.28965604
,
z
:
-0.05115226
,
w
:
0.9302206
}
m_LocalPosition
:
{
x
:
-2.65
,
y
:
2.27
,
z
:
-2.54
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
963194228
}
m_Father
:
{
fileID
:
752559679
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
25.974
,
y
:
35.062
,
z
:
2.039
}
---
!u!20
&44631462
Camera
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
44631459
}
m_Enabled
:
1
serializedVersion
:
2
m_ClearFlags
:
1
m_BackGroundColor
:
{
r
:
0.19215687
,
g
:
0.3019608
,
b
:
0.4745098
,
a
:
0
}
m_projectionMatrixMode
:
1
m_GateFitMode
:
2
m_FOVAxisMode
:
0
m_SensorSize
:
{
x
:
36
,
y
:
24
}
m_LensShift
:
{
x
:
0
,
y
:
0
}
m_FocalLength
:
50
m_NormalizedViewPortRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
height
:
1
near clip plane
:
0.3
far clip plane
:
1000
field of view
:
60
orthographic
:
0
orthographic size
:
5
m_Depth
:
-1
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_RenderingPath
:
-1
m_TargetTexture
:
{
fileID
:
8400000
,
guid
:
334d30cf14fdb40e49a17ec66419ba0e
,
type
:
2
}
m_TargetDisplay
:
0
m_TargetEye
:
3
m_HDR
:
1
m_AllowMSAA
:
1
m_AllowDynamicResolution
:
0
m_ForceIntoRT
:
0
m_OcclusionCulling
:
1
m_StereoConvergence
:
10
m_StereoSeparation
:
0.022
---
!u!1
&107104698
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
107104701
}
-
component
:
{
fileID
:
107104700
}
m_Layer
:
0
m_Name
:
Camera
2
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!20
&107104700
Camera
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
107104698
}
m_Enabled
:
1
serializedVersion
:
2
m_ClearFlags
:
1
m_BackGroundColor
:
{
r
:
0.19215687
,
g
:
0.3019608
,
b
:
0.4745098
,
a
:
0
}
m_projectionMatrixMode
:
1
m_GateFitMode
:
2
m_FOVAxisMode
:
0
m_SensorSize
:
{
x
:
36
,
y
:
24
}
m_LensShift
:
{
x
:
0
,
y
:
0
}
m_FocalLength
:
50
m_NormalizedViewPortRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
height
:
1
near clip plane
:
0.3
far clip plane
:
1000
field of view
:
60
orthographic
:
0
orthographic size
:
5
m_Depth
:
-1
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_RenderingPath
:
-1
m_TargetTexture
:
{
fileID
:
8400000
,
guid
:
70ed401ec69b54446b4244296b34f4cd
,
type
:
2
}
m_TargetDisplay
:
1
m_TargetEye
:
3
m_HDR
:
1
m_AllowMSAA
:
1
m_AllowDynamicResolution
:
0
m_ForceIntoRT
:
0
m_OcclusionCulling
:
1
m_StereoConvergence
:
10
m_StereoSeparation
:
0.022
---
!u!4
&107104701
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
107104698
}
m_LocalRotation
:
{
x
:
0.1924668
,
y
:
-0.3525162
,
z
:
0.074331
,
w
:
0.912778
}
m_LocalPosition
:
{
x
:
2.59
,
y
:
2.08
,
z
:
-2.76
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
752559679
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
23.814001
,
y
:
-42.233
,
z
:
0
}
---
!u!1
&523775773
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
523775774
}
-
component
:
{
fileID
:
523775775
}
m_Layer
:
0
m_Name
:
Camera
4
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!4
&523775774
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
523775773
}
m_LocalRotation
:
{
x
:
-0.1012001
,
y
:
-0.8993239
,
z
:
0.2497288
,
w
:
-0.344399
}
m_LocalPosition
:
{
x
:
-2.58
,
y
:
2.38
,
z
:
2.86
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
752559679
}
m_RootOrder
:
3
m_LocalEulerAnglesHint
:
{
x
:
31.257002
,
y
:
-221.721
,
z
:
0.671
}
---
!u!20
&523775775
Camera
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
523775773
}
m_Enabled
:
1
serializedVersion
:
2
m_ClearFlags
:
1
m_BackGroundColor
:
{
r
:
0.19215687
,
g
:
0.3019608
,
b
:
0.4745098
,
a
:
0
}
m_projectionMatrixMode
:
1
m_GateFitMode
:
2
m_FOVAxisMode
:
0
m_SensorSize
:
{
x
:
36
,
y
:
24
}
m_LensShift
:
{
x
:
0
,
y
:
0
}
m_FocalLength
:
50
m_NormalizedViewPortRect
:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
height
:
1
near clip plane
:
0.01
far clip plane
:
1000
field of view
:
60
orthographic
:
0
orthographic size
:
5
m_Depth
:
-1
m_CullingMask
:
serializedVersion
:
2
m_Bits
:
4294967295
m_RenderingPath
:
-1
m_TargetTexture
:
{
fileID
:
8400000
,
guid
:
79e5fdda07b1545998fceff3cba8a8ba
,
type
:
2
}
m_TargetDisplay
:
0
m_TargetEye
:
3
m_HDR
:
1
m_AllowMSAA
:
1
m_AllowDynamicResolution
:
0
m_ForceIntoRT
:
0
m_OcclusionCulling
:
1
m_StereoConvergence
:
10
m_StereoSeparation
:
0.022
---
!u!1
&752559678
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
752559679
}
m_Layer
:
0
m_Name
:
Cameras
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!4
&752559679
Transform
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
752559678
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
44631460
}
-
{
fileID
:
107104701
}
-
{
fileID
:
1396513433
}
-
{
fileID
:
523775774
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&963194225
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
serializedVersion
:
6