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
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
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 v3sprotocomm-2.0.0.tar.gz.
File metadata
- Download URL: v3sprotocomm-2.0.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d621a52260f72319f8a773962a46a9bfc09e5aaa0df75873f45e963b389900
|
|
| MD5 |
d4ca7ea157ee8f8f0898f7ac1a50fa7b
|
|
| BLAKE2b-256 |
5180d5421dd31a18a117cf74c807b07b2ade7fd5551abeef3447062f18aa58f9
|
Provenance
The following attestation bundles were made for v3sprotocomm-2.0.0.tar.gz:
Publisher:
python-package.yml on TauraBots/V3SProtoComm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
v3sprotocomm-2.0.0.tar.gz -
Subject digest:
02d621a52260f72319f8a773962a46a9bfc09e5aaa0df75873f45e963b389900 - Sigstore transparency entry: 178845272
- Sigstore integration time:
-
Permalink:
TauraBots/V3SProtoComm@375b91d6c5a8f994e8c0dd94f3f138904d80df3e -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/TauraBots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@375b91d6c5a8f994e8c0dd94f3f138904d80df3e -
Trigger Event:
release
-
Statement type:
File details
Details for the file v3sprotocomm-2.0.0-py3-none-any.whl.
File metadata
- Download URL: v3sprotocomm-2.0.0-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e3e447e941a8e065bd764cdcffd57442510c42f981426e5483f10193c671ae
|
|
| MD5 |
1922ba54af248e752210d182305e57c5
|
|
| BLAKE2b-256 |
a9e5e77d5f2d2ec38da08b1ce2447ed0d6ef6404f16eb4e608fce31645d9291c
|
Provenance
The following attestation bundles were made for v3sprotocomm-2.0.0-py3-none-any.whl:
Publisher:
python-package.yml on TauraBots/V3SProtoComm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
v3sprotocomm-2.0.0-py3-none-any.whl -
Subject digest:
78e3e447e941a8e065bd764cdcffd57442510c42f981426e5483f10193c671ae - Sigstore transparency entry: 178845273
- Sigstore integration time:
-
Permalink:
TauraBots/V3SProtoComm@375b91d6c5a8f994e8c0dd94f3f138904d80df3e -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/TauraBots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@375b91d6c5a8f994e8c0dd94f3f138904d80df3e -
Trigger Event:
release
-
Statement type: