Skip to main content

Electric Claw Plugin Source Code Overview

About This Document​

This document is the source code guide for the Electric Claw project. It focuses on the code structure and core logic implementation of the two source folders, electricclawplugin-hmi and electricclawplugin-controller, for secondary development reference.

For general plugin concepts and the dual-side architecture, see Rokae+ Plugin Introduction; they are not repeated here.

Plugin Architecture

Source Code Download​

FileDescription
插件demo-电爪案例的源码及说明.zipFull source code (HMI + controller) and documentation of the Electric Claw project

Source Composition​

FolderContentDescription
electricclawplugin-hmiHMI (teach pendant) plugin sourceProcess package UI, electric claw status monitoring, RL assisted programming instructions. See Client Plugin Description
electricclawplugin-controllerController plugin sourceRL instruction execution, electric claw control API, HMI instruction processing. See Controller Plugin Description

Dual-Side Division of Work​

The Electric Claw project is a typical example of client-controller cooperation:

  • The HMI plugin is responsible for UI display and status monitoring. It registers RL editor instructions (OnrobotMove, OnrobotStop, OnrobotStatus) that only generate instruction strings and do not execute RL logic;
  • The controller plugin performs the actual electric claw control and status acquisition, processes plugin instructions from the HMI, and executes RL instructions;
  • The overlapping functionality of both sides (start, stop, get status) is extracted into the controller plugin API module for unified implementation.

Reading Guide​

  1. Client Plugin Description: project structure and core code logic
  2. Controller Plugin Description: directory structure and code module description