Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
375fac9
Fix bugs in utils/aimsun/load.py (#746)
umangs94 Oct 4, 2019
67d1a52
Cleaned up tutorial07 run history and fixed LuSTScenario directories …
NickL77 Oct 8, 2019
5eaa30e
Fixed Aimsun Bugs (#750)
Yasharzf Oct 8, 2019
84a7249
Update tutorial 11 (#751)
kevin-thankyou-lin Oct 12, 2019
1906340
Changed the remaining old names (#754)
ashkan-software Oct 14, 2019
054d393
Aimsun fixes (#753)
temetski Oct 15, 2019
4a27159
New visualization tutorial (#635)
nathanlct Oct 15, 2019
0b518f6
(Bug): Fix the observation space in Multi wave attentuation env
eugenevinitsky Oct 23, 2019
0a188f5
Aimsun communication port no longer hardcoded (#761)
temetski Oct 24, 2019
f174056
disable stdout when invoking flow scripts (#763)
ZhongxiaYan Oct 26, 2019
61f36f2
Fixed multi-agent open network __done__ bug (#767)
kjang96 Oct 29, 2019
4ff791b
Updated versions for lxml and cloudpickle (#762)
kjang96 Oct 30, 2019
2b9e7a2
Running multiple aimsun instances while training (#766)
temetski Nov 5, 2019
c6fcf4f
Aimsun 8 4 install guide (#774)
Yasharzf Nov 6, 2019
7a99a56
Update README.md (#775)
eugenevinitsky Nov 8, 2019
27f0cfd
added the Gipps car folowing model- first order model (#776)
gilbertbahati Nov 20, 2019
44e21a3
(Bug): Change loop network to ring network in tutorial 8 (#786)
eugenevinitsky Nov 22, 2019
7ff7815
changed visualizer rllib to not open SUMO unnecessarily (#788)
ZhongxiaYan Nov 25, 2019
97b962a
render to video using sumo-gui (#784)
temetski Dec 1, 2019
ac23278
Checked for edge case where vehicle speeds is empty (#795)
sftwre Dec 18, 2019
99daa20
update tutorial 00 to reflect the new folder of multiagent env
ashkan-software Dec 23, 2019
2a084f4
Merge pull request #798 from flow-project/env_name_fix
ashkan-software Dec 23, 2019
1a44c3f
New example folder (#720)
AboudyKreidieh Dec 24, 2019
0007f89
traffic light grid multiagent fix
ashkan-software Dec 28, 2019
e46a5aa
Imrpove naming of the tests in test_examples
ashkan-software Dec 28, 2019
a876a55
Correct typo (#809)
radusqrt Jan 5, 2020
5bbbf88
Correct typo (#810)
radusqrt Jan 5, 2020
d2cd893
Update tutorials to match with the new way of running experiments (#802)
ashkan-software Jan 5, 2020
824c613
Fix sim_params in the tutorials (#807)
ashkan-software Jan 5, 2020
f35f7b9
Update remaining files to match with new way of running experiments (…
ashkan-software Jan 5, 2020
d61e0c9
added plotly 2.4.0 dependency (#758)
AboudyKreidieh Jan 5, 2020
e85caf3
Merge branch 'master' of https://github.com/flow-project/flow into tr…
AboudyKreidieh Jan 5, 2020
9f1c990
Fixed multi agent traffic light grid
ashkan-software Jan 7, 2020
e52e531
Flake8
ashkan-software Jan 7, 2020
55e39f1
remove remaining rllab (#757)
AboudyKreidieh Jan 8, 2020
6930f1e
Combine train_rllib.py and train_stable_baseline.py (#812)
ashkan-software Jan 8, 2020
5ceaf08
Merge pull request #805 from flow-project/traffic_light_tests
ashkan-software Jan 9, 2020
47cf289
make render true by default
ashkan-software Jan 10, 2020
1f015df
Merge pull request #814 from flow-project/update_experiment
ashkan-software Jan 10, 2020
5eac691
Tutorial for multiagent (#808)
ashkan-software Jan 21, 2020
363d003
Fix path to ring simulation (#822)
kledom Jan 31, 2020
5097911
deleting unworking params from SumoChangeLaneParams, sublanes working…
chendiw Feb 11, 2020
7dc2096
Update README.md (#832)
eugenevinitsky Feb 17, 2020
3e8fc0c
Multiagent environments (#818)
AboudyKreidieh Feb 19, 2020
bc65245
Fix the extra ray windows that pop up (#836)
eugenevinitsky Feb 22, 2020
4cd30ee
fixed sims_per_step done bug (#838)
AboudyKreidieh Feb 27, 2020
8dba645
removed dt parameter from IDMController (#837)
AboudyKreidieh Feb 27, 2020
3292767
usage argument correction (#843)
pengyuan-zhou Mar 1, 2020
d4886d9
Add a nonlocal example of follower stopper as requested (#846)
AboudyKreidieh Mar 4, 2020
7d632c7
Add flag auto_color flag to SumoParams and disable coloring if flag i…
AboudyKreidieh Mar 5, 2020
e2e5077
rendering fix (#861)
kanaadp Mar 10, 2020
2df2afd
train from checkpoint (#853)
kanaadp Mar 11, 2020
80f3c47
I210 merge (#839)
eugenevinitsky Mar 13, 2020
4e47f7a
singleagent_traffic_light_grid (#871)
lcipolina Mar 17, 2020
f72760b
Add energy reward from benni/joy (#864)
eugenevinitsky Mar 17, 2020
d3c5c83
Add ballistic integration as an option (#873)
eugenevinitsky Mar 17, 2020
d1688c6
add pip in yml to avoid wrong-version pip (#858)
pengyuan-zhou Mar 17, 2020
4c49ab7
Fixed issue 840 (#841)
kjang96 Mar 19, 2020
35f5b5f
Added code to output json. Added code to resolve macOS matplotlib imp…
kjang96 Mar 19, 2020
d6ed510
specify python version for pip install (#859)
pengyuan-zhou Mar 23, 2020
0166e41
support for h-baselines (#874)
AboudyKreidieh Mar 24, 2020
5603f03
bug fix for num_rl_vehicles during reset (#884)
AboudyKreidieh Mar 25, 2020
5e3e887
style
kjang96 Apr 9, 2020
7ed7377
Merge pull request #880 from flow-project/time_space_fixes
kjang96 Apr 9, 2020
95e63a8
moved imports under functions in train.py (#903)
chendiw Apr 21, 2020
86761a6
Bando / ghost edge (#917)
AboudyKreidieh May 2, 2020
a26c9b7
Benchmark fix (#919)
eugenevinitsky May 4, 2020
50be2d0
get not departed vehicles (#922)
Yasharzf May 8, 2020
7398f50
changed _departed_ids, and _arrived_ids in the update function (#926)
Yasharzf May 9, 2020
3154f26
Add MPG reward (#931)
eugenevinitsky May 18, 2020
a524f4d
Updated ray_autoscale and requirements.txt
kjang96 May 21, 2020
7f782b8
Reverted to original master's ray_autoscale.yaml and added 2 lines
kjang96 May 21, 2020
2232861
Address MacOS Catalina SegFault issue when running sumo-gui (#938)
cybermaster May 22, 2020
1e211cb
Merge pull request #941 from flow-project/slowdown_master
kjang96 May 22, 2020
5e2f859
Aimsun bugs (#907)
Yasharzf Jun 9, 2020
e06b1c1
Converting base classes to abstract base classes (#935)
liljonnystyle Jun 10, 2020
67dc121
Update lane change mode (#948)
Yasharzf Jun 11, 2020
39fe260
Modify time-space diagram plotting (#969)
liljonnystyle Jun 14, 2020
5b38dc4
perhaps it means to ignore instead of add? (#966)
pengyuan-zhou Jun 14, 2020
86c2e4c
I210 highway updated (#934)
AboudyKreidieh Jun 15, 2020
9e16b19
I210 updated (#970)
AboudyKreidieh Jun 16, 2020
7824d88
implement HighwayNetwork for Time-Space Diagrams (#979)
liljonnystyle Jun 19, 2020
641f724
fixed h-baselines bug (#982)
AboudyKreidieh Jun 22, 2020
af0b4f6
Replicated changes in 867. Done bug (#980)
kjang96 Jun 22, 2020
c319a6c
merge custom output and failsafes to master (#981)
liljonnystyle Jul 8, 2020
d36da2e
add 210 edgestarts for backwards compatibility (#985)
liljonnystyle Jul 8, 2020
b40e435
Requirements update (#963)
AboudyKreidieh Jul 8, 2020
7198c37
Add kjang96 as codeowner (#1001)
liljonnystyle Jul 16, 2020
8a935a8
Added doc for libsumo installation on Mac (#1005)
kjang96 Jul 17, 2020
69add10
Update question Github issue tempate
ashkan-software Aug 31, 2020
01f4519
Merge pull request #1013 from flow-project/ashkan-software-patch-1
ashkan-software Aug 31, 2020
183b0c5
removed os.setsid since it's blocking when running from within Ray pr…
roireshef Nov 23, 2020
a511c41
Better handling temporary files for running at scale (#1026)
roireshef Dec 11, 2020
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
6 changes: 5 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ omit =
*__init__*
*/scripts/*
*/setup.py
*rllab*
*/flow/utils/shflags
*dummy_server.py
*aimsun.py
*aimsun/run.py
*aimsun/api.py
*aimsun/generate.py
*aimsun/load.py
*flow/multiagent_*
*flow/singleagent_*

exclude_lines =
if __name__ == .__main__.:
raise NotImplementedError
@ray.remote
@abstractmethod
def policy_mapping_fn*
def main(args)*
pragma: no cover
9 changes: 6 additions & 3 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ about: If you have a question or run into some problem with Flow (e.g. during th
PLEASE DO NOT ASK YOUR QUESTIONS HERE ON GITHUB!

If you have a question or run into some problem (e.g. during installation or when running an example)
with Flow, please direct your technical questions to Stack Overflow using the "flow-project" tag.
with Flow, please direct technical questions to the Flow project Slack channel here:

link: https://stackoverflow.com/questions/tagged/flow-project
tag: flow-project
https://join.slack.com/t/flow-users/shared_invite/enQtODQ0NDYxMTQyNDY2LTY1ZDVjZTljM2U0ODIxNTY5NTQ2MmUxMzYzNzc5NzU4ZTlmNGI2ZjFmNGU4YjVhNzE3NjcwZTBjNzIxYTg5ZmY

If you have a non-technical inquiry, please send us an email:

https://flow-project.github.io/contact.html
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ before_install:
- export AIMSUN_SITEPACKAGES="/home/travis/miniconda/envs/aimsun_flow"
- export AIMSUN_NEXT_PATH="/home/user/Aimsun_Next_XXX"

# Install stable-baselines
- pip install stable_baselines==2.7.0

# Install h-baselines
- pushd $HOME
- git clone https://github.com/AboudyKreidieh/h-baselines.git
- pushd h-baselines
- pip install -e .
- popd
- popd

- ls ../

install:
Expand All @@ -62,7 +73,6 @@ install:
- pip install -e .
- pip install coveralls
- pip install jupyter
- pip install stable_baselines==2.7.0

script:
- nose2 --with-coverage
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @cathywu @eugenevinitsky @AboudyKreidieh @kanaadp
* @eugenevinitsky @AboudyKreidieh @kjang96

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ See [our website](https://flow-project.github.io/) for more information on the a

# Technical questions

Please direct your technical questions to [Stack Overflow](https://stackoverflow.com) using the [flow-project](https://stackoverflow.com/questions/tagged/flow-project) tag.
If you have a bug, please report it. Otherwise, join the [Flow Users group](https://join.slack.com/t/flow-users/shared_invite/enQtODQ0NDYxMTQyNDY2LTY1ZDVjZTljM2U0ODIxNTY5NTQ2MmUxMzYzNzc5NzU4ZTlmNGI2ZjFmNGU4YjVhNzE3NjcwZTBjNzIxYTg5ZmY) on Slack!

# Getting involved

Expand Down
23 changes: 23 additions & 0 deletions docs/libsumo_mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to install Libsumo for Mac OS

This is adapted from an email exchange with the SUMO staff.



To install libsumo requires re-building and installing SUMO from source.

## Steps

- **Install swig:** ```brew install swig```
- **Clone the repo:** ```git clone https://github.com/eclipse/sumo.git```
- **Create a “cmake-build” directory inside sumo/build/ and navigate to it:** ```mkdir build/cmake-build && cd build/cmake-build```

**The next 3 steps are inside that directory**

- ```cmake ../..```
- ```make```
- ```make install```

## Additional Notes
- You can test if libsumo has been built looking at (./testlibsumo) inside the sumo/bin/ directory.
- Bear in mind to use libsumo with the same Python version with which CMake built SUMO.
3 changes: 0 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ def __getattr__(cls, name):


MOCK_MODULES = [
'rllab',
"rllab.core.serializable.Serializable",
'rllab.sampler.utils.rollout',
"AAPI",
'PyANGKernel',
'AAPI.GKGUISystem',
Expand Down
19 changes: 9 additions & 10 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A few points of clarification:

* Occasionally we describe environments as *fully observed*. By this we mean that all relevant pieces of information (speed, relative positions, traffic light states) of the system are available to the controller. *Partially observed* refers to only a subset being available. This is the default configuration of the environment and the set of observations can be customized.

* Each environment has customizable environment/network parameters that can be used to configure it beyond what is described here. Particularly pertinent parameters are described. Additional parameters can be found by examining the documentation in the relevant scenario and environment files.
* Each environment has customizable environment/network parameters that can be used to configure it beyond what is described here. Particularly pertinent parameters are described. Additional parameters can be found by examining the documentation in the relevant network and environment files.

* In the figures below, the following key is used for vehicle colors, where AV stands for autonomous vehicle.

Expand All @@ -22,12 +22,12 @@ Figure Eight
The figure-eight is a closed-ring version of an intersection. The goal is to maximize
the system-wide velocity for fourteen vehicles,
which necessitates spacing the vehicles so that they don't
run into conflicts at the merging points. The scenario is fully observed: all vehicles
run into conflicts at the merging points. The network is fully observed: all vehicles
speeds and positions are visible to the controller.
This scenario is also a benchmark, and has been
This network is also a benchmark, and has been
extensively tested at three penetration rates: 1 AV 13 humans, 7 AVs 7 humans, 14 AVs.

The scenario, pictured below,
The network, pictured below,
is relatively light-weight and can be trained the quickest. It can serve both as a test
that the training process is working correctly and as a study of the difficulty of controlling
many vehicles simultaneously.
Expand All @@ -43,15 +43,14 @@ In this scenario, human drivers placed on a ring develop a travelling wave that
decelerations and lowers the average velocity of the system. The goal is to train a single
autonomous vehicle to eliminate the shockwave.

The pre-built run script for running this in human-only mode is `examples/sumo/sugiyama.py`.
The run scripts in rllib and aimsun are `examples/rllib/stabilizing_the_ring.py` and
`examples/aimsun/stabilizing_the_ring.py`. These control environments are partially observed:
the autonomous vehicle only observes its own distance to the leading vehicle, its speed,
and the speed of the leading vehicle.
The experiment config for this in human-only mode (non-RL) is `examples/exp_configs/non_rl/ring.py`.
The experiment config for RL-based is `examples/exp_configs/rl/singleagent/singleagent_ring.py`.
These control environments are partially observed: the autonomous vehicle only observes its own
distance to the leading vehicle, its speed, and the speed of the leading vehicle.

To make this task more difficult, the environment has a configurable parameter, `ring_length`, which
can be set to a list containing the minimum and maximum ring-size. The autonomous vehicle must
learn to distinguish these scenarios from each other and pick the appropriate driving behavior.
learn to distinguish these networks from each other and pick the appropriate driving behavior.

.. image:: ../img/stabilizing_the_ring.png
:width: 400
Expand Down
Loading