forked from SeAIPalette/SeAIPalette
Compare commits
12 Commits
master
...
multi_bous
Author | SHA1 | Date |
---|---|---|
p57492168 | 7156ac8ce6 | |
p57492168 | 3aa201a9c2 | |
p57492168 | 2d695c79e9 | |
p57492168 | 966fbc74e0 | |
p57492168 | 4d9f7cdc69 | |
p57492168 | 8b167cce9b | |
p57492168 | 1e59ed6add | |
p57492168 | ee0b753b25 | |
p57492168 | 86a71520bd | |
p57492168 | a2267fd411 | |
p57492168 | a72ea1c58b | |
p57492168 | 035ce41d9e |
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
<option name="format" value="PLAIN" />
|
||||
<option name="myDocStringFormat" value="Plain" />
|
||||
</component>
|
||||
</module>
|
|
@ -0,0 +1,13 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredIdentifiers">
|
||||
<list>
|
||||
<option value="runtest.ImageEditorPage" />
|
||||
<option value="ImageEditorPage" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (Palette)" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/SeAIPalette.iml" filepath="$PROJECT_DIR$/.idea/SeAIPalette.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
# Form implementation generated from reading ui file 'MainWindow_map.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.15.1
|
||||
# Created by: PyQt5 UI code generator 5.12.3
|
||||
#
|
||||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||||
# run again. Do not edit this file unless you know what you are doing.
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
@ -110,6 +109,13 @@ class Ui_MainWindow(object):
|
|||
self.pushButton_stop.setFont(font)
|
||||
self.pushButton_stop.setObjectName("pushButton_stop")
|
||||
self.verticalLayout_2.addWidget(self.pushButton_stop)
|
||||
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
|
||||
font = QtGui.QFont()
|
||||
font.setFamily("宋体")
|
||||
font.setPointSize(12)
|
||||
self.pushButton.setFont(font)
|
||||
self.pushButton.setObjectName("pushButton")
|
||||
self.verticalLayout_2.addWidget(self.pushButton)
|
||||
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||
self.horizontalLayout.setStretch(0, 1)
|
||||
self.horizontalLayout.setStretch(1, 1)
|
||||
|
@ -126,7 +132,7 @@ class Ui_MainWindow(object):
|
|||
self.verticalLayout.setStretch(1, 10)
|
||||
self.horizontalLayout_3.addLayout(self.verticalLayout)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
|
||||
#信号与槽相关联
|
||||
self.retranslateUi(MainWindow)
|
||||
self.pushButton_run.clicked.connect(MainWindow.run)
|
||||
self.pushButton_stop.clicked.connect(MainWindow.stop)
|
||||
|
@ -151,4 +157,5 @@ class Ui_MainWindow(object):
|
|||
self.label_4.setText(_translate("MainWindow", "算法选择"))
|
||||
self.pushButton_run.setText(_translate("MainWindow", "运行"))
|
||||
self.pushButton_stop.setText(_translate("MainWindow", "停止"))
|
||||
self.pushButton.setText(_translate("MainWindow", "退出程序"))
|
||||
self.label_show.setText(_translate("MainWindow", "<html><head/><body><p><br/></p></body></html>"))
|
||||
|
|
|
@ -183,6 +183,19 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>宋体</family>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>退出程序</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -12,7 +12,6 @@ class Charge(WildFire):
|
|||
|
||||
def step(self, state, info):
|
||||
if not self.empty():
|
||||
# if there're actions to do
|
||||
action = self.actions_to_do[0]
|
||||
del self.actions_to_do[0]
|
||||
return action, None
|
||||
|
|
|
@ -23,9 +23,6 @@ class MultiBoustrophedon(Boustrophedon):
|
|||
self.charges = charges
|
||||
self.finished_idx = [False for _ in range(ship_num)]
|
||||
|
||||
#self.ship_energy = ship_energy
|
||||
#self.current_ship_energy = [ship_energy for _ in range(self.ship_num)]
|
||||
|
||||
self.delta_x = (0, 0, 1, -1, ) # 1, 1, -1, -1)
|
||||
self.delta_y = (1, -1, 0, 0, ) # 1, -1, 1, -1)
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import numpy as np
|
||||
import random
|
||||
|
||||
from math import acos, asin
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ def generate_agent_fields(fields, ship_num, splited_areas):
|
|||
for _ in range(ship_num)], axis=0)
|
||||
for ship_id in range(1, ship_num+1):
|
||||
cur_fields = agents_fields[ship_id-1]
|
||||
# print((splited_areas != ship_id) * (splited_areas != -1))
|
||||
cur_fields[(splited_areas != ship_id) * (splited_areas != -1)] += 1
|
||||
return agents_fields
|
||||
|
||||
|
|
|
@ -4,16 +4,16 @@ SeAI Palette集智调色板是面向集群网络的多节点智能协同路径
|
|||
|
||||
集智调色板软件设计了参数输入模块、算法运行模块及信息输出模块,在不同节点数量要求的前提下划分区域方向,按区域进行算法的运行。并可以综合考虑固定节点、覆盖率、电池容量等条件下,给出运行步数、重复步数和重复率等等性能指标。
|
||||
|
||||
软件界面简单,易学已用,包含参数的输入选择,程序的运行,算法结果的展示等,源代码公开,算法可修改。
|
||||
软件界面简单,易学易用,包含参数的输入选择,程序的运行,算法结果的展示等,源代码公开,算法可修改。
|
||||
|
||||
开发人员:H.P. Yu、K. Wang、J. Li、H.T. Li、Z.Q. Wang、Z.Y. Zhao、L.F. Zhang、G. Chen
|
||||
开发人员:王凯、于化鹏、李晶、王兆琦、李慧涛、赵志允、张乐飞、陈光
|
||||
|
||||
## 1. 开发环境配置
|
||||
运行以下命令:
|
||||
```bash
|
||||
conda env create -f create_env.yaml
|
||||
```
|
||||
该命令会创建一个名为`Palette`的conda虚拟环境,用`conda activate Palette`即可激活该虚拟环境。
|
||||
该命令会根据create_env.yaml配置文件创建一个名为`Palette`的conda虚拟环境,用`conda activate Palette`即可激活该虚拟环境。
|
||||
|
||||
|
||||
## 2. 软件运行
|
||||
|
|
|
@ -3,7 +3,6 @@ from MainWindow_map import Ui_MainWindow
|
|||
from PyQt5 import QtWidgets, QtCore, QtSql, QtGui
|
||||
from PyQt5.QtWidgets import *
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import QPixmap
|
||||
|
||||
import threading, time, subprocess
|
||||
|
||||
|
@ -122,6 +121,5 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
if __name__ == '__main__':
|
||||
app = QApplication(sys.argv)
|
||||
window = mywindow()
|
||||
# window.showMaximized()
|
||||
window.show()
|
||||
sys.exit(app.exec_())
|
||||
|
|
Loading…
Reference in New Issue