Creates a network socket to communicate with the SSL Vision
Project description
pySSLVision
Easily create a network socket between the SSL Vision and your VSSS or SSL software.
Requirements
- protobuf==3.20.3
Installation
Use the code below to install the package from PyPI:
pip install pySSLVision
A Simple Example
- In a test folder, save the code below as config.json
{
"network" : {
"multicast_ip": "224.0.0.1",
"vision_port": 10002
}
}
- In the same folder, save the code below as test.py and run it while the referee is running
from pySSLVision.VisionComm import SSLVision
v = SSLVision()
v.start()
while True:
time.sleep(1)
print(v.frame)
Important Methods and Attributes
Some important methods are:
| Method | Description |
|---|---|
| SSLVision.assign_vision | Defines a callback function to be called when a new frame is received |
| assign_empty_values | Process vision frame placing the origin at the right edge of the field relative to your defending goal |
Some important attributes are:
| Attribute | Description |
|---|---|
| SSLVision.frame | Stores the last received frame |
| SSLVision.last_frame | Can be used to store one frame |
Colaboration Guide
In order to colaborate with this repository, clone this repository:
git clone https://github.com/project-neon/pySSLVision
Open directory
cd pySSLVision
Then install dependencies
pip install -r requirements.txt
Finally, install the package
python3 setup.py install
Remember to use the Project Neon guidelines to git: https://github.com/project-neon/codestyleguide/blob/master/git.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pySSLVision-2.0.0.tar.gz.
File metadata
- Download URL: pySSLVision-2.0.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16709e3733f7345eeacdf2d93d5c2f8fcddf2ae1357e90986ff588b7045288ae
|
|
| MD5 |
9304ade35bcaf89b9254186a3e617da1
|
|
| BLAKE2b-256 |
da0254df6e8d555413d6b68de22b1142680849122783dc50a25e1295d7451ddf
|
File details
Details for the file pySSLVision-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pySSLVision-2.0.0-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af619ce95c35f2540db0678d3dd840c259025596c1dfc51a09d267902527a454
|
|
| MD5 |
9e155a2610e45cbf8e00cd91c3d51be8
|
|
| BLAKE2b-256 |
8a9f18cbd99d5ce6ab6297011085fae481256f94c81fad235b4b16c978aa7b13
|