Method and apparatus for controlling mechanical arm, and device and storage medium
By constructing a dynamic system and determining control information, the problem of difficulty in balancing objects placed at non-end positions of the robotic arm is solved, and stable operation and flexible use of the robotic arm are achieved.
Patent Information
- Application Number
- PCT/CN2023/085710
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-03
AI Technical Summary
It is difficult for the robotic arm to maintain balance when placing movable objects at non-end positions, resulting in the problem of objects falling.
By building a dynamic system, obtaining attitude information and determining control information based on the desired attitude information, the movement of the robotic arm is controlled to achieve the balance of the movable object on the robotic arm.
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 CN2023085710_03102024_PF_FP_ABST
Abstract
Description
Control method, device, equipment and storage medium of robotic arm Technical Field
[0001] 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
[0002] 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.
[0003] 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.
[0004] Summary of the Invention
[0005] 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:
[0006] 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, the method comprising:
[0007] Acquire a dynamic system constructed at least according to the robotic arm, and obtain posture information from the dynamic system;
[0008] Determining control information of the robotic arm based on the posture information and desired posture information of the dynamic system, wherein the desired posture information is used to indicate posture information that enables the movable object to maintain balance on the robotic arm;
[0009] The control information is used to control the movement of the robotic arm until the movable object reaches a balanced state on the robotic arm.
[0010] According to one aspect of the present application, a control device for a robotic arm is provided, the device comprising:
[0011] An acquisition module, configured to acquire a dynamic system constructed at least according to the robotic arm and obtain posture information from the dynamic system;
[0012] a determination module, configured to determine control information of the robotic arm based on the posture information and expected posture information of the dynamic system, wherein the expected posture information is used to indicate posture information that enables the movable object to maintain balance on the robotic arm;
[0013] The control module is used to control the movement of the robotic arm by using the control information until the movable object reaches a balanced state on the robotic arm.
[0014] According to one aspect of the present application, a robotic arm is provided, which includes a memory and a controller; at least one program code is stored in the memory, and the program code is loaded and executed by the controller to implement the above-mentioned control method of the robotic arm.
[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. Control information for the robotic arm can be determined based on at least posture information of a dynamic system constructed based on the robotic arm and desired posture information, thereby enabling control of the robotic arm. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] FIG1 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0022] FIG2 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0023] FIG3 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0024] FIG4 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0025] FIG5 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0026] FIG6 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0027] FIG7 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0028] FIG8 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0029] FIG9 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0030] FIG10 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0031] FIG11 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0032] FIG12 is a schematic diagram of a robot arm performing balancing according to an exemplary embodiment of the present application;
[0033] FIG13 is a schematic diagram of an overall control architecture of a robotic arm provided by an exemplary embodiment of the present application;
[0034] FIG14 is a schematic diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application;
[0035] FIG15 is a structural block diagram of a robotic arm provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0037] 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.
[0038] In related technologies, the use of rigid connectors and / or outer shells of robotic arms to complete operational tasks is not considered. The main reasons are: first, the appearance of the robotic arm is generally a curved design and does not have a large flat surface; second, if there is no grasping mechanism design such as robotic fingers, the contact between the appearance of the robotic arm and external objects will not form a shape closure and a force closure, which will make the control of the robotic arm more difficult.
[0039] FIG1 shows a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application.
[0040] 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.
[0041] 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.
[0042] The driving assembly 30 includes at least two driving sources 301 and at least two driving ropes 302 ; each of the at least two driving 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 driving rope 302 .
[0043] At least two driving sources 301 include 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;
[0045] 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 .
[0046] The robot arm of the present disclosure includes a first mechanical joint 10, a second mechanical joint 20 and a drive assembly 30, wherein 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 member 102 of the first mechanical joint 10, the second movable member 202 of the second mechanical joint 20, and the first fixed member 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 member 202 to move relative to the first movable member 202 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.
[0047] 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.
[0048] In some possible implementations, the at least two driving sources 301 include a motor and a driving sheave, the motor and the driving sheave are connected via a transmission mechanism, and the motor drives the driving sheave to rotate via the transmission mechanism.
[0049] The driving rope 302 is wound around the driving rope pulley. When the driving rope pulley rotates, the driving rope 302 can be tightly wound around it, thereby generating traction on at least one of the first fixed member 101, the first movable member 102 and the second movable member 202 through the driving rope 302.
[0050] In some possible implementations, the transmission mechanism includes but is not limited to a belt transmission mechanism, a gear transmission mechanism, a worm gear transmission mechanism, and the like.
[0051] 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.
[0052] 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.
[0053] In some possible implementations, the first operating mode and the second operating mode, for example, can be different operating modes formed according to whether the rotation directions of at least two driving sources 301 are different or the same; they can also be different operating modes formed according to whether the rotation speeds of at least two driving sources 301 are different or the same; they can also be different operating modes formed according to whether the rotation directions and rotation speeds of at least two driving sources 301 are different or the same.
[0054] In some embodiments, in the first operating mode, at least two driving sources 301 rotate in the same direction, and in the second operating mode, at least two driving sources 301 rotate in opposite directions.
[0055] Therefore, 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 driving sources 301. It has a simple structure and high coupling control efficiency.
[0056] In some embodiments, in the first operating mode, at least two driving sources 301 rotate in opposite directions, and in the second operating mode, at least two driving sources 301 rotate in the same direction.
[0057] In addition, illustratively, in the first working mode and the second working mode, the rotation speed and output torque of at least two driving sources 301 are the same.
[0058] As shown in Figure 1, in some embodiments, at least two driving sources 301 are located on the side of the first fixed member 101 away from the first movable member 102, and at least two driving ropes 302 pass through the first fixed member 101 to be connected to the first movable member 102, and pass through the second fixed member 201 to be connected to the second movable member 202.
[0059] Thus, in the robotic arm of this embodiment, at least two driving sources 301 are arranged on the side of the first fixed part 101 away from the first movable part 102, the driving rope 302 passes through the first fixed part 101 and is connected to the first movable part 102, and passes through the second fixed part 201 and is connected to the second movable part 202. The mass of at least two driving sources 301 is concentrated on the side where the first fixed part 101 is located, and the mass of the side where the first movable part 102, the second fixed part 201 and the second movable part 202 are located is relatively small, which is conducive to increasing the moment of inertia of the side structure and improving its operating performance.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] In some possible implementations, the robotic arm further includes a robotic wrist joint, a robotic shoulder joint connected to a robotic elbow joint, and a robotic wrist joint connected to a mechanical elbow joint to form a complete robotic arm.
[0066] In some possible implementations, at least two driving sources 301 are located inside the second movable member 202 , connected to the second movable member 202 , and move along with the second movable member 202 .
[0067] 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.
[0068] 2 , in some embodiments, the first mechanical joint 10 further includes a third fixing member 103; the first fixing member 101 is rotatably connected to the third fixing member 103. Thus, the first mechanical joint 10 includes the third fixing member 103, the first fixing member 101, and the first movable member 102, which are rotatably connected in sequence.
[0069] In some possible implementations, the first mounting member 101 is driven by the shoulder drive assembly to rotate relative to the second mounting member 201, simulating the lifting motion of the human shoulder joint. The second mounting member 201 is fixedly connected to the robot's torso or other supporting structure, providing support for the entire robotic arm.
[0070] 2 , in some embodiments, the second mechanical joint 20 further includes a first connecting member 203 , the second fixing 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 .
[0071] Thus, in the robotic arm of this embodiment, the second fixed part 201 in the second mechanical joint 20 is rotatably connected to the second movable part 202 through the first connecting part 203, so that the second axis 002 can be set at a position farther away from the second fixed part 201, so that the angle at which the second movable part 202 can rotate relative to the second fixed part 201 is significantly expanded.
[0072] In addition, the robotic arm of this embodiment reduces the difficulty of wiring the drive rope 302 of the robotic elbow joint, which is beneficial to reducing the difficulty of assembling and maintaining the robotic elbow joint.
[0073] 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.
[0074] 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.
[0075] Referring to Figure 3, taking the first mechanical joint 10 as a mechanical shoulder joint as an example, in the low-inertia differential shoulder joint structure of a robotic arm with 7 degrees of freedom, a differential rope drive mechanism is used at the shoulder, which will be able to reduce the weight of the mechanism and place the motor module at the rear, and in some cases can also achieve torque superposition.
[0076] The shoulder joint's third degree of freedom utilizes a pair of large and small pulleys, driven by a rope, further improving transmission precision and reducing weight. Finally, the drive modules for the wrist and elbow joints are placed behind the shoulder joint module, reducing the weight of the entire robotic arm.
[0077] Based on this, the structure of the robotic arm will be easy to modularize, thereby simplifying the manufacturing process of the robotic arm.
[0078] Referring to the above, the end of a robotic arm is usually used to complete an operation task. The present application provides a control method for a robotic arm that can complete a balancing task using a non-end of the robotic arm, thereby allowing a movable object to maintain balance at a position on the robotic arm other than the end.
[0079] Among them, 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 multiple 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 the 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 the robotic arm connected to the end of the robotic arm away from the shoulder joint, 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.
[0080] With reference to FIG1 , it should be understood that when the robotic arm is mounted on the robot body, the second movable member 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.
[0081] 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. For example, the movable object can be a bottle, a rod, a sphere, an irregular object, etc. It should be understood that the movable object is a non-fixed object that can be placed at any position on the robotic arm except the end and is not fixed to the robotic arm. Furthermore, the movable object is placed at any position on the robotic arm except the end, and part of the outer surface of the movable object is in contact with the robotic arm, while the other outer surfaces do not contact the robotic arm.
[0082] Taking a bottle as an example of a movable object, for a robotic arm with multiple degrees of freedom, the control method of the robotic arm provided in the embodiment of the present application uses a non-end link of the robotic arm (such as the forearm of the robotic arm) to achieve the goal of keeping the bottle balanced on the surface of the forearm of the robotic arm without falling.
[0083] It should be understood that the control method provided in the embodiment of the present application can be implemented by the controller of the aforementioned robotic arm. The controller can be set in the robotic arm or outside the robotic arm and connected to the robotic arm by wire or wirelessly to control the movement of the robotic arm.
[0084] FIG4 illustrates a method for controlling a robotic arm according to an exemplary embodiment of the present application, and FIG5 illustrates a schematic diagram of a robotic arm performing balancing according to an exemplary embodiment of the present application. A movable object is placed at any position on the robotic arm except at the end. For a description of the movable object, reference may be made to the aforementioned content. Referring to FIG5 , taking the movable object as an example, a bottle 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:
[0085] Step 120: Acquire a dynamic system constructed at least according to the robotic arm, and obtain posture information from the dynamic system.
[0086] Schematically, a dynamic system is used to describe the forces and / or motions of a 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.
[0087] 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.
[0088] 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.
[0089] In some embodiments, as shown in FIG6 , a dynamic system is constructed based on a robotic arm.
[0090] When the robotic arm is fully extended, connect the two ends of the robotic arm, and the direction of the straight line perpendicular to the line connecting the two ends when the robotic arm is extended is the x-direction, the direction of the line connecting the two ends when the robotic arm is extended is the y-direction, and the direction of the perpendicular line perpendicular to the robotic arm when it is extended is the z-direction. For example, the x-direction is the first direction involved in the embodiment of the present application, and the y-direction is the second direction involved in the embodiment of the present application.
[0091] Based on this, the line perpendicular to the line connecting the two ends of the robotic arm when extended is the x-axis (also called the first rotation axis), which is 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 called the second rotation axis), which passes 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.
[0092] Among them, the extension line of the robotic arm is the extension direction of the robotic arm when the robotic arm is straightened. Exemplarily, the vertical direction and the direction of the earth's gravity are on the same straight line, and the horizontal plane is the plane where the horizontal direction perpendicular to the earth's gravity is located. Exemplarily, Figure 6 shows the extension line of the robotic arm when it is straightened. Exemplarily, the extension line is a ray pointing from the end of the robotic arm to the outside of the robotic arm. The direction of the extension line is parallel to the direction of the center of mass of the forearm of the robotic arm and the end of the robotic arm. For example, in Figure 6, the extension line is parallel to the y-axis. Exemplarily, the extension line in Figure 6 starts from the forearm of the robotic arm, and the exemplary extension line can start from any position on the robotic arm. In another implementation, the direction of the extension line can be indicated by a ray starting from a position outside the robotic arm; this embodiment is not limited.
[0093] It should be understood that the x-, y-, and z-axes form a coordinate system, and the positions of the coordinate axes change with the movement of the robotic arm. That is, the x-axis is always a line perpendicular to the line connecting the two segments of the robotic arm when extended, and this line should be parallel to or tangent to the upper surface of the robotic arm; the y-axis is always an extension of the line connecting the two ends of the robotic arm when extended; and the z-axis is always a line perpendicular to the robotic arm when extended, and this line should be perpendicular to the upper surface of the robotic arm.
[0094] 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 in the x-direction, and the bottom of the cylinder is in the plane formed by the y-axis and the z-axis.
[0095] Schematically, after the dynamic system is constructed, the posture information of the dynamic system can be obtained.
[0096] Among them, the posture information is used to indicate the information associated with at least the manipulator obtained based on the dynamic system. According to the above content, the dynamic system is used to describe the force and / or motion relationship of the manipulator when keeping the movable object in balance. Correspondingly, the posture information is used to describe the posture of the manipulator when keeping the movable object in balance. Optionally, the posture information includes at least one of the following information: torque information of the manipulator, motion information of the manipulator, and motion information of the movable object. For example, the posture information includes the position coordinates and movement speed of the contact position between the manipulator and the movable object (which can be understood as the motion information of the manipulator), and / or the offset and offset speed in the x direction between the center of mass of the movable object and the center of gravity of the manipulator (which can be understood as the motion information of the movable object). For another example, the posture information can also include at least one of the torque magnitude, torque direction, and torque action position when the manipulator moves and / or rotates (which can be understood as the torque information of the manipulator). It should be understood that the posture information is obtained according to actual needs and this application does not limit this.
[0097] In some embodiments, posture information can be obtained based on a visual sensor. 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 position coordinates and moving speed of the contact position based on the geometric center of the movable object, and determining the offset and offset speed based on the center of mass position of the movable object.
[0098] In other embodiments, posture information can also be obtained based on visual sensors and tactile sensors. For example, tactile sensors can be installed on the outer shell of the robotic arm to collect tactile signals corresponding to the placement of a movable object on the robotic arm. Based on this, the specific position of the movable object on the robotic arm can be accurately determined, and the posture information can be determined by combining it with relevant information about the robotic arm.
[0099] Step 140: Determine control information of the robotic arm based on the posture information and the expected posture information of the dynamic system.
[0100] Illustratively, the expected posture information is used to indicate posture information that enables the movable object to maintain balance on the robotic arm. For the relevant description of the posture information, please refer to the above content and will not be repeated here.
[0101] 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.
[0102] Optionally, the expected posture information can be determined according to actual needs. For example, the dynamic system constructed based on the robotic arm and the movable object estimates the state of the movable object and the robotic arm respectively, and determines the state of the movable object at the next moment based on the interaction between the movable object and the robotic arm. At this time, based on the state of the movable object at the next moment, it can be determined whether the movable object is in a relatively stable equilibrium state on the robotic arm. If the contact position between the movable object and the robotic arm, the center of mass of the movable object, and the center of gravity of the robotic arm are located at the same point, the movable object is in a relatively stable equilibrium state on the robotic arm. At this time, it can be expected that the movable object is in a static equilibrium state on the robotic arm, thereby determining the expected posture information.
[0103] The movable object in a static equilibrium state is stationary on the robotic arm, which can also be understood as the robotic arm and the movable object being in a relatively static state. Assuming that the desired posture information is the desired offset and desired offset velocity in the x-direction between the center of mass of the movable object and the center of gravity of the robotic arm, the desired posture information can be set to 0, indicating that the movable object is expected to be stationary on the robotic arm.
[0104] Subsequently, to ensure that the movable object remains balanced on the robotic arm at the next moment, the robotic arm must be controlled to adjust its state. Based on the dynamic system constructed by the robotic arm, inverse kinematics can be used to determine control information for each joint of the robotic arm, such as joint angles and joint angular velocities. Subsequently, the joints of the robotic arm are controlled based on this control information, thereby achieving the goal of maintaining the movable object in balance on the robotic arm.
[0105] In some embodiments, the control method of the robotic arm provided in the embodiments of the present application can be implemented by a Proportional-Integral-Differential (PID) controller.
[0106] 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.
[0107] Based on this, step 140 can be implemented as: determining the difference between the posture information and the expected posture information; and determining the control information of the robotic arm according to the difference.
[0108] Optionally, the control information is further determined based on at least one of a proportional control parameter, a differential control parameter, and an integral control parameter. In this case, the control information is determined by the sum of the difference between the posture information and the expected posture information and the product of the above three parameters.
[0109] As previously mentioned, since the robotic arm can rotate about the x-axis and / or the y-axis, the control information can also be categorized accordingly. For example, the control information includes at least the control torques of the robotic arm in the x-direction and the y-direction. For example, the control information includes the torque applied in the roll direction of the robotic arm when rotating about the x-axis (also referred to as the first control torque). For another example, the control information includes the torque applied in the pitch direction of the robotic arm when rotating about the y-axis (also referred to as the second control torque).
[0110] After the first control torque and the second control torque are determined, the robotic arm can be controlled so that the movable object maintains balance on the robotic arm and does not fall.
[0111] As previously mentioned, the posture information includes: the position coordinates and movement speed of the contact point between the manipulator and the movable object, and / or the offset amount and offset speed between the center of mass of the movable object and the center of gravity of the manipulator in the x-direction. Correspondingly, the expected posture information includes: the expected coordinates and expected movement speed of the contact point between the manipulator and the movable object, and / or the expected offset amount and expected offset speed between the center of mass of the movable object and the center of gravity of the manipulator in the x-direction.
[0112] In some embodiments, if the desired posture information is 0, it can be understood that the movable object is expected to be in a static equilibrium state, so that the movable object remains stationary on the robotic arm. In other embodiments, if the desired posture information is not 0, it can be understood that the movable object is expected to be in a dynamic equilibrium state, so that the movable object can move or roll on the robotic arm without falling.
[0113] Exemplarily, when the control information includes a first control torque and a second control torque, the first control torque can be determined based on the position coordinates and moving speed of the contact position between the robotic arm and the movable object, and the expected coordinates and expected moving speed of the contact position between the robotic arm and the movable object; at the same time, the second control torque can be determined based on the offset and offset speed in the x-direction between the center of mass of the movable object and the center of gravity of the robotic arm, and the expected offset and expected offset speed in the x-direction between the center of mass of the movable object and the center of gravity of the robotic arm.
[0114] It should be understood that the robotic arm referred to in this application can be understood as the rigid body of the entire robotic arm that is strongly associated with the task of balancing a movable object. For example, if the entire robotic arm includes a shoulder joint, an upper arm, and a lower arm, and the movable object is placed on the lower arm of the robotic arm, then the robotic arm referred to in this application can refer to the lower arm of the entire robotic arm.
[0115] Step 160: Using the control information, control the movement of the robotic arm until the movable object reaches a balanced state on the robotic arm.
[0116] After the control information is determined, the robotic arm can be controlled according to the control information.
[0117] With reference to the foregoing, the control information includes the first control torque and / or the second control torque.
[0118] In some embodiments, the control information includes a first control torque, and step 160 may be implemented as follows: controlling the robotic arm to move about a first rotation axis based on the first control torque, where the first rotation axis is a line perpendicular to a 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 may be implemented as follows: controlling the robotic arm to move about a second rotation axis based on the second control torque, where the second rotation axis is an extension of the line connecting the two ends of the robotic arm when the robotic arm is extended.
[0119] As previously mentioned, the desired posture information indicates the posture information that enables the movable object to maintain 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 to maintain balance on the robotic arm; the motion behavior of the robotic arm includes at least one of the following: maintaining relative stillness, moving, and rotating.
[0120] 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.
[0121] Illustratively, the equilibrium state indicates that the movable object is in a state of balanced forces. At this point, the movable object may be stationary or may be in a state of slight motion relative to the robotic arm (e.g., slight, uniform movement). Furthermore, the equilibrium state indicates that the movable object is in a state of balanced forces and is stationary.
[0122] The equilibrium states may include the following two types: a static equilibrium state, in which the movable object is stationary on the robotic arm (or the movable object can be understood as being stationary relative to the robotic arm); and a dynamic equilibrium state, in which the movable object is displaced or rolled on the robotic arm (or the movable object is displaced or rolled relative to the robotic arm and is stationary). In some embodiments, the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm but does not fall off.
[0123] It can be understood that the control information determined based on the posture information and the expected posture information 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.
[0124] 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.
[0125] 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:
[0126] Using the control information at the first moment, control the movement of the robotic arm at the second moment;
[0127] Using the control information at the second moment, the movement of the robotic arm at the third moment is controlled;
[0128] Repeat the above steps until the robotic arm makes the movable object reach a balanced state on the robotic arm at the nth moment.
[0129] The first moment is earlier than the second moment, the second moment is earlier than the third moment, the third moment is earlier than the nth moment, and n is a positive integer greater than 3.
[0130] It can be understood that after constructing the dynamic system, the control information for the next moment can be determined based on the current posture information and the desired posture information, and the robot arm's movement at the next moment can be controlled accordingly. Subsequently, the control information for the next moment can be determined based on the posture information and the desired posture information, and the robot arm's movement can be controlled accordingly. After repeating these steps one or more times, the robot arm's movement at a certain moment will cause the movable object to reach a state of equilibrium on the robot arm, at which point the robot arm's motion control will cease.
[0131] That is, after determining the control information for the next moment based on the current and desired posture information, the robotic arm will move, causing the posture information and desired 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 has been reached, which becomes the new current moment. If the movable object reaches a state of equilibrium on the robotic arm, control of the robotic arm is terminated; if equilibrium is not reached, the posture information and desired posture information for the next moment (relative to the new current moment) are acquired again, and control of the robotic arm is repeated.
[0132] In summary, the embodiments of the present application provide a novel method for using a robotic arm, capable of maintaining balance on a movable object at any position on the robotic arm except at the end thereof, without causing it to fall. Control information can be determined based on posture information corresponding to at least a dynamic system constructed based on the robotic arm and desired posture information, thereby achieving control of the robotic arm.
[0133] 4 , FIG7 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. Step 140 can be implemented as steps 141 and 142 as follows:
[0134] Step 141: Determine the difference between the posture information and the expected posture information.
[0135] Step 142: Determine control information based on the aforementioned difference.
[0136] Illustratively, the expected posture information is used to indicate the posture information that enables the movable object to maintain balance on the robotic arm. For the relevant description of the posture information and the expected posture information, please refer to the above content and will not be repeated here.
[0137] 6 , in some embodiments, the posture information includes: the position coordinates and movement speed of the contact point between the manipulator and the movable object, and / or the offset amount and offset speed between the center of mass of the movable object and the center of gravity of the manipulator in the x-direction. Correspondingly, the expected posture information includes: the expected coordinates and expected movement speed of the contact point between the manipulator and the movable object, and / or the expected offset amount and expected offset speed between the center of mass of the movable object and the center of gravity of the manipulator in the x-direction.
[0138] Based on this, the difference between the posture information and the expected posture information is at least one of the following differences: the difference between the position coordinates and the expected coordinates, the difference between the moving speed and the expected moving speed, the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed.
[0139] With reference to the foregoing, in some embodiments, the control method for the robotic arm provided in the embodiments of the present application is performed by a PID controller, and the control information is further determined based on at least one of a proportional control parameter, a differential control parameter, and an integral control parameter. According to the control principle of the PID controller, taking the control information as the control torque as an example, the PID controller can be implemented using the following formula:
[0140] Among them, τ is used to indicate the control torque, a is used to indicate the attitude information, The first-order derivative used to indicate attitude information, a ref 、 Used to indicate the expected posture information, k p 、k d 、k i are proportional control parameter, differential control parameter, integral control parameter, respectively, t s , t f Used to indicate the start and end time respectively.
[0141] The expected posture information may be determined according to actual needs, which will be described in detail below.
[0142] According to the foregoing, the control information includes a first control torque and / or a second control torque. The first control torque is used to indicate the torque applied in the roll direction of the manipulator arm when it rotates about a first rotation axis, where the first rotation axis is a line perpendicular to the line connecting the two ends of the manipulator arm when it is extended. The second control torque is used to indicate the torque applied in the pitch direction of the manipulator arm when it rotates about a second rotation axis, where the second rotation axis is an extension of the line connecting the two ends of the manipulator arm when it is extended.
[0143] Based on this, FIG8 shows a flowchart of a method for controlling a robotic arm according to an exemplary embodiment of the present application, with reference to FIG4 . Step 140 can be implemented as steps 1431 and 1432, and / or as steps 1441 and 1442, and step 160 can be implemented as steps 1601 and / or 1602. That is, there are two optional implementations of steps 141 and 160:
[0144] 1. Control the movement of the robotic arm in the roll angle direction according to the first control torque.
[0145] In some embodiments, the posture information includes the position coordinates and movement speed of the contact position between the robotic arm and the movable object, the expected posture information includes the expected coordinates and expected movement speed of the contact position, and the control information includes the first control torque.
[0146] Step 1431: Determine the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed.
[0147] Step 1432: Determine a first control torque according to the difference between the position coordinate and the expected coordinate, and the difference between the moving speed and the expected moving speed.
[0148] Step 1601: Control the robotic arm to move around the first rotation axis according to the first control torque.
[0149] Among them, the first control torque is used to indicate the torque applied in the roll angle direction of the robotic arm rotating around the first axis. The first axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when it is extended, and the first axis is located at one end of the robotic arm close to the shoulder joint.
[0150] Referring to Figure 6, the first rotation axis is the x-axis. The first control torque determined based on step 1432 is the torque applied in the roll angle direction of the robot arm rotating around the x-axis, so that the robot arm can move around the x-axis, thereby adjusting the contact position between the robot arm and the movable object.
[0151] In some embodiments, the determination of the first control torque can be implemented by a PID controller. Based on this, the determination of the first control torque can be implemented by the following formula:
[0152] Schematically, τ1 is the first control torque, α is the position coordinate of the contact position between the manipulator and the movable object, is the moving speed of the contact position between the manipulator and the movable object, α ref and Used to indicate the expected coordinates and expected moving speed, k p1 、k d1 、k i1 are proportional control parameter, differential control parameter, integral control parameter, respectively, t s , t f They are used to indicate the start and end time respectively. Based on the real machine feedback of the robot arm and determined according to the dynamic system, α ref and Determine according to actual needs, k p1 、k d1 、k i1 It can be adjusted based on the results of multiple experiments.
[0153] According to the above formula, a first control torque can be determined based on the posture information (i.e., the position coordinates and movement speed of the contact point between the robot arm and the movable object) and the desired posture information (i.e., the desired coordinates and desired movement speed of the contact point between the robot arm and the movable object), thereby achieving movement of the robot arm in the roll angle direction. Based on this, referring to Figures 5 and 6 , assuming that the movable object is a bottle and the positive direction of the y-axis is the forward direction, the controller can adjust the vertical rotation of the robot arm using the first control torque, thereby changing the contact position between the bottle and the robot arm.
[0154] For example, if the bottle is cylindrical and its geometric center is slightly forward of the center of the robotic arm, the first control torque can be used to control the robotic arm to lift or press downward, bringing the bottle's geometric center closer to the center of the robotic arm, thereby reducing the risk of the bottle falling off the robotic arm. Similarly, if the bottle's geometric center is slightly behind the center of the robotic arm, the first control torque can be used to control the robotic arm to lift or press downward, similarly bringing the bottle's geometric center closer to the center of the robotic arm.
[0155] 2. Control the movement of the robotic arm in the pitch angle direction according to the second control torque.
[0156] In other embodiments, the posture information includes the offset and offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, the expected posture information includes the expected offset and expected offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, and the control information includes the second control torque.
[0157] Step 1441: Determine the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed.
[0158] Step 1442: Determine a second control torque according to the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed.
[0159] Step 1602: According to the second control torque, control the robotic arm to rotate around the second rotation axis.
[0160] Among them, the second control torque is used to indicate the torque applied in the pitch angle direction of the robotic arm when it rotates around the second rotation axis. The first rotation axis is a straight line perpendicular to the line between 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; the second rotation axis is the extension line of the line between the two ends of the robotic arm when it is extended, and the second rotation axis passes through the center of the robotic arm.
[0161] Referring to Figure 6 , the first rotation axis is the x-axis, and the second rotation axis is the y-axis. The second control torque determined in step 1442 is a torque applied in the pitch angle direction of the robotic arm's rotation about the y-axis, thereby enabling the robotic arm to move about the y-axis and thereby adjusting the offset between the center of mass of the movable object and the center of gravity of the robotic arm on the x-axis.
[0162] In some embodiments, the second control torque can be determined by a PID controller. Based on this, the second control torque can be determined by the following formula:
[0163] Schematically, τ2 is the second control torque, x is the offset between the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, is the displacement speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first axis, x ref and Used to indicate the expected offset and expected offset speed, respectively, k p2 、k d2 、k i2 are proportional control parameter, differential control parameter, integral control parameter, respectively, t s , t f Used to indicate the start and end time respectively. Based on the real machine feedback of the robot arm and determined according to the dynamic system, x ref and Determine according to actual needs, k p2 、k d2 、k i2 It can be adjusted based on the results of multiple experiments.
[0164] According to the above formula, the second control torque can be determined based on the robot attitude information (i.e., the offset and offset speed between the center of mass of the movable object and the center of gravity of the robot arm on the x-axis) and the desired attitude information (i.e., the desired offset and desired offset speed between the center of mass of the movable object and the center of gravity of the robot arm on the x-axis), thereby achieving movement of the robot arm in the pitch angle direction. Based on this, referring to Figures 5 and 6, taking the movable object as a bottle and the positive axis direction of the y-axis as the forward direction as an example, the controller can adjust the clockwise or counterclockwise rotation of the robot arm using the second control torque, thereby changing the relative position of the center of mass of the movable object and the center of gravity of the robot arm on the x-axis.
[0165] Similar to the first control torque, assuming the bottle is a cylinder, the second control torque can be used to adjust the relative positions of the bottle's center of mass and the robotic arm's center of gravity on the x-axis. For example, if the bottle's center of mass is to the left of the robotic arm's center of gravity, the second control torque can be used to control the robotic arm's clockwise rotation to bring the bottle's center of mass closer to the robotic arm's center of gravity. Alternatively, if the bottle's center of mass is to the right of the robotic arm's center of gravity, the second control torque can be used to control the robotic arm's counterclockwise rotation to similarly bring the bottle's center of mass closer to the robotic arm's center of gravity.
[0166] In some embodiments, the control information includes a first control torque and a second control torque.
[0167] At this time, the posture information includes: the position coordinates of the contact position between the robot arm and the movable object (i.e., the aforementioned α) and the moving speed (i.e., the aforementioned ), and the displacement of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first axis of rotation (i.e., the aforementioned x) and the displacement speed (i.e., the aforementioned ); The expected posture information includes the expected coordinates of the contact position (ie the aforementioned α ref ) and the desired moving speed (i.e. the aforementioned ), and the expected offset between the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first axis of rotation (i.e., the aforementioned x ref ) and the expected migration velocity (i.e. ).
[0168] Based on this, the controller can be implemented by the following formula:
[0169] Among them, τ1, τ2, k p1 、k d1 、k i1 、k p2 、k d2 、k i2For the related description of , please refer to the above content and will not be repeated here. Optionally, the above τ1 and τ2 may be determined by one controller, or by two controllers respectively, which is not limited in this application.
[0170] Schematically, for the desired posture information (i.e. the aforementioned α ref 、 x ref and ), can be determined according to actual needs. Among them, since α is used to indicate the position coordinates, α ref Used to indicate the expected coordinates, it can be quantified. For example, if the expected coordinates are the midpoint coordinates of the robot arm, the expected coordinates can be defined as α ref =0.
[0171] In some embodiments, based on the state estimation of the robotic arm and the movable object, it is determined that the movable object is in a relatively stable state on the robotic arm. For example, the contact position between the robotic arm and the movable object is close to the center of gravity of the robotic arm, and the center of mass of the movable object is also close to the center of gravity of the robotic arm. For another example, the difference between the position coordinates of the contact position between the robotic arm and the movable object and the position coordinates of the center of gravity of the robotic arm is less than a first threshold, and the position coordinates of the center of mass of the movable object and the position coordinates of the center of gravity of the robotic arm are less than a second threshold. The first threshold and the second threshold can be set according to actual needs, and this application does not limit this.
[0172] At this time, if the center of mass of the movable object is expected to be as close as possible to the center of gravity of the robot arm in the direction of the y-axis, then α ref = 0; If the moving speed of the center of mass of the movable object in the direction of the y-axis is expected to be as small as possible, then If the movable object is expected to maintain balance on the robot arm, then x ref = 0; If the movable object is expected to be in a static equilibrium state on the robot arm, then The first control torque and the second control torque thus obtained will make the movable object on the robotic arm be in a static equilibrium state, which can also be understood as being able to make the movable object and the robotic arm relatively stationary.
[0173] In other embodiments, based on the estimated states of the robotic arm and the movable object, it is determined that the movable object is in a relatively unstable state on the robotic arm. For example, the contact position between the robotic arm and the movable object is far away from the center of gravity of the robotic arm, and / or the center of mass of the movable object is also far away from the center of gravity of the robotic arm. For another example, the difference between the position coordinates of the contact position between the robotic arm and the movable object and the position coordinates of the center of gravity of the robotic arm is not less than a first threshold, and / or the position coordinates of the center of mass of the movable object and the position coordinates of the center of gravity of the robotic arm are not less than a second threshold. The first threshold and the second threshold can be set according to actual needs, and this application does not limit this.
[0174] At this point, the desired posture information can be assigned a value based on the state estimation result. This value can be 0 or a non-zero value. The first control torque and second set of control torques thus obtained will keep the movable object in a state of dynamic equilibrium on the robotic arm. This can also be understood as enabling the movable object to move or roll on the robotic arm without falling.
[0175] In summary, the control method of the robotic arm provided in the embodiment of the present application provides several ways to determine control information, wherein the control information can be determined based on the difference between the posture information and the expected posture information, thereby achieving control of the robotic arm.
[0176] In some embodiments, the posture information includes the position coordinates and moving speed of the contact position between the robotic arm and the movable object, and the expected posture information includes the expected coordinates of the contact position and the expected moving speed. Based on the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed, the difference between the relative position of the movable object on the robotic arm and the expected position when the movable object is in a balanced state on the robotic arm can be determined; then, the controller can determine the first control torque based on the above two differences so that the robotic arm can move around the x-axis, thereby adjusting the contact position between the robotic arm and the movable object so that the relative position of the movable object on the robotic arm is as close to the expected position as possible until the position of the movable object on the robotic arm becomes the expected position.
[0177] In other embodiments, the posture information includes the offset and offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, and the expected posture information includes the expected offset and expected offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis. Based on the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed, the gap between the center of mass of the movable object and the center of gravity of the robotic arm on the x-axis can be determined; the controller can determine the second control torque based on the above two differences so that the robotic arm can move around the y-axis, thereby adjusting the offset position of the center of mass of the movable object and the center of gravity of the robotic arm on the x-axis until the gap between the center of mass of the movable object and the center of gravity of the robotic arm on the x-axis disappears.
[0178] Based on the above, in order to determine the control information, it is necessary to obtain the posture information of the dynamic system constructed based on the movable object and / or the robotic arm. With reference to FIG4 , FIG8 shows a flowchart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application. Step 120 can be implemented as step 121 or step 122, and step 160 can be implemented as step 161:
[0179] Step 121: Based on the visual sensor, obtain posture information from the dynamic system.
[0180] Step 122: Based on the visual sensor and the tactile sensor, obtain posture information from the dynamic system.
[0181] It should be understood that step 121 and step 122 can be performed one by one and cannot be performed at the same time.
[0182] In step 121 or step 122, a dynamic system needs to be constructed first. The construction of the dynamic system can refer to the above content and will not be described in detail.
[0183] Schematically, visual sensors are installed on the robotic arm or on its exterior; tactile sensors are installed on the outer shell of the robotic arm and can be used as the robotic arm's electronic skin. For example, joint motor encoders are installed on the joint motors of the robotic arm to provide feedback on the angle, angular velocity, and current of each joint's rotation. This information can be used to estimate the state of the robotic arm. In another example, tactile sensors can be installed on the fingers, palm, or a connecting rod of the robotic arm to obtain feedback information about the movable object.
[0184] In some embodiments, posture information can also be obtained through a proximity sensor. The proximity sensor is used to send a signal when two objects approach each other. When a movable object approaches the contact sensor, posture information can be obtained accordingly.
[0185] In order to obtain the posture information, the present application provides the following three optional implementation methods:
[0186] Implementation method 1: Full-degree-of-freedom posture recognition of movable objects based on visual perception.
[0187] 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.
[0188] In some embodiments, the operation time of gesture recognition is about 100 milliseconds, that is, 10 Hz.
[0189] Implementation method 2: Data image processing based on visual sensors.
[0190] Alternatively, lightweight data image processing methods can be applied to determine the position of the movable object within the dynamic system. For example, a camera can be placed on the robotic arm or in the 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. The image information is then processed to obtain an image processing result.
[0191] For example, after acquiring image information, cluster analysis is performed based on the color differences between the movable object and objects in the environment to determine the geometric center of the movable object. Subsequently, the positions of the geometric center and center of mass within the dynamic system can be determined. Based on this information, combined with relevant information about the robotic arm, posture information can be obtained. For example, the position coordinates and movement speed of the contact point can be determined based on the geometric center of the movable object, and the offset and offset speed can be determined based on the center of mass of the movable object.
[0192] In some embodiments, based on the lightweight computing in this implementation, the computing speed is relatively fast, with a computing time of about 10 milliseconds, ie, 10 Hz.
[0193] Based on this, optionally, step 121 may be implemented as follows:
[0194] 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 the image processing result is used to determine the posture information.
[0195] Alternatively, step 122 may be implemented as follows:
[0196] Based on the visual sensor, first information of the movable object in the first direction is determined; based on the tactile sensor, second information of the movable object in the second direction is determined; the first information and the second information are fused to obtain posture information; wherein, the first direction is the direction of the straight line perpendicular to the line connecting the two ends when the robotic arm is extended, and the second direction is the direction of the line connecting the two ends when the robotic arm is extended.
[0197] 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.
[0198] 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.
[0199] 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.
[0200] Implementation method three: Data fusion processing based on visual sensors and tactile sensors.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] In some embodiments, the operation time of the tactile sensor based on this implementation is about 10 milliseconds, that is, 100 Hz.
[0205] With reference to the above content, a comparison of the three implementation methods is given in the following table:
[0206] 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.
[0207] 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.
[0208] Referring to the above content, step 122 can be implemented as follows: based on the visual sensor, determine the first information of the movable object in the first direction; based on the tactile sensor, determine the second information of the movable object in the second direction; and fuse the first information and the second information to obtain posture information.
[0209] 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.
[0210] 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.
[0211] 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.
[0212] 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.
[0213] Referring to the above content, the desired posture information is used to indicate the posture information of the movable object to maintain balance on the robot arm. Based on this, step 160 can be implemented as step 161, as follows:
[0214] Step 161: 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.
[0215] The motion behavior of the robot arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0216] With reference to the foregoing, the control information includes the first control torque and / or the second control torque.
[0217] 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.
[0218] In some embodiments, the control information includes a first control torque, and step 160 may be implemented as follows: controlling the robotic arm to move about a first rotation axis based on the first control torque so that the movable object is in a balanced state on the robotic arm, where the first rotation axis is a straight line perpendicular to a 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 may be implemented as follows: controlling the robotic arm to move about a second rotation axis based on the second control torque so that the movable object is in a balanced state on the robotic arm, where the second rotation axis is an extension of a line connecting the two ends of the robotic arm when the robotic arm is extended.
[0219] Schematically, the equilibrium states include the following two:
[0220] In the static equilibrium state, the movable object in the static equilibrium state remains stationary on the robotic arm; in the dynamic equilibrium state, the movable object in the dynamic equilibrium state moves or rolls on the robotic arm.
[0221] 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 displaced or rolling relative to the robotic arm and being stationary. In some embodiments, the movable object in the dynamic equilibrium state displaces or rolls on the robotic arm but does not fall off, or it can be understood as the movable object being displaced or rolling relative to the robotic arm and being stationary, and not falling off the robotic arm.
[0222] 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.
[0223] Referring to Figure 10, 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 10, 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.
[0224] Based on this, simulation can be implemented, as shown in the multiple views in Figures 11 and 12. For example, the movable object is a bottle placed on the forearm of a robotic arm. Figures 11 (a) and (b) show two side views of the bottle rolling on the robotic arm, while Figures 12 (a) and (b) show two front views of the bottle rolling on the robotic arm.
[0225] With reference to Figures 10 to 12, 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.
[0226] With reference to the foregoing, for different equilibrium states, the expected posture information is different.
[0227] Optionally, step 161 may be implemented as follows:
[0228] When the expected posture information is a first value, the control information is used to control the manipulator arm to perform at least one motion 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 manipulator arm;
[0229] When the expected posture information 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, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm.
[0230] The first value can be set according to actual needs. For example, the first value is 0.
[0231] Referring to the above content, the expected posture information includes the expected coordinates of the contact position (i.e. the aforementioned α ref ) and the desired moving speed (i.e. the aforementioned ), and the expected offset between the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first axis of rotation (i.e., the aforementioned x ref ) and the expected migration velocity (i.e. ). Since α is used to indicate the position coordinate, α ref Used to indicate the expected coordinates, it can be quantified. For example, if the expected coordinates are the midpoint coordinates of the robot arm, the expected coordinates can be defined as α ref =0; if the expected coordinates are other coordinates of the robotic arm, the expected coordinates can be quantized according to actual needs, and this application does not limit this.
[0232] Take the first value as 0 as an example:
[0233] In some embodiments, if the desired posture information is 0, it can be understood that the movable object is expected to be in a static equilibrium state so that the movable object is stationary on the manipulator. Referring to the above, if the center of mass of the movable object is expected to be as close as possible to the center of gravity of the manipulator in the direction of the y-axis, then α ref = 0; If the moving speed of the center of mass of the movable object in the direction of the y-axis is expected to be as small as possible, then If the movable object is expected to maintain balance on the robot arm, then x ref = 0; If the movable object is expected to be in a static equilibrium state on the robot arm, then The control information obtained in this way will make the movable object on the robotic arm be in a static equilibrium state, which can also be understood as being able to make the movable object and the robotic arm relatively static.
[0234] In other embodiments, if the desired posture information is not zero, it can be understood that the movable object is expected to be in a state of dynamic equilibrium, so that the movable object can be displaced or rolled on the robotic arm without falling. In this case, the desired posture information can be assigned a value based on the state estimation results of the robotic arm and the movable object (i.e., the desired posture information is not the first value), and the assigned value can be a non-zero value. The control information obtained in this way will cause the movable object to be in a state of dynamic equilibrium on the robotic arm, which can also be understood as being able to cause the movable object to move or roll on the robotic arm without falling.
[0235] 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 FIG6 , 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.
[0236] To sum up, the control method of the robotic arm provided in the embodiment of the present application provides multiple ways to obtain posture information, and also provides multiple ways to implement 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.
[0237] For example, the overall control architecture of the robotic arm is shown in FIG13 .
[0238] 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.
[0239] For example, each joint motor of the robotic arm is equipped with a joint motor encoder to provide feedback on the joint motor's rotation angle, angular velocity, and current. This information can be used to estimate the robotic arm's state. Tactile sensors are also installed on the robotic arm's fingers, palm, and certain connecting rods. The collected tactile signals are then collected by a tactile driver for signal and other data processing.
[0240] Optionally, cameras can be installed in the robot's external environment to capture visual perception data. This visual and tactile perception data can then be fused. For example, if the movable object is a bottle, the fusion of this perception data can yield an estimate of the bottle's state (i.e., bottle state estimation).
[0241] For the related description of fusion processing, please refer to the above content.
[0242] Subsequently, a controller for the robotic arm can be designed based on the tactile information and the bottle's position and posture estimated from the bottle's state. This controller can be model-free, such as a PID controller. The controller's output can be the position and posture of the robotic arm's end point or the position and posture of the center of mass of a particular link in the robotic arm.
[0243] Referring to FIG13 , the input of the controller also includes an expected value, which is the expected posture information mentioned above. For related descriptions, please refer to the above content and will not be repeated here.
[0244] 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.
[0245] 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.
[0246] FIG14 shows a schematic diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application, the device comprising:
[0247] An acquisition module 1420 is configured to acquire a dynamic system at least constructed according to the robotic arm and obtain posture information from the dynamic system;
[0248] a determination module 1440 for determining control information of the robotic arm based on the posture information and expected posture information of the dynamic system, wherein the expected posture information indicates posture information that enables the movable object to maintain balance on the robotic arm;
[0249] The control module 1460 is configured to utilize the control information to control the movement of the robotic arm until the movable object reaches a balanced state on the robotic arm.
[0250] Optionally, the determination module 1440 is configured to determine a difference between the posture information and the expected posture information; and determine control information based on the difference.
[0251] Optionally, the posture information includes the position coordinates and moving speed of the contact position between the robotic arm and the movable object, the expected posture information includes the expected coordinates and expected moving speed of the contact position, and the control information includes a first control torque; a determination module 1440 is used to determine the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed; and a first control torque is determined based on the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed; a control module 1460 is used to control the robotic arm to move around a first axis according to the first control torque; wherein the first control torque is used to indicate the torque applied in the roll angle direction of the robotic arm rotating around the first axis, and the first axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when it is extended, and the first axis is located at one end of the robotic arm close to the shoulder joint.
[0252] Optionally, the posture information includes the offset and offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, the expected posture information includes the expected offset and expected offset speed of the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis, and the control information includes a second control torque; a determination module 1440 is used to determine the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed; and determine the second control torque based on the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed; a control module 1460 is used to control the robotic arm to rotate around the second rotation axis for movement based on the second control torque; wherein the second control torque is used to indicate the torque applied in the pitch angle direction of the robotic arm rotating around the second rotation axis, the first rotation axis is a straight line perpendicular to the line between 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 between the two ends when extended, and the second rotation axis passes through the middle of the robotic arm.
[0253] Optionally, the acquisition module 1420 is configured 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.
[0254] Optionally, the acquisition module 1420 is used to acquire image information through a visual sensor, where the image information is used to show that the movable object is placed on the robotic arm; process the image information to obtain an image processing result; and use the image processing result to determine posture information.
[0255] Optionally, the acquisition module 1420 is used to determine first information of the movable object in the first direction based on a visual sensor; determine second information of the movable object in the second direction based on a tactile sensor; and fuse the first information and the second information to obtain posture information; wherein the first direction is the direction of the straight line perpendicular to the line connecting the two ends when the robotic arm is extended, and the second direction is the direction of the line connecting the two ends when the robotic arm is extended.
[0256] Optionally, the acquisition module 1420 is configured to determine position information of a contact point between the movable object and the robotic arm relative to the robotic arm through a tactile sensor.
[0257] Optionally, the control module 1460 is used to use control information to 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; wherein the motion behavior of the robotic arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0258] Optionally, the control module 1460 is used to control the robotic arm to perform at least one motion behavior using control information when the expected posture information is a first value, 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 to control the robotic arm to perform at least one motion behavior using control information when the expected posture information is not the first value, 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.
[0259] Figure 15 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 Figure 15 , may include: one or more controllers 1501; one or more sensors 1502; one or more motors 1503; and memory 1504. The controllers 1501, sensors 1502, motors 1503, and memory 1504 are connected via a bus 1505. Memory 1504 is used to store computer programs, which include program instructions. Controller 1501 is used to execute the program instructions stored in memory 1504.
[0260] The memory 1504 may include a volatile memory, such as a random-access memory (RAM); the memory 1504 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 1504 may also include a combination of the above types of memory.
[0261] Controller 1501 may be a central processing unit (CPU). Controller 1501 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 1501 may also be a combination of the above structures.
[0262] In the embodiment of the present application, the memory 1504 is used to store a computer program, which includes program instructions. The controller 1501 is used to execute the program instructions stored in the memory 1504 to implement the steps of the aforementioned robotic arm control method.
[0263] In one embodiment, the controller 1501 is configured to call program instructions for executing:
[0264] Obtaining a dynamic system at least based on the robotic arm, and obtaining posture information from the dynamic system;
[0265] Determining control information of the robotic arm based on the posture information and desired posture information of the dynamic system, wherein the desired posture information is used to indicate posture information that enables the movable object to maintain balance on the robotic arm;
[0266] The control information is used to control the movement of the robotic arm until the movable object reaches a balanced state on the robotic arm.
[0267] In one embodiment, the controller 1501 is configured to call program instructions for executing:
[0268] Determine the difference between the posture information and the expected posture information; and determine the control information based on the difference.
[0269] In one embodiment, the posture information includes the position coordinates and movement speed of the contact position between the robotic arm and the movable object, the expected posture information includes the expected coordinates and expected movement speed of the contact position, and the control information includes the first control torque; the controller 1501 is configured to call program instructions to execute:
[0270] Determine the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed; determine a first control torque based on the difference between the position coordinates and the expected coordinates, and the difference between the moving speed and the expected moving speed; control the robotic arm to move around a first rotation axis based on the first control torque; wherein the first control torque is used to indicate the torque applied in the roll angle direction of the robotic arm rotating around the first rotation axis, and the first rotation axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when it is extended.
[0271] In one embodiment, the posture information includes an offset and an offset speed between the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis; the expected posture information includes an expected offset and an expected offset speed between the center of mass of the movable object and the center of gravity of the robotic arm in the direction of the first rotation axis; and the control information includes a second control torque. The controller 1501 is configured to call program instructions to execute:
[0272] Determine the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed; determine a second control torque based on the difference between the offset and the expected offset, and the difference between the offset speed and the expected offset speed; and control the robotic arm to rotate around the second rotation axis to move based on the second control torque; wherein the second control torque is used to indicate the torque applied in the pitch angle direction of the robotic arm rotating around the second rotation axis, the first rotation axis is a straight line perpendicular to the line connecting the two ends of the robotic arm when it is vertically extended, and the second rotation axis is an extension of the line connecting the two ends of the robotic arm when it is extended.
[0273] In one embodiment, the controller 1501 is configured to call program instructions for executing:
[0274] The control information is used to 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. The motion behavior of the robotic arm includes at least one of the following behaviors: maintaining relative stillness, moving, and rotating.
[0275] In one embodiment, the controller 1501 is configured to call program instructions for executing:
[0276] When the expected posture information is a 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, and the movable object in the static equilibrium state is stationary on the robotic arm; when the expected posture information 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, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm but does not fall.
[0277] Sensor 1502 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.
[0278] Among them, the relevant content of the posture information can be referred to the above content and will not be repeated here.
[0279] Motor 1503 is used to control the movement of the robot arm and complete the action task according to the control information. Motor 1503 includes the joint motors and wheel motors of the robot arm.
[0280] 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. 15 , and the control methods for the robotic arm can be described with reference to the aforementioned method embodiments, which will not be further described.
[0281] An embodiment of the present application also provides a robotic arm, which includes a controller and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the controller to implement the above-mentioned control method of the robotic arm.
[0282] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the above-mentioned control method of the robotic arm.
[0283] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is used to be executed by a processor to implement the above-mentioned control method of the robotic arm.
[0284] 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 disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0285] 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, such as 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.
[0286] An embodiment of the present application further provides a chip, which includes a programmable logic circuit or a program, and the chip is used to implement the control method of the robotic arm provided by the above-mentioned method embodiments.
[0287] 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 method for controlling a robotic arm described in any of the above embodiments.
[0288] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for controlling a robotic arm, characterized in that: A movable object is placed at any position of the robot arm except the end thereof, and the method comprises: Acquire a dynamic system constructed at least according to the robotic arm, and obtain posture information from the dynamic system; Determining control information of the robotic arm based on the posture information and expected posture information of the dynamic system, wherein the expected posture information is used to indicate posture information that enables the movable object to maintain balance on the robotic arm; The control information is used to control the movement of the robot arm until the movable object reaches a balanced state on the robot arm.
2. The method according to claim 1, characterized in that The step of determining the control information of the robotic arm based on the posture information and the expected posture information of the dynamic system comprises: determining a difference between the posture information and the expected posture information; The control information is determined according to the difference.
3. The method according to claim 1 or 2, characterized in that: The posture information includes the position coordinates and the moving speed of the contact position between the manipulator and the movable object, the expected posture information includes the expected coordinates and the expected moving speed of the contact position, and the control information includes a first control torque; the control information of the manipulator is determined based on the posture information and the expected posture information of the dynamic system, including: Determine a difference between the position coordinates and the expected coordinates, and a difference between the moving speed and the expected moving speed; Determining the first control torque according to a difference between the position coordinate and the expected coordinate, and a difference between the moving speed and the expected moving speed; The step of controlling the movement of the robotic arm by using the control information includes: Controlling the robotic arm to move around the first rotation axis according to the first control torque; Among them, the first control torque is used to indicate the torque applied in the roll angle direction of the robotic arm rotating around the first rotation axis, 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 one end of the robotic arm close to the shoulder joint.
4. The method according to any one of claims 1 to 3, characterized in that: The posture information includes an offset and an offset speed between the center of mass of the movable object and the center of gravity of the mechanical arm in the direction where the first rotation axis is located, the expected posture information includes an expected offset and an expected offset speed between the center of mass of the movable object and the center of gravity of the mechanical arm in the direction where the first rotation axis is located, and the control information includes a second control torque; the control information of the mechanical arm is determined based on the posture information and the expected posture information of the dynamic system, including: Determine a difference between the offset and the expected offset, and a difference between the offset speed and the expected offset speed; Determine the second control torque according to a difference between the offset and the expected offset, and a difference between the offset speed and the expected offset speed; The step of controlling the movement of the robotic arm by using the control information includes: According to the second control torque, controlling the robotic arm to rotate around a second rotation axis to move; Among them, the second control torque is used to indicate the torque applied in the pitch angle direction of the rotation of the robotic arm around the second rotation axis, the first rotation axis is a straight line perpendicular to the line between the 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, the second rotation axis is the extension line of the line between the two ends of the robotic arm when it is extended, and the second rotation axis passes through the center of the robotic arm.
5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of posture information from the dynamics system includes: Based on a visual sensor, obtaining the posture information from the dynamic system; Alternatively, posture information is obtained from the dynamic system based on the visual sensor and the tactile sensor.
6. The method according to claim 5, characterized in that The step of obtaining the posture information from the dynamic system based on a visual sensor includes: The image information is obtained by the visual sensor, and the image information is used to show that the movable object is placed in the On the robotic arm; processing the image information to obtain an image processing result; and determining the posture information using the image processing result.
7. The method according to claim 5, characterized in that The step of obtaining the posture information from the dynamic system based on the visual sensor and the tactile sensor includes: Determining first information of the movable object in a first direction based on the visual sensor; determining second information of the movable object in a second direction based on the tactile sensor; fusing the first information and the second information to obtain the posture information; The first direction is the direction of a straight line perpendicular to a line connecting two ends of the robotic arm when the robotic arm is extended, and the second direction is the direction of a line connecting two ends of the robotic arm when the robotic arm is extended.
8. The method according to claim 7, characterized in that The determining, based on the tactile sensor, second information of the movable object in the second direction comprises: The position information of the contact point between the movable object and the robotic arm relative to the robotic arm is determined by the tactile sensor.
9. The method according to any one of claims 1 to 8, characterized in that: The step of controlling the movement of the robotic arm by using the control information until 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.
10. The method according to claim 9, 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: When the expected posture information is a first value, using the control information, controlling the robotic arm to perform the at least one motion 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; When the expected posture information 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, and the movable object in the dynamic equilibrium state is displaced or rolled on the robotic arm.
11. A control device for a robotic arm, characterized in that: The device comprises: An acquisition module, used for acquiring a dynamic system constructed at least according to the mechanical arm, and obtaining posture information from the dynamic system; a determination module, configured to determine control information of the manipulator based on the posture information and expected posture information of the dynamic system, wherein the expected posture information is used to indicate posture information that enables the movable object to maintain balance on the manipulator; The control module is used to control the movement of the robotic arm by using the control information until the movable object reaches a balanced state on the robotic arm.
12. A robotic arm, characterized in that: The robotic arm includes a memory and a controller; 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 robot arm according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to be executed by a processor to implement the control method of the robot arm according to any one of claims 1 to 10.
14. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when an electronic device equipped with the chip is running, it is used to implement the control method of the robotic arm as described in any one of claims 1 to 10.
15. A computer program product, characterized in that The computer program product includes computer instructions, which are 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 according to any one of claims 1 to 10.
Citation Information
Patent Citations
Flight mechanical arm system based on decoupling control
CN112558621A
Multi-legged robot load balancing method and device and multi-legged robot
CN112975978A
Mechanical arm control method and system, robot and storage medium
CN113334393A
Method for controlling robot, and method for correcting position and attitude of robot and held object
JP1999033952A
Attitude control device of mobile robot
US20050104548A1
Cited By
Mechanical arm control method and equipment and computer readable storage medium
CN119304876A
Motor rotor alignment control method and system based on rotating table and electronic equipment
CN122740547A
Motor rotor rotation control method and system based on rotating table and electronic equipment
CN122740547B
