Skip to main content

ocr_service 的管道流程

下图展示了相关客户端/服务器和 ROS 节点之间的管道流程,以及基本的消息和数据传输通道。
OCR_Client calling OCR_Server over ocr_msg.srv, the server forking OCR_Node, which subscribes to image_topic and publishes OCR_Topic.

ocr_service 管道。

ocr_service 管道中使用的 ROS 节点

下表列出了 ocr_service 管道中使用的 ROS 节点,并说明每个节点的功能。

ocr_service 管道中使用的 ROS 话题

下表列出了 ocr_service 管道中使用的 ROS 话题,以及每个话题的消息类型和发布者。

前提条件

你已根据安装 QIR SDK完成设备设置,并在设备上安装了 ROS2 Jazzy 和 Qualcomm Intelligent Robotics (QIR) SDK。

开箱即用运行 ocr_service

使用以下命令运行 ocr_service:
Run ocr_service

示例

此示例展示了可以在三个终端中运行的命令:
  • 在终端 1:
    Start the OCR server
  • 在终端 2:
    Publish a test image
  • 在终端 3:
    Run the OCR client