Robot movement control method, device and robot
By dynamically acquiring the robot position and target position, determining the transition point and calculating the speed, it solves the problems of high hardware cost and inaccurate movement in the existing technology, achieving precise robot movement and improving safety.
Patent Information
- Application Number
- CN202010988036.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-18
AI Technical Summary
In the existing robot movement control method, additional guide rails are required, resulting in high hardware costs. Moreover, the robot is prone to bumps during steering operations and may roll over. Moreover, the route deviates due to control errors and cannot accurately reach the target position.
By dynamically obtaining the current position and target position of the robot, the transition point on the target movement path is determined, and the linear velocity and angular velocity are calculated based on the distance and angle of the transition point, and the robot is controlled to gradually move to the target position to avoid one-time large rotation and route deviation.
There is no need to increase hardware costs, ensuring that the robot reliably contacts the target object, avoids rollover, corrects control errors in real time, and achieves precise movement.
Smart Images

Figure CN112068570B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control, and in particular to a robot movement control method, a robot movement control device and a robot. Background Art
[0002] With the increasing popularity of intelligence, robots have been used more and more widely in all walks of life. For example, sweeping robots can bring many conveniences to users' daily lives. During the working process of the robot, it is often necessary to move accurately to the specified target position. For example, when the sweeping robot is charged through a charging pile, it needs to move accurately to the location of the charging pile.
[0003] In the existing robot movement control method, the following two methods are usually used: in the first control method, in order to ensure that the robot can accurately dock with the target object at the target position, a guide rail is set around the target object in advance, so as to control the robot to move near the guide rail and accurately move to the target position through the guide rail. In the second control method, according to the current position and target position of the robot, the robot is controlled to turn so that the robot faces the target object, and then the robot moves in a straight line to the target position.
[0004] However, the inventors found in the process of implementing the present invention that the above-mentioned methods in the prior art have at least the following defects: In the first method, it is necessary to add additional guide rails, which significantly increases the cost of hardware equipment. In the second method, the robot is controlled to perform a steering operation so that the robot can go straight to the target position. On the one hand, during the steering operation, the robot is often required to rotate a large angle at a time, which makes the robot bump violently and prone to accidents such as rollover, especially for cargo-carrying robots. The accident rate is higher; on the other hand, during the straight-moving process after the steering operation, due to the influence of control errors, the robot may deviate from the route, thereby causing the robot to fail to reach the designated target position. Summary of the invention
[0005] In view of the above problems, embodiments of the present invention are proposed to provide a robot movement control method, device and robot that overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of an embodiment of the present invention, there is provided a movement control method of a robot, comprising:
[0007] During the movement of the robot, the current position of the robot and the target position of the target object are dynamically obtained;
[0008] Determine a target moving path corresponding to the target position point, and determine a transition point located on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot;
[0009] According to the dynamically acquired current distance and angle of the robot relative to the transition point, the linear velocity and angular velocity of the robot are calculated, and the robot is controlled to move toward the transition point according to the currently calculated linear velocity and angular velocity until it reaches the target position point through the guidance of the transition point.
[0010] Optionally, determining a transition point located on the target moving path according to the current position point and the target position point includes:
[0011] Determining, according to the target moving path, path segments corresponding to the current position point and the target position point;
[0012] Dividing the path line segment into a first line segment and a second line segment according to a preset division coefficient, and determining a division point between the first line segment and the second line segment as the transition point;
[0013] The preset division coefficient is determined according to the distance between the initial position of the robot and the target position point.
[0014] Optionally, the determining of the path segments corresponding to the current position point and the target position point includes:
[0015] Determine the target location point as the first endpoint of the path segment;
[0016] Determine a mapping point of the current position point on the target moving path, and determine the mapping point of the current position point as the second endpoint of the path segment;
[0017] The mapping point of the current position point includes: a vertical point of the current position point corresponding to the target moving path.
[0018] Optionally, determining the target moving path corresponding to the target position point includes:
[0019] According to the shape of the target object, a reference plane or a reference line corresponding to the target object is determined, and the target moving path is set according to a vertical line corresponding to the reference plane or the reference line.
[0020] Optionally, calculating the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point comprises:
[0021] Determine the line between the current position point of the robot and the transition point as the angle reference line;
[0022] Dynamically obtain the angle of the robot's current orientation relative to the angle reference line, and determine the robot's current angle relative to the transition point according to the angle;
[0023] The current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through a control algorithm.
[0024] Optionally, calculating the instantaneous angular velocity of the robot by a control algorithm includes:
[0025] The instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; and the control parameters further include: a real-time control parameter, an integral control parameter, and a differential control parameter;
[0026] Then, taking the current angle of the robot relative to the transition point as a control parameter comprises:
[0027] determining a real-time control parameter based on a current angle of the robot relative to the transition point;
[0028] determining an integral control parameter according to an angle of the robot relative to the transition point within a preset time period;
[0029] Determining a differential control parameter according to a difference between a current angle of the robot relative to the transition point and a previous angle of the robot relative to the transition point;
[0030] The instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
[0031] Optionally, the dynamically acquiring the current position of the robot and the target position of the target object includes:
[0032] The environmental data collected this time is obtained, the target object contained in the environmental data is detected, and the current position point of the robot and the target position point where the target object is located are updated according to the detection result.
[0033] Optionally, after detecting the target object included in the environmental data, the method further includes:
[0034] detecting non-target objects included in the environmental data;
[0035] Determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot;
[0036] When the non-target object is determined to be an obstacle according to the judgment result, an obstacle avoidance instruction is sent to the robot.
[0037] Optionally, the determining whether the non-target object matches the motion trajectory of the robot includes:
[0038] Determine the trajectory type of the robot's current motion trajectory;
[0039] When the trajectory type is a straight line type, determining a strip area corresponding to the current motion trajectory, and judging whether the non-target object matches the motion trajectory of the robot according to whether the non-target object is located in the strip area;
[0040] When the trajectory type is an arc type, a sector area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined based on whether the non-target object is located in the sector area.
[0041] Optionally, the detecting a target object included in the environmental data includes:
[0042] Mapping the environmental data into point cloud data, traversing each data window in the point cloud data by means of a sliding window, and judging whether the point cloud data contains an object matching the preset target feature data according to the traversal result;
[0043] If so, the object matching the preset target feature data is determined as the target object.
[0044] Optionally, the dynamically acquiring the current position of the robot and the target position of the target object includes:
[0045] The updated current position point and the target position point are stored in a preset position by identifying the positioning thread; and the updated current position point and the target position point stored in the preset position are acquired by the mobile control thread;
[0046] Then the determining of the transition point located on the target moving path according to the current position point and the target position point comprises: dynamically determining the transition point located on the target moving path according to the updated current position point and the target position point through the movement control thread;
[0047] And the calculation of the linear velocity and angular velocity of the robot based on the dynamically acquired current distance and angle of the robot relative to the transition point includes: dynamically acquiring the current distance and angle of the robot relative to the transition point based on the updated current position point and the target position point through the mobile control thread, and calculating the linear velocity and angular velocity of the robot in real time.
[0048] According to another aspect of an embodiment of the present invention, there is provided a movement control device of a robot, comprising:
[0049] The positioning module is suitable for dynamically obtaining the current position of the robot and the target position of the target object during the movement of the robot;
[0050] A transition point determination module, adapted to determine a target moving path corresponding to the target position point, and determine a transition point located on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot;
[0051] The control module is adapted to calculate the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point, and control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until the robot reaches the target position point through the guidance of the transition point.
[0052] Optionally, the transition point determination module is specifically adapted to:
[0053] Determining, according to the target moving path, path segments corresponding to the current position point and the target position point;
[0054] Dividing the path line segment into a first line segment and a second line segment according to a preset division coefficient, and determining a division point between the first line segment and the second line segment as the transition point;
[0055] The preset division coefficient is determined according to the distance between the initial position of the robot and the target position point.
[0056] Optionally, the transition point determination module is specifically adapted to:
[0057] Determine the target location point as the first endpoint of the path segment;
[0058] Determine a mapping point of the current position point on the target moving path, and determine the mapping point of the current position point as the second endpoint of the path segment;
[0059] The mapping point of the current position point includes: a vertical point of the current position point corresponding to the target moving path.
[0060] Optionally, the transition point determination module is specifically adapted to:
[0061] According to the shape of the target object, a reference plane or a reference line corresponding to the target object is determined, and the target moving path is set according to a vertical line corresponding to the reference plane or the reference line.
[0062] Optionally, the control module is specifically adapted to:
[0063] Determine the line between the current position point of the robot and the transition point as the angle reference line;
[0064] Dynamically obtain the angle of the robot's current orientation relative to the angle reference line, and determine the robot's current angle relative to the transition point according to the angle;
[0065] The current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through a control algorithm.
[0066] Optionally, the control module is specifically adapted to:
[0067] The instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; and the control parameters further include: a real-time control parameter, an integral control parameter, and a differential control parameter;
[0068] determining a real-time control parameter based on a current angle of the robot relative to the transition point;
[0069] determining an integral control parameter according to an angle of the robot relative to the transition point within a preset time period;
[0070] Determining a differential control parameter according to a difference between a current angle of the robot relative to the transition point and a previous angle of the robot relative to the transition point;
[0071] The instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
[0072] Optionally, the positioning module is specifically suitable for:
[0073] The environmental data collected this time is obtained, the target object contained in the environmental data is detected, and the current position point of the robot and the target position point where the target object is located are updated according to the detection result.
[0074] Optionally, the positioning module is further adapted to:
[0075] detecting non-target objects included in the environmental data;
[0076] Determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot;
[0077] When the non-target object is determined to be an obstacle according to the judgment result, an obstacle avoidance instruction is sent to the robot.
[0078] Optionally, the positioning module is specifically suitable for:
[0079] Determine the trajectory type of the robot's current motion trajectory;
[0080] When the trajectory type is a straight line type, determining a strip area corresponding to the current motion trajectory, and judging whether the non-target object matches the motion trajectory of the robot according to whether the non-target object is located in the strip area;
[0081] When the trajectory type is an arc type, a sector area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined based on whether the non-target object is located in the sector area.
[0082] Optionally, the positioning module is specifically suitable for:
[0083] Mapping the environmental data into point cloud data, traversing each data window in the point cloud data by means of a sliding window, and judging whether the point cloud data contains an object matching the preset target feature data according to the traversal result;
[0084] If so, the object matching the preset target feature data is determined as the target object.
[0085] Optionally, the positioning module is specifically suitable for:
[0086] The updated current position point and the target position point are stored in a preset position through the identification and positioning thread; and the updated current position point and the target position point stored in the preset position are acquired through the movement control thread.
[0087] According to yet another aspect of the embodiments of the present invention, a robot is provided, comprising the above-mentioned movement control device of the robot.
[0088] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0089] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned robot movement control method.
[0090] According to another aspect of the embodiments of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned robot movement control method.
[0091] In the robot movement control method, device and robot provided by the embodiment of the present invention, first, the current position point of the robot and the target position point where the target object is located can be dynamically obtained during the movement of the robot; then, the target movement path corresponding to the target position point is determined, and the transition point located on the target movement path is determined according to the current position point; then, the linear velocity and angular velocity of the robot are calculated according to the dynamically obtained current distance and angle of the robot relative to the transition point, so as to control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity. It can be seen that this method does not need to increase additional hardware costs and is simple and easy. Moreover, in this method, the target movement path is pre-set, so that the robot can walk according to the planned path, thereby ensuring that the robot can reliably contact the target object. In addition, the method of gradually guiding the robot to move to the target position through the gradually moving transition point can prevent the robot from rotating significantly at one time, thereby avoiding the risk of rollover. Moreover, this method can dynamically adjust the transition point according to the current position of the robot in real time during the movement, and dynamically adjust the linear velocity and angular velocity of the robot accordingly, so as to effectively prevent the problem of robot route deviation caused by control error.
[0092] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0094] Figure 1 A flow chart of a robot movement control method provided by an embodiment of the present invention is shown;
[0095] Figure 2 A flow chart of a robot movement control method provided by another embodiment of the present invention is shown;
[0096] Figure 3 A schematic diagram showing the structure of a mobile control device for a robot provided by an embodiment of the present invention is shown;
[0097] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown;
[0098] Figure 5A schematic diagram showing the robot moving to a target object. DETAILED DESCRIPTION
[0099] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0100] Figure 1 FIG. 1 is a flow chart of a robot movement control method provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0101] Step S110: During the movement of the robot, dynamically obtain the current position of the robot and the target position of the target object.
[0102] Among them, since the position of the robot changes continuously during the movement process, it is necessary to dynamically obtain the current position of the robot, and repeat the subsequent steps after obtaining the updated current position of the robot each time. In other words, the steps in this embodiment are executed cyclically during the movement of the robot. For example, the current position of the robot can be obtained once every first preset interval.
[0103] In addition, the target position point where the target object is located can be either an absolute position point in the coordinate system or a relative position point of the target object relative to the current position of the robot, and the present invention does not limit this. Since the position of the target object is usually fixed, the target position point where the target object is located can be acquired only once. Of course, in order to avoid the influence of errors during the movement process, the target position point where the target object is located can also be periodically acquired according to the above-mentioned first preset interval, thereby ensuring the feasibility and accuracy of the current position point of the robot and the target position point where the target object is located.
[0104] Step S120: Determine a target moving path corresponding to the target position point, and determine a transition point on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot.
[0105] The target moving path refers to the ideal path of the robot when it moves. In this embodiment, the robot needs to be guided to gradually move from outside the target moving path to the target moving path, and then approach the target object along the target moving path. Since the target object may have strict contact specifications, for example, the robot is required to contact the end face of the target object in a manner perpendicular to the end face of the target object, the direction of the target moving path can be set according to the shape and type of the target object. The present invention does not limit the specific setting method of the target moving path.
[0106] Among them, the transition point located on the target moving path is mainly determined according to the current position point and the target position point of the robot. For example, the current position of the transition point can be determined according to the current position point and the target position point of the robot, combined with a preset proportional coefficient (or called a division coefficient). In short, the transition point is always located on the target moving path, and as the relative distance between the robot and the target object shortens, it gradually approaches the target position point, and finally coincides with the target position point, thereby guiding the robot to successfully move to the target position point.
[0107] It can be seen that as the robot continues to move, the current position point keeps changing, and accordingly, the position of the transition point on the target moving path also keeps changing.
[0108] Step S130: Calculate the linear velocity and angular velocity of the robot based on the dynamically acquired current distance and angle of the robot relative to the transition point, and control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until it reaches the target position through the guidance of the transition point.
[0109] Specifically, the robot's current distance and angle relative to the transition point are dynamically calculated, and the robot's linear velocity, also called instantaneous linear velocity, is determined based on the robot's current distance relative to the transition point. In specific implementation, the shorter the robot's current distance relative to the transition point, the smaller the instantaneous linear velocity; the farther the robot's current distance relative to the transition point, the larger the instantaneous linear velocity.
[0110] In addition, the angular velocity of the robot is determined according to the current angle of the robot relative to the transition point, also called the instantaneous angular velocity. In one embodiment, the smaller the current angle of the robot relative to the transition point, the smaller the instantaneous angular velocity; the farther the current angle of the robot relative to the transition point, the greater the instantaneous angular velocity. Of course, when adjusting the angular velocity of the robot, it is also possible to further adjust it in combination with factors such as the cumulative amount of angle deviation. For example, it is also possible to adjust it through a PID control algorithm, and the present invention does not limit the specific calculation method of the linear velocity and the angular velocity.
[0111] Since the current position of the robot changes dynamically and the position of the transition point also changes dynamically, the linear velocity and angular velocity of the robot also change dynamically, so that the error effect can be corrected in real time.
[0112] It can be seen that this method does not require additional hardware costs and is simple and easy to implement. Moreover, in this method, the target moving path is pre-set so that the robot can walk according to the planned path, thereby ensuring that the robot can reliably contact the target object. In addition, the method of gradually guiding the robot to move to the target position through the gradually moving transition point can prevent the robot from making a large rotation at one time, thereby avoiding the risk of rollover. Moreover, this method can dynamically adjust the transition point according to the current position of the robot in real time during the movement process, and dynamically adjust the linear speed and angular velocity of the robot accordingly, thereby effectively preventing the problem of robot route deviation caused by control errors.
[0113] Figure 2 FIG. 2 is a flow chart of a robot movement control method provided by another embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0114] Step S210: During the movement of the robot, dynamically obtain the current position of the robot and the target position of the target object.
[0115] This step is a cyclically executed step. For example, this step and its subsequent steps may be executed once every preset period.
[0116] Before the robot moves, the robot is at the initial position, which is the current position point corresponding to the robot in the initial state. As the robot moves continuously, the position of the current position point keeps changing. Accordingly, it is necessary to dynamically obtain the current position point corresponding to the robot at the current moment during the robot movement. In addition, the target position point where the target object is located is usually fixed, but considering that the target position point can be described by the relative position of the robot relative to the target object, therefore, whenever the position of the robot changes, the target position point of the target object relative to the robot also needs to be dynamically updated, so as to more accurately reflect the relative position relationship between the robot and the target object.
[0117] Specifically, for a robot that uses a laser radar for positioning, the current position of the robot and the target position of the target object can be dynamically obtained in the following manner: obtain the environmental data collected this time, detect the target object contained in the environmental data, and update the current position of the robot and the target position of the target object according to the detection results. The environmental data around the robot is collected by the laser radar, and a frame of data can be collected at a preset time interval, so as to perform detection processing on the frame of environmental data collected this time.
[0118] In specific implementation, when detecting the target object contained in the environmental data, it is achieved in the following way: first, the environmental data is mapped into point cloud data so that the positional relationship between each data is represented by a coordinate system. Among them, the environmental data can also be pre-processed in advance to eliminate abnormal data with values that are too large or too small, so as to ensure the compliance of the point cloud data. Then, each data window in the point cloud data is traversed by a sliding window method, and it is determined whether the point cloud data contains an object that matches the preset target feature data according to the traversal results; if so, the object that matches the preset target feature data is determined as the target object. Among them, in order to improve the traversal accuracy of the point cloud data, the point cloud data is divided into multiple data windows by a sliding window method, and each data window is traversed one by one. For example, assuming that each data window contains data of N points, there are NM overlapping points between each two adjacent data windows, where N and M are both natural numbers, and M is less than N. Preferably, M=1, assuming N=10, then the first data window is the 1st to 10th points, the second data window is the 2nd to 11th points, the third data window is the 3rd to 12th points... and so on. In this way, it can be ensured that each data window has more overlapping areas with the previous and next adjacent data windows, so that each object in the environment can be accurately identified based on the overlapping areas.
[0119] Among them, the preset target feature data refers to the pre-stored data content corresponding to the target object, which is used to describe the shape characteristics of the target object. In specific implementation, the target feature data is usually centered on the origin of the coordinate system and aligned with the first coordinate axis. That is, the arrangement of the target feature data in the coordinate system is fixed, arranged along the x-axis or along the y-axis. Therefore, when judging whether the point cloud data contains an object that matches the preset target feature data, in order to facilitate comparison, the point cloud data can be rotated and / or aligned in advance through the PCA algorithm, so that the arrangement of the processed point cloud data in the coordinate system is consistent with the target feature data, for example, it is also centered on the origin of the coordinate system and arranged along the x-axis or along the y-axis. When matching specifically, the point cloud data and the target feature data can be synchronously sampled, and the cosine similarity can be calculated for the sampled data. According to the similarity calculation result, it is determined whether the two match. If the similarity calculation result is greater than the preset similarity threshold, it is determined that the target object is identified, and then the target position point where the target object is located is updated.
[0120] In an optional implementation, the robot's mobile control operation is completed through the cooperation between two independent threads running in parallel: on the one hand, the updated current position point and the target position point are stored in the preset position through the identification and positioning thread; on the other hand, the updated current position point and the target position point stored in the preset position are obtained through the mobile control thread. In the specific implementation, the identification and positioning thread is responsible for executing the above-mentioned operations of collecting environmental data, detecting the target object contained in the environmental data, and updating the robot's current position point and the target position point where the target object is located according to the detection results, wherein the identification and positioning thread can collect environmental data once every first preset time length, and update the robot's current position point and the target position point where the target object is located according to the environmental data collected this time. It can be seen that the data content stored in the preset position is updated according to the period corresponding to the first preset time length. Among them, the preset position can be various storage spaces such as memory, database, etc., or the current position point and the target position point stored in the preset position can also be maintained by a state machine. Correspondingly, the mobile control thread regularly queries the current position point and the target position point stored in the above-mentioned preset position, and dynamically performs mobile control operations according to the updated current position point and the target position point.
[0121] Step S220: Determine the target moving path corresponding to the target location point.
[0122] The target moving path refers to the ideal path of the robot when it moves. In this embodiment, the robot needs to be guided to gradually move from outside the target moving path to the target moving path, and then approach the target object along the target moving path. Since the target object may have strict contact specifications, for example, the robot is required to contact the end face of the target object in a manner perpendicular to the end face of the target object, the direction of the target moving path can be set according to the shape and type of the target object.
[0123] In this embodiment, according to the shape of the target object, a reference plane or reference line corresponding to the target object is determined, and the target moving path is set according to the vertical line corresponding to the reference plane or reference line. For example, in an application scenario of this embodiment, it is necessary to control the robot to move to the location of the charging pile for charging. At this time, the target object is the charging pile. Since the charging pile is provided with contacts for charging, the robot must approach the charging pile along a path perpendicular to the straight line where the two contacts of the charging pile are located, and then dock with the two contacts of the charging pile. Correspondingly, in this scenario, the reference plane corresponding to the target object refers to: the contact surface of the charging pile for charging; the reference line corresponding to the target object refers to: the straight line connecting at least two charging contacts on the charging pile. Therefore, the vertical line perpendicular to the reference plane or reference line is set as the target moving path. Of course, for greater accuracy, the midpoint of the line connecting the two charging contacts of the charging pile can be determined as the target position point, and the target moving path passes through the target position point. For another example, in another application scenario of this embodiment, the robot needs to be controlled to move into a garage. At this time, the target object is the garage. Therefore, the robot must approach the garage along a path perpendicular to the straight line where the bottom edge of the garage door is located, and then enter the garage at an angle perpendicular to the garage door. Accordingly, in this scenario, the reference plane corresponding to the target object refers to: the screen where the garage door is located; the reference line corresponding to the target object refers to: the straight line corresponding to the bottom of the garage door.
[0124] Step S230: determining a transition point on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot.
[0125] Specifically, the transition point is used to guide the robot to gradually move to the target moving path and reach the target position point along the target moving path. Among them, the transition point is always located on the target moving path, which is equivalent to the anchor point used to pull the robot to move. During the movement process, the robot always uses the transition point as a temporary target point and moves toward the transition point. The transition point will gradually approach the target position point as the relative distance between the robot and the target object shortens, and finally coincides with the target position point, thereby gradually guiding the robot to the target point with the help of the dynamic traction of the transition point.
[0126] It can be seen that it is necessary to set a point on the target moving path as a transition point. The specific setting is achieved in the following way: first, according to the target moving path, the path segments corresponding to the current position point and the target position point are determined; then, the path segments are divided into a first segment and a second segment according to a preset division coefficient, and the division point between the first segment and the second segment is determined as the transition point.
[0127] When determining the path segment corresponding to the current position point and the target position point, the target position point is determined as the first endpoint of the path segment; the mapping point of the current position point is determined on the target moving path, and the mapping point of the current position point is determined as the second endpoint of the path segment. The mapping point of the current position point refers to the point corresponding to the current position point when it is mapped to the target moving path according to a preset mapping relationship. For example, the mapping point of the current position point includes: the vertical point of the current position point corresponding to the target moving path.
[0128] For ease of understanding, Figure 5 Figure 2 shows a schematic diagram of the robot moving to the target object. Figure 5 As shown, it is necessary to control the robot 11 to move to the target object 12. Among them, the midpoint of the side of the robot facing the target object is determined as the current position point R of the robot, and the midpoint of the target object is determined as the target position point G. Correspondingly, the straight line passing through the target position point G and perpendicular to the end face of the target object corresponds to the above-mentioned target moving path. Correspondingly, when determining the path line segment corresponding to the current position point R and the target position point G according to the target moving path, the target position point G is used as an end point of the path line segment. In addition, a vertical line of the target moving path is drawn through the current position point R, and the point where the vertical line intersects with the target moving path is the mapping point P (vertical point in this example) of the current position point on the target moving path. Therefore, the line segment GP is the path line segment corresponding to the current position point R and the target position point G.
[0129] Next, the path segment GP is divided into a first segment GT and a second segment TP according to the preset segmentation coefficient, and the segmentation point between the first segment GT and the second segment TP is determined as the transition point T. The preset segmentation coefficient is a constant, which is used to achieve proportional segmentation of the path segment. In this example, the preset segmentation coefficient is α, and accordingly, GT:TP=1-α:α. It can be seen that the proportional segmentation of the path segment can be achieved by the preset segmentation coefficient. Since the preset segmentation coefficient is a fixed constant, and the current position point R of the robot is dynamically changing, the mapping point P also changes dynamically accordingly. When the length of the path segment GP changes, the position of the transition point T also changes accordingly, but no matter when, the transition point T is always located on the path segment, thereby guiding the robot to move to the path segment and approach the target object along the path segment.
[0130] The inventors found in the process of implementing the present invention that if the preset division coefficient is set too small, the robot's moving path will be steeper, causing the robot to make a large instantaneous turn during movement, which is prone to the risk of rollover due to bumps; if the preset division coefficient is set too large, the robot's moving path is smoother, which improves safety, but may cause a longer movement time. In order to take into account both safety and movement efficiency, it is necessary to set the size of the preset division coefficient in combination with actual needs. In this embodiment, the preset division coefficient is determined according to the distance between the robot's initial position and the target position point (i.e., the initial distance before movement). For example, the farther the initial distance between the robot and the target position point, the larger the preset division coefficient; the closer the initial distance between the robot and the target position point, the smaller the preset division coefficient.
[0131] Specifically, the transition point on the target moving path is dynamically determined by the mobile control thread according to the updated current position point and the target position point, wherein the updated current position point and the target position point are determined by identifying the content dynamically stored in the preset position by the positioning thread.
[0132] Step S240: Calculate the linear velocity and angular velocity of the robot based on the dynamically acquired current distance and angle of the robot relative to the transition point, and control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until it reaches the target position through the guidance of the transition point.
[0133] Specifically, the robot's current distance and angle relative to the transition point are dynamically calculated, and the robot's linear velocity, also called instantaneous linear velocity, is determined based on the robot's current distance relative to the transition point. In specific implementation, the mobile control thread dynamically obtains the robot's current distance and angle relative to the transition point based on the updated current position point and target position point, and calculates the robot's linear velocity and angular velocity in real time. The updated current position point and target position point are determined by identifying the content dynamically stored in the preset position by the positioning thread.
[0134] In specific implementation, on the one hand, the current distance of the robot relative to the transition point is dynamically acquired, and the linear velocity of the robot is calculated based on the distance; on the other hand, the current angle of the robot relative to the transition point is dynamically acquired, and the angular velocity of the robot is calculated based on the angle.
[0135] The linear velocity of the robot refers to the speed at which the robot moves forward or backward. When the linear velocity is positive, the robot moves forward; when the linear velocity is negative, the robot moves backward. In this embodiment, the linear velocity is usually positive, that is, the robot moves forward continuously by default. In specific implementation, the current distance of the robot relative to the transition point is dynamically obtained, and the instantaneous linear velocity of the robot is calculated based on the obtained distance and the preset proportional coefficient. For example, Figure 5 For example, the robot's linear velocity is represented by vl, which is determined by the product of line segment RT and the proportional coefficient p. Of course, since there is a fixed proportional relationship between line segment RT and line segment RG, the robot's linear velocity can also be expressed by the following formula: vl = p*GR. It can be seen that as the distance gets closer, the robot's speed gets smaller.
[0136] In addition, the angular velocity of the robot refers to: the rotation angle information of the robot during the movement. Among them, when the angular velocity is a positive value, the robot rotates in the first direction; when the angular velocity is a negative value, the robot rotates in the second direction, and the first direction and the second direction are opposite to each other. For example, the first direction is the left side, and the second direction is the right side. In specific implementation, the current angle of the robot relative to the transition point is dynamically obtained, and the instantaneous angular velocity of the robot is calculated based on the obtained angle and the preset control coefficient. In specific implementation, the instantaneous angular velocity of the robot is calculated in the following way: first, the line between the current position point of the robot and the transition point is determined as the angle reference line; then, the angle of the current orientation of the robot relative to the angle reference line is dynamically obtained, and the current angle of the robot relative to the transition point is determined based on the angle; finally, the current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through the control algorithm. For example, still with Figure 5 For example, first, the line RT between the current position point R of the robot and the transition point T is determined as the angle reference line. Then, the angle θ between the current orientation of the robot and the angle reference line RT is obtained. Among them, the current orientation of the robot corresponds to Figure 5 The dotted line 10 in the figure usually refers to the direction of the perpendicular midline of the robot. The angle θ is the current angle of the robot relative to the transition point. By using this angle as a control parameter, the instantaneous angular velocity of the robot can be controlled in real time through the control algorithm.
[0137] In a preferred implementation, the instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; accordingly, the above-mentioned control parameters further include: real-time control parameters, integral control parameters and differential control parameters; when the current angle of the robot relative to the transition point is used as the control parameter, the real-time control parameter is determined according to the current angle of the robot relative to the transition point; the integral control parameter is determined according to the angle of the robot relative to the transition point within a preset time period; the differential control parameter is determined according to the difference between the current angle of the robot relative to the transition point and the last angle relative to the transition point; the instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
[0138] For example, the instantaneous angular velocity va of the robot is calculated by the following formula:
[0139] va=p_v*θ+p_i*(∑θ) / n+p_d*(θ-θ')
[0140] Among them, θ is the above-mentioned real-time control parameter, p_v represents the proportional coefficient of angle and angular velocity (i.e. the above-mentioned preset proportional coefficient), and the closer the robot is to the transition point, the smaller the angular velocity. p_i / n represents the control ratio of the accumulated deviation value in the time series to the control amount (i.e. the above-mentioned integral coefficient), wherein n represents a statistical time length, the robot has errors for a period of time, and the angular velocity will tend to correct this error; ∑θ is the above-mentioned integral control parameter, which represents multiple angle values accumulated over a period of time. p_d represents the control ratio of the difference between two states to the control amount (i.e. the above-mentioned differential coefficient); (θ-θ' is the angle difference between two states (i.e. the above-mentioned differential control parameter), wherein θ is the angle obtained this time, and θ' is the angle obtained last time. When the robot turns toward the transition point, the angular velocity tends to become smaller to prevent over-steering. It can be seen that mobile control is a cyclic control process. After obtaining the updated displacement of the robot in each cycle, the latest mobile control command is issued to the robot by calculating vl and va.
[0141] In this way, the robot can be controlled to move along the target moving path to the target position point, thereby ensuring reliable contact with the target object. Through the traction of the transition point, the robot can be gradually moved to the target moving path, and with the help of the transition point, the accumulated error of the robot can be corrected in real time, thereby controlling the precise movement of the robot in real time.
[0142] In addition, the inventors found in the process of implementing the present invention that the robot may be blocked by obstacles during movement and cannot move forward. In order to avoid damage to the robot due to collision, the following obstacle avoidance strategy is further added in this embodiment:
[0143] After detecting the target object contained in the environmental data, further detect the non-target object contained in the environmental data; determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot; when the non-target object is determined to be an obstacle according to the judgment result, send an obstacle avoidance instruction to the robot. Among them, the obstacle avoidance strategy can be executed by the above-mentioned identification and positioning thread after detecting the target object contained in the environmental data. The obstacle avoidance instruction can be a stop instruction or an obstacle avoidance instruction, etc., which is not limited by the present invention.
[0144] Specifically, the identification and positioning thread detects non-target objects contained in the environmental data, that is, objects other than the target object. Determining whether the non-target object is an obstacle is specifically achieved by at least one of the following two methods:
[0145] In the first method, it is determined whether the distance between the non-target object and the robot is less than a preset threshold. If so, it means that the non-target object is very close to the robot and may pose a threat to the movement of the robot. Therefore, the non-target object is determined to be an obstacle.
[0146] In the second method, it is determined whether the non-target object matches the motion trajectory of the robot. If so, it means that the robot will encounter the non-target object when moving along the motion trajectory, and thus the non-target object is determined to be an obstacle; if not, it means that the robot will not encounter the non-target object when moving along the motion trajectory, and thus the non-target object is determined not to be an obstacle. Specifically, when determining whether the non-target object matches the motion trajectory of the robot, first, the trajectory type of the current motion trajectory of the robot is determined; when the trajectory type is a straight line type, the strip area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined according to whether the non-target object is located in the strip area; when the trajectory type is an arc type, the fan area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined according to whether the non-target object is located in the fan area. Among them, the strip area refers to: an area that matches the direction of linear motion, the area width of the strip area can be determined according to the width of the robot, and the area length of the strip area can be determined according to the linear velocity of the robot. In addition, the fan area refers to: an area that matches the direction of arc motion, and the area area of the fan area is determined according to information such as the angular velocity of the robot.
[0147] The above two methods can be used alone or in combination. When the two are combined, obstacles can be identified from two aspects: the relative distance of the object from the robot and whether it is located in the robot's forward path, so that the identification result is more accurate and some objects that are very close to the robot but will not cause collision with the robot are not mistakenly identified as obstacles.
[0148] The method in this embodiment can be applied to various scenarios. For example, there may be a need for accurate positioning and mobile control in the robot operation scenario, such as automatic alignment charging, interactive device docking, cabin docking, etc., while the existing control method based on navigation and SLAM positioning technology is only suitable for rough control over a large range and cannot meet the requirements of precise control. For example, the traditional method may require the addition of other auxiliary sensors (such as infrared), thereby increasing the hardware cost; and the traditional method only locates once, without considering the errors generated by the robot during movement; and, there is no obstacle avoidance function, it cannot operate in a small area, and the safety factor is low. In addition, the strategy based on SLAM navigation and control cannot meet the millimeter-level movement error and centimeter-level operating environment.
[0149] Through the method in this embodiment, the need for the robot to accurately move to a certain position can be solved. LiDAR data is used for target recognition and positioning, data filtering and PCA algorithm are used to process data during recognition, a sliding window is used to detect target points, and cosine similarity calculation is used to identify target objects. Moreover, a transition point for dynamic movement is set in mobile control, and the robot orientation and transition point angle are used as control parameters for control, thereby achieving the effect of real-time correction of cumulative errors. In addition, an obstacle avoidance function is added to distinguish between target points and obstacle points.
[0150] Figure 3 FIG. 1 is a schematic diagram showing the structure of a robot movement control device provided by an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0151] The positioning module 31 is adapted to dynamically obtain the current position of the robot and the target position of the target object during the movement of the robot;
[0152] A transition point determination module 32 is adapted to determine a target moving path corresponding to the target position point, and determine a transition point located on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot;
[0153] The control module 33 is suitable for calculating the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point, and controlling the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until it reaches the target position point through the guidance of the transition point.
[0154] Optionally, the transition point determination module is specifically adapted to:
[0155] Determining, according to the target moving path, path segments corresponding to the current position point and the target position point;
[0156] Dividing the path line segment into a first line segment and a second line segment according to a preset division coefficient, and determining a division point between the first line segment and the second line segment as the transition point;
[0157] The preset division coefficient is determined according to the distance between the initial position of the robot and the target position point.
[0158] Optionally, the transition point determination module is specifically adapted to:
[0159] Determine the target location point as the first endpoint of the path segment;
[0160] Determine a mapping point of the current position point on the target moving path, and determine the mapping point of the current position point as the second endpoint of the path segment;
[0161] The mapping point of the current position point includes: a vertical point of the current position point corresponding to the target moving path.
[0162] Optionally, the transition point determination module is specifically adapted to:
[0163] According to the shape of the target object, a reference plane or a reference line corresponding to the target object is determined, and the target moving path is set according to a vertical line corresponding to the reference plane or the reference line.
[0164] Optionally, the control module is specifically adapted to:
[0165] Determine the line between the current position point of the robot and the transition point as the angle reference line;
[0166] Dynamically obtain the angle of the robot's current orientation relative to the angle reference line, and determine the robot's current angle relative to the transition point according to the angle;
[0167] The current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through a control algorithm.
[0168] Optionally, the control module is specifically adapted to:
[0169] The instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; and the control parameters further include: a real-time control parameter, an integral control parameter, and a differential control parameter;
[0170] determining a real-time control parameter based on a current angle of the robot relative to the transition point;
[0171] determining an integral control parameter according to an angle of the robot relative to the transition point within a preset time period;
[0172] Determining a differential control parameter according to a difference between a current angle of the robot relative to the transition point and a previous angle of the robot relative to the transition point;
[0173] The instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
[0174] Optionally, the positioning module is specifically suitable for:
[0175] The environmental data collected this time is obtained, the target object contained in the environmental data is detected, and the current position point of the robot and the target position point where the target object is located are updated according to the detection result.
[0176] Optionally, the positioning module is further adapted to:
[0177] detecting non-target objects included in the environmental data;
[0178] Determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot;
[0179] When the non-target object is determined to be an obstacle according to the judgment result, an obstacle avoidance instruction is sent to the robot.
[0180] Optionally, the positioning module is specifically suitable for:
[0181] Determine the trajectory type of the robot's current motion trajectory;
[0182] When the trajectory type is a straight line type, determining a strip area corresponding to the current motion trajectory, and judging whether the non-target object matches the motion trajectory of the robot according to whether the non-target object is located in the strip area;
[0183] When the trajectory type is an arc type, a sector area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined based on whether the non-target object is located in the sector area.
[0184] Optionally, the positioning module is specifically suitable for:
[0185] Mapping the environmental data into point cloud data, traversing each data window in the point cloud data by means of a sliding window, and judging whether the point cloud data contains an object matching the preset target feature data according to the traversal result;
[0186] If so, the object matching the preset target feature data is determined as the target object.
[0187] Optionally, the positioning module is specifically suitable for:
[0188] The updated current position point and the target position point are stored in a preset position through the identification and positioning thread; and the updated current position point and the target position point stored in the preset position are acquired through the movement control thread.
[0189] The specific structure and working principle of each of the above modules can be referred to the description of the corresponding part of the method embodiment, which will not be repeated here.
[0190] In addition, another embodiment of the present invention provides a robot, comprising the above-mentioned movement control device.
[0191] It can be seen that this method does not require additional hardware costs and is simple and easy to implement. Moreover, in this method, the target moving path is pre-set so that the robot can walk according to the planned path, thereby ensuring that the robot can reliably contact the target object. In addition, the method of gradually guiding the robot to move to the target position through the gradually moving transition point can prevent the robot from making a large rotation at one time, thereby avoiding the risk of rollover. Moreover, this method can dynamically adjust the transition point according to the current position of the robot in real time during the movement process, and dynamically adjust the linear speed and angular velocity of the robot accordingly, thereby effectively preventing the problem of robot route deviation caused by control errors.
[0192] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the robot movement control method in any of the above method embodiments.
[0193] Figure 4 The schematic diagram of the structure of the electronic device provided by the embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0194] like Figure 4 As shown, the electronic device may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0195] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the mobile control method for the robot.
[0196] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0197] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0198] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0199] The program 410 can be specifically used to enable the processor 402 to execute the robot movement control method in any of the above method embodiments.
[0200] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the embodiment of the present invention described herein, and the description of the above specific language is to disclose the best mode of the embodiment of the present invention.
[0201] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0202] Similarly, it should be understood that in order to streamline the embodiments of the present invention and to aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: that the claimed embodiments of the present invention require more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.
[0203] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0204] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0205] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing an embodiment of the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0206] It should be noted that the above embodiments illustrate rather than limit the present invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim listing a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A robot movement control method, comprising: During the movement of the robot, the current position of the robot and the target position of the target object are dynamically obtained; Determine a target moving path corresponding to the target position point, and determine a transition point located on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot; Calculate the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point, and control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until the robot reaches the target position point under the guidance of the transition point; The dynamically acquiring the current position of the robot and the target position of the target object includes: Acquire the environmental data collected this time, map the environmental data into point cloud data, traverse each data window in the point cloud data by means of a sliding window, and determine whether the point cloud data contains an object matching the preset target feature data according to the traversal result; if so, determine the object matching the preset target feature data as the target object contained in the detected environmental data; Update the current position of the robot and the target position of the target object according to the detection result; The target feature data is pre-stored data content corresponding to the target object, used to describe the shape characteristics of the target object, the target feature data is centered on the origin of the coordinate system and aligned with the first coordinate axis, and the step of determining whether the point cloud data contains an object matching the preset target feature data includes: Performing a rotation and / or alignment operation on the point cloud data so that the arrangement of the processed point cloud data in the coordinate system is consistent with the target feature data; The processed point cloud data and the target feature data are synchronously sampled, and cosine similarity is calculated for the sampled data. It is determined whether the point cloud data contains an object that matches the preset target feature data based on the similarity calculation result.
2. The method according to claim 1, wherein: The step of determining a transition point on the target moving path according to the current position point and the target position point comprises: Determining, according to the target moving path, path segments corresponding to the current position point and the target position point; Dividing the path line segment into a first line segment and a second line segment according to a preset division coefficient, and determining a division point between the first line segment and the second line segment as the transition point; The preset division coefficient is determined according to the distance between the initial position of the robot and the target position point.
3. The method according to claim 2, wherein: The determining of the path line segments corresponding to the current position point and the target position point comprises: Determine the target location point as the first endpoint of the path segment; Determine a mapping point of the current position point on the target moving path, and determine the mapping point of the current position point as the second endpoint of the path segment; The mapping point of the current position point includes: a vertical point of the current position point corresponding to the target moving path.
4. The method according to any one of claims 1 to 3, wherein: The determining of the target moving path corresponding to the target position point comprises: According to the shape of the target object, a reference plane or a reference line corresponding to the target object is determined, and the target moving path is set according to a vertical line corresponding to the reference plane or the reference line.
5. The method according to any one of claims 1 to 3, wherein: Calculating the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point comprises: Determine the line between the current position point of the robot and the transition point as the angle reference line; Dynamically obtain the angle of the robot's current orientation relative to the angle reference line, and determine the robot's current angle relative to the transition point according to the angle; The current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through a control algorithm.
6. The method according to claim 5, wherein: The calculating the instantaneous angular velocity of the robot by a control algorithm comprises: The instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; and the control parameters further include: a real-time control parameter, an integral control parameter, and a differential control parameter; Then, taking the current angle of the robot relative to the transition point as a control parameter comprises: determining a real-time control parameter based on a current angle of the robot relative to the transition point; determining an integral control parameter according to an angle of the robot relative to the transition point within a preset time period; Determining a differential control parameter according to a difference between a current angle of the robot relative to the transition point and a previous angle of the robot relative to the transition point; The instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
7. The method according to claim 1, wherein: After detecting the target object included in the environmental data, the method further includes: detecting non-target objects included in the environmental data; Determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot; When the non-target object is determined to be an obstacle according to the judgment result, an obstacle avoidance instruction is sent to the robot.
8. The method according to claim 7, wherein: The determining whether the non-target object matches the motion trajectory of the robot comprises: Determine the trajectory type of the robot's current motion trajectory; When the trajectory type is a straight line type, determining a strip area corresponding to the current motion trajectory, and judging whether the non-target object matches the motion trajectory of the robot according to whether the non-target object is located in the strip area; When the trajectory type is an arc type, a sector area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined based on whether the non-target object is located in the sector area.
9. The method according to claim 1, wherein: The method of dynamically acquiring the current position of the robot and the target position of the target object includes: The updated current position point and the target position point are stored in a preset position by identifying the positioning thread; and the updated current position point and the target position point stored in the preset position are acquired by the mobile control thread; Then the determining of the transition point located on the target moving path according to the current position point and the target position point comprises: dynamically determining the transition point located on the target moving path according to the updated current position point and the target position point through the movement control thread; And the calculation of the linear velocity and angular velocity of the robot based on the dynamically acquired current distance and angle of the robot relative to the transition point includes: dynamically acquiring the current distance and angle of the robot relative to the transition point based on the updated current position point and the target position point through the mobile control thread, and calculating the linear velocity and angular velocity of the robot in real time.
10. A robot movement control device, comprising: The positioning module is suitable for dynamically obtaining the current position of the robot and the target position of the target object during the movement of the robot; A transition point determination module, adapted to determine a target moving path corresponding to the target position point, and determine a transition point located on the target moving path according to the current position point and the target position point; wherein the position of the transition point changes dynamically with the change of the current position point of the robot; a control module, adapted to calculate the linear velocity and angular velocity of the robot according to the dynamically acquired current distance and angle of the robot relative to the transition point, and control the robot to move toward the transition point according to the currently calculated linear velocity and angular velocity until the robot reaches the target position point under the guidance of the transition point; Wherein, the positioning module is specifically suitable for: Acquire the environmental data collected this time, map the environmental data into point cloud data, traverse each data window in the point cloud data by means of a sliding window, and determine whether the point cloud data contains an object matching the preset target feature data according to the traversal result; if so, determine the object matching the preset target feature data as the target object contained in the detected environmental data; Update the current position of the robot and the target position of the target object according to the detection result; The target feature data refers to pre-stored data content corresponding to the target object, which is used to describe the shape characteristics of the target object. The target feature data is centered on the origin of the coordinate system and is aligned with the first coordinate axis. The step of determining whether the point cloud data contains an object that matches the preset target feature data includes: Performing a rotation and / or alignment operation on the point cloud data so that the arrangement of the processed point cloud data in the coordinate system is consistent with the target feature data; The processed point cloud data and target feature data are synchronously sampled, and cosine similarity is calculated for the sampled data. It is determined whether the point cloud data contains an object that matches the preset target feature data based on the similarity calculation result.
11. The device according to claim 10, wherein: The transition point determination module is specifically suitable for: Determining, according to the target moving path, path segments corresponding to the current position point and the target position point; Dividing the path line segment into a first line segment and a second line segment according to a preset division coefficient, and determining a division point between the first line segment and the second line segment as the transition point; The preset division coefficient is determined according to the distance between the initial position of the robot and the target position point.
12. The device according to claim 11, wherein The transition point determination module is specifically suitable for: Determine the target location point as the first endpoint of the path segment; Determine a mapping point of the current position point on the target moving path, and determine the mapping point of the current position point as the second endpoint of the path segment; The mapping point of the current position point includes: a vertical point of the current position point corresponding to the target moving path.
13. The device according to any one of claims 10 to 12, wherein: The transition point determination module is specifically suitable for: According to the shape of the target object, a reference plane or a reference line corresponding to the target object is determined, and the target moving path is set according to a vertical line corresponding to the reference plane or the reference line.
14. The device according to any one of claims 10 to 12, wherein: The control module is specifically suitable for: Determine the line between the current position point of the robot and the transition point as the angle reference line; Dynamically obtain the angle of the robot's current orientation relative to the angle reference line, and determine the robot's current angle relative to the transition point according to the angle; The current angle of the robot relative to the transition point is used as a control parameter, and the instantaneous angular velocity of the robot is calculated through a control algorithm.
15. The device according to claim 14, wherein: The control module is specifically suitable for: The instantaneous angular velocity of the robot is calculated in real time by a PID control algorithm; and the control parameters further include: a real-time control parameter, an integral control parameter, and a differential control parameter; determining a real-time control parameter based on a current angle of the robot relative to the transition point; determining an integral control parameter according to an angle of the robot relative to the transition point within a preset time period; Determining a differential control parameter according to a difference between a current angle of the robot relative to the transition point and a previous angle of the robot relative to the transition point; The instantaneous angular velocity of the robot is calculated according to the preset proportional coefficient, integral coefficient and differential coefficient.
16. The device according to claim 10, wherein: The positioning module is further adapted to: detecting non-target objects included in the environmental data; Determine whether the distance between the non-target object and the robot is less than a preset threshold; and / or determine whether the non-target object matches the motion trajectory of the robot; When the non-target object is determined to be an obstacle according to the judgment result, an obstacle avoidance instruction is sent to the robot.
17. The device according to claim 16, wherein: The positioning module is specifically suitable for: Determine the trajectory type of the robot's current motion trajectory; When the trajectory type is a straight line type, determining a strip area corresponding to the current motion trajectory, and judging whether the non-target object matches the motion trajectory of the robot according to whether the non-target object is located in the strip area; When the trajectory type is an arc type, a sector area corresponding to the current motion trajectory is determined, and whether the non-target object matches the motion trajectory of the robot is determined based on whether the non-target object is located in the sector area.
18. The device according to claim 10, wherein: The positioning module is specifically suitable for: The updated current position point and the target position point are stored in a preset position through the identification and positioning thread; and the updated current position point and the target position point stored in the preset position are acquired through the movement control thread.
19. A robot comprising the mobile control device according to any one of claims 10-18.
20. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the robot movement control method according to any one of claims 1-9.
21. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute an operation corresponding to the robot movement control method according to any one of claims 1 to 9.
