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
ffb63a62
Commit
ffb63a62
authored
Aug 19, 2024
by
杨泽宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
94321db6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
40 deletions
+53
-40
LoginManager.cs
Assets/Scripts/Components/AGV/LoginManager.cs
+5
-0
SensorDataManger.cs
Assets/Scripts/Components/UI/SensorDataManger.cs
+45
-39
1_Main.unity
Assets/_Scenes/1_Main.unity
+3
-1
No files found.
Assets/Scripts/Components/AGV/LoginManager.cs
View file @
ffb63a62
...
@@ -12,6 +12,8 @@ public class LoginManager : MonoBehaviour
...
@@ -12,6 +12,8 @@ public class LoginManager : MonoBehaviour
public
TMP_InputField
lineID
;
public
TMP_InputField
lineID
;
public
TMP_InputField
post_url
;
private
RobotPositionData
positionData
;
private
RobotPositionData
positionData
;
private
FaultEventData
faultData
;
private
FaultEventData
faultData
;
...
@@ -167,6 +169,7 @@ public class LoginManager : MonoBehaviour
...
@@ -167,6 +169,7 @@ public class LoginManager : MonoBehaviour
PlayerPrefs
.
SetString
(
"lineID2"
,
lineID
.
text
);
PlayerPrefs
.
SetString
(
"lineID2"
,
lineID
.
text
);
}
}
PlayerPrefs
.
SetString
(
"faultInterface"
,
faultInterface
.
text
);
PlayerPrefs
.
SetString
(
"faultInterface"
,
faultInterface
.
text
);
PlayerPrefs
.
SetString
(
"post_url"
,
post_url
.
text
);
PlayerPrefs
.
Save
();
// 确保数据被保存
PlayerPrefs
.
Save
();
// 确保数据被保存
Debug
.
Log
(
"Input fields saved to PlayerPrefs."
);
Debug
.
Log
(
"Input fields saved to PlayerPrefs."
);
...
@@ -188,6 +191,7 @@ public class LoginManager : MonoBehaviour
...
@@ -188,6 +191,7 @@ public class LoginManager : MonoBehaviour
lineID
.
text
=
PlayerPrefs
.
GetString
(
"lineID2"
);
lineID
.
text
=
PlayerPrefs
.
GetString
(
"lineID2"
);
}
}
faultInterface
.
text
=
PlayerPrefs
.
GetString
(
"faultInterface"
);
faultInterface
.
text
=
PlayerPrefs
.
GetString
(
"faultInterface"
);
post_url
.
text
=
PlayerPrefs
.
GetString
(
"post_url"
);
Debug
.
Log
(
"Input fields loaded from PlayerPrefs."
);
Debug
.
Log
(
"Input fields loaded from PlayerPrefs."
);
}
}
...
@@ -206,6 +210,7 @@ public class InputFieldData
...
@@ -206,6 +210,7 @@ public class InputFieldData
public
string
faultInterface
;
public
string
faultInterface
;
public
string
lineID1
;
public
string
lineID1
;
public
string
lineID2
;
public
string
lineID2
;
public
string
post_url
;
}
}
// 定义机器人位置数据结构
// 定义机器人位置数据结构
...
...
Assets/Scripts/Components/UI/SensorDataManger.cs
View file @
ffb63a62
This diff is collapsed.
Click to expand it.
Assets/_Scenes/1_Main.unity
View file @
ffb63a62
...
@@ -23245,6 +23245,7 @@ MonoBehaviour:
...
@@ -23245,6 +23245,7 @@ MonoBehaviour:
productionlineID: {fileID: 899657090}
productionlineID: {fileID: 899657090}
faultInterface: {fileID: 1049990126}
faultInterface: {fileID: 1049990126}
lineID: {fileID: 898557198}
lineID: {fileID: 898557198}
post_url: {fileID: 0}
position: {x: 0, y: 0, z: 0}
position: {x: 0, y: 0, z: 0}
IsFault: 0
IsFault: 0
Failure:
Failure:
...
@@ -32400,6 +32401,7 @@ MonoBehaviour:
...
@@ -32400,6 +32401,7 @@ MonoBehaviour:
productionlineID: {fileID: 1822593256}
productionlineID: {fileID: 1822593256}
faultInterface: {fileID: 1049990126}
faultInterface: {fileID: 1049990126}
lineID: {fileID: 1559283959}
lineID: {fileID: 1559283959}
post_url: {fileID: 0}
position: {x: 0, y: 0, z: 0}
position: {x: 0, y: 0, z: 0}
IsFault: 0
IsFault: 0
Failure:
Failure:
...
@@ -43537,7 +43539,7 @@ MonoBehaviour:
...
@@ -43537,7 +43539,7 @@ MonoBehaviour:
uiOffset: {x: 0, y: 2, z: 0}
uiOffset: {x: 0, y: 2, z: 0}
lineId1: EB6F0348492C181DE055000000000001
lineId1: EB6F0348492C181DE055000000000001
lineId2: AD6E344FAEEB2EA9E053A3001E0A371D
lineId2: AD6E344FAEEB2EA9E053A3001E0A371D
post_url:
http://192.168.50.113:8093/maintenance/bigScreen/sensor/getThreeModelSensorData
post_url:
--- !u!1 &820565486
--- !u!1 &820565486
GameObject:
GameObject:
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