Robot device control method and robot device using the same
By installing a force sensor on the limb rehabilitation robot device, decomposing and scaling the external force, calculating the motor speed, and dynamically adjusting the assist or resistance, the problem of requiring additional sensors to increase complexity in the existing technology is solved, and a simpler and lower-cost solution is achieved. control method.
Patent Information
- Application Number
- CN202410876750.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-06-14
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-11
AI Technical Summary
Existing limb rehabilitation devices need to integrate additional sensors in adaptive force control, which increases the complexity of the device.
By installing a force sensor on the end effector of the robot device, the external force is detected and decomposed into tangential force and radial force, the radial force is scaled according to the distance between the current position of the handle part and the desired trajectory, and the motor speed is calculated, Provide speed commands to dynamically adjust assist or resistance.
It realizes the dynamic adjustment of the assist or resistance according to the difference between the user's actual trajectory and the desired trajectory, which simplifies the device control, reduces the dependence on additional sensors, and improves the simplicity and cost-effectiveness of the system.
Smart Images

Figure CN118750330A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to robot technology, and in particular to a robot device control method and a robot device using the method. Background Art
[0002] In the field of upper extremity rehabilitation, the integration of technology has paved the way for innovative approaches to improve patient outcomes. One such advancement involves the utilization of endpoint-based extremity rehabilitation devices that are able to provide customized force assistance or resistance along a predefined rehabilitation trajectory. Central to the efficacy of these devices is the design and implementation of adaptive force control, which dynamically adjusts force parameters based on real-time feedback received through sensors.
[0003] Most limb rehabilitation devices with end effectors on the market either implement fully powered trajectory following, where the device moves perfectly along the planned trajectory automatically without user autonomy, or fully freeform mode, where the user can operate the device without any constraints, or graded resistance mode, where different levels of resistance are provided to the user, so the user needs to apply force. However, most of the adaptive control mechanisms of these devices require the integration of additional sensors, such as electromyogram (EMG) sensors, to operate, which increases their complexity. Summary of the invention
[0004] The present application provides a robot device control method and a robot device using the method, which solves the problem of increased complexity of the robot device in limb rehabilitation applications due to the need to integrate additional sensors for operation.
[0005] An embodiment of the present application provides a method for controlling a robot device to assist a user in limb rehabilitation, wherein the robot device comprises an end effector and a handle portion coupled to the end effector and used to move the end effector; the end effector comprises one or more motors, and the handle portion comprises a force sensor; the method comprises:
[0006] detecting an external force via the force sensor of the handle portion of the robotic device coupled to the end effector of the robotic device for moving the end effector;
[0007] Decomposing the detected external force into tangential force and radial force;
[0008] scaling the radial force according to a distance between a current position of the handle portion and a desired trajectory of the handle portion;
[0009] calculating a motor speed of each of the one or more motors based on the sum of the tangential force and the scaled radial force; and
[0010] A velocity command is provided based on the calculated motor velocity, wherein the velocity command is used to move the end effector of the robotic device by rotating the one or more motors of the end effector.
[0011] An embodiment of the present application further provides a robot device, comprising:
[0012] A first end effector portion including a first motor;
[0013] a second end effector portion slidably disposed on the first end effector portion, wherein the second end effector portion includes a second motor and selectively slides along the y-direction; wherein the first motor of the first end effector portion is configured to be rotated to move the second end effector portion along the y-direction;
[0014] a handle portion slidably disposed on the second end effector portion, wherein the handle portion includes a force sensor and selectively slides along an x-direction perpendicular to the y-direction; wherein the second motor of the second end effector portion is configured to be rotated to move the handle portion along the x-direction;
[0015] one or more processors; and
[0016] One or more memories storing one or more computer programs, the one or more computer programs being executed by the one or more processors, wherein the one or more computer programs include a plurality of instructions for:
[0017] Detecting external force through the force sensor of the handle;
[0018] Decomposing the detected external force into tangential force and radial force;
[0019] scaling the radial force according to a distance between a current position of the handle portion and a desired trajectory of the handle portion;
[0020] Calculating a motor speed of each of the first motor and the second motor based on the sum of the tangential force and the scaled radial force;
[0021] providing a speed command based on the calculated motor speeds of each of the first motor and the second motor; and
[0022] The customized force corresponding to the detected external force is provided by at least one of the following methods: controlling the second motor of the second end effector part to rotate according to the speed command provided to move the handle part along the x-direction; and controlling the first motor of the first end effector part to rotate according to the speed command provided to move the second end effector part along the y-direction.
[0023] It can be seen from the above-mentioned embodiments of the present application that the robot device control method provided by the present application solves the problems in the prior art of increasing complexity by integrating additional sensors for operation, by dynamically adjusting the assistance or resistance according to the difference between the actual trajectory of the user's limbs and the expected rehabilitation trajectory. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings used in the embodiments or in the description of the prior art. In the following drawings, the same reference numerals represent corresponding parts throughout the entire figure. It should be understood that the drawings described below are only examples of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a schematic diagram of a scenario of using a robotic device and a display device to perform limb rehabilitation according to some embodiments of the present application.
[0026] Figure 2 yes Figure 1 Schematic diagram of the robotic device.
[0027] Figure 3 yes Figure 2 Schematic block diagram of the robotic device.
[0028] Figure 4 is used Figure 3 Schematic diagram of an example of a robotic device for limb rehabilitation.
[0029] Figure 5 is a flowchart of an example of obtaining and decomposing external forces in some embodiments of the present application.
[0030] Figure 6 is a schematic diagram of a screen of a selected rehabilitation trajectory in some embodiments of the present application.
[0031] Figure 7 is a flow chart of an example of decomposing external forces in some embodiments of the present application.
[0032] Figure 8 is a flow chart that provides an example of customization capabilities in some embodiments of the present application. DETAILED DESCRIPTION
[0033] In order to make the purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0034] It should be understood that when used in the present application and the appended claims, the terms "comprises", "includes", "having" and their variations indicate the presence of stated features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0035] It should also be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments, rather than limiting the scope of the present application. As used in the specification of the present application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0036] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0037] The terms "first", "second", and "third" in this application are only for descriptive purposes and should not be understood as indicating or implying relative importance or implying the number of technical features referred to. Therefore, the features defined by "first", "second", and "third" may explicitly or implicitly include at least one of the technical features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly defined.
[0038] The phrases "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application may include specific features, structures or characteristics related to the description of the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in the specification do not mean that the described embodiment should be referenced by all other embodiments, but rather "referenced by one or more but not all other embodiments", unless otherwise specifically emphasized.
[0039] The present application relates to the control of a robotic device to assist a user in limb rehabilitation. As used herein, the term "robotic device" refers to a machine such as a robotic arm, a mobile robot, which includes mechanical components, logic circuits, computing components, software and / or other specialized components that enable the desired and / or measured force, torque, position, direction, speed and / or angular velocity information to be processed by a computing source, and such computing source is used to control the force, torque, position, direction, speed, angular velocity and / or physical configuration of the device. The term "end effector" refers to a part of a robotic device that is used to interact with its environment to perform its function. The term "sensor" refers to a device, module, machine or subsystem, such as an ambient light sensor and an image sensor (e.g., a camera), whose purpose is to detect events or changes in its environment and send information to other electronic devices (e.g., a processor).
[0040] Figure 1 1 is a schematic diagram of a scenario of using a robot device 100 and a display device 200 to perform limb rehabilitation in some embodiments of the present application. In a scenario (such as a nursing home, hospital, and home) where a user U (such as a patient who needs rehabilitation due to a disease such as a stroke) performs rehabilitation activities, a rehabilitation device such as a robot device 100 (and auxiliary devices such as a display device 200) can be provided to implement physical therapy. Figure 2 yes Figure 1 Schematic diagram of a robot device 100. In some embodiments, the robot device 100 is a limb rehabilitation device, which can be placed on a table T or other suitable support to provide functions related to limb rehabilitation, so that the user U can operate it in a suitable posture such as sitting, so as to perform upper limb rehabilitation activities. The robot device 100 may include a base plate 101, a movable frame 102, and a hand grip (i.e., a "handle") 103. The movable frame 102 is mounted on the base plate 101 in a movable manner, for example, it can slide along the track of the base plate 101 in the y-axis direction (i.e., the direction aligned with the y-axis of the coordinate system of the robot device 100). The hand grip (i.e., the "handle") 103 is mounted on the movable frame 102 in a movable manner, for example, it can slide along the track of the movable frame 102 in the x-axis direction (i.e., the direction aligned with the x-axis of the coordinate system of the robot device 100). The base plate 101 and the movable frame 102 together constitute the end effector of the robot device 100. The base plate 101 includes a y-axis motor M for rotating and driving the movable frame 102 to move along the y-axis direction, and the movable frame 102 includes an x-axis motor M for rotating and driving the hand grip 103 to move along the x-axis direction. The hand grip 103 is used to support the upper limbs of the user U, which may include a force sensor S. When the user U operates the robot device 100 through the hand grip 103, the upper limb moves on the base plate 101 as the hand grip 103 moves, thereby performing upper limb rehabilitation activities.
[0041] The robot device 100 detects the force from the user U through the force sensor S, thereby providing force feedback corresponding to the detected force, and simulating physical contact in the real world in the form of motorized movement or resistance. The display device 200 is a headset, which helps the user U to perform upper limb rehabilitation activities by providing instructions, introductions, suggestions in the form of relevant text / audio / images, or displaying relevant virtual reality (VR) / augmented reality (AR) images, etc., which may include a stereo display that provides a separate image for each eye of the user U, a stereo device, and a camera for capturing images of the user U's surroundings, or an accelerometer and a gyroscope for tracking the posture of the user U's head to match the direction of the virtual camera with the position of the user U's eyes in the real world, thereby simulating the physical presence of the user U in the virtual environment, so that the user U can look around the artificial world, move in it, and interact with virtual features or objects. The display device 200 can provide different display modes, such as real mode, AR mode, VR mode, for the user U to switch through, for example, a physical button or remote control of the display device 200. In other embodiments, the display device 200 may be other types of display devices, such as a display screen or a multi-projection environment, to generate realistic images. In addition, other types of feedback such as tactile feedback may be provided by the robot device 100 or other devices such as a joystick.
[0042] Figure 3 yes Figure 21 is a schematic block diagram of a robot device 100. The robot device 100 may include a processing unit 110, a storage unit 120, and a control unit 130 that communicate via one or more communication buses or signal lines L. It should be noted that the robot device 100 is only an example of a robot device. The robot device 100 may have more or fewer components (e.g., units, sub-units, modules) than those shown above or below, may combine two or more components, or may have a different component configuration or arrangement. The processing unit 110 executes various instructions (or groups of instructions) stored in the storage unit 120, which may be in the form of software programs to perform various functions of the robot device 100 and process related data, which may include one or more processors (e.g., central processing unit). The storage unit 120 may include one or more memories (e.g., high-speed random access memory (RAM) and non-transitory memory), one or more memory controllers, and one or more non-transitory computer-readable storage media (e.g., solid-state memory (SSD) or hard disk). The control unit 130 may include various controllers (e.g., network interface controller, display controller, physical button controller) and peripheral device interfaces for coupling input and output peripheral devices of the robot device 100, such as external ports (e.g., USB), wireless communication circuits (e.g., RF communication circuits), audio circuits (e.g., speaker circuits), sensors (e.g., inertial measurement units (IMUs)), etc., to the processing unit 110 and the storage unit 120. In some embodiments, the storage unit 120 may include a limb rehabilitation module 121 for implementing upper limb rehabilitation functions related to the above-mentioned upper limb rehabilitation activities (e.g., mechanical / electronic functions for controlling the robot device 100 and enabling the user U to perform upper limb rehabilitation activities), which may be stored in one or more memories (and one or more non-transitory computer-readable storage media). The limb rehabilitation module 121 may be a software module (of the operating system of the robot device 100) having instructions for implementing the above-mentioned upper limb rehabilitation functions (e.g., instructions for starting the motor M of the robot device 100).
[0043] The robot device 100 may further include a communication subunit 131 and an actuation subunit 132. The communication subunit 131 and the actuation subunit 132 communicate with the control unit 110 via one or more communication buses or signal lines that are the same as or at least partially different from the one or more communication buses or signal lines L described above. The communication subunit 131 is coupled to a communication interface of the robot device 100, such as a network interface 1311 that enables the robot device 100 to communicate with the display device 200 and the cloud server 300 via a network, an I / O interface 1312 (e.g., a physical button), etc. The actuation subunit 132 is coupled to a component / device for realizing the movement of the robot device 100 by, for example, actuating a motor M of a joint of the robot device 100. Each motor M includes an encoder E for tracking the current position of the motor M. The communication subunit 131 may include a controller for the above-mentioned communication interface of the robot device 100, and the actuation subunit 132 may include a controller for the above-mentioned component / device for realizing the movement of the robot device 100. In some embodiments, the low-level firmware of the control unit 130 may continuously send the current readings of the encoder E and the force sensor S to the high-level control system (e.g., the limb rehabilitation module 121). In other embodiments, the communication subunit 131 and / or the actuation subunit 132 may be merely abstract components used to represent the logical relationships between the components of the robotic device 100.
[0044] The robot device 100 may further include a sensor subunit 133, which may include a set of sensors and associated controllers, such as a force sensor F for detecting force from the user U. The sensor subunit 133 communicates with the control unit 110 via one or more communication buses or signal lines that are the same as or at least partially different from the one or more communication buses or signal lines L described above. In some embodiments, Figure 3 The various components shown in can be implemented in hardware, software, or a combination of hardware and software. The processing unit 110, the storage unit 120, the control unit 130, the limb rehabilitation module 121, two or more of the other units / subunits / modules can be implemented on a single chip or circuit. In other embodiments, the sensor subunit 133 can also include a camera and an IMU (inertial measurement unit) (or an accelerometer and a gyroscope) to detect the condition of the user U to facilitate the above-mentioned upper limb rehabilitation function. The sensor subunit 133 can be just an abstract component to represent the logical relationship between the components of the robot device 100. In addition, at least a portion of them can be implemented on a separate chip or circuit.
[0045] Figure 4 is used Figure 3Schematic block diagram of an example of a robot device 100 performing limb rehabilitation. In some embodiments, an upper limb rehabilitation process is implemented in the robot device 100 with the assistance of the display device 200, such as by storing instructions corresponding to the upper limb rehabilitation process (such as instructions for controlling the motor M) as a limb rehabilitation module 121 in the storage unit 120, and executing the stored instructions through the processing unit 110, and then the robot device 100 can be controlled accordingly. The upper limb rehabilitation process can be executed in response to actuating the robot device 100 through, for example, a physical button or a remote control of the robot device 100 / display device 200. In other embodiments, the upper limb rehabilitation process can also be executed in response to a request from (an operating system of) other devices such as the robot device 100 or the display device 200.
[0046] According to the upper limb rehabilitation process, the processing unit 110 may obtain the external force F based on the (sensor) data received from the force sensor S. e ( Figure 3 410). Figure 5 In some embodiments of the present application, the external force F is obtained and decomposed e Therefore, in step S411, the display device 200 displays a plurality of available trajectories T a . Figure 6 is the selected rehabilitation trajectory T of some embodiments of the present application r Schematic diagram of screen C of FIG. Screen C is displayed by the display device 200 in response to, for example, the start of the upper limb rehabilitation process or a request of the user U. The training mode of the upper limb-including the left arm and the right arm can be displayed as a plurality of trajectories (i.e., available trajectories T a ). The track can be displayed as options in text / graphic form for the user U to select. Figure 6 As shown, the left half shows the available trajectories T that can be selected a The right half shows the selected rehabilitation trajectory T on the robot device 100 r .
[0047] In step S412, the user U selects one of the available trajectories T by, for example, using the physical button mentioned above or the remote controller of the robot device 100 / display device 200. a As a rehabilitation trajectory r In step S413, the display device 200 displays a plurality of rehabilitation modes M. r (Not shown in the figure) Rehabilitation mode M for assisting user U in limb rehabilitation rThe options may be displayed in text / graphic form through the display device 200 so that the user U can select the displayed rehabilitation mode M through, for example, a physical button or a remote controller of the robot device 100 or the display device 200. r As a rehabilitation mode M of the robot device 100 r . Rehabilitation Mode M r The rehabilitation mode M may include: a free mode, which means that the user U controls the robot device 100 without any help or assistance; an assist mode, which means that the robot device 100 provides help or assistance to the user U; and a resistance mode, which means that the robot device 100 applies resistance to the user U, so that the user U needs to increase strength to control the robot device 100. In step S414, the user U generates an input indicating the result of the aforementioned selection by, for example, a physical button of the robot device 100 / display device 200 or a remote controller to select the displayed rehabilitation mode M. r As a rehabilitation mode M of the robot device 100 r In step S415, the force sensor S is used to detect the external force F e In some embodiments, the force sensor S may be a dual-axis torque sensor that can simultaneously detect the torque in the x-axis direction and the y-axis direction acting on the hand grip 103. In other embodiments, the force sensor may be a torque meter or other device to measure the output torque of the hand grip 103.
[0048] According to the upper limb rehabilitation process, the processing unit 110 can also detect the external force F e Decompose / resolute into tangential force F t and radial force F r ( Figure 3 420). Figure 7 In some embodiments of the present application, the external force F is decomposed e In step S421, the detected external force F e ( Figure 7 The tangential force F t and radial force F r , where the tangential force F t It can be expressed as:
[0049] kv*ev;
[0050] Wherein, kv represents the current trajectory T of the hand grip 103 corresponding to the current position of the hand grip 103 c The tangential external force F at a position (not shown) e The coefficient of ev represents the current trajectory T of the hand-held component 103. c The tangential external force F at this positione Unit direction vector of radial force F r It can be expressed as the following formula:
[0051] kr*er;
[0052] Wherein, kr represents the radial external force F at the position of the current trajectory of the grip 103. e The coefficient er represents the radial external force F at the position of the current trajectory of the hand grip 103. e The detected external force F e Decomposed into tangential force F t and radial force F r It can be expressed as the following formula: (f x , f y )→kv*ev+kr*er; where f x and f y Represent the readings of force sensor S on the x-axis and y-axis respectively.
[0053] According to the upper limb rehabilitation process, the processing unit 110 can also calculate the current position of the hand grip 103 and the rehabilitation trajectory T of the hand grip 103. r The distance D( Figure 7 d in the figure) to scale the radial force ( Figure 3 430). Figure 8 4 is a flowchart of an example of providing customized force in some embodiments of the present application. In step S431, the position information of the x-axis motor M and the y-axis motor M can be obtained from the encoder E of each motor. In step S432, the current position of the hand grip 103 can be determined based on the position information of each motor obtained. In step S433, the current position of the hand grip 103 can be determined based on the current position of the hand grip 103 and the rehabilitation trajectory T of the hand grip 103. r The distance D between them is used to determine the radial force F. r The radial force can be scaled using the following formula:
[0054] adaptive_scale(kr,d);
[0055] Wherein, d represents the current trajectory T of the hand-held component 103. c The current position on the hand grip 103 and the rehabilitation trajectory T r The distance D between them, adaptive_scale() is used to scale the radial force F r The larger the distance d, the larger the radial force F r The smaller the scaling function.
[0056] According to the upper limb rehabilitation process, the processing unit 110 can also be based on the tangential force Ft and the scaled radial force F r The motor speed V is calculated by summing Figure 3 The motor speed V is the speed applied to the motor to generate the corresponding force through rotation. In step S441, the motor speed V can be based on the tangential force F t and the scaled radial force F r The sum of is calculated as follows:
[0057] v=h_motor(kv*ev+adaptive_scale(kr,d);
[0058] Wherein, v is the motor speed V, and h_motor() is the transfer function from force to motor speed. Since the end effector of the robot device 100 (i.e., the base plate 101 and the movable frame 102) includes an x-axis motor M and a y-axis motor M that generate forces in the x-axis direction and the y-axis direction, respectively, the calculated motor speed V may include the x-axis direction speed and the y-axis direction speed.
[0059] The processing unit 110 can also provide a speed instruction I based on the calculated motor speed V v ( Figure 3 Speed command I v The speed command I can be generated v In step S451, a speed instruction I may be provided based on the calculated motor speeds V of the x-axis motor M and the y-axis motor M. v In some embodiments, a speed instruction I of the x-axis motor M may be provided according to the x-axis direction speed. v , the speed command I of the y-axis motor M can be provided according to the speed in the y-axis direction v .
[0060] The processing unit 110 can also control the motor of the end effector according to the speed instruction I provided. v to rotate, thereby moving the end effector (ie, the base plate 101 and the movable frame 102) of the robot device 100 to provide a force corresponding to the detected external force F e Customization force F c ( Figure 3 In step S461, the rehabilitation mode M of the robot device 10 is determined. r If the rehabilitation mode M r If it is free mode, then directly return to step S415; if it is rehabilitation mode M r If the rehabilitation mode is M, then execute step S462; rIf the mode is resistance mode, then step S463 is executed. In step S462, according to the speed instruction I v To control the x-axis motor M and the y-axis motor M to rotate in the positive direction respectively, so as to provide the corresponding external force F e Customization force F c (i.e. "assistance"). Forward rotation is to provide the external force F e The force in the same direction is used as the custom force F c In step S463, according to the speed instruction I v To control the x-axis motor M and the y-axis motor M to rotate in opposite directions respectively, so as to provide the corresponding external force F e Customization force F c (i.e. "resistance"). The reverse rotation is to provide the external force F e The force in the opposite direction is the custom force F c Corresponding to the external force F e Customization force F c The x-axis motor M can be controlled according to the speed instruction I of the x-axis motor M. v Rotate and control the y-axis motor M according to the speed instruction I of the y-axis motor M v After executing the step of providing the customized force, return to step S415 to continue detecting the external force F e .
[0061] The robot device 100 can adjust the position of the user U's limbs according to the actual trajectory (i.e., the current trajectory T c ) and the expected rehabilitation trajectory (i.e., the selected rehabilitation trajectory T r ) to dynamically adjust the assistance or resistance. Compared with the existing limb rehabilitation devices, it uses a single sensor commonly used in the related art: force sensor S, so it can be simpler and more cost-effective to control the robot device 100 to assist the user U in upper limb rehabilitation activities.
[0062] Those skilled in the art will appreciate that all or part of the methods in the above-described embodiments can be implemented by using one or more computer programs to indicate relevant hardware. In addition, one or more programs can be stored in a non-transitory computer-readable storage medium. When one or more programs are executed, all or part of the corresponding methods in the above-described embodiments are executed. Any reference to storage, memory, database or other media may include non-transitory and / or temporary memory. Non-transitory memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, solid-state drive (SSD), etc. Volatile memory may include random access memory (RAM), external cache memory, etc.
[0063] The processing unit 110 (and the above-mentioned processor) may include a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gates, transistor logic devices, and discrete hardware components. The general-purpose processor may be a microprocessor, or any conventional processor. The storage unit 120 (and the above-mentioned memory) may include an internal storage unit such as a hard disk and an internal memory. The storage unit 120 may also include an external storage device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, and a flash memory card.
[0064] The exemplary units / modules and methods / steps described in the embodiments may be implemented by software, hardware, or a combination of software and hardware. Whether these functions are implemented by software or hardware depends on the specific application and design constraints of the technical solution. The above-mentioned carpet detection method and robot device 100 may be implemented in other ways. For example, the division of units / modules is only a logical functional division. In actual implementation, other division methods may be used, that is, multiple units / modules may be combined or integrated into another system, or certain features may be ignored or not executed. In addition, the above-mentioned mutual coupling / connection may be a direct coupling / connection or a communication connection, or an indirect coupling / connection or a communication connection through some interfaces / devices, or may be electrical, mechanical or other forms.
[0065] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not used to limit the technical solutions of the present invention. Although the present invention has been described in detail in conjunction with the above embodiments, the technical solutions in the above embodiments can still be modified, or some technical features can be replaced by equivalents, so that these modifications 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 protection of the present invention.
Claims
1. A method for controlling a robot device, for controlling the robot device to assist a user in limb rehabilitation, wherein the robot device has an end effector and a handle portion coupled to the end effector and used to move the end effector; The end effector includes one or more motors, and the handle includes a force sensor; the method includes: detecting an external force via the force sensor of the handle portion of the robotic device coupled to the end effector of the robotic device for moving the end effector; Decomposing the detected external force into tangential force and radial force; scaling the radial force according to a distance between a current position of the handle portion and a desired trajectory of the handle portion; calculating a motor speed of each of the one or more motors based on the sum of the tangential force and the scaled radial force; and A velocity command is provided based on the calculated motor velocity, wherein the velocity command is used to move the end effector of the robotic device by rotating the one or more motors of the end effector.
2. The method of claim 1, wherein the tangential force is expressed as follows: kv*ev; in, kv represents the coefficient of the external force in the tangential direction at a position of the current trajectory of the handle portion corresponding to the current position of the handle portion, and ev represents the unit direction vector of the external force in the tangential direction at the position of the current trajectory of the handle portion; and The radial force is expressed as follows: kr*er; Among them, kr represents the coefficient of the external force in the radial direction at the position of the current trajectory of the handle part, and er represents the unit direction vector of the external force in the radial direction at the position of the current trajectory of the handle part.
3. The method of claim 2, wherein the radial force is scaled using the following equation: adaptive_scale(kr,d); in, d represents the distance between the current position of the hand grip and the expected trajectory of the hand grip, and adaptive_scale() is a scaling function used to scale the radial force so that the larger the distance d is, the smaller the radial force is after scaling.
4. The method of claim 3, wherein the motor speed is calculated using the following formula: v=h_motor(kv*ev+adaptive_scale(kr,d); in, v is the motor speed and h_motor() is the transfer function from force to motor speed.
5. The method of claim 1, further comprising: The end effector of the robotic device is moved to provide a customized force corresponding to the detected external force by controlling the one or more motors of the end effector to rotate according to the provided speed command.
6. The method of claim 5, wherein the end effector comprises a first end effector portion and The invention is composed of a second end effector part slidably arranged on the first end effector part; the handle part is slidably arranged on the second end effector part and selectively slides along the x direction; the second end effector part selectively slides along the y direction perpendicular to the x direction; and the first end effector part includes a first motor for being rotated to move the second end effector part along the y direction, and the second end effector part includes a second motor for being rotated to move the handle part along the x direction; wherein, The step of controlling the one or more motors of the end effector to rotate according to the provided speed command, thereby moving the end effector of the robotic device to provide the customized force corresponding to the detected external force comprises: The customized force corresponding to the detected external force is provided by at least one of the following methods: controlling the second motor of the second end effector part to rotate according to the speed command provided to move the handle part along the x-direction; and controlling the first motor of the first end effector part to rotate according to the speed command provided to move the second end effector part along the y-direction.
7. The method of claim 5, wherein the robotic device is a limb rehabilitation device for assisting a user in limb rehabilitation by using assistive force as the customized force in an assist mode and using resistive force as the customized force in a resistive mode, wherein the step of controlling the one or more motors of the end effector to rotate according to the provided speed command so as to move the end effector of the robotic device to provide the customized force corresponding to the detected external force comprises: In response to the limb rehabilitation device being in the assist mode, controlling the one or more motors of the end effector to rotate in a positive direction according to the speed command provided, thereby moving the end effector of the robotic device to provide the assist force proportional to the detected external force; as well as In response to the limb rehabilitation device being in the resistance mode, the one or more motors of the end effector are controlled to rotate inversely according to the speed command provided, thereby moving the end effector of the robotic device to provide the resistance inversely proportional to the detected external force.
8. The method of claim 1, wherein each of the one or more motors comprises an encoder, and the current position of the handle portion is determined by the following steps: acquiring position information of at least one of the one or more motors from the encoder of the motor; and The current position of the handle portion is determined based on the acquired position information of at least one of the one or more motors.
9. The method of claim 1, further comprising: The desired trajectory of the handle is acquired based on input from an input device that is communicatively connected to the robot device.
10. A robotic device comprising: A first end effector portion including a first motor; a second end effector portion slidably disposed on the first end effector portion, wherein the second end effector portion includes a second motor and selectively slides along the y-direction; wherein the first motor of the first end effector portion is configured to be rotated to move the second end effector portion along the y-direction; a handle portion slidably disposed on the second end effector portion, wherein the handle portion includes a force sensor and selectively slides along an x-direction perpendicular to the y-direction; wherein the second motor of the second end effector portion is used to be rotated to move the handle portion along the x-direction; one or more processors; and One or more memories storing one or more computer programs, the one or more computer programs being executed by the one or more processors, wherein the one or more computer programs include a plurality of instructions for: Detecting external force through the force sensor of the handle; Decomposing the detected external force into tangential force and radial force; scaling the radial force according to a distance between a current position of the handle portion and a desired trajectory of the handle portion; Calculating a motor speed of each of the first motor and the second motor based on the sum of the tangential force and the scaled radial force; providing a speed command based on the calculated motor speeds of each of the first motor and the second motor; as well as The customized force corresponding to the detected external force is provided by at least one of the following methods: controlling the second motor of the second end effector part to rotate according to the speed command provided to move the handle part along the x-direction; and controlling the first motor of the first end effector part to rotate according to the speed command provided to move the second end effector part along the y-direction.
