Commit 3b844d97 authored by Ahmad Reza's avatar Ahmad Reza
Browse files

Initial commit

parents
For Linux:
-unzip the source code:
unzip swarm-sim.zip
-install the following python packages:
1. sudo apt-get install python3.6 python3-pip
2. sudo pip3 install numpy
3. sudo pip3 install pandas
4. sudo pip3 install pyglet
- install Gnuplot:
sudo apt-get install gnuplot-x11
- go to the main folder of the SNS-Folder and start it with:
python3.6 run.py
For development the IDE Pycharm is recommended:
https://www.jetbrains.com/help/pycharm/install-and-set-up-pycharm.html
For Windows:
- unzip souce code
- install python3.6
- install pycharm
- run pycharm
- open swarm-sim as a project
- Open File->Settings-"Project-Interpreter"
- Chose python3.6 as an interpreter
- Chose the plus sign and install:
1. pip3
2. numpy
3. pandas
4. pyglet
- press Okey
- wait that everything is installed
- chose Run->run.py
- If it gives an error that it cannot find the interpretetor
Open Run->"Edit Configuration" Chose the python3.6 as an interpretetor
\ No newline at end of file
[Simulator]
seedvalue = 1
#2
#One tile works with 7 and with 1 in goes into a loop
# L3 with seed 9 almost
#Tube with seed 4 works
#with 8 it is getting into a loop
#With L1 World
max_round = 100
visualization=1
random_order=1
[World]
window_size_x =600
window_size_y =800
size_x = 9
size_y = 6
max_particles=10000
[matter]
mm_limitation= 0
location_mm_size = 2
particle_mm_size = 2
tile_mm_size = 2
tile_color_map=0
[File]
#scenario = two_particles_tiles_locations.py
#scenario = tile_beside_particle.py
#scenario = lonely_particle.py
#scenario=one_particle_and_one_tile.py
#scenario = two_particles_infront.py
#scenario= n_particle_on_a_line.py
#scenario= lined_particles.py
#scenario=rand_n_tile_one_particle.py
#scenario = world_five_rings_particle.py
#scenario = world_five_rings_tiles.py
#scenario = world_five_rings_particle_tiles.py
#scenario=all_matters_in_1st_ring.py
#scenario = world_two_rings_particle_tiles.py
#scenario = world_two_rings_particle.py
#scenario = world_test_interfaces.py
#scenario=unsorted_tiles.py
#scenario=S2_oddGapWorld.py
#scenario=lonely_tile.py
#scenario=lonely_tile_L1.py
#scenario=lonely_tile_L2.py
#scenario=lonely_tile_L3.py
#scenario= S2_tripleTileLineWorld.py
#scenario=lined_particles_to_tile.py
#scenario = whole_island.py
# scenario = whole_island_ph1.py
#scenario = whole_island_ph2.py
#scenario = whole_island_ph3.py
##scenario = whole_island_L1.py
#orld = whole_island_L2.py
#scenario=reagenz.py
#scenario=cemal_world_30.py
#scenario=random_200_200_200.py
#solution = read_write.py
#solution = scanning.py
#solution = create_delete.py
#solution = scanning_for_all_aims.py
#solution = take_drop_matters.py
#solution = take_drop_particles.py
#solution = take_drop_tile.py
#solution = random_walk.py
#solution=move_to_tile
#solution=walk_on_Take_Drop_tiles.py
#solution=move_to_tile_better
#solution = round_walk.py
#solution = round_walk_hex.py
#solution = round_walk_hex_steps.py
#solution = round_walk_hex_norec.py
#solution = search_for_tile_rw.py
#solution = test_all_the_interfaces.py
#solution = pheromone_particle.py
#solution = pheromone_location.py
#solution = pheromone_location_with_nest.py
#solution = strongest_pheromone_nest.py
#solution = strongest_pheromone_nest_NB.py
#solution = probability_pheromone_nest.py
#solution = SolutionBeispiel.py
#solution = random_walk_back_for.py
#solution = random_walk_search.py
#solution = oppnet_search.py
#solution = oppnet_epidemic.py
#solution = search_for_tile_rw.py
#solution = S2_allMoving.py
#solution = indi_encaps.py
#solution = no_jam_control.py
#solution = jam_neigh_controll.py
#solution = mv_ch_near_tile.py
#solution = flock_m2.py
#solution = flock_m3.py
#solution = flock_m4.py
#solution = greedy_enc_m1.py
#solution = clockwise_enc_m1.py
#solution = encaps_round.py
#solution = encaps_round_m2.py
#solution = encaps_tile_m1.py
#solution = encaps_tile_m2.py
#solution = encaps_tile_m3.py
#solution = encaps_tile_m4.py
#solution = encaps_tile_m5.py
#solution = encaps_tile_m6.py
#solution = encaps_tile_m7.py
#solution = encaps_tile_m8.py
#solution = encaps_tile_m9.py
#solution = encaps_tile_m10.py
#solution = encaps_tile_m11.py
#solution = encaps_griddy_m1.py
#solution = cemal_solution.py
#solution = cemal_final.py
#solution = my_Zwei_Particle_solution.py
#solution = move_protocol.py
#solution = test_move_protocol.py
#random walk
#scenario = world_two_rings_particle_tiles.py
#solution = random_walk_search.py
# Coating the Tile
#scenario = island_L2.py
#solution = encaps_tile_m11.py
# Filling up the whole
#scenario = whole_island_ph3.py
#scenario = whole_island_L2.py
#solution = communication_m1.py
#Kalman Coating
solution = kalman_coating.py
#scenario=test_kalman.py
#scenario=S2_oddGapWorld.py
#scenario=S2_singleTileWorld.py
#scenario=lined_particles_to_tile.py
scenario = whole_island.py
#scenario = whole_island_tube.py
#scenario = tube_particles.py
#scenario=whole_island.py
#scenario = one_whole_island.py
#scenario = whole_island_ph1.py
#scenario = whole_island_ph2.py
#scenario = whole_island_ph3.py
#scenario = whole_island_L1.py
#scenario = whole_island_L2.py
#scenario=tile_beside_particle.py
# FLocking
#solution=flock_for_two.py
#solution=round_walk_hex_norec.py
#solution=testsol.py
#solution=get_together.py
#scenario=particle_line.py
#New Coating Algorithm
#solution = coating.py
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated matters"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
rm -rf $(BUILDDIR)/*
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/OpportunisticRoboticsNetworkSimulator.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/OpportunisticRoboticsNetworkSimulator.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/OpportunisticRoboticsNetworkSimulator"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/OpportunisticRoboticsNetworkSimulator"
@echo "# devhelp"
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment