Skip to main content

Pacote para comunicação e controle de robôs via Protobuf

Project description

V3SProtoComm

V3SProtoComm is a library for communication and control of robots via Protobuf. The library supports the following communications:

  • Receiving vision data in polling and multithread mode
  • Sending speed commands in polling and multithread mode
  • Receiving game data from the VSSReferee in polling mode
  • Sending replacement packages to the VSSReplacer in polling mode

Python package

Installation

You can install the package directly from GitHub with pip:

    pip install git+https://github.com/TauraBots/V3SProtoComm.git

Or, if you have cloned the repository, install the dependencies from the requirements file:

    pip3 install -r requirements.txt

Usage

To test the package, run the "gotoball.py" example:

python3 gotoball.py

The example uses vision data to control a differential drive robot, directing it towards the ball by rotating to align its orientation and moving forward until it is close enough (i.e., when it "dominates" the ball).

Project Structure

V3SProtoComm/
├── core
│   ├── comm
│   │   ├── controls.py
│   │   ├── __init__.py
│   │   ├── protocols
│   │   │   ├── command_pb2.py
│   │   │   ├── common_pb2.py
│   │   │   ├── __init__.py
│   │   │   ├── packet_pb2.py
│   │   │   ├── protobuf
│   │   │   │   ├── firasim
│   │   │   │   │   ├── command.proto
│   │   │   │   │   ├── common.proto
│   │   │   │   │   ├── packet.proto
│   │   │   │   │   ├── protobuf.sh
│   │   │   │   │   └── replacement.proto
│   │   │   │   ├── __init__.py
│   │   │   │   └── vssreferee
│   │   │   │       ├── protobuf.sh
│   │   │   │       ├── vssref_command.proto
│   │   │   │       ├── vssref_common.proto
│   │   │   │       └── vssref_placement.proto
│   │   ├── __init__.py
│   │   ├── receiver.py
│   │   ├── referee.py
│   │   ├── replacer.py
│   │   ├── thread_job.py
│   │   ├── transmitter.py
│   │   └── vision.py
├── gotoball.py
├── README.txt
├── requirements.txt
└── tests.py

[!NOTE] To ensure that the non-Python files (such as the .proto files in the protobuf directory) are included in the package, a MANIFEST.in file is used with the following directive:


  recursive-include core/comm/protocols/protobuf *

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

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

v3sprotocomm-2.1.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

v3sprotocomm-2.1.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file v3sprotocomm-2.1.0.tar.gz.

File metadata

  • Download URL: v3sprotocomm-2.1.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for v3sprotocomm-2.1.0.tar.gz
Algorithm Hash digest
SHA256 13fa118ad662c5d0796eb00da89dfe5db4833029f053b6e1a83ee1b7d8abe3f8
MD5 7aef39fbbf91f68e6d010fb7900fb3f0
BLAKE2b-256 08741a8df5436a127cdbaba28c9aa36f97b0a062a4fbf83ee178ac414ca59294

See more details on using hashes here.

Provenance

The following attestation bundles were made for v3sprotocomm-2.1.0.tar.gz:

Publisher: python-package.yml on TauraBots/V3SProtoComm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file v3sprotocomm-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: v3sprotocomm-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for v3sprotocomm-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ee786021b702cd87ad91440ff241e0d333e8cbd619b0d8bc25e3869a39587e
MD5 9e629ba21bb9dbaad2c1c4c05017d146
BLAKE2b-256 3d867b369af28b2bc180cf4ac87706a553d21915ccfe674ae2210b9417a63a53

See more details on using hashes here.

Provenance

The following attestation bundles were made for v3sprotocomm-2.1.0-py3-none-any.whl:

Publisher: python-package.yml on TauraBots/V3SProtoComm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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