Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 246 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
clean.bat
elegant*-cn.pdf
elegant*-en.pdf
*.dates

## Intermediate documents:
*.dvi
*.xdv
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf

## Generated if empty string is given at "Please type another file name for output:"
.pdf

## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml

## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync

## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa

# achemso
acs-*.bib

# amsthm
*.thm

# beamer
*.nav
*.pre
*.snm
*.vrb

# changes
*.soc

# cprotect
*.cpt

# elsarticle (documentclass of Elsevier journals)
*.spl

# endnotes
*.ent

# fixme
*.lox

# feynmf/feynmp
*.mf
*.mp
*.t[1-9]
*.t[1-9][0-9]
*.tfm

#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R

# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs

# gnuplottex
*-gnuplottex-*

# gregoriotex
*.gaux
*.gtex

# htlatex
*.4ct
*.4tc
*.idv
*.lg
*.trc
*.xref

# hyperref
*.brf

# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary

# listings
*.lol

# makeidx
*.idx
*.ilg
*.ind
*.ist

# minitoc
*.maf
*.mlf
*.mlt
*.mtc[0-9]*
*.slf[0-9]*
*.slt[0-9]*
*.stc[0-9]*

# minted
_minted*
*.pyg

# morewrites
*.mw

# nomencl
*.nlg
*.nlo
*.nls

# pax
*.pax

# pdfpcnotes
*.pdfpc

# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd

# scrwfile
*.wrt

# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/

# pdfcomment
*.upa
*.upb

# pythontex
*.pytxcode
pythontex-files-*/

# thmtools
*.loe

# TikZ & PGF
*.dpth
*.md5
*.auxlock

# todonotes
*.tdo

# easy-todo
*.lod

# xmpincl
*.xmpi

# xindy
*.xdy

# xypic precompiled matrices
*.xyc

# endfloat
*.ttt
*.fff

# Latexian
TSWLatexianTemp*

## Editors:
# WinEdt
*.bak
*.sav

# Texpad
.texpadtmp

# Kile
*.backup

# KBibTeX
*~[0-9]*

# auto folder when using emacs and auctex
./auto/*
*.el

# expex forward references with \gathertags
*-tags.tex

# standalone packages
*.sta

# generated if using elsarticle.cls
*.spl
82 changes: 37 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,38 @@
# 仿真平台
实现车辆和行人代理的仿真。

## 环境配置
支持和测试的平台包括:Windows 10 和 Ubuntu 20.04。
1. 下载并安装 Python 3.7、Carla 0.9.15、latex 2023、Texstudio 4.6.4、Git 2.42.0(Windows可使用`TortoiseGit 2.15.0.0`作为图形界面进行代码提交)。
2. 使用`git clone https://github.com/OpenHUTB/sim.git` 进行仓库的递归克隆。
3. 使用latex编译`{MODULE_NAME}/undergraduate/hutbthesis_main.tex`(而不是其他.tex文件)生成PDF文件。

## 注意事项
代码目录结构
```dtd
{MODULE_NAME}/
undergraduate/
fig/
carla.tex
carla.pptx
hutbthesis_main.tex
README.md
data/
utils/
generate_img.py
test/
requirements.txt
launch.py
config.ini
README.md
# 本科毕业设计模板

湖南工商大学本科毕业设计模板。

# 使用
推荐使用 [texstudio](https://pan.baidu.com/s/1Is2-VR1z-tMYvmdinsVY_g?pwd=hutb) 或 [overleaf](https://cn.overleaf.com/) 进行论文撰写。

注:在 latex 2023 中编译成功,latex 2016 编译失败(需要更高的版本,其他版本的 latex 没试过)。

# 贡献
有任何对模板格式进行调整的可以提交 [Issues](https://github.com/OpenHUTB/undergraduate/issues) 或 [Pull Request](https://github.com/OpenHUTB/undergraduate/pulls) 。

# 选题
[选题列表](https://github.com/OpenHUTB/undergraduate/wiki/%E6%AF%95%E8%AE%BE%E9%80%89%E9%A2%98)


## 要求
1. 格式化、注释、文档翻译
2. 运行
3. 测试(例子通过)


## 初始化

1. 新建github工程

2. 运行`init_proj('PROJECT_NAME');`

3. 分配开发者


## 使用
克隆仓库
```shell
git clone --recursive https://github.com/OpenHUTB/undergraduate.git
```
1. 每个模块的使用和说明文档以`*.md`格式更新到 [文档仓库](https://github.com/OpenHUTB/carla_doc) `docs/{MODULE_NAME}`目录下。
2. 仓库中只保留`*.md`、`*.py`、`*.cpp`、`*.conf`、`*.sh`、`*.bat`等文件,最多保留一个演示数据,其他数据都保留到百度网盘并提供链接和地址到 [`README.md`](https://github.com/OpenHUTB/sim/blob/master/README.md) 文件中。
3. 每次提交统一用 Pull Request 的方式进行,至少需要一个人的进行 Code Review 和测试才能合并到主分支。
4. 每个项目主要代码都放在一个目录下,保证每次更新时整个项目都能运行(写功能代码前先写测试代码和样例,包括功能测试、性能测试等),每个模块只有一个 Python 脚本作为入口程序。
5. 作图统一使用 TikZ 或 PPT 绘图,放置在目录`{MODULE_NAME}/undergraduate/fig/`目录下,使用`generate_img.py`脚本生成相应的`*.eps`格式作为统一的图片格式(不需要上传)。
6. 代码中不要使用绝对路径,统一使用相对路径。
7. 所有模块的配置统一放到`sim.config`文件中。
8. Python的依赖放在`requirements.txt`中,并指定版本,可以将项目的配置文件放置在文件 [`config.ini`](https://github.com/OpenHUTB/sim/blob/master/config.ini) 中。
9. 页面设计的风格尽量统一,依赖的包尽可能少。
10. 软件依赖、输入数据、中间文件、输出结果等都放在`data/`目录下。
11. 界面统一用pygame进行显示和交互,起始程序参考[手动控制示例](https://github.com/OpenHUTB/carla_doc/blob/master/src/examples/manual_control.py) 。


## 参考链接

- [中文文档](https://openhutb.github.io/carla_doc/)
- [毕业论文模板](https://github.com/OpenHUTB/undergraduate)
- [pygame示例](https://github.com/guliang21/pygame) 、[超级玛丽](https://github.com/mx0c/super-mario-python) 等

# 贡献者
2 changes: 2 additions & 0 deletions cmdel.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
del /a /f *.xml *.bcf *.out *.log *.sav *.gz *.aux *.bbl *.bak *.dvi *.blg

Loading