Skip to main content

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.6.1

Installation

Use the code below to install the package from PyPI:

pip install pySSLVision

A Simple Example

  1. In a test folder, save the code below as config.json
{
    "network" : {
        "multicast_ip": "224.0.0.1",
        "vision_port": 10002
    }
}
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pySSLVision-1.0.1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pySSLVision-1.0.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file pySSLVision-1.0.1.tar.gz.

File metadata

  • Download URL: pySSLVision-1.0.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pySSLVision-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d1beb9bd1c8b7423de88f92e4a2144b33b3f0634d2afbb6ad9ce642b8349ec6e
MD5 a59c46db45c364cdaee6c3b31fe17d61
BLAKE2b-256 b0cb57700853ba5430c0df6d2734b0aad6eb2aa69ca85dfec1e64437e2936433

See more details on using hashes here.

File details

Details for the file pySSLVision-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pySSLVision-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pySSLVision-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f20d699bbd4b14191523770b986d4d1de68804628a240c0c35a4b41ce906736
MD5 6f2c2f77f533a4b407b7a61cdccf1d39
BLAKE2b-256 577b31238e0d3174a7b59dc65075223ecc4a86d66ecd9b2ffc48bbdd51650eea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page