This repository contains typical environments and demo codes for epucks swarm simulation.
Ubuntu 20.04, Webots 2023b, python 3.8
Requirements of py-swirld installation refers to https://github.com/Lapin0t/py-swirld
pip install py-swirld
git clone [email protected]:SICC-Group/swarm-hashgraph-webots2023b.git
object-searching:
- Launch the Hashgrpah process
cd object_searching/controllers/py-swirld-object-searching/
python swirld_object_searching2.py
- Launch the Webots simulator by click the webots icon
- In Webots simulator, open the world object_searching2.wbt in object_searching/worlds/
- Click the run button
black-white-ratio-estimate:
- Launch the Hashgrpah process
cd black-white-ratio-estimate/controllers/py-swirld-black-ratio/
python swirld_black_white_ratio_estimate.py
- Launch the Webots simulator by click the webots icon
- In Webots simulator, open the world epuck_gezi_twenty_48.wbt in black-white-ratio-estimate/worlds/
- Click the run button
Don't forget to change the absolute path of the document in the code to read your preset parameters and save your experimental results:
Replace all paths in the form of '/home/<>/<>.txt' with the paths on your own computer.
All txt files with names that appear in the code can be created as empty files or have 0 filled in on the first line.
Part of this repository is original from the hashgraph-based framework. The corresponding paper is here. The source code is here. Demo Video is here.