1 Star 0 Fork 30

黄冬发 / TrafficSim

forked from sapperjiang / TrafficSim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

TrafficSim

项目介绍

交通仿真软件 作为专业人士,仅仅迷醉于用用vissim,看看3d仿真后的效果,是不够的。无意批评某一款软件,但商业软件可用于微观交通建模的功能几乎没有(我是说,让你自己建立驾驶员模型,建立自己的行为规则,建立自己的交通规则,建立自己的交通控制规则,建立自己的巴拉巴拉,从根本上,而不仅仅是修改商业软件内置模型的几个不知所云的参数)。那么,为什么不自己开发一个呢? 查看以下链接获取更多信息

软件架构

sapperjiang的个人空间 工作日志 正文 如何自己编写一个交通仿真软件 (开篇) 走火入魔。 顶 原 sapperjiang sapperjiang 发布于 2014/12/23 15:00 字数 2269 阅读 917 收藏 3 点赞 2 评论 0 管理 交通仿真软件并行仿真交通流理论交通信息工程地理信息系统元胞自动机。

关注交通仿真公众号,获取更多精彩文章

未来的汽车是怎么跑起来的。

从滴滴交通大脑看交通仿真软件的创新变革。

还有更多资讯,请扫码关注。

如何自己编写一个交通仿真软件 (一)火种

如何自己编写一个交通仿真软件(二)原野

注意以下为老版本软件和代码。

软件下载地址(百度网盘)(可运行的软件位于debug目录下)

CSDN源代码下载(需有csdn账号)该文章也同时在CSDN 发布, 有图有真相,也有exe(就是没有女票)。

以下为新版本软件和代码

任何安装了git客户端的人都可以用git pull最新完整版代码。

GIT项目地址:http://git.oschina.net/sapperjiang/TrafficSim

git地址:https://git.oschina.net/sapperjiang/TrafficSim.git

一、这个软件是干嘛的?

-----------本仿真软件的定位----------------

1、为了给交通领域的研究人员提供一个好的学习和实验平台,能产生一定的学术价值。 对那些有能力有精力有志向探索交通仿真的人,希望是一个帮助,毕竟这些路径我探索过。扫除有一定基础的专业人士,对自己开发仿真软件的初步障碍、提供一个曾经实践过的思路和想法。

2、不打算商业化,还差点远。商业化的好处在于--持续的商业利益驱动软件更新完善并能得到用户需求的不断推动;局限在于对于研究、探索和培养人才来说,了解内部运行机理成为不可能。

3、降低实践的门槛、发挥学术价值。 毕竟已经有了一个基础的平台。可以通过几个月的时间,在这个平台上完善或者实践自己的模型。平台允许自己建立一个模型、然后用软件跑出来看看仿真动画、分析分析仿真数据,解决模型的局限。

4、解决软件的局限。学术研究人员能够根据自己的需求,对软件进行改进,加深自己对交通仿真的认识。

二、还有其他类似开源交通仿真软件么?

答案是YES,我们的德国交通同行,正在开发和改进一款叫做sumo的开源软件。

下面是它的主页:http://sumo.sourceforge.net/

它最近的活动链接:http://www.dlr.de/ts/en/desktopdefault.aspx/tabid-10848/18984_read-44970/

二、非专业人士如何选择合理的开发工具和开发语言。

软件发布后,有人给我交流。也是想开发软件的“奋青”(发奋的有志青年)。

对很多程序开发初学者来说。学习哪门语言,是个很纠结的问题,这是个开创成功事业能否成功的问题。在此我做一下解答,结合我自身经历:

 声明本人非计算机科班出身(正宗交通工程+交通信息工程专业毕业)。

由于我大一第一学期(没办法,家里没有鱼塘,启蒙太晚,成就不了13岁编程神童的传说)就学会了C并有了处女作“hello world!!”, 再学习C plus plus ,就是自然而然了,就想用惯了苹果6 ,入手 苹果6 plus plus 顺理成章。

