Method and apparatus for controlling mechanical arm, and device and storage medium
By realizing the throwing and grabbing of three-dimensional objects at non-end positions on the robotic arm, combined with dynamic models and sensor technology, the control complexity problem of the robotic arm when operating three-dimensional objects is solved, and the operational flexibility and precision of the robotic arm are expanded. sex.
Patent Information
- Application Number
- PCT/CN2023/085719
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-03
AI Technical Summary
When existing robotic arms operate three-dimensional objects, it is difficult to throw and grab them at non-end positions. The control complexity is high, and there is a lack of effective methods to achieve the throwing and catching actions of three-dimensional objects.
Provide a control method and device for a robotic arm, which uses a controller to throw a three-dimensional object at a non-end position of the robotic arm and grab it through the end to achieve a force-balanced state of the three-dimensional object, using a multi-degree-of-freedom robotic arm and precise motion Control, combine visual and tactile sensors to obtain the actual posture, use the dynamic model to predict the control signal, and realize the throwing and catching action.
It expands the control method of three-dimensional objects by the robotic arm, realizes throwing and grabbing at any position except the end, improves the flexibility and accuracy of operation, and solves the problem of control complexity in the existing technology.
Smart Images

Figure CN2023085719_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] This application provides a control method, device, equipment, and storage medium for a robotic arm. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for controlling a robotic arm is provided. The method is executed by a controller of the robotic arm, wherein a three-dimensional object is placed at any position on the robotic arm except the end thereof, and the method comprises:
[0007] Controlling the robotic arm to throw the three-dimensional object;
[0008] The end of the robotic arm is controlled to grasp the three-dimensional object, and the grasped three-dimensional object reaches a force balance state.
[0009] According to one aspect of the present application, a control device for a robotic arm is provided, wherein a three-dimensional object is placed at any position of the robotic arm except the end thereof, the device comprising:
[0010] A control module, configured to control the robotic arm to throw the three-dimensional object;
[0011] The control module is further used to control the end of the robotic arm to grasp the three-dimensional object, and the grasped three-dimensional object reaches a force balance state.
[0012] According to one aspect of the present application, there is provided a robotic arm comprising a memory and a controller;
[0013] At least one program code is stored in the memory, and the program code is loaded and executed by the controller to implement the control method of the robotic arm as described above.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:
[0018] A new method for using a robotic arm is provided, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; a controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object; the throwing of the three-dimensional object by controlling the robotic arm at any position except the end is a control method of the robotic arm that has not been realized in the related art, and expands the control method of the robotic arm for throwing and catching three-dimensional objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0020] FIG2 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0021] FIG3 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0022] FIG4 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0023] FIG5 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0024] FIG6 is a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application;
[0025] FIG7 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0026] FIG8 is a schematic diagram of a robotic arm and a three-dimensional object provided by an exemplary embodiment of the present application;
[0027] FIG9 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0028] FIG10 is a schematic diagram of a two-dimensional plane of a robotic arm provided by an exemplary embodiment of the present application;
[0029] FIG11 is a schematic diagram of the velocity of a three-dimensional object in the vertical direction provided by an exemplary embodiment of the present application;
[0030] FIG12 is a schematic diagram of a predicted posture provided by an exemplary embodiment of the present application;
[0031] FIG13 is a schematic diagram of a robotic arm and a three-dimensional object provided by an exemplary embodiment of the present application;
[0032] FIG14 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0033] FIG15 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0034] FIG16 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0035] FIG17 is a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application;
[0036] FIG18 is a structural block diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application;
[0037] FIG19 is a schematic block diagram of the structure of a robotic arm provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] 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.
[0039] A robotic arm is a common actuator for robots. With the widespread application of artificial intelligence, robotic arms play an important role in production and life and have become an indispensable device.
[0040] During the use of a robotic arm, the end of the robotic arm is usually used to complete the operation task; alternatively, an end effector is installed at the end of the robotic arm to complete the corresponding operation, such as installing a robotic finger at the end of the robotic arm to complete the operation by controlling the movement of the robotic arm and the robotic finger.
[0041] 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.
[0042] FIG1 shows a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application.
[0043] 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.
[0044] Schematically, the robotic arm includes: a first mechanical joint 10 , a second mechanical joint 20 and a drive assembly 30 .
[0045] The first mechanical joint 10 includes a first fixed member 101 and a first movable member 102 rotatably connected; the second mechanical joint 20 includes a second fixed member 201 and a second movable member 202 rotatably connected; the second fixed member 201 is connected to the first movable member 102 .
[0046] 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 .
[0047] At least two driving sources 301 include a first operating mode and a second operating mode;
[0048] 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;
[0049] 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 .
[0050] 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.
[0051] 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.
[0052] Optionally, the at least two driving sources 301 include a motor and a driving pulley, the motor and the driving pulley are connected through a transmission mechanism, and the motor drives the driving pulley to rotate through the transmission mechanism.
[0053] The driving rope 302 is wound around the driving pulley. When the driving 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.
[0054] Optionally, 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.
[0055] 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.
[0056] 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.
[0057] Optionally, the first working mode and the second working mode, for example, can be different working 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 working 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 working modes formed according to whether the rotation directions and rotation speeds of at least two driving sources 301 are different or the same.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] Optionally, 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.
[0070] Optionally, at least two driving sources 301 are located in the second movable member 202 and are connected to the second movable member 202 to move along with the second movable member 202 .
[0071] 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.
[0072] 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.
[0073] Optionally, the first fixing member 101 is driven by the shoulder drive assembly to rotate relative to the second fixing member 201, which can simulate the lifting movement of the shoulder joint of the human arm. The second fixing member 201 is fixedly connected to the robot's torso or other supporting structure to fix and support the entire robotic arm.
[0074] 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 .
[0075] 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.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] Based on this, the structure of the robotic arm will be easy to modularize, thereby simplifying the manufacturing process of the robotic arm.
[0082] With reference to the foregoing, the end of a robotic arm is usually used to complete the operation task. The embodiment of the present application provides a method for controlling a robotic arm, which first throws up a three-dimensional object and then grabs the three-dimensional object through the end of the robotic arm. Taking a bottle as an example, 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 throw up a three-dimensional object (such as a bottle) and then grab the three-dimensional object thrown in the air.
[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 shows a flow chart of a method for controlling a robotic arm provided by an exemplary embodiment of the present application. The method may be executed by a controller of the robotic arm. The method includes:
[0085] Step 505: Acquire a first control signal;
[0086] Exemplarily, the first control signal is used to control the robotic arm to throw a three-dimensional object; the first control signal can be generated by a controller, or generated by other devices and transmitted to the controller. This application does not limit the method for obtaining the first control signal. Exemplarily, the first control signal carries control information, and the transmission method of the first control signal includes but is not limited to at least one of an electrical signal, an optical signal, etc. In one example, the first control signal can also be referred to as the first control information; similarly, the second control signal hereinafter can also be referred to as the second control information. The third control signal, the fourth control signal, and other more control signals in the text are similar to those above and are not listed one by one.
[0087] Step 510: Control the robotic arm to throw the three-dimensional object based on the first control signal;
[0088] Exemplarily, a three-dimensional object is placed at any position on the robotic arm except the end, and the robotic arm throws up the three-dimensional object to indicate that the three-dimensional object and the robotic arm are out of contact; for example: there is no interaction force between the three-dimensional object and the robotic arm, and there is no contact point between the three-dimensional object and the robotic arm.
[0089] FIG5 shows a schematic diagram of a robotic arm according to an exemplary embodiment of the present application. A three-dimensional object is placed anywhere on the robotic arm except at its distal end. Referring to FIG5 , for example, a bottle is placed on the forearm of the robotic arm.
[0090] For example, the robotic arm tosses a three-dimensional object so that the object acquires a vertically upward velocity. The vertically upward direction is the opposite direction of gravity. Furthermore, the component of the three-dimensional object's velocity in the vertically upward direction is positive. This embodiment does not restrict whether the three-dimensional object has velocity components in other directions. For example, the three-dimensional object may also have velocity components in any direction on a plane perpendicular to the vertical direction.
[0091] Step 515: Acquire a second control signal;
[0092] Exemplarily, the second control signal is used to control the end of the robotic arm to grasp a three-dimensional object. Optionally, the second control signal controls the robotic arm to move based on the motion trajectory information of the three-dimensional object. Furthermore, the end of the robotic arm and the three-dimensional object can remain relatively stationary while grasping the three-dimensional object. Similar to the first control signal, this application does not limit the method for obtaining the second control signal.
[0093] Step 520: Control the end of the robotic arm to grasp the thrown three-dimensional object based on the second control signal, and the three-dimensional object reaches a force balance state when being grasped;
[0094] Exemplarily, a grasping operation occurs between the end of the robotic arm and the three-dimensional object; the end of the robotic arm is a robotic hand that can open or close; the three-dimensional object reaches a force equilibrium state, the end of the robotic arm grasps the three-dimensional object, and at least one of form closure and force closure exists between the end of the robotic arm and the three-dimensional object. Furthermore, the grasping operation restricts the movement of the three-dimensional object; the end of the robotic arm and the three-dimensional object are kept relatively stationary by contact between the end of the robotic arm and the three-dimensional object, or there is relative motion between the three-dimensional object and the robotic arm but the three-dimensional object does not lose contact with the end of the robotic arm. Exemplarily, a three-dimensional object is in a state where any posture change cannot occur due to a set of static constraints applied to the surface of the object; form closure is used to indicate that the static constraint is determined by the position of the end of the robotic arm, and force closure is used to indicate that the static constraint is determined by the force wrench applied by the end of the robotic arm to the contact point of the three-dimensional object.
[0095] It should be noted that in this step, the robotic arm grasps the three-dimensional object while it is moving in space. The three-dimensional object is grasped by the end of the robotic arm during the process of its movement in space. For example, after the robotic arm throws the three-dimensional object, the three-dimensional object and the robotic arm lose contact, and the three-dimensional object moves in space according to parabolic motion or quasi-parabolic motion. In this step, the robotic arm grasps the three-dimensional object during the movement. Furthermore, before the robotic arm grasps the three-dimensional object, at least one of the position, velocity, and acceleration of the three-dimensional object changes, and the three-dimensional object is in motion. Furthermore, when the robotic arm grasps the three-dimensional object, contact is generated between the robotic arm and the three-dimensional object.
[0096] For example, when the end of the robotic arm grasps a thrown three-dimensional object, the three-dimensional object reaches a force equilibrium state while being grasped. Furthermore, when there is a grasping operation between the end of the robotic arm and the three-dimensional object, the three-dimensional object reaches a force equilibrium state.
[0097] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw up a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object; the throwing of the three-dimensional object is realized by controlling the robotic arm at any position except the end, which is a control method of the robotic arm that has not been realized in the related art, and expands the control method of the robotic arm for throwing and catching three-dimensional objects.
[0098] The control method for the robotic arm provided in this application, which controls the robotic arm to toss a three-dimensional object and then catch the tossed three-dimensional object, can be implemented using a single robotic arm or two robotic arms, as described below. It should be noted that the two embodiments described below for tossing and catching a three-dimensional object while maintaining balance using one or two robotic arms can be combined with other embodiments of this application to form new embodiments, and this application does not limit this.
[0099] In one example, the control method of the robotic arm may be executed by a controller of the robotic arm. In the embodiment shown in FIG4 , step 510 may be implemented as the following sub-step 1, and step 520 may be implemented as the following sub-step 2:
[0100] Sub-step 1: controlling the first arm to throw the three-dimensional object based on the first control signal;
[0101] Exemplarily, the robotic arm includes a first arm. It should be noted that this embodiment does not limit the structure of the first arm. In one example, the first arm can be a robotic arm with multiple degrees of freedom as shown in FIG1 . In this embodiment, the method for controlling the robotic arm to toss and catch a three-dimensional object is implemented via the first arm.
[0102] Exemplarily, the first arm throws up the three-dimensional object to indicate that the first arm and the three-dimensional object are out of contact.
[0103] Sub-step 2: controlling the end of the first arm to grasp the three-dimensional object after it is out of contact with the first arm based on the second control signal, and the three-dimensional object reaches a force equilibrium state while being grasped;
[0104] Exemplarily, a grasping operation is performed between the end of the first arm and the three-dimensional object; the three-dimensional object reaches a force equilibrium state, the end of the first arm grasps the three-dimensional object, and at least one of a form seal and a force seal is achieved between the end of the first arm and the three-dimensional object. The end of the manipulator arm and the three-dimensional object are kept relatively stationary by contact between the end of the manipulator arm and the three-dimensional object, or the three-dimensional object and the manipulator arm are in relative motion but the three-dimensional object does not lose contact with the end of the manipulator arm.
[0105] Furthermore, the end of a robotic arm that grasps a three-dimensional object is used as a manipulator as an example for illustration; in an optional implementation, a second control signal controls the opening of the manipulator, and the distance the manipulator opens can be determined based on the shape characteristics of the three-dimensional object or the maximum opening limit of the manipulator. The second control signal controls the movement of the end of the manipulator to approach the thrown three-dimensional object; wherein, the second control signal is determined based on the motion trajectory information of the three-dimensional object after being thrown, and the motion trajectory information of the three-dimensional object can be predicted or calculated based on information of the manipulator and the three-dimensional object. This embodiment does not limit the method for obtaining the motion trajectory information. The second control signal controls the closing of the manipulator to grasp the three-dimensional object; there is a grasping operation between the manipulator and the three-dimensional object, and the closing distance of the manipulator can be determined based on the shape characteristics of the three-dimensional object or the maximum closing limit of the manipulator. wherein, the maximum opening limit and the maximum closing limit of the manipulator are the maximum values of the distance between any two manipulator fingers on the manipulator. The closing distance of the manipulator and the opening distance of the manipulator are the distance between any two manipulator fingers on the manipulator. Optionally, all three of the aforementioned motion processes are implemented by a second control signal. In one example, the second control signal includes first to third sub-control signals. The first sub-control signal controls the opening of the manipulator arm, the second sub-control signal controls the movement of the distal end of the manipulator arm toward the thrown three-dimensional object, and the third sub-control signal controls the closing of the manipulator arm.
[0106] It should be noted that the introduction of the second control signal can be applied to step 520 above, and can also be applied to sub-step 4 below and other embodiments, and this application does not limit it.
[0107] In summary, the method provided in this embodiment provides a new method for using a robotic arm, which is completed by one arm; it can control the first arm to first throw up a three-dimensional object at any position except the end, and then control the first arm to grab the three-dimensional object through the end of the first arm, so that the grabbed three-dimensional object reaches a force balance state; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object, expanding the control method of the robotic arm for throwing and catching three-dimensional objects.
[0108] In one example, the control method of the robotic arm may be executed by a controller of the robotic arm. In the embodiment shown in FIG4 , step 510 may be implemented as the following sub-step 3, and step 520 may be implemented as the following sub-step 4:
[0109] Sub-step 3: controlling the first arm to throw the three-dimensional object based on the first control signal;
[0110] Exemplarily, the robotic arm includes a first arm and a second arm that move independently of each other; it should be noted that this embodiment does not limit the structure of the first arm and the second arm. In an example, the first arm and the second arm can be robotic arms with multiple degrees of freedom as shown in Figure 1.
[0111] Figure 6 shows a schematic diagram of a robotic arm provided by an exemplary embodiment of the present application. Sub-figure (a) is a side view of the robotic arm, and sub-figure (b) is a front view of the robotic arm. A three-dimensional object 612 is tossed by a first arm 602; the end of a second arm 604 grasps the tossed three-dimensional object 612. The figure illustrates a bottle as an example; this application does not limit the shape of the three-dimensional object.
[0112] Sub-step 4: controlling the end of the second arm to grasp the three-dimensional object after it is out of contact with the first arm based on the second control signal, and the grasped three-dimensional object reaches a force balance state while being grasped;
[0113] Illustratively, a gripping operation occurs between the end of the second arm and the three-dimensional object; the three-dimensional object reaches a force equilibrium state, the end of the second arm grips the three-dimensional object, and at least one of a form seal and a force seal exists between the end of the second arm and the three-dimensional object. Contact between the end of the manipulator arm and the three-dimensional object maintains the end of the manipulator arm and the three-dimensional object in relative motion, or the three-dimensional object and the manipulator arm maintain relative motion without losing contact between the three-dimensional object and the end of the manipulator arm.
[0114] Exemplarily, the end of the robotic arm 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 links connected end to end. For example, link 1 and link 2 constitute a robotic arm, the first end of link 1 is a shoulder joint, and the second end of link 1 is connected to the first end of link 2, then the end is used to indicate the second end of link 2. In some embodiments, the end can also be understood as the manipulator connected to the end of the robotic arm away from the shoulder joint, such as a robotic arm composed of link 1 and link 2, the first end of link 2 is connected to link 1, and the second end of link 2 is a manipulator, then the end is used to indicate the manipulator on link 2.
[0115] In this embodiment, the end of the second arm is used to indicate the end of the second arm that moves independently in the robotic arm, which is away from the shoulder joint. Similarly, the end of the first arm is used to indicate the end of the first arm that moves independently in the robotic arm, which is away from the shoulder joint. The description of the end of the robotic arm in this embodiment can be applied to step 520 above, as well as to sub-step 2 above, and other embodiments, and this application does not limit this.
[0116] In summary, the method provided in this embodiment provides a new method for using a robotic arm, which is completed by two arms; it can control the first arm to first throw a three-dimensional object at any position except the end, and then control the second arm to grab the three-dimensional object through the end of the second arm, so that the grabbed three-dimensional object reaches a force balance state; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object, expanding the control method of the robotic arm for throwing and catching three-dimensional objects.
[0117] Next, we will introduce how the robotic arm can throw three-dimensional objects.
[0118] FIG7 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method can be executed by a controller of the robotic arm. That is, in the embodiment shown in FIG4 , the method further includes step 502:
[0119] Step 502: Obtain a first actual posture;
[0120] The first actual posture is used to indicate the contact information between the three-dimensional object and the robotic arm and the position information of the robotic arm; illustratively, the position information of the robotic arm is used to indicate the position of the robotic arm in space, and the position information can represent the space of the robotic arm through at least one of the information such as angle, height, linear velocity, angular velocity, etc. The contact information is used to indicate the contact situation between the robotic arm and the three-dimensional object, such as: at least one of the information such as the contact position, the speed between the robotic arm and the three-dimensional object, etc. Exemplarily, there is at least one of a contact point, a contact line, and a contact surface between the robotic arm and the three-dimensional object. Optionally, this embodiment does not limit the recording method of the contact information, and the contact information can be indicated by constructing a coordinate system with the robotic arm as a reference object, or a natural coordinate system can be constructed with the earth as a reference object; or a coordinate system can be constructed in an alternative manner.
[0121] Exemplarily, the first control signal is determined according to the first actual posture;
[0122] Exemplarily, a first control signal for the robotic arm is determined based on a first actual posture of the three-dimensional object and the robotic arm. Exemplarily, the first control signal is used to control the robotic arm to lift the three-dimensional object, and the first control signal is determined based on the first actual posture. Exemplarily, the first control signal can be predicted based on the first actual posture, calculated based on the first actual posture, or obtained by searching a mapping relationship based on the first actual posture. This embodiment does not limit the method for determining the first control signal.
[0123] Optionally, the first control signal is obtained by searching a mapping relationship based on the first actual posture, and the mapping relationship is used to indicate a corresponding relationship between the first actual posture and the first control signal. The mapping relationship is a relationship between the first actual posture and the first control signal obtained by calculating the first actual posture.
[0124] After the first control signal is determined, the robotic arm may be controlled according to the first control signal.
[0125] Furthermore, the first control signal may be a control signal on one or more rotating shafts. The first control signal usually controls the movement of the robotic arm through at least one of information such as torque, force, angle, etc.
[0126] Figure 8 shows a schematic diagram of a robotic arm and a three-dimensional object provided by an exemplary embodiment of the present application. For example, the direction of the extended line of the robotic arm is defined as the y-direction, the direction of a horizontal line perpendicular to the robotic arm is defined as the x-direction, and the direction of a vertical line perpendicular to the robotic arm is defined as the z-direction. The first control signal can be a control signal for a rotation axis around at least one of the x-direction, y-direction, or z-direction.
[0127] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm, determines the first control signal based on the first actual posture of the robotic arm, and completes the control of any position on the robotic arm except the end to catch the thrown three-dimensional object, thereby expanding the control method of the robotic arm for throwing and catching three-dimensional objects.
[0128] Next, the first control signal is further introduced.
[0129] Optionally, the first control signal is used to control the pitch motion of the robotic arm in a first plane, where the first plane is parallel to the extension line of the robotic arm and parallel to the vertical direction. For example, in Figure 8, the first control signal is used to perform pitch motion of the robotic arm in the y-direction. Optionally, the extension line of the robotic arm is the extension direction of the robotic arm when the robotic arm is extended. Exemplarily, the vertical direction and the direction of Earth's gravity are co-linear, and the horizontal plane is the plane perpendicular to the horizontal direction of Earth's gravity. Exemplarily, Figure 8 shows the extension line of the robotic arm when it is extended. Exemplarily, the extension line is a ray extending from the end of the robotic arm and pointing outside the robotic arm. The direction of the extension line is parallel to the center of mass of the forearm of the robotic arm and points toward the end of the robotic arm. For example, in Figure 8, the extension line is parallel to the y-axis. Exemplarily, the extension line in Figure 8 originates from the forearm of the robotic arm, but the extension line can originate from any location on the robotic arm. In another implementation, the direction of the extension line can be indicated by a ray extending from a location outside the robotic arm; this embodiment is not limiting.
[0130] Exemplarily, the first actual posture includes the angle between the robotic arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm. It should be noted that the first actual posture can be directly acquired, or it can be indirectly acquired by analyzing other posture-related information carried in other posture-related information. Optionally, the rotation axis of the robotic arm away from the end of the robotic arm is a rotation axis provided at the end of the robotic arm opposite or opposite to the end used for grasping.
[0131] Furthermore, the first actual posture can be realized as a posture sequence, such as a time series that changes over time. Furthermore, the time series can be used to obtain a derivative of the first actual posture with respect to time, such as at least one of a first-order derivative, a second-order derivative, or a higher-order derivative. For example, taking the angle between the robotic arm and the horizontal plane as an example, the time series can be used to obtain at least one of the angular velocity and angular acceleration of the robotic arm relative to the horizontal plane; similarly, at least one of the linear velocity and acceleration of a three-dimensional object on the robotic arm relative to a rotation axis away from the end of the robotic arm can be obtained.
[0132] It can be understood that in the above implementation, step 502 in Figure 7 can be implemented as: obtaining the angle between the robotic arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm.
[0133] Optionally, the first control signal is also used to control the translational movement of the instructing robotic arm along the vertical direction on the first plane; the first plane and the extension line direction of the robotic arm are parallel, and the first plane and the vertical direction are parallel; taking Figure 8 as an example, the first control signal is also used for the translational movement of the robotic arm in the z direction.
[0134] Exemplarily, the first actual posture also includes the position information of the robot arm in the vertical direction. Similarly, the above position information can be obtained directly or indirectly. Furthermore, the first actual posture can be implemented as a posture sequence, such as a time series that changes over time. With respect to the position information of the robot arm in the vertical direction, at least one of the velocity and acceleration of the robot arm in the vertical direction can be obtained through the time series.
[0135] It can be understood that in the above implementation, step 502 in Figure 7 can be implemented as: obtaining the angle between the robotic arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, and the position information of the robotic arm in the vertical direction.
[0136] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm, and determines the first control signal according to the first actual posture of the robotic arm; the first control signal is used to control the pitch movement of the robotic arm on the first plane, and the first control signal is also used to control the translation movement of the robotic arm in the vertical direction on the first plane; the control method of the robotic arm for throwing and catching three-dimensional objects is expanded.
[0137] Next, the process of determining the first control signal is introduced.
[0138] FIG9 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method can be executed by a controller of the robotic arm. That is, based on the embodiment shown in FIG4 , the method further includes step 501:
[0139] Step 501: constructing a first mapping relationship between the first actual posture and a first control signal according to the first actual posture, the physical information of the robotic arm and the three-dimensional object;
[0140] Exemplarily, the first mapping relationship indicates a correspondence between a first actual posture and a first control signal, and the first control signal is used to control the robotic arm to lift a three-dimensional object. Optionally, the first actual posture and the first control signal have a one-to-one correspondence, for example, using the vertical velocity of the three-dimensional object as a cost equation to obtain the first control signal. The first control signal is a control signal that aims to maximize the vertical velocity of the three-dimensional object. The aforementioned velocity is the velocity at which the three-dimensional object and the robotic arm lose contact. Exemplarily, the physical information of the robotic arm and the three-dimensional object indicates at least one of the shape characteristics or physical properties of the three-dimensional object and the robotic arm. For example, this includes but is not limited to at least one of the length of the robotic arm, the mass of the robotic arm, the moment of inertia of the robotic arm, the shape characteristics of the three-dimensional object, the mass of the three-dimensional object, and the moment of inertia of the three-dimensional object. In one implementation, the shape characteristics of the three-dimensional object are characteristic information of the projected shape of the three-dimensional object on a first plane; for example, if the projected shape of the three-dimensional object on the first plane is a circle, the characteristic information is the radius of the circle.
[0141] In one example, the length of the robotic arm is L a = 0.27m, the radius of the circular projection of the three-dimensional object on the first plane is r b =0.0325m, the mass of the robotic arm is m a = 2.48 kg, the mass of the three-dimensional object is m b =0.24kg, the moment of inertia of the robotic arm is I a =0.03, the moment of inertia of the three-dimensional object is I b =2.535e-04.
[0142] Exemplarily, the first mapping relationship is based on a physical model constructed based on the physical information of the robotic arm and the three-dimensional object, and is constructed based on the first actual posture as the state feature of the physical model. The first mapping relationship can indicate the correspondence between the first actual posture and the first control signal in a linear or nonlinear manner, such as determining the fitting function information as the first mapping relationship, and obtaining the corresponding first control signal through the fitting function information according to the first actual posture. The first mapping relationship can also be determined as a mapping table, and the corresponding first control signal is obtained by searching according to the first actual posture. Figure 10 shows a schematic diagram of a two-dimensional plane of a robotic arm provided by an exemplary embodiment of the present application; the circle in the lower left corner of the figure is used to represent the joint that rotates around the forearm of the robotic arm, and the rectangle connected to it is the cross section of the robotic arm. The angle between the cross section and the horizontal direction of the world coordinate system is α, that is, the angle between the robotic arm and the horizontal plane, and the circle on the rectangle is the cross section of the three-dimensional object. Similarly, it is assumed that the three-dimensional object and the robotic arm are in a perpendicular relationship. In one example, the three-dimensional object is a bottle. To simplify the model description of the three-dimensional object, the changes in the shape and cross-sectional area of the head and bottom of the bottle are ignored. The three-dimensional object is regarded as a homogeneous rigid body, such as a cylindrical rigid body, and the position of the three-dimensional object is evaluated based on the center of mass of the three-dimensional object.
[0143] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm, and determines the first control signal according to the first actual posture of the robotic arm; indicates the correspondence between the first actual posture and the first control signal by constructing a first mapping relationship; and expands the control method of the robotic arm for throwing and catching three-dimensional objects.
[0144] In one example, the control method of the robotic arm can be executed by a controller of the robotic arm. That is, in the embodiment shown in FIG9 , step 501 can be implemented as the following four sub-steps: sub-step 11, sub-step 12, sub-step 13, and sub-step 14:
[0145] Sub-step 11: determining energy information of the robotic arm and the three-dimensional object based on the first actual posture, physical information of the robotic arm and the three-dimensional object;
[0146] Energy information includes kinetic energy and potential energy; illustratively, kinetic energy is used to indicate the energy possessed by the robotic arm and the three-dimensional object due to mechanical motion, and potential energy is used to indicate the energy possessed by the robotic arm and the three-dimensional object due to their position in three-dimensional space.
[0147] Exemplarily, the energy information of the manipulator and the three-dimensional object is determined based on the linear velocity and angular velocity of the manipulator, and the linear velocity and angular velocity of the three-dimensional object. In one example, the square of the linear velocity and angular velocity of the three-dimensional object is:
[0148] Where v represents the linear velocity of the three-dimensional object, and ω represents the angular velocity of the three-dimensional object. represents the first-order derivative of the position information of the robot arm in the vertical direction with respect to time, also known as the linear velocity of the robot arm in the vertical direction; in a preferred example, represents the linear velocity of the rotation axis on the robot arm in the vertical direction. s represents the distance between the center of mass of the three-dimensional object and the rotation axis on the robot arm away from the end of the robot arm; It represents the first derivative of s with respect to time, also known as the linear velocity of the three-dimensional object on the manipulator relative to the rotation axis away from the end of the manipulator. α represents the angle between the manipulator and the horizontal plane. Represents the first-order derivative of α with respect to time, also known as the angular velocity of the robot arm. b Indicates the radius of the circular projection of a 3D object on the first plane.
[0149] For example, Indicates the linear velocity of a three-dimensional object in the vertical direction. Specifically, Indicates the speed of the three-dimensional object caused by the vertical translation of the robot arm. It represents the vertical velocity of a three-dimensional object caused by sliding or rolling on the robotic arm. It represents the vertical velocity of the three-dimensional object caused by the rotation of the robot arm on the first plane. Indicates the linear velocity of a three-dimensional object in the horizontal direction; specifically, the horizontal direction is the horizontal direction on the first plane. Specifically, It represents the horizontal velocity of a three-dimensional object caused by sliding or rolling on the robotic arm. It represents the horizontal velocity of the three-dimensional object caused by the rotation of the robot arm on the first plane. Since the two horizontal velocities are in opposite directions, the operator is a minus sign.
[0150] For example, Indicates the angular velocity of the three-dimensional object caused by the rolling of the three-dimensional object on the robotic arm, It represents the angular velocity of the three-dimensional object caused by the rotation of the robot arm on the first plane.
[0151] Furthermore, the kinetic energy of the robotic arm and the three-dimensional object, as well as the potential energy of the robotic arm and the three-dimensional object, are expressed as follows in one example:
[0152] Among them, T represents the kinetic energy of the robotic arm and the three-dimensional object. In the above formula, T is the sum of four parameter terms. The first parameter term in the above formula is the rotational kinetic energy of the three-dimensional object, and the second parameter term is the translational kinetic energy of the three-dimensional object; the third parameter term is the rotational kinetic energy of the robotic arm, and the fourth parameter term is the translational kinetic energy of the robotic arm. U represents the potential energy of the robotic arm and the three-dimensional object. In the above formula, U is the sum of two parameter terms. The first parameter term is the potential energy of the robotic arm, and the second parameter term is the potential energy of the three-dimensional object. For the parameters of the above two formulas, please refer to the introduction of each parameter in the linear velocity and angular velocity, as well as the introduction in step 501; in addition, z represents the position information of the robotic arm in the vertical direction. In a preferred example, z represents the position information of the rotation axis on the robotic arm in the vertical direction, such as displacement information. Exemplarily, the translational kinetic energy is used to indicate the kinetic energy generated by the robotic arm or the three-dimensional object in translational motion.
[0153] Sub-step 12: Construct the dynamic equation based on the energy information of the robot arm and the three-dimensional object;
[0154] Exemplarily, the dynamic equation is used to indicate a differential equation of a dynamic system composed of the robotic arm and the three-dimensional object. Optionally, the dynamic equation is an Euler-Lagrange equation constructed based on energy information of the robotic arm and the three-dimensional object.
[0155] It should be noted that, referring to the introduction to the first control signal above, in the implementation method where the first actual posture only includes the angle between the robotic arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, the calculation formulas for the kinetic energy of the robotic arm and the three-dimensional object in step 502, and the potential energy of the robotic arm and the three-dimensional object do not contain information about the position of the robotic arm in the vertical direction. For example, the various parameters of the various formulas in step 502 regarding the position information of the robotic arm in the vertical direction are set to 0.
[0156] Sub-step 13: predicting a first control signal based on the dynamic equation and the velocity of the three-dimensional object in the vertical direction as a cost equation;
[0157] Exemplarily, the first control signal is used to control the robotic arm to throw a three-dimensional object. In the process of predicting the first control signal, the speed of the three-dimensional object in the vertical direction is used as the cost equation to achieve the maximum vertical upward speed of the three-dimensional object when the robotic arm is controlled to throw the three-dimensional object. In one example, the cost equation is the negative value of the speed of the three-dimensional object in the vertical direction. Optionally, the speed of the three-dimensional object in the vertical direction is determined by the angle between the robotic arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm. Accordingly, the following steps exist before sub-step 13:
[0158] The vertical velocity of the three-dimensional object is determined based on the angle between the robotic arm and the horizontal plane and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm, which is away from the end of the robotic arm. For details on the vertical velocity of the three-dimensional object, please refer to the description of the linear velocity of the three-dimensional object in the vertical direction in step 502, which will not be repeated in this step.
[0159] Sub-step 14: constructing a first mapping relationship according to the first actual posture and the first control signal;
[0160] Exemplarily, in the constructed first mapping relationship, the first control signal corresponds to the first actual posture, and the first control signal is obtained based on the first mapping relationship by obtaining the first actual posture. Optionally, the timestamp corresponding to the first control signal is later than the timestamp corresponding to the first actual posture. For example, after obtaining the first actual posture corresponding to the first timestamp, the first control signal corresponding to the second timestamp is obtained based on the first mapping relationship, and the robot arm is controlled to move at the second timestamp by the first control signal. It is understandable that the first control signal may correspond to one or more timestamps.
[0161] In summary, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm, constructs a dynamic equation based on the energy information of the robotic arm and the three-dimensional object, and obtains the first control signal through the dynamic equation prediction, thereby expanding the method for determining the first control signal; and expanding the control method of the robotic arm to throw and catch three-dimensional objects.
[0162] Next, the kinetic equations are further introduced.
[0163] In an optional implementation, the dynamic equation is an Euler-Lagrange equation constructed based on energy information of the robotic arm and the three-dimensional object. Specifically, sub-step 14 above can be implemented as follows:
[0164] Based on the energy information of the manipulator and the three-dimensional object, the Euler-Lagrange equation will be constructed as the dynamic equation according to the posture degrees of freedom;
[0165] It should be noted that the Euler-Lagrange equations are differential equations of a dynamic system, which are constructed by deriving the energy information of the robotic arm and the three-dimensional object. Among them, the attitude degree of freedom includes at least one of the following: the angle between the robotic arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, and the position information of the robotic arm in the vertical direction. In one example, the number of dynamic equations is the same as the number of attitude degrees of freedom, and one dynamic equation corresponds to one attitude degree of freedom. The Euler-Lagrange equation is expressed as:
[0166] The parameter L can be expressed as L=TU. i represents the degree of freedom of posture, τ i Indicates driving dynamics information.
[0167] The following will introduce the posture degrees of freedom separately.
[0168] Implementation method 1: The attitude degree of freedom includes the distance between the center of mass of the 3D object and the rotation axis of the manipulator away from the end of the manipulator. Based on the energy information of the manipulator and the 3D object, the Euler-Lagrange equation is constructed based on the attitude degree of freedom including the angle between the manipulator and the horizontal plane.
[0169] Specifically, the kinetic energy of the manipulator and the three-dimensional object, as well as the potential energy of the manipulator and the three-dimensional object are calculated by partial derivatives to obtain:
[0170] Among the above four formulas, the first formula is to calculate the partial derivative of the kinetic energy of the robotic arm and the three-dimensional object, with respect to the linear velocity of the three-dimensional object on the robotic arm relative to the rotation axis away from the end of the robotic arm; the second formula is to calculate the derivative of the first formula with respect to time; the third formula is to calculate the partial derivative of the kinetic energy of the robotic arm and the three-dimensional object, with respect to the distance between the center of mass of the three-dimensional object and the rotation axis on the robotic arm away from the end of the robotic arm; the fourth formula is to calculate the partial derivative of the potential energy of the robotic arm and the three-dimensional object, with respect to the distance between the center of mass of the three-dimensional object and the rotation axis on the robotic arm away from the end of the robotic arm.
[0171] Please refer to the introduction in step 501 and step 502 for the parameters of the above four equations; in addition, It represents the second-order derivative of α with respect to time, also known as the angular acceleration of the robot arm. Indicates the second-order derivative of the position information of the manipulator in the vertical direction with respect to time, also known as the acceleration of the manipulator in the vertical direction. In a preferred example, Indicates the acceleration of the rotation axis on the robot arm in the vertical direction.
[0172] According to the above, the parameter L in the Euler-Lagrange equation can be expressed as L = TU. Arranging the above four equations, we get:
[0173] The left side of this equation is obtained by subtracting the third from the second of the four equations, and then adding the fourth. Specifically, equation (1.5) = equation (1.2) - equation (1.3) + equation (1.4). Because the dynamic system consisting of the robotic arm and the three-dimensional object is underactuated in the direction of the attitude degree of freedom corresponding to the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, the right side of this equation is 0.
[0174] Implementation method 2: The degree of freedom of posture includes the angle between the manipulator and the horizontal plane. Based on the energy information of the manipulator and the three-dimensional object, the Euler-Lagrange equation is constructed based on the degree of freedom of posture including the angle between the manipulator and the horizontal plane.
[0175] Specifically, the kinetic energy of the manipulator and the three-dimensional object, as well as the potential energy of the manipulator and the three-dimensional object are calculated by partial derivatives to obtain:
[0176] Among the above four formulas, the first formula is to calculate the partial derivative of the kinetic energy of the robotic arm and the three-dimensional object with respect to the angular velocity of the robotic arm's rotation; the second formula is to calculate the derivative of the first formula with respect to time; the third formula is to calculate the partial derivative of the kinetic energy of the robotic arm and the three-dimensional object with respect to the angle between the robotic arm and the horizontal plane; the fourth formula is to calculate the partial derivative of the potential energy of the robotic arm and the three-dimensional object with respect to the angle between the robotic arm and the horizontal plane.
[0177] Please refer to the introduction in step 501 and step 502 for the parameters of the above four equations; in addition, It represents the second derivative of s with respect to time, also known as the linear acceleration of the three-dimensional object on the robotic arm relative to the rotation axis away from the end of the robotic arm.
[0178] According to the above, the parameter L in the Euler-Lagrange equation can be expressed as L = TU. Arranging the above four equations, we get:
[0179] The left side of this equation is obtained by subtracting the third from the second of the four equations, and then adding the fourth. Specifically, equation (2.5) = equation (2.2) - equation (2.3) + equation (2.4). Because the dynamic system consisting of the manipulator and the three-dimensional object is driven by the motor torque τ in the direction of the angle between the manipulator and the horizontal plane, the right side of this equation is τ.
[0180] Implementation method three: The attitude degree of freedom includes the vertical position information of the robot arm. Based on the energy information of the robot arm and the three-dimensional object, the Euler-Lagrange equation is constructed based on the attitude degree of freedom including the angle between the robot arm and the horizontal plane;
[0181] Specifically, the kinetic energy of the manipulator and the three-dimensional object, as well as the potential energy of the manipulator and the three-dimensional object are calculated by partial derivatives to obtain:
[0182] Among the four equations above, the first equation calculates the partial derivative of the kinetic energy of the manipulator and the three-dimensional object with respect to the manipulator's vertical velocity; the second equation calculates the derivative of the first equation with respect to time; the third equation calculates the partial derivative of the kinetic energy of the manipulator and the three-dimensional object with respect to the manipulator's vertical position; and the fourth equation calculates the partial derivative of the potential energy of the manipulator and the three-dimensional object with respect to the manipulator's vertical position. For the parameters of the above four equations, please refer to the descriptions in steps 501 and 502.
[0183] According to the above, the parameter L in the Euler-Lagrange equation can be expressed as L = TU. Arranging the above four equations, we get:
[0184] The left side of this equation is obtained by subtracting the third from the second of the four equations, and then adding the fourth. Specifically, equation (3.5) = equation (3.2) - equation (3.3) + equation (3.4). Because the dynamic system consisting of the manipulator and the three-dimensional object is driven by force F in the direction of the manipulator's vertical position information, the right side of this equation is F.
[0185] In summary, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm, constructs a dynamic equation based on the energy information of the robotic arm and the three-dimensional object, and obtains the first control signal through the dynamic equation prediction, thereby expanding the method for determining the first control signal; and expanding the control method of the robotic arm to throw and catch three-dimensional objects.
[0186] In one example, the control method of the robotic arm may be executed by a controller of the robotic arm. That is, in the embodiment shown above, sub-step 16 may be implemented as sub-step 16a and sub-step 16b:
[0187] Sub-step 16a: According to the dynamic equation, based on the velocity of the three-dimensional object in the vertical direction as a cost equation, predict the predicted posture;
[0188] Exemplarily, there is at least one dynamic equation; the dynamic equation's attitude degree of freedom includes the distance between the three-dimensional object's center of mass and the rotation axis of the manipulator distal to the manipulator's end; and the dynamic equation is an Euler-Lagrange equation, for example. The Euler-Lagrange equation is reorganized to obtain a calculation formula for the second-order derivative corresponding to the attitude degree of freedom. When the attitude degree of freedom includes the distance between the three-dimensional object's center of mass and the rotation axis of the manipulator distal to the manipulator's end, the second-order derivative is the linear acceleration of the three-dimensional object on the manipulator relative to the rotation axis distal to the manipulator's end. Specifically:
[0189] For the various parameters, please refer to the introduction in step 501 and step 502, which will not be repeated here.
[0190] Similarly, the Euler-Lagrange equations in Implementation Methods 2 and 3 above are reorganized to obtain the calculation formula for the second-order derivative corresponding to the attitude degree of freedom. For example, the first actual attitude and the first-order derivative of the first actual attitude with respect to time in the dynamic equation are determined as state variables, resulting in six state variables, namely x1 to x6, specifically: x1 = z; x2 = α; x3 = s;
[0191] Exemplarily, by performing derivative calculations on the six state variables, the system state equation (States Function) includes the six state variables mentioned above and the following six equations obtained by performing derivative calculations on the six state variables:
[0192] Exemplarily, at least one of the system state equations is obtained by sorting the Euler-Lagrange equations described above. For the above parameters, please refer to the descriptions in steps 501 and 502. In an optional example, a nonlinear model predictive controller (NLMPC) is called to predict the predicted posture based on the state variables determined by the dynamic equations and the system state equations, using the vertical velocity of the three-dimensional object as the cost equation.
[0193] Exemplarily, the predicted posture is to maximize the vertical speed of the three-dimensional object, and the posture information of the robot arm is obtained; when the robot arm moves according to the predicted posture, the vertical speed of the three-dimensional object is maximized.
[0194] In one example, the predicted pose includes information about the angle between the manipulator and a horizontal plane and the manipulator's vertical position. Optionally, the predicted pose also includes information about the distance between the center of mass of the three-dimensional object and a rotation axis of the manipulator distal to the manipulator's distal end. Furthermore, the predicted pose also includes the first-order derivative and / or second-order derivative of at least one of the angle, position, and distance information with respect to time.
[0195] Sub-step 16b: determining a first control signal according to the predicted posture;
[0196] Exemplarily, the predicted posture is used to indicate the position characteristics of the manipulator in three-dimensional space. A calculation is performed based on the predicted posture and physical information of the manipulator in the dynamic system to obtain a first control signal.
[0197] For example, for the angle between the manipulator and the horizontal plane and the position information of the manipulator in the vertical direction in the predicted posture, the first control signal is:
[0198] Among them, Joint angle 1 is the control signal of the joint angle 1 of the manipulator, initial Joint angle 1 is the initial angle of the joint angle 1 of the manipulator, such as the angle information of the joint angle 1 of the manipulator in the first actual posture; Joint angle 3 is the control signal of the joint angle 3 of the manipulator, and Joint angle 4 is the control signal of the joint angle 4 of the manipulator. Optionally, the velocity of the three-dimensional object in the vertical direction is used as the cost equation to obtain the first control signal. The first control signal is a control signal that aims to maximize the velocity of the three-dimensional object in the vertical direction. The above-mentioned velocity is the velocity when the three-dimensional object and the manipulator lose contact. It should be noted that the above-mentioned joint angles refer to the 7-DOF manipulator in Figure 1, from the angle between the two movable parts of the shoulder joint upper arm as Joint angle 1 to the angle between the two movable parts at the end of the manipulator as Joint angle 7. The description of the joint angles below is determined based on the 7-DOF manipulator in Figure 1 and will not be repeated below.
[0199] It should be noted that, in the above implementation method in which the first actual posture only includes the angle between the robotic arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, there is no information about the position of the robotic arm in the vertical direction in the state variables and system state equations corresponding to NLMPC. For example, the various parameters of the various formulas regarding the position information of the robotic arm in the vertical direction in this embodiment are set to 0.
[0200] This embodiment shows that angle information is used as the first control signal of the robotic arm. Optionally, the first control signal can also be implemented as at least one of other information such as force, torque, etc., which is not limited in this embodiment.
[0201] In summary, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm; the predicted posture establishes a correlation between the constructed dynamic equation and the first control signal, expanding the method for determining the first control signal; and expanding the control method of the robotic arm for throwing and catching three-dimensional objects.
[0202] Next, the predicted posture is further introduced.
[0203] For example, when the first control signal corresponds to multiple timestamps, the predicted posture also corresponds to multiple timestamps, and the predicted posture can be represented as a time series. FIG11 shows a schematic diagram of the vertical velocity of a three-dimensional object provided by an exemplary embodiment of the present application. This diagram shows information about the vertical velocity of the three-dimensional object changing over time, and the velocity information is calculated according to step 502. FIG12 shows a schematic diagram of the predicted posture provided by an exemplary embodiment of the present application. The predicted posture shown in the eight sub-graphs in the figure includes: the position information of the robot arm in the vertical direction (expressed as z), the angle between the robot arm and the horizontal plane (expressed as alpha), the speed of the robot arm in the vertical direction (expressed as zd), the angular velocity between the robot arm and the horizontal plane (expressed as alphad), the acceleration of the robot arm in the vertical direction (expressed as zdd), the angular acceleration of the robot arm rotation (expressed as alphadd), the distance between the center of mass of the three-dimensional object and the rotation axis of the robot arm away from the end of the robot arm (expressed as s), and the speed between the center of mass of the three-dimensional object and the rotation axis of the robot arm away from the end of the robot arm (expressed as sd), where d represents the first-order derivative and dd represents the second-order derivative.
[0204] Optionally, the sub-step 16a above may be implemented as the following steps:
[0205] According to the dynamic equation, the velocity of the three-dimensional object in the vertical direction is used as the cost equation to predict the second prediction sub-information;
[0206] Interpolate the second predicted sub-information and the first actual posture to obtain the first predicted sub-information;
[0207] The predicted posture corresponds to multiple timestamps; specifically, the predicted posture includes first predicted sub-information and second predicted sub-information, and the first timestamp corresponding to the first predicted sub-information is earlier than the second timestamp corresponding to the second predicted sub-information.
[0208] For example, assuming the control frequency of a robotic arm controller is 250Hz, meaning a control cycle of 0.004s, and the time required for the robotic arm to disengage from contact with a three-dimensional object is 0.4 to 0.6s, predicting the predicted pose based on a control cycle of 0.004s requires 100 to 150 iterations to achieve the predicted pose. By reducing the control cycle of the prediction process, for example by designing the NLMPC with a step size of 0.016s, the number of iterations can be reduced to 25 to 35 steps. Interpolation operations can then be performed, such as interpolating three predicted poses between adjacent predicted poses, resulting in a total of 100-150 predicted poses, meeting the actual control cycle requirement of 0.004s for the robotic arm. Interpolation reduces the number of predictions, saves time in determining the predicted pose, and reduces the computational requirements of the controller. The specific interpolation method can be linear interpolation, cubic spline interpolation, or other interpolation methods, which are not limited in this embodiment. It should be noted that the second prediction sub-information obtained by interpolation processing may be control information of one or more timestamps, which is not limited in this embodiment.
[0209] Next, optionally, based on the embodiments corresponding to sub-steps 16a and 16b, the following steps are further included after sub-step 16b:
[0210] When the predicted posture exceeds the range of motion of the manipulator, the predicted posture is updated based on the range of motion of the manipulator;
[0211] For example, the range of motion of the manipulator is used to indicate the motion limit information of the manipulator, such as: the angle between the manipulator and the horizontal plane (expressed as α), the distance between the center of mass of the three-dimensional object and the rotation axis of the manipulator away from the end of the manipulator (expressed as s), the position information of the manipulator in the vertical direction (expressed as z), the acceleration of the manipulator in the vertical direction (expressed as ), the angular acceleration of the robot arm (expressed as ). In a specific example, the range of motion is as follows:
[0212] For example, the range of motion can be used as a constraint on the predicted posture, ensuring that the predicted posture does not exceed the aforementioned range of motion. Alternatively, if the predicted posture exceeds the range of motion of the robotic arm, the predicted posture can be updated based on the range of motion of the robotic arm, re-predicted, or directly corrected. For example, the predicted posture can be updated based on the extreme value of the range of motion close to the predicted posture to prevent the predicted posture from exceeding the range of motion. Using the range of motion as a constraint prevents the predicted posture from exceeding information such as the length and speed of the robotic arm.
[0213] Figure 13 shows a schematic diagram of a robotic arm and a three-dimensional object according to an exemplary embodiment of the present application. Figure 13 includes sub-figures a through f, each showing six time stamps during the robotic arm's process of lifting a three-dimensional object 612. For example, in sub-figure a, three-dimensional object 612 is placed on a forearm 600a of the robotic arm, which also includes a large arm 600b. For details about the forearm and large arm, please refer to sub-step 16b, step 604, and the relevant descriptions in Figure 3 and are not shown here. In sub-figure b, forearm 600a performs a pitching motion and rotates about the elbow joint, causing the end 600c of the robotic arm to decrease in height. In sub-figure c, forearm 600a performs a pitching motion and rotates about the elbow joint, causing the end 600c of the robotic arm to increase in height. In sub-figure d, forearm 600a rotates about the elbow joint, while large arm 600b rotates about the shoulder joint, causing the end 600c of the robotic arm to continue to increase in height. For example, sub-graph d corresponds to the timestamp before the three-dimensional object 612 and the robotic arm lose contact. In sub-graph e, the three-dimensional object 612 and the robotic arm lose contact and the three-dimensional object 612 is thrown up. In sub-graph f, the three-dimensional object 612 reaches the highest point.
[0214] Next, we will introduce how to obtain the first actual posture.
[0215] For example, in one implementation, the first actual posture is acquired based on a visual sensor. In another implementation, the first actual posture is acquired based on a visual sensor and a tactile sensor.
[0216] 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. Another example is that tactile sensors are installed on the fingers, palm, or a connecting rod of the robotic arm to obtain feedback information about three-dimensional objects.
[0217] In some embodiments, the first actual posture can also be acquired through a proximity sensor. The proximity sensor is configured to emit a signal when two objects approach each other. When a three-dimensional object approaches the proximity sensor, the first actual posture can be acquired accordingly.
[0218] Illustratively, to obtain the first actual posture, this application provides the following three optional implementation methods:
[0219] Implementation method 1: Full-degree-of-freedom posture recognition of three-dimensional objects based on visual perception.
[0220] 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 a three-dimensional object with all six degrees of freedom to determine the relative position of the three-dimensional object and the robotic arm, thereby determining the first actual posture. In some embodiments, the posture recognition operation time is approximately 100 milliseconds, or 10 Hz.
[0221] Implementation method 2: Data image processing based on visual sensors.
[0222] Alternatively, lightweight data image processing methods can be applied to determine the position of a 3D object within a dynamic system. For example, a camera can be placed on a robotic arm or in an external environment to capture image information of the robotic arm and the 3D object. This image information is used to demonstrate the placement of the 3D object on the robotic arm. The image information is then processed to produce an image processing result.
[0223] For example, after acquiring image information, cluster analysis is performed based on the color differences between the 3D object and objects in the environment to determine the geometric center of the 3D object. The geometric center and center of mass positions within the dynamic system can then be determined. Based on this information, combined with relevant information about the robotic arm, a first actual posture can be derived. For example, the coordinates of the contact position and movement speed are determined based on the geometric center of the 3D object, and the offset and offset speed are determined based on the center of mass position of the 3D object.
[0224] 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.
[0225] Optionally, the first actual posture is implemented based on acquisition by a visual sensor: image information is acquired through a visual sensor, and the image information is used to display the three-dimensional object placed on the robotic arm; the first actual posture is determined based on an image processing result obtained based on image information processing.
[0226] Alternatively, optionally, for an implementation in which the first actual posture is acquired based on a visual sensor and a tactile sensor:
[0227] Determining first information of a three-dimensional object in a first direction based on a visual sensor;
[0228] determining second information of the three-dimensional object in a second direction based on the tactile sensor;
[0229] Fusing the first information and the second information to obtain a first actual posture;
[0230] The first direction is the direction of a horizontal line perpendicular to the robotic arm, and the second direction is the direction of an extension line of the robotic arm.
[0231] Implementation method three: Data fusion processing based on visual sensors and tactile sensors.
[0232] In some embodiments, the first actual posture may also be obtained based on a visual sensor and a tactile sensor. The processing of the visual sensor may refer to the above content, and the processing of the tactile sensor is specifically as follows.
[0233] Based on the above, when applying lightweight data image processing methods, there may be large errors in the depth direction of the camera (i.e., the direction of the y-axis shown in Figure 8). Based on this, tactile sensors can be used to compensate. For example, tactile sensors are laid on the outer shell of the robotic arm to collect tactile signals corresponding to when a three-dimensional object is placed on the robotic arm. Based on this, the specific position of the three-dimensional object in the y-direction on the robotic arm can be accurately obtained.
[0234] It can be understood that the tactile sensor gives the position and pitch angle posture of the balance 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 three-dimensional object in the y direction on the robotic arm can be determined.
[0235] In some embodiments, the operation time of the tactile sensor in this implementation is about 10 milliseconds, that is, 10 Hz.
[0236] With reference to the above content, a comparison of the three implementation methods is given in the following table:
[0237] It should be understood that when implementing method 1, there will be a linear error of 1-2 cm and an angular error of 5-10 degrees in determining the position of a three-dimensional object on the robotic arm, that is, the first actual posture 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 first actual posture obtained smaller.
[0238] 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 the first actual posture, and this application does not limit this.
[0239] Referring to the above, first information about the three-dimensional object in a first direction is determined using a visual sensor; second information about the three-dimensional object in a second direction is determined using a tactile sensor; and the first and second information are fused to obtain a first actual posture. Optionally, determining the second information can be specifically implemented by determining, using a tactile sensor, the position of the contact point between the three-dimensional object and the robotic arm relative to the robotic arm.
[0240] It should be understood that the position information determined thereby includes at least the coordinates of the contact position between the three-dimensional object and the robotic arm. The details of how the tactile sensor acquires position information are described above and are not further elaborated. In some embodiments, the tactile sensor is disposed on the outer shell of the robotic arm, and the tactile sensor acquires the contact position between the three-dimensional object and the robotic arm.
[0241] 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.
[0242] 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.
[0243] To summarize, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; based on a visual sensor, or based on a visual sensor and a tactile sensor, determine the first actual posture, and provide multiple acquisition methods for the first actual posture; expand the control method of throwing and catching three-dimensional objects and maintaining balance at any position of the robotic arm except the end.
[0244] Next, we will introduce how the robotic arm grasps three-dimensional objects.
[0245] FIG14 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method may be executed by a controller of the robotic arm. That is, in the embodiment shown in FIG4 , step 512 is further included:
[0246] Step 512: Obtain motion trajectory information of the three-dimensional object;
[0247] Exemplarily, the motion trajectory information of a three-dimensional object is the motion trajectory of the three-dimensional object in the air after being thrown. Exemplarily, the motion trajectory information may include the motion trajectory of the center of mass of the three-dimensional object, or the motion trajectory of at least one point on or within the three-dimensional object, although this embodiment does not limit this.
[0248] For example, the motion trajectory information is usually predicted by the information of the three-dimensional object thrown by the robotic arm, but it is not ruled out that the motion trajectory information is obtained or predicted by measuring the posture information of the three-dimensional object in the air.
[0249] Optionally, the motion trajectory information is predicted by the position characteristics and force characteristics of the three-dimensional object before the robotic arm throws the three-dimensional object. Furthermore, the position characteristics of the three-dimensional object include but are not limited to the position information before the robotic arm and the three-dimensional object lose contact. The force characteristics of the three-dimensional object include but are not limited to the force information before the robotic arm and the three-dimensional object lose contact, the joint angular position of the robotic arm, the joint angular velocity of the robotic arm, the current information of the robotic arm, and the torque of the robotic arm. In a specific example, the position characteristics and force characteristics of the three-dimensional object are sequence values that change with time. The above information can be represented in the form of a vector or a matrix. The time difference between adjacent values in the sequence value can be predetermined or carried in the sequence, which is not limited in this embodiment.
[0250] Exemplarily, the second control signal is determined based on a second actual posture of the robotic arm and motion trajectory information, where the second actual posture is used to indicate posture position information of the robotic arm. Exemplarily, the second control signal of the end of the robotic arm is determined based on the second actual posture of the robotic arm and motion trajectory information of the three-dimensional object;
[0251] Illustratively, the second actual posture of the robotic arm is used to indicate the posture position information of the robotic arm at the current timestamp, for example, the posture information is described by at least one of the angle and angular velocity of the robotic arm. The second control signal is used to control the end of the robotic arm to grasp the three-dimensional object, and the motion trajectory information is the parabolic trajectory after the three-dimensional object and the robotic arm lose contact;
[0252] Exemplarily, the second control signal controls the robotic arm to move with reference to the motion trajectory information of the three-dimensional object, so that the end of the robotic arm and the three-dimensional object can remain relatively still and grasp the three-dimensional object.
[0253] 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. Among them, the PID controller is a feedback loop component used in industrial control applications. According to the control principle of the PID controller, the collected data can be compared with the corresponding reference value (or can be understood as the expected value or target value), and the difference between the two can be used to calculate a new input value. The purpose of this new input value is to allow the system data to reach or remain at the reference value.
[0254] Exemplarily, according to the second control signal, the end of the robotic arm is controlled to grasp the three-dimensional object, and the grasped three-dimensional object reaches a force balance state; after determining the second control signal, the robotic arm can be controlled to move according to the second control signal.
[0255] Furthermore, the second control signal may be a control signal on one or more rotating shafts, and the second control signal is usually used to control the movement of the robotic arm by controlling the torque.
[0256] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the upper end of the robotic arm; the controller executes control of the robotic arm, and determines the second control signal based on the first actual posture of the robotic arm and the motion trajectory information of the three-dimensional object, to complete the control of the upper end of the robotic arm to grab the three-dimensional object, thereby expanding the control method of the robotic arm to throw and catch three-dimensional objects.
[0257] In one example, the control method of the robotic arm may be executed by a controller of the robotic arm. That is, in the embodiment shown in FIG14 , step 520 may be implemented as sub-steps 21 and 22:
[0258] Sub-step 21: determining a first desired posture of the robotic arm based on the motion trajectory information of the three-dimensional object;
[0259] Exemplarily, the first desired posture may be the same as the motion trajectory information, or may be determined based on the motion trajectory information. The first desired posture is determined based on the motion trajectory information of the three-dimensional object. In one example, the first desired posture is determined by correcting the motion trajectory information of the three-dimensional object based on the shape characteristics of the three-dimensional object. Correcting the motion trajectory information based on the shape characteristics of the three-dimensional object is intended to ensure contact between the robotic arm and the three-dimensional object, thereby enabling the end of the robotic arm to grasp the three-dimensional object.
[0260] Sub-step 22: determining a second control signal according to a difference between the second actual posture and the first desired posture;
[0261] Exemplarily, the first desired posture is used to indicate the posture information of the robotic arm when grasping a thrown three-dimensional object. In one implementation, the second actual posture includes the angle and angular velocity of the robotic arm rotating around the first rotation axis; correspondingly, the first desired posture includes the desired angle and desired angular velocity of the robotic arm rotating around the first rotation axis, and the second control signal includes the first control torque;
[0262] Exemplarily, this step can be implemented as the following sub-steps:
[0263] Determining a first control torque according to a difference between the angle and the desired angle, and a difference between the angular velocity and the desired angular velocity;
[0264] The first control torque is used to indicate the torque applied in the roll direction of the robotic arm when rotating about the first rotation axis, where the first rotation axis is a horizontal line perpendicular to the robotic arm; and / or the first control torque is used to indicate the torque applied in the pitch direction of the robotic arm when rotating about the first rotation axis, where the first rotation axis is an extension line of the robotic arm. Referring to FIG. 8 above, the first rotation axis is the x-direction and / or the y-direction in FIG. 8 .
[0265] Specifically, 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 signal 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 second control signal as the first control torque as an example, the PID controller can be implemented using the following formula:
[0266] Among them, τ is used to indicate the first control torque, a is used to indicate the angle of rotation around the first axis in the second actual posture, Used to indicate the angular velocity of rotation around the first axis in the second actual posture, is the first-order derivative of a with respect to time, a ref 、 k is used to indicate a first desired posture, specifically, the first desired posture includes a desired angle and a desired angular velocity of the robot arm rotating around the first rotation axis; p 、k d 、k i 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 of the first control torque respectively.
[0267] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then catch the three-dimensional object at any position except the end, and restore the balance of the three-dimensional object; the controller executes control of the robotic arm, and determines the first control signal according to the PID controller based on the first actual posture of the robotic arm and the motion trajectory information of the three-dimensional object, to complete the control of any position except the end of the robotic arm to catch the thrown three-dimensional object, thereby expanding the control method of throwing and catching three-dimensional objects and maintaining balance at any position except the end of the robotic arm.
[0268] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then grab the three-dimensional object through the upper end of the robotic arm; the controller executes control of the robotic arm, and determines the second control signal according to the PID controller based on the first actual posture of the robotic arm and the motion trajectory information of the three-dimensional object, to complete the control of the upper end of the robotic arm to grab the three-dimensional object, thereby expanding the control method of the robotic arm to throw and catch three-dimensional objects.
[0269] Next, we will introduce how to catch a three-dimensional object at any position on the robotic arm except the end.
[0270] FIG15 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method can be executed by a controller of the robotic arm. In the embodiment shown in FIG4 , steps 525, 530, 535, and 540 are also included:
[0271] Step 525: Obtain a third control signal;
[0272] Illustratively, the third control signal is used to control the robotic arm to catch a thrown three-dimensional object at any location other than the end. Optionally, the third control signal controls the robotic arm to move based on the motion trajectory of the three-dimensional object, allowing the end of the robotic arm and the three-dimensional object to remain relatively stationary and catch the three-dimensional object. Similar to the first control signal, this application does not limit the method for obtaining the third control signal.
[0273] Step 530: Controlling any position of the robotic arm except the end thereof to catch the thrown three-dimensional object based on the third control signal;
[0274] Exemplarily, there is a non-grasping operation (Nonprehensile Manipulation) between any position on the robotic arm except the end and the three-dimensional object; the contact between any position on the robotic arm except the end and the three-dimensional object does not constitute at least one of a form closure and a force closure of the three-dimensional object.
[0275] Optionally, in one implementation, the following steps are further included before step 530:
[0276] Obtaining motion trajectory information of three-dimensional objects;
[0277] Exemplarily, the third control signal is determined based on the second actual posture of the robotic arm and the motion trajectory information of the three-dimensional object. Based on the second actual posture of the robotic arm and the motion trajectory information of the three-dimensional object, the third control signal for the robotic arm is determined; based on the third control signal, the robotic arm is controlled to catch the thrown three-dimensional object at any position other than the end.
[0278] Exemplarily, the motion trajectory information is the parabolic trajectory of the three-dimensional object after the robotic arm loses contact. The method for obtaining the motion trajectory information is described in step 512 above and will not be further described here. The third control signal is used to control the robotic arm to catch the thrown three-dimensional object at any position other than the end. The second actual posture of the robotic arm is used to indicate the posture position information of the robotic arm at the current timestamp, for example, describing the posture information by at least one of the robotic arm's angle and angular velocity.
[0279] The third control signal includes information instructing the robotic arm to move with reference to the motion trajectory information of the three-dimensional object. For example, the information instructing the robotic arm to move with reference to the motion trajectory information of the three-dimensional object can be referred to in step 512 above. In some embodiments, the robotic arm control method provided in embodiments of the present application can be implemented using a proportional-integral-differential controller. For specific implementation methods, refer to sub-step 22 above.
[0280] Step 535: Obtain a fourth control signal;
[0281] Exemplarily, the fourth control signal is used to control the robotic arm so that the three-dimensional object can be rebalanced at any position other than the end. Similar to the first control signal, the present application does not limit the method for obtaining the fourth control signal.
[0282] Step 540: Control the robotic arm based on the fourth control signal so that the three-dimensional object reaches a force equilibrium state again at any position except the end;
[0283] Exemplarily, the three-dimensional object regains its balance on the robotic arm, and the three-dimensional object regains a state of force equilibrium. The purpose of controlling the robotic arm provided in this step is to ensure that the three-dimensional object is in a balanced state on the robotic arm, so that the three-dimensional object can always maintain balance on the robotic arm without falling. Exemplarily, maintaining the balance of the three-dimensional object can include at least one of the following two states: a static equilibrium state, in which the three-dimensional object remains stationary on the robotic arm; and a dynamic equilibrium state, in which the three-dimensional object moves or rolls on the robotic arm but does not fall.
[0284] Optionally, in one implementation, the following steps are further included before step 540: acquiring a third actual posture;
[0285] Exemplarily, the fourth control signal is determined based on the third actual posture and the second expected posture. Based on the third actual posture and the second expected posture, the fourth control signal of the robotic arm is determined; based on the fourth control signal, the robotic arm is controlled so that the three-dimensional object regains balance at any position other than the end. Exemplarily, the third actual posture is the contact information between the robotic arm and the three-dimensional object, and the contact information is used to indicate the interaction between the robotic arm and the three-dimensional object, such as at least one of the mechanical characteristics, position characteristics, and other characteristics. Taking the position characteristic as an example, the third actual posture is at least one of the information such as the contact position between the robotic arm and the three-dimensional object, the speed at the contact position, and the acceleration.
[0286] Exemplarily, the second desired posture is used to indicate the posture information of the robotic arm so that the three-dimensional object maintains balance on the robotic arm. In some embodiments, the second desired posture is 0, and the three-dimensional object is expected to be in a static equilibrium state so that the three-dimensional object remains stationary on the robotic arm. In other embodiments, the second desired posture is not 0, and the three-dimensional object is expected to be in a dynamic equilibrium state so that the three-dimensional object can displace or roll on the robotic arm but not fall. 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 controller.
[0287] After determining the fourth control signal, the manipulator can be controlled according to the fourth control signal. Furthermore, the fourth control signal can be a control signal on one or more rotating shafts. The fourth control signal generally controls the movement of the manipulator by controlling the torque. Optionally, the fourth control signal is determined according to the difference between the third actual posture and the second desired posture.
[0288] In one implementation, the third actual posture includes position information of the center of mass of the three-dimensional object in the direction of the second rotation axis and the offset speed of the three-dimensional object in the direction of the second rotation axis; correspondingly, the second expected posture includes the expected position of the center of mass of the three-dimensional object in the direction of the second rotation axis and the expected speed of the three-dimensional object in the direction of the second rotation axis, and the fourth control signal includes a second control torque; in one implementation, the second expected posture is pre-set so as to provide posture information that allows the three-dimensional object to maintain balance at any position except the end.
[0289] Exemplarily, this step can be implemented as the following sub-steps:
[0290] determining a second control torque according to a difference between the position information and the desired position, and a difference between the offset speed and the desired speed;
[0291] The second control torque is used to indicate the torque applied in the roll direction of the robotic arm when rotating about the second rotation axis, where the second rotation axis is a horizontal line perpendicular to the robotic arm; and / or the second control torque is used to indicate the torque applied in the pitch direction of the robotic arm when rotating about the second rotation axis, where the second rotation axis is an extension of the robotic arm. Referring to FIG. 8 above, the first rotation axis is the x-direction and / or the y-direction in FIG. 8 .
[0292] Specifically, 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 signal 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 fourth control signal being the second control torque as an example, the PID controller can be implemented using the following formula:
[0293] Wherein, τ is used to indicate the second control torque, and y is used to indicate the position information of the center of mass of the three-dimensional object in the direction of the second rotation axis in the third actual posture. It is used to indicate the offset speed of the three-dimensional object in the direction of the second rotation axis in the third actual posture. is the first-order derivative of y with respect to time, y ref 、 k is used to indicate a second desired posture, specifically, the second desired posture includes a desired position of the center of mass of the three-dimensional object in the direction of the second rotation axis and a desired speed of the three-dimensional object in the direction of the second rotation axis; p 、k d 、k i 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 of the second control torque respectively.
[0294] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw a three-dimensional object at any position except the end, and then catch the three-dimensional object at any position except the end, and restore the balance of the three-dimensional object; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object, expanding the control method of throwing and catching three-dimensional objects and maintaining balance at any position except the end of the robotic arm.
[0295] FIG16 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method may be executed by a controller of the robotic arm. The method includes:
[0296] Step 602: Receive first instruction information;
[0297] For example, if the first command information is not received, the robotic arm continues to wait for user commands in a preset command preparation posture. The first command information can be sent via an input device such as voice, gesture, keyboard, or remote control. The first command information can be obtained through artificial intelligence-based cluster analysis and pattern recognition of voice and gesture, or through command signal transmission and analysis.
[0298] The first instruction information is used to instruct the robotic arm to throw up a three-dimensional object (such as a bottle) and then catch the three-dimensional object thrown in the air.
[0299] Step 604: Control the robotic arm to move to a preparatory posture for the throwing action;
[0300] The robot arm is controlled to move to a preparatory posture for throwing the bottle with the forearm, and the preparatory posture is a pre-set robot arm posture. For example, the preparatory posture is convenient for starting the forearm throwing bottle action at any time and is a safe and stable posture for the robot arm.
[0301] Specifically, the initial posture can be set as the first arm of the dual robotic arm platform is straightened and points to the right front, while the 1st joint (the upper arm shoulder joint) moves downward, and the 4th and 5th joints (the lower arm elbow joint) move upward, keeping the rigid body of the lower arm basically parallel to the ground, and the distance between the lower arm and the ground is less than the distance between the shoulder joint and the ground.
[0302] Step 606: Determine whether the bottle position meets the action requirements;
[0303] Exemplarily, if the bottle position does not meet the action requirements, step 608 is executed; if the bottle position meets the action requirements, steps 610 and 612 are executed;
[0304] For example, the bottle's position meets the action requirements for a tossing motion. These requirements are planned based on the mechanical model of the robotic arm and bottle, or they can be preset. For example, the bottle should be parallel to the ground, the bottle should be perpendicular to the robotic arm's forearm, the contact point between the bottle and the forearm should be at the edge of the forearm near the elbow, or the contact point between the bottle and the forearm should be about one-third of the way along the forearm near the elbow.
[0305] Exemplarily, when the bottle position does not meet the action requirement, step 608 is executed; when the bottle position meets the action requirement, step 610 is executed.
[0306] Step 608: If the bottle position does not meet the action requirements, control the robotic arm to adjust the bottle posture;
[0307] Exemplarily, after executing step 608, step 606 is executed to determine again whether the bottle position meets the action requirements. Exemplarily, if the bottle position does not meet the action requirements, the robot arm is controlled to move to indirectly adjust the bottle posture until the bottle position meets the action requirements.
[0308] Step 610: When the bottle position meets the action requirements, control the first arm to perform the throwing action;
[0309] For example, this embodiment uses a dual robotic arm platform for illustration. In another implementation, all steps in this embodiment can be implemented by a single robotic arm.
[0310] For example, when the first arm is controlled to perform a tossing motion, a bottle placed on the forearm of the first arm acquires an upward velocity, maintains a velocity after separating from the upper surface of the forearm, and continues the upward tossing motion. During the period of contact and interaction between the forearm and the bottle, i.e., before the forearm and the bottle disengage, the bottle can slide on the forearm. However, during this sliding process, the bottle will not fall from the upper surface of the forearm, nor will it slide out of the forearm's forward and backward range due to excessive speed or distance.
[0311] After the bottle is thrown into the air, it can have a speed in the forward direction of the small arm, a speed in the direction from the first arm to the second arm, and a speed of the bottle's own rotation.
[0312] In a specific implementation, the first arm performs a throwing action including: the robotic arm starts from a preparatory posture, and within a first time period (for example, 0.1s), the values of joint angle 4 and joint angle 5 (forearm elbow joint) are reduced from the initial value of the preparatory posture to 0 degrees, and joint angle 3 moves from 1.57 radians to 1.37 radians, and the values of other joint angles remain unchanged; within a second time period (for example, 0.2s), the values of joint angle 4 and joint angle 5 (forearm elbow joint) are increased from 0 degrees to a value greater than the initial value of the preparatory posture (for example, 0.5 radians), joint angle 1 rotates from the initial angle to a preset value (for example, 0.3 radians), joint angle 3 moves from 1.37 radians to 1.17 radians, and the values of other joint angles remain unchanged.
[0313] Step 612: When the bottle position meets the action requirements, control the second arm to move to a preparatory posture for the receiving movement;
[0314] Illustratively, the ready posture allows the second arm to be ready to receive the bottle at any time, and is a safe and stable posture for the second arm.
[0315] Step 614: predicting the trajectory information of the bottle in the air;
[0316] For example, after the bottle separates from the forearm, the tactile position and force magnitude timing information before the forearm and bottle separate, the joint angle position, speed and current information of the robotic arm, and the visual sensing information are used to predict the trajectory information of the bottle in the world coordinate system or the center of mass coordinate system relative to the first arm after it is thrown.
[0317] Step 616: Control the second arm to move according to the predicted trajectory information;
[0318] For example, based on the trajectory information of the bottle in the air, the second arm will move toward the movement position and direction of the bottle, and maintain a similar speed to the bottle when it is close to the bottle.
[0319] The time series of the second arm's position and posture is planned based on the bottle's trajectory in the air. This time series is used to control the second arm's movement.
[0320] Step 618: Control the robot arm at the end of the second arm to close and grasp the bottle;
[0321] In one implementation, the bottle is grasped by a robotic arm at the end of the second arm. The robotic arm controls the position of each joint angle on the robotic arm according to the time sequence obtained from the trajectory information of the bottle in the air when the bottle approaches the palm, and controls the posture of the robotic arm from open to closed to complete the grasping of the flying bottle.
[0322] Step 620: Control any position of the second arm except the end to catch the thrown three-dimensional object, and restore the balance of the three-dimensional object at any position except the end;
[0323] There is no gripping between any position on the second arm, except the end, and the three-dimensional object; contact between any position on the second arm, except the end, and the three-dimensional object does not constitute at least one of form closure and force closure of the three-dimensional object. The three-dimensional object is rebalanced on the second arm. The purpose of controlling the first arm in this step is to ensure that the three-dimensional object remains balanced on the second arm, preventing it from falling.
[0324] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw up a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object; the throwing of the three-dimensional object is realized by controlling the robotic arm at any position except the end, which is a control method of the robotic arm that has not been realized in the related art, and expands the control method of the robotic arm for throwing and catching three-dimensional objects.
[0325] FIG17 shows a flow chart of a method for controlling a robotic arm according to an exemplary embodiment of the present application. The method may be executed by a controller of the robotic arm. The method includes:
[0326] Step 632: Receive second instruction information;
[0327] Exemplarily, if the second command information is not received, the robotic arm continues to wait for user commands in a preset command preparation posture. The second command information can be sent via an input device such as voice, gesture, keyboard, or remote control. The second command information can be obtained through artificial intelligence-based cluster analysis and pattern recognition of voice and gesture, or through command signal transmission and analysis. The second command information is used to instruct the robotic arm to balance a three-dimensional object (such as a bottle) placed anywhere on the robotic arm except at the end.
[0328] Step 634: Control the robotic arm to move to a preparatory posture for the balancing action;
[0329] The robot arm is controlled to move to a preparatory posture for throwing the bottle with the forearm, and the preparatory posture is a pre-set robot arm posture. For example, the preparatory posture facilitates the forearm to start the action of balancing the bottle at any time and is a safe and stable posture for the robot arm.
[0330] Specifically, the initial posture can be set to that the first arm of the dual-manipulator platform is straight and points to the right front.
[0331] Step 636: Determine whether the tactile information is normal;
[0332] Exemplarily, if the tactile information is determined to be abnormal, this step is repeated until normal tactile information is obtained. Abnormal tactile information includes no tactile signal received or an abnormal tactile signal received. If the tactile information is determined to be normal, step 638 is executed.
[0333] Step 638: If the tactile information is determined to be normal, determine whether the visual information is normal;
[0334] Exemplarily, if the visual information is determined to be abnormal, this step is repeated until normal visual information is obtained. Abnormal visual information includes no visual signal received or abnormal visual signal received. If the visual information is determined to be normal, step 640 is executed.
[0335] Step 640: If the visual information is normal, determine whether the bottle position meets the action requirements;
[0336] The bottle's position is determined based on a fusion of received visual and tactile information, indicating the bottle's position and posture on the robotic arm. If the bottle's position does not meet the action requirements, step 642 is executed; if the bottle's position meets the action requirements, step 644 is executed.
[0337] Step 642: If the bottle position does not meet the action requirements, control the robotic arm to adjust the bottle posture;
[0338] For example, when the position of the bottle does not meet the action requirements, the robot arm is controlled to move, and the posture of the bottle is indirectly adjusted until the position of the bottle meets the action requirements.
[0339] Step 644: When the bottle position meets the action requirements, control the first arm to perform a balancing action;
[0340] Exemplarily, controlling the first arm to perform a balancing action includes: expecting the three-dimensional object to be in a static equilibrium state so that the three-dimensional object remains stationary on the robotic arm. Expecting the three-dimensional object to be in a dynamic equilibrium state so that the three-dimensional object displaces or rolls on the robotic arm but does not fall. Furthermore, the robotic arm can also be used to perform actions including, but not limited to, at least one of the following: using the manipulator at the end of the robotic arm to perform grasping, throwing, and catching actions, using the end tool of the robotic arm to perform jacking, screwing, and installation and assembly actions, using the manipulator at the end of the robotic arm to open and close doors, grab objects on the desktop and in the workspace, etc.
[0341] To sum up, the method provided in this embodiment provides a new method for using a robotic arm, which can control the robotic arm to first throw up a three-dimensional object at any position except the end, and then grab the three-dimensional object through the end of the robotic arm; the controller executes control of the robotic arm to realize the throwing and catching action of the three-dimensional object; the throwing of the three-dimensional object is realized by controlling the robotic arm at any position except the end, which is a control method of the robotic arm that has not been realized in the related art, and expands the control method of the robotic arm for throwing and catching three-dimensional objects.
[0342] Those skilled in the art will appreciate that the above embodiments may be implemented independently, or the above embodiments may be freely combined to form new embodiments to implement the control method of the robotic arm of the present application.
[0343] 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.
[0344] FIG18 shows a block diagram of a control device for a robotic arm provided by an exemplary embodiment of the present application. A three-dimensional object is placed at any position on the robotic arm except the end thereof, and the device comprises:
[0345] An acquisition module 810 is configured to acquire a first control signal;
[0346] A control module 820 is configured to control the robotic arm to lift the three-dimensional object based on the first control signal;
[0347] The acquisition module 810 is further configured to acquire a second control signal;
[0348] The control module 820 is further configured to control the end of the robotic arm to grasp the thrown three-dimensional object based on the second control signal, and the three-dimensional object reaches a force balance state when being grasped.
[0349] In an optional design of this embodiment, the robotic arm includes a first arm; and the control module 820 is further configured to:
[0350] controlling the first arm to throw the three-dimensional object based on the first control signal, so that the first arm and the three-dimensional object are out of contact;
[0351] Based on the second control signal, the end of the first arm is controlled to grasp the three-dimensional object after it is out of contact with the first arm, and the three-dimensional object reaches a force balance state when being grasped.
[0352] In an optional design of this embodiment, the robotic arm includes a first arm and a second arm that move independently of each other; the control module 820 is further configured to: control the first arm to lift the three-dimensional object based on the first control signal, so that the first arm and the three-dimensional object are out of contact;
[0353] Based on the second control signal, the end of the second arm is controlled to grasp the three-dimensional object after it is out of contact with the first arm, and the three-dimensional object reaches a force balance state when being grasped.
[0354] In an optional design of this embodiment, the acquisition module 810 is further configured to:
[0355] A first actual posture is acquired, where the first actual posture is used to indicate contact information between the three-dimensional object and the robotic arm and position information of the robotic arm; wherein the first control signal is determined according to the first actual posture.
[0356] In an optional design of this embodiment, the first control signal is used to control the pitch motion of the robotic arm on a first plane, the first plane is parallel to the extension direction of the robotic arm, and the first plane is parallel to the vertical direction;
[0357] The acquisition module 810 is further configured to acquire an angle between the robotic arm and a horizontal plane, and a distance between the center of mass of the three-dimensional object and a rotation axis of the robotic arm away from a distal end of the robotic arm.
[0358] In an optional design of this embodiment, the first control signal is further used to control the translational movement of the robotic arm along the vertical direction on the first plane;
[0359] The acquisition module 810 is further configured to:
[0360] The angle between the robotic arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, and the position information of the robotic arm in the vertical direction are obtained.
[0361] In an optional design of this embodiment, the device further includes:
[0362] The processing module 830 is used to construct a first mapping relationship between the first actual posture and the first control signal based on the first actual posture, the physical information of the robotic arm and the three-dimensional object, and the first actual posture is used to indicate the contact information between the three-dimensional object and the robotic arm and the position information of the robotic arm.
[0363] In an optional design of this embodiment, the processing module 830 is further configured to:
[0364] determining energy information of the robotic arm and the three-dimensional object according to the first actual posture, physical information of the robotic arm and the three-dimensional object, the energy information including kinetic energy and potential energy;
[0365] constructing a dynamic equation based on the energy information of the robotic arm and the three-dimensional object;
[0366] According to the dynamic equation, the first control signal is predicted based on the velocity of the three-dimensional object in the vertical direction as a cost equation;
[0367] The first mapping relationship is established according to the first actual posture and the first control signal.
[0368] In an optional design of this embodiment, the processing module 830 is further configured to:
[0369] Based on the energy information of the robotic arm and the three-dimensional object, the Euler-Lagrange equation constructed according to the posture degrees of freedom is used as the dynamic equation; wherein, the posture degrees of freedom include at least one of the following: the angle between the robotic arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, and the position information of the robotic arm in the vertical direction.
[0370] In an optional design of this embodiment, the processing module 830 is further configured to:
[0371] The speed of the three-dimensional object in the vertical direction is determined according to the angle between the robot arm and the horizontal plane and the distance between the center of mass of the three-dimensional object and the rotation axis of the robot arm away from the end of the robot arm.
[0372] In an optional design of this embodiment, the processing module 830 is further configured to:
[0373] According to the dynamic equation, a predicted posture is predicted based on the velocity of the three-dimensional object in the vertical direction as a cost equation;
[0374] The first control signal is determined according to the predicted posture.
[0375] In an optional design of this embodiment, the predicted posture includes a predicted angle between the robotic arm and the horizontal plane; the processing module 830 is also used to: when the predicted posture exceeds the motion range of the robotic arm, update the predicted posture based on the motion range of the robotic arm.
[0376] In an optional design of this embodiment, the predicted posture includes first predicted sub-information and second predicted sub-information, and a first timestamp corresponding to the first predicted sub-information is earlier than a second timestamp corresponding to the second predicted sub-information;
[0377] The processing module 830 is further configured to: predict, according to the dynamic equation, the velocity of the three-dimensional object in the vertical direction as a cost equation, to obtain the second prediction sub-information;
[0378] Interpolation processing is performed on the second predicted sub-information and the first actual posture to obtain the first predicted sub-information.
[0379] In an optional design of this embodiment, the acquisition module 810 is further configured to:
[0380] Acquiring motion trajectory information of the three-dimensional object, where the motion trajectory information is a parabolic trajectory of the three-dimensional object after the object loses contact with the robotic arm;
[0381] The second control signal is determined according to a second actual posture of the robotic arm and the motion trajectory information, and the second actual posture is used to indicate the posture position information of the robotic arm.
[0382] In an optional design of this embodiment, the acquisition module 810 is further configured to:
[0383] determining a first desired posture of the robotic arm according to the motion trajectory information of the three-dimensional object, where the first desired posture is used to indicate posture information of the robotic arm for grasping the thrown three-dimensional object;
[0384] The second control signal is determined according to a difference between the second actual posture and the first desired posture.
[0385] In an optional design of this embodiment, the acquisition module 810 is further configured to acquire a third control signal;
[0386] The control module 820 is further configured to control any position of the robotic arm except the end thereof to catch the thrown three-dimensional object based on the third control signal;
[0387] The acquisition module 810 is further configured to acquire a fourth control signal;
[0388] The control module 820 is further configured to control the robotic arm based on the fourth control signal so that the three-dimensional object regains a force equilibrium state at any position other than the end.
[0389] In an optional design of this embodiment, the acquisition module 810 is further configured to:
[0390] Obtain motion trajectory information of the three-dimensional object, where the motion trajectory information is a parabolic trajectory after the three-dimensional object and the robotic arm lose contact; wherein the third control signal is determined based on the second actual posture of the robotic arm and the motion trajectory information of the three-dimensional object.
[0391] In an optional design of this embodiment, the acquisition module 810 is further configured to:
[0392] Acquire a third actual posture, where the third actual posture is contact information between the robotic arm and the three-dimensional object;
[0393] The fourth control signal is determined according to the third actual posture and a second expected posture; the second expected posture is used to indicate posture information of the robotic arm so that the three-dimensional object maintains balance on the robotic arm.
[0394] Figure 19 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 may include: one or more controllers 1501; one or more sensors 1502, one or more motors 1503 and a memory 1504. The above-mentioned controller 1501, sensor 1502, motor 1503 and memory 1504 are connected via a bus 1505. The memory 1504 is used to store computer programs, and the computer program includes program instructions. The controller 1501 is used to execute the program instructions stored in the memory 1504. The memory 1504 may include a volatile memory (Volatile Memory), such as a random access memory (Random-Access Memory, RAM); the memory 1504 may also include a non-volatile memory (Non-Volatile Memory), such as a flash memory (Flash Memory), a solid-state drive (SSD), etc.; the memory 1504 may also include a combination of the above-mentioned types of memory.
[0395] 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.
[0396] 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.
[0397] In one embodiment, the controller 1501 is configured to call program instructions for executing:
[0398] Acquire a first control signal; and control the robotic arm to throw the three-dimensional object based on the first control signal;
[0399] A second control signal is obtained; and based on the second control signal, the end of the robotic arm is controlled to grasp the thrown three-dimensional object, and the three-dimensional object reaches a force balance state when being grasped.
[0400] Illustratively, an embodiment of the present application further provides a robot comprising the aforementioned robotic arm, which can be used to implement the robotic arm control methods provided in the aforementioned method embodiments. The robotic arm control methods can be referenced in the aforementioned multiple method embodiments and will not be described in detail.
[0401] 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 control method of the robotic arm provided by the above-mentioned method embodiments.
[0402] 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 control method of the robotic arm provided by the above-mentioned method embodiments.
[0403] The embodiments of the present application also provide a computer-readable storage medium having a computer program stored thereon, and the computer program is used to be executed by a processor to implement the control method of the robotic arm provided in the above-mentioned method embodiments. Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD) or an optical disc, etc. Among them, the random access memory may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. Those of ordinary skill in the art will understand that all or part of the steps of implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disc, etc. 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.
[0404] 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.
[0405] 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.
[0406] 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 control method for a robotic arm, wherein a three-dimensional object is placed at any position of the robotic arm except the end thereof, the method being executed by a controller of the robotic arm, characterized in that: The method comprises: Acquiring a first control signal; Controlling the robotic arm to throw up the three-dimensional object based on the first control signal; acquiring a second control signal; Based on the second control signal, the end of the robot arm is controlled to grasp the thrown three-dimensional object, and the three-dimensional object reaches a force balance state when being grasped.
2. The method according to claim 1, characterized in that: The mechanical arm comprises a first arm; The controlling the robotic arm to throw up the three-dimensional object based on the first control signal comprises: Based on the first control signal, the first arm is controlled to throw up the three-dimensional object, and the first arm and the three-dimensional object are out of contact; The controlling the end of the robot arm to grasp the thrown three-dimensional object based on the second control signal, and the three-dimensional object reaches a force balance state when being grasped, includes: Based on the second control signal, the end of the first arm is controlled to grasp the three-dimensional object after it is out of contact with the first arm, and the three-dimensional object reaches a force balance state when being grasped.
3. The method according to claim 1, characterized in that: The mechanical arm comprises a first arm and a second arm which move independently of each other; The controlling the robotic arm to throw up the three-dimensional object based on the first control signal comprises: Based on the first control signal, the first arm is controlled to throw up the three-dimensional object, and the first arm and the three-dimensional object are out of contact; The controlling the end of the robot arm to grasp the thrown three-dimensional object based on the second control signal, and the three-dimensional object reaches a force balance state when being grasped, includes: Based on the second control signal, the end of the second arm is controlled to grasp the three-dimensional object after it is out of contact with the first arm, and the three-dimensional object reaches a force balance state when being grasped.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire a first actual posture, where the first actual posture is used to indicate contact information between the three-dimensional object and the robotic arm and position information of the robotic arm; Wherein, the first control signal is determined according to the first actual posture.
5. The method according to claim 4, characterized in that The first control signal is used to control the pitch motion of the mechanical arm on a first plane, the first plane is parallel to the extension line direction of the mechanical arm, and the first plane is parallel to the vertical direction; The obtaining of the first actual posture comprises: The angle between the robotic arm and a horizontal plane and the distance between the center of mass of the three-dimensional object and a rotation axis on the robotic arm away from a distal end of the robotic arm are obtained.
6. The method according to claim 5, characterized in that The first control signal is also used to control the translational movement of the mechanical arm along the vertical direction on the first plane; The obtaining of the angle between the robot arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and a rotation axis of the robot arm away from the end of the robot arm, comprises: The angle between the robot arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robot arm away from the end of the robot arm, and the position information of the robot arm in the vertical direction are obtained.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: According to the first actual posture, the physical information of the robotic arm and the three-dimensional object, a first mapping relationship between the first actual posture and the first control signal is constructed, wherein the first actual posture is used to indicate the physical information of the three-dimensional object and the robotic arm. The contact information between the robotic arms and the position information of the robotic arms.
8. The method according to claim 7, characterized in that The step of constructing a first mapping relationship between the first actual posture and the first control signal according to the first actual posture, the mechanical arm, and the physical information of the three-dimensional object includes: Determine energy information of the robotic arm and the three-dimensional object according to the first actual posture, physical information of the robotic arm and the three-dimensional object, wherein the energy information includes kinetic energy and potential energy; constructing a dynamic equation according to the energy information of the robotic arm and the three-dimensional object; According to the dynamic equation, the first control signal is predicted based on the velocity of the three-dimensional object in the vertical direction as a cost equation; The first mapping relationship is established according to the first actual posture and the first control signal.
9. The method according to claim 8, characterized in that The constructing of a dynamic equation according to the energy information of the robot arm and the three-dimensional object comprises: Based on the energy information of the robotic arm and the three-dimensional object, the Euler-Lagrange equation constructed according to the posture degree of freedom is used as the dynamic equation; Among them, the posture degrees of freedom include at least one of the following: the angle between the robotic arm and the horizontal plane, the distance between the center of mass of the three-dimensional object and the rotation axis of the robotic arm away from the end of the robotic arm, and the position information of the robotic arm in the vertical direction.
10. The method according to claim 8, characterized in that The method further comprises: The speed of the three-dimensional object in the vertical direction is determined according to the angle between the robot arm and the horizontal plane, and the distance between the center of mass of the three-dimensional object and the rotation axis of the robot arm away from the end of the robot arm.
11. The method according to claim 8, characterized in that The predicting and obtaining the first control signal according to the dynamic equation based on the velocity of the three-dimensional object in the vertical direction as a cost equation includes: According to the dynamic equation, based on the velocity of the three-dimensional object in the vertical direction as a cost equation, predicting a predicted posture; The first control signal is determined according to the predicted posture.
12. The method according to claim 11, characterized in that The predicted posture includes a predicted angle between the robotic arm and a horizontal plane; the method further includes: When the predicted posture exceeds the motion range of the robotic arm, the predicted posture is updated based on the motion range of the robotic arm.
13. The method according to claim 11, characterized in that The predicted posture includes first predicted sub-information and second predicted sub-information, a first timestamp corresponding to the first predicted sub-information is earlier than a second timestamp corresponding to the second predicted sub-information; The step of predicting the predicted posture according to the dynamic equation and based on the velocity of the three-dimensional object in the vertical direction as a cost equation includes: The second prediction sub-information is predicted based on the dynamic equation and the velocity of the three-dimensional object in the vertical direction as a cost equation; Interpolation processing is performed on the second predicted sub-information and the first actual posture to obtain the first predicted sub-information.
14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: Acquiring motion trajectory information of the three-dimensional object, wherein the motion trajectory information is a parabolic trajectory of the three-dimensional object after the three-dimensional object loses contact with the robotic arm; The second control signal is determined according to a second actual posture of the robotic arm and the motion trajectory information, and the second actual posture is used to indicate the posture position information of the robotic arm.
15. The method according to any one of claims 1 to 14, characterized in that: The method further comprises: acquiring a third control signal; Based on the third control signal, any position of the robot arm except the end is controlled to catch the thrown Three-dimensional objects; acquiring a fourth control signal; The robot arm is controlled based on the fourth control signal so that the three-dimensional object reaches a force balance state again at any position except the end.
16. A control device for a robotic arm, wherein a three-dimensional object is placed at any position of the robotic arm except the end thereof, characterized in that: The device comprises: An acquisition module, used for acquiring a first control signal; A control module, configured to control the robotic arm to throw up the three-dimensional object based on the first control signal; The acquisition module is further used to acquire a second control signal; The control module is further used to control the end of the robotic arm to grasp the thrown three-dimensional object based on the second control signal, and the three-dimensional object reaches a force balance state when being grasped.
17. 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 18.
18. A computer-readable storage medium, characterized in that: The 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 robotic arm as described in any one of claims 1 to 15.
19. 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 15.
20. 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 15.
Citation Information
Patent Citations
Robotic tossing of items in inventory system
CN108140162A
Bulk target grabbing method, device and system, bulk target assembling method, device and system and controller
CN111225554A
Object throwing-receiving robot system
CN112847374A
Robot grabbing-throwing method based on deep reinforcement learning
CN113664828A
Workpiece gripping method of robot and robot
JP2008178930A
Cited By
Contact analysis method and device for mechanical arm to grab non-fixed posture object and medium
CN120170757A
