CN116637002A - Correction method and device for rehabilitation position of upper limb rehabilitation robot - Google Patents
Correction method and device for rehabilitation position of upper limb rehabilitation robot Download PDFInfo
- Publication number
- CN116637002A CN116637002A CN202310612242.5A CN202310612242A CN116637002A CN 116637002 A CN116637002 A CN 116637002A CN 202310612242 A CN202310612242 A CN 202310612242A CN 116637002 A CN116637002 A CN 116637002A
- Authority
- CN
- China
- Prior art keywords
- upper limb
- affected
- position information
- space
- trajectory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61H—PHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
- A61H1/00—Apparatus for passive exercising; Vibrating apparatus; Chiropractic devices, e.g. body impacting devices, external devices for briefly extending or aligning unbroken bones
- A61H1/02—Stretching or bending or torsioning apparatus for exercising
- A61H1/0274—Stretching or bending or torsioning apparatus for exercising for the upper limbs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/30—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61H—PHYSICAL THERAPY APPARATUS, e.g. DEVICES FOR LOCATING OR STIMULATING REFLEX POINTS IN THE BODY; ARTIFICIAL RESPIRATION; MASSAGE; BATHING DEVICES FOR SPECIAL THERAPEUTIC OR HYGIENIC PURPOSES OR SPECIFIC PARTS OF THE BODY
- A61H2201/00—Characteristics of apparatus not provided for in the preceding codes
- A61H2201/50—Control means thereof
- A61H2201/5007—Control means thereof computer controlled
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30241—Trajectory
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Epidemiology (AREA)
- Public Health (AREA)
- Multimedia (AREA)
- Animal Behavior & Ethology (AREA)
- Veterinary Medicine (AREA)
- Pain & Pain Management (AREA)
- Rehabilitation Therapy (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Biophysics (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Rehabilitation Tools (AREA)
Abstract
本发明提供了一种上肢康复机器人的康复位置的修正方法和装置,涉及康复机器人控制的技术领域,包括:获取摄像头采集患者健侧上肢的运动轨迹,构建健侧上肢三维运动空间;对健侧上肢三维运动空间和运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于患侧上肢数据对初始三维运动空间进行修正,得到安全运动空间;将患侧上肢的预测运动轨迹发送给上肢康复机器人,控制调整后的上肢康复机器人基于患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;基于第一位置信息和第二位置信息,对预测运动轨迹和下一时刻患侧上肢的位置信息进行修正,解决了上肢康复机器人康复位置修正方法修正精度较低的技术问题。
The invention provides a method and device for correcting the rehabilitation position of an upper limb rehabilitation robot, and relates to the technical field of rehabilitation robot control, including: acquiring a camera to collect the movement trajectory of the patient's healthy upper limb, and constructing a three-dimensional motion space for the healthy upper limb; The three-dimensional movement space and movement trajectory of the upper limb are mirrored to obtain the initial three-dimensional movement space of the affected upper limb and the predicted movement trajectory of the affected upper limb, and the initial three-dimensional movement space is corrected based on the data of the affected upper limb to obtain a safe movement space; The predicted motion trajectory of the affected upper limb is sent to the upper limb rehabilitation robot, and the adjusted upper limb rehabilitation robot drives the affected upper limb to move based on the predicted trajectory of the affected upper limb and the PID algorithm; based on the first position information and the second position information, the predicted The movement trajectory and the position information of the upper limb of the affected side at the next moment are corrected, which solves the technical problem of low correction accuracy of the rehabilitation position correction method of the upper limb rehabilitation robot.
Description
技术领域technical field
本发明涉及上肢康复机器人控制的技术领域,尤其是涉及一种上肢康复机器人的康复位置的修正方法和装置。The invention relates to the technical field of upper limb rehabilitation robot control, in particular to a correction method and device for a rehabilitation position of an upper limb rehabilitation robot.
背景技术Background technique
现有的上肢康复机器人产品有外骨骼以及单末端牵引形式,这里主要对比末端牵引形式。其中不乏有通过视觉控制来捕捉患者动作的,通过当前时刻所述卡尔曼滤波轨迹以及所述BP神经网络轨迹还有所粒子滤波轨迹上距离最近的两点的中点,计算下一时刻卡尔曼滤波预测结果和BP神经网络预测结果;通过对时间以及空间双维度的优化,即KF+BP以及PF+KF+BP方式来实现轨迹的定位优化;另外一面在设备控制上,通过计算设备运行轨迹的误差,并在其每一步的实际运行角度与预计运行角度的差值加到一起计算最后得到误差进行矫正。Existing upper limb rehabilitation robot products include exoskeleton and single-end traction form. Here we mainly compare the end-traction form. Many of them use visual control to capture the patient's movements. The Kalman filter trajectory at the current moment, the BP neural network trajectory, and the midpoint of the two nearest points on the particle filter trajectory are used to calculate the Kalman filter at the next moment. Filtering prediction results and BP neural network prediction results; through the optimization of time and space two dimensions, that is, KF+BP and PF+KF+BP methods to realize the positioning optimization of the trajectory; on the other hand, in terms of equipment control, by calculating the equipment running trajectory The error, and the difference between the actual running angle and the expected running angle of each step is added together to calculate and finally get the error for correction.
但是,上述的上肢康复机器人的康复位置的修正方法的修正精度较低。However, the correction accuracy of the correction method for the rehabilitation position of the above-mentioned upper limb rehabilitation robot is relatively low.
针对上述问题,还未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种上肢康复机器人的康复位置的修正方法和装置,以缓解了上肢康复机器人的康复位置的修正方法的修正精度较低。In view of this, the purpose of the present invention is to provide a method and device for correcting the rehabilitation position of the upper limb rehabilitation robot, so as to alleviate the low correction accuracy of the correction method for the rehabilitation position of the upper limb rehabilitation robot.
第一方面,本发明实施例提供了一种上肢康复机器人的康复位置的修正方法,包括:在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。In the first aspect, an embodiment of the present invention provides a method for correcting the rehabilitation position of an upper limb rehabilitation robot, including: when the patient is in a fixed sitting posture, acquiring a camera to collect the movement trajectory of the patient's healthy upper limb, and based on the movement trajectory, Constructing the three-dimensional motion space of the uninjured upper limb; mirroring the three-dimensional motion space of the unaffected upper limb and the motion trajectory to obtain the initial three-dimensional motion space of the affected upper limb and the predicted motion trajectory of the affected upper limb, and based on the patient's Correct the initial three-dimensional motion space to obtain the safe motion space of the affected upper limb of the patient; send the predicted motion track of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can control the motor Adjust the position loop, and control the adjusted upper limb rehabilitation robot to drive the affected upper limb to move based on the predicted motion trajectory and PID algorithm of the affected upper limb; after obtaining the first position information, determine the The second position information, wherein, the first position information is the position information of the affected upper limb in the safe movement space of the affected upper limb at the current moment, and the second position information is the position information of the affected upper limb in the safe movement space of the affected side The predicted movement trajectory of the upper limb on the affected side corresponds to the position information of the first position information; based on the first position information and the second position information, the predicted movement trajectory and the affected side at the next moment at the current moment The position information of the upper limb in the safe movement space of the affected upper limb is corrected.
进一步地,上肢数据包括:手臂的臂长和肩高。Further, the upper limb data includes: arm length and shoulder height.
进一步地,基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间,包括:控制所述上肢康复机器人拉直患侧上肢,确定出所述患侧上肢数据,并基于所述患侧上肢数据,构建患侧上肢的极限运动空间;控制所述上肢康复机器人带动患侧上肢进行力反馈运动,并基于力反馈运动过程,构建患侧上肢的实际运动空间;若所述实际运动空间小于所述极限运动空间,则基于所述实际运动空间和二分法对所述初始三维运动空间进行修正,得到修正后的初始三维运动空间;对所述修正后的初始三维运动空间和所述实际运动空间进行整合,得到所述患侧上肢安全运动空间。Further, the initial three-dimensional motion space is corrected based on the data of the affected upper limb of the patient to obtain the safe motion space of the affected upper limb of the patient, including: controlling the upper limb rehabilitation robot to straighten the affected upper limb, and determining The upper limb data of the affected side, and based on the upper limb data of the affected side, construct the limit motion space of the upper limb of the affected side; control the upper limb rehabilitation robot to drive the upper limb of the affected side to perform force feedback movement, and construct the affected side The actual movement space of the upper limbs; if the actual movement space is smaller than the limit movement space, the initial three-dimensional movement space is corrected based on the actual movement space and the dichotomy to obtain a corrected initial three-dimensional movement space; The corrected initial three-dimensional motion space is integrated with the actual motion space to obtain the safe motion space of the affected upper limb.
进一步地,基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正,包括:确定出所述第一位置信息和第二位置信息之间的位置偏差;基于所述位置偏差,对所述患侧上肢的预测运动轨迹进行修正,修正后的患侧上肢的预测运动轨迹;于所述修正后的患侧上肢的预测运动轨迹和患侧上肢的实际运动轨迹,确定出轨迹偏差值;基于所述轨迹偏差值,对当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。Further, based on the first position information and the second position information, the predicted movement trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment are corrected, Including: determining the position deviation between the first position information and the second position information; based on the position deviation, correcting the predicted movement trajectory of the affected upper limb, and correcting the predicted movement trajectory of the affected upper limb ; Determine the trajectory deviation value based on the corrected predicted trajectory of the affected upper limb and the actual trajectory of the affected upper limb; The position information in the safe movement space of the lateral upper limbs is corrected.
第二方面,本发明实施例还提供了一种上肢康复机器人的康复位置的修正装置,包括:构建单元,用于在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;镜像单元,用于对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;控制单元,用于将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;确定单元,用于在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;修正单元,用于基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。In the second aspect, the embodiment of the present invention also provides a correction device for the rehabilitation position of the upper limb rehabilitation robot, including: a construction unit, which is used to acquire the movement track of the healthy side of the patient's upper limb by the camera when the patient is in a fixed sitting position, and Based on the motion trajectory, construct the three-dimensional motion space of the upper limb of the healthy side; the mirroring unit is used to mirror the three-dimensional motion space of the upper limb of the healthy side and the motion trajectory to obtain the initial three-dimensional motion space of the upper limb of the affected side and the affected side The predicted movement trajectory of the upper limb, and based on the patient's affected upper limb data, the initial three-dimensional movement space is corrected to obtain the patient's affected upper limb safe movement space; the control unit is used to predict the affected upper limb movement The trajectory is sent to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot adjusts the motor position loop, and controls the adjusted upper limb rehabilitation robot to drive the affected upper limb to move based on the predicted trajectory of the affected upper limb and the PID algorithm; the determination unit , for determining the second position information based on the first position information after the first position information is acquired, wherein the first position information is the upper limb on the affected side in the safe exercise space of the upper limb on the affected side at the current moment position information, the second position information is the position information corresponding to the predicted movement trajectory of the affected upper limb in the safe exercise space of the affected upper limb and the first position information; the correction unit is configured to be based on the first position information The first position information and the second position information are used to correct the predicted movement trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment.
进一步地,上肢数据包括:手臂的臂长和肩高。Further, the upper limb data includes: arm length and shoulder height.
进一步地,所述镜像单元,用于:控制所述上肢康复机器人拉直患侧上肢,确定出所述患侧上肢数据,并基于所述患侧上肢数据,构建患侧上肢的极限运动空间;控制所述上肢康复机器人带动患侧上肢进行力反馈运动,并基于力反馈运动过程,构建患侧上肢的实际运动空间;若所述实际运动空间小于所述极限运动空间,则基于所述实际运动空间和二分法对所述初始三维运动空间进行修正,得到修正后的初始三维运动空间;对所述修正后的初始三维运动空间和所述实际运动空间进行整合,得到所述患侧上肢安全运动空间。Further, the mirroring unit is configured to: control the upper limb rehabilitation robot to straighten the upper limb of the affected side, determine the data of the upper limb of the affected side, and construct an extreme exercise space of the upper limb of the affected side based on the data of the upper limb of the affected side; Control the upper limb rehabilitation robot to drive the affected upper limb to perform force feedback movement, and construct the actual movement space of the affected upper limb based on the force feedback movement process; if the actual movement space is smaller than the limit movement space, then based on the actual movement The space and dichotomy are used to correct the initial three-dimensional motion space to obtain the corrected initial three-dimensional motion space; to integrate the corrected initial three-dimensional motion space and the actual motion space to obtain the safe motion of the affected upper limb space.
进一步地,所述修正单元,用于:确定出所述第一位置信息和第二位置信息之间的位置偏差;基于所述位置偏差,对所述患侧上肢的预测运动轨迹进行修正,修正后的患侧上肢的预测运动轨迹;基于所述修正后的患侧上肢的预测运动轨迹和患侧上肢的实际运动轨迹,确定出轨迹偏差值;基于所述轨迹偏差值,对当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。Further, the correction unit is configured to: determine a position deviation between the first position information and the second position information; based on the position deviation, correct the predicted movement trajectory of the upper limb on the affected side, correct The predicted trajectory of the upper limb on the affected side; based on the corrected predicted trajectory of the upper limb on the affected side and the actual trajectory of the upper limb on the affected side, the trajectory deviation value is determined; based on the trajectory deviation value, the lower limb at the current moment The position information of the upper limb of the affected side in the safe movement space of the upper limb of the affected side is corrected at a moment.
第三方面,本发明实施例还提供了一种电子设备,包括存储器以及处理器,所述存储器用于存储支持处理器执行上述第一方面中所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。In a third aspect, an embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory is used to store a program that supports the processor to execute the method described in the first aspect above, and the processor is configured to for executing programs stored in the memory.
第四方面,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序。In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored.
在本发明实施例中,通过在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正,达到了上肢康复机器人的康复位置进行实时高精度修正的目的,进而解决了上肢康复机器人的康复位置的修正方法的修正精度较低的技术问题,从而实现了为患者提供更好的上肢康复过程的技术效果。In the embodiment of the present invention, when the patient is in a fixed state of sitting, the camera is used to collect the movement trajectory of the patient's healthy upper limb, and based on the movement trajectory, the three-dimensional movement space of the healthy upper limb is constructed; Space and the motion trajectory are mirrored to obtain the initial three-dimensional motion space of the affected upper limb of the patient and the predicted motion trajectory of the affected upper limb, and based on the data of the affected upper limb of the patient, the initial three-dimensional motion space is corrected to obtain Safe movement space of the affected upper limb of the patient; sending the predicted motion trajectory of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can adjust the motor position loop, and control the adjusted upper limb rehabilitation robot based on the The predicted movement trajectory of the affected upper limb and the PID algorithm drive the affected upper limb to move; after the first position information is obtained, the second position information is determined based on the first position information, wherein the first position information is the current moment The position information of the affected upper limb in the safe movement space of the affected upper limb, the second position information is that the predicted movement track of the affected upper limb in the safe movement space of the affected upper limb corresponds to the first position information Position information; based on the first position information and the second position information, correct the predicted motion trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment , to achieve the purpose of real-time high-precision correction of the rehabilitation position of the upper limb rehabilitation robot, and then solve the technical problem of low correction accuracy of the correction method of the rehabilitation position of the upper limb rehabilitation robot, thus realizing a better upper limb rehabilitation process for patients technical effect.
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例提供的一种上肢康复机器人的康复位置的修正方法的流程图;FIG. 1 is a flowchart of a correction method for a rehabilitation position of an upper limb rehabilitation robot provided by an embodiment of the present invention;
图2为本发明实施例提供的一种上肢康复机器人的康复位置的修正装置的示意图;2 is a schematic diagram of a correction device for a rehabilitation position of an upper limb rehabilitation robot provided by an embodiment of the present invention;
图3为本发明实施例提供的一种电子设备的示意图。Fig. 3 is a schematic diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一:Embodiment one:
根据本发明实施例,提供了一种上肢康复机器人的康复位置的修正方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a method for correcting the rehabilitation position of an upper limb rehabilitation robot is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
图1是根据本发明实施例的一种上肢康复机器人的康复位置的修正方法的流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flowchart of a method for correcting a rehabilitation position of an upper limb rehabilitation robot according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:
步骤S102,在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;Step S102, when the patient is in a fixed sitting posture, acquire a camera to collect the movement trajectory of the patient's healthy upper limb, and based on the movement trajectory, construct a three-dimensional movement space of the healthy upper limb;
需要说明的是,坐姿固定状态为通过腿部挡板通过大腿上侧以及小腿内侧两点进行约束,可以实现患者在坐姿状态下不会滑动,具体结构本案不进行提及。通过肩膀上方的绑缚对患者躯干进行约束,防止上身出现扭动,以此来进行患者的坐姿约束。It should be noted that the fixed state of the sitting posture is restrained by two points on the upper side of the thigh and the inner side of the calf through the leg shield, so that the patient will not slide in the sitting posture, and the specific structure will not be mentioned in this case. The patient's trunk is restrained through the binding above the shoulders to prevent the upper body from twisting, so as to restrain the patient's sitting posture.
坐姿固定是康复位置修正的前置条件,当患者的上肢躯干包括手臂在无约束条件下,其运动路径是随机可变的,其变动加速度远超动态捕捉以及数据处理的时间,存在一定的计算偏差,所以要提升末端康复上肢的位置精度,必须要对患者的躯干进行限制,通过腿部挡板约束两条腿的前后方向的移动,其次是躯干部分,通过背部的固定件约束躯干的前倾跟后仰,给测算平台一个稳定的对象,通过运动轨迹确定出患者的健侧上肢数据,并根据健侧上肢数据构建健侧上肢三维运动空间,健侧上肢数据包括:患者健侧手臂的臂长和患者健侧的肩高,上述的点位包括腕关节、肘关节、肩关节、躯干、大腿。Fixed sitting posture is the precondition for rehabilitation position correction. When the patient's upper limbs, including the arms, are under unconstrained conditions, their movement paths are randomly variable, and their changing acceleration far exceeds the time of dynamic capture and data processing. There is a certain calculation Therefore, in order to improve the position accuracy of the terminal rehabilitation upper limbs, it is necessary to restrict the patient's torso. The movement of the two legs in the front and rear direction is restricted by the leg shield, followed by the torso, and the anterior torso of the torso is restrained by the fixing parts on the back. Tilt the heel and lean back, give the calculation platform a stable object, determine the patient’s healthy upper limb data through the movement trajectory, and construct a three-dimensional movement space for the healthy upper limb based on the healthy upper limb data. The healthy upper limb data include: the patient’s healthy arm The arm length and the shoulder height of the healthy side of the patient, the above-mentioned points include the wrist joint, elbow joint, shoulder joint, trunk, and thigh.
步骤S104,对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;Step S104, mirroring the three-dimensional motion space of the unaffected upper limb and the motion trajectory to obtain the initial three-dimensional motion space of the affected upper limb of the patient and the predicted motion trajectory of the affected upper limb, and based on the data of the affected upper limb of the patient Correcting the initial three-dimensional motion space to obtain a safe motion space for the affected upper limb of the patient;
步骤S106,将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;Step S106, sending the predicted trajectory of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can adjust the motor position loop, and control the adjusted upper limb rehabilitation robot based on the predicted trajectory of the affected upper limb and The PID algorithm drives the movement of the affected upper limb;
步骤S108,在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;Step S108, after obtaining the first position information, determine the second position information based on the first position information, wherein the first position information is the upper limb on the affected side in the safe movement space of the upper limb on the affected side at the current moment position information, the second position information is the position information corresponding to the predicted movement trajectory of the affected upper limb in the safe exercise space of the affected upper limb and the first position information;
步骤S110,基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。Step S110, based on the first position information and the second position information, correct the predicted movement trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment.
在本发明实施例中,通过在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正,达到了上肢康复机器人的康复位置进行实时高精度修正的目的,进而解决了上肢康复机器人的康复位置的修正方法的修正精度较低的技术问题,从而实现了为患者提供更好的上肢康复过程的技术效果。In the embodiment of the present invention, when the patient is in a fixed state of sitting, the camera is used to collect the movement trajectory of the patient's healthy upper limb, and based on the movement trajectory, the three-dimensional movement space of the healthy upper limb is constructed; Space and the motion trajectory are mirrored to obtain the initial three-dimensional motion space of the affected upper limb of the patient and the predicted motion trajectory of the affected upper limb, and based on the data of the affected upper limb of the patient, the initial three-dimensional motion space is corrected to obtain Safe movement space of the affected upper limb of the patient; sending the predicted motion trajectory of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can adjust the motor position loop, and control the adjusted upper limb rehabilitation robot based on the The predicted movement trajectory of the affected upper limb and the PID algorithm drive the affected upper limb to move; after the first position information is obtained, the second position information is determined based on the first position information, wherein the first position information is the current moment The position information of the affected upper limb in the safe movement space of the affected upper limb, the second position information is that the predicted movement track of the affected upper limb in the safe movement space of the affected upper limb corresponds to the first position information Position information; based on the first position information and the second position information, correct the predicted motion trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment , to achieve the purpose of real-time high-precision correction of the rehabilitation position of the upper limb rehabilitation robot, and then solve the technical problem of low correction accuracy of the correction method of the rehabilitation position of the upper limb rehabilitation robot, thus realizing a better upper limb rehabilitation process for patients technical effect.
下面对步骤S102进行详细说明。Step S102 will be described in detail below.
启动摄像头,预先设定好需要被采集的患者,避免对象采集错误。通过患者的姿势来判定是否启动采集,对坐姿患者进行点位采集,得到相应数据,通过数据可以计算出患者的臂长、肩高等。同时,通过采集点位数据、臂长可以计算出健侧在空间中的XYZ位置并生成一个数字层面的安全空间(即,健侧上肢三维运动空间)。Start the camera and pre-set the patients that need to be collected to avoid object collection errors. The posture of the patient is used to determine whether to start the collection, and the position of the sitting patient is collected to obtain the corresponding data. The patient's arm length and shoulder height can be calculated from the data. At the same time, by collecting point data and arm length, the XYZ position of the healthy side in space can be calculated and a digital-level safe space (ie, the three-dimensional movement space of the healthy side's upper limb) can be generated.
在本发明实施例中,步骤S104包括如下步骤:In the embodiment of the present invention, step S104 includes the following steps:
将所述健侧上肢数据发送给所述上肢康复机器人,以使所述上肢康复机器人基于所述健侧上肢数据,确定出所述患者的患侧上肢初始安全运动空间;Sending the data of the healthy upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot determines the initial safe movement space of the affected upper limb of the patient based on the data of the healthy upper limb;
控制所述上肢康复机器人拉直患侧上肢,确定出所述患侧上肢数据,并基于所述患侧上肢数据,构建患侧上肢的极限运动空间;Controlling the upper limb rehabilitation robot to straighten the affected upper limb, determining the data of the affected upper limb, and constructing an extreme exercise space for the affected upper limb based on the affected upper limb data;
控制所述上肢康复机器人带动患侧上肢进行力反馈运动,并基于力反馈运动过程,构建患侧上肢的实际运动空间;Control the upper limb rehabilitation robot to drive the affected upper limb to perform force feedback movement, and construct the actual movement space of the affected upper limb based on the force feedback movement process;
若所述实际运动空间小于所述极限运动空间,则基于所述实际运动空间和二分法对所述初始三维运动空间进行修正,得到修正后的初始三维运动空间;If the actual motion space is smaller than the limit motion space, correcting the initial three-dimensional motion space based on the actual motion space and a dichotomy to obtain a corrected initial three-dimensional motion space;
对所述修正后的初始三维运动空间和所述实际运动空间进行整合,得到所述患侧上肢安全运动空间。The corrected initial three-dimensional motion space and the actual motion space are integrated to obtain the safe motion space of the affected upper limb.
在本发明实施例中,上肢康复机器人启动上电,对上肢康复机器人的电机进行使能,配置相关参数后进行,然后上肢康复机器人的主控收到来健侧上肢数据,通过健侧上肢数据能够判定一个物理层面的安全空间限位值,得到最大的安全空间(即,极限运动空间)。在此空间内对患者患侧进行臂长的测算,即在力反馈模式下通过控制上肢康复机器人的电机驱动,使患者肩、手处于伸直状态,以此来计算手臂的长度。计算出手臂长度后,将运动数据返回给上肢康复机器人的主板,进行上肢康复机器人的安全空间的计算(即,实际运动空间)。并且测算手臂数据后会反给上位机,准备进行数据校核调整视觉测算安全空间。In the embodiment of the present invention, the upper limb rehabilitation robot is powered on, the motor of the upper limb rehabilitation robot is enabled, and related parameters are configured, and then the main control of the upper limb rehabilitation robot receives the data of the upper limb of the healthy side. Determine the limit value of the safe space at a physical level to obtain the maximum safe space (ie, extreme sports space). In this space, the arm length of the patient's affected side is measured, that is, the arm length is calculated by controlling the motor drive of the upper limb rehabilitation robot in force feedback mode so that the patient's shoulder and hand are straightened. After the arm length is calculated, the motion data is returned to the main board of the upper limb rehabilitation robot to calculate the safe space of the upper limb rehabilitation robot (that is, the actual movement space). And after the arm data is measured, it will be sent back to the host computer to prepare for data verification and adjust the visual measurement safety space.
接着,将患者的患侧上肢中间安全运动空间和所述健侧上肢三维运动空间的镜像进行融合计算,得到患者的患侧上肢安全运动空间,再将患者的患侧上肢安全运动空间发给上肢康复机器人,然后精细调整上肢康复机器人的电机位置环,能够得到患侧上肢安全运动空间。Next, the safe movement space in the middle of the patient's upper limb on the affected side and the mirror image of the three-dimensional movement space of the upper limb on the healthy side are fused and calculated to obtain the safe movement space of the patient's upper limb on the affected side, and then the safe movement space of the upper limb on the affected side is sent to the upper limb Rehabilitation robot, and then finely adjust the motor position ring of the upper limb rehabilitation robot to obtain a safe movement space for the upper limb on the affected side.
在本发明实施例中,步骤S110包括如下步骤:In the embodiment of the present invention, step S110 includes the following steps:
确定出所述第一位置信息和第二位置信息之间的位置偏差;determining a position deviation between the first position information and the second position information;
基于所述位置偏差,对所述患侧上肢的预测运动轨迹进行修正,修正后的患侧上肢的预测运动轨迹;Based on the position deviation, the predicted movement trajectory of the affected upper limb is corrected, and the corrected predicted movement trajectory of the affected upper limb;
基于所述修正后的患侧上肢的预测运动轨迹和患侧上肢的实际运动轨迹,确定出轨迹偏差值;Determine the trajectory deviation value based on the corrected predicted motion trajectory of the affected upper limb and the actual trajectory of the affected upper limb;
基于所述轨迹偏差值,对当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。Based on the trajectory deviation value, the position information of the upper limb on the affected side in the safe movement space of the upper limb on the affected side at the next moment at the current moment is corrected.
下面对上述方法的执行过程进行详细说明。The execution process of the above method will be described in detail below.
摄像头捕捉患者健侧的臂长与肩高,根据其进行前屈、后伸、侧展开、内收时采集到的轨迹数据构建患者健侧安全活动空间。The camera captures the arm length and shoulder height of the healthy side of the patient, and constructs a safe activity space for the healthy side of the patient based on the trajectory data collected during forward bending, backward extension, side expansion, and adduction.
通过手臂等长基础,对患者健侧安全活动空间进行镜像处理,得到患侧的安全活动空间;Based on the arm isometric basis, the safe movement space of the healthy side of the patient is mirrored to obtain the safe movement space of the affected side;
接着,患者患侧在康复机器人控制下拉直手臂,此时通过康复机器人的电机之间的角度值以及坐标进行计算得到患者患侧臂长,并且以照患侧肩关节为中心,臂长为半径,绘制一个患者患侧手臂的极限运动空间。Then, the affected side of the patient straightens the arm under the control of the rehabilitation robot. At this time, the arm length of the patient’s affected side is calculated through the angle value and coordinates between the motors of the rehabilitation robot, and the shoulder joint of the affected side is the center, and the arm length is the radius , draw a limit motion space for the patient's affected arm.
接着,通过康复机器人的电机带动患者患侧手臂上下左右前后的力反馈运动,即有一定阻力停止活动。通过力反馈运动,能够绘制患者患侧手臂的实际活动空间。Then, the motor of the rehabilitation robot drives the force feedback movement of the patient's affected arm up and down, left, right, front, back, and back, that is, there is a certain resistance to stop the movement. Through force feedback movement, the actual movement space of the patient's affected arm can be mapped.
对患者患侧手臂的实际活动空间的范围值与患者患侧手臂的极限运动空间的范围值进行比较,若患者患侧手臂的实际活动空间的范围值小于患者患侧手臂的极限运动空间的范围值说明安全空间进一步准确。Compare the range value of the actual movement space of the patient's arm with the range value of the limit movement space of the patient's arm, if the range value of the actual movement space of the patient's arm is smaller than the range of the limit movement space of the patient's arm The value shows that the safe space is further accurate.
同时将患者患侧手臂的实际活动空间的范围值发给上位机与患者健侧安全活动空间进行偏差分析,通过二分法的方式修正得到修正后的安全空间。At the same time, the range value of the actual activity space of the patient's affected arm is sent to the host computer and the safety activity space of the healthy side of the patient for deviation analysis, and the corrected safety space is obtained through dichotomy correction.
将修正后的安全空间与患者患侧手臂的实际活动空间整合,调整患者患侧手臂的实际活动空间中计算不准确的值得到优化后的实际安全空间。The corrected safe space is integrated with the actual activity space of the patient's affected arm, and the calculated inaccurate value in the actual activity space of the patient's affected arm is adjusted to obtain the optimized actual safe space.
运动位置方面,通过摄像头得到健侧手臂的空间坐标,在以臂长为半径或者小臂长为半径运动,可以得到对应的健侧手臂虚拟轨迹,即为预测运动位置;患侧通过康复机器人调整电机位置环,再用PID运动控制方式,康复机器人带动患侧手臂按照健侧对称轨迹去运行。In terms of movement position, the spatial coordinates of the arm of the healthy side are obtained through the camera, and the corresponding virtual trajectory of the arm of the healthy side can be obtained when the radius of the arm or forearm is used as the radius, which is the predicted movement position; the affected side is adjusted by the rehabilitation robot The motor position loop, and then using the PID motion control method, the rehabilitation robot drives the arm on the affected side to run according to the symmetrical trajectory of the healthy side.
但此时仅是运动轨迹的描绘,对于运动终点坐标是不确定的,所以通过双侧动态监测进行不间断的对比,当康复机器人的电机将前往的坐标与视觉预测的坐标不相符或康复机器人电机所前往的坐标与视觉捕捉的坐标不对称时,监测系统对其进行重新计算,重新规划所将运动的路线以及捕捉到的动态坐标值,这里的偏差值可以提前预设,比如坐标值偏差小于10mm,则在小于10mm时停止计算,若计算值仍然大于设定精度,则重复计算以及对捕捉位置坐标以及设备坐标进行偏置,通过下次运动来验证该偏置是否适配当前训练,同样当两坐标偏差小于设定精度,则停止计算,同时将重新计算值反馈到电机位置环,以此来提高运动位置精度。But at this time, it is only a description of the motion trajectory, and the coordinates of the end point of the motion are uncertain. Therefore, continuous comparison is carried out through bilateral dynamic monitoring. When the coordinates where the motor is going are asymmetrical to the coordinates captured by the vision, the monitoring system will recalculate it, replan the route to be moved and the captured dynamic coordinate values. The deviation value here can be preset in advance, such as coordinate value deviation If it is less than 10mm, stop the calculation when it is less than 10mm. If the calculated value is still greater than the set accuracy, repeat the calculation and offset the capture position coordinates and device coordinates, and verify whether the offset is suitable for the current training through the next exercise. Similarly, when the deviation of the two coordinates is less than the set accuracy, the calculation is stopped, and the recalculated value is fed back to the motor position loop to improve the motion position accuracy.
在本发明实施例中,当摄像头捕捉使用者健侧的当前时刻t的位置坐标t(X、Y、Z)以及t-1(X、Y、Z)的坐标发送给上肢康复机器人,上肢康复机器人接收到坐标数据后,控制患侧的上肢康复机器人的电机进行相应的空间移动,移动过程中会存在位置偏差,此时上肢康复机器人自身会通过PID算法,在t-1时间的运动中,补偿上一时间t所产生的位置偏差,并将第一偏差值以及运动轨迹反馈给上位机,上位机通过对比采集的轨迹数据与实际电机运动轨迹进行镜像对比,即患侧与健侧进行数据层面的轨迹对比,至此来修正视觉捕捉健侧上带来的偏差。上位机再将偏差值给到上肢康复机器人,上肢康复机器人通过冗余方式将这偏差与自身在t时刻的调整值进行比对,然后修正调整值,通过上述方式实现上下位机共同动态调节至小于某个精准度后,来提升康复过程中的位置精准度。In the embodiment of the present invention, when the camera captures the position coordinates t (X, Y, Z) and the coordinates of t-1 (X, Y, Z) of the user's healthy side at the current moment t and sends them to the upper limb rehabilitation robot, the upper limb rehabilitation After the robot receives the coordinate data, it controls the motor of the upper limb rehabilitation robot on the affected side to move in the corresponding space. There will be position deviation during the movement process. At this time, the upper limb rehabilitation robot itself will pass the PID algorithm. During the movement at time t-1, Compensate the position deviation generated at the previous time t, and feed back the first deviation value and motion trajectory to the host computer. The host computer compares the collected trajectory data with the actual motor trajectory by mirroring, that is, the affected side and the healthy side perform data comparison. The trajectory comparison of the layers is used to correct the deviation caused by the visual capture on the healthy side. The upper computer then gives the deviation value to the upper limb rehabilitation robot. The upper limb rehabilitation robot compares the deviation with its own adjustment value at time t in a redundant manner, and then corrects the adjustment value. Through the above method, the upper and lower computers jointly dynamically adjust to After the accuracy is less than a certain accuracy, the position accuracy in the rehabilitation process is improved.
在本发明实施例中,以固定坐姿为基础,通过视觉数据处理与电机数据处理形成动态交互的方式提升控制精度,从而提高上肢康复机器人的康复位置的精度。In the embodiment of the present invention, based on a fixed sitting posture, the control accuracy is improved through dynamic interaction between visual data processing and motor data processing, thereby improving the accuracy of the rehabilitation position of the upper limb rehabilitation robot.
实施例二:Embodiment two:
本发明实施例还提供了一种上肢康复机器人的康复位置的修正装置,该装置用于执行本发明实施例上述内容所提供的上肢康复机器人的康复位置的修正方法,以下是本发明实施例提供的装置的具体介绍。The embodiment of the present invention also provides a device for correcting the rehabilitation position of the upper limb rehabilitation robot, which is used to implement the method for correcting the rehabilitation position of the upper limb rehabilitation robot provided in the above-mentioned content of the embodiment of the present invention. The following is provided by the embodiment of the present invention The specific introduction of the device.
如图2所示,图2为上述上肢康复机器人的康复位置的修正装置的示意图,该上肢康复机器人的康复位置的修正装置包括:As shown in Figure 2, Figure 2 is a schematic diagram of the correction device for the rehabilitation position of the above-mentioned upper limb rehabilitation robot, the correction device for the rehabilitation position of the upper limb rehabilitation robot includes:
构建单元10,用于在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;The construction unit 10 is used to obtain a camera to collect the movement trajectory of the patient's healthy upper limb when the patient is in a fixed sitting posture, and based on the movement trajectory, construct a three-dimensional movement space of the healthy upper limb;
镜像单元20,用于对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;The mirroring unit 20 is configured to mirror the three-dimensional motion space of the healthy upper limb and the motion trajectory to obtain the initial three-dimensional motion space of the affected upper limb of the patient and the predicted motion trajectory of the affected upper limb, and based on the patient's The side upper limb data is used to correct the initial three-dimensional motion space to obtain the safe motion space of the affected upper limb of the patient;
控制单元30,用于将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;The control unit 30 is configured to send the predicted movement trajectory of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can adjust the motor position loop, and control the adjusted upper limb rehabilitation robot based on the prediction of the affected upper limb The movement trajectory and PID algorithm drive the upper limb movement of the affected side;
确定单元40,用于在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;The determination unit 40 is configured to determine the second position information based on the first position information after the first position information is acquired, wherein the first position information is the safe position of the upper limb on the affected side at the current moment. The position information in the exercise space, the second position information is the position information corresponding to the predicted motion track of the affected upper limb in the safe exercise space of the affected upper limb and the first position information;
修正单元50,用于基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正。The correction unit 50 is configured to, based on the first position information and the second position information, calculate the predicted movement trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment Make corrections.
在本发明实施例中,通过在患者处于坐姿固定状态时,获取摄像头采集患者健侧上肢的运动轨迹,并基于所述运动轨迹,构建健侧上肢三维运动空间;对所述健侧上肢三维运动空间和所述运动轨迹进行镜像处理,得到患者患侧上肢的初始三维运动空间和患侧上肢的预测运动轨迹,并基于所述患者的患侧上肢数据对所述初始三维运动空间进行修正,得到所述患者的患侧上肢安全运动空间;将患侧上肢的预测运动轨迹发送给上肢康复机器人,以使所述上肢康复机器人对电机位置环进行调整,并控制调整后的上肢康复机器人基于所述患侧上肢的预测运动轨迹和PID算法带动患侧上肢运动;在获取到第一位置信息之后,基于所述第一位置信息确定出第二位置信息,其中,所述第一位置信息为当前时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息,所述第二位置信息为在所述患侧上肢安全运动空间中患侧上肢的预测运动轨迹与所述第一位置信息相对应的位置信息;基于所述第一位置信息和所述第二位置信息,对所述预测运动轨迹和当前时刻的下一时刻患侧上肢在所述患侧上肢安全运动空间中的位置信息进行修正,达到了上肢康复机器人的康复位置进行实时高精度修正的目的,进而解决了上肢康复机器人的康复位置的修正方法的修正精度较低的技术问题,从而实现了为患者提供更好的上肢康复过程的技术效果。In the embodiment of the present invention, when the patient is in a fixed state of sitting, the camera is used to collect the movement trajectory of the patient's healthy upper limb, and based on the movement trajectory, the three-dimensional movement space of the healthy upper limb is constructed; Space and the motion trajectory are mirrored to obtain the initial three-dimensional motion space of the affected upper limb of the patient and the predicted motion trajectory of the affected upper limb, and based on the data of the affected upper limb of the patient, the initial three-dimensional motion space is corrected to obtain Safe movement space of the affected upper limb of the patient; sending the predicted motion trajectory of the affected upper limb to the upper limb rehabilitation robot, so that the upper limb rehabilitation robot can adjust the motor position loop, and control the adjusted upper limb rehabilitation robot based on the The predicted movement trajectory of the affected upper limb and the PID algorithm drive the affected upper limb to move; after the first position information is obtained, the second position information is determined based on the first position information, wherein the first position information is the current moment The position information of the affected upper limb in the safe movement space of the affected upper limb, the second position information is that the predicted movement track of the affected upper limb in the safe movement space of the affected upper limb corresponds to the first position information Position information; based on the first position information and the second position information, correct the predicted motion trajectory and the position information of the affected upper limb in the safe movement space of the affected upper limb at the next moment at the current moment , to achieve the purpose of real-time high-precision correction of the rehabilitation position of the upper limb rehabilitation robot, and then solve the technical problem of low correction accuracy of the correction method of the rehabilitation position of the upper limb rehabilitation robot, thus realizing a better upper limb rehabilitation process for patients technical effect.
实施例三:Embodiment three:
本发明实施例还提供了一种电子设备,包括存储器以及处理器,所述存储器用于存储支持处理器执行上述实施例一中所述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。An embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory is used to store a program that supports the processor to execute the method described in the first embodiment above, and the processor is configured to execute the program stored in memory.
参见图3,本发明实施例还提供一种电子设备100,包括:处理器60,存储器61,总线62和通信接口63,所述处理器60、通信接口63和存储器61通过总线62连接;处理器60用于执行存储器61中存储的可执行模块,例如计算机程序。Referring to Fig. 3, the embodiment of the present invention also provides an electronic device 100, comprising: a processor 60, a memory 61, a bus 62 and a communication interface 63, the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; processing The processor 60 is used to execute executable modules stored in the memory 61, such as computer programs.
其中,存储器61可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口63(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。Wherein, the memory 61 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.
总线62可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The bus 62 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one double-headed arrow is used in FIG. 3 , but it does not mean that there is only one bus or one type of bus.
其中,存储器61用于存储程序,所述处理器60在接收到执行指令后,执行所述程序,前述本发明实施例任一实施例揭示的流过程定义的装置所执行的方法可以应用于处理器60中,或者由处理器60实现。Wherein, the memory 61 is used to store the program, and the processor 60 executes the program after receiving the execution instruction, and the method executed by the flow process definition device disclosed in any embodiment of the foregoing embodiments of the present invention can be applied to processing device 60, or implemented by the processor 60.
处理器60可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器60中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器60可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital SignalProcessing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器61,处理器60读取存储器61中的信息,结合其硬件完成上述方法的步骤。The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 60 or an instruction in the form of software. The above-mentioned processor 60 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61, and completes the steps of the above method in combination with its hardware.
实施例四:Embodiment four:
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器运行时执行上述实施例一中所述方法的步骤。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the method described in the first embodiment above are executed.
另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be interpreted in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, or in a specific orientation. construction and operation, therefore, should not be construed as limiting the invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and should not be construed as indicating or implying relative importance.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those of ordinary skill in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of the present invention within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310612242.5A CN116637002A (en) | 2023-05-26 | 2023-05-26 | Correction method and device for rehabilitation position of upper limb rehabilitation robot |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310612242.5A CN116637002A (en) | 2023-05-26 | 2023-05-26 | Correction method and device for rehabilitation position of upper limb rehabilitation robot |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116637002A true CN116637002A (en) | 2023-08-25 |
Family
ID=87614861
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310612242.5A Pending CN116637002A (en) | 2023-05-26 | 2023-05-26 | Correction method and device for rehabilitation position of upper limb rehabilitation robot |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116637002A (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070299371A1 (en) * | 2004-02-05 | 2007-12-27 | Omer Einav | Methods and Apparatus for Rehabilitation and Training |
| KR20160141095A (en) * | 2015-05-28 | 2016-12-08 | 주식회사 셈앤텍 | upper limb rehabilitating system |
| CN108785997A (en) * | 2018-05-30 | 2018-11-13 | 燕山大学 | A kind of lower limb rehabilitation robot Shared control method based on change admittance |
| CN111956452A (en) * | 2020-08-29 | 2020-11-20 | 上海电气集团股份有限公司 | Control method and device for upper limb rehabilitation robot |
| CN114418159A (en) * | 2021-10-29 | 2022-04-29 | 中国科学院宁波材料技术与工程研究所 | Prediction method, system and electronic device for limb movement trajectory and its prediction error |
| CN114602138A (en) * | 2022-03-01 | 2022-06-10 | 国家康复辅具研究中心 | Personalized rehabilitation training method and system for upper limbs based on human motion model |
| CN115252365A (en) * | 2022-07-20 | 2022-11-01 | 南京体医融合康复产业研究院有限公司 | Upper limb mirror image rehabilitation training robot system, control method and computer medium |
-
2023
- 2023-05-26 CN CN202310612242.5A patent/CN116637002A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070299371A1 (en) * | 2004-02-05 | 2007-12-27 | Omer Einav | Methods and Apparatus for Rehabilitation and Training |
| KR20160141095A (en) * | 2015-05-28 | 2016-12-08 | 주식회사 셈앤텍 | upper limb rehabilitating system |
| CN108785997A (en) * | 2018-05-30 | 2018-11-13 | 燕山大学 | A kind of lower limb rehabilitation robot Shared control method based on change admittance |
| CN111956452A (en) * | 2020-08-29 | 2020-11-20 | 上海电气集团股份有限公司 | Control method and device for upper limb rehabilitation robot |
| CN114418159A (en) * | 2021-10-29 | 2022-04-29 | 中国科学院宁波材料技术与工程研究所 | Prediction method, system and electronic device for limb movement trajectory and its prediction error |
| CN114602138A (en) * | 2022-03-01 | 2022-06-10 | 国家康复辅具研究中心 | Personalized rehabilitation training method and system for upper limbs based on human motion model |
| CN115252365A (en) * | 2022-07-20 | 2022-11-01 | 南京体医融合康复产业研究院有限公司 | Upper limb mirror image rehabilitation training robot system, control method and computer medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12222364B2 (en) | Detection of incorrect arrangement of inertial measurements units of a motion tracking system | |
| EP3809321A1 (en) | Action recognition method and apparatus and electronic equipment | |
| CN113268141B (en) | A motion capture method and device based on inertial sensors and fabric electronics | |
| CN116524124A (en) | Method and system for three-dimensional dynamic reconstruction of spine | |
| WO2023035456A1 (en) | Walking aid-based fall prevention walking aid method and system, and terminal device | |
| CN113499173A (en) | Real-time instance segmentation-based terrain recognition and motion prediction system for lower limb prosthesis | |
| WO2024098688A1 (en) | Three-dimensional human pose restoration method and apparatus, electronic device, and storage medium | |
| KR102745451B1 (en) | 3d human pose estimation apparatus and method thereof | |
| CN116637002A (en) | Correction method and device for rehabilitation position of upper limb rehabilitation robot | |
| CN115661202A (en) | Determination of action execution degree, exercise ability detection method, device and equipment | |
| CN116978127A (en) | Body-building posture correction method, device, equipment and medium based on posture estimation | |
| CN109620142B (en) | A system and method for measuring cervical spine mobility based on machine vision | |
| CN117838485A (en) | Auxiliary unilateral lower limb exoskeleton robot and self-adaptive control method thereof | |
| De Rosario et al. | Correction of joint angles from Kinect for balance exercising and assessment | |
| JP2004163990A5 (en) | ||
| CN117218152B (en) | Method and device for predicting motion of artificial limb and terminal equipment | |
| Lin et al. | Human pose recovery for rehabilitation using ambulatory sensors | |
| CN115841864B (en) | A method and system for evaluating rehabilitation exercise quality | |
| CN113297919A (en) | Rehabilitation action detection method, device, equipment and medium based on posture recognition | |
| CN115479601B (en) | A three-dimensional space positioning method, system, device and storage medium | |
| JP2015210109A (en) | Measuring apparatus, measuring method and measuring program | |
| Kumarasiri et al. | Gait analysis using RGBD sensors | |
| WO2023176210A1 (en) | Information processing device, information processing method, and information processing program | |
| CN111435535B (en) | Method and device for acquiring joint point information | |
| JP2014161390A (en) | Device and method for estimating walking state |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |