Skip to content

Commit f27c4b2

Browse files
authored
Merge pull request #506 from srobo/jdp-python-libs
2 parents 4514f16 + c850300 commit f27c4b2

File tree

2 files changed

+31
-57
lines changed

2 files changed

+31
-57
lines changed

kit/brain_board/python_libraries.md

Lines changed: 29 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,74 +3,49 @@ layout: page
33
title: Available Python Libraries
44
---
55

6+
<!-- Simulator libraries https://github.com/srobo/competition-simulator/blob/main/libraries.txt -->
7+
<!-- Robot image libraries https://github.com/srobo/robot-image/blob/main/files/python/libraries.txt -->
8+
<!-- Robot image requirements https://github.com/srobo/robot-image/blob/main/files/python/requirements.txt -->
69

710
# Available Python Libraries
811

12+
If you wish to use a library that isn't in the list, get in contact with us on Discord and have a chat with us about it.
13+
14+
<div class="info" markdown="1">
15+
Note that for local development in the simulator you will need to install the libraries yourself.
16+
Look at the guide on [setting up the simulator]({{ site.baseurl }}/tutorials/setting_up_simulator) to find out how to do this.
17+
</div>
18+
919

1020
## Robot Kit
1121

1222
The following python libraries are installed and available for use in your robot's software:
1323

1424
<!-- cspell:disable -->
15-
* [april-vision 1.0.2](https://pypi.org/project/april-vision)
16-
* [astoria 0.11.1](https://pypi.org/project/astoria)
17-
* [cached-property 1.5.2](https://pypi.org/project/cached-property)
18-
* [click 8.1.2](https://pypi.org/project/click)
19-
* [cycler 0.11.0](https://pypi.org/project/cycler)
20-
* [dateutil 2.8.2](https://pypi.org/project/python-dateutil)
21-
* [debugpy 1.6.3](https://pypi.org/project/debugpy)
22-
* [dbus-next 0.2.3](https://pypi.org/project/dbus-next)
23-
* [docopt 0.6.2](https://pypi.org/project/docopt)
24-
* [gmqtt 0.6.11](https://pypi.org/project/gmqtt)
25-
* [gpg 1.17.1](https://pypi.org/project/gpg)
26-
* [iniparse 0.5](https://pypi.org/project/iniparse)
27-
* [j5 1.1.2](https://pypi.org/project/j5)
28-
* [kchd 0.4.1](https://pypi.org/project/kchd)
29-
* [matplotlib 3.5.1](https://pypi.org/project/matplotlib)
30-
* [numpy 1.22.3](https://pypi.org/project/numpy)
31-
* opencv 4.5.5
32-
* [paho-mqtt 1.6.1](https://pypi.org/project/paho-mqtt)
33-
* [pandas 1.4.2](https://pypi.org/project/pandas)
34-
* [Pillow 9.0.1](https://pypi.org/project/Pillow)
35-
* [prompt-toolkit 3.0.24](https://pypi.org/project/prompt-toolkit)
36-
* [pyapriltags 3.3.0.post2](https://pypi.org/project/pyapriltags)
37-
* [pydantic 1.9.1](https://pypi.org/project/pydantic)
38-
* [PyGObject 3.42.0](https://pypi.org/project/PyGObject)
39-
* [pyparsing 3.0.7](https://pypi.org/project/pyparsing)
40-
* [pyquaternion 0.9.9](https://pypi.org/project/pyquaternion)
41-
* [pyserial 3.5](https://pypi.org/project/pyserial)
42-
* [pytz 2022.1](https://pypi.org/project/pytz)
43-
* [pyudev 0.23.2](https://pypi.org/project/pyudev)
44-
* [pyusb 1.2.1](https://pypi.org/project/pyusb)
45-
* [pyyaml 6.0](https://pypi.org/project/PyYAML)
46-
* [RPi.GPIO 0.7.0](https://pypi.org/project/rpi.gpio)
47-
* [rtui 0.1.1](https://pypi.org/project/rtui)
48-
* [setuptools 59.5.0](https://pypi.org/project/setuptools)
49-
* [six 1.16.0](https://pypi.org/project/six)
50-
* [sr.robot3 2023.2.0](https://pypi.org/project/sr.robot3)
51-
* [tomli 2.0.1](https://pypi.org/project/tomli)
52-
* [tomli-w 1.0.0](https://pypi.org/project/tomli-w)
53-
* [typing-extensions 3.10.0.0](https://pypi.org/project/typing-extensions)
54-
* [udiskie 2.3.3](https://pypi.org/project/udiskie)
25+
* [debugpy 1.7.0](https://pypi.org/project/debugpy)
26+
* [flask 2.3.3](https://pypi.org/project/flask)
27+
* [matplotlib 3.7.2](https://pypi.org/project/matplotlib)
28+
* [networkx 3.1](https://pypi.org/project/networkx)
29+
* [numpy 1.24.4](https://pypi.org/project/numpy)
30+
* [opencv-python-headless 4.8.0.76](https://pypi.org/project/opencv-python-headless)
31+
* [pandas 2.0.3](https://pypi.org/project/pandas)
32+
* [pillow 10.0.0](https://pypi.org/project/pillow)
33+
* [scikit-learn 1.3.0](https://pypi.org/project/scikit-learn)
34+
* [scipy 1.10.1](https://pypi.org/project/scipy)
35+
* [shapely 2.0.1](https://pypi.org/project/shapely)
36+
* [sr-robot3 2024.0.0](https://pypi.org/project/sr-robot3)
5537
<!-- cspell:enable -->
5638

57-
If you wish to use a library that isn't listed above, get in contact with us on Discord and have a chat with us about it.
5839

40+
## Simulator differences
5941

60-
## Simulator
42+
Generally we will try to keep the libraries available in the simulator the same as what is available on the physical robot.
43+
The list below outlines the differences.
6144

62-
The following libraries will be available to your robot code during the
63-
competition. Note that for local development you will need to install these
64-
yourself.
65-
66-
<!-- updating this list? Also update https://github.com/srobo/competition-simulator/blob/master/libraries.txt -->
6745
<!-- cspell:disable -->
68-
69-
* [matplotlib 3.5.1](https://pypi.org/project/matplotlib/3.5.1/)
70-
* [numpy 1.22.3](https://pypi.org/project/numpy/1.22.3/)
71-
* [pandas 1.4.2](https://pypi.org/project/pandas/1.4.2/)
72-
* [typing-extensions 3.10.0.0](https://pypi.org/project/typing-extensions/3.10.0.0/)
46+
* `debugpy` is not available in the simulator
47+
* `flask` is not available in the simulator
48+
* `opencv` is not available in the simulator
49+
* `sr-robot3` that comes with the simulator has the same API but is different to the one available on pypi
7350
<!-- cspell:enable -->
7451

75-
If there are other libraries you would like included, please get in contact with
76-
us on Discord and have a chat with us about it.

tutorials/setting_up_simulator.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ You will also need Python installed.
2424
| macOS | 3.8-3.10 |
2525
| Linux | 3.8-3.10 |
2626

27-
There are a small number of [external libraries]({{ site.baseurl }}/kit/brain_board/python_libraries#simulator)
28-
which will be available to your robot code during the competition. Note that for
29-
local development you will need to install these yourself.
27+
There are a small number of [external libraries]({{ site.baseurl }}/kit/brain_board/python_libraries) which will be available to your robot code during the competition.
28+
Note that for local development you will need to install these yourself.
3029

3130
### Installing the simulation
3231

0 commit comments

Comments
 (0)