Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张晓彤
integrated-scheduling-v3
Commits
9a5b62cd
Commit
9a5b62cd
authored
Nov 22, 2023
by
虢奥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除安全距离
parent
adcd3e14
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
4 deletions
+11
-4
.DS_Store
.DS_Store
+0
-0
config.json
config.json
+0
-0
group.py
core/group.py
+1
-2
excavator.py
equipment/excavator.py
+1
-1
test.db
test.db
+0
-0
area_analysis.py
util/area_analysis.py
+9
-1
No files found.
.DS_Store
View file @
9a5b62cd
No preview for this file type
config.json
View file @
9a5b62cd
core/group.py
View file @
9a5b62cd
...
@@ -605,7 +605,7 @@ class GroupDispatcher:
...
@@ -605,7 +605,7 @@ class GroupDispatcher:
if
excavator_prise_location
[
0
]
!=
-
1
and
\
if
excavator_prise_location
[
0
]
!=
-
1
and
\
truck_prise_location
[
0
]
!=
-
1
and
\
truck_prise_location
[
0
]
!=
-
1
and
\
haversine
(
excavator_prise_location
,
truck_prise_location
)
>
0.0
4
0
and
\
haversine
(
excavator_prise_location
,
truck_prise_location
)
>
0.0
1
0
and
\
truck_locate
in
self
.
gothroghdispatcher
.
closer_area_backtrack_lanes
:
truck_locate
in
self
.
gothroghdispatcher
.
closer_area_backtrack_lanes
:
self
.
gothroghdispatcher
.
redispatch_request
(
request_truck_id
=
truck_id
,
truck
=
self
.
group
.
truck
,
truck_dispatch
=
truck_dispatch
)
self
.
gothroghdispatcher
.
redispatch_request
(
request_truck_id
=
truck_id
,
truck
=
self
.
group
.
truck
,
truck_dispatch
=
truck_dispatch
)
...
@@ -1234,7 +1234,6 @@ class GoThroughDispatcher:
...
@@ -1234,7 +1234,6 @@ class GoThroughDispatcher:
self
.
logger
.
error
(
es
)
self
.
logger
.
error
(
es
)
return
return
'''
'''
3. 调度判断逻辑
3. 调度判断逻辑
'''
'''
...
...
equipment/excavator.py
View file @
9a5b62cd
...
@@ -83,7 +83,7 @@ class ExcavatorInfo(WalkManage):
...
@@ -83,7 +83,7 @@ class ExcavatorInfo(WalkManage):
self
.
logger
.
info
(
self
.
loading_time
)
self
.
logger
.
info
(
self
.
loading_time
)
self
.
logger
.
info
(
"excavator_uuid_to_index_dict"
)
self
.
logger
.
info
(
"excavator_uuid_to_index_dict"
)
self
.
logger
.
info
(
self
.
excavator_uuid_to_index_dict
)
self
.
logger
.
info
(
self
.
excavator_uuid_to_index_dict
)
self
.
loading_time
[
self
.
excavator_uuid_to_index_dict
[
excavator_id
]]
=
5
.00
self
.
loading_time
[
self
.
excavator_uuid_to_index_dict
[
excavator_id
]]
=
30
.00
# 更新挖机设备出入时间
# 更新挖机设备出入时间
def
update_excavator_entrance_exit_time
(
self
):
def
update_excavator_entrance_exit_time
(
self
):
...
...
test.db
View file @
9a5b62cd
No preview for this file type
util/area_analysis.py
View file @
9a5b62cd
...
@@ -82,7 +82,15 @@ def area_choose(excavators_id, closer_area_id, further_area_id, further_lane_set
...
@@ -82,7 +82,15 @@ def area_choose(excavators_id, closer_area_id, further_area_id, further_lane_set
else
:
else
:
continue
continue
logger
.
info
(
f
"近端挖机状态{closer_excavator_state}"
)
import
datetime
# 获取当前时间
current_time
=
datetime
.
datetime
.
now
()
# 打印当前时间
logger
.
info
(
f
"近端挖机状态{closer_excavator_state} 当前时间{current_time}"
)
logger
.
info
(
f
"近端装载区外第一路段等待车辆数{goto_closer_area_num}"
)
logger
.
info
(
f
"近端装载区外第一路段等待车辆数{goto_closer_area_num}"
)
logger
.
info
(
f
"远端挖机状态{further_excavator_state}"
)
logger
.
info
(
f
"远端挖机状态{further_excavator_state}"
)
...
...
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