Robot Tasking Platform(RTP,机器人任务下发与状态同步平台)的数据反馈工具,在RTP下发的应用容器中使用
Project description
RTP FEEDBACK TOOL(机器人任务下发与状态同步平台)的数据反馈工具
- 功能:处在KubeEdge边缘(Edge)端的机器人给云端(Cloud)反馈数据。
- 只能在obot-tasking-platform的operator下发的任务容器中使用才有效。
text_feedback和image_feedback负责将数据发送到边缘端本地的mqtt broker,之后由KubeEdge转发到远端的数据收集器。- 机器人任务的编写者不需要知道数据收集器具体的url,只需要调用
text_feedback和image_feedback即可。数据转发的路径(route)和规则(rule)是operator在下发任务时就配置好的。
def text_feedback(content: str) -> None:
"""
机器人给云端反馈文本数据
主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
Args:
content (str): _description_ 要反馈的文本数据内容
"""
def image_feedback(img_rgb8: np.ndarray) -> None:
"""
机器人给云端反馈图片数据
主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
Args:
img_rgb8: 图像,必须是numpy数组,且数据类型为uint8,且shape为(height, width, 3)
"""
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 rtp-feedback-tool-0.0.1.tar.gz.
File metadata
- Download URL: rtp-feedback-tool-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e33253a1ed387913f54fb8e41229c01833e62bdcba0742d13b919cd81fb3df7b
|
|
| MD5 |
594c1823e7e465ed0a46d7622eafcaae
|
|
| BLAKE2b-256 |
8993d9c2fbe5aa26409656eceff5ac9f6d8ca2a74620e5b372a827d822963bae
|
File details
Details for the file rtp_feedback_tool-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rtp_feedback_tool-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a573c4d4825ca921006f45ec426d0385846e330f9be6cd6920a2bc44cf7a4c5f
|
|
| MD5 |
e2629c1d8a6d6bf12708286dbb656b85
|
|
| BLAKE2b-256 |
bcae31d1b05b9f90ea2f1ea46d120e65f03b0aad7b9a6a3e114fa7e08e297efd
|