fourier car ctrl sdk
Project description
傅利叶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)
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
gros_client_car-1.0.0.tar.gz
(5.2 kB
view details)
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 gros_client_car-1.0.0.tar.gz.
File metadata
- Download URL: gros_client_car-1.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
781d08f38a4812dfe9071560663f76bc44b6162ade2592bb93008768d4c2fc15
|
|
| MD5 |
52aac9674b9d8baa6ee50290275638a6
|
|
| BLAKE2b-256 |
fc593ece53d2b466ed4f0712659d7e98e0b56e69d5d19c833e91b4f95167b106
|
File details
Details for the file gros_client_car-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gros_client_car-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b9caa81f5bc6e549095eecd45a4c95fed8cde28f013844023071950ccdf76e
|
|
| MD5 |
6d0f2a94fe631bcdc0c3712c09dffdd7
|
|
| BLAKE2b-256 |
89cbbc47686a5db4329c657be14924b0525acd917c408d863289bab12d4ea33f
|