A mechanical arm teleoperation method based on optical marker points
By converting and solving the three-dimensional coordinate data of optical markers, combined with zero-position calibration and gain scaling, the complex inverse kinematics and singular point problems in the teleoperation of robotic arms are solved, realizing precise mapping and closed-loop drive of the joint angles of the robotic arm, and improving the convenience and stability of operation.
Patent Information
- Application Number
- CN202611453983.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing robotic arm teleoperation relies on complex inverse kinematics algorithms, which are prone to generating singularities, making operation inconvenient, and lacking an integrated method from data input to simulation or real-machine closed-loop verification.
By utilizing the three-dimensional coordinate data of multiple optical markers, the data is acquired by a camera and transformed into the human coordinate system. The multi-degree-of-freedom angles of the human upper limbs are solved by combining the segment vector angle method or Euler angle decomposition method. Combined with zero-position calibration and gain scaling, the precise mapping and closed-loop drive of the robotic arm joint angles are achieved.
It achieves ease of operation of robotic arm teleoperation and simplicity of joint angle calculation, improves the accuracy and stability of robotic arm teleoperation, and supports closed-loop drive in physical simulation environment or real machine.
Smart Images

Figure CN123169093A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of robot teleoperation, motion capture and digital twin simulation, and in particular to a method and system for calculating the multi-degree-of-freedom posture of the human upper limb using three-dimensional coordinate data of multiple marker points, mapping it to the joint angles of a robotic arm after coordinate system transformation and filtering, and driving the robotic arm in real time in a physical simulation environment or a real machine. Background Technology
[0002] Teleoperation of robotic arms typically relies on dedicated exoskeletons or joint angle sensors, which are costly and complex to deploy. Optical motion capture or vision systems can provide sparse marker point positions, but most of them map the end effector of the arm to the robotic arm and then map it to the joint angles of the robotic arm by inverse kinematics, which is complex to solve and prone to generating singularities, making operation inconvenient.
[0003] Furthermore, when mapping human motion to specific robots (such as a seven-axis robotic arm), it is necessary to consider joint limitations, control stability, and a reproducible experimental environment. However, existing solutions lack a unified, integrated approach that covers data input, coordinate transformation, robust computation, and closed-loop verification through simulation or real-world testing. Summary of the Invention
[0004] To address the shortcomings of existing robotic arm teleoperation technologies, such as insufficient operational flexibility, reliance on complex inverse kinematics algorithms for joint angle calculation leading to singularities, and lack of an integrated process from data input to simulation or real-machine closed-loop verification, this invention proposes a robotic arm teleoperation system and operation method based on optical markers.
[0005] This application provides a method for teleoperating a robotic arm based on optical markers, including:
[0006] S1: Use a camera to acquire multiple frames of data. Each frame of data includes the three-dimensional coordinate data of multiple optical markers located on the upper limb of the human body. This yields the three-dimensional coordinate data of multiple optical markers in the camera coordinate system, where the multiple optical markers are located at different parts of the upper limb of the human body.
[0007] S2: Preprocess multi-frame data;
[0008] S3: Transform the 3D coordinate data of optical markers in multi-frame data from the camera coordinate system to the human body coordinate system;
[0009] S4: Based on the three-dimensional coordinate data of optical markers in the human body coordinate system, the multi-degree-of-freedom angles of the human upper limbs are solved by the segment vector angle method or the direct Euler angle decomposition method, and the solution results of the multi-degree-of-freedom angles of each frame of data are obtained.
[0010] S5: Collect the solution results of several frames of data and calculate the average value to obtain the initial value of the multi-degree-of-freedom angle. Then, subtract the initial value from the current solution result in the human coordinate system to obtain the incremental multi-degree-of-freedom angle.
[0011] S6: Obtain the target joint vector based on incremental multi-degree-of-freedom angles;
[0012] S7: Send the target joint vector to the robotic arm at a fixed frequency.
[0013] According to an embodiment of the present application, the method further includes step S8: human-computer interaction, supporting command-line parameter configuration of data source, frame rate, filter switch, zero-bit sampling frame count and timeout.
[0014] According to an embodiment of the method provided in this application, in step S1, a plurality of optical markers are respectively located on the shoulder, distal upper arm, proximal forearm, distal forearm, and back of hand of the human upper limb.
[0015] According to an embodiment of the method provided in this application, in step S1, multiple frames of data are acquired by an infrared camera and saved as offline files, or acquired in real time by an online robot middleware.
[0016] According to an embodiment of the present application, step S2 includes: specifying key locations for the upper limb of the human body, and performing first-order exponential low-pass filtering on the three-dimensional coordinate data of the optical marker points corresponding to the specified key locations for each frame of data.
[0017] According to an embodiment of the method provided in this application, in step S3, the coordinate system transformation relationship is a fixed linear transformation.
[0018] According to an embodiment of the method provided in this application, the robotic arm is a seven-degree-of-freedom robotic arm, and the multi-degree-of-freedom angles in steps S4, S5, and S6 are seven-degree-of-freedom angles.
[0019] According to an embodiment of the present application, step S6 includes: multiplying the incremental multi-free angle by a configurable gain per channel to convert it into an radian increment, and superimposing the radian increment onto the reference joint pose of the robotic arm to obtain the target joint vector.
[0020] According to an embodiment of the method provided in this application, step S6 further includes: dimensionally trimming the target joint vector by the minimum and maximum limits of each joint.
[0021] This application also provides a computer-readable storage medium having software instructions stored thereon, which, when executed, perform the above-described method.
[0022] The robotic arm teleoperation method based on optical markers provided in this application realizes an integrated solution that directly maps the motion angles of the human upper limbs to the joint angles of the robotic arm. The three-dimensional coordinate data of the markers in the camera coordinate system is converted into the human coordinate system. The seven degrees of freedom angles of the human upper limbs are solved by the segment vector angle method or the direct Euler angle decomposition method. At the same time, the precise motion mapping to the robotic arm is achieved by combining zero-position calibration, gain scaling and joint limiting. Closed-loop drive is completed in the physical simulation environment or the actual machine, and the asymptotic return to zero is completed after the task is completed. This effectively improves the operability of the robotic arm teleoperation and the simplicity of solving the mapped joint angles. Attached Figure Description
[0023] The following description, in conjunction with the accompanying drawings, will further illustrate the above-mentioned features, technical characteristics, advantages, and implementation methods of this application in a clear and understandable manner. The accompanying drawings are for illustrative and explanatory purposes only and do not limit the scope of this application. Wherein:
[0024] Figure 1 A flowchart illustrating a method provided in one embodiment of the present invention;
[0025] Figure 2 A schematic diagram defining human body markers and upper limb vectors;
[0026] Figure 3 Timing diagram for zero-position calibration and incremental control;
[0027] Figure 4 This is a schematic diagram of the control data flow in the simulation environment. Detailed Implementation
[0028] To better understand the above technical solutions, the technical solutions of this application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of this application and the specific features in the embodiments are detailed descriptions of the technical solutions of this application, rather than limitations on the technical solutions of this application. In the absence of conflict, the embodiments of this application and the technical features in the embodiments can be combined with each other.
[0029] The system and method provided in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0030] like Figure 1 As shown, the teleoperation method for a robotic arm based on optical markers provided in this application includes eight steps: data acquisition, data preprocessing, coordinate system transformation, upper limb seven-degree-of-freedom calculation, zero-position calibration and increment formation, robot mapping and limiting, robot execution, and human-machine interaction. Taking an infrared camera and a seven-degree-of-freedom robotic arm as examples, the teleoperation method for a robotic arm based on optical markers according to an embodiment of this application will be described in detail.
[0031] According to an embodiment of this application, a robotic arm teleoperation method based on optical markers includes:
[0032] S1: Data acquisition: Use a camera to acquire multiple frames of data. Each frame of data includes the three-dimensional coordinate data of multiple optical markers located on the upper limb of the human body, and obtain the three-dimensional coordinate data of multiple optical markers in the camera coordinate system.
[0033] like Figure 2 As shown, the optical marker points and the human upper limb vector are defined. Let the three-dimensional coordinates of each optical marker point in the k-th frame in the camera coordinate system C (by convention: x-axis to the right, y-axis down, z-axis forward) be denoted as... , This represents the semantics of shoulder, distal upper arm, proximal forearm, distal forearm, midpoint of the back of the hand, etc. The transformed three-dimensional coordinate data in the human body coordinate system H is denoted as... (Convention: x-axis forward, y-axis left, z-axis upward).
[0034] Data acquisition can be accomplished through either the first mode or the second mode described below.
[0035] First mode: Optical markers P1~P5 are pasted on corresponding locations on the upper limbs (shoulder, distal upper arm, proximal forearm, distal forearm, back of hand), such as... Figure 2 As shown; the three-dimensional coordinate data of optical markers are collected by an infrared camera to form a column of optical markers, and the column of optical markers is saved as an offline file; each column of optical markers is read frame by frame from the configured offline file and mapped to semantic key names (including shoulder, distal upper arm, proximal forearm, distal forearm, back of hand) to obtain frame data; invalid frames are skipped or searched for valid frame data in a round-robin fashion;
[0036] The second mode: Subscribe to the 3D coordinate data of optical markers output by the infrared camera through online robot middleware to form a column of optical markers; map the column of optical markers to semantic key names (including shoulder, distal upper arm, proximal forearm, distal forearm, and back of hand) to obtain the current frame data; and acquire each frame of data in real time.
[0037] S2: Preprocess multi-frame data;
[0038] For each frame of data, a first-order exponential low-pass filter is applied to the three-dimensional coordinate data of the optical markers corresponding to the specified key locations on the upper limbs, such as the shoulder, distal upper arm, proximal forearm, distal forearm, and back of hand.
[0039]
[0040] in, These are actual data values. These are the filtered data values, and the coefficients are... Configurable to For non-finite values, the valid value from the previous time step is retained.
[0041] S3: Coordinate system transformation: Transform the three-dimensional coordinate data of the optical markers in the frame data from the camera coordinate system to the human coordinate system;
[0042] The 3D coordinate data of the optical markers are converted from the camera coordinate system (e.g., x right, y down, z front) to the human coordinate system (e.g., x front, y left, z top). The conversion relationship is a fixed linear transformation to ensure that the subsequent joint calculation results are consistent with the human coordinate system.
[0043]
[0044] The component form is equivalent to:
[0045]
[0046] The three rows of the corresponding 3×3 transformation matrix T are [0, 0, 1], [-1, 0, 0], and [0, -1, 0], respectively.
[0047] S4: Seven degrees of freedom calculation of the upper limb: Based on the three-dimensional coordinate data of the optical markers in the human coordinate system, the seven degrees of freedom angles of the human upper limb are solved by the segment vector angle method or the direct Euler angle decomposition method, and the calculation results of the seven degrees of freedom angles of each frame of data are obtained.
[0048] The upper arm vector is obtained from the shoulder point to the distal end of the upper arm. The forearm vector is obtained from the proximal end of the forearm to the distal end of the forearm. The hand vector is obtained from the distal end of the forearm to the midpoint of the back of the hand. ;
[0049]
[0050]
[0051] Unit vector (zero vector protection for vectors with excessively small norms):
[0052]
[0053] ① The elbow flexion angle (degrees) is obtained from the vectors of the upper arm and forearm: First, Restricting the range to [-1,1], we substitute the inverse cosine and then convert it to angles:
[0054]
[0055] ② Shoulder and wrist multi-channel angles: using a fixed torso reference vector T (in this example, T = [0 0 -1] in the human body coordinate system) and... Construct rotational relationships and obtain the shoulder three channels through Euler angle decomposition; and Similarly, the three wrist channels are obtained (which can be decomposed using axial angle-Euler angles).
[0056] ③ Shoulder rotation angle calculation: Let the shoulder rotation correlation vector in the k-th frame be: upper arm vector Forearm vector After normalization, they are respectively ,
[0057] 1) Current elbow plane normal for
[0058]
[0059] when (In the near-extended singular pose)
[0060] Use the previous valid value:
[0061]
[0062] Where ε>0 is the singular threshold.
[0063] 2) Reference Normal structure
[0064] Project the global reference direction g onto a plane perpendicular to u(k):
[0065]
[0066]
[0067] like Too small, (k)= (k).
[0068] 3) Shoulder rotation with a signed angle (around the axis)
[0069]
[0070] After obtaining the seven-degree-of-freedom angle vectors of the human upper limb, post-processing is performed, including channel-by-channel amplitude limiting, period expansion relative to the previous output, and first-order filtering smoothing, with stronger smoothing for the three channels of the wrist.
[0071] Optionally, when vector shoulder rotation is enabled, the signed angle between the elbow plane normal obtained by the cross product of the upper arm and forearm and the reference normal is used as the axis, with the upper arm unit vector as the axis. When the upper arm and forearm are nearly collinear, a singularity preservation strategy is entered, and the channel is smoothed separately.
[0072] S5: Zero-position calibration and increment formation: S5: Collect the solution results of several frames of data and calculate the average value to obtain the initial value of the seven degrees of freedom angle. Then, subtract the initial value from the current solution result in the human coordinate system to obtain the increment of the seven degrees of freedom angle.
[0073] Before control begins, several frames of solution results are collected, and their average value is used as the initial attitude (initial value).
[0074]
[0075] During runtime, the initial value is subtracted from the current solution value in the human coordinate system to obtain the incremental seven degrees of freedom angle, thereby eliminating individual zero-position differences.
[0076]
[0077] Zero-point calibration and incremental control timing are as follows Figure 3 As shown.
[0078] S6: Robot Mapping and Limitation: Based on the incremental seven degrees of freedom angle, the target joint vector is obtained, and then the target joint vector is trimmed dimension by dimension through the minimum and maximum limits of each joint.
[0079] The incremental seven-degree free angle is multiplied by the configurable gain according to the channel to convert it into radian increments, and the radian increments are superimposed on the robot arm reference joint pose to obtain the target joint vector;
[0080]
[0081] in Let i be the gain of the i-th channel. Let i be the target angle of the i-th channel. Let be the reference pose angle for the i-th channel.
[0082] The target joint vector is pruned dimension by dimension by using the minimum and maximum limits of each joint.
[0083] S7: Robot execution: Send the target joint vector to the seven-DOF robotic arm at a fixed frequency;
[0084] In the simulation application, a physical world is created and a robot model is loaded, or the simulation is executed on a physical machine. The default state of the seven-DOF robotic arm joints is initialized, and the target joint vector is cyclically sent to the seven-DOF robotic arm at a fixed frequency. After one round of tasks is completed, the current joint vector is linearly interpolated to zero within M steps, and then stabilized.
[0085]
[0086] Simulation environment control data flow such as Figure 4 As shown.
[0087] S8: Human-computer interaction.
[0088] It supports command-line parameter configuration of data source, frame rate, filter switch, zero-bit sampling frame count, and timeout.
[0089] The above description is merely an illustrative embodiment of this application and is not intended to limit the scope of this application. Any equivalent changes, modifications, and combinations made by those skilled in the art without departing from the concept and principles of this application shall fall within the scope of protection of this application.
Claims
1. A method for teleoperating a robotic arm based on optical markers, comprising: S1: Use a camera to acquire multiple frames of data. Each frame of data includes the three-dimensional coordinate data of multiple optical markers located on the upper limb of the human body. This yields the three-dimensional coordinate data of multiple optical markers in the camera coordinate system, where the multiple optical markers are located at different parts of the upper limb of the human body. S2: Preprocess multi-frame data; S3: Transform the 3D coordinate data of optical markers in multi-frame data from the camera coordinate system to the human body coordinate system; S4: Based on the three-dimensional coordinate data of optical markers in the human body coordinate system, the multi-degree-of-freedom angles of the human upper limbs are solved by the segment vector angle method or the direct Euler angle decomposition method, and the solution results of the multi-degree-of-freedom angles of each frame of data are obtained. S5: Collect the solution results of several frames of data and calculate the average value to obtain the initial value of the multi-degree-of-freedom angle. Then, subtract the initial value from the current solution result in the human coordinate system to obtain the incremental multi-degree-of-freedom angle. S6: Obtain the target joint vector based on incremental multi-degree-of-freedom angles; S7: Send the target joint vector to the robotic arm at a fixed frequency.
2. The method according to claim 1, wherein, It also includes step S8: human-computer interaction, which supports command-line parameter configuration of data source, frame rate, filter switch, zero sampling frame count and timeout.
3. The method according to claim 1, wherein, In step S1, multiple optical markers are located on the shoulder, distal upper arm, proximal forearm, distal forearm, and back of hand of the human upper limb.
4. The method according to claim 1, wherein, In step S1, multiple frames of data are collected by an infrared camera and saved as offline files, or acquired in real time by an online robot middleware.
5. The method according to claim 1, wherein, Step S2 includes: specifying key locations for the upper limb of the human body, and for each frame of data, performing a first-order exponential low-pass filter on the three-dimensional coordinate data of the optical marker points corresponding to the specified key locations.
6. The method according to claim 1, wherein, In step S3, the coordinate system transformation relationship is a fixed linear transformation.
7. The method according to claim 1, wherein, The robotic arm is a seven-degree-of-freedom robotic arm, and the multi-degree-of-freedom angles in steps S4, S5, and S6 are seven-degree-of-freedom angles.
8. The method according to claim 1, wherein, Step S6 includes: multiplying the incremental multi-free angle by a configurable gain per channel to convert it into radian increments, and superimposing the radian increments onto the reference joint pose of the robotic arm to obtain the target joint vector.
9. The method according to claim 1, wherein, Step S6 also includes: dimensionally trimming the target joint vector by using the minimum and maximum limits of each joint.
10. A computer-readable storage medium having software instructions stored thereon, which, when executed, perform the method according to any one of claims 1-9.
