Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
山
山西检定流水线数字孪生项目
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨泽宇
山西检定流水线数字孪生项目
Commits
7179fe90
Commit
7179fe90
authored
Jun 15, 2024
by
杨泽宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
e9c2d92a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15491 additions
and
4934 deletions
+15491
-4934
AGVDemoV2.cs
Assets/Scripts/Components/AGV/AGVDemoV2.cs
+8
-5
LoginManager.cs
Assets/Scripts/Components/AGV/LoginManager.cs
+3
-3
URP-HighFidelity.asset
Assets/URP设置/URP-HighFidelity.asset
+1
-1
1_Main.unity
Assets/_Scenes/1_Main.unity
+15474
-4920
Highlight Plus Profile.asset
Assets/_美术资源/后处理配置文件/Highlight Plus Profile.asset
+1
-1
AGV1.prefab
Assets/_预设/设备/AGV1.prefab
+4
-4
No files found.
Assets/Scripts/Components/AGV/AGVDemoV2.cs
View file @
7179fe90
...
@@ -14,7 +14,7 @@ public class AGVDemoV2 : MonoBehaviour
...
@@ -14,7 +14,7 @@ public class AGVDemoV2 : MonoBehaviour
public
void
Update
()
public
void
Update
()
{
{
UpdatePosition
();
UpdatePosition
();
//
UpdateErrorReporting();
UpdateErrorReporting
();
}
}
private
void
UpdatePosition
()
private
void
UpdatePosition
()
...
@@ -23,6 +23,8 @@ public class AGVDemoV2 : MonoBehaviour
...
@@ -23,6 +23,8 @@ public class AGVDemoV2 : MonoBehaviour
}
}
private
void
UpdateErrorReporting
()
private
void
UpdateErrorReporting
()
{
if
(
manager
.
Failure
.
code
==
200
)
{
{
foreach
(
var
faultData
in
manager
.
Failure
.
data
)
foreach
(
var
faultData
in
manager
.
Failure
.
data
)
{
{
...
@@ -35,4 +37,5 @@ public class AGVDemoV2 : MonoBehaviour
...
@@ -35,4 +37,5 @@ public class AGVDemoV2 : MonoBehaviour
}
}
}
}
}
}
}
}
}
Assets/Scripts/Components/AGV/LoginManager.cs
View file @
7179fe90
...
@@ -75,7 +75,7 @@ public class LoginManager : MonoBehaviour
...
@@ -75,7 +75,7 @@ public class LoginManager : MonoBehaviour
while
(
true
)
while
(
true
)
{
{
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
productionlineID
.
text
))
using
(
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
ProductionlineID
))
{
{
// 设置请求头
// 设置请求头
request
.
SetRequestHeader
(
"Content-Type"
,
"application/json"
);
request
.
SetRequestHeader
(
"Content-Type"
,
"application/json"
);
...
@@ -105,11 +105,11 @@ public class LoginManager : MonoBehaviour
...
@@ -105,11 +105,11 @@ public class LoginManager : MonoBehaviour
private
IEnumerator
FaultInformation
()
private
IEnumerator
FaultInformation
()
{
{
string
jsonData
=
"{\"lineId\":\""
+
lineID
.
text
+
"\"}"
;
string
jsonData
=
"{\"lineId\":\""
+
LineID
+
"\"}"
;
while
(
true
)
while
(
true
)
{
{
using
(
UnityWebRequest
request
=
UnityWebRequest
.
PostWwwForm
(
faultInterface
.
text
,
jsonData
))
using
(
UnityWebRequest
request
=
UnityWebRequest
.
PostWwwForm
(
FaultInterface
,
jsonData
))
{
{
// 设置请求头
// 设置请求头
request
.
SetRequestHeader
(
"Content-Type"
,
"application/json"
);
request
.
SetRequestHeader
(
"Content-Type"
,
"application/json"
);
...
...
Assets/URP设置/URP-HighFidelity.asset
View file @
7179fe90
...
@@ -90,7 +90,7 @@ MonoBehaviour:
...
@@ -90,7 +90,7 @@ MonoBehaviour:
m_PrefilteringModeDeferredRendering
:
2
m_PrefilteringModeDeferredRendering
:
2
m_PrefilteringModeScreenSpaceOcclusion
:
2
m_PrefilteringModeScreenSpaceOcclusion
:
2
m_PrefilterDebugKeywords
:
1
m_PrefilterDebugKeywords
:
1
m_PrefilterWriteRenderingLayers
:
1
m_PrefilterWriteRenderingLayers
:
0
m_PrefilterHDROutput
:
1
m_PrefilterHDROutput
:
1
m_PrefilterSSAODepthNormals
:
0
m_PrefilterSSAODepthNormals
:
0
m_PrefilterSSAOSourceDepthLow
:
1
m_PrefilterSSAOSourceDepthLow
:
1
...
...
Assets/_Scenes/1_Main.unity
View file @
7179fe90
This diff is collapsed.
Click to expand it.
Assets/_美术资源/后处理配置文件/Highlight Plus Profile.asset
View file @
7179fe90
...
@@ -83,7 +83,7 @@ MonoBehaviour:
...
@@ -83,7 +83,7 @@ MonoBehaviour:
outlineVisibility
:
0
outlineVisibility
:
0
outlineIndependent
:
0
outlineIndependent
:
0
outlineMaskMode
:
0
outlineMaskMode
:
0
glow
:
1
glow
:
0
glowWidth
:
0.5
glowWidth
:
0.5
glowQuality
:
1
glowQuality
:
1
glowBlurMethod
:
0
glowBlurMethod
:
0
...
...
Assets/_预设/设备/AGV1.prefab
View file @
7179fe90
...
@@ -435,7 +435,7 @@ Transform:
...
@@ -435,7 +435,7 @@ Transform:
m_GameObject
:
{
fileID
:
1965839620980476416
}
m_GameObject
:
{
fileID
:
1965839620980476416
}
serializedVersion
:
2
serializedVersion
:
2
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
.00011085486
,
y
:
0.16374023
,
z
:
-0.27135146
}
m_LocalPosition
:
{
x
:
0
,
y
:
0.625
,
z
:
-0.344
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_ConstrainProportionsScale
:
0
m_ConstrainProportionsScale
:
0
m_Children
:
m_Children
:
...
@@ -589,7 +589,7 @@ Transform:
...
@@ -589,7 +589,7 @@ Transform:
m_GameObject
:
{
fileID
:
2831112200708131673
}
m_GameObject
:
{
fileID
:
2831112200708131673
}
serializedVersion
:
2
serializedVersion
:
2
m_LocalRotation
:
{
x
:
0
,
y
:
0.99691737
,
z
:
-0.078459114
,
w
:
0
}
m_LocalRotation
:
{
x
:
0
,
y
:
0.99691737
,
z
:
-0.078459114
,
w
:
0
}
m_LocalPosition
:
{
x
:
-0
,
y
:
2.
5
,
z
:
2.5
}
m_LocalPosition
:
{
x
:
-0
,
y
:
2.
961
,
z
:
2.427
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_ConstrainProportionsScale
:
0
m_ConstrainProportionsScale
:
0
m_Children
:
m_Children
:
...
@@ -696,7 +696,7 @@ Transform:
...
@@ -696,7 +696,7 @@ Transform:
m_GameObject
:
{
fileID
:
3166591749672883522
}
m_GameObject
:
{
fileID
:
3166591749672883522
}
serializedVersion
:
2
serializedVersion
:
2
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0.003
2726298
,
y
:
0.6673716
,
z
:
-0.20095396
}
m_LocalPosition
:
{
x
:
0.003
,
y
:
1.129
,
z
:
-0.274
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_ConstrainProportionsScale
:
0
m_ConstrainProportionsScale
:
0
m_Children
:
m_Children
:
...
@@ -1419,7 +1419,7 @@ GameObject:
...
@@ -1419,7 +1419,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
0
m_IsActive
:
1
---
!u!4
&5676559366613536494
---
!u!4
&5676559366613536494
Transform
:
Transform
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment