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
81aa8aa4
Commit
81aa8aa4
authored
Jun 24, 2025
by
Allvey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
穿越装载区优化
parent
b93d0b4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
group.py
core/group.py
+16
-4
No files found.
core/group.py
View file @
81aa8aa4
...
...
@@ -625,6 +625,7 @@ class GroupDispatcher:
# 穿越调度和二次调度均不触发,正常空载调度
if
not
planned
or
truck_task
!=
0
:
self
.
logger
.
info
(
"穿越调度和二次调度均不触发,调度前往卸载区执行固定派车"
)
try
:
truck_dispatch
[
truck_id
]
=
DispatchInfo
.
get_truck_match
(
truck_id
)
except
Exception
as
es
:
...
...
@@ -743,8 +744,7 @@ class GroupDispatcher:
planned
=
False
# 穿越调度和二次调度均不触发,正常空载调度
if
not
planned
or
truck_task
!=
0
:
if
not
planned
:
self
.
logger
.
info
(
"正常空载行驶,执行空载周期调度"
)
self
.
empty_period_dispatch
(
s
,
truck_dispatch
,
truck_id
,
truck_info
,
truck_trip
)
...
...
@@ -983,15 +983,25 @@ class ReDispatcher:
self
.
logger
.
info
(
load_area_dict
)
# 获取拥堵路段
congestion_lane_dict
=
self
.
get_congestion_lanes
()
self
.
logger
.
info
(
"拥堵路段"
)
self
.
logger
.
info
(
congestion_lane_dict
)
# 获取当前交叉口下一路段集合
next_lane_list
=
get_cross_next_lanes
(
truck_locate
)
self
.
logger
.
info
(
"当前交叉口下一路段集合"
)
self
.
logger
.
info
(
next_lane_list
)
# 交叉口下一路段可达的装载区
next_lane_load_area_dict
=
get_lane_reach_load_areas
(
load_area_lane_dict
,
next_lane_list
)
self
.
logger
.
info
(
"交叉口下一路段可达的装载区"
)
self
.
logger
.
info
(
next_lane_load_area_dict
)
# 排除下一个路段阻塞的装载区
delete_congestion_load_area
(
congestion_lane_dict
,
load_area_dict
,
next_lane_load_area_dict
)
self
.
logger
.
info
(
"排除下一个路段阻塞的装载区"
)
self
.
logger
.
info
(
load_area_dict
)
# 获取车辆经纬度信息
truck_prise_location
=
self
.
group
.
truck
.
truck_current_prise_location
[
truck_id
]
self
.
logger
.
info
(
"获取车辆经纬度信息"
)
self
.
logger
.
info
(
truck_prise_location
)
if
is_close_to_cross
(
truck_locate
,
truck_prise_location
):
self
.
logger
.
info
(
f
'距离过近无法触发二次调度'
)
...
...
@@ -1455,7 +1465,9 @@ class GoThroughDispatcher:
# self.logger.error("pair表查询异常")
# self.logger.error(es)
current_unload_area_id
=
truck_info
.
get_combined_unload_area
()
# current_unload_area_id = truck_info.get_combined_unload_area()
next_unload_area_id
=
DispatchInfo
.
get_truck_match
(
request_truck_id
)[
1
]
if
(
target_excavator
is
not
None
)
and
(
current_truck_goto_excavator_id
!=
target_excavator
):
self
.
logger
.
info
(
f
'近端lanes {request_truck_name} 派车计划前往 {target_excavator}'
)
...
...
@@ -1469,7 +1481,7 @@ class GoThroughDispatcher:
self
.
logger
.
info
(
"派车计划未变动"
)
# 将派车计划加入 dispatch_plan
truck_dispatch
[
request_truck_id
]
=
[
target_excavator
,
curren
t_unload_area_id
]
truck_dispatch
[
request_truck_id
]
=
[
target_excavator
,
nex
t_unload_area_id
]
self
.
logger
.
info
(
f
'新派车计划'
)
self
.
logger
.
info
(
truck_dispatch
[
request_truck_id
])
...
...
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