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.0.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.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pySSLVision-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a4e3bba33122e80d8e17dc4c316a3e728c05d83dc9cb85b90a81b268cf284f99
MD5 52a1afa5ea11e3b4565317dd72d77fe2
BLAKE2b-256 24de00b93f285ba21595511de5a8fa1a6e3ca2e959ebccd58ad1a8b4d74f14c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pySSLVision-1.0.0-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.7

File hashes

Hashes for pySSLVision-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0edfbee643a18d9c9d06c3924833ffdd8d12cc00b356a99eaccf1a75e5bdc2f4
MD5 c722f09e9ef077f8a31003b01d834f25
BLAKE2b-256 44a3351f49e5e24f07873264abc3e2fcac3ad60f96775d29ee57b2ab8d713b17

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