傅利叶Car-客户端SDK(python)
概述
本例(GROS_Client_Car SDK)适用于您已经拥有傅利叶(Fourier)所提供的Car设备,通过本例可实现对机器人的控制。它提供了一组简单的API,让你可以轻松地进行交互。
快速上手
安装
pip install gros_client_car
导入sdk
首先你需要在你的Python代码中导入这个SDK
from gros_client_car import Car
创建Car对象
然后,你需要创建一个Car对象,以便使用这个SDK
from gros_client_car import Car # 按需导入Human、同理还有Car、Dog等
car = Car(host='192.168.9.17')
示例代码
下面是一个完整的示例代码,演示如何使用这个SDK来控制机器人:
from gros_client_car import Car
# 引入依赖
from gros_client_car import Car, Mod
# 实例化human对象
car = Car(host='192.168.9.17')
# 调用启动方法
car.start()
# 切换四轮模式
car.set_mode(Mod.MOD_4_WHEEL)
# 以速度10向正前方移动
car.move(-10, 0)
# 以速度20向正后方移动
car.move(20, 0)
# 以速度20向右(30度)后方移动
car.move(20, 30)
Metadata
Release files for gros-client-car 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gros_client_car-1.0.0.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gros_client_car-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / gros_client_car-1.0.0.tar.gz
| Download URL | gros_client_car-1.0.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
781d08f38a4812dfe9071560663f76bc44b6162ade2592bb93008768d4c2fc15
|
|
BLAKE2b-256 checksum How to use checksums |
fc593ece53d2b466ed4f0712659d7e98e0b56e69d5d19c833e91b4f95167b106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / gros_client_car-1.0.0-py3-none-any.whl
| Download URL | gros_client_car-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91b9caa81f5bc6e549095eecd45a4c95fed8cde28f013844023071950ccdf76e
|
|
BLAKE2b-256 checksum How to use checksums |
89cbbc47686a5db4329c657be14924b0525acd917c408d863289bab12d4ea33f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for gros-client-car 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.