Skip to main content

Robot Tasking Platform(RTP,机器人任务下发与状态同步平台)的数据反馈工具,在RTP下发的应用容器中使用

Project description

RTP FEEDBACK TOOL(机器人任务下发与状态同步平台)的数据反馈工具

  • 功能:处在KubeEdge边缘(Edge)端的机器人给云端(Cloud)反馈数据。
  • 只能在robot-tasking-platform的operator下发的任务容器中使用才有效。
  • text_feedbackimage_feedback负责将数据发送到边缘端本地的mqtt broker,之后由KubeEdge转发到远端的数据收集器。
  • 机器人任务的编写者不需要知道数据收集器具体的url,只需要调用text_feedbackimage_feedback即可。数据转发的路径(route)和规则(rule)是operator在下发任务时就配置好的。
def text_feedback(content: str) -> None:
    """
    机器人给云端反馈文本数据
    主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
    必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
    Raises a FeedbackError if the feedback fails.
    Args:
        content (str): _description_ 要反馈的文本数据内容
    """
def image_feedback(img_rgb8: np.ndarray) -> None:
    """
    机器人给云端反馈图片数据
    主要是将content发送到本地的mqtt broker, 之后kubeedge帮我们转发到云端的数据收集器
    必须在robot-tasking-platform的operator下发的任务容器中使用才有效(因为下发的任务容器里正确配置了环境变量和转发规则)
    Raises a FeedbackError if the feedback fails.
    Args:
        img_rgb8: 图像,必须是numpy数组,且数据类型为uint8,且shape为(height, width, 3)
    """

注意:当给云端反馈数据失败时,text_feedbackimage_feedback会抛出FeedbackError,需要应用开发者自行处理异常

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtp-feedback-tool-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtp_feedback_tool-0.0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file rtp-feedback-tool-0.0.3.tar.gz.

File metadata

  • Download URL: rtp-feedback-tool-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for rtp-feedback-tool-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ef87d19cb4eccbce5ac1bb7d8f2e6d6861665f9e0868e39702737443a813b11
MD5 0371daa701a3f3aa07bae87ad79bf6a4
BLAKE2b-256 e1b36763f9795bfc71da0d9b06c4a90596b3406827cc1225cfba3db6f480185f

See more details on using hashes here.

File details

Details for the file rtp_feedback_tool-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rtp_feedback_tool-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f6877e35af9001ec26d502dd2e3b1df08f3fc59e38f489f962d4727b4bdedbd
MD5 467d0e10aea99a7ca4d40deb38a70843
BLAKE2b-256 6be2375a1479d81e906c66d6000460cf9ff76e9a5c3093c1d81db5204652f2b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page