(我这种笨人,当初敲入turbo c 2.0 并且将处女作编译成功花了一节上机课的时间(不得不吐槽,当年遇到困难的时候,也不如张良这伙计运气好,提提鞋子,就能获赠兵法,日后指点江山。当初求助的计算机学院的老表在用电脑打纸牌游戏,极不耐烦(失去了多年后被我表扬的机会),很不屑我这种小菜鸟的这种小问题)。

 但是,C++复杂难懂,超出了预计的成本。且长久的钻研却看不到回报的事业注定是一件很没有动力持续的事业。。。。。当初我真怀疑:对非专业人士来说,学懂C++是否要卖个肾~~。

废话太多,这里不伦你是vb 还是java 还是C++或者python.开发仿真软件,建议非专业人士用.net平台。理由如下:

1、c++这样的语言,设计过于专业严谨,学习成本高((不要急着反驳我这个业余人士,不许反驳,因为我业余(嘻嘻)))。

2、非.net 平台下的c++ 数据结构相当不友好。(不要急着反驳,还是因为我业余(嘻嘻))。对于自幼(哈哈,包装一下,凸显天粪)学习c的人来说,相当不容易搞懂指针。然而,仿真软件建模当中,各种交通元素的模型,不涉及链表、图、矩阵、队列、栈这些鬼东西(神器)的编程尝试,必然会被计算机这个傻瓜兄弟嘲弄而头破血流。在C++中,这些数据结构都涉及指针,维护和读懂他们就是个灾难(我业余我骄傲~~)(什么你就喜欢指针?你就喜欢指针的指针?留下大名,给你上柱香)。

3、c++原生的函数库支持,简直是弱爆了。有了.net 还好。当初为了脱离.net 平台,写了算法,自己实现了好多别的语言都有的函数和数据结构,想想都要哭,难道每次我都要重新发明轮子?vc6.0 给我的印象两个:1、经典;2、绝望;3、我的各妈,真绝望;4、我不识数。

4、会牵扯你更多的精力在bug调试、内存泄露(非.net 平台下的c++)而不是专注于自己的目标---编写交通仿真软件,早日看到运行成果。尤其是bug定位不准确所造成的不知所云and 巴拉巴拉。。。。。

5、要自己写代码呈现仿真效果,windows下开发(什么,你Linux?好,没关系,建议用mono框架,可以跨平台),离不开GDI+编程。而这个GDI+还是比GDI容易理解和伺候的。

最后:我强调一下:我不是诋毁c++的愤青,我是在帮非专业人士,节约你的生命和增加表白(哦,不,交通仿真软件事业)成功的可能,一定要记住你的目标:编写成仿真软件,早日尝到甜头,而不是学习编程本身。(变态大的字体,警示啊。)

三、专业人士如何加入该项目

(一)加入团队(不加入也行,自己研究用~~)

专业人士可以给我发email参与代码开发协作。1286008361@qq.com。加qq也可以:1286008361.到时候 我把你加入开发者中,就可以push(svn叫commit)代码了。

(二)下载版本控制软件:

首先你要准备两个软件,分别是msysgit(这个才是git,先安装)和tortoisegit(git的图形操作界面,后安装)。。直接下载(两个软件都有)

只下载totoisegit 这个软件根本没用,我搞了好长时间才明白。 (草泥马,程序员做的东西果然不是一般人的思维,直接内置git.exe得了。)

(三)下载仿真软件源代码:

项目的平台搭建好了,代码托管在OSChina上面想参与的童靴请注册一个oschina账号发我email,加入开发者团队之后就可以push代码。

暂时不想加入的话,任何一个git客户端都可以往自己的电脑pull项目最新的代码下来。

为什么不是sourceforge?github?天朝是有 长城防火墙的 万一墙掉了,就回到解放前了

然后就是从OSCHINA git地址 pull代码。

项目地址:http://git.oschina.net/sapperjiang/TrafficSim

git地址:https://git.oschina.net/sapperjiang/TrafficSim.git

(四)遇到问题怎么办

1、现在这个项目的文档不完善。如果项目没有帮助更多的人,或者别人不想用、或者不想参与,文档也没意义。写文档是个费力气的活儿,等需要的人出现,我就写。否则,写了白写,还不如约女票波一个。

2、软件的原理和代码不懂的。单步运行几下,看看函数的调用堆栈就明白了。如果不想浪费时间,就qq问我吧,不过不保证服务质量~~。

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

参与贡献

  1. Fork 本项目
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 http://git.mydoc.io/
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

交通仿真软件 作为专业人士,仅仅迷醉于用用vissim,看看3d仿真后的效果,是不够的。无意批评某一款软件,但商业软件可用于微观交通建模的功能几乎没有(我是说,让你自己建立驾驶员模型,建立自己的行为规则,建立自己的交通规则,建立自己的交通控制规则,建立自己的巴拉巴拉,从根本上,而不仅仅是修改商业软件内置模型的几个不知所云的参数)。那么,为什么不自己开发一个呢? 查看以下链接获取更多信息 展开 收起
C#
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/bdhdf/TrafficSim.git
git@gitee.com:bdhdf/TrafficSim.git
bdhdf
TrafficSim
TrafficSim
master

搜索帮助