Fourier General Robotics OS - Client Library (python)
Project description
傅利叶通用机器人系统-客户端SDK(python)
概述
本例(GROS Client SDK)适用于您已经拥有傅利叶(Fourier)所提供的机器人设备,通过本例可实现对机器人的控制。它提供了一组简单的API,让你可以轻松地与机器人进行交互。
历程
| 版本号 | 作者 | 日期 | 描述 | 快速预览 |
|---|---|---|---|---|
| 0.1 | 傅利叶软件部 | 2023.8 | 1. 立项 2. 确认基础架构 |
0.1说明 |
| 0.2 | 傅利叶软件部 | 2023.9 | 1. 控制模块、系统模块 2. 具体coding |
0.2说明 |
快速上手
安装
pip install gros_client
# 如遇网络延迟,可选择清华源安装
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gros_client
使用方法
导入sdk
首先你需要在你的Python代码中导入这个SDK
import gros_client # 导入root
创建机器人对象
然后,你需要创建一个机器人对象,以便使用这个SDK
from gros_client import Human # 按需导入Human、同理还有Car、Dog等
human = Human(host='192.168.12.1')
示例代码
下面是一个完整的示例代码,演示如何使用这个SDK来控制机器人:
import time
from gros_client import Human
human = Human(host='192.168.9.17') # 请将host替换为您所拥有设备的ip
human.start() # 启动远程控制
time.sleep(10) # 控制系统内置状态机。为了保证机器人的校准和启动正常,在start()指令之后建议10s再执行后续指令
human.stand() # 站立
human.walk(0, 0.1) # 以0.1的速度向正前方移动
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-1.0.21.tar.gz
(14.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-1.0.21.tar.gz.
File metadata
- Download URL: gros_client-1.0.21.tar.gz
- Upload date:
- Size: 14.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 |
9d8c45efc2649f6563c4452207e12dcde63052bcce86aa14adc8229841c2d1b9
|
|
| MD5 |
de7423c5b64c2a5c81e4a0f522c1b45b
|
|
| BLAKE2b-256 |
2332d8296e28ece2f056a021dfd7d34a5b309640613ee2bed724806a9d62d4a0
|
File details
Details for the file gros_client-1.0.21-py3-none-any.whl.
File metadata
- Download URL: gros_client-1.0.21-py3-none-any.whl
- Upload date:
- Size: 12.5 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 |
7a5c2d04cfba83152a2da1e2c35137455bd0dd70363b6aa27ac23e72239964c3
|
|
| MD5 |
a8a80591405f9b16d629816e0d329a6e
|
|
| BLAKE2b-256 |
b421915ef70ca5a8e0605ef944bccd41453f9cf78a31dcf373ebcdc5e8e3c82c
|