Control method and device of electric moxibustion robot and electric moxibustion robot
By evenly arranging laser distance sensors at the end of the robotic arm of the moxibustion robot to calculate and adjust the pose, the problem of large calculations and low accuracy in the existing technology is solved, and rapid response and high-precision pose adjustment are achieved.
Patent Information
- Application Number
- CN202410570428.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-03
AI Technical Summary
Existing moxibustion robots require a large amount of calculations in posture positioning, are greatly affected by light, have low accuracy, and have a slow response to the switch sensor installed at the end.
Multiple laser distance sensors are used to evenly arrange the circumference of the end of the robotic arm. The emitted light spots are concentrated in a preset area. The actual value of the pose is calculated and the pose is adjusted through a closed-loop control method, including three values of the vertical degree of freedom.
It improves calculation accuracy and response speed, reduces the impact of the external environment, and achieves rapid response to changes in human body posture and precise posture adjustment.
Smart Images

Figure CN118576483A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a control method and device for an electric moxibustion robot and an electric moxibustion robot. Background Art
[0002] Currently, moxibustion therapy mainly relies on the experience and techniques of the moxibustion physician. The therapeutic effects may vary, and moxibustion requires smoke exhaust, which is not friendly to the physician's working environment.
[0003] With the development of intelligent technology, there are more and more moxibustion robots that can replace medical staff for moxibustion. Existing moxibustion robots mostly use depth cameras for posture positioning during operation, which requires a lot of calculations and is greatly affected by light and unstable. Some moxibustion robots will be equipped with switch sensors at the end, but the response is slow and the accuracy is not high. Summary of the invention
[0004] To solve the above problems, an embodiment of the present invention provides a control method for an electric moxibustion robot, wherein the mechanical arm of the electric moxibustion robot includes an electric moxibustion device and a laser distance sensor arranged at the end, and the method includes: obtaining distance data from a human body collected by multiple laser distance sensors; the multiple laser distance sensors are arranged at equal angles on a circle with a preset point as the center at the end of the mechanical arm, and the light spots emitted by the multiple laser distance sensors are gathered within a preset area; the actual value of the posture of the end is determined according to the distance data; the posture includes values of three vertical degrees of freedom; the error between the actual value of the posture and the set value of the posture of the end is calculated, and the end is controlled to change the posture according to the error.
[0005] Optionally, the multiple laser distance sensors are arranged to be inclined toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane on which it is located are equal.
[0006] Optionally, the three vertical degrees of freedom include vertical height, horizontal lateral rotation angle, and horizontal longitudinal rotation angle.
[0007] Optionally, determining the actual value of the posture of the end according to the distance data includes: calculating the distance between the plane where the laser distance sensor is located and the human body according to the distance data; establishing a coordinate system on the plane where the multiple sensors are located, mapping the points projected onto the human body by each laser distance sensor to a vertical point on the plane where the multiple sensors are located, and calculating the distance from each vertical point to the center of the circle; calculating the coordinates of each vertical point in the sensor plane coordinate system according to the distance from each vertical point to the center of the circle; and calculating the values of the three vertical degrees of freedom according to the coordinates of each vertical point.
[0008] Optionally, there are three laser distance sensors, and the angle between two adjacent laser distance sensors is 120°.
[0009] Optionally, the angle between each of the laser distance sensors and a vertical line of the plane in which they are located is 12°.
[0010] Optionally, controlling the terminal to change its posture according to the error includes: processing the error based on a closed-loop control method to obtain a control output result, and controlling the terminal to change its posture according to the control output result.
[0011] An embodiment of the present invention provides a control device for an electric moxibustion robot, wherein a mechanical arm of the electric moxibustion robot includes an electric moxibustion device and a laser distance sensor arranged at the end, and the device includes: an acquisition module, used to obtain distance data from a human body collected by multiple laser distance sensors; the multiple laser distance sensors are arranged at equal angles on a circle with a preset point as the center at the end of the mechanical arm, and the light spots emitted by the multiple laser distance sensors are gathered within a preset area; a calculation module, used to determine an actual value of the posture of the end according to the distance data; the posture includes values of three vertical degrees of freedom; a control module, used to calculate the error between the actual value of the posture and the set value of the posture of the end, and control the end to change the posture according to the error.
[0012] Optionally, the multiple laser distance sensors are arranged to be inclined toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane on which it is located are equal.
[0013] An embodiment of the present invention provides an electric moxibustion robot, comprising a robotic arm and a controller, wherein the controller is used to execute the control method of the electric moxibustion robot.
[0014] The control method, device and massage robot of the electric moxibustion robot provided in the embodiments of the present invention calculate the posture of the robotic arm through multiple laser distance sensors. The above-mentioned multiple laser distance sensors are evenly arranged on the circumference of the end of the robotic arm and the output light spots are concentrated, which can reduce the area of the projection area and improve the calculation accuracy. It can quickly respond to changes in human body posture and accurately change the posture of the robotic arm. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0016] Figure 1A schematic diagram of an electric moxibustion robot provided in an embodiment of the present invention;
[0017] Figure 2 A schematic diagram of the arrangement of laser distance sensors of an electric moxibustion robot provided in an embodiment of the present invention;
[0018] Figure 3 A schematic diagram of the installation method of the laser distance sensor of the electric moxibustion robot provided in an embodiment of the present invention;
[0019] Figure 4 A schematic flow chart of a control method of an electric moxibustion robot provided by an embodiment of the present invention;
[0020] Figure 5 An overall control block diagram of a control method for an electric moxibustion robot provided by an embodiment of the present invention;
[0021] Figure 6 Schematic diagram of the structure of a control device of an electric moxibustion robot in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0023] The electric moxibustion robot in the embodiment of the present invention installs the electric moxibustion device at the end of the mechanical arm, and does not need to exhaust smoke. The laser distance sensor is used to monitor the vertical three degrees of freedom, which improves the accuracy and response speed and reduces the impact of the external environment on it.
[0024] Figure 1 The schematic diagram of the electric moxibustion robot provided by the embodiment of the present invention is shown, and the electric moxibustion robot includes a trolley 10, a mechanical arm 20, an electric moxibustion terminal 30 and a laser distance sensor. The electric moxibustion terminal can be an electric moxibustion device, which performs moxibustion by electric heating instead of open flame heating, and does not require smoke exhaust.
[0025] Figure 2 The schematic diagram of the arrangement of the laser distance sensor of the electric moxibustion robot according to the embodiment of the present invention is shown. Figure 2 In the following, three laser distance sensors are used as an example. The three laser distance sensors are arranged at the end and installed at the edge of the plane at equal angles. Figure 2 The circled one is the laser distance sensor.
[0026] Figure 3 The figure shows the installation method of the laser distance sensor of the electric moxibustion robot according to the embodiment of the present invention. Figure 3The installation method of the laser distance sensor is shown in the figure as an example. It can be seen that it is installed at an angle so that the points emitted by the laser are concentrated in a smaller area, thereby reducing the error caused by the undulations of the human body surface and improving the calculation accuracy.
[0027] Figure 4 The following is a schematic flow chart of a control method of an electric moxibustion robot in an embodiment of the present invention. The method is applied to the above-mentioned electric moxibustion robot. The method includes:
[0028] S402, obtaining distance data from a human body collected by multiple laser distance sensors.
[0029] Among them, multiple laser distance sensors are arranged at equal angles on the circumference of a circle with a preset point as the center at the end of the robotic arm, and the light spots emitted by the multiple laser distance sensors are gathered within a preset area. For example, multiple laser distance sensors are evenly arranged on the circumference of a circle with the center of the electric moxibustion device as the center and a preset distance as the radius. In order to improve the calculation accuracy, the emission directions of the above-mentioned multiple laser distance sensors can be tilted toward the above-mentioned center of the circle, so that each emitted light spot is gathered at a certain point or a certain range at a certain distance, thereby reducing the error.
[0030] Exemplarily, the plurality of laser distance sensors are arranged to be inclined toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane on which the sensor is located are equal.
[0031] by Figure 2 Taking the arrangement of the laser distance sensors shown as an example, where there are three laser distance sensors, the angle between two adjacent laser distance sensors can be set to 120°.
[0032] by Figure 3 Taking the installation method of the laser distance sensor shown in the figure as an example, the angle between each laser distance sensor and the vertical line of the plane where it is located can be set to 12°.
[0033] S404: Determine the actual value of the position and posture of the end of the above-mentioned robot arm according to the distance data.
[0034] The posture may include the values of three vertical degrees of freedom, which may be the vertical height, the horizontal lateral rotation angle, and the horizontal longitudinal rotation angle. Based on the above three vertical degrees of freedom, the values of the three vertical degrees of freedom of the terminal may be calculated as follows:
[0035] First, the distance between the plane where the laser distance sensor is located and the human body is calculated based on the distance data;
[0036] Secondly, a coordinate system is established on the plane where multiple sensors are located. The points projected by each laser distance sensor onto the human body are mapped to vertical points on the plane where multiple sensors are located, and the distance from each vertical point to the center of the circle is calculated.
[0037] Then, according to the distance from each vertical point to the center of the circle, the coordinates of each vertical point in the sensor plane coordinate system are calculated;
[0038] Finally, the values of the three vertical degrees of freedom are calculated based on the coordinates of the above vertical points.
[0039] S406, calculating the error between the actual value of the posture and the set value of the posture of the end of the above-mentioned robot arm, and controlling the end of the above-mentioned robot arm to change the posture according to the error.
[0040] Exemplarily, the error is processed based on a closed-loop control method to obtain a control output result, and the terminal is controlled to change its posture according to the control output result. The closed-loop control method may be a Proportional Integral Differential (PID) method.
[0041] The control method of the electric moxibustion robot provided in the embodiment of the present invention calculates the posture of the robotic arm through multiple laser distance sensors. The above-mentioned multiple laser distance sensors are evenly arranged on the circumference of the end of the robotic arm and the output light spots are concentrated, which can reduce the area of the projection area and improve the calculation accuracy. It can quickly respond to changes in human body posture and accurately change the posture of the robotic arm.
[0042] Figure 5 The overall control block diagram of the control method of the electric moxibustion robot provided by the embodiment of the present invention is shown. Among them, r is the posture setting value, err is the current error, PID is the pid controller, and u is the controller output. Qu is the rotation amount of each axis of the mechanical arm after inverse kinematics calculation, and the mechanical arm moves with the electric moxibustion end through the forward kinematics. J is the raw data of the laser sensor, and y is the processed data (i.e. Z, Rx, Ry).
[0043] In the embodiment of the present invention, the three vertical degrees of freedom (Z, Rx, Ry) of the electric moxibustion terminal can be controlled according to the data of the laser distance sensor and its installation and distribution method.
[0044] Exemplarily, three laser sensors are evenly arranged on a circle with a radius of 105 mm, the angle between two adjacent sensors is 120°, and the inclination angle of the sensor is 12° toward the inside of the circle.
[0045] In order to control the three vertical degrees of freedom of electric moxibustion, it is first necessary to calculate the distance between the sensor plane and the human body based on the data of the laser distance sensor. J1, J2, and J3 represent the collected data of the three laser distance sensors, respectively. Indicates the distance between the plane and the human body.
[0046]
[0047]
[0048]
[0049] Among them, 0.9781 is the actual value of Cos12°.
[0050] A coordinate system is established on the plane where the sensor is located. The directions of the X, Y, and Z axes are defined in the same way as the robot TCP (Tool Center Point). The point projected by the laser onto the human body can be mapped to a vertical point on the XY plane of the sensor plane coordinate system. According to the geometric relationship, the distance between each vertical point and the center of the circle where the sensor is located is:
[0051] P_C1=0.105-J1*0.2079
[0052] P_C2=0.105-J2*0.2079
[0053] P_C3=0.105-J3*0.2079
[0054] Among them, 0.105 is the radius of the circle, and 0.9781 is the actual value of Cos78°.
[0055] According to the distance from each vertical point to the center of the circle, its coordinates in the sensor plane coordinate system can be calculated as pose_P1(P_C1*0.5,-P_C1*0.866,0), pose_P2(P_C2*0.5,P_C2*0.866,0), and pose_P3(P_C3*(-1),0,0). Among them, 0.5 is the value of Sin30 and 0.866 is the actual value of Sin60.
[0056] When the rotation angle θ is very small, sin(θ)=θ can be approximated. Therefore, the calculation method for the actual values of the three vertical degrees of freedom Z, Rx, and Ry can be obtained as follows:
[0057]
[0058]
[0059]
[0060] Before running, there will be set values for these three degrees of freedom. According to the set values, the error of the current three degrees of freedom can be calculated (set value - actual value); then the robot's movement amount in these three degrees of freedom is calculated through the designed PID controller. The calculated movement amount is input to the robot to make it move. Since the calculation of the error is related to the set value, the user can adjust the moxibustion distance by modifying the set value in real time.
[0061] The embodiment of the present invention can quickly respond to changes in human body posture and change the posture of the robotic arm; the laser distance sensor is tilted to reduce the projection area and improve accuracy. Based on the collected distance data, the actual posture calculation and the corresponding robot posture control can be performed, which improves the accuracy and response speed and reduces the impact of the external environment on it.
[0062] Figure 6 : is a schematic diagram of the structure of a control device of an electric moxibustion robot in an embodiment of the present invention. The mechanical arm of the electric moxibustion robot includes an electric moxibustion device and a laser distance sensor arranged at the end. The device includes:
[0063] The acquisition module 601 is used to acquire the distance data from the human body collected by multiple laser distance sensors; the multiple laser distance sensors are arranged at equal angles on the circumference of a circle with a preset point as the center at the end of the robotic arm, and the light spots emitted by the multiple laser distance sensors are gathered within a preset area;
[0064] A calculation module 602 is used to determine the actual value of the position and posture of the terminal according to the distance data; the position and posture includes the values of three vertical degrees of freedom;
[0065] The control module 603 is used to calculate the error between the actual value of the posture and the set value of the posture of the terminal, and control the terminal to change the posture according to the error.
[0066] The control device of the electric moxibustion robot provided in an embodiment of the present invention calculates the posture of the robotic arm through multiple laser distance sensors. The above-mentioned multiple laser distance sensors are evenly arranged on the circumference of the end of the robotic arm and the output light spots are concentrated, which can reduce the area of the projection area and improve the calculation accuracy. It can quickly respond to changes in human body posture and accurately change the posture of the robotic arm.
[0067] Optionally, the multiple laser distance sensors are arranged to be inclined toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane on which it is located are equal.
[0068] Optionally, the three vertical degrees of freedom include vertical height, horizontal lateral rotation angle, and horizontal longitudinal rotation angle.
[0069] Optionally, the calculation module is specifically used to: calculate the distance between the plane where the laser distance sensor is located and the human body according to the distance data; establish a coordinate system on the plane where the multiple sensors are located, map the points projected onto the human body by each laser distance sensor to a vertical point on the plane where the multiple sensors are located, and calculate the distance between each vertical point and the center of the circle; calculate the coordinates of each vertical point in the sensor plane coordinate system according to the distance from each vertical point to the center of the circle; and calculate the values of the three vertical degrees of freedom according to the coordinates of each vertical point.
[0070] Optionally, there are three laser distance sensors, and the angle between two adjacent laser distance sensors is 120°.
[0071] Optionally, the angle between each of the laser distance sensors and a vertical line of the plane in which they are located is 12°.
[0072] Optionally, the control module is specifically used to: process the error based on a closed-loop control method to obtain a control output result, and control the terminal to change its posture according to the control output result.
[0073] An embodiment of the present invention provides an electric moxibustion robot, comprising a robotic arm and a controller, wherein the controller is used to execute the control method of the electric moxibustion robot.
[0074] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned production measurement method based on image segmentation is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0075] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the control device through a computer, and the program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments, wherein the storage medium may be a memory, a disk, an optical disk, etc.
[0076] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0077] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0078] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method for an electric moxibustion robot, It is characterized in that The mechanical arm of the electric moxibustion robot includes an electric moxibustion device and a laser distance sensor arranged at the end, and the method includes: Acquire distance data from a human body collected by a plurality of laser distance sensors; the plurality of laser distance sensors are arranged at equal angles on a circle with a preset point as the center at the end of the robotic arm, and the light spots emitted by the plurality of laser distance sensors are gathered within a preset area; Determine the actual value of the position and posture of the terminal according to the distance data; the position and posture includes values of three vertical degrees of freedom; The error between the actual value of the posture and the set value of the posture of the terminal is calculated, and the terminal is controlled to change the posture according to the error.
2. The method according to claim 1, It is characterized in that The multiple laser distance sensors are arranged obliquely toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane where the sensor is located are equal.
3. The method according to claim 1, It is characterized in that The three vertical degrees of freedom include vertical height, horizontal lateral rotation angle, and horizontal longitudinal rotation angle.
4. The method according to claim 3, It is characterized in that The determining the actual value of the position and posture of the terminal according to the distance data comprises: Calculate the distance between the plane where the laser distance sensor is located and the human body according to the distance data; A coordinate system is established on the plane where the multiple sensors are located, and the points projected onto the human body by each of the laser distance sensors are mapped to vertical points on the plane where the multiple sensors are located, and the distance from each vertical point to the center of the circle is calculated; Calculate the coordinates of each vertical point in the sensor plane coordinate system according to the distance from each vertical point to the center of the circle; The values of the three vertical degrees of freedom are calculated according to the coordinates of each of the vertical points.
5. The method according to claim 1, It is characterized in that There are three laser distance sensors, and the angle between two adjacent laser distance sensors is 120°.
6. The method according to claim 2, It is characterized in that The angle between each laser distance sensor and the vertical line of the plane on which it is located is 12°.
7. The method according to claim 1, It is characterized in that The step of controlling the end to change the posture according to the error comprises: The error is processed based on a closed-loop control method to obtain a control output result, and the terminal is controlled to change its posture according to the control output result.
8. A control device for an electric moxibustion robot, It is characterized in that The mechanical arm of the electric moxibustion robot includes an electric moxibustion device and a laser distance sensor arranged at the end, and the device includes: A collection module, used to obtain distance data from a human body collected by a plurality of laser distance sensors; the plurality of laser distance sensors are arranged at equal angles on a circle with a preset point as the center at the end of the robotic arm, and the light spots emitted by the plurality of laser distance sensors are gathered within a preset area; A calculation module, used to determine the actual value of the posture of the terminal according to the distance data; the posture includes values of three vertical degrees of freedom; A control module is used to calculate the error between the actual value of the posture and the set value of the posture of the terminal, and control the terminal to change the posture according to the error.
9. The device according to claim 8, It is characterized in that The multiple laser distance sensors are arranged obliquely toward the center of the circle, and the angles between each laser distance sensor and a vertical line of the plane where the sensor is located are equal.
10. An electric moxibustion robot, It is characterized in that It comprises a robotic arm and a controller, and the controller is used to execute the control method of the electric moxibustion robot as described in any one of claims 1-7.
