Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NuwanJ authored May 15, 2023
1 parent 64c3c7c commit 01cfa41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
31 changes: 1 addition & 30 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,4 @@

# Swarm Robotics : Localization

Python repository for address the Localization problem of Swarm Robotics

### Requirements

Please install following pip packages if they aren't pre-installed

```
pip install numpy
pip install opencv-python
pip install aruco
pip install paho-mqtt
```

or use following command

```
pip install -r requirement.txt
```

### Run the scripts

You can try scripts on the ./scripts directory

### Read More
- [ar-markers 0.5.0](https://pypi.org/project/ar-markers/)
- [Augmented Reality using ArUco Markers in OpenCV (C++ / Python)](https://www.learnopencv.com/augmented-reality-using-aruco-markers-in-opencv-c-python/)
- [OpenCV: Detection of ArUco Markers](https://docs.opencv.org/trunk/d5/dae/tutorial_aruco_detection.html)
- [OpenCV: Detection of ArUco Boards](https://docs.opencv.org/master/db/da9/tutorial_aruco_board_detection.html)
- [Calibrating the board](https://mecaruco2.readthedocs.io/en/latest/notebooks_rst/Aruco/sandbox/ludovic/aruco_calibration_rotation.html)

Please visit [pera-swarm.ce.pdn.ac.lk/docs/localization/setup](https://pera-swarm.ce.pdn.ac.lk/docs/localization/setup) for the complete guide.
4 changes: 4 additions & 0 deletions scripts/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def mqtt_setup():
client = paho.Client()
client.on_connect = on_connect
client.on_message = on_message

# TODO: Config username and password
# client.username_pw_set("username", "password")

client.connect(mqtt_server, mqtt_port, mqtt_keepalive)
time.sleep(2)
client.loop()
Expand Down

0 comments on commit 01cfa41

Please sign in to comment.