A method and device for controlling the posture of a steel bar tying robot
By obtaining the position and attitude of the steel bar, constructing a motion path and calculating the joint parameter sequence, and adjusting the action based on real-time feedback information, the accuracy and efficiency problems of the steel bar tying robot in complex environments are solved, and efficient and accurate steel bar tying operations are achieved.
Patent Information
- Application Number
- CN202410733909.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing steel bar tying robots are difficult to adapt to complex construction environments, resulting in inaccurate or failed tying operations, including irregularly placed steel bars, obstacles, and uneven terrain.
By obtaining the position and attitude of the steel bar, a motion path is constructed, and the joint parameter sequence is calculated based on the steel bar posture, and the sensor is used to obtain real-time feedback information for action adjustment to ensure that the robot can accurately tie the steel bar.
It improves the accuracy and efficiency of binding, reduces manual intervention, adapts to different binding conditions and needs, and ensures the firmness and consistency of steel bar binding.
Smart Images

Figure CN118342533B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control, and in particular to a posture control method and device for a steel bar binding robot. Background Art
[0002] At present, there are complex environmental conditions at the steel bar construction site, such as the irregular placement of steel bars and obstacles at the construction site. Among them, at the construction site, steel bars are often placed in various irregular ways, and there may be bending, crossing, overlapping, etc. This makes it difficult for the robot to accurately identify and grasp each steel bar, resulting in inaccurate binding operations. At the same time, there are usually obstacles such as other building materials, equipment, and personnel at the construction site, which may hinder the robot's movement path and prevent it from smoothly reaching the position of the steel bars that need to be tied. In addition, the terrain at the construction site may be uneven and the space is limited, which poses a challenge to the robot's movement flexibility and adaptability. The robot may have difficulty operating in a narrow space or maintaining balance on uneven ground.
[0003] Based on this, current robots have difficulty adapting to these changes, resulting in inaccurate or failed lashing operations. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a posture control method and device for a steel bar tying robot to solve the problem that robots at the current stage are difficult to adapt to these changes, resulting in inaccurate or failed tying operations.
[0005] In a first aspect, an embodiment of the present invention provides a posture control method for a steel bar tying robot, the method comprising:
[0006] Obtain the position and posture of the steel bars to be tied in the target area;
[0007] constructing a motion path of the robot based on the position of the steel bar and the target position of the robot in the target area;
[0008] Controlling the robot to move to the steel bar position according to the motion path, and calculating the joint parameter sequence of the robot according to the steel bar posture, wherein the first key parameter sequence includes a plurality of joint parameters arranged in time;
[0009] The target joint of the robot is controlled to perform a binding operation on the steel bars to be bound according to the joint parameter sequence, and first real-time feedback information is obtained, and the joint parameters in the joint parameter sequence are updated based on the first real-time feedback information until the binding of the steel bars to be bound is completed.
[0010] Furthermore, the obtaining of the steel bar position and steel bar posture of the steel bars to be tied in the target area includes:
[0011] Calling a detection device disposed on the robot to collect point cloud data of the target area;
[0012] Preprocessing the point cloud data to obtain processed point cloud data;
[0013] Dividing the processed point cloud data into different point cloud data sets, wherein different point cloud data sets represent different areas in different target areas;
[0014] Extracting point cloud features of the point cloud data set, and matching the extracted features with preset steel bar features, thereby obtaining the steel bar position;
[0015] Target point cloud data matching the position of the steel bar is extracted from different point cloud data sets, and the posture of the steel bar is determined based on the target point cloud data.
[0016] Furthermore, the step of constructing a motion path of the robot based on the position of the steel bar and the target position of the robot in the target area includes:
[0017] Constructing a grid map of the target area based on the point cloud data of the target area;
[0018] Detecting the obstacle position of the obstacle in the target area, and marking the grid corresponding to the obstacle position in the grid map as an obstacle node;
[0019] Construct an open list and a closed list, wherein the open list is used to store nodes to be expanded, and the closed list is used to store nodes that have been processed. ;
[0020] The target position and the steel bar position are respectively used as the initial node and the target node, and the estimated distance from each node in the grid map to the target node is calculated using the Euclidean distance;
[0021] Selecting nodes with the smallest estimated distance from the open list in turn based on the starting node as optimal nodes, and moving the optimal nodes to a closed list;
[0022] Expanding adjacent nodes of the optimal node to obtain extended nodes, and calculating the estimated distance corresponding to the extended nodes;
[0023] If the extended node meets the path update condition, the path is updated until a motion path from the start node to the target node is obtained.
[0024] Further, the calculating of the joint parameter sequence of the robot according to the steel bar posture includes:
[0025] Acquire a mechanical structure corresponding to the robot, and analyze the mechanical structure corresponding to the robot to obtain a motion characteristic corresponding to each joint in the robot;
[0026] Determine the joint motion relationship according to the motion characteristics corresponding to each joint, and construct the kinematic model corresponding to the robot using the joint motion relationship and the joint parameters of the joints;
[0027] The target action to be performed by the robot is determined based on the kinematic model and the posture of the steel bar, and the joint parameter sequence of the target action is parsed.
[0028] Further, the determining of the target action to be performed by the robot based on the kinematic model and the steel bar posture, and parsing the joint parameter sequence of the target action, includes:
[0029] The posture of the steel bar is calculated by using the kinematic model and the inverse kinematics algorithm to obtain a target action, wherein the target action describes the motion trajectory of the robot joint;
[0030] The target action is parsed to extract a parameter sequence of the first joint, wherein the joint parameter sequence includes an angle, an angular velocity, and an angular acceleration of the joint.
[0031] Furthermore, the kinematic model and the inverse kinematics algorithm are used to calculate the steel bar posture to obtain the target action, including:
[0032] determining a position of an end effector of the robot based on the kinematic model;
[0033] Inputting the end effector position and the steel bar posture into an inverse kinematics algorithm to obtain a set of joint variable values, wherein the inverse kinematics algorithm is used to output corresponding joint variable values according to a given end effector position and steel bar posture;
[0034] The joint motion trajectory of the joint is determined according to the joint variable value, and the joint motion trajectory is split into a plurality of discrete behaviors to form a target action.
[0035] Further, the obtaining of the first real-time feedback information and updating the joint parameters in the joint parameter sequence based on the first real-time feedback information until the steel bars to be tied are completed include:
[0036] Detecting first real-time feedback information through a sensor deployed on the robot;
[0037] Calculate a first reward signal corresponding to a first discrete behavior currently executed by the robot based on the first real-time feedback information;
[0038] Determine a second discrete behavior according to the first reward signal and the first state of the robot, and update the joint parameters corresponding to the second discrete behavior to the joint parameter sequence to obtain an updated joint parameter sequence;
[0039] Continue to perform the binding operation on the steel bars to be bound based on the updated joint parameter sequence, detect second real-time feedback information, and calculate a second reward signal corresponding to a second discrete behavior currently executed by the robot based on the second real-time feedback information;
[0040] The joint parameters in the joint parameter sequence continue to be updated according to the second reward signal and the second state of the robot until the steel bars to be tied are completed.
[0041] In a second aspect, an embodiment of the present invention provides a posture control device for a steel bar tying robot, the device comprising:
[0042] An acquisition module is used to acquire the position and posture of the steel bars to be tied in the target area;
[0043] A construction module, configured to construct a motion path of the robot based on the position of the steel bars and the target position of the robot in the target area;
[0044] a calculation module, used for controlling the robot to move to the steel bar position according to the motion path, and calculating the joint parameter sequence of the robot according to the steel bar posture, wherein the first key parameter sequence includes a plurality of joint parameters arranged in time;
[0045] A control module is used to control the target joint of the robot to perform a binding operation on the steel bars to be bound according to the joint parameter sequence, and obtain first real-time feedback information, and update the joint parameters in the joint parameter sequence based on the first real-time feedback information until the binding of the steel bars to be bound is completed.
[0046] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0047] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0048] By obtaining the position and posture of the steel bars and planning the robot's movement path in advance, the embodiment of the present application can enable the robot to reach the binding position quickly and accurately, reducing the time for searching and adjusting, thereby improving the binding efficiency. Secondly, by calculating the joint parameter sequence according to the posture of the steel bars, it can ensure that the robot's binding action accurately matches the shape and position of the steel bars, thereby improving the accuracy and quality of the binding. The first real-time feedback information is obtained, and the joint parameters are updated based on the information, so that the robot can adjust the binding action in time according to the actual situation and adapt to different binding conditions and requirements. In addition, the present application realizes the automatic identification, path planning and binding operation of the steel bars to be tied, greatly reducing the degree of manual intervention. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a flow chart of a method for controlling the posture of a steel bar tying robot according to some embodiments of the present invention;
[0051] Figure 2 is a schematic diagram of steel bars to be tied according to some embodiments of the present invention;
[0052] Figure 3 is a schematic diagram of an environment of a target area according to some embodiments of the present invention;
[0053] Figure 4 is a schematic diagram of a robot according to some embodiments of the present invention;
[0054] Figure 5 is a schematic diagram of the connection relationship of the robot structure according to some embodiments of the present invention;
[0055] Figure 6 is a structural block diagram of a posture control device of a steel bar tying robot according to an embodiment of the present invention;
[0056] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0058] According to an embodiment of the present invention, a posture control method and device for a steel bar tying robot are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0059] In this embodiment, a posture control method of a steel bar tying robot is provided. Figure 1 is a flow chart of a posture control method of a steel bar tying robot according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0060] Step S11, obtaining the position and posture of the steel bars to be tied in the target area.
[0061] In an embodiment of the present application, the position of the steel bars to be tied and the posture of the steel bars in the target area are obtained, including: calling a detection device set on the robot to collect point cloud data of the target area; preprocessing the point cloud data to obtain processed point cloud data; dividing the processed point cloud data into different point cloud data sets, wherein different point cloud data sets represent different areas in different target areas; extracting point cloud features of the point cloud data sets, and matching the extracted features with preset steel bar features to obtain the steel bar position; extracting target point cloud data that matches the steel bar position from different point cloud data sets, and determining the steel bar posture based on the target point cloud data.
[0062] Specifically, the robot is equipped with a detection device for collecting point cloud data of the target area. Point cloud data is composed of a large number of points, which represent the surface shape and geometric information of the target area. Secondly, the collected raw point cloud data is preprocessed, including noise removal, filtering, segmentation and other operations. The purpose of preprocessing is to improve the quality and accuracy of point cloud data for subsequent processing and analysis. Furthermore, the preprocessed point cloud data is divided into different point cloud data sets. Each point cloud data set corresponds to different areas in the target area, which may be divided according to different features or attributes. Then, point cloud features are extracted from each point cloud data set, which may include information such as the location, intensity, color, etc. of the point. Then, the extracted features are matched with the preset steel bar features to determine which point cloud data sets contain the steel bar locations. Finally, the target point cloud data is extracted from the point cloud data set that matches the steel bar features. Based on these target point cloud data, the posture of the steel bar, such as the direction, angle and other information of the steel bar, can be further analyzed and determined.
[0063] Step S12, constructing a motion path of the robot based on the position of the steel bars and the target position of the robot in the target area.
[0064] In the embodiment of the present application, based on the position of the steel bars and the target position of the robot in the target area, the motion path of the robot is constructed, including the following steps A1-A5:
[0065] Step A1: construct a grid map of the target area based on the point cloud data of the target area.
[0066] Specifically, the acquired point cloud data is preprocessed, including filtering noise, removing outliers, coordinate conversion and other operations to improve data quality and the accuracy of subsequent processing. The target area is divided into uniform grids. This can be achieved by defining the size and resolution of the grid. The preprocessed point cloud data is mapped to the divided grid. For example: Use appropriate data structures (such as two-dimensional arrays, linked lists, etc.) to represent the constructed grid map.
[0067] Step A2: Detect the obstacle positions of obstacles in the target area, and mark the grids corresponding to the obstacle positions in the grid map as obstacle nodes.
[0068] The robot can use various sensors, such as lidar, cameras, ultrasonic sensors, etc., to detect obstacles in the target area. These sensors can provide information about the environment, including the location, shape, and size of the obstacles. The data obtained by the sensors is processed and analyzed, specifically involving operations such as filtering out noise, extracting features, and identifying obstacles. The specific location of the obstacle in the target area is determined based on the processed data. The location information of the obstacle can be represented by coordinates or other appropriate methods. Finally, the location of the obstacle is mapped to the grid map. According to the resolution and coordinate system of the grid map, the grid corresponding to the obstacle location is found. The grid corresponding to the obstacle location is marked as an obstacle node.
[0069] Step A3: construct an open list and a closed list, wherein the open list is used to store nodes to be expanded, and the closed list is used to store nodes that have been processed.
[0070] The open list is used to store nodes to be expanded. In the path planning algorithm, when a new node is encountered, it is added to the open list. The nodes in the open list are sorted according to some priority, usually based on estimated distance or other evaluation criteria. The algorithm selects the node with the highest priority from the open list to expand. Whenever a node is expanded, it is removed from the open list and its adjacent unprocessed nodes are added to the open list for subsequent expansion.
[0071] The closed list is used to store nodes that have already been processed. When a node is expanded and processed, it is added to the closed list. Nodes in the closed list will no longer be considered or expanded by the algorithm. The closed list helps prevent the algorithm from repeatedly processing nodes that have already been visited, avoiding infinite loops or unnecessary calculations.
[0072] In step A4, the target position and the steel bar position are taken as the initial node and the target node, respectively, and the estimated distance from each node in the grid map to the target node is calculated using the Euclidean distance.
[0073] Get the coordinates of the target location and the rebar location in the grid map. And for each node in the grid map, calculate the Euclidean distance from the node to the target node. Then use the calculated Euclidean distance as the estimated distance from the node to the target node. Store the estimated distance in the corresponding node data structure for subsequent use.
[0074] Step A5, based on the starting node, select the node with the smallest estimated distance from the open list as the optimal node, and move the optimal node to the closed list.
[0075] First, determine the starting position of the path planning, that is, the robot's target position. For each node in the open list, calculate its estimated distance to the target node. This estimated distance can be based on different algorithms or heuristic methods.
[0076] Select the node with the smallest estimated distance from the open list. This node is considered the current best node. Remove the selected best node from the open list and move it to the closed list. The closed list contains nodes that have been processed.
[0077] Step A6: Expand the neighboring nodes of the optimal node to obtain an extended node, and calculate the estimated distance corresponding to the extended node.
[0078] For the optimal node, obtain its adjacent nodes in the grid map or path planning graph. These adjacent nodes are directly adjacent nodes. For each expanded node, calculate its estimated distance to the target node. The estimated distance can be calculated according to different methods. The expanded node and the corresponding estimated distance information are updated and stored for subsequent path planning and decision making.
[0079] Step A7: If the extended node meets the path update condition, the path is updated until a motion path from the start node to the target node is obtained.
[0080] First, determine whether the extended node meets the path update conditions. These conditions may include: whether the node can reach the target node. Whether the node is within the valid range. Whether the node meets specific constraints. If the extended node meets the path update conditions, the path is updated. The specific update method can be determined according to the requirements of the algorithm and the problem. The update method includes: adding the extended node to the existing path. Adjusting the order of nodes on the path. Updating the relevant information of the path, such as distance, cost, etc., according to the attributes of the extended node. Continue to expand and update the path for the new extended node until one of the following conditions is met: A complete path from the start node to the target node is found. No extended node that meets the conditions can be found, that is, the path cannot be further updated. Once the path update stop condition is met, the resulting path is the motion path from the start node to the target node.
[0081] Step S13, controlling the robot to move to the steel bar position according to the motion path, and calculating the robot's joint parameter sequence according to the steel bar posture, wherein the first key parameter sequence includes a plurality of joint parameters arranged in time.
[0082] In an embodiment of the present application, according to the previously obtained motion path, it is converted into motion instructions that can be executed by the robot. These instructions may include information such as joint angles, speeds, accelerations, etc. The motion instructions are sent to the robot control system so that the robot moves along the motion path to the position of the steel bar. During the movement, each joint of the robot will perform corresponding actions according to the instructions. Then, according to the posture of the steel bar and the kinematic model of the robot, the joint parameter sequence of the robot is calculated. The joint parameter sequence is a plurality of joint parameters arranged in time, which is used to describe the joint position of the robot at each time point.
[0083] Specifically, the joint parameter sequence of the robot is calculated according to the posture of the steel bar, including: acquiring the corresponding mechanical structure of the robot, analyzing the corresponding mechanical structure of the robot to obtain the motion characteristics corresponding to each joint in the robot; determining the joint motion relationship according to the motion characteristics corresponding to each joint, and using the joint motion relationship and the joint parameters of the joint to construct the corresponding kinematic model of the robot; determining the target action to be executed by the robot based on the kinematic model and the posture of the steel bar, and parsing the joint parameter sequence of the target action.
[0084] First, obtain the mechanical structure of the robot and analyze the mechanical structure to obtain the motion characteristics of each joint. Figure 4 As shown in the figure, the robot consists of three links and three translation joints, each of which has corresponding motion characteristics. Figure 5 As shown). Secondly, the joint motion relationship is determined according to the motion characteristics corresponding to each joint. According to the connection relationship, the mass of link 1 and link 2 (m1 and m2) and the mass sum of link 3 and the manipulator claw (m3), the force applied by each joint (f1, f2, f3) and the translational joint displacement (d1, d2, d3) are known. By analyzing the relationship between these factors, the joint motion relationship can be determined. Next, the kinematic model corresponding to the robot is constructed using the joint motion relationship and the joint parameters of the joint. The joint parameters can represent information such as the position, velocity, and acceleration of the joint. Finally, the target action to be performed by the robot is determined based on the kinematic model and the steel bar posture, and the joint parameter sequence of the target action is parsed. By matching the actual steel bar posture with the kinematic model, the required target action and the corresponding joint parameter sequence can be determined. Among them, the transformation matrix between each link can be determined by the kinematic model as follows:
[0085] ,in, For connecting rod 1, For connecting rod 2, It is connecting rod 4.
[0086] The robot's arm transformation matrix is as follows:
[0087] in, is the moving distance of connecting rod 1 on the z-axis, is the moving distance of connecting rod 2 on the z-axis, is the movement distance of connecting rod 3 in z axis.
[0088] Among them, the specific steps of determining the joint motion relationship according to the motion characteristics corresponding to each joint are as follows: ① Mass m1 and m2 have an effect on the motion of link 1 and link 2. Mass m3 has an effect on the motion of link 3 and the manipulator gripper. ② Forces f1, f2 and f3 are applied to the joints respectively. The magnitude and direction of the force will affect the motion of the joint. ③ Displacements d1, d2 and d3 represent the position changes of the translational joints. The change in displacement will cause the motion of the joints and the position change of the links. Based on the above factors, the following relationships can be established: 1. Relationship between mass and force: The magnitude of the force will determine the degree of acceleration or deceleration, which is proportional to the mass. For example, if the force applied to the link increases, its acceleration will also increase, but the increase in mass will reduce the acceleration. 2. Relationship between displacement and joint motion: Changes in the displacement of the translational joint will cause the position of the link to change. The direction and speed of the joint motion will depend on the magnitude and direction of the displacement. 3. Motion relationship between links: The motion of link 1 will affect the motion of link 2. The motion of link 2 will further affect the motion of link 3 and the manipulator gripper.
[0089] Step S14, controlling the target joint of the robot to perform binding operation on the steel bars to be bound according to the joint parameter sequence, and obtaining first real-time feedback information, and updating the joint parameters in the joint parameter sequence based on the first real-time feedback information until the binding of the steel bars to be bound is completed.
[0090] In the embodiment of the present application, the target action to be performed by the robot is determined based on the kinematic model and the posture of the steel bar, and the joint parameter sequence of the target action is parsed, including the following steps B1-B2:
[0091] Step B1, calculating the posture of the steel bar through a kinematic model and an inverse kinematics algorithm to obtain a target action, wherein the target action describes the motion trajectory of the robot joint.
[0092] In an embodiment of the present application, the steel bar posture is calculated by a kinematic model and an inverse kinematics algorithm to obtain a target action, including: determining the end effector position of the robot based on the kinematic model; inputting the end effector position and the steel bar posture into the inverse kinematics algorithm to obtain a set of joint variable values, wherein the inverse kinematics algorithm is used to output corresponding joint variable values according to the given end effector position and steel bar posture; determining the joint motion trajectory of the joint according to the joint variable values, and splitting the joint motion trajectory into multiple discrete behaviors to form a target action.
[0093] Specifically, the kinematic model describes the relationship between the robot's joints and how they affect the position of the end effector. By inputting the robot's current joint angle or displacement into the kinematic model, the position of the end effector in the workspace can be calculated. The purpose of the inverse kinematics algorithm is to solve the corresponding joint variable values based on the given end effector position and steel bar posture. The steel bar posture can include information such as position and orientation. The inverse kinematics algorithm uses the robot's kinematic model and some optimization methods to solve the joint variables. The inverse kinematics algorithm outputs a set of joint variable values, which represent the positions or angles that the robot's joints should take to achieve the desired end effector position and steel bar posture. The joint motion trajectory describes the position or angle change of the joint over a period of time. Based on the obtained joint variable values, the joint motion trajectory can be determined by methods such as interpolation or fitting. Finally, in order to achieve precise control and execution, the continuous joint motion trajectory is usually split into multiple discrete behaviors. These discrete behaviors can be specific positions, velocities, or accelerations of the joints, etc. The target action is a sequence of these discrete behaviors, and the robot will execute this sequence to complete a specific task.
[0094] As an example: a robot arm, whose joints can move in three-dimensional space. You want the robot arm to perform an action to grab an object. First, you can determine the joint variable values by measuring the position and angle of the robot arm joints. For example, you can use a joint angle sensor to measure the angle of the joint, or use a velocity sensor to measure the angular velocity of the joint. Then use the position and angle of the arm joint to determine the position information of the robot end effector. Then input the steel bar posture and the position information of the end effector into the inverse kinematics algorithm to get the joint variable values. Next, use these joint variable values to determine the motion trajectory of the joint. Then, you can split the motion trajectory of the joint into multiple discrete behaviors to form a target action. For example, you can split the motion trajectory of the joint into multiple steps, each step representing a discrete position of the robot arm joint. You can use these discrete positions to compose a target action, such as the action of grabbing an object.
[0095] It should be noted that the position of the end effector is the target position that the robot needs to reach. By determining the position of the end effector, the robot can clarify its work goal and ensure that the robot's actions can accurately act on the target object.
[0096] Step B2, analyzing the target action and extracting a parameter sequence of the first joint, wherein the joint parameter sequence includes the angle, angular velocity and angular acceleration of the joint.
[0097] The joint parameter sequence is a representation of the target action, where each time point corresponds to a joint state. Joint parameters usually include the angle, angular velocity, and angular acceleration of the joint. The angle is the rotational position of the joint at a specific time point. It represents the spatial direction of the joint and can be expressed in radians or degrees. The angular velocity is the change in the angle of the joint per unit time. It reflects the speed of the joint movement. The angular acceleration is the rate of change of the angular velocity per unit time. It represents the acceleration of the joint movement.
[0098] Based on this, the target motion calculated by the kinematic model and the inverse kinematics algorithm can accurately describe the motion trajectory of the robot joint. This ensures the accuracy of the steel bar binding and improves the construction quality. It can also handle various steel bar postures, including irregular shapes and cross sections. The robot can flexibly adjust its own posture according to the calculated target motion and accurately complete the binding task. It not only improves work efficiency, but also reduces labor intensity and avoids errors that may be caused by manual operation.
[0099] In an embodiment of the present application, first real-time feedback information is obtained, and the joint parameters in the joint parameter sequence are updated based on the first real-time feedback information until the binding of the steel bars to be tied is completed, including: detecting the first real-time feedback information through a sensor deployed on the robot; calculating a first reward signal corresponding to a first discrete behavior currently executed by the robot based on the first real-time feedback information; determining a second discrete behavior according to the first reward signal and a first state of the robot, and updating the joint parameters corresponding to the second discrete behavior to the joint parameter sequence to obtain an updated joint parameter sequence; continuing to perform binding operations on the steel bars to be tied based on the updated joint parameter sequence, and detecting second real-time feedback information, and calculating a second reward signal corresponding to the second discrete behavior currently executed by the robot based on the second real-time feedback information; continuing to update the joint parameters in the joint parameter sequence according to the second reward signal and the second state of the robot until the binding of the steel bars to be tied is completed.
[0100] This application uses sensors to detect feedback information in real time, and the robot can adjust its actions in time according to actual conditions to improve the accuracy and efficiency of binding. Based on feedback information and reward signals, the robot can continuously learn and optimize its own behavior to adapt to the binding requirements of different steel bars and changes in the working environment. Based on real-time feedback and iterative updates, the robot can control the binding operation more finely to ensure the firmness and consistency of the steel bar binding. At the same time, the entire binding process is completed autonomously by the robot, reducing human intervention and improving work efficiency and safety. The robot's actions are based on a preset joint parameter sequence and feedback control, which can ensure the consistency of each binding action and improve the quality stability of the product. In addition, by analyzing the reward signal, the effects of different discrete behaviors can be evaluated, and then the robot's control strategy can be optimized to further improve the binding performance. The entire process does not require a large amount of manpower to participate in the binding operation, reducing labor costs and labor intensity.
[0101] Specifically, first, the real-time data of the robot's working environment, such as joint angle, speed, force and other information, is obtained through sensors. These real-time feedback information is compared with the expected joint parameter sequence. According to the comparison result, the feedback control algorithm is used to adjust the joint parameters to approach or achieve the expected binding operation. The feedback information is continuously monitored and the joint parameters are continuously updated until the steel bars to be bound are completed. Secondly, during the robot's binding operation, sensors are installed on the joints or other parts of the robot to monitor the movement of the joints and the interaction with the steel bars in real time. The sensor sends the detected data (such as joint angle, speed, force, etc.) as the first real-time feedback information to the control system. Then, according to the detected first real-time feedback information, a preset reward function or evaluation index is used to calculate the first reward signal corresponding to the first discrete behavior. The reward signal represents the quality or effect of the current operation performed by the robot, which can be determined based on factors such as binding speed, accuracy, and force application. The reward signal is calculated to evaluate the current behavior of the robot and provide a basis for subsequent decision-making.
[0102] Next, based on the first reward signal and the current state of the robot (including joint angle, speed, position, etc.), the decision algorithm or strategy determines the next second discrete behavior to be performed. The second discrete behavior is the action selection of the robot, such as adjusting the joint angle, moving the position, applying force, etc. The joint parameters corresponding to the second discrete behavior are updated to the joint parameter sequence to prepare the robot to perform the next action. Finally, using the updated joint parameter sequence, the robot continues to perform the binding operation on the steel bars to be bound. At the same time, the sensor detects the real-time feedback information again to obtain the second real-time feedback information. Based on the second real-time feedback information, the second reward signal corresponding to the second discrete behavior is calculated. Finally, based on the second reward signal and the second state of the robot, the next discrete behavior is determined in a manner similar to the above, and the joint parameter sequence is updated. This process is repeated continuously, and the robot adjusts its actions according to the real-time feedback and reward signal until the binding operation is completed.
[0103] By obtaining the position and posture of the steel bars and planning the robot's movement path in advance, the embodiment of the present application can enable the robot to reach the binding position quickly and accurately, reducing the time for searching and adjusting, thereby improving the binding efficiency. Secondly, by calculating the joint parameter sequence according to the posture of the steel bars, it can ensure that the robot's binding action accurately matches the shape and position of the steel bars, thereby improving the accuracy and quality of the binding. The first real-time feedback information is obtained, and the joint parameters are updated based on the information, so that the robot can adjust the binding action in time according to the actual situation and adapt to different binding conditions and requirements. In addition, the present application realizes the automatic identification, path planning and binding operation of the steel bars to be tied, greatly reducing the degree of manual intervention.
[0104] In this embodiment, a posture control device for a steel bar tying robot is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0105] This embodiment provides a posture control device for a steel bar tying robot. Figure 6 As shown, including:
[0106] An acquisition module 61 is used to acquire the position and posture of the steel bars to be tied in the target area;
[0107] A construction module 62 is used to construct a motion path of the robot based on the position of the steel bars and the target position of the robot in the target area;
[0108] A calculation module 63, used to control the robot to move to the steel bar position according to the motion path, and calculate the joint parameter sequence of the robot according to the steel bar posture, wherein the first key parameter sequence includes a plurality of joint parameters arranged in time;
[0109] The control module 64 is used to control the target joint of the robot to perform binding operations on the steel bars to be bound according to the joint parameter sequence, and obtain the first real-time feedback information, and update the joint parameters in the joint parameter sequence based on the first real-time feedback information until the binding of the steel bars to be bound is completed.
[0110] In an embodiment of the present application, an acquisition module 61 is used to call a detection device provided on the robot to collect point cloud data of a target area; pre-process the point cloud data to obtain processed point cloud data; divide the processed point cloud data into different point cloud data sets, wherein different point cloud data sets represent different areas in different target areas; extract point cloud features of the point cloud data sets, and match the extracted features with preset steel bar features to obtain the steel bar position; extract target point cloud data matching the steel bar position from different point cloud data sets, and determine the steel bar posture based on the target point cloud data.
[0111] In the embodiment of the present application, the construction module 62 is used to construct a grid map of the target area based on the point cloud data of the target area; detect the obstacle position of the obstacle in the target area, and mark the grid corresponding to the obstacle position in the grid map as an obstacle node; construct an open list and a closed list, wherein the open list is used to store the nodes to be expanded, and the closed list is used to store the nodes that have been processed. The target position and the steel bar position are respectively used as the initial node and the target node, and the Euclidean distance is used to calculate the estimated distance from each node in the grid map to the target node; based on the starting node, the node with the smallest estimated distance is selected from the open list in turn as the optimal node, and the optimal node is moved to the closed list, the adjacent nodes of the optimal node are expanded to obtain an extended node, and the estimated distance corresponding to the extended node is calculated; if the extended node meets the path update condition, the path is updated until the motion path from the starting node to the target node is obtained.
[0112] In the embodiment of the present application, the calculation module 63 is used to obtain the mechanical structure corresponding to the robot, analyze the mechanical structure corresponding to the robot to obtain the motion characteristics corresponding to each joint in the robot; determine the joint motion relationship according to the motion characteristics corresponding to each joint, and use the joint motion relationship and the joint parameters of the joint to construct the corresponding kinematic model of the robot; determine the target action to be executed by the robot based on the kinematic model and the steel bar posture, and parse the joint parameter sequence of the target action.
[0113] In an embodiment of the present application, the calculation module 63 is used to calculate the posture of the steel bar through a kinematic model and an inverse kinematics algorithm to obtain a target action, wherein the target action describes the motion trajectory of the robot joint; the target action is analyzed to extract a parameter sequence of the first joint, wherein the joint parameter sequence includes the angle, angular velocity and angular acceleration of the joint.
[0114] In an embodiment of the present application, the calculation module 63 is used to determine the end effector position of the robot based on the kinematic model; the end effector position and the steel bar posture are input into the inverse kinematics algorithm to obtain a set of joint variable values, wherein the inverse kinematics algorithm is used to output corresponding joint variable values according to the given end effector position and steel bar posture; determine the joint motion trajectory of the joint according to the joint variable value, and split the joint motion trajectory into multiple discrete behaviors to form a target action.
[0115] In an embodiment of the present application, the control module 64 is used to detect first real-time feedback information through sensors deployed on the robot; calculate a first reward signal corresponding to a first discrete behavior currently executed by the robot based on the first real-time feedback information; calculate a first gradient value according to the first reward signal, and use the first gradient value to update the joint parameters after the first discrete behavior in the joint parameter sequence to obtain an updated joint parameter sequence; continue to perform the binding operation on the steel bars to be bound based on the updated joint parameter sequence, and detect second real-time feedback information, and calculate a second reward signal corresponding to the first discrete behavior currently executed by the robot based on the second real-time feedback information; calculate a second gradient value according to the second reward signal, and use the first gradient value to update the joint parameters after the current action in the joint parameter sequence until the binding of the steel bars to be bound is completed.
[0116] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0117] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0118] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0119] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0120] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0121] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0122] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0123] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A posture control method for a steel bar tying robot, characterized in that: The method comprises: Obtain the position and posture of the steel bars to be tied in the target area; constructing a motion path of the robot based on the position of the steel bar and the target position of the robot in the target area; Controlling the robot to move to the steel bar position according to the motion path, and calculating a joint parameter sequence of the robot according to the steel bar posture, wherein the joint parameter sequence includes a plurality of joint parameters arranged in time; Controlling the target joint of the robot to perform a binding operation on the steel bars to be bound according to the joint parameter sequence, and obtaining first real-time feedback information, and updating the joint parameters in the joint parameter sequence based on the first real-time feedback information until the binding of the steel bars to be bound is completed; The method of obtaining the first real-time feedback information and updating the joint parameters in the joint parameter sequence based on the first real-time feedback information until the steel bars to be tied are completed includes: detecting the first real-time feedback information through a sensor deployed on the robot; calculating a first reward signal corresponding to a first discrete behavior currently executed by the robot based on the first real-time feedback information; determining a second discrete behavior according to the first reward signal and a first state of the robot, and updating the joint parameters corresponding to the second discrete behavior to the joint parameter sequence to obtain an updated joint parameter sequence; continuing to perform the tying operation on the steel bars to be tied based on the updated joint parameter sequence, detecting the second real-time feedback information, and calculating a second reward signal corresponding to the second discrete behavior currently executed by the robot based on the second real-time feedback information; and continuing to update the joint parameters in the joint parameter sequence according to the second reward signal and the second state of the robot until the steel bars to be tied are completed.
2. The method according to claim 1, characterized in that: The obtaining of the steel bar position and steel bar posture of the steel bars to be tied in the target area includes: Calling a detection device disposed on the robot to collect point cloud data of the target area; Preprocessing the point cloud data to obtain processed point cloud data; Dividing the processed point cloud data into different point cloud data sets, wherein different point cloud data sets represent different areas in different target areas; Extracting point cloud features of the point cloud data set, and matching the extracted features with preset steel bar features, thereby obtaining the steel bar position; Target point cloud data matching the position of the steel bar is extracted from different point cloud data sets, and the posture of the steel bar is determined based on the target point cloud data.
3. The method according to claim 2, characterized in that The step of constructing a motion path of the robot based on the position of the steel bar and the target position of the robot in the target area includes: Constructing a grid map of the target area based on the point cloud data of the target area; Detecting the obstacle position of the obstacle in the target area, and marking the grid corresponding to the obstacle position in the grid map as an obstacle node; Constructing an open list and a closed list, wherein the open list is used to store nodes to be expanded, and the closed list is used to store nodes that have been processed; The target position and the steel bar position are respectively used as the initial node and the target node, and the estimated distance from each node in the grid map to the target node is calculated using the Euclidean distance; Selecting nodes with the smallest estimated distance from the open list in turn based on the initial node as optimal nodes, and moving the optimal nodes to a closed list; Expanding adjacent nodes of the optimal node to obtain extended nodes, and calculating the estimated distance corresponding to the extended nodes; If the extended node meets the path update condition, the path is updated until a motion path from the initial node to the target node is obtained.
4. The method according to claim 1, characterized in that: The step of calculating the joint parameter sequence of the robot according to the steel bar posture comprises: Acquire a mechanical structure corresponding to the robot, and analyze the mechanical structure corresponding to the robot to obtain a motion feature corresponding to each joint in the robot; Determine the joint motion relationship according to the motion characteristics corresponding to each joint, and construct the kinematic model corresponding to the robot using the joint motion relationship and the joint parameters of the joints; The target action to be performed by the robot is determined based on the kinematic model and the posture of the steel bar, and the joint parameter sequence of the target action is parsed.
5. The method according to claim 4, characterized in that The step of determining a target action to be performed by the robot based on the kinematic model and the steel bar posture, and parsing a joint parameter sequence of the target action, comprises: The posture of the steel bar is calculated by the kinematic model and the inverse kinematics algorithm to obtain a target action, wherein the target action describes the motion trajectory of the robot joint; The target action is parsed to extract a joint parameter sequence, wherein the joint parameter sequence includes an angle, an angular velocity, and an angular acceleration of the joint.
6. The method according to claim 5, characterized in that The step of calculating the steel bar posture by using the kinematic model and the inverse kinematics algorithm to obtain the target action includes: determining a position of an end effector of the robot based on the kinematic model; Inputting the end effector position and the steel bar posture into an inverse kinematics algorithm to obtain a set of joint variable values, wherein the inverse kinematics algorithm is used to output corresponding joint variable values according to a given end effector position and steel bar posture; The joint motion trajectory of the joint is determined according to the joint variable value, and the joint motion trajectory is split into a plurality of discrete behaviors to form a target action.
7. A posture control device for a steel bar tying robot, characterized in that: The device comprises: An acquisition module is used to acquire the position and posture of the steel bars to be tied in the target area; A construction module, configured to construct a motion path of the robot based on the position of the steel bars and the target position of the robot in the target area; A calculation module, used for controlling the robot to move to the steel bar position according to the motion path, and calculating a joint parameter sequence of the robot according to the steel bar posture, wherein the joint parameter sequence includes a plurality of joint parameters arranged in time; A control module, used to control the target joint of the robot to perform a binding operation on the steel bars to be bound according to the joint parameter sequence, obtain first real-time feedback information, and update the joint parameters in the joint parameter sequence based on the first real-time feedback information until the binding of the steel bars to be bound is completed; The control module is used to detect first real-time feedback information through sensors deployed on the robot; calculate a first reward signal corresponding to a first discrete behavior currently executed by the robot based on the first real-time feedback information; calculate a first gradient value according to the first reward signal, and use the first gradient value to update the joint parameters after the first discrete behavior in the joint parameter sequence to obtain an updated joint parameter sequence; continue to perform a binding operation on the steel bars to be bound based on the updated joint parameter sequence, and detect second real-time feedback information, and calculate a second reward signal corresponding to the first discrete behavior currently executed by the robot based on the second real-time feedback information; calculate a second gradient value according to the second reward signal, and use the first gradient value to update the joint parameters after the current action in the joint parameter sequence until the binding of the steel bars to be bound is completed.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 6.
