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
d725c6ac
Commit
d725c6ac
authored
Jun 19, 2024
by
杨泽宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
7179fe90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3079 additions
and
588 deletions
+3079
-588
AGVDemoV2.cs
Assets/Scripts/Components/AGV/AGVDemoV2.cs
+16
-2
1_Main.unity
Assets/_Scenes/1_Main.unity
+3056
-579
Highlight Plus Profile.asset
Assets/_美术资源/后处理配置文件/Highlight Plus Profile.asset
+2
-2
AGV1.prefab
Assets/_预设/设备/AGV1.prefab
+5
-5
No files found.
Assets/Scripts/Components/AGV/AGVDemoV2.cs
View file @
d725c6ac
...
@@ -13,15 +13,29 @@ public class AGVDemoV2 : MonoBehaviour
...
@@ -13,15 +13,29 @@ public class AGVDemoV2 : MonoBehaviour
public
void
Update
()
public
void
Update
()
{
{
UpdatePosition
();
UpdateErrorReporting
();
UpdateErrorReporting
();
}
}
private
void
UpdatePosition
()
private
void
Start
()
{
StartCoroutine
(
UpdatePosition
());
}
private
void
UpdatePosition1
()
{
{
AGVManager
.
AddMoveMsg
(
"AGV1"
,
manager
.
position
,
manager
.
angle
);
AGVManager
.
AddMoveMsg
(
"AGV1"
,
manager
.
position
,
manager
.
angle
);
}
}
private
IEnumerator
UpdatePosition
()
{
while
(
true
)
{
UpdatePosition1
();
yield
return
new
WaitForSeconds
(
1
);
}
}
private
void
UpdateErrorReporting
()
private
void
UpdateErrorReporting
()
{
{
if
(
manager
.
Failure
.
code
==
200
)
if
(
manager
.
Failure
.
code
==
200
)
...
...
Assets/_Scenes/1_Main.unity
View file @
d725c6ac
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Assets/_美术资源/后处理配置文件/Highlight Plus Profile.asset
View file @
d725c6ac
...
@@ -38,7 +38,7 @@ MonoBehaviour:
...
@@ -38,7 +38,7 @@ MonoBehaviour:
overlayTextureScale
:
1
overlayTextureScale
:
1
overlayTextureScrolling
:
{
x
:
0
,
y
:
0
}
overlayTextureScrolling
:
{
x
:
0
,
y
:
0
}
overlayVisibility
:
0
overlayVisibility
:
0
outline
:
0.7
outline
:
1
outlineColor
:
{
r
:
1
,
g
:
0
,
b
:
0.019191265
,
a
:
1
}
outlineColor
:
{
r
:
1
,
g
:
0
,
b
:
0.019191265
,
a
:
1
}
outlineColorStyle
:
0
outlineColorStyle
:
0
outlineGradient
:
outlineGradient
:
...
@@ -73,7 +73,7 @@ MonoBehaviour:
...
@@ -73,7 +73,7 @@ MonoBehaviour:
m_NumAlphaKeys
:
2
m_NumAlphaKeys
:
2
outlineGradientInLocalSpace
:
0
outlineGradientInLocalSpace
:
0
outlineBlurPasses
:
2
outlineBlurPasses
:
2
outlineWidth
:
1
outlineWidth
:
0.4
outlineQuality
:
1
outlineQuality
:
1
outlineEdgeMode
:
0
outlineEdgeMode
:
0
outlineEdgeThreshold
:
0.995
outlineEdgeThreshold
:
0.995
...
...
Assets/_预设/设备/AGV1.prefab
View file @
d725c6ac
...
@@ -191,7 +191,7 @@ Transform:
...
@@ -191,7 +191,7 @@ Transform:
m_GameObject
:
{
fileID
:
751308104399680690
}
m_GameObject
:
{
fileID
:
751308104399680690
}
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.00011083654
,
y
:
0.33207875
,
z
:
-0.24428463
}
m_LocalPosition
:
{
x
:
-0
,
y
:
0.319
,
z
:
-0.242
}
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
:
...
@@ -307,7 +307,7 @@ Transform:
...
@@ -307,7 +307,7 @@ Transform:
m_GameObject
:
{
fileID
:
1501631403894516518
}
m_GameObject
:
{
fileID
:
1501631403894516518
}
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.00011083654
,
y
:
0.33207875
,
z
:
-0.24428463
}
m_LocalPosition
:
{
x
:
-0
,
y
:
0.319
,
z
:
-0.242
}
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
:
...
@@ -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
,
y
:
0.625
,
z
:
-0.344
}
m_LocalPosition
:
{
x
:
-0
,
y
:
0.158
,
z
:
-0.27
}
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.
961
,
z
:
2.427
}
m_LocalPosition
:
{
x
:
-0
,
y
:
2.
494
,
z
:
2.501
}
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
,
y
:
1.129
,
z
:
-0.274
}
m_LocalPosition
:
{
x
:
0.003
,
y
:
0.662
,
z
:
-0.2
}
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
:
...
...
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