Control method and apparatus for robotic arm, and device and storage medium
By constructing a dynamic system and mapping relationship to control the movement of the robotic arm, the problem of difficulty in balancing objects at non-end positions of the robotic arm is solved, and the stability of the object and operational flexibility are achieved.
Patent Information
- Application Number
- PCT/CN2023/130283
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2023-11-07
- Publication Date
- 2024-10-03
AI Technical Summary
It is difficult for existing robotic arms to maintain the balance of movable objects at non-end positions, resulting in the problem of objects falling.
By constructing a dynamics system, the attitude information of the robotic arm is obtained, and based on the mapping relationship between the attitude information and the control information, the control information is determined and the movement of the robotic arm is controlled to achieve the balance of the object.
It is possible to maintain the balance of movable objects at any position except the end of the robotic arm, avoid falling, and improve the operational stability and flexibility of the robotic arm.
Smart Images

Figure CN2023130283_03102024_PF_FP_ABST
Abstract
Description
Control method, device, equipment and storage medium of robotic arm
[0001] This application claims priority to Chinese patent application No. 202310365117.9 filed on March 31, 2023, entitled “Control method, device, equipment and storage medium for a robotic arm”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of robotics, and in particular to a control method, device, equipment and storage medium for a robotic arm. Background Art
[0003] With the development of robotics technology and the expansion of its application areas, robots have gradually become irreplaceable tools in production, service and other fields. The robotic arm is a common robot actuator that plays an important role in production and life.
[0004] In related technologies, the end of a robotic arm is often used to perform an operation. Alternatively, an end effector is installed at the end of the robotic arm to perform the corresponding operation, such as a robotic finger installed at the end of the robotic arm to control the movement of the robotic arm and the robotic finger to complete the operation.
[0005] Summary of the Invention
[0006] The present invention provides a method, device, apparatus, and storage medium for controlling a robotic arm, which can ensure that a movable object remains balanced and does not fall at any position on the robotic arm except at the end. The technical solution is as follows:
[0007] According to one aspect of the present application, a method for controlling a robotic arm is provided, wherein a movable object is placed at any position on the robotic arm except the end thereof, and the method is executed by a controller of the robotic arm, the method comprising:
[0008] Acquiring a dynamic system and obtaining posture information associated with the robotic arm from the dynamic system, wherein the dynamic system is constructed based on at least the robotic arm;
[0009] Determining control information based on a mapping relationship between the posture information and the control information of the robotic arm;
[0010] The control information is used to control the movement of the robot arm so that the movable object reaches a balanced state on the robot arm.
[0011] According to one aspect of the present application, a control device for a robotic arm is provided, the device comprising:
[0012] An acquisition module is used to acquire a dynamic system and obtain posture information associated with the robotic arm from the dynamic system, wherein the dynamic system is constructed at least based on the robotic arm; a determination module is used to determine control information based on a mapping relationship between the posture information and control information of the robotic arm; and a control module is used to use the control information to control the movement of the robotic arm so that the movable object reaches a balanced state on the robotic arm.
[0013] According to one aspect of the present application, there is provided a robotic arm comprising a memory and a controller;
[0014] At least one program code is stored in the memory, and the program code is loaded and executed by the controller to implement the control method of the robotic arm as described above.
[0015] According to one aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to be executed by a processor to implement the control method of the robotic arm as described above.
[0016] According to one aspect of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions, and is used to implement the control method of the robotic arm as described above when an electronic device equipped with the chip is running.
[0017] According to one aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of the robotic arm as described above.
[0018] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:
[0019] A novel method for using a robotic arm is provided, capable of maintaining balance on any position of the robotic arm except at its distal end, preventing a movable object from falling. For example, a bottle can be prevented from sliding off the robotic arm by utilizing the robotic arm's forearm housing. The control information of the robotic arm can be determined based on a mapping relationship between posture information of a dynamic system constructed at least according to the robotic arm and control information of the robotic arm, thereby enabling control of the robotic arm. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0021] FIG2 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0022] FIG3 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0023] FIG4 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0024] FIG5 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0025] FIG6 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0026] FIG7 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0027] FIG8 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0028] FIG9 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0029] FIG10 is a schematic diagram of a two-dimensional plane of a robotic arm provided by an exemplary embodiment of the present application;
[0030] FIG11 is a schematic diagram of a two-dimensional plane of a robotic arm provided by an exemplary embodiment of the present application;
[0031] FIG12 is a schematic diagram of a three-dimensional space of a robotic arm provided by an exemplary embodiment of the present application;
[0032] FIG13 is a schematic diagram of a three-dimensional space of a robotic arm provided by an exemplary embodiment of the present application;
[0033] FIG14 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0034] FIG15 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0035] FIG16 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0036] FIG17 is a schematic diagram of an overall control architecture of a robotic arm provided by an exemplary embodiment of the present application;
[0037] FIG18 is a schematic diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application;
[0038] FIG19 is a structural block diagram of a robotic arm provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0039] A robotic arm is a common robotic actuator. With the widespread adoption of artificial intelligence, robotic arms are playing a vital role in production and life, becoming essential equipment. When using a robotic arm, operations are typically performed using the end effector of the arm. Alternatively, an end effector, such as a robotic finger, is installed at the end of the arm to control the movement of the arm and finger.
[0040] In the related art, the use of rigid connectors and / or housings of robotic arms to complete operational tasks is not considered. The main reasons are: first, the appearance of robotic arms is generally curved and does not have a large flat surface; second, without a gripping mechanism such as a mechanical finger, the contact between the robotic arm's appearance and external objects will not form a closed form and force, which will make the control of the robotic arm more difficult. Figure 1 shows a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application.
[0041] In some embodiments, the robotic arm has seven degrees of freedom. The elbow and wrist control motors are located in the hollow space of the third shoulder joint. Alternatively, the elbow and wrist ropes are driven by a belt driven by the shoulder motor, which transmits a transmission to a pulley. The pulley then controls the elbow and wrist movements via the belt drive rope.
[0042] Schematically, the robotic arm includes a first mechanical joint 10, a second mechanical joint 20, and a drive assembly 30. The first mechanical joint 10 includes a first fixed member 101 and a first movable member 102 that are rotatably connected; the second mechanical joint 20 includes a second fixed member 201 and a second movable member 202 that are rotatably connected; and the second fixed member 201 is connected to the first movable member 102.
[0043] The drive assembly 30 includes at least two drive sources 301 and at least two drive ropes 302. Each of the at least two drive sources 301 is connected to the first fixed member 101, the first movable member 102, and the second movable member 202 via at least one drive rope 302. The at least two drive sources 301 have a first operating mode and a second operating mode.
[0044] In the first working mode, at least two driving sources 301 can drive the second movable member 202 to rotate relative to the second fixed member 201, and fix the position of the first movable member 102 relative to the first fixed member 101; in the second working mode, at least two driving sources 301 can drive the second movable member 202, the second fixed member 201 and the first movable member 102 to rotate relative to the first fixed member 101, and fix the position of the second movable member 202 relative to the second fixed member 201.
[0045] The robot arm of the present application includes a first mechanical joint 10, a second mechanical joint 20 and a drive assembly 30, the drive assembly 30 includes at least two drive sources 301 and at least two drive ropes 302, each of the at least two drive sources 301 is connected to the first movable part 102 of the first mechanical joint 10, the second movable part 202 of the second mechanical joint 20, and the first fixed part 101 of the first mechanical joint 10 through at least one drive rope 302, and the at least two drive sources 301 can drive the second movable part 202 to move relative to the first movable part 102 in the first working mode. The second fixed part 201 rotates, and the position of the first movable part 102 relative to the first fixed part 101 is fixed; in the second working mode, the second movable part 202, the second fixed part 201 and the first movable part 102 can be driven to rotate relative to the first fixed part 101, and the position of the second movable part 202 relative to the second fixed part 201 is fixed, thereby realizing the coupled drive of at least two driving sources 301 to multiple joints, improving the utilization rate of the driving source 301, reducing the structural complexity of the mechanical joint, increasing the rotational inertia of the mechanical joint, and enhancing the motion performance of the mechanical joint.
[0046] In addition, in this embodiment, when the second mechanical joint 20 moves independently (that is, the second movable part 202 rotates relative to the second fixed part 201, but the position of the first movable part 102 relative to the first fixed part 101 is fixed), and when the first mechanical joint 10 drives the second mechanical joint 20 to move in coupling (that is, the second movable part 202, the second fixed part 201 and the first movable part 102 rotate relative to the first fixed part 101, and the position of the second movable part 202 relative to the second fixed part 201 is fixed), it is driven by at least two driving sources 301 at the same time. That is, no matter which degree of freedom corresponds to the joint movement, it is driven by the power of at least two driving sources 301. Compared with the related art, the solution in which a single degree of freedom is driven by a single driving source 301 can realize the coupled drive of a single movable part by at least two driving sources 301, and realize at least twice the traction drive, which is beneficial to improve the working performance of the movable part such as the torque and rotation speed.
[0047] In some possible implementations, the at least two drive sources 301 include a motor and a driving sheave, which are connected via a transmission mechanism. The motor drives the driving sheave through the transmission mechanism to rotate. A drive rope 302 is wound around the driving sheave. When the driving sheave rotates, the drive rope 302 is tightened around it, thereby generating a traction force on at least one of the first fixed member 101, the first movable member 102, and the second movable member 202 through the drive rope 302. In some possible implementations, the transmission mechanism includes, but is not limited to, a belt drive, a gear drive, a worm gear drive, and the like.
[0048] Exemplarily, the transmission mechanism is a belt drive, for example, including a driving pulley, a transmission belt and a passive pulley, wherein the driving pulley is connected to the output shaft of the motor, the passive pulley is connected to the driving rope pulley, and the transmission belt is connected between the driving pulley and the passive pulley.
[0049] In another exemplary embodiment, the transmission mechanism is a belt transmission, for example, further comprising a tensioning mechanism, the tensioning mechanism being close to the transmission belt, and the tensioning mechanism being capable of adjusting the tension of the transmission belt.
[0050] In some possible implementations, the first operating mode and the second operating mode can be, for example, different operating modes formed based on whether the at least two drive sources 301 have the same or different rotational directions; different operating modes formed based on whether the at least two drive sources 301 have the same or different rotational speeds; or different operating modes formed based on whether the at least two drive sources 301 have the same or different rotational directions and rotational speeds. In some embodiments, in the first operating mode, the at least two drive sources 301 rotate in the same direction, and in the second operating mode, the at least two drive sources 301 rotate in opposite directions.
[0051] Thus, the robotic arm of this embodiment can control the independent movement of the second mechanical joint 20 and the coupled movement of the second mechanical joint 20 driven by the first mechanical joint 10 by controlling the rotation direction of the at least two drive sources 301. This has a simple structure and high coupling control efficiency. In some embodiments, in a first operating mode, the at least two drive sources 301 rotate in opposite directions, and in a second operating mode, the at least two drive sources 301 rotate in the same direction. In addition, illustratively, in the first operating mode and the second operating mode, the rotation speed and output torque of the at least two drive sources 301 are the same.
[0052] As shown in FIG1 , in some embodiments, at least two drive sources 301 are located on a side of the first fixed member 101 facing away from the first movable member 102, and at least two drive ropes 302 pass through the first fixed member 101 to connect to the first movable member 102, and pass through the second fixed member 201 to connect to the second movable member 202. Thus, in the robotic arm of this embodiment, at least two drive sources 301 are disposed on a side of the first fixed member 101 facing away from the first movable member 102, and the drive ropes 302 pass through the first fixed member 101 to connect to the first movable member 102, and pass through the second fixed member 201 to connect to the second movable member 202. The mass of the at least two drive sources 301 is concentrated on the side where the first fixed member 101 is located, while the mass on the side where the first movable member 102, the second fixed member 201, and the second movable member 202 are located is relatively small, which is beneficial to increasing the moment of inertia of the structure on that side and improving its operating performance.
[0053] As shown in Figure 2, in some embodiments, the first mechanical joint 10 is a mechanical shoulder joint, and the second mechanical joint 20 is a mechanical elbow joint; the first fixed part 101 and the first movable part 102 are rotationally connected along the first axis 001; the second fixed part 201 and the second movable part 202 are rotationally connected along the second axis 002.
[0054] In the first working mode, at least two driving sources 301 can drive the second movable part 202 to rotate around the second axis 002 relative to the second fixed part 201, and fix the position of the first movable part 102 relative to the first fixed part 101; in the second working mode, at least two driving sources 301 can drive the second mechanical joint 20 and the first movable part 102 to rotate around the first axis 001 relative to the first fixed part 101, and fix the position of the second movable part 202 relative to the second fixed part 201.
[0055] In other embodiments, the first mechanical joint 10 is a mechanical shoulder joint, and the second mechanical joint 20 is a mechanical elbow joint. In the first working mode, at least two driving sources 301 can drive the second movable part 202 of the mechanical elbow joint to rotate around the second axis 002 relative to the second fixed part 201 of the mechanical elbow joint, and the first movable part 102 of the mechanical shoulder joint is fixed relative to the first fixed part 101 of the mechanical shoulder joint, thereby realizing independent movement of the mechanical elbow joint.
[0056] In the second working mode, at least two driving sources 301 can drive the first movable part 102 of the mechanical shoulder joint to drive the entire mechanical elbow joint (including the second fixed part 201 and the second movable part 202) to rotate around the first axis 001 relative to the first fixed part 101 of the mechanical shoulder joint, but the position of the second movable part 202 of the mechanical elbow joint relative to the second fixed part 201 of the mechanical elbow joint is fixed, thereby realizing the coupled movement of the mechanical elbow joint and the mechanical shoulder joint.
[0057] For example, the robotic arm can utilize a set of drive sources 301. The controller can control the set of drive sources 301 to operate in different operating modes, thereby separately driving the mechanical elbow joint and the mechanical shoulder joint. The degrees of freedom of the mechanical elbow joint and the mechanical shoulder joint can each be driven by at least two drive sources 301, achieving at least twice the traction force, which is beneficial for improving the mechanical elbow joint and mechanical shoulder joint's operating performance, such as torque and rotational speed.
[0058] In some possible implementations, the robotic arm further includes a wrist joint, a shoulder joint connected to an elbow joint, and a wrist joint connected to an elbow joint, forming a complete robotic arm. In some possible implementations, at least two drive sources 301 are located within the second movable member 202 and are connected to the second movable member 202 so as to move with the second movable member 202.
[0059] As shown in FIG2 , in some embodiments, the first axis 001 and the second axis 002 intersect perpendicularly. Thus, the first mechanical joint 10 (e.g., a mechanical shoulder joint) can drive the second mechanical joint 20 (e.g., a mechanical elbow joint) to rotate, simulating the spin of the forearm in a human arm. The second mechanical joint 20 can rotate within a wide range (e.g., 0-360°) in space, enriching the robot's motion scenarios and increasing its applicability. As shown in FIG2 , in some embodiments, the first mechanical joint 10 also includes a third fixed member 103; the first fixed member 101 is rotationally connected to the third fixed member 103. Thus, the first mechanical joint 10 includes the third fixed member 103, the first fixed member 101, and the first movable member 102, which are rotationally connected in sequence. In some possible implementations, the first fixed member 101 is driven to rotate relative to the second fixed member 201 by a shoulder drive assembly, simulating the lifting motion of the shoulder joint in a human arm. The second fixed member 201 is fixedly connected to the robot's torso or other supporting structure, providing fixed support for the entire robot arm.
[0060] As shown in FIG2 , in some embodiments, the second mechanical joint 20 further includes a first connecting member 203, the second fixed member 201 is rotatably connected to the first connecting member 203, and the first connecting member 203 is rotatably connected to the second movable member 202. Thus, in the robotic arm of this embodiment, the second fixed member 201 in the second mechanical joint 20 is rotatably connected to the second movable member 202 via the first connecting member 203, and the second axis 002 can be set at a position farther away from the second fixed member 201, so that the angle at which the second movable member 202 can rotate relative to the second fixed member 201 is significantly expanded. In addition, the robotic arm of the present application reduces the difficulty of wiring the drive rope 302 of the mechanical elbow joint, which helps to reduce the difficulty of assembling and maintaining the mechanical elbow joint.
[0061] In the robotic arm of this embodiment, at least two driving sources 301 include two elbow driving pulleys, which are installed in the first movable part 102. The two elbow driving pulleys can drive two elbow driving ropes 302 respectively. The two elbow driving ropes 302 are wound around the two elbow driving pulleys, which also realizes the connection between the driving ropes 302 and the first movable part 102.
[0062] At least two drive ropes 302 include two elbow drive ropes 302, which are respectively connected to the first fixed part 101, the first movable part 102, and the second movable part 202, and are respectively connected to the first position and the second position of the second movable part 202, and finally connected to the second movable part 202 along opposite winding directions.
[0063] Referring to Figure 3, taking the shoulder joint as an example, in a low-inertia differential shoulder joint structure of a robotic arm with 7 degrees of freedom, a differential rope drive mechanism is employed at the shoulder. This reduces the weight of the mechanism, allowing the motor module to be placed at the rear, and in some cases, allows for torque superposition. The third degree of freedom of the shoulder joint utilizes a pair of large and small pulleys, which are rope-driven for transmission, further improving transmission accuracy and reducing weight. Finally, the drive modules for the wrist and elbow joints are placed at the rear of the shoulder joint arm module, thereby reducing the weight of the entire robotic arm.
[0064] Based on this, the structure of the robotic arm will be easy to modularize, thereby simplifying the manufacturing process of the robotic arm.
[0065] Referring to the above, the end of the manipulator is usually used to complete the operation task. The embodiment of the present application provides a control method for a manipulator, which can complete the balancing task by using the non-end of the manipulator, so that the movable object can maintain balance at any position on the manipulator except the end.
[0066] Wherein, the end is used to indicate the end of the robotic arm away from the shoulder joint. In some embodiments, the robotic arm is composed of a plurality of connecting rods connected end to end. For example, connecting rod 1 and connecting rod 2 constitute a robotic arm, the first end of connecting rod 1 is a shoulder joint, and the second end of connecting rod 1 is connected to the first end of connecting rod 2, then the end is used to indicate the second end of connecting rod 2. In some embodiments, the end can also be understood as a mechanical device connected to the end of the robotic arm away from the shoulder joint, such as: a robotic arm that provides a grasping function, a magnetic suction cup that provides adsorption capacity, a bionic hand that provides bionic movement ability, etc., such as a robotic arm composed of connecting rod 1 and connecting rod 2, the first end of connecting rod 2 is connected to connecting rod 1, and the second end of connecting rod 2 is a robotic arm, then the end is used to indicate the robotic arm on connecting rod 2. With reference to Figure 1, it should be understood that when the robotic arm is mounted on the robot body, the second movable part 202 is the end of the robotic arm away from the shoulder joint, that is, the end of the robotic arm described in the embodiment of the present application.
[0067] A movable object can be used to indicate any three-dimensional object occupying a certain space, and the shape, size, material, and mass of the object are not restricted. Furthermore, at least one outer surface of the movable object is curved, or at least one edge on the outer surface of the movable object is curved. In one implementation, the movable object can roll and / or slide on the robotic arm under the influence of gravity; for example, the movable object can be a bottle, a rod, a sphere, an irregular object, etc. Furthermore, a cross-section of the movable object is circular, elliptical, or a closed shape enclosed by curves. It should be understood that the movable object is a non-fixed object and is not fixed to the robotic arm; illustratively, the movable object is not fixed to the robotic arm by any of fasteners, mortise and tenon structures, welding, etc. It should be noted that the movable object can be placed at any position on the robotic arm except at the end and is not fixed to the robotic arm. Furthermore, a movable object is placed at any position of the robotic arm except the end thereof, and part of the outer surface of the movable object is in contact with the robotic arm, while the other outer surface is not in contact with the robotic arm.
[0068] Taking the movable object being a bottle as an example, for a robotic arm with multiple degrees of freedom, the control method for the robotic arm provided in the embodiments of the present application uses a non-terminal link of the robotic arm (such as the forearm of the robotic arm) to achieve the goal of maintaining the bottle's balance on the surface of the forearm of the robotic arm without falling. It should be understood that the control method provided in the embodiments of the present application can be implemented by the aforementioned controller of the robotic arm. The controller can be set in the robotic arm or can be set outside the robotic arm and connected to the robotic arm by wire or wirelessly to control the movement of the robotic arm.
[0069] FIG4 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application, and FIG5 shows a schematic diagram of a robotic arm performing balancing according to an exemplary embodiment of the present application. A movable object 502 is placed at any position on the robotic arm 501 except at the end 501a. For an introduction to movable object 502, please refer to the aforementioned content. Referring to FIG5 , for example, the movable object is a bottle, which is placed on the forearm of the robotic arm. Schematically, the method for controlling a robotic arm according to an embodiment of the present application includes:
[0070] Step 120: Acquire a dynamics system, and obtain posture information associated with the robotic arm from the dynamics system.
[0071] Illustratively, a dynamic system is constructed based on at least a robotic arm. The dynamic system is used to describe the forces and / or motions of the robotic arm while maintaining a movable object in balance. Because the control of the robotic arm (or, more accurately, its dynamic response to balancing the movable object) is subject to dual constraints, both the motion of the robotic arm and the motion of the movable object, the dynamic system must reflect the interaction between the robotic arm and the movable object.
[0072] In some embodiments, a coordinate system can be constructed based on the robotic arm, and torque information and / or motion information of the robotic arm can be obtained through at least one sensor associated with the robotic arm, such as the control torque of each joint of the robotic arm and / or the displacement of each component rod relative to the initial position. The at least one sensor includes, but is not limited to, one of the following sensors: a torque sensor, a tactile sensor, a visual sensor, etc. It should be understood that, based on the at least one sensor, relevant information about the movable object can also be obtained, such as the position of the movable object relative to the robotic arm. Subsequently, a dynamic system can be constructed based on the constructed coordinate system and the obtained torque information and / or motion information.
[0073] It should be understood that the dynamic system can be constructed based on a robotic arm, or based on a robotic arm and a movable object.
[0074] In some embodiments, as shown in FIG6 , a dynamic system is constructed based on a robotic arm.
[0075] When the robotic arm is fully extended, a line is drawn connecting the two ends of the robotic arm, with the direction of the line perpendicular to the line connecting the two ends when the robotic arm is extended being the x-direction, the direction of the line connecting the two ends when the robotic arm is extended being the y-direction, and the direction of the perpendicular line perpendicular to the line when the robotic arm is extended being the z-direction. For example, the x-direction is the first direction 612 involved in the embodiment of the present application, and the y-direction is the second direction 614 involved in the embodiment of the present application.
[0076] Based on this, the line perpendicular to the line connecting the two ends of the robotic arm when extended is the x-axis (also referred to as the first rotation axis), located at the end of the robotic arm closest to the shoulder joint; the extension of the line connecting the two ends of the robotic arm when extended is the y-axis (also referred to as the second rotation axis), passing through the center of the robotic arm. Schematically, the robotic arm can rotate about the x-axis and / or y-axis. The angle of rotation of the robotic arm about the x-axis can be considered the roll angle, and the angle of rotation of the robotic arm about the y-axis can be considered the pitch angle. The extension line of the robotic arm is the direction of extension of the robotic arm when the robotic arm is extended. Exemplarily, the vertical direction and the direction of gravity are on the same straight line, and the horizontal plane is the plane perpendicular to the horizontal direction of gravity. Exemplarily, Figure 6 shows an extension line 610 of the robotic arm when extended. Exemplarily, the extension line 610 is a ray extending from the end 600a of the robotic arm 600 and pointing outward from the robotic arm. The direction of the extension line 610 is parallel to the direction of the center of mass of the forearm of the robotic arm 610 and pointing toward the end 600a of the robotic arm. For example, in Figure 6 , extension line 610 is parallel to the y-axis. For example, in Figure 6 , extension line 610 originates from the forearm of robotic arm 600. For example, extension line 610 can originate from any location on robotic arm 600. In another implementation, the direction of extension line 610 can be indicated by a ray originating from a location outside of robotic arm 600; this embodiment is not limiting.
[0077] In other embodiments, a dynamic system can be constructed based on a robotic arm and a movable object. Referring to Figures 5 and 6 , when the movable object is placed at any position other than the end of the robotic arm, the movable object should appear to be in the x-direction. For example, if the movable object is a bottle and is considered a cylinder, the length of the cylinder is the x-direction, and the plane of the cylinder's floor is the plane formed by the y-axis and the z-axis.
[0078] Illustratively, after constructing a dynamic system, posture information of the dynamic system can be obtained. The posture information indicates information associated with at least the robotic arm, obtained based on the dynamic system. As previously mentioned, the dynamic system is used to describe the force and / or motion relationships of the robotic arm when maintaining a movable object in balance. Correspondingly, the posture information describes the posture of the robotic arm when maintaining the movable object in balance. Optionally, the posture information includes at least one of the following: torque information of the robotic arm, motion information of the robotic arm, and motion information of the movable object. For example, the posture information includes one of the following: the rotation angle of the robotic arm in different two-dimensional planes (which can be understood as the motion information of the robotic arm), the angle between the robotic arm and the horizontal plane (which can be understood as the motion information of the robotic arm), and the straight-line distance in the x-direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm (which can be understood as the motion information of the movable object). In some embodiments, the posture information can be obtained based on a visual sensor. For example, a camera can be installed on the robotic arm or in an external environment to capture image information of the robotic arm and the movable object. This image information is used to demonstrate the placement of the movable object on the robotic arm. Subsequently, the image information is processed to obtain an image processing result. Exemplarily, after acquiring the image information, a cluster analysis is performed based on at least one of the information such as the color, material, surface texture, and connected area of the movable object and the objects in the environment to determine the geometric center of the movable object, and then the position of the geometric center and the center of mass in the dynamic system can be determined. Based on this, combined with the relevant information of the robotic arm, the posture information can be obtained. In other embodiments, the posture information can also be obtained based on visual sensors and tactile sensors. For example, a tactile sensor is laid on the outer shell of the robotic arm to collect the tactile signal corresponding to when the movable object is placed on the robotic arm. Based on this, the specific position of the movable object on the robotic arm can be accurately obtained, and the posture information can be determined in combination with the relevant information of the robotic arm.
[0079] Step 140: Determine control information based on a mapping relationship between the posture information and the control information of the robotic arm.
[0080] Referring to Figure 5 , a movable object is placed anywhere on the robotic arm except at the end. The purpose of the robotic arm control method provided in this embodiment of the application is to ensure that the movable object is in a balanced state on the robotic arm. To this end, the controller needs to estimate the state of the dynamic system at the next moment based on the current state of the system and determine the control information for the robotic arm at the next moment accordingly, so that the movable object can always maintain balance on the robotic arm and prevent it from falling.
[0081] The control information may be determined based on a mapping relationship between the posture information and the control information. Referring to the above content, a dynamic system is constructed based on a robotic arm and / or a movable object.
[0082] With reference to the system shown in FIG6 , a first direction 612 is the direction of a line perpendicular to the line connecting the upper and lower arms of the robot arm when the robot arm is extended, i.e., the direction of a horizontal line perpendicular to the robot arm when the robot arm is extended; a second direction 614 is the direction of a line connecting the upper and lower arms of the robot arm when the robot arm is extended, i.e., the direction of the extended line of the robot arm when the robot arm is extended; and a vertical direction is perpendicular to the line connecting the two segments when the robot arm is extended. Any two of the first direction 612 (i.e., the x-direction), the second direction 614 (i.e., the y-direction), and the vertical direction (i.e., the z-direction) are perpendicular. Schematically, the x, y, and z directions constitute a three-dimensional space.
[0083] It should be understood that a first plane and a second plane are formed in the three-dimensional space. The first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction (or can be understood as an XOZ plane), and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction (or can be understood as a YOZ plane). After the dynamic system is constructed, system modeling can be performed to determine the mapping relationship between posture information and control information.
[0084] In some embodiments, a two-dimensional (2D) model can be constructed based on the XOZ plane and the YOZ plane, and the mapping relationship under the plane is determined based on the XOZ plane and the YOZ plane, respectively. Optionally, the mapping relationship includes a first mapping relationship and a second mapping relationship, the first mapping relationship is used to describe the mapping relationship between the first posture information and the first control information in the first plane (i.e., the XOZ plane), and the second mapping relationship is used to describe the mapping relationship between the second posture information and the second control information in the second plane (i.e., the YOZ plane). In other embodiments, a three-dimensional (3D) model can be constructed based on the three-dimensional space, and the mapping relationship is determined based on the three-dimensional space. Optionally, the mapping relationship includes a third mapping relationship, and the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space. It should be understood that for different models, the constructed mapping relationship is also different.
[0085] For example, kinetic energy and potential energy are determined within a first plane and a second plane, and the kinetic energy and potential energy are used to construct the Euler-Lagrange equations based on the first plane and the second plane, respectively; based on the Euler-Lagrange equations, a first mapping relationship and a second mapping relationship are determined. Another example is determining kinetic energy and potential energy within a three-dimensional space, and the kinetic energy and potential energy are used to construct the Euler-Lagrange equations based on the three-dimensional space; based on the Euler-Lagrange equations, a third mapping relationship is determined.
[0086] Among them, the differences in kinetic energy and potential energy determined based on the first plane, the second plane, and the three-dimensional space will lead to differences in the constructed Euler-Lagrange equations, which in turn affect the determined mapping relationship to obtain the first mapping relationship, the second mapping relationship, and the third mapping relationship.
[0087] Illustratively, after establishing a mapping relationship between posture information and control information, the controller of the robotic arm obtains the posture information and then determines the control information. It should be understood that different control information is obtained based on different mapping relationships.
[0088] In some embodiments, the control information includes first control information and second control information. The controller may determine the first control information based on a first mapping relationship and determine the second control information based on a second mapping relationship. The first control information includes a first control torque applied in the roll angle direction of the manipulator arm rotating about a first rotation axis, and the second control information includes a second control torque applied in the pitch angle direction of the manipulator arm rotating about a second rotation axis. The first rotation axis is a straight line perpendicular to a line connecting two segments of the manipulator arm when the manipulator arm is extended, and the second rotation axis is an extension of the line connecting the two segments when the manipulator arm is extended.
[0089] In other embodiments, the control information includes third control information. The controller may determine the first control information and the second control information based on the third mapping relationship. The first control information may also be understood as the first control torque, and the second control information may also be understood as the second control torque.
[0090] Step 160: Using the control information, control the movement of the robotic arm so that the movable object reaches a balanced state on the robotic arm.
[0091] After determining the control information, the robotic arm can be controlled based on the control information. Referring to the foregoing, the control information includes first control information and second control information, where the first control information indicates the first control torque and the second control information indicates the second control torque. Alternatively, the control information includes third control information, where the third control information includes the first control torque and / or the second control torque. It can be understood that the control information includes the first control torque and the second control torque.
[0092] In some embodiments, the control information includes a first control torque, and step 160 can be implemented as follows: based on the first control torque, controlling the robotic arm to move about a first rotation axis, where the direction of the first rotation axis is the first direction in FIG6 , i.e., the direction of a horizontal line perpendicular to the robotic arm when the robotic arm is extended. In other embodiments, the control information includes a second control torque, and step 160 can be implemented as follows: based on the second control torque, controlling the robotic arm to move about a second rotation axis, where the direction of the second rotation axis is the second direction in FIG6 , i.e., the direction of an extension line of the robotic arm when the robotic arm is extended. Referring to the foregoing, the controller controls the robotic arm based on the control information so that the movable object maintains balance on the robotic arm. Based on this, step 160 can be implemented as follows: using the control information, controlling the robotic arm to perform at least one motion behavior so that the movable object is in a balanced state on the robotic arm; wherein the motion behavior of the robotic arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0093] It should be understood that the control information is a torque sequence composed of the control torques of the various joints of the robotic arm, and the motion control of the various joints of the robotic arm will be achieved according to the torque sequence. Based on the interaction of the control torques of the various joints, the robotic arm will be visually presented in two states: static and moving. Among them, the robotic arm visually presents a static state, which can be understood as the movement behavior of the robotic arm is to remain relatively static, that is, based on the control of the various joints of the robotic arm, the robotic arm visually presents a performance that the robotic arm is static. The robotic arm visually presents a moving state, which can be understood as the movement behavior of the robotic arm is to move and / or rotate, that is, based on the control of the various joints of the robotic arm, the robotic arm can visually present a performance that the robotic arm is in motion, and its movement can be the movement and / or rotation of the robotic arm, such as the robotic arm swinging up and down with the shoulder joint as the center, and the robotic arm rotating left and right with the shoulder joint as the rotation center.
[0094] Schematically, the equilibrium state is used to indicate that the movable object is in a state of balanced force. At this point, the movable object may no longer be moving, or it may be in a state of uniform linear motion relative to the robotic arm. Furthermore, the movement speed of the movable object is less than a preset speed, such as 1 cm per second; this is also referred to as a state of small-amplitude motion. Furthermore, the equilibrium state is used to indicate that the movable object is in a state of balanced force and no longer moving (the movable object and the robotic arm remain relatively stationary). Among them, the equilibrium state may include the following two: a static equilibrium state, in which the movable object in the static equilibrium state is stationary on the robotic arm (or it can be understood that the movable object is stationary relative to the robotic arm); a dynamic equilibrium state, in which the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm (or it can be understood that the movable object is displaced or rolled relative to the robotic arm and remains stationary). In some embodiments, the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm but remains on the robotic arm without falling. This embodiment does not limit the speed and direction of the displacement or rolling of the movable object on the robotic arm. It can be understood that the control information determined based on the mapping relationship can enable the robotic arm to perform at least one movement behavior, the purpose of which is to make the movable object always stationary on the robotic arm, or the purpose of which is to change the relative position of the movable object and the robotic arm but the movable object does not fall from the robotic arm.
[0095] For example, consider a movable object, such as a bottle, placed on the forearm of a robotic arm. The controller determines control information and controls the movement of the various joints of the robotic arm accordingly. The bottle can remain relatively stationary on the forearm, in which case the robotic arm can remain stationary or make fine adjustments in the x / y directions. Alternatively, the bottle can roll on the forearm, in which case the robotic arm can remain stationary or make fine adjustments in the x / y directions to prevent the bottle from falling from the robotic arm.
[0096] It should be understood that controlling the robotic arm according to the control information is a continuous process. For example, step 160 may be implemented as follows:
[0097] Using the control information at the first moment, control the movement of the robotic arm at the second moment;
[0098] Using the control information at the second moment, the movement of the robotic arm at the third moment is controlled;
[0099] Repeat the above steps until the robotic arm makes the movable object reach a balanced state on the robotic arm at the nth moment.
[0100] The first moment is earlier than the second moment, the second moment is earlier than the third moment, and the third moment is earlier than the nth moment, where n is a positive integer greater than 3. Furthermore, the time interval between the first moment and the second moment is less than a preset interval, and the preset interval is predetermined based on the response time of the robotic arm to the control information. Exemplarily, the preset interval decreases as the response time of the robotic arm to the control information decreases. Exemplarily, when the time interval between the first moment and the second moment is less than the preset interval, the control information obtained at the first moment is used to timely control the movement of the robotic arm so that the movable object reaches a balanced state on the robotic arm. Similarly, the time interval between the second moment and the third moment is less than the preset interval.
[0101] It can be understood that after constructing the dynamic system, the control information for the next moment can be determined based on the posture information at the current moment, and the movement of the robotic arm at the next moment can be controlled accordingly. Subsequently, the control information for the next moment can be determined based on the posture information at the next moment, and the movement of the robotic arm can be controlled accordingly. After repeating the above steps one or more times, the movement of the robotic arm at a certain moment will be such that the movable object on the robotic arm reaches a state of equilibrium, at which point the motion control of the robotic arm will be stopped. In other words, after the control information for the next moment is determined based on the posture information at the current moment, the robotic arm will move, causing the posture information at the next moment to change. Subsequently, the state of the movable object at the next moment can be determined, and the next moment becomes the new current moment. If the movable object has reached a state of equilibrium on the robotic arm, control of the robotic arm is stopped. If equilibrium has not been reached, the posture information for the next moment (relative to the new current moment) and the desired posture information are obtained, and control of the robotic arm is repeated until the movement of the robotic arm is controlled until the movable object reaches a state of equilibrium on the robotic arm.
[0102] In summary, the embodiments of the present application provide a novel method for using a robotic arm, which enables a movable object to maintain balance at any position on the robotic arm except the end thereof without falling. The control information of the robotic arm can be determined based on the mapping relationship between posture information and control information, thereby achieving control of the robotic arm.
[0103] With reference to the foregoing, based on different modeling methods, the mapping relationship between posture information and control information is also different. FIG7 shows a flow chart of a control method for a robotic arm provided by an exemplary embodiment of the present application. That is, in the embodiment shown in FIG4 , step 140 can be implemented as steps 141 and 142, and step 160 can be implemented as steps 161 and 162, for determining the mapping relationship under a 2D model; step 140 can also be implemented as step 143, and step 160 can also be implemented as step 163, for determining the mapping relationship under a 3D model. It should be understood that the mapping relationship can only be determined by one method, and cannot be determined by two methods at the same time. That is, step 141 cannot be performed together with step 143, and step 142 cannot be performed together with step 143.
[0104] Illustratively, the present embodiment provides two methods for determining control information, as follows:
[0105] 1. Under the 2D model, control information is determined according to the first mapping relationship and the second mapping relationship.
[0106] In some embodiments, the posture information includes first posture information and second posture information, the mapping relationship includes first mapping relationship and second mapping relationship, and the control information includes first control information and second control information; the first posture information is used to indicate the posture of the robot arm projected on the first plane, and the second posture information is used to indicate the posture of the robot arm relative to the horizontal plane. In this case, step 140 can be implemented as steps 141 and 142, and step 160 can be implemented as steps 161 and 162, as follows:
[0107] Step 141: Determine first control information based on the first mapping relationship.
[0108] Step 142: Determine second control information based on the second mapping relationship.
[0109] Illustratively, the first mapping relationship is used to describe the mapping relationship between first posture information in a first plane and first control information, where the first control information is used to control the robot arm to move about a first rotation axis. The second mapping relationship is used to describe the mapping relationship between second posture information in a second plane and second control information, where the second control information is used to control the robot arm to move about a second rotation axis. Exemplarily, step 141 can be performed before, after, or simultaneously with step 142. This application does not impose any restrictions on the execution sequence of steps 141 and 142.
[0110] Step 161: Control the robotic arm to move around the first rotation axis according to the first control information.
[0111] Step 162: Control the robotic arm to move around the second rotation axis according to the second control information.
[0112] Schematically, the first plane is used to indicate a two-dimensional plane formed by a first direction and a direction perpendicular to the line connecting the two ends of the robotic arm when extended. The second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. The first direction is the direction of the line perpendicular to the line connecting the two ends of the robotic arm when extended. The second direction is the direction of the line connecting the two ends of the robotic arm when extended. Any two of the first, second, and vertical directions are perpendicular. The first rotation axis is the line perpendicular to the line connecting the two ends of the robotic arm when extended, and the first rotation axis is located at the end of the robotic arm near the shoulder joint. The second rotation axis is the extension of the line connecting the two ends of the robotic arm when extended, and the second rotation axis passes through the center of the robotic arm. Exemplarily, step 161 can be performed before, after, or simultaneously with step 162. This application does not impose any restrictions on the execution sequence of steps 161 and 162. Referring to Figure 6, the first direction, the second direction, and the vertical direction are the x, y, and z directions, respectively. The first plane is the XOZ plane, and the second plane is the YOZ plane. After a dynamic system is constructed according to the robotic arm and the movable object, a three-dimensional space may be constructed according to the first direction, the second direction, and the vertical direction, wherein the three-dimensional space includes a first plane and a second plane.
[0113] With reference to the foregoing, since the robotic arm can rotate in the x / y direction, based on 2D modeling, a mapping relationship between posture information and control information can be constructed in the XOZ plane and the YOZ plane, respectively, to realize control in the x / y direction, respectively. In some embodiments, the first posture information includes a first rotation angle of the robotic arm in a first plane (which can be understood as the XOZ plane), and the first control information includes a first control torque applied in the roll angle direction of the robotic arm rotating around a first rotation axis (which can be understood as the x-axis). At this time, step 141 can be implemented as follows: based on the first mapping relationship between the first rotation angle and the first control torque, determine the first control torque. Among them, the first rotation angle is used to indicate the angle of rotation of the robotic arm relative to the world coordinate system in the first plane. The construction of the world coordinate system can refer to Figure 6. It should be understood that the construction of the world coordinate system is based on the robotic arm being in an initial posture, and the robotic arm in the initial posture remains parallel to the ground.
[0114] For example, the first rotation angle can be Indicates that the first control torque can be represented by τ1, then the first mapping relationship can be represented by f1. In the XOZ plane, based on the dynamic system of the manipulator and the movable object, posture information and physical information can be determined. The posture information may include the second rotation angle of the movable object in the XOZ plane (which can be represented as θ). Subsequently, the kinetic energy (which can be represented as T) and potential energy (which can be represented as U) in the XOZ plane can be determined to construct the Euler-Lagrange equation in the XOZ plane. Among them, the Euler-Lagrange equation constructed based on the XOZ plane can be expressed as L=TU.
[0115] Subsequently, the description equations of the dynamic model under different degrees of freedom can be obtained according to the Euler-Lagrange equation. That is, according to the Euler-Lagrange equation, multiple dynamic equations can be obtained, and each dynamic equation is constructed according to one degree of freedom. For example, in the XOZ plane, according to the Euler-Lagrange equation, the description equations of the dynamic model under different degrees of freedom can be obtained according to the first degree of freedom (which can be understood as The first dynamic equation is constructed based on the first degree of freedom (θ degree of freedom), and the second dynamic equation is constructed based on the second degree of freedom (which can be understood as the θ degree of freedom). Based on this, the first mapping relationship can be obtained by simple operations of the first dynamic equation and the second dynamic equation (for example, the second dynamic equation is brought into the first dynamic equation as described in detail below through specific embodiments). It should be understood that the construction of the first mapping relationship is based on the Euler-Lagrange equation under the XOZ plane, and its construction conforms to the constraints of the dynamic system and can accurately reflect the first mapping relationship between the first posture information and the first control information. After determining the first mapping relationship, if the controller obtains the first posture information, it can determine the first control information based on the first mapping relationship, thereby realizing the movement of the robotic arm on the first axis.
[0116] In other embodiments, the second posture information includes the angle between the manipulator and the horizontal plane, and the second control information includes the second control torque applied in the pitch angle direction of the manipulator rotating around the second rotation axis (which can be understood as the y-axis). In this case, step 142 can be implemented as follows: based on the second mapping relationship between the angle and the second control torque, the second control torque is determined. The angle is used to indicate the angle of rotation of the movable object in the second plane relative to the horizontal plane in the world coordinate system. The construction of the world coordinate system can refer to Figure 6. It should be understood that the construction of the world coordinate system is based on the manipulator being in an initial posture, and the manipulator in the initial posture remains parallel to the ground.
[0117] For example, the included angle can be represented by α, the second control torque can be represented by τ2, and the second mapping relationship can be represented by f2.
[0118] In the YOZ plane, based on the dynamic system of the manipulator and the movable object, the posture information and physical information can be determined. The posture information may include the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the manipulator (which can be expressed as s). Subsequently, the kinetic energy (which can be expressed as T) and potential energy (which can be expressed as U) in the YOZ plane can be determined to construct the Euler-Lagrange equation in the YOZ plane. Among them, the Euler-Lagrange equation constructed based on the YOZ plane can be expressed as L=TU. Subsequently, according to the Euler-Lagrange equation, the description equation of the dynamic model in different degrees of freedom can be obtained. That is, according to the Euler-Lagrange equation, multiple dynamic equations can be obtained, and each dynamic equation is constructed according to one degree of freedom. Exemplarily, in the YOZ plane, according to the Euler-Lagrange equation, a third dynamic equation constructed according to the third degree of freedom (which can be understood as the s degree of freedom) and a fourth dynamic equation constructed according to the fourth degree of freedom (which can be understood as the α degree of freedom) can be obtained. Based on this, the second mapping relationship can be obtained by simple calculations of the third dynamic equation and the fourth dynamic equation. It should be understood that, similar to the construction of the first mapping relationship, the construction of the second mapping relationship is also based on the Euler-Lagrange equations in the YOZ plane. Its construction conforms to the constraints of the dynamic system and can accurately reflect the second mapping relationship between the second posture information and the second control information.
[0119] After determining the second mapping relationship, if the controller obtains the second posture information, it can determine the second control information according to the second mapping relationship, thereby realizing the movement of the robotic arm on the second rotation axis.
[0120] 2. Under the 3D model, control information is determined according to the third mapping relationship.
[0121] In other embodiments, the posture information includes third posture information, the mapping relationship includes a third mapping relationship, and the control information includes third control information. In this case, step 140 can be implemented as step 143, and step 160 can be implemented as step 163, as follows:
[0122] Step 143: Determine third control information based on the third mapping relationship.
[0123] Illustratively, the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space, and the third control information is used to control the movement of the robotic arm in the three-dimensional space.
[0124] Step 163: Control the robotic arm to move in three-dimensional space according to the third control information.
[0125] Schematically, the three-dimensional space is composed of a first direction, a second direction, and a vertical direction. The first direction is the direction of the straight line perpendicular to the line between the two ends of the robot arm when it is extended. The second direction is the direction of the line between the two ends of the robot arm when it is extended. The vertical direction is perpendicular to the line between the two ends of the robot arm when it is extended. Any two directions of the first direction, the second direction, and the vertical direction are perpendicular. A first plane and a second plane are formed in the three-dimensional space. The first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. Referring to Figure 6, a three-dimensional space can be constructed by the x, y, and z directions, and the three-dimensional space includes a first plane (i.e., the XOZ plane) and a second plane (the YOZ plane). It should be understood that there are two coordinate systems in the three-dimensional space, one is the coordinate system shown in Figure 6, and the other is a world coordinate system constructed based on the situation where the robot arm is in its initial posture.
[0126] In some embodiments, the third posture information includes: a straight-line distance along a first direction between the center of the movable object and the center of the joint that controls the rotation of the manipulator arm (i.e., the aforementioned s), and a second rotation angle of the movable object in a first plane (i.e., the aforementioned θ); the third mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship; the third control information includes: a first control torque applied in the roll angle direction of the manipulator arm rotating around the first rotation axis, and a second control torque applied in the pitch angle direction of the manipulator arm rotating around the second rotation axis. Optionally, step 143 can be implemented as follows: determining the first control torque based on the first sub-mapping relationship between the straight-line distance and the first control torque; and determining the second control torque based on the second sub-mapping relationship between the second rotation angle and the second control torque; and step 163 can be implemented as follows: controlling the manipulator arm to move around the first rotation axis according to the first control information; and controlling the manipulator arm to move around the second rotation axis according to the second control information; wherein the first rotation axis is a horizontal line perpendicular to the manipulator arm, and the second rotation axis is an extension of the manipulator arm.
[0127] Similar to the case of the 2D model, considering that the manipulator rotates in the x / y direction, the 3D model still needs to construct a third mapping relationship between the posture information and the control information based on the three-dimensional space. The third mapping relationship includes two sub-mapping relationships, which are used to determine the first control torque and the second control torque respectively to achieve the control of the manipulator in the x / y direction. For example, the first control torque is expressed as τ x , the first sub-mapping relationship included in the third mapping relationship can be expressed as f 31 ; The second control torque is expressed as τ y , the second sub-mapping relationship included in the third mapping relationship can be expressed as f 32 .
[0128] Similar to the 2D model, in three-dimensional space, based on the dynamic system of the robotic arm and the movable object, posture information and physical information can be determined. Subsequently, the kinetic energy and potential energy in the three-dimensional space can be determined to construct the Euler-Lagrange equation in the three-dimensional space. Based on this, the descriptive equations of the dynamic model at different degrees of freedom can be obtained according to the Euler-Lagrange equation; the first mapping relationship is obtained based on simple operations between the descriptive equations. It should be understood that the construction of the third mapping relationship is based on the Euler-Lagrange equation in the three-dimensional space. Its construction conforms to the constraints of the dynamic system and can accurately reflect the third mapping relationship between the third posture information and the third control information.
[0129] After determining the third mapping relationship, if the controller obtains the third posture information, it can determine the third control information according to the third mapping relationship, thereby realizing the movement of the robotic arm on the first rotation axis and the second rotation axis.
[0130] In summary, the control method of the robotic arm provided in the embodiment of the present application provides two implementation methods for determining control information, which can determine the control information for controlling the robotic arm under a 2D model and a 3D model respectively.
[0131] It should be understood that when constructing a 2D model, the robotic arm may be provided with two controllers to determine corresponding control information based on a first mapping relationship and a second mapping relationship, respectively, or a single controller may be provided to determine both control information. When constructing a 3D model, the robotic arm may be provided with a single controller to determine control information based on a third mapping relationship. This application does not limit the number of controllers; any implementation method for determining control information based on a mapping relationship between posture information and control information falls within the scope of this application and will not be further described.
[0132] Referring to the above content, in order to determine the control information, it is necessary to establish a mapping relationship between the posture information and the control information. FIG8 shows a flow chart of a control method for a robotic arm provided by an exemplary embodiment of the present application. That is, based on the embodiment shown in FIG4 , the method further includes step 130, which is as follows:
[0133] Step 130: Construct a mapping relationship based on the posture information and the physical information of the dynamic system.
[0134] Schematically, the mapping relationship is used to describe the relationship between posture information and control information in a two-dimensional plane or three-dimensional space. After constructing the 2D / 3D model, the posture information and / or physical information of the dynamic system can be obtained.
[0135] Optionally, the posture information includes at least one of the following: the moment of inertia of the robotic arm, the moment of inertia of the movable object, a first rotation angle of the robotic arm in a first plane, the angle between the robotic arm and a horizontal plane formed by the first and second directions, the linear distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, and the second rotation angle of the movable object in the first plane. The first plane is used to indicate a two-dimensional plane formed by the first direction and a direction perpendicular to the line connecting the two ends of the robotic arm when extended. The first direction is the direction of a line perpendicular to the line connecting the two ends of the robotic arm when extended, and the second direction is the direction of the line connecting the two ends of the robotic arm when extended. The first direction, the second direction, and the vertical direction are perpendicular to each other. Optionally, the physical information includes at least one of the following: the mass of the robotic arm, the cross-sectional radius of the robotic arm, the length of a rigid body used to balance the movable object, the mass of the movable object, the cross-sectional radius of the movable object, the position of the center of mass of the movable object, and the horizontal distance along the extended direction of the movable object between the contact point between the movable object and the robotic arm and the center of mass of the movable object.
[0136] Referring to FIG6 , the first direction, the second direction, and the vertical direction are the x, y, and z directions, respectively. The first plane is the XOZ plane, and the second plane is the YOZ plane. For example, in the XOZ plane, the following posture information can be determined: the second rotation angle of the movable object in the first plane (which can be expressed as θ), the first rotation angle of the robot arm in the first plane (which can be expressed as ), the moment of inertia of the robotic arm (which can be expressed as I a ), the moment of inertia of the movable object (which can be expressed as I b ); At the same time, the following physical information can be determined: the horizontal distance between the contact point between the movable object and the manipulator and the center of mass of the movable object along the extension direction of the movable object (which can be expressed as d), the cross-sectional radius of the manipulator (which can be expressed as r a ), the mass of the robotic arm (which can be expressed as m a In the YOZ plane, the following posture information can be determined: the angle between the robot arm and the horizontal plane (which can be expressed as α), the moment of inertia of the robot arm (which can be expressed as I a ), the moment of inertia of the movable object (which can be expressed as I b ); At the same time, the following physical information can be determined: the straight-line distance between the center of the movable object and the center of the joint that controls the rotation of the robotic arm along the first direction (which can be expressed as s), the cross-sectional radius of the robotic arm (which can be expressed as r a ), the cross-sectional radius of the movable object (which can be expressed as r b ), the mass of the robotic arm (which can be expressed as m a ).
[0137] In the three-dimensional space, the following posture information can be determined: the moment of inertia of the robot arm in the third direction and the fourth direction (which can be expressed as I ax and I ay ), the moment of inertia of the movable object in the third direction and the fourth direction (which can be expressed as I bx and I by ); at the same time, the following physical information can be determined: the center of mass position of the movable object (represented as C). The third and fourth directions are the x and y directions in the robotic arm coordinate system constructed based on the robotic arm itself. The construction of the robotic arm coordinate system is shown in Figure 6. It should be understood that the coordinate axes of the world coordinate system constructed based on the robotic arm in its initial posture are fixed, while the coordinate axes of the robotic arm coordinate system change with the movement of the robotic arm.
[0138] With reference to the foregoing, whether it is a two-dimensional plane or a three-dimensional space, after obtaining the posture information and physical information of the dynamic system, a mapping relationship under the corresponding model can be constructed. The construction of the mapping relationship provided in step 130 of this embodiment can be performed before, after, or simultaneously with step 120, and this application does not limit this; the mapping relationship used in determining the control information in step 140 of this embodiment is constructed in step 130; that is, the mapping relationship constructed in step 130 is used in the subsequent step of determining the control information to control the movement of the robotic arm.
[0139] In some embodiments, to obtain posture information, step 120 may be implemented as follows:
[0140] Based on the visual sensor, the posture information is obtained from the dynamic system; or, based on the visual sensor and the tactile sensor, the posture information is obtained from the dynamic system. Among them, in the above steps, it is necessary to build a dynamic system first. Please refer to the above content and will not repeat it here. Schematically, the visual sensor is set on the robot arm, or on the outside of the robot arm; the tactile sensor is laid on the outer shell of the robot arm and can be used as the electronic skin of the robot arm. For example, a joint motor encoder is installed on the joint motor of the robot arm to feedback the angle, angular velocity and current information of each joint rotation. This information can be used to estimate the state of the robot arm. For example, tactile sensors are laid on the fingers, palms, or a certain connecting rod of the robot arm to obtain feedback information of the movable object.
[0141] In some embodiments, posture information can also be obtained through a proximity sensor. The proximity sensor is used to emit a signal when two objects approach each other. When the movable object approaches the proximity sensor, posture information can be obtained accordingly. Exemplarily, the posture information includes the straight-line distance in the x-direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm. The proximity sensor is deployed on the joint where the movable object and the robotic arm rotate. The signal emitted by the proximity sensor is used to indicate the straight-line distance in the x-direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm; thereby obtaining the posture information.
[0142] In order to obtain the posture information, the present application provides the following three optional implementation methods:
[0143] Implementation method 1: Full-degree-of-freedom posture recognition of movable objects based on visual perception.
[0144] Taking the 7-DOF robotic arm shown in Figures 1 to 3 as an example, a visual sensor can be used to obtain posture recognition of the movable object in all six degrees of freedom, thereby determining the relative positional relationship between the movable object and the robotic arm, and thus determining posture information. For example, the visual sensor captures image information and performs image processing to obtain posture information of the movable object on the robotic arm. For example, image processing can be used to obtain position information on the x / y / z axes and posture in the roll / pitch / roll directions.
[0145] In some embodiments, the operation time of gesture recognition is about 100 milliseconds, that is, 10 Hz.
[0146] Implementation method 2: Data image processing based on visual sensors.
[0147] Optionally, a lightweight data image processing method can be applied to determine the position of the movable object in the dynamic system. For example, a camera is set on the robotic arm or in the external environment to obtain image information of the robotic arm and the movable object, and the image information is used to show that the movable object is placed on the robotic arm. Subsequently, the image information is processed to obtain an image processing result. Exemplarily, after obtaining the image information, a cluster analysis is performed based on the difference in color between the movable object and the objects in the environment to determine the geometric center of the movable object, and then the position of the geometric center and the center of mass position in the dynamic system can be determined. Based on this, combined with the relevant information of the robotic arm, posture information can be obtained, such as determining the contact position based on the geometric center of the movable object. In some embodiments, based on the lightweight calculation in this implementation method, the operation speed is relatively fast, and the operation time is about 10 milliseconds, that is, 10Hz.
[0148] Based on this, optionally, the posture information can be obtained based on the visual sensor, which can be implemented as follows:
[0149] Image information is acquired through a visual sensor, and the image information is used to display the movable object placed on the robotic arm; the image information is processed to obtain an image processing result; and posture information is determined based on the image processing result.
[0150] Alternatively, optionally, obtaining posture information based on a visual sensor and a tactile sensor can be implemented as follows:
[0151] Determine first information of the movable object in a first direction based on a visual sensor; determine second information of the movable object in a second direction based on a tactile sensor; and fuse the first information and the second information to obtain posture information;
[0152] The first direction is the direction of a straight line perpendicular to a line connecting the two ends of the robotic arm when the robotic arm is extended, and the second direction is the direction of a line connecting the two ends of the robotic arm when the robotic arm is extended.
[0153] Referring to Figure 6 , after the robotic arm constructs a coordinate system, there are a first direction (which can be understood as the aforementioned x-direction) and a second direction (which can be understood as the aforementioned y-direction). The movable object can describe its relative position and force interaction with the robotic arm in both directions. In the above implementation, different sensors acquire descriptions in corresponding directions to form corresponding first and second information.
[0154] For example, the first information is the geometric center and center of mass of a movable object obtained through image processing by a visual sensor; the second information is the specific position of the movable object on the robotic arm obtained by a tactile sensor. Subsequently, the first and second information are fused to determine posture information, such as the contact point between the movable object and the robotic arm.
[0155] Among them, the relevant content of determining the first information based on the visual sensor can refer to the above content and will not be repeated here; determining the second information based on the tactile sensor and the fusion processing will be described in detail below.
[0156] Implementation method three: Data fusion processing based on visual sensors and tactile sensors.
[0157] In some embodiments, the posture information can also be obtained based on a visual sensor and a tactile sensor. The processing of the visual sensor can refer to the above content, and the processing of the tactile sensor is specifically as follows.
[0158] Based on the above, when a lightweight data image processing method is applied, a large error may occur in the depth direction of the camera (i.e., the direction of the y-axis shown in Figure 6). Based on this, a tactile sensor can be used to compensate for this. For example, a tactile sensor is laid on the outer shell of the robotic arm to collect the tactile signal corresponding to when the movable object is placed on the robotic arm. Based on this, the specific position of the movable object in the x-direction on the robotic arm can be accurately obtained.
[0159] It can be understood that the tactile sensor gives the position and pitch angle posture of the movable object in the y direction; at the same time, combined with the lightweight image processing of the visual sensor and compared with the prior image data, the specific position of the movable object in the x direction on the robotic arm can be determined.
[0160] In some embodiments, the operation time of the tactile sensor in this implementation is about 10 milliseconds, that is, 100 Hz. Referring to the above content, a comparison of the three implementations is given in the following table:
[0161] It should be understood that when implementing method 1, there will be a linear error of 1-2 centimeters and an angular error of 5-10 degrees in determining the position of the movable object on the robotic arm, that is, the posture information obtained will have certain linear and angular errors. Similarly, implementing methods 2 and 3 will also have certain errors. Furthermore, implementing method 3 is an improved implementation method based on implementing method 2, which can overcome the shortcoming of implementing method 2 in the inaccurate measurement of the center of mass in the direction of the y-axis, thereby making the error of the acquired posture information smaller.
[0162] It should be understood that if the control method of the robotic arm provided in this application is adopted, a suitable implementation method can be selected according to actual needs to obtain posture information, and this application does not limit this.
[0163] Referring to the above content, obtaining posture information based on visual sensors and tactile sensors can be implemented as follows: based on the visual sensor, determining the first information of the movable object in the first direction; based on the tactile sensor, determining the second information of the movable object in the second direction; and fusing the first information and the second information to obtain posture information.
[0164] Optionally, the determination of the second information may be specifically implemented as follows: determining position information of the contact point between the movable object and the robotic arm relative to the robotic arm through a tactile sensor.
[0165] It should be understood that the position information determined thereby includes at least the position coordinates of the contact position between the movable object and the robotic arm. The relevant content regarding the tactile sensor obtaining position information can be referred to above and will not be repeated here. In some embodiments, the tactile sensor is laid on the outer shell of the robotic arm, and the tactile sensor user obtains relevant information about the contact position between the movable object and the robotic arm, including the position coordinates of the contact position, torque information, etc.
[0166] Referring to the above content, the first information is visual perception data, and the second information is tactile perception data, and these two data can be fused. Optionally, the fusion process can adopt any one or more of the following algorithms: Kalman Filtering (KF) algorithm, Extended Kalman Filtering (EKF) algorithm, and Particle Filter (PF) algorithm.
[0167] It should be understood that there are many ways to implement data fusion processing, and the above content is only for illustrative purposes and does not limit this application. At the same time, as the fusion processing method is updated, fusion processing that appears after this application should also be applicable to this application. In other words, the results of the fusion processing do not limit the control method of the robotic arm provided in this application.
[0168] To sum up, the control method of the robotic arm provided in the embodiment of the present application provides a method for constructing a mapping relationship. Based on the posture information and physical information of the dynamic system, the mapping relationship between the posture information and the control information in a two-dimensional plane or three-dimensional space can be determined, thereby determining the control information to realize the control of the robotic arm and ensure that the movable object is in a balanced state on the robotic arm.
[0169] Based on the foregoing, the control information is determined to correspond to the 2D modeling method based on the first and second mapping relationships, and the control information is determined to correspond to the 3D modeling method based on the third mapping relationship. It can be seen that there are two parallel modeling methods, namely 2D modeling and 3D modeling. It should be noted that the construction of the mapping relationship varies in different modeling situations.
[0170] FIG9 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. Specifically, in the embodiment shown in FIG4 , step 130 can be implemented as steps 1311 and 1312, or as steps 1321 and 1322, and step 160 can be implemented as step 164. It should be understood that steps 1311 and 1312 can be performed either simultaneously or selectively.
[0171] The present application provides two implementation methods for constructing a mapping relationship, as follows:
[0172] 1. Under the 2D model, construct a first mapping relationship and a second mapping relationship.
[0173] 2. Under the 3D model, construct the third mapping relationship.
[0174] It should be noted that the above two implementation methods of constructing the mapping relationship and the scheme for determining the control information in the above text can be one-to-one corresponding; for example, under the 2D model, the first mapping relationship and the second mapping relationship are constructed; they can be combined with the technical solution of determining the control information according to the first mapping relationship and the second mapping relationship in the 2D model above to form a new embodiment and be implemented together. Similarly, under the 3D model, the third mapping relationship is constructed; they can be combined with the technical solution of determining the control information according to the third mapping relationship in the 3D model above to form a new embodiment and be implemented together. This application does not limit this. It can be understood that in the context of the first mapping relationship, the second mapping relationship, and the third mapping relationship, due to the limited space in the above text, can refer to the various embodiments of the implementation methods of constructing the mapping relationship and obtaining the mapping relationship, and this application does not limit this.
[0175] Next, the above two implementation methods are described in detail as follows:
[0176] 1. Under the 2D model, construct a first mapping relationship and a second mapping relationship.
[0177] In some embodiments, the mapping relationship includes a first mapping relationship and a second mapping relationship. In this case, step 130 can be implemented as steps 1311 and 1312, as follows:
[0178] Step 1311: Determine the kinetic energy and potential energy in the first plane and the second plane according to the posture information and the physical information. The kinetic energy and potential energy are used to construct the Euler-Lagrange equation based on the first plane and the second plane, respectively.
[0179] Step 1312: Determine a first mapping relationship and a second mapping relationship according to the Euler-Lagrange equation.
[0180] Schematically, the first mapping relationship is used to describe the mapping relationship between the first posture information and the first control information in the first plane, and the second mapping relationship is used to describe the mapping relationship between the second posture information and the second control information in the second plane. The first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction perpendicular to the line between the two ends of the robotic arm when it is extended. The second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. The first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when it is extended. The second direction is the direction of the line between the two ends of the robotic arm when it is extended. The first direction, the second direction and the vertical direction are perpendicular to each other.
[0181] Among them, the determination of the mapping relationship is mainly based on the Euler-Lagrange equation.
[0182] Exemplarily, partial derivatives are solved for each degree of freedom in kinetic energy and potential energy to obtain different partial derivatives; then, multiple dynamic equations are determined based on the Euler-Lagrange equations, each dynamic equation is constructed according to one degree of freedom; finally, a first mapping relationship and a second mapping relationship are determined based on at least one dynamic equation.
[0183] With reference to the above content, optionally, determining the first mapping relationship may be implemented as follows: obtaining a first dynamic equation constructed according to the first degree of freedom and a second dynamic equation constructed according to the second degree of freedom according to the Euler-Lagrange equation; determining the first mapping relationship according to the first dynamic equation and the second dynamic equation;
[0184] Among them, the first degree of freedom is the degree of freedom corresponding to the second rotation angle of the robotic arm in the first plane, and the first dynamics equation is used to describe the driving constraints on the robotic arm in the first plane. The second degree of freedom is the degree of freedom corresponding to the first rotation angle of the movable object in the first plane, and the second dynamics equation is used to describe the driving constraints on the movable object in the first plane.
[0185] With reference to the above content, optionally, determining the second mapping relationship may be implemented as follows: obtaining a third dynamic equation constructed according to the third degree of freedom and a fourth dynamic equation constructed according to the fourth degree of freedom according to the Euler-Lagrange equation; determining the second mapping relationship according to the third dynamic equation and the fourth dynamic equation;
[0186] Among them, the third degree of freedom is the degree of freedom corresponding to the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm. The third dynamics equation is used to describe the driving constraint on the movable object in the second plane. The fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane. The fourth dynamics equation is used to describe the driving constraint on the robotic arm in the second plane.
[0187] Referring to Figure 6, consider the robotic arm in the world coordinate system. The world coordinate system is constructed based on the robotic arm in its initial state. The extended line of the robotic arm is the positive direction of the y-axis. In the initial state, the direction perpendicular to the y-axis and parallel to the ground is the x-axis. When standing with the robotic arm facing the same direction, the direction of the right hand is the positive direction of the x-axis. The z-axis is the direction opposite to gravity, vertically upward, and perpendicular to the ground. This constructs a spatial rectangular coordinate system, also known as the world coordinate system.
[0188] For example, if the first plane is the XOZ plane and the movable object is a bottle placed on the forearm of a robotic arm, the 2D model in the XOZ plane can be simplified as shown in Figure 10. The circle at the bottom represents the cross-section of the robotic arm, and the rectangle represents the cross-section of the bottle. To simplify the bottle model, the shape and cross-sectional area variations of the bottle's head and base are ignored. The bottle is treated as a homogeneous rigid body, and its position is evaluated using its center of mass. Furthermore, the bottle is positioned approximately perpendicular to the robotic arm, resulting in a rectangular cross-section of the bottle.
[0189] Based on this, the following posture information can be determined: the first rotation angle of the robot arm in the first plane (expressed as ), the second rotation angle of the movable object in the first plane (expressed as θ), the moment of inertia of the robot arm (expressed as I a ), the moment of inertia of the movable object (expressed as I b ); At the same time, the following physical information can be determined: the horizontal distance between the contact point between the movable object and the manipulator and the center of mass of the movable object along the extension direction of the movable object (expressed as d), the cross-sectional radius of the manipulator (expressed as r a ), the mass of the robotic arm (expressed as m a ).
[0190] Schematically, τ1 is used to represent the first control torque, which can also be understood as the torque applied to the degree of freedom of the forearm joint.
[0191] Based on this, the relationship between physical quantities can be obtained as follows:
[0192] in, Used to indicate d, θ, The derivative of .
[0193] Schematically, the square of the bottle's velocity (expressed as v) can be determined based on the dynamic system as follows:
[0194] According to the Euler-Lagrange equations, the kinetic energy and potential energy of all rigid bodies in the dynamic system in the XOZ plane need to be solved separately. After determining the posture information and physical information, the kinetic energy and potential energy in the XOZ plane need to be determined.
[0195] For example, the sum of the kinetic energy of all rigid bodies in a dynamic system can be expressed as follows: U=m b g·dsinθ.
[0196] Among them, T represents kinetic energy, U represents potential energy, and v 2As described above, m b Used to indicate the mass of a movable object, I a Used to indicate the moment of inertia of the robotic arm, I b It is used to indicate the moment of inertia of a movable object, and g is used to indicate the acceleration due to gravity.
[0197] Based on this, the kinetic energy for each degree of freedom in the extended coordinate system (i.e., θ and ) and its derivative (i.e. and ) and obtain the partial derivatives respectively, and obtain the following formula:
[0198] Among them, r a Used to indicate the cross-sectional radius of the robotic arm.
[0199] Subsequently, for and Taking the derivative with respect to time, we get the following formula:
[0200] Subsequently, the first and second dynamic equations can be obtained according to the Euler-Lagrange equations. The specific calculation process is as follows. According to the Euler-Lagrange equations, there are two formulas as follows:
[0201] Substituting the above terms into the above two formulas, we can obtain the following first and second dynamic equations:
[0202] The first line is used to express the dynamic equation on the θ degree of freedom (i.e., the second dynamic equation). Since this degree of freedom is underdriven, the actual input torque on the right side of the equation is 0; the second line is used to express The dynamic equation on the degree of freedom (i.e. the first dynamic equation), the drive on this degree of freedom is the torque τ1 of the motor.
[0203] Then, according to the second dynamic equation (i.e., formula A1), we can get Will Substitute it into the first dynamic equation (i.e., Formula A2) to determine the first mapping relationship f1. After determining the first mapping relationship, the proportional-integral-differentiation (PID) controller can be used to obtain PID controllers are components of feedback loops used in industrial control applications. Based on their control principle, PID controllers compare collected data with a corresponding reference value (also known as a desired value or target value). The difference between the two is used to calculate a new input value, designed to bring the system data to or maintain the reference value.
[0204] Subsequently, τ1 may be determined based on the first mapping relationship, thereby controlling the robotic arm to move around the first rotation axis.
[0205] Assuming the second plane is the YOZ plane, and a bottle is placed on the forearm of the robot, the 2D model within the YOZ plane can be simplified as shown in Figure 11. The circle in the lower left corner represents the joint that rotates around the forearm of the robot. The rectangle connected to it is the cross-section of the robot arm. The angle between this cross-section and the horizontal direction of the world coordinate system is α, which is also the angle between the robot arm and the horizontal plane. The circle on the rectangle is the cross-section of the bottle. Similarly, assuming that the bottle is perpendicular to the robot arm, to simplify the bottle model description, the shape and cross-sectional area of the bottle's head and bottom are ignored. The bottle is treated as a homogeneous rigid body, and its position is evaluated based on its center of mass.
[0206] Based on this, the following posture information can be determined: the angle between the robot arm and the horizontal plane (which can be expressed as α), the moment of inertia of the robot arm (which can be expressed as I a ), the moment of inertia of the movable object (which can be expressed as I b ); At the same time, the following physical information can be determined: the straight-line distance between the center of the movable object and the center of the joint that controls the rotation of the robotic arm along the first direction (which can be expressed as s), the cross-sectional radius of the robotic arm (which can be expressed as r a ), the cross-sectional radius of the movable object (which can be expressed as r b ), the mass of the robotic arm (which can be expressed as m a ), the length of the rigid body used to balance the aforementioned movable object (which can be expressed as l a ).
[0207] Schematically, τ2 is used to represent the second control torque, which can also be understood as the torque applied to the degree of freedom of the forearm joint.
[0208] Based on this, we can get the square of the bottle's velocity in the world coordinate system (which can be expressed as v) and its angular velocity (which can be expressed as ω), as follows:
[0209] in, Used to indicate the derivatives of s and α respectively.
[0210] According to the Euler-Lagrange equations, the kinetic energy and potential energy of all rigid bodies in the dynamic system in the YOZ plane need to be solved separately. After determining the posture information and physical information, the kinetic energy and potential energy in the YOZ plane need to be determined.
[0211] For example, the sum of the kinetic energy of all rigid bodies in a dynamic system can be expressed as follows:
[0212] Among them, T represents kinetic energy, U represents potential energy, and v 2 As described above, s is used to indicate the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, and r b Used to indicate the interface radius of the robot arm, m a Used to indicate the mass of the robotic arm, m b Used to indicate the mass of a movable object, I a Used to indicate the moment of inertia of the robotic arm, I b Used to indicate the moment of inertia of a movable object, l a It is used to indicate the length of the rigid body that balances the movable object, and g is used to indicate the acceleration due to gravity. Based on this, the kinetic energy for each degree of freedom in the extended coordinate system (i.e., s and α) and its derivative (i.e., and ) and obtain the partial derivatives respectively, and obtain the following formula:
[0213] Subsequently, for and Taking the derivative with respect to time, we get the following formula:
[0214] Subsequently, the third and fourth dynamic equations can be obtained according to the Euler-Lagrange equations, as follows:
[0215] Among them, the first row is used to represent the dynamic equation on the s degree of freedom (i.e., the third dynamic equation, formula B1). Since this degree of freedom is underdriven, the actual input torque on the right side of the equation is 0; the second row is used to represent the dynamic equation on the α degree of freedom (i.e., the fourth dynamic equation, formula B2). The drive on this degree of freedom is the torque τ2 of the motor.
[0216] Then, according to the third dynamic equation (i.e., formula B1), we can get Will Substitute it into the fourth dynamic equation (i.e., formula B2) to determine the second mapping relationship f2. After determining the second mapping relationship, the PID controller can be obtained
[0217] Subsequently, τ2 may be determined based on the second mapping relationship, thereby controlling the robotic arm to move around the second rotation axis.
[0218] 2. Under the 3D model, construct the third mapping relationship.
[0219] In some embodiments, based on a 2D model, control needs to be performed separately based on the XOZ and YOZ planes. However, there is a coupling between these two planes, which the first and second mapping relationships described above ignore. This coupling between the XOZ and YOZ planes is not considered, and the resulting first and second control torques also ignore this coupling. Instead, the first and second control torques are determined independently within the XOZ and YOZ planes, resulting in inadequate control of the robotic arm.
[0220] Based on this, the embodiment of the present application provides the construction of a third mapping relationship under the 3D model. When constructing the third mapping relationship, the coupling between different planes (such as the XOZ plane and the YOZ plane) is fully considered to improve the control accuracy of the robotic arm. In this case, step 130 can be implemented as steps 1321 and 1322, as follows:
[0221] Step 1321: Determine the kinetic energy and potential energy in the three-dimensional space based on the posture information and physical information. The kinetic energy and potential energy are used to construct the Euler-Lagrange equation based on the three-dimensional space.
[0222] Step 1322: Determine a third mapping relationship according to the Euler-Lagrange equation.
[0223] Schematically, the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, and the three-dimensional space includes a first plane and a second plane, the first plane is used to indicate a two-dimensional plane composed of the first direction and the vertical direction, the second plane is used to indicate another two-dimensional plane composed of the second direction and the vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when the robotic arm is extended, the second direction is the direction of the line between the two ends of the robotic arm when the robotic arm is extended, the first direction, the second direction and the vertical direction are perpendicular to each other, and the vertical direction is perpendicular to the line between the two ends of the robotic arm when the robotic arm is extended.
[0224] Similar to the 2D model, the third mapping relationship in the 3D model is primarily determined based on the Euler-Lagrange equations. For example, partial derivatives are solved for each degree of freedom in the kinetic energy and potential energy to obtain different partial derivatives. Subsequently, multiple dynamic equations are determined based on the Euler-Lagrange equations, each constructed based on a single degree of freedom. Finally, the third mapping relationship is determined based on at least one of the dynamic equations.
[0225] With reference to the above content, optionally, step 1322 may be implemented as follows: according to the Euler-Lagrange equation, obtain a first dynamic equation constructed according to the first degree of freedom, a second dynamic equation constructed according to the second degree of freedom, a third dynamic equation constructed according to the third degree of freedom, and a fourth dynamic equation constructed according to the fourth degree of freedom;
[0226] According to the first dynamics equation, the second dynamics equation, the third dynamics equation and the fourth dynamics equation, the third mapping relationship is determined; wherein, the first degree of freedom is the degree of freedom corresponding to the first rotation angle of the robot arm in the first plane, the first dynamics equation is used to describe the driving constraint of the robot arm in the first plane, the second degree of freedom is the degree of freedom corresponding to the second rotation angle of the movable object in the first plane, the second dynamics equation is used to describe the driving constraint of the movable object in the first plane, the third degree of freedom is the degree of freedom corresponding to the straight-line distance between the center of the movable object and the center of the joint that controls the rotation of the robot arm along the first direction, the third dynamics equation is used to describe the driving constraint of the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the robot arm and the plane, and the fourth dynamics equation is used to describe the driving constraint of the robot arm in the second plane.
[0227] Referring to Figure 6, consider the robotic arm in the world coordinate system. The world coordinate system is constructed based on the robotic arm in its initial state. The extended line of the robotic arm is the positive direction of the y-axis. In the initial state, the direction perpendicular to the y-axis and parallel to the ground is the x-axis. When standing with the robotic arm facing the same direction, the direction of the right hand is the positive direction of the x-axis. The z-axis is the direction opposite to gravity, vertically upward, and perpendicular to the ground. This constructs a spatial rectangular coordinate system, also known as the world coordinate system.
[0228] It should be understood that a three-dimensional space can be constructed based on the x, y, and z directions in the world coordinate system, and the three-dimensional space includes a first plane (ie, XOZ plane) and a second plane (ie, YOZ plane).
[0229] As mentioned above, there are two coordinate systems in three-dimensional space: one is the coordinate system shown in Figure 6 (i.e., the robotic arm coordinate system), and the other is the world coordinate system constructed based on the robotic arm's initial posture. The coordinate axes of the world coordinate system are fixed, while the coordinate axes of the robotic arm coordinate system change with the movement of the robotic arm.
[0230] For example, if the first plane is the XOZ plane and the movable object is a bottle placed on the forearm of a robotic arm, the XOZ plane in three-dimensional space can be simplified as shown in Figure 12, and the YOZ plane can be simplified as shown in Figure 13. Here, x, y, and z are the world coordinate system, and x', y', and z' are the robotic arm coordinate system.
[0231] According to the foregoing, since the robotic arm can move about the first and second rotation axes, in a 3D model, it is necessary to divide the three-dimensional space into two planes to determine the mapping relationship. Exemplarily, the third mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship, and the third control information includes a first control torque and a second control torque. The first sub-mapping relationship is used to determine the first control torque, and the second sub-mapping relationship is used to determine the second control torque.
[0232] Referring to Figure 12, the circle in the lower left corner represents the joint that rotates around the robot's forearm. The rectangle connected to it represents the robot's cross-section, and the circle above the rectangle represents the bottle's cross-section. To simplify the bottle model, the shape and cross-sectional area variations of the bottle's head and base are ignored. The bottle is considered a homogeneous rigid body, and its position is evaluated based on its center of mass. Furthermore, the bottle is positioned approximately perpendicular to the robot's forearm, resulting in a rectangular cross-section of the bottle.
[0233] The coordinate system of the robot arm is constructed as follows: along the extension direction of the forearm, the direction from the elbow joint to the wrist joint is positioned as the y' direction, the oblique upward direction perpendicular to the y' direction is the z' direction, and the direction perpendicular to the y'Oz' plane pointing to the right is the x' direction. Based on this, the radius of the cross section of the bottle can be determined as r b , the mass of the bottle is m b , the length of the bottle is l b The moment of inertia of the forearm in the x' and y' directions is I ax , I ay The bottle's rotational inertia on the x' and y' axes is expressed as I bx , I by At the same time, the angle between the XOZ section and the world coordinate system in the horizontal direction is α, and the distance between the center of the bottle and the center of the joint that controls the rotation of the forearm along the y' direction of the forearm is represented by s.
[0234] Referring to Figure 13, the circle below represents the cross-section of the robot's forearm, and the rectangle represents the cross-section of the bottle.
[0235] Based on this, we can get: the horizontal distance between the contact point of the forearm and the bottle and the center of mass of the bottle along the direction of the bottle is d, the angle of rotation of the bottle itself relative to the world system is θ, and the angle of rotation of the forearm relative to the world system is At the same time, on the YOZ section of the forearm, the radius of the circle is r a , the length of the rigid body used to balance the bottle is l a , the mass of the forearm is m a The moment of inertia of the forearm in the x' and y' directions is I ax , I ay The moment of inertia of the bottle in the x' and y' directions is I bx , I by . Referring to Figures 12 and 13, define r = r a +r b , r is the radius of the bottle's cross section b and the radius r of the circle on the YOZ section of the forearm a The sum of ; the rotation matrix is as follows:
[0236] In the XOZ plane, the center of mass of the bottle can be expressed as:
[0237] The center of mass of the bottle is transformed into the world coordinate system through the rotation matrix R, which can be expressed as:
[0238] Where s is used to indicate the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm; Based on the above formula, the time derivative is taken, and it is assumed that θ and is the minimum value, sinθ=0, cosθ=0, It can be considered that the bottle's own attitude angle is close to 0, which can be understood as the bottle will not move away from the direction parallel to the ground, and the rotation angle of the forearm is small. From this, the position of the bottle's center of mass in the world coordinate system can be obtained, which can be expressed as:
[0239] Schematically, the square of the bottle's linear velocity can be determined based on the dynamic system as follows:
[0240] According to the Euler-Lagrange equations, the kinetic energy and potential energy of all rigid bodies in a dynamic system in three-dimensional space must be solved separately. After determining the posture and physical information, the kinetic energy and potential energy in three-dimensional space must be determined.
[0241] For example, the sum of the kinetic energy of all rigid bodies in a dynamic system can be expressed as follows:
[0242] Among them, T represents kinetic energy, U represents potential energy, and v 2 As described above, I ax and I ay They are used to indicate the moment of inertia of the robot arm in the third direction and the fourth direction, I bx and I by They are used to indicate the moment of inertia of the movable object in the third and fourth directions respectively. The third and fourth directions are the x and y directions in the manipulator coordinate system constructed based on the manipulator itself, and g is used to indicate the acceleration due to gravity. Based on this, the kinetic energy for each degree of freedom in the extended coordinate system (i.e., θ and ) and its derivative (i.e. and ) and obtain the partial derivatives respectively, and obtain the following formula:
[0243] Subsequently, for and Taking the derivative with respect to time, we get the following formula:
[0244] Among them, r a Used to indicate the cross-sectional radius of the robotic arm, r b Used to indicate the cross-sectional radius of a movable object, m a Used to indicate the mass of the robotic arm, m b It is used to indicate the mass of a movable object. Subsequently, the first, second, third and fourth dynamic equations can be obtained according to the Euler-Lagrange equations, as follows:
[0245] Among them, the first line is used to express the dynamic equation on the s degree of freedom (i.e., the third dynamic equation, formula 1). Since this degree of freedom is underdriven, the actual input torque on the right side of the equation is 0; the second line is used to express the dynamic equation on the α degree of freedom (i.e., the fourth dynamic equation, formula 2). The drive on this degree of freedom is the torque τ of the motor x The third line is used to express the dynamic equation on the θ degree of freedom (i.e., the second dynamic equation, formula 3). Since this degree of freedom is underdriven, the actual input torque on the right side of the equation is 0. The fourth line is used to express The dynamic equation on the degree of freedom (i.e. the first dynamic equation, formula 4), the drive on this degree of freedom is the torque τ of the motor y .
[0246] In some embodiments, Formulas 1-4 can be simplified as follows:
[0247] For the convenience of the following description, the above forms are marked as follows:
[0248] It should be understood that the above two abbreviated forms exist for the convenience of description. Their essence still refers to Formulas 1-4. This application will not describe the parameters involved in the above abbreviated forms in detail. For details, please refer to the above description of Formulas 1-4. Then, for the first and second rows (i.e., Formulas 1 and 2), we can get And bring it into the second line, we can get τ x and the first sub-mapping relation f of s 31 =(s,τ x ); For the third and fourth rows (i.e., Formula 3 and Formula 4), we can get And bring it into the fourth line, we can get τ y and the second sub-mapping relation f of θ 32 =(θ,τ y The above process can be understood as selecting the second and fourth rows to obtain the following third mapping relationship:
[0249] Among them, f s =[-M -1 CM -1 G] 2.4 ,
[0250] After determining the third mapping relationship, s and θ can be determined by the PID controller, and τ can be determined based on the third mapping relationship. x and τ y, thereby controlling the robotic arm. For example, the PID controller has the following control law:
[0251] Among them, k p 、k d They are proportional control parameters and differential control parameters respectively. These two parameters can be adjusted according to the results of multiple experiments. Furthermore, according to feedback linearization, we can get:
[0252] For example, in When s=θ=0,α=0,τ can be determined x and τ y , used to control the robot arm to move around the first rotation axis and the second rotation axis.
[0253] In summary, the control method for the robotic arm provided in the embodiments of this application provides two implementation methods for constructing mapping relationships, which can be implemented based on 2D and 3D models, respectively. It should be understood that different mapping relationships will result in different control information being determined. The control of the robotic arm can select the corresponding mapping relationship based on actual needs to meet different control requirements, and this application does not impose any restrictions on this.
[0254] Referring to the above, the mapping relationship is used to determine the control information so that the movable object can maintain balance on the robot arm without falling. Referring to Figure 9, step 160 can be implemented as step 164, as follows:
[0255] Step 164: Using the control information, control the robotic arm to perform at least one motion behavior so that the movable object is in a balanced state on the robotic arm.
[0256] The motion behavior of the robot arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0257] With reference to the foregoing, the control information includes the first control torque and / or the second control torque.
[0258] It should be understood that the control information is a torque sequence composed of the control torques of the various joints of the robotic arm, and the motion control of the various joints of the robotic arm will be achieved according to the torque sequence. Based on the interaction of the control torques of the various joints, the robotic arm will be visually presented in two states: static and moving. Among them, the robotic arm visually presents a static state, which can be understood as the movement behavior of the robotic arm is to remain relatively static, that is, based on the control of the various joints of the robotic arm, the robotic arm visually presents a performance that the robotic arm is static. The robotic arm visually presents a moving state, which can be understood as the movement behavior of the robotic arm is to move and / or rotate, that is, based on the control of the various joints of the robotic arm, the robotic arm can visually present a performance that the robotic arm is in motion, and its movement can be the movement and / or rotation of the robotic arm, such as the robotic arm swinging up and down with the shoulder joint as the center, and the robotic arm rotating left and right with the shoulder joint as the rotation center.
[0259] In some embodiments, the control information includes a first control torque, and step 160 can be implemented as follows: based on the first control torque, controlling the robotic arm to move about a first rotation axis so that the movable object is in a balanced state on the robotic arm, the first rotation axis being a straight line perpendicular to the line connecting the two ends of the robotic arm when the robotic arm is extended. In other embodiments, the control information includes a second control torque, and step 160 can be implemented as follows: based on the second control torque, controlling the robotic arm to move about a second rotation axis so that the movable object is in a balanced state on the robotic arm, the second rotation axis being an extension of the line connecting the two ends of the robotic arm when the robotic arm is extended. Schematically, the equilibrium state includes the following two types: a static equilibrium state, in which the movable object is stationary on the robotic arm in the static equilibrium state; and a dynamic equilibrium state, in which the movable object is displaced or rolling on the robotic arm in the dynamic equilibrium state. The static equilibrium state can also be understood as the movable object being stationary relative to the robotic arm, and the dynamic equilibrium state can also be understood as the movable object being stationary relative to the robotic arm after displacing or rolling. In some embodiments, the movable object in a dynamic equilibrium state displaces or rolls on the robotic arm but does not fall off, or it can be understood that the movable object displaces or rolls relative to the robotic arm and remains stationary, and the movable object does not fall off the robotic arm.
[0260] It can be understood that based on the control information, the robotic arm can perform at least one movement behavior, the purpose of which is to make the movable object always stationary on the robotic arm, or the purpose of which is to change the relative position of the movable object and the robotic arm but prevent the immovable object from falling from the robotic arm.
[0261] Referring to Figure 14 , let's take a bottle as an example, placed on the forearm of a robotic arm. After the controller determines the control information, it controls the movement of the various joints of the robotic arm accordingly. Assuming the movable object is in a state of dynamic equilibrium, the bottle can roll on the forearm of the robotic arm. As shown in Figure 14 , the robotic arm makes fine adjustments in the x / y directions, causing the bottle to roll from the left side (near the end of the robotic arm) to the right side (near the shoulder joint) in the figure, preventing it from falling off the robotic arm.
[0262] Based on this, simulation can be implemented, as shown in the multiple views in Figures 15 and 16. For example, the movable object is a bottle placed on the forearm of the robot. Figures 15 (a) and (b) show two side views of the bottle rolling on the robot, while Figures 16 (a) and (b) show two front views of the bottle rolling on the robot.
[0263] With reference to Figures 14 to 16, it should be understood that the control method of the robotic arm provided in the embodiment of the present application can be applied to a robotic arm composed of one or more connecting rods. The movable object can be placed on the forearm or upper arm of the robotic arm, or on an intermediate connecting rod of the robotic arm. The present application does not limit this.
[0264] Optionally, step 164 can be implemented as follows: using control information, controlling the robotic arm to perform at least one movement behavior so that the movable object is in a static equilibrium state, and the movable object in the static equilibrium state is stationary on the robotic arm; using control information, controlling the robotic arm to perform at least one movement behavior so that the movable object is in a dynamic equilibrium state, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm but does not fall.
[0265] In some embodiments, after constructing different mapping relationships, one or more intermediate variables (i.e., the aforementioned According to the control principle of the PID controller, there is a reference value for determining the above variables.
[0266] Exemplarily, when the reference value is the first value, the control information is used to control the robotic arm to perform at least one movement behavior so that the movable object is in a static equilibrium state; when the reference value is not the first value, the control information is used to control the robotic arm to perform at least one movement behavior so that the movable object is in a dynamic equilibrium state.
[0267] The first value can be set according to actual needs. For example, the first value is 0. Optionally, when controlling the movement of the robotic arm, at least one of the control torque, rotation angle, and angular velocity of the robotic arm changes. Referring to Figure 6 , the robotic arm rotates in the x / y direction to fine-tune the position of the movable object on the robotic arm, thereby causing at least one of the control torque, rotation angle, and angular velocity of the robotic arm to change.
[0268] In summary, the control method of the robotic arm provided in the embodiments of the present application provides multiple implementation methods for placing a movable object in a balanced state on the robotic arm, so that the movable object can maintain balance on the robotic arm and not fall.
[0269] For example, the overall control architecture of the robotic arm is shown in FIG17 .
[0270] With reference to the foregoing, the purpose of the control method of the robotic arm is to control the posture and movement of the robotic arm by inputting instructions to the joint motors of the robotic arm. For example, the joint motors of the robotic arm are equipped with joint motor encoders for feedback of the angle, angular velocity and current information of the joint motor rotation. This information can be used to estimate the state of the robotic arm. At the same time, tactile sensors are also installed on the fingers, palms, and certain connecting rods of the robotic arm. Subsequently, the collected tactile signals are collected by the tactile driver for signal and other data processing.
[0271] Optionally, a camera can be installed in the external environment of the robotic arm to obtain visual perception data. Subsequently, the visual perception data and the tactile perception data can be fused. Taking the movable object being a bottle as an example, the state estimation of the bottle (i.e., bottle state estimation) can be obtained through the fusion processing of the perception data. Among them, the relevant description of the fusion processing can refer to the above content. Subsequently, based on the tactile perception information and the position and posture of the bottle obtained by the bottle state estimation, the controller of the robotic arm can be designed. The design of the controller can be based on the Euler-Lagrange model. Among them, the output of the controller can be the position and posture of the end of the robotic arm, or the position and posture of the center of mass of a certain connecting rod of the robotic arm.
[0272] It should be understood that the overall control structure of the robotic arm involved in this application also includes 2D / 3D modeling to construct the dynamic system of the robotic arm and / or movable object, thereby determining the mapping relationship between posture information and control information. Optionally, 2D / 3D modeling can also be used to predetermine the future state of the bottle.
[0273] For details on determining the mapping relationship, please refer to the above content and will not be elaborated on again.
[0274] Referring to FIG13 , the input of the controller also includes an expected value, which is the expected value used in the aforementioned content to determine the intermediate parameter by the PID controller. For related descriptions, please refer to the aforementioned content and will not be repeated here.
[0275] Subsequently, the robot arm model can be applied to calculate the joint angles of each joint using inverse kinematics, taking the position and attitude of the end arm or the position and attitude of the center of mass of the connecting rod. It should be understood that as time passes, the controller outputs a sequence of the end arm's postures or the center of mass attitudes of the connecting rods. This corresponds to a series of inverse kinematics calculations, resulting in a sequence of angular velocities of each joint of the robot arm. This sequence of joint angles and angular velocities is sent to the robot arm, enabling control of the end arm's posture or the position and attitude of the center of mass of a specific connecting rod.
[0276] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, and no further details will be given herein.
[0277] Figure 18 shows a schematic diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application, which includes: an acquisition module 1820 for executing step 120 in the embodiment of Figure 4; a determination module 1840 for executing step 140 in the embodiment of Figure 4; and a control module 1860 for executing step 160 in the embodiment of Figure 4.
[0278] Optionally, the posture information includes first posture information and second posture information, the mapping relationship includes a first mapping relationship and a second mapping relationship, and the control information includes first control information and second control information; the determination module 1840 is used to execute step 141 in the embodiment of Figure 7, where the first control information is used to control the robotic arm to move around the first rotation axis; and execute step 142 in the embodiment of Figure 7, where the second control information is used to control the robotic arm to move around the second rotation axis; wherein the first plane is used to indicate a two-dimensional plane formed by a first direction and a vertical direction perpendicular to a line connecting the two ends of the robotic arm when the robotic arm is extended, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction, the first direction is the direction of a straight line perpendicular to the line connecting the two ends of the robotic arm when the robotic arm is extended, the second direction is the direction of the line connecting the two ends of the robotic arm when the robotic arm is extended, and any two directions of the first direction, the second direction and the vertical direction are perpendicular, the first rotation axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when the robotic arm is extended, and the first rotation axis is located at the end of the robotic arm close to the shoulder joint, and the second rotation axis is an extension of the line connecting the two ends of the robotic arm when the robotic arm is extended, and the second rotation axis passes through the center of the robotic arm.
[0279] Optionally, the first posture information includes a first rotation angle of the robotic arm in a first plane, and the first control information includes a first control torque applied in the roll angle direction of the robotic arm around the first rotation axis; the determination module 1840 is used to determine the first control torque based on a first mapping relationship between the first rotation angle and the first control torque.
[0280] Optionally, the second posture information includes the angle between the robotic arm and the horizontal plane, and the second control information includes the second control torque applied in the pitch angle direction of the robotic arm rotating around the second axis; the determination module 1840 is used to determine the second control torque based on the second mapping relationship between the angle and the second control torque.
[0281] Optionally, the posture information includes third posture information, the mapping relationship includes a third mapping relationship, and the control information includes third control information; the determination module 1840 is used to execute step 143 in the embodiment of Figure 7, and the third control information is used to control the movement of the robotic arm in three-dimensional space; wherein, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when it is extended, the second direction is the direction of the line between the two ends of the robotic arm when it is extended, the vertical direction is perpendicular to the line between the two ends of the robotic arm when it is extended, and any two directions of the first direction, the second direction and the vertical direction are perpendicular; and a first plane and a second plane are formed in the three-dimensional space, the first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. Optionally, the third posture information includes: the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, and the second rotation angle of the movable object in the first plane; the third mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship; the third control information includes: a first control torque applied in the roll angle direction of the robotic arm rotating around the first rotation axis, and a second control torque applied in the pitch angle direction of the robotic arm rotating around the second rotation axis; a determination module 1840 is used to determine the first control torque based on the first sub-mapping relationship between the straight-line distance and the first control torque, and the first control torque is used to control the robotic arm to move around the first rotation axis; and, based on the second sub-mapping relationship between the second rotation angle and the second control torque, determine the second control torque, and the second control torque is used to control the robotic arm to move around the second rotation axis; wherein the first rotation axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when it is extended, and the first rotation axis is located at the end of the robotic arm close to the shoulder joint, and the second rotation axis is an extension line of the line connecting the two ends of the robotic arm when it is extended, and the second rotation axis passes through the center of the robotic arm.
[0282] Optionally, the apparatus further includes a construction module 1880 for executing step 130 in the embodiment of FIG. 8 .
[0283] Optionally, the mapping relationship includes a first mapping relationship and a second mapping relationship; a construction module 1880 is used to execute steps 1311 and 1312 in the embodiment of Figure 9; wherein the first mapping relationship is used to describe the mapping relationship between the first posture information and the first control information in the first plane, and the second mapping relationship is used to describe the mapping relationship between the second posture information and the second control information in the second plane. The first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction perpendicular to the line between the two ends when the robotic arm is extended, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. The first direction is the direction of the straight line perpendicular to the line between the two ends when the robotic arm is extended, and the second direction is the direction of the line between the two ends when the robotic arm is extended. The first direction, the second direction and the vertical direction are perpendicular to each other.
[0284] Optionally, a construction module 1880 is used to obtain a first dynamic equation constructed based on the first degree of freedom and a second dynamic equation constructed based on the second degree of freedom according to the Euler-Lagrange equation; a first mapping relationship is determined according to the first dynamic equation and the second dynamic equation; wherein, the first degree of freedom is the degree of freedom corresponding to the second rotation angle of the robotic arm in the first plane, the first dynamic equation is used to describe the driving constraint on the robotic arm in the first plane, the second degree of freedom is the degree of freedom corresponding to the first rotation angle of the movable object in the first plane, and the second dynamic equation is used to describe the driving constraint on the movable object in the first plane.
[0285] Optionally, a construction module 1880 is used to obtain a third dynamic equation constructed based on the third degree of freedom and a fourth dynamic equation constructed based on the fourth degree of freedom according to the Euler-Lagrange equation; a second mapping relationship is determined according to the third dynamic equation and the fourth dynamic equation; wherein, the third degree of freedom is the degree of freedom corresponding to the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, the third dynamic equation is used to describe the driving constraint on the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane, and the fourth dynamic equation is used to describe the driving constraint on the robotic arm in the second plane.
[0286] Optionally, the mapping relationship includes a third mapping relationship, and the construction module 1880 is used to execute steps 1321 and 1322 in the embodiment of Figure 9; wherein the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, and the three-dimensional space includes a first plane and a second plane, the first plane is used to indicate a two-dimensional plane composed of the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane composed of the second direction and the vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends when the robotic arm is extended, the second direction is the direction of the line between the two ends when the robotic arm is extended, the first direction, the second direction and the vertical direction are perpendicular to each other, and the vertical direction is perpendicular to the line between the two ends when the robotic arm is extended.
[0287] Optionally, a construction module 1880 is used to obtain, based on the Euler-Lagrange equation, a first dynamic equation constructed based on the first degree of freedom, a second dynamic equation constructed based on the second degree of freedom, a third dynamic equation constructed based on the third degree of freedom, and a fourth dynamic equation constructed based on the fourth degree of freedom; and determine a third mapping relationship based on the first dynamic equation, the second dynamic equation, the third dynamic equation, and the fourth dynamic equation; wherein, the first degree of freedom is the degree of freedom corresponding to the first rotation angle of the robotic arm in the first plane, the first dynamic equation is used to describe the driving constraint on the robotic arm in the first plane, the second degree of freedom is the degree of freedom corresponding to the second rotation angle of the movable object in the first plane, the second dynamic equation is used to describe the driving constraint on the movable object in the first plane, the third degree of freedom is the degree of freedom corresponding to the straight-line distance between the center of the movable object and the center of the joint that controls the rotation of the robotic arm along the first direction, the third dynamic equation is used to describe the driving constraint on the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane, and the fourth dynamic equation is used to describe the driving constraint on the robotic arm in the second plane.
[0288] Optionally, the control module 1860 is configured to execute step 164 in the embodiment of FIG. 9 ; wherein the motion behavior of the robotic arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0289] Optionally, the control module 1860 is used to use control information to control the robotic arm to perform at least one movement behavior so that the movable object is in a static equilibrium state, and the movable object in the static equilibrium state is stationary on the robotic arm; and use control information to control the robotic arm to perform at least one movement behavior so that the movable object is in a dynamic equilibrium state, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm.
[0290] The optional acquisition module 1820 is used to obtain posture information from the dynamic system based on a visual sensor; or to obtain posture information from the dynamic system based on a visual sensor and a tactile sensor.
[0291] FIG19 shows a schematic block diagram of the structure of a robotic arm provided in an embodiment of the present application. The robotic arm in this embodiment as shown in FIG19 may include: one or more controllers 1901; one or more sensors 1902, one or more motors 1903 and a memory 1904. The controller 1901, sensor 1902, motor 1903 and memory 1904 are connected via a bus 1905. The memory 1904 is used to store computer programs, which include program instructions. The controller 1901 is used to execute the program instructions stored in the memory 1904. The memory 1904 may include a volatile memory (Volatile Memory), such as a random-access memory (Random-Access Memory, RAM); the memory 1904 may also include a non-volatile memory (Non-Volatile Memory), such as a flash memory (Flash Memory), a solid-state drive (SSD), etc.; the memory 1904 may also include a combination of the above-mentioned types of memory.
[0292] Controller 1901 may be a central processing unit (CPU). Controller 1901 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), or the like. Controller 1901 may also be a combination of the above structures.
[0293] In an embodiment of the present application, the memory 1904 is used to store a computer program, which includes program instructions. The controller 1901 is used to execute the program instructions stored in the memory 1904 to implement the steps of the aforementioned robotic arm control method.
[0294] In one embodiment, the controller 1901 is configured to call program instructions to execute steps 120, 140, and 160 in the embodiment of FIG. 4 . In one embodiment, the posture information includes first posture information and second posture information, the mapping relationship includes a first mapping relationship and a second mapping relationship, and the control information includes first control information and second control information; the controller 1901 is configured to call program instructions to execute step 141 in the embodiment of FIG. 7 , wherein the first control information is used to control the robotic arm to move around the first rotation axis; and execute step 142 in the embodiment of FIG. 7 , wherein the second control information is used to control the robotic arm to move around the second rotation axis; wherein the first plane is used to indicate a two-dimensional plane formed by a first direction and a direction perpendicular to a line connecting two ends of the robotic arm when the robotic arm is extended, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction; the first direction is the direction of a straight line perpendicular to the line connecting two ends of the robotic arm when the robotic arm is extended, and the second direction is the direction of the line connecting two ends of the robotic arm when the robotic arm is extended, and any two of the first direction, the second direction, and the vertical direction are perpendicular; the first rotation axis is a straight line perpendicular to the line connecting two ends of the robotic arm when the robotic arm is extended, and the first rotation axis is located at an end of the robotic arm close to the shoulder joint; the second rotation axis is an extension of the line connecting two ends of the robotic arm when the robotic arm is extended, and the second rotation axis passes through the center of the robotic arm.
[0295] In one embodiment, the first posture information includes a first rotation angle of the robotic arm in a first plane, and the first control information includes a first control torque applied in a roll angle direction of the robotic arm rotating about a first rotation axis. The controller 1901 is configured to call program instructions to execute:
[0296] The first control torque is determined based on a first mapping relationship between the first rotation angle and the first control torque.
[0297] In one embodiment, the second posture information includes the angle between the robotic arm and the horizontal plane, and the second control information includes the second control torque applied in the pitch angle direction of the robotic arm rotating around the second axis; the controller 1901 is configured to call program instructions to execute: determine the second control torque based on the second mapping relationship between the angle and the second control torque.
[0298] In one embodiment, the posture information includes third posture information, the mapping relationship includes a third mapping relationship, and the control information includes third control information; the controller 1901 is configured to call program instructions to execute step 143 in the embodiment of Figure 7, and the third control information is used to control the movement of the robotic arm in three-dimensional space; wherein, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when the robotic arm is extended, the second direction is the direction of the line between the two ends of the robotic arm when the robotic arm is extended, the vertical direction is perpendicular to the line between the two ends of the robotic arm when the robotic arm is extended, and any two directions of the first direction, the second direction and the vertical direction are perpendicular; and a first plane and a second plane are formed in the three-dimensional space, the first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction.
[0299] In one embodiment, the third posture information includes: a straight-line distance along a first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, and a second rotation angle of the movable object in the first plane; the third mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship; the third control information includes: a first control torque applied in the roll angle direction of the robotic arm rotating about the first rotation axis, and a second control torque applied in the pitch angle direction of the robotic arm rotating about the second rotation axis; the controller 1901 is configured to call program instructions to execute:
[0300] Based on a first sub-mapping relationship between the straight-line distance and the first control torque, a first control torque is determined, and the first control torque is used to control the movement of the robotic arm around the first rotation axis; and based on a second sub-mapping relationship between the second rotation angle and the second control torque, a second control torque is determined, and the second control torque is used to control the movement of the robotic arm around the second rotation axis; wherein the first rotation axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when the robotic arm is extended, and the first rotation axis is located at one end of the robotic arm close to the shoulder joint, and the second rotation axis is an extension line of the line connecting the two ends of the robotic arm when the robotic arm is extended, and the second rotation axis passes through the center of the robotic arm.
[0301] In one embodiment, the controller 1901 is configured to call program instructions to execute step 130 in the embodiment of Figure 8. In one embodiment, the mapping relationship includes a first mapping relationship and a second mapping relationship; the controller 1901 is configured to call program instructions to execute steps 1311 and 1312 in the embodiment of Figure 9; wherein the first mapping relationship is used to describe the mapping relationship between the first posture information and the first control information in the first plane, and the second mapping relationship is used to describe the mapping relationship between the second posture information and the second control information in the second plane. The first plane is used to indicate a two-dimensional plane formed by a first direction and a vertical direction perpendicular to a line connecting the two ends of the robotic arm when the robotic arm is extended, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction. The first direction is the direction of a straight line perpendicular to a line connecting the two ends of the robotic arm when the robotic arm is extended, and the second direction is the direction of a line connecting the two ends of the robotic arm when the robotic arm is extended. The first direction, the second direction, and the vertical direction are perpendicular to each other.
[0302] In one embodiment, the controller 1901 is configured to call program instructions to execute: according to the Euler-Lagrange equation, obtain a first dynamic equation constructed according to the first degree of freedom, and a second dynamic equation constructed according to the second degree of freedom; according to the first dynamic equation and the second dynamic equation, determine a first mapping relationship; wherein, the first degree of freedom is the degree of freedom corresponding to the second rotation angle of the robotic arm in the first plane, the first dynamic equation is used to describe the driving constraint of the robotic arm in the first plane, the second degree of freedom is the degree of freedom corresponding to the first rotation angle of the movable object in the first plane, and the second dynamic equation is used to describe the driving constraint of the movable object in the first plane.
[0303] In one embodiment, the controller 1901 is configured to call program instructions to execute: according to the Euler-Lagrange equation, obtain a third dynamic equation constructed according to the third degree of freedom, and a fourth dynamic equation constructed according to the fourth degree of freedom; according to the third dynamic equation and the fourth dynamic equation, determine a second mapping relationship; wherein, the third degree of freedom is the degree of freedom corresponding to the straight-line distance along the first direction between the center of the movable object and the center of the joint that controls the rotation of the robotic arm, the third dynamic equation is used to describe the driving constraint on the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane, and the fourth dynamic equation is used to describe the driving constraint on the robotic arm in the second plane. In one embodiment, the mapping relationship includes a third mapping relationship, and the controller 1901 is configured to call program instructions to execute steps 1321 and 1322 in the embodiment of Figure 9; wherein the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, and the three-dimensional space includes a first plane and a second plane, the first plane is used to indicate a two-dimensional plane composed of the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane composed of the second direction and the vertical direction, the first direction is the direction of the straight line perpendicular to the line connecting the two ends when the robotic arm is extended, the second direction is the direction of the line connecting the two ends when the robotic arm is extended, the first direction, the second direction and the vertical direction are perpendicular to each other, and the vertical direction is perpendicular to the line connecting the two ends when the robotic arm is extended.
[0304] In one embodiment, the controller 1901 is configured to call program instructions for executing:
[0305] According to the Euler-Lagrange equation, a first dynamic equation constructed according to the first degree of freedom, a second dynamic equation constructed according to the second degree of freedom, a third dynamic equation constructed according to the third degree of freedom, and a fourth dynamic equation constructed according to the fourth degree of freedom are obtained; according to the first dynamic equation, the second dynamic equation, the third dynamic equation, and the fourth dynamic equation, a third mapping relationship is determined; wherein, the first degree of freedom is the degree of freedom corresponding to the first rotation angle of the manipulator in the first plane, the first dynamic equation is used to describe the driving constraint on the manipulator in the first plane, the second degree of freedom is the degree of freedom corresponding to the second rotation angle of the movable object in the first plane, the second dynamic equation is used to describe the driving constraint on the movable object in the first plane, the third degree of freedom is the degree of freedom corresponding to the straight-line distance between the center of the movable object and the center of the joint that controls the rotation of the manipulator along the first direction, the third dynamic equation is used to describe the driving constraint on the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the manipulator and the horizontal plane, and the fourth dynamic equation is used to describe the driving constraint on the manipulator in the second plane.
[0306] Sensor 1902 is used to obtain posture information from the dynamics system using a visual sensor, or alternatively, using a visual sensor and a tactile sensor. For more information on posture information, please refer to the previous section and will not be repeated here. Motor 1903 is used to control the movement of the robotic arm and complete the action task based on the control information. Motor 1903 includes the motors for each joint of the robotic arm and the wheel motors.
[0307] Illustratively, an embodiment of the present application further provides a robot including the aforementioned robotic arm, which can be used to implement the robotic arm control methods provided in the aforementioned method embodiments. The structure of the robotic arm can be described with reference to FIG. 19 , and the control methods for the robotic arm can be described with reference to the aforementioned method embodiments, which will not be further described.
[0308] An embodiment of the present application further provides a robotic arm, comprising a controller and a memory, wherein the memory stores at least one program code, which is loaded and executed by the controller to implement the aforementioned method for controlling the robotic arm. An embodiment of the present application further provides a computer device, comprising a processor and a memory, wherein the memory stores at least one program, which is loaded and executed by the processor to implement the aforementioned method for controlling the robotic arm.
[0309] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program is used to be executed by a processor to implement the control method of the above-mentioned robotic arm. Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disc, etc. Among them, the random access memory may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0310] Those skilled in the art will appreciate that all or part of the steps in the above embodiments may be implemented by hardware or by programs instructing the relevant hardware to perform the steps. The programs may be stored in a computer-readable storage medium, which may be a read-only memory, a magnetic disk, or an optical disk. The above are merely optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
[0311] An embodiment of the present application further provides a chip comprising a programmable logic circuit or program, which is used to implement the robotic arm control method provided in each of the above-described method embodiments. An embodiment of the present application further provides a computer program product comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the robotic arm control method described in any of the above-described embodiments.
Claims
1. A method for controlling a robotic arm, wherein a movable object is placed at any position on the robotic arm except the end thereof, the method being executed by a controller of the robotic arm, the method comprising: Acquiring a dynamic system and obtaining posture information associated with the robotic arm from the dynamic system, wherein the dynamic system is constructed at least based on the robotic arm; Determining the control information based on a mapping relationship between the posture information and the control information of the robotic arm; The control information is used to control the movement of the robot arm so that the movable object is in a balanced state on the robot arm.
2. The method according to claim 1, wherein: The posture information includes first posture information and second posture information, the mapping relationship includes first mapping relationship and second mapping relationship, and the control information includes first control information and second control information; the first posture information is used to indicate the posture of the robot arm projected on the first plane, and the second posture information is used to indicate the posture of the robot arm relative to the horizontal plane; The determining the control information based on the mapping relationship between the posture information and the control information of the robotic arm includes: Determine the first control information based on the first mapping relationship, where the first mapping relationship is used to describe a mapping relationship between the first posture information in the first plane and the first control information, and the first control information is used to control the mechanical arm to move around a first rotation axis; and determining the second control information based on the second mapping relationship, wherein the second mapping relationship is used to describe a mapping relationship between the second posture information in a second plane and the second control information, and the second control information is used to control the robot arm to move around a second rotation axis; Among them, the first plane is used to indicate a two-dimensional plane formed by a first direction and a vertical direction perpendicular to a line between two ends of the robotic arm when it is extended, and the second plane is used to indicate another two-dimensional plane formed by a second direction and the vertical direction. The first direction is the direction of a straight line perpendicular to a line between two ends of the robotic arm when it is extended, and the second direction is the direction of a line between two ends of the robotic arm when it is extended. Any two directions among the first direction, the second direction and the vertical direction are perpendicular, the first rotation axis is a straight line perpendicular to a line between two ends of the robotic arm when it is extended, and the first rotation axis is located at one end of the robotic arm close to the shoulder joint, and the second rotation axis is an extension line of the line between two ends of the robotic arm when it is extended, and the second rotation axis passes through the center of the robotic arm.
3. The method according to claim 2, wherein: The first posture information includes a first rotation angle of the mechanical arm in the first plane, the first control information includes a first control torque applied in a roll angle direction of the mechanical arm rotating around the first rotation axis, and determining the first control information based on the first mapping relationship includes: The first control torque is determined based on the first mapping relationship between the first rotation angle and the first control torque.
4. The method according to claim 2, wherein: The second posture information includes an angle between the mechanical arm and a horizontal plane, the second control information includes a second control torque applied in a pitch angle direction of the mechanical arm rotating around a second rotation axis, and the determining the first control information based on the first mapping relationship includes: The second control torque is determined based on the second mapping relationship between the included angle and the second control torque.
5. The method according to claim 1, wherein: The posture information includes third posture information, the mapping relationship includes a third mapping relationship, and the control information includes third control information; The determining the control information based on the mapping relationship between the posture information and the control information of the robotic arm includes: Determine the third control information based on the third mapping relationship, where the third mapping relationship is used to describe a mapping relationship between the third posture information in the three-dimensional space and the third control information, and the third control information is used to control the robot arm to move in the three-dimensional space; The three-dimensional space is composed of a first direction, a second direction and a vertical direction, wherein the first direction is parallel to the machine direction. The first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when it is extended, the second direction is the direction of the line between the two ends of the robotic arm when it is extended, the vertical direction is perpendicular to the line between the two ends of the robotic arm when it is extended, and any two directions among the first direction, the second direction and the vertical direction are perpendicular; and a first plane and a second plane are formed in the three-dimensional space, the first plane is used to indicate a two-dimensional plane formed by the first direction and the vertical direction, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction.
6. The method according to claim 5, wherein: The third posture information includes: the straight-line distance between the center of the movable object and the center of the joint controlling the rotation of the mechanical arm along the first direction, and the second rotation angle of the movable object in the first plane; the third mapping relationship includes a first sub-mapping relationship and a second sub-mapping relationship; the third control information includes: a first control torque applied in the roll angle direction of the mechanical arm rotating around the first rotation axis, and a second control torque applied in the pitch angle direction of the mechanical arm rotating around the second rotation axis; The determining the third control information based on the third mapping relationship includes: Determine the first control torque based on the first sub-mapping relationship between the straight-line distance and the first control torque, where the first control torque is used to control the mechanical arm to move around the first rotation axis; and, based on the second sub-mapping relationship between the second rotation angle and the second control torque, determining the second control torque, wherein the second control torque is used to control the mechanical arm to move around the second rotation axis; Among them, the first rotating axis is a straight line perpendicular to the line between the two ends of the robotic arm when it is extended, and the first rotating axis is located at one end of the robotic arm close to the shoulder joint, and the second rotating axis is an extension line of the line between the two ends of the robotic arm when it is extended, and the second rotating axis passes through the center of the robotic arm.
7. The method according to any one of claims 1 to 6, wherein: The method further comprises: Constructing the mapping relationship according to the posture information and the physical information of the dynamic system; The mapping relationship is used to describe the relationship between the posture information and the control information in a two-dimensional plane or a three-dimensional space.
8. The method according to claim 7, wherein: The mapping relationship includes a first mapping relationship and a second mapping relationship, and constructing the mapping relationship according to the posture information and the physical information of the dynamic system includes: Determine kinetic energy and potential energy in a first plane and a second plane according to the posture information and the physical information, wherein the kinetic energy and the potential energy are used to construct an Euler-Lagrange equation based on the first plane and the second plane, respectively; Determining the first mapping relationship and the second mapping relationship according to the Euler-Lagrange equation; Among them, the first mapping relationship is used to describe the mapping relationship between the first posture information and the first control information in the first plane, the second mapping relationship is used to describe the mapping relationship between the second posture information and the second control information in the second plane, the first plane is used to indicate a two-dimensional plane formed by a first direction and a vertical direction perpendicular to the line between the two ends of the robotic arm when it is extended, and the second plane is used to indicate another two-dimensional plane formed by the second direction and the vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when it is extended, the second direction is the direction of the line between the two ends of the robotic arm when it is extended, and the first direction, the second direction and the vertical direction are perpendicular to each other.
9. The method according to claim 8, characterized in that The determining the first mapping relationship according to the Euler-Lagrange equation includes: According to the Euler-Lagrange equation, a first dynamics equation constructed according to the first degree of freedom and a second dynamics equation constructed according to the second degree of freedom are obtained; Determining the first mapping relationship according to the first dynamics equation and the second dynamics equation; Among them, the first degree of freedom is the degree of freedom corresponding to the second rotation angle of the robotic arm in the first plane, the first dynamics equation is used to describe the driving constraints on the robotic arm in the first plane, and the second degree of freedom is the degree of freedom corresponding to the first rotation angle of the movable object in the first plane, and the second dynamics equation is used to describe the driving constraints on the movable object in the first plane.
10. The method according to claim 8, characterized in that The determining the second mapping relationship according to the Euler-Lagrange equation includes: According to the Euler-Lagrange equation, a third dynamic equation constructed according to the third degree of freedom and a fourth dynamic equation constructed according to the fourth degree of freedom are obtained; Determining the second mapping relationship according to the third dynamic equation and the fourth dynamic equation; Among them, the third degree of freedom is the degree of freedom corresponding to the straight-line distance between the center of the movable object and the center of the joint controlling the rotation of the robotic arm along the first direction, and the third dynamic equation is used to describe the driving constraint on the movable object in the second plane. The fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane, and the fourth dynamic equation is used to describe the driving constraint on the robotic arm in the second plane.
11. The method according to claim 7, wherein: The mapping relationship includes a third mapping relationship, and constructing the mapping relationship according to the posture information and the physical information of the dynamic system includes: Determine kinetic energy and potential energy in a three-dimensional space according to the posture information and the physical information, wherein the kinetic energy and the potential energy are used to construct an Euler-Lagrange equation based on the three-dimensional space; Determining the third mapping relationship according to the Euler-Lagrange equation; Among them, the third mapping relationship is used to describe the mapping relationship between the third posture information and the third control information in the three-dimensional space, the three-dimensional space is composed of a first direction, a second direction and a vertical direction, and the three-dimensional space includes a first plane and a second plane, the first plane is used to indicate a two-dimensional plane composed of the first direction and the vertical direction, the second plane is used to indicate another two-dimensional plane composed of the second direction and the vertical direction, the first direction is the direction of the straight line perpendicular to the line between the two ends of the robotic arm when it is extended, the second direction is the direction of the line between the two ends of the robotic arm when it is extended, the first direction, the second direction and the vertical direction are perpendicular to each other, and the vertical direction is perpendicular to the line between the two ends of the robotic arm when it is extended.
12. The method according to claim 11, characterized in that The determining the third mapping relationship according to the Euler-Lagrange equation includes: According to the Euler-Lagrange equation, a first dynamics equation constructed according to the first degree of freedom, a second dynamics equation constructed according to the second degree of freedom, a third dynamics equation constructed according to the third degree of freedom, and a fourth dynamics equation constructed according to the fourth degree of freedom are obtained; Determining the third mapping relationship according to the first dynamics equation, the second dynamics equation, the third dynamics equation and the fourth dynamics equation; Among them, the first degree of freedom is the degree of freedom corresponding to the first rotation angle of the robotic arm in the first plane, the first dynamics equation is used to describe the driving constraint on the robotic arm in the first plane, the second degree of freedom is the degree of freedom corresponding to the second rotation angle of the movable object in the first plane, the second dynamics equation is used to describe the driving constraint on the movable object in the first plane, the third degree of freedom is the degree of freedom corresponding to the straight-line distance between the center of the movable object and the center of the joint controlling the rotation of the robotic arm along the first direction, the third dynamics equation is used to describe the driving constraint on the movable object in the second plane, the fourth degree of freedom is the degree of freedom corresponding to the angle between the robotic arm and the horizontal plane, the fourth dynamics equation is used to describe the driving constraint on the robotic arm in the second plane.
13. The method according to any one of claims 1 to 6, wherein: The step of controlling the movement of the robotic arm by using the control information so that the movable object is in a balanced state on the robotic arm comprises: Using the control information, control the robotic arm to perform at least one movement behavior so that the movable object is in the balanced state on the robotic arm; The motion behavior of the robotic arm includes at least one of the following behaviors: keeping relatively still, moving, and rotating.
14. The method according to claim 13, characterized in that The using the control information to control the mechanical arm to perform at least one movement behavior so that the movable object is in the balanced state on the mechanical arm includes: Using the control information, the robot arm is controlled to perform the at least one movement behavior so that the movable object The body is in a static equilibrium state, and the movable object in the static equilibrium state is stationary on the mechanical arm; The control information is used to control the robotic arm to perform the at least one movement behavior, so that the movable object is in a dynamic equilibrium state, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm.
15. The method according to any one of claims 1 to 6, characterized in that: The obtaining of posture information associated with the robotic arm from the dynamics system comprises: Based on a visual sensor, obtaining the posture information from the dynamic system; Alternatively, the posture information is obtained from the dynamic system based on the visual sensor and the tactile sensor.
16. A control device for a mechanical arm, capable of placing a movable object at any position on the mechanical arm except the end, the device comprising: An acquisition module, configured to acquire a dynamic system and obtain posture information associated with the robotic arm from the dynamic system, wherein the dynamic system is constructed at least according to the robotic arm; A determination module, configured to determine the control information based on a mapping relationship between the posture information and the control information of the robotic arm; A control module is used to control the movement of the robotic arm using the control information so that the movable object reaches a balanced state on the robotic arm.
17. A controller comprising a memory and a processor; At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the control method of the robotic arm according to any one of claims 1 to 15.
18. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to be executed by a processor to implement the control method of the robot arm according to any one of claims 1 to 15.
19. A chip, comprising a programmable logic circuit and / or program instructions, which is used to implement the control method of the robotic arm as described in any one of claims 1 to 15 when an electronic device equipped with the chip is running.
20. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the control method of the robotic arm as described in any one of claims 1 to 15.
Citation Information
Patent Citations
Robot control method and device, robot and computer readable storage medium
CN113043267A
Control method, device and equipment of mechanical arm and storage medium
CN116945154A
Flexible medical care robot system of self -adaptation
CN205969048U
Robot grabbing arm with automatic balance calibration function
CN211890879U
Live-line work insulation mechanical arm with adjustable length
CN218659074U
Cited By
Low-dimensional equivalent dynamic modeling method for rope cluster driven mechanical arm and high-agility controller
CN119347790A
Interactive motion device
CN119734251A
An interactive motion device
CN119734251B
