Motion control method and moving device
By acquiring image and sensor information, determining the three-dimensional distance information of obstacles and dynamically adjusting sensor parameters, the problem of insufficient sensory information and poor real-time performance in robot obstacle avoidance is solved, the accuracy and real-time performance of obstacle avoidance are improved, and the robot's adaptability is enhanced. ability.
Patent Information
- Application Number
- PCT/CN2024/082248
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-03
AI Technical Summary
Among existing robot obstacle avoidance technologies, obstacle sensing based on two-dimensional lidar has problems such as insufficient sensory information and poor real-time performance of obstacle avoidance decision-making and planning, which results in robots often failing to avoid obstacles during the obstacle avoidance process.
By obtaining image and sensor information, the three-dimensional distance information of obstacles is determined, obstacle avoidance planning is performed based on image and depth information, and the sensing range and frame rate of the sensor are dynamically adjusted to improve the robot's perception accuracy of obstacles and real-time obstacle avoidance.
It improves the robot's perception accuracy of obstacles and real-time avoidance of obstacles, enhances its ability to avoid obstacles in dynamic scenes, reduces the power consumption of the sensor, and improves the robot's adaptive ability and intelligence.
Smart Images

Figure CN2024082248_03102024_PF_FP_ABST
Abstract
Description
Motion control method and motion device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 24, 2023, with application number 202310327794.1 and invention name “Motion Control Method and Motion Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of robot obstacle avoidance, and more specifically, to a motion control method and motion equipment. Background Art
[0003] Obstacle avoidance technology refers to the process by which a robot senses obstacles in its path and promptly avoids them while moving toward its target. Current obstacle avoidance technology typically relies on obstacle sensing using two-dimensional lidar (LiDAR). However, since two-dimensional LiDAR can only sense obstacles at a certain height, this process suffers from insufficient sensory information and poor real-time decision-making. This often leads to failures during obstacle avoidance.
[0004] In view of this, a motion control solution that can improve the obstacle perception accuracy and real-time obstacle avoidance is in urgent need of development.
[0005] Summary of the Invention
[0006] The present application provides a motion control method and a motion device, which can improve the motion device's perception accuracy of obstacles and the real-time obstacle avoidance performance of the motion device.
[0007] The sports equipment involved in this application may include road vehicles, water vehicles, air vehicles, industrial equipment, agricultural equipment, or entertainment equipment, etc. For example, the sports equipment may include unmanned vehicles, which are vehicles in a broad sense, and may be vehicles (such as commercial vehicles, passenger cars, motorcycles, flying cars, trains, etc.), industrial vehicles (such as forklifts, trailers, tractors, etc.), engineering vehicles (such as excavators, bulldozers, cranes, etc.), agricultural equipment (such as mowers, harvesters, etc.), amusement equipment, toy vehicles, etc. The embodiments of this application do not specifically limit the type of vehicle. Alternatively, the sports equipment may also include smart home devices, such as sweeping robots and other equipment.
[0008] In a first aspect, a motion control method is provided, the method comprising: acquiring an image of a first area, the image indicating position information of a first obstacle in the first area, the first area being an area where a destination of a motion device is located; acquiring sensor information, the sensor information indicating first depth information between a second obstacle and the motion device, the second obstacle being an obstacle located at a first preset height in the first area; determining first distance information of the first obstacle based on the image and the first depth information, the first obstacle being an obstacle located between the first preset height and a second preset height in the first area, the first distance information indicating a lateral distance between the first obstacle and the second obstacle in the image, and a depth distance between the first obstacle and the motion device; and controlling the motion device to avoid obstacles based on the first distance information during movement of the motion device toward the destination.
[0009] In the above technical solution, based on sensor information and images, richer obstacle information can be obtained, improving the sports device's perception of obstacles. Based on this rich obstacle information, the distance information of obstacles between the first preset height and the second preset height can be determined, and core information (such as the first distance information) that is helpful for the sports device's obstacle avoidance planning can be extracted. The sports device can then perform obstacle avoidance planning based on this core information, helping to reduce the amount of data that needs to be preprocessed during the obstacle avoidance planning process, thereby improving the real-time obstacle avoidance performance of the sports device. In particular, for dynamic scenarios with large obstacle fluctuations, the above method helps the sports device quickly and accurately plan obstacle avoidance paths.
[0010] For example, the image may be a red, green, blue (RGB) image, a grayscale image, or the like.
[0011] In some possible implementations, the sensor information is acquired by a detection sensor, which may include a laser radar, a photoelectric sensor, or other detection sensor. Furthermore, the first preset height may be a sensing height of the detection sensor. This first preset height may be less than or equal to the height of the moving device, or may be greater than the height of the moving device. This is not specifically limited in this embodiment of the present application.
[0012] In one example, the motion device is a device that moves on a plane (such as a sweeping robot), and the second preset height may be lower than the height of the motion device, for example, the height of the plane.
[0013] In another example, the sports device is a flying device (such as a drone), and the second preset height can be a height higher than the sports device, for example, it can be 2 meters higher or 3 meters higher than the sports device; or it can be a height lower than the sports device, for example, it can be 2 meters lower or 3 meters lower than the sports device; the embodiments of the present application do not specifically limit this.
[0014] Exemplarily, the first area may include an area perceived by a viewing angle of an image sensor, which is used to acquire the above-mentioned image.
[0015] Exemplarily, the position of the first obstacle in the first area may be determined according to two-dimensional coordinate parameters of the first obstacle on the image and an intrinsic parameter matrix of the image sensor.
[0016] It should be noted that the destination of the aforementioned motion device may include the final target location of the motion device, or may also include locations along the way when the motion device moves toward the final target location.
[0017] In some possible implementations, the lateral distance between the first obstacle and the second obstacle, and the depth distance between the first obstacle and the motion device, can be used to determine the position of the first obstacle in the coordinate system O-XYZ of the motion device. For example, the origin of the coordinate system O-XYZ of the motion device can be the center point of the motion device, and O-XYZ includes an X-axis, a Y-axis, and a Z-axis, wherein the Z-axis can be parallel to the front direction of the motion device, the Y-axis is parallel to the height direction of the motion device, and the X-axis can be perpendicular to the Y-axis and the Z-axis, respectively. Furthermore, the X-coordinate of the first obstacle in the O-XZ coordinate system can be determined based on the lateral distance between the first obstacle and the second obstacle; and the Z-coordinate of the first obstacle in the O-XZ coordinate system can be determined based on the depth distance between the first obstacle and the motion device.
[0018] In combination with the first aspect, in certain implementations of the first aspect, determining the first distance information of the first obstacle based on the image and the first depth information includes: determining the lateral distance between the first obstacle and the second obstacle based on the pixel distance of the pixels in the image; and determining the depth distance between the first obstacle and the motion device based on the grayscale value of the pixels in the image.
[0019] In combination with the first aspect, in certain implementations of the first aspect, determining the depth distance between the first obstacle and the motion device based on the grayscale value of the pixel in the image includes: determining the depth distance corresponding to the grayscale value of a first pixel in the image based on the first depth information, where the first pixel is a pixel in the image corresponding to the graphic of the second obstacle; determining the depth distance between the first obstacle and the motion device based on the grayscale value of a second pixel in the image, at least one of a grayscale gradient value between the second pixel and the first pixel, and the depth distance corresponding to the grayscale value of the first pixel, where the second pixel is a pixel in the image corresponding to the graphic of the first obstacle.
[0020] Exemplarily, the first depth information and the image may be input into a convolutional neural network to obtain a depth estimation map, where the depth estimation map indicates a depth distance corresponding to each pixel point in the image.
[0021] It is understandable that estimating the depth distance between the first obstacle and the motion device based solely on the image may have a large error. Estimating the depth distance between the second obstacle and the motion device based on the first depth information combined with the image can greatly improve the accuracy of depth estimation.
[0022] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: detecting the second obstacle through a detection sensor of the motion device, and obtaining the sensor information based on data collected by the detection sensor, wherein the perception range of the detection sensor is adjustable.
[0023] In combination with the first aspect, in some implementations of the first aspect, the method further includes: dynamically adjusting the sensing range of the detection sensor according to the depth distance indicated by the first distance information.
[0024] Exemplarily, the sensing range of the detection sensor may be adjusted according to a comparison result between the first depth information and the first distance information.
[0025] It should be noted that both the first depth information and the first distance information include two-dimensional obstacle distance information. When the matching degree between the first distance information and the first depth information is less than or equal to a preset threshold, it indicates that the sensing range of the detection sensor is not appropriate and needs to be adjusted.
[0026] In the above technical solution, by adjusting the sensing range of the sensor in real time, the adaptive ability of the sports equipment to the environment can be improved, thereby improving the intelligence of the sports equipment.
[0027] In some possible implementations, the motion device adjusts the perception range of the detection sensor based on a comparison result between the first distance information and the first depth information, including: when the depth indicated by the first distance information is less than the depth indicated by the first depth information, the motion device reduces the perception range of the detection sensor; or, when the depth indicated by the first distance information is greater than the depth indicated by the first depth information, the motion device increases the perception range of the detection sensor.
[0028] In the above technical solution, when the depth indicated by the first distance information is smaller than the depth indicated by the first depth information, it means that the obstacle perceived by the detection sensor is farther away, so the perception range of the detection sensor can be narrowed; when the depth indicated by the first depth information is smaller than the depth indicated by the first distance information, it means that the obstacle perceived by the detection sensor is closer, which means that the data obtained by the detection sensor is very important, and the perception range of the detection sensor needs to be increased as much as possible.
[0029] In combination with the first aspect, in certain implementations of the first aspect, the sensor information further indicates the density of the second obstacle, and the method further includes: dynamically adjusting the perception frame rate of the detection sensor according to the density of the second obstacle.
[0030] In the above technical solution, by adjusting the perception frame rate of the sensor in real time, the adaptability of the sports equipment to the environment can be improved, thereby improving the intelligence of the sports equipment.
[0031] In some possible implementations, the perception frame rate of the detection sensor is adjusted according to the density of the first obstacle, including: increasing the perception frame rate of the detection sensor when the density of the first obstacle is large; or decreasing the perception frame rate of the detection sensor when the density of the first obstacle is small.
[0032] In some possible implementations, the obstacle density is associated with the scene texture, where the lower the obstacle density, the lower the scene texture. In low-texture scenes, there is no need to use a lower perceived frame rate.
[0033] In the above technical solution, increasing the perception frame rate in scenes with rich obstacles can improve the perception accuracy of motion equipment; reducing the perception frame rate in scenes with low texture can reduce the power consumption of detection sensors and avoid power waste.
[0034] In combination with the first aspect, in certain implementations of the first aspect, the image indicates position information of the third obstacle in the first area, and the method further includes: determining the obstacle that is closer to the motion device among the second obstacle and the third obstacle located in the first plane as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the motion device.
[0035] Exemplarily, the third obstacle may be all obstacles contained in the image.
[0036] In some possible implementations, a depth estimation map is determined based on the image, where the depth estimation map indicates a depth distance corresponding to each pixel in the image. Further, a first obstacle is determined based on the depth estimation map.
[0037] For example, the pixel coordinates in the depth estimation map in the x-direction are x1 to xr, the pixel coordinates in the y-direction are y1 to yt, and z1 to zt×r are the values of each pixel in the depth estimation map. Where r and t are integers greater than 1, the pixel coordinates in the x-direction can be used to determine the lateral distance between the obstacle and the moving device, and the pixel coordinates in the y-direction can be used to determine the height of the obstacle.
[0038] In some possible implementations, the obstacle indicated by the minimum value of the pixels from y1 to yhi corresponding to xi is determined to be the first obstacle, and the minimum value is the depth distance between the first obstacle and the motion device. Where i is any value from 1 to r.
[0039] The plane represented by x=xi in the depth estimation graph can be understood as an example of the first plane.
[0040] In some possible implementations, the first preset height and the second preset height may be determined based on the depth estimation map. It is understandable that the first preset height and the second preset height may each be represented as a curve in the depth estimation map, where yyi is the pixel coordinate at the first preset height in the y direction corresponding to xi, and yhi is the pixel coordinate at the second preset height in the y direction corresponding to xi.
[0041] Furthermore, the first distance information can be determined based on the depth estimation map, the first preset height and the second preset height, including: determining the minimum value of the pixel points from yyi to yhi corresponding to xi as the minimum depth distance corresponding to xi, and the minimum depth distance corresponding to x1 to xr constitutes the first distance information.
[0042] In the above technical solution, the depth estimation map containing three-dimensional obstacle distance information is compressed into first distance information including only two dimensions (x direction and z direction), retaining information valuable for obstacle avoidance planning, which helps to reduce the amount of data that needs to be preprocessed during the obstacle avoidance planning process of the motion device, thereby improving the real-time obstacle avoidance performance of the motion device.
[0043] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining current motion parameters of the motion device; and controlling the motion device to avoid obstacles based on the first distance information, including: inputting the current motion parameters and the first distance information into a first neural network to obtain current environmental perception information; inputting the current environmental perception information and the destination into a second neural network to obtain a target angular velocity and a target linear velocity; and controlling the motion device to avoid obstacles based on the target angular velocity and the target linear velocity.
[0044] Exemplarily, the current motion parameters may include, but are not limited to: linear velocity, angular velocity, current position coordinates, and posture angle (or heading angle) of the motion device.
[0045] Exemplarily, the first neural network may include a convolutional neural network based on an attention mechanism; and the second neural network may include a recurrent neural network.
[0046] In some possible implementations, the second neural network further includes fully connected layers (FC), and the motion device inputs the current environmental perception information and the destination into the second neural network to obtain the target angular velocity and the target linear velocity, including: the motion device inputs the current environmental perception information and the historical environmental perception information into the recurrent neural network to obtain the environmental perception information; the motion device inputs the environmental perception information and the destination into the FC layer to obtain the target angular velocity and the target linear velocity.
[0047] In this technical solution, a convolutional neural network based on an attention mechanism acquires current environmental perception information. This adapts to the varying attentional characteristics of humans in different motion states, reducing redundancy and the synthesis of invalid information after multi-sensory information fusion. A recurrent neural network layer also acquires environmental perception information with a historical perspective. The FC layer uses current and historical information (such as environmental perception information) as well as future information (such as the destination) as perception inputs, further improving obstacle avoidance accuracy.
[0048] In combination with the first aspect, in certain implementations of the first aspect, controlling the motion device to avoid obstacles based on the first distance information includes: determining a fused depth distance based on the first distance information and the first depth information; and controlling the motion device to avoid obstacles based on the fused depth distance and the destination.
[0049] In some possible implementations, processing sensor information and images may introduce errors, resulting in the first distance information indicating a greater depth than the first depth information indicates for obstacles in certain areas. In the above technical solution, by fusing the first depth information with the first distance information, perception accuracy can be further improved, thereby enhancing the real-time performance and success rate of obstacle avoidance.
[0050] In a second aspect, a motion device is provided, including an image sensor for: acquiring an image of a first area, the image indicating position information of a first obstacle in the first area, the first area being the area where the motion device's destination is located; a detection sensor for: detecting a second obstacle located at a first preset height in the first area to acquire sensor information, the sensor information indicating first depth information between the second obstacle and the motion device, the second obstacle being an obstacle located at the first preset height in the first area; a processor for: determining first distance information of the first obstacle based on the image and the first depth information, the first obstacle being an obstacle located between the first preset height and the second preset height in the first area, the first distance information indicating a lateral distance between the first obstacle and the second obstacle in the image, and a depth distance between the first obstacle and the motion device; the processor for further controlling the motion device to avoid obstacles based on the first distance information during the motion device's movement toward the destination.
[0051] In combination with the second aspect, in certain implementations of the second aspect, the processor is used to: determine the lateral distance between the first obstacle and the second obstacle based on the pixel distance of the pixel points in the image; and determine the depth distance between the first obstacle and the motion device based on the grayscale value of the pixel points in the image.
[0052] In combination with the second aspect, in certain implementations of the second aspect, the position of the second obstacle in the first area includes the height of the second obstacle, and the processor is further used to: determine the depth distance corresponding to the grayscale value of a first pixel point in the image based on the first depth information, where the first pixel point is the pixel point in the image corresponding to the graphic of the second obstacle; determine the depth distance between the first obstacle and the motion device based on the grayscale value of the second pixel point in the image, at least one of the grayscale gradient value between the second pixel point and the first pixel point, and the depth distance corresponding to the grayscale value of the first pixel point, where the second pixel point is the pixel point in the image corresponding to the graphic of the first obstacle.
[0053] In combination with the second aspect, in certain implementations of the second aspect, the sensing range of the detection sensor is adjustable.
[0054] In combination with the second aspect, in certain implementations of the second aspect, the processor is configured to: dynamically adjust the sensing range of the detection sensor according to the depth distance indicated by the first distance information.
[0055] In combination with the second aspect, in certain implementations of the second aspect, the sensor information further indicates the density of the second obstacle, and the processor is further used to: adjust the perception frame rate of the detection sensor according to the density of the first obstacle.
[0056] In combination with the second aspect, in certain implementations of the second aspect, the image indicates position information of the third obstacle in the first area, and the processor is further used to: determine the obstacle that is closer to the motion device among the second obstacle and the third obstacle located in the first plane as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the motion device.
[0057] In combination with the second aspect, in certain implementations of the second aspect, the processor is used to: obtain current motion parameters of the motion device; input the current motion parameters and the first distance information into a first neural network to obtain current environmental perception information; input the current environmental perception information and the destination into a second neural network to obtain a target angular velocity and a target linear velocity; and control the motion device to avoid obstacles based on the target angular velocity and the target linear velocity.
[0058] In combination with the second aspect, in certain implementations of the second aspect, the processor is used to: determine a fused depth distance based on the first distance information and the first depth information; and control the motion device to avoid obstacles based on the fused depth distance and the destination.
[0059] In a third aspect, an integrated circuit is provided, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, so that the device performs the method in any possible implementation of the first aspect.
[0060] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in any possible implementation of the first aspect.
[0061] It should be noted that the above-mentioned computer program code may be stored in whole or in part on a first storage medium, wherein the first storage medium may be packaged together with the processor or separately from the processor.
[0062] In a fifth aspect, a computer-readable medium is provided, wherein the computer-readable medium stores instructions. When the instructions are executed by a processor, the processor implements the method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] FIG1 is a functional schematic block diagram of a sports device provided in an embodiment of the present application;
[0064] FIG2 is a schematic diagram of a system architecture required for implementing the motion control method provided in an embodiment of the present application;
[0065] FIG3 is a schematic flow chart of a motion control method provided in an embodiment of the present application;
[0066] FIG4 is a schematic diagram of a neural network model provided in an embodiment of the present application;
[0067] FIG5 is another schematic diagram of a neural network model provided in an embodiment of the present application;
[0068] FIG6 is a schematic diagram of a depth estimation map and minimum depth information provided by an embodiment of the present application;
[0069] FIG7 is another schematic diagram of the neural network model provided in an embodiment of the present application;
[0070] FIG8 is a schematic diagram of a comparison result of first depth information and minimum depth information provided by an embodiment of the present application;
[0071] FIG9 is a schematic diagram of the overall process of the motion control method provided in an embodiment of the present application;
[0072] FIG10 is another schematic flow chart of the motion control method provided in an embodiment of the present application;
[0073] FIG11 is a schematic block diagram of a motion control device provided in an embodiment of the present application;
[0074] FIG12 is a schematic block diagram of a motion control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is a kind of association relationship that describes associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In this application, "at least one" refers to one or more, and "more than one" refers to two or more. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0076] In the embodiments of this application, prefixes such as "first" and "second" are used only to distinguish different description objects and have no limiting effect on the position, order, priority, quantity, or content of the described objects. The use of prefixes such as ordinal numbers in the embodiments of this application to distinguish description objects does not constitute a limitation on the described objects. For a statement of the described objects, please refer to the description in the context of the claims or embodiments, and the use of such prefixes should not constitute an unnecessary limitation.
[0077] Since the embodiments of the present application involve the application of neural networks, for ease of understanding, the following first introduces relevant terms and concepts of neural networks that may be involved in the embodiments of the present application.
[0078] (1) Neural Network
[0079] A neural network can be composed of neural units, which can be represented by x s The output of the operation unit with the intercept 1 as input can be:
[0080] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s is x s The weight of the neural unit, b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer, and the activation function can be a sigmoid function. A neural network is a network formed by connecting multiple single neural units mentioned above, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.
[0081] (2) Deep Neural Networks
[0082] A deep neural network (DNN), also known as a multi-layer neural network, can be understood as a neural network with multiple hidden layers. Based on the location of the different layers, the neural network within a DNN can be divided into three categories: input layer, hidden layer, and output layer. Generally speaking, the first layer is the input layer, the last layer is the output layer, and the layers in between are all hidden layers. Each layer is fully connected, meaning that any neuron in layer i is connected to any neuron in layer i+1.
[0083] Although DNN looks complicated, the work of each layer is actually not complicated. In simple terms, it can be expressed as the following linear relationship: in, is the input vector, is the output vector, is the offset vector, W is the weight matrix (also called coefficient), and α() is the activation function. Each layer is just an input vector After such a simple operation, the output vector Since DNN has many layers, the coefficient W and the offset vector The number of these parameters is also relatively large. The definitions of these parameters in DNN are as follows: Take the coefficient W as an example: Assume that in a three-layer DNN, the linear coefficient from the 4th neuron in the second layer to the 2nd neuron in the third layer is defined as The superscript 3 represents the layer number of the coefficient W, while the subscripts correspond to the third layer index 2 of the output and the second layer index 4 of the input.
[0084] In summary, the coefficient from the kth neuron in the L-1th layer to the jth neuron in the Lth layer is defined as
[0085] It's important to note that the input layer has no W parameter. In deep neural networks, more hidden layers allow the network to better capture complex real-world situations. Theoretically, a model with more parameters has higher complexity and greater "capacity," meaning it can handle more complex learning tasks. Training a deep neural network is essentially the process of learning the weight matrix, with the ultimate goal of obtaining the weight matrices for all layers of a trained deep neural network (a weight matrix formed by the vectors W across many layers).
[0086] (3) Convolutional Neural Networks
[0087] A convolutional neural network (CNN) is a deep neural network with a convolutional architecture. It consists of a feature extractor consisting of convolutional layers and subsampling layers, which can be viewed as a filter. A convolutional layer is a layer of neurons that performs convolution processing on the input signal. In a convolutional layer of a CNN, a neuron can only connect to a subset of neurons in adjacent layers. A convolutional layer typically contains several feature planes, each of which can be composed of a rectangular arrangement of neurons. Neurons in the same feature plane share weights, which are referred to as convolution kernels. Shared weights can be understood as extracting image information in a position-independent manner. Convolution kernels can be initialized as matrices of random size, and during CNN training, they can learn to acquire reasonable weights. Furthermore, shared weights have the direct benefit of reducing the number of connections between layers of the CNN, thereby reducing the risk of overfitting.
[0088] (4) Recurrent neural networks (RNN) are used to process sequence data. In traditional neural network models, the layers are fully connected from the input layer to the hidden layer and then to the output layer, while the nodes within each layer are disconnected. Although this ordinary neural network solves many difficult problems, it is still powerless to solve many problems. For example, to predict the next word in a sentence, the previous word is generally needed because the previous and next words in a sentence are not independent. RNN is called a recurrent neural network because the current output of a sequence is also related to the previous output. The specific manifestation is that the network will remember the previous information and apply it to the calculation of the current output, that is, the nodes between the hidden layers are no longer disconnected but connected, and the input of the hidden layer includes not only the output of the input layer but also the output of the hidden layer at the previous moment. In theory, RNN can process sequence data of any length. The training of RNN is the same as the training of traditional CNN or DNN.
[0089] RNN aims to give machines the ability to remember things like humans. Therefore, the output of RNN needs to depend on the current input information and historical memory information.
[0090] The above is an introduction to the terms related to neural networks. The following will describe the technical solutions in the embodiments of this application in conjunction with the accompanying drawings.
[0091] As mentioned above, current obstacle avoidance algorithms suffer from insufficient perception information and poor real-time performance of obstacle avoidance decision-making and planning, which often leads to obstacle avoidance failures during the robot's obstacle avoidance process. Specifically, in the field of robot obstacle avoidance technology, the current problems mainly include the following two points:
[0092] First, there's a conflict between perception accuracy and real-time model inference. The perception and obstacle avoidance capabilities of two-dimensional (2D) radars have limited accuracy. For example, 2D radars can only detect obstacles at radar height. If an obstacle is higher or lower than the radar height, it can't be detected, potentially leading to a failed avoidance attempt and a dangerous collision. However, crude multi-sensor fusion only increases the computational complexity of the obstacle avoidance decision model, compromising the real-time performance of the model inference.
[0093] Second, the radar's fixed sensing range and frame rate lead to information redundancy: While increasing the radar's sensing range and frame rate improves the robot's perception accuracy, it also leads to issues such as increased information fusion and acquisition time. Currently, radar scans at a fixed, pre-set sensing range and frame rate, lacking adaptive adjustment. In scenes with many obstacles, scanning at a fixed sensing frame rate results in a low sensing frame rate, potentially preventing effective information from all obstacles. In scenes with fewer obstacles, scanning at a fixed sensing frame rate results in a high sensing frame rate, potentially wasting sensor power.
[0094] It's important to note that a radar's perception frame rate (or scanning speed) represents the number of revolutions the radar motor makes in one second, or the number of times it completes a full scan per second. Because radar sampling rates are fixed, higher frame rates result in lower angular resolution and finer object detail; lower frame rates result in greater angular resolution. A radar's perception range can be defined as its scanning range, such as its scanning angle.
[0095] In view of this, an embodiment of the present application provides a motion control method that can fuse and compress 2D radar information and image information to obtain the depth distance between obstacles within a preset height range and the motion device; and then control the movement of the motion device based on this depth distance to achieve obstacle avoidance. In addition, an embodiment of the present application also provides a motion control method that can adjust the perception range of the 2D radar based on the comparison between the above-mentioned depth distance and the 2D radar information; and adjust the perception frame rate of the 2D radar based on the 2D radar information. This improves the motion device's ability to adapt to the environment, reduces information redundancy, and improves the real-time performance of obstacle avoidance planning.
[0096] FIG1 shows a functional block diagram of a motion device 100 provided in an embodiment of the present application. The motion device 100 may include a perception system 120 and a computing platform 150, wherein the perception system 120 may include one or more sensors for sensing information about the environment surrounding the motion device 100. For example, the perception system 120 may include a detection sensor and an image sensor, wherein the detection sensor may include a 2D radar (such as a lidar), a photoelectric sensor, an ultrasonic sensor, and other detection sensors; the image sensor may include an RGB camera, a red green blue-depth (RGB-D) camera, a time of flight (TOF) camera, and other sensors whose images can be used to determine depth information (such as RGB images, grayscale images).
[0097] Some or all functions of the sports device 100 can be controlled by the computing platform 150. The computing platform 150 may include one or more processors, such as processors 151 to 15n (n is a positive integer). A processor is a circuit with the ability to process instructions. In one implementation, the processor may be a circuit with the ability to read and execute instructions, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationship of a hardware circuit. The logical relationship of the hardware circuit is fixed or reconfigurable. For example, the processor is a hardware circuit implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as a field programmable gate array (FPGA). In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc. In addition, the computing platform 150 can also include a memory for storing instructions. Some or all of the processors 151 to 15n can call the instructions in the memory and execute the instructions to achieve corresponding functions.
[0098] In the embodiment of the present application, the computing platform 150 can control the obstacle avoidance driving of the sports device based on the data collected by the detection sensor and the image sensor. In some possible implementations, the data collected by the detection sensor and the image sensor can also be stored in the memory of the computing platform 150.
[0099] FIG2 shows a schematic diagram of the system architecture provided by an embodiment of the present application. As shown in FIG2 , the system includes a perception module 201, a feature extraction module 202, an information fusion module 203, a sparse depth estimation module 204, a greedy depth compression module 205, a quality assessment module 206, a behavior attention module 207, and a temporal reinforcement learning module 208. The perception module 201 may include one or more sensors in the perception system 120 shown in FIG1 , which may include, for example, a detection sensor and an image sensor; the feature extraction module 202, the information fusion module 203, the sparse depth estimation module 204, the greedy depth compression module 205, the quality assessment module 206, the behavior attention module 207, and the temporal reinforcement learning module 208 may include one or more processors in the computing platform 150 shown in FIG1 .
[0100] Specifically, the feature extraction module 202 extracts features of the sensor information collected by the detection sensor in the perception module 201 and features of the image collected by the image sensor to form a high-dimensional representation tensor (or multi-dimensional array).
[0101] In some possible implementations, the image indicates the position of obstacle 1 in the area sensed by the image sensor, and the sensor information indicates first depth information between obstacle 2 at a first preset height and the motion device in the area sensed by the image sensor.
[0102] The feature extraction module 202 inputs the high-dimensional representation tensor into the information fusion module 203 for feature fusion to obtain a feature fusion matrix; the information fusion module 203 inputs the feature fusion matrix into the sparse depth estimation module 204 to obtain a depth estimation map.
[0103] It can be understood that the depth estimation map indicates the depth distance between the obstacle 1 included in the image and the moving device. The depth estimation map is represented by pixel coordinates in the x-direction and the y-direction, where the y-direction represents the height direction and the x-direction is perpendicular to the height direction and the depth direction (hereinafter referred to as the z-direction). In other words, the depth estimation map includes distance information in three dimensions: the x-direction, the y-direction, and the z-direction.
[0104] The sparse depth estimation module 204 inputs the depth estimation image into the greedy depth compression module 205 to obtain minimum depth information. This minimum depth information indicates the depth distance between a first obstacle and the moving device. The first obstacle includes the obstacle closest to the moving device per unit length along the x-direction among all obstacles between a first preset height and a second preset height. In other words, the minimum depth information includes distance information in both the x- and z-directions.
[0105] Furthermore, the greedy depth compression module 205 inputs the minimum depth information into the quality assessment module 206 and the behavior attention module 207 respectively.
[0106] Among them, the quality assessment module 206 obtains optimization information based on the minimum depth information and sensor information, and the optimization information can be used to adjust the perception range of the detection sensor; the behavioral attention module 207 obtains the current environment perception information based on the current motion parameters of the motion device (such as angular velocity, linear velocity and mileage, etc.) and the minimum depth information.
[0107] The behavioral attention module 207 inputs the current environmental perception information and the target position of the motion device into the sequential reinforcement learning module 208 to obtain the target motion parameters (such as linear velocity and angular velocity) of the motion device, so that the motion device can move based on the target motion parameters, thereby achieving the purpose of obstacle avoidance.
[0108] It should be understood that the above modules and devices are merely examples. In actual applications, these modules and devices may be added or deleted based on actual needs. In one example, the information fusion module 203 and the sparse depth estimation module 204 can be combined into a single module, i.e., the functions of both modules are implemented by a single module. In another example, the system may also not include the quality assessment module 206.
[0109] FIG3 shows a schematic flow chart of a control method provided by an embodiment of the present application. The method 300 can be applied to the sports device shown in FIG1 , or the method can be performed by the system shown in FIG2 . The steps or operations of the control method shown in FIG3 are merely examples. The embodiment of the present application can also perform other operations or variations of the operations in FIG3 , and it is possible that not all operations in FIG3 need to be performed. For example, the following description takes the method being performed by the computing platform of the sports device as an example. The method 300 may include:
[0110] S301: Input the image and sensor information into the feature extraction layer to obtain first feature information and second feature information respectively.
[0111] For example, the image may be acquired by an image sensor, and the sensor information may be acquired by a detection sensor. The image sensor and the detection sensor may be sensors in the perception system or perception module in the above-mentioned embodiment.
[0112] It should be noted that the image indicates the position of obstacle 1 within the area sensed by the image sensor, and the sensor information indicates first depth information between obstacle 2 at a first preset height within the area sensed by the image sensor and the moving device. The first preset height may include the first preset height in the above-described embodiment. Specifically, the first preset height may be the sensing height of the detection sensor. The first preset height may be less than or equal to the height of the moving device, or may be greater than the height of the moving device. This is not specifically limited in the present embodiment.
[0113] Exemplarily, the first feature information and the second feature information may be high-dimensional embedded feature information, for example, may include the multi-dimensional array in the above embodiment.
[0114] For example, the first feature information may include reference depth information, which includes the depth distance between obstacle 2 at a first preset height and the motion device in the area sensed by the image sensor. The second feature information may include pixel values; alternatively, the second feature information may include the three-dimensional coordinate parameters of obstacle 1; alternatively, the second feature information may include texture information, color information, etc.
[0115] In some possible implementations, taking the example of sensor information including data collected by a 2D lidar, the data collected by the 2D lidar can be a sparse depth map, which includes a logic code and a depth value, wherein the depth value represents the distance between the detected object (such as an obstacle) and the motion device, and the depth value between adjacent laser points is unknown. The logic code is used to indicate whether there is a valid depth value in the unknown depth value area. In the embodiment of the present application, the feature extraction layer is used to extract the depth value from the sparse depth map to obtain reference depth information.
[0116] Exemplarily, the three-dimensional coordinate parameters of obstacle 1 include the x-coordinate, y-coordinate, and z-coordinate of obstacle 1 in the coordinate system of the image sensor. The coordinate system of the image sensor refers to a three-dimensional rectangular coordinate system established with the focal center of the image sensor as the origin and the optical axis as the z-axis.
[0117] In some possible implementations, the three-dimensional coordinate parameters of the obstacle 1 may be determined based on the two-dimensional coordinate parameters of the obstacle 1 on the image and the intrinsic parameter matrix of the image sensor.
[0118] Specifically, the relationship between the three-dimensional coordinate parameters and the two-dimensional coordinate parameters is shown in the following formula:
[0119] in, is the intrinsic parameter matrix of the image sensor; x represents the horizontal coordinate of obstacle 1 in the image sensor's coordinate system, y represents the vertical coordinate of obstacle 1 in the image sensor's coordinate system, and z represents the depth coordinate of obstacle 1 in the image sensor's coordinate system. u represents the horizontal coordinate of the pixel of obstacle 1 in the pixel coordinate system, and v represents the height coordinate of the pixel of obstacle 1 in the pixel coordinate system. f represents the focal length of the image sensor. fx represents the parameter of the focal length of the image sensor after scaling along the u-axis in the pixel coordinate system, fy represents the parameter of the focal length of the image sensor after scaling along the v-axis in the pixel coordinate system, cx represents the translation of the origin of the image sensor's coordinate system along the u-axis, and cy represents the translation of the origin of the image sensor's coordinate system along the v-axis.
[0120] In some possible implementations, the feature extraction layer may extract the second feature information based on the above formula.
[0121] The feature extraction layer can be understood as an example of the feature extraction module 202. The feature extraction layer can be a pre-trained convolutional neural network, such as VGG16, VGG19, ResNet50, etc.
[0122] S302: Input the first feature information and the second feature information into a channel fusion layer to obtain feature fusion information.
[0123] The channel fusion layer can be understood as an example of the above-mentioned information fusion module 203.
[0124] For example, a schematic diagram of the channel fusion layer is shown in Figure 4, which includes a convolution layer, a global pooling layer, and an activation function layer. Specifically, the output of the first feature information after passing through the convolution layer, the global pooling layer, and the activation function layer is cross-multiplied element-by-element with the output of the second feature information after passing through the convolution layer, the global pooling layer, and the activation function layer. The information obtained from these cross-products is then combined at the channel level and output to obtain feature fusion information.
[0125] S303: Input the feature fusion information into a sparse depth estimation module to obtain a depth estimation map.
[0126] Exemplarily, the sparse depth estimation module may include the sparse depth estimation module 204 in the above embodiment. The sparse depth estimation module may include a dilated convolution layer and a skip upsampling layer. A schematic diagram of the skip upsampling layer is shown in FIG5 , where the skip information is skip connection information and may include part or all of the feature fusion information. By inputting the feature fusion information into the sparse depth estimation module, a depth estimation map as shown in FIG6 (a) may be obtained.
[0127] S304: Input the depth estimation image into the greedy depth compression module to obtain minimum depth information.
[0128] Exemplarily, the greedy deep compression module may include the greedy deep compression module 205 in the above embodiment.
[0129] For example, the pixel coordinates in the x direction of the depth estimation image shown in (a) of FIG6 are from x1 to x r , the pixel coordinates in the y direction are y1 to y t , z1~z t×r is the value of each pixel in the depth estimation image, where r and t are integers greater than 1.
[0130] In some possible implementations, the greedy depth compression module compresses the depth estimation image according to a first preset height and a second preset height to obtain minimum depth information, wherein the second preset height can be lower than the height of the sports device or higher than the first preset height.
[0131] In one example, the greedy depth compression module only retains the portion between a first preset height and a second preset height in the depth estimation image, and determines the minimum depth information according to the value of each pixel in the portion between the first preset height and the second preset height.
[0132] In another example, the minimum depth information is shown in (b) of FIG6 , and the greedy depth compression module can compress the depth estimation image to obtain the minimum depth information by the following formula: F[x i ]=min(D[x i ,y yi :y hi ]),
[0133] Among them, D represents the depth estimation map, F represents the minimum depth information, and x i Represents x=x in the x direction in the depth estimation image i The corresponding pixel coordinate, y yi :y hi Indicates the depth estimation image in the y direction from y=y yi to y=y hi The corresponding pixel coordinates, i is any value from 1 to r, y yi is x i The pixel coordinates at the first preset height in the corresponding y direction, y hi is x i The pixel coordinates at the corresponding second preset height in the y direction.
[0134] It is understandable that F[x i ] represents x=x i The depth value between the obstacle closest to the motion device and the motion device is between the first preset height and the second preset height.
[0135] S305 , inputting the minimum depth information and the current motion parameters of the motion device into a behavioral attention module to obtain current environment perception information.
[0136] Exemplarily, the current motion parameter of the motion device may include one or more of the current angular velocity, linear velocity, position, posture angle, and heading angle of the motion device.
[0137] Exemplarily, the behavior attention module may include the behavior attention module 207 in the above embodiment. The schematic diagram of the behavior attention module is shown in FIG7 , where the current action parameters of the motion device are input into a one-dimensional convolution layer for vector normalization, that is, the motion parameters with different unit meanings are weighted by the convolution layer so that the differences between the motion parameters are reduced. The one-dimensional output information of each motion parameter after vector normalization is merged to form a fusion matrix; the fusion matrix and the position coding matrix are added element by element and then passed through a two-dimensional convolution layer to obtain an attention matrix; wherein, the position coding matrix is a matrix of the same size as the fusion matrix, and the purpose of the matrix is to give the fusion matrix position information. Exemplarily, the position coding matrix can be assigned values starting from row 0 and column 0 in sequence according to a certain rule (such as 0, 1, 2, 3...), or it can also be encoded by a position coding tool. The minimum depth information is output through the two-dimensional convolution layer and the attention matrix is element-wise multiplied to obtain the current environmental perception information.
[0138] In some possible implementations, the greedy depth compression module may further fuse the minimum depth information and the sensor information to obtain fused minimum depth information, and then input the fused minimum depth information and the current motion parameters of the motion device into the behavioral attention module.
[0139] S306 , inputting the current environment perception information and the target position of the motion device into a temporal reinforcement learning module to obtain target motion parameters for controlling the motion of the motion device.
[0140] Exemplarily, the temporal reinforcement learning module may include the temporal reinforcement learning module 208 in the above embodiment. The temporal reinforcement learning module may include a recurrent neural network, such as a long short-term memory (LSTM) neural network. The current environmental perception information and the historical environmental perception information are sequentially input into the recurrent neural network to obtain environmental perception information including the historical importance selection and the current environmental perception information. Furthermore, the environmental perception information and the target position are input into a fully connected layer, so that the fully connected layer can output target motion parameters for controlling the motion of the motion device.
[0141] S305': adjusting the sensing range of the detection sensor according to the minimum depth information.
[0142] For example, the minimum depth information may be input into the quality assessment module 206 in the above embodiment to obtain optimization information. The optimization information may indicate the degree of matching between the minimum depth information and the first depth information.
[0143] In some possible implementations, when the degree of overlap between the minimum depth information curve and the first depth information curve is greater than or equal to a preset threshold, it is determined that the minimum depth information and the first depth information have a high degree of match, and there is no need to adjust the detection sensor's perception range. When the degree of overlap between the minimum depth information curve and the first depth information curve is less than the preset threshold, the detection sensor's perception range is adjusted based on the comparison result between the minimum depth information and the first depth information. For example, the preset threshold may be 95%, 90%, or other values.
[0144] Exemplarily, the comparison result between the minimum depth information and the first depth information is shown in FIG8 .
[0145] As shown in (a) of FIG8 , when the first depth information is greater than the minimum depth information, that is, for any x=x corresponding to the curve in the figure, j , there is z dj >z mj , it means that the obstacle perceived by the detection sensor is farther away, so the sensing range of the detection sensor can be reduced. dj is x j The depth distance of the obstacle perceived by the corresponding detection sensor, z dj is x j The corresponding depth distance of the obstacle is obtained by fusing sensor information and images.
[0146] As shown in FIG8(b), when the first depth information is less than the minimum depth information, that is, for any x=x corresponding to the curve in the figure, j , there is z dj <z mj , it means that the obstacle perceived by the detection sensor is closer, which means that the data obtained by the detection sensor is very important. It is necessary to increase the perception range of the detection sensor as much as possible to obtain richer data on the depth distance between the obstacle and the motion device.
[0147] As shown in FIG8(c), when a portion of the first depth information curve is less than the minimum depth information, that is, for the portion x corresponding to the curve in the figure, x=x k , z dk <z mk The sensing range of the detection sensor can be adjusted so that at least the sensing range can sense at least a portion of the first depth information that is smaller than the minimum depth information.
[0148] In some possible implementations, the optimization information may also indicate the density of obstacles within the area sensed by the image sensor, or the density of obstacles sensed by the detection sensor, so that the motion device can adjust the detection sensor's perception frame rate based on the density of obstacles. Specifically, when there are many obstacles, the detection sensor may be adjusted to perceive at a faster frame rate; when there are fewer obstacles, the detection sensor may be adjusted to perceive at a medium frame rate; and when there are almost no obstacles, the detection sensor may be adjusted to perceive at a slower frame rate.
[0149] In a specific implementation process, the above S305' may not be executed.
[0150] The entire process from S301 to S306 is shown in FIG9 .
[0151] The motion control method provided in the embodiment of the present application can improve the perception accuracy of the motion device for obstacles, as well as the real-time performance of the motion device in avoiding obstacles. By fusing the image and sensor information, a wealth of information about the location of obstacles can be obtained, thereby improving the perception accuracy of the motion device; by compressing the rich information about the location of obstacles and eliminating redundant information, the core information that is helpful for the motion device in obstacle avoidance planning, namely the minimum depth information, can be obtained, thereby improving the real-time performance of the motion device in making obstacle avoidance decisions. In addition, the motion control method provided in the embodiment of the present application can also adjust the sensor's perception range and perception frame rate in real time, which can improve the motion device's ability to adapt to the environment, thereby improving the intelligence of the motion device, and helping to save the energy consumption of the motion device.
[0152] FIG10 is a schematic flow chart of a control method provided by an embodiment of the present application. The method 1000 can be applied to the sports equipment shown in FIG1 , or the method can be executed by the system shown in FIG2 . For example, the following description uses the method executed by the sports equipment as an example. The method 1000 may include:
[0153] S1010: Acquire an image of a first area, where the image indicates location information of a first obstacle in the first area, where the first area is a destination area of the sports device.
[0154] Exemplarily, the image may include the image in the above embodiment; the first area may include the area sensed by the image sensor in the above embodiment.
[0155] Exemplarily, the position of the first obstacle in the first area may be determined according to two-dimensional coordinate parameters of the first obstacle on the image.
[0156] S1020: Acquire sensor information, where the sensor information indicates first depth information between a second obstacle and the sports device, where the second obstacle is an obstacle located at a first preset height in the first area.
[0157] Exemplarily, the sensor information may include the sensor information in the above-mentioned embodiment.
[0158] S1030: Determine first distance information of the first obstacle based on the image and the first depth information, where the first distance information indicates a lateral distance between the first obstacle and the second obstacle in the image, and a depth distance between the first obstacle and the motion device.
[0159] For example, the first distance information may include the minimum depth information in the above embodiment. The specific method for the motion device to determine the first distance information can refer to the description of S301 to S304 in the above method 300, which will not be repeated here.
[0160] S1040: When the moving device moves toward the destination, control the moving device to avoid obstacles according to the first distance information.
[0161] For example, the specific method of controlling the movement of the motion device according to the first distance information may be described in S305 and S306 of the above method 300, which will not be repeated here.
[0162] The motion control method provided in the embodiments of the present application can obtain richer obstacle information based on sensor information and images, improving the accuracy of the motion device's perception of obstacles. Furthermore, based on this rich obstacle information, it can extract core information (such as first distance information) that is helpful for the motion device's obstacle avoidance planning. This core information allows the motion device to perform obstacle avoidance planning based on this core information, thereby improving the real-time performance of obstacle avoidance. In particular, for dynamic scenarios with large obstacle fluctuations, this method helps the motion device quickly and accurately plan obstacle avoidance paths.
[0163] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0164] In one example, when method 1000 is combined with S301 to S304 in method 300, S301 to S304 can be summarized as: determining the lateral distance between the first obstacle and the second obstacle based on the pixel distance of the pixel points in the image; determining the depth distance between the first obstacle and the moving device based on the grayscale value of the pixel points in the image.
[0165] In which, determining the depth distance between the first obstacle and the motion device based on the grayscale value of the pixel in the image includes: determining the depth distance corresponding to the grayscale value of the first pixel in the image based on the first depth information, where the first pixel is the pixel in the image corresponding to the graphic of the second obstacle; determining the depth distance between the first obstacle and the motion device based on the grayscale value of the second pixel in the image, at least one of the grayscale gradient value between the second pixel and the first pixel, and the depth distance corresponding to the grayscale value of the first pixel, where the second pixel is the pixel in the image corresponding to the graphic of the first obstacle.
[0166] In another example, when method 1000 is combined with S304 in method 300, S304 can be summarized as: the image indicates the position information of the third obstacle in the first area, and the method also includes: determining the obstacle that is closer to the moving device among the second obstacle and the third obstacle located in the first plane as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the moving device.
[0167] The depth direction of the sports device may be the z direction shown in (b) of FIG6 .
[0168] In another example, when method 1000 is combined with S305-S306 in method 300, S305-S306 can be summarized as: obtaining current motion parameters of the motion device; controlling the motion device to avoid obstacles based on the first distance information, including: inputting the current motion parameters and the first distance information into the first neural network to obtain current environmental perception information; inputting the current environmental perception information and the destination into the second neural network to obtain the target angular velocity and target linear velocity; controlling the motion device to avoid obstacles based on the target angular velocity and target linear velocity.
[0169] The first neural network may include a behavioral attention module, the second neural network may include a temporal reinforcement learning module, and the destination may include the target location in the above embodiment.
[0170] Alternatively, S305 - S306 may be summarized as follows: the motion device determines a fused depth distance according to the first distance information and the first depth information; and the motion device controls the motion device to avoid obstacles according to the fused depth distance and the destination.
[0171] The fused depth distance may include the fused minimum depth information in method 300 .
[0172] The method provided in the embodiments of the present application is described in detail above with reference to Figures 1 to 10 . The apparatus provided in the embodiments of the present application will be described in detail below with reference to Figures 11 and 12 . It should be understood that the description of the apparatus embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, reference can be made to the method embodiment above, and for the sake of brevity, no further description will be given here.
[0173] FIG11 shows a schematic block diagram of a motion control device 2000 provided in an embodiment of the present application. The device 2000 includes an acquisition unit 2010 and a processing unit 2020 .
[0174] The apparatus 2000 may include units for executing the methods in Figures 3 and 10. Furthermore, each unit in the apparatus 2000 is for implementing the corresponding process of the method embodiments in Figures 3 and 10.
[0175] When the device 2000 is used to execute the method 1000 in FIG. 10 , the acquisition unit 2010 may be used to execute S1010 and S1020 in the method 1000 , and the processing unit 2020 may be used to execute S1030 and S1040 in the method 1000 .
[0176] Specifically, the acquisition unit 2010 is used to: acquire an image of a first area, which indicates position information of a first obstacle in the first area, where the first area is the area where the destination of the moving device is located; acquire sensor information, which indicates first depth information between a second obstacle and the moving device, where the second obstacle is an obstacle located at a first preset height in the first area; the processing unit 2020 is used to: determine first distance information of the first obstacle based on the image and the first depth information, where the first obstacle is an obstacle located between the first preset height and the second preset height in the first area, and the first distance information indicates the lateral distance between the first obstacle and the second obstacle in the image, as well as the depth distance between the first obstacle and the moving device; and control the moving device to avoid obstacles based on the first distance information during the movement of the moving device toward the destination.
[0177] Optionally, the processing unit 2020 is used to: determine the lateral distance between the first obstacle and the second obstacle based on the pixel distance of the pixel points in the image; determine the depth distance between the first obstacle and the motion device based on the grayscale value of the pixel points in the image.
[0178] Optionally, the processing unit 2020 is used to: determine the depth distance corresponding to the grayscale value of a first pixel in the image based on the first depth information, where the first pixel is a pixel in the image corresponding to the graphic of the second obstacle; determine the depth distance between the first obstacle and the motion device based on the grayscale value of a second pixel in the image, at least one of a grayscale gradient value between the second pixel and the first pixel, and the depth distance corresponding to the grayscale value of the first pixel, where the second pixel is a pixel in the image corresponding to the graphic of the first obstacle
[0179] Optionally, the acquisition unit 2010 detects the second obstacle through a detection sensor of the motion device, and acquires the sensor information based on data collected by the detection sensor, wherein the sensing range of the detection sensor is adjustable.
[0180] Optionally, the processing unit 2020 is configured to dynamically adjust the sensing range of the detection sensor according to the depth distance indicated by the first distance information.
[0181] Optionally, the processing unit 2020 is configured to: when the second depth distance is smaller than the first depth information, reduce the sensing range of the detection sensor; or, when the second depth distance is larger than the first depth information, increase the sensing range of the detection sensor.
[0182] Optionally, the sensor information further indicates the density of the second obstacle, and the processing unit 2020 is configured to dynamically adjust the perception frame rate of the detection sensor according to the density of the second obstacle.
[0183] Optionally, the image indicates position information of a third obstacle in the first area, and the processing unit 2020 determines the obstacle located in the first plane, which is closer to the motion device, between the second obstacle and the third obstacle, as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the motion device.
[0184] Optionally, the acquisition unit 2010 is also used to: obtain current motion parameters of the motion device; the processing unit 2020 is used to: input the current motion parameters and the first distance information into a first neural network to obtain current environmental perception information; input the current environmental perception information and the destination into a second neural network to obtain a target angular velocity and a target linear velocity; and control the motion device to avoid obstacles based on the target angular velocity and the target linear velocity.
[0185] Optionally, the processing unit 2020 is configured to: determine a fused depth distance according to the first distance information and the first depth information; and control the motion device to avoid obstacles according to the fused depth distance and the destination.
[0186] Exemplarily, the acquisition unit 2010 and the processing unit 2020 may be provided in the sports device 100 shown in FIG1 , more specifically, the acquisition unit 2010 and the processing unit 2020 may be provided in the computing platform 150 shown in FIG1 . Exemplarily, the acquisition unit 2010 and the processing unit 2020 may also be provided in the system shown in FIG2 , more specifically, the acquisition unit 2010 may include a perception module 201 , and the processing unit 2020 may include one or more of a feature extraction module 202 , an information fusion module 203 , a sparse depth estimation module 204 , a greedy depth compression module 205 , a quality assessment module 206 , a behavioral attention module 207 , and a temporal reinforcement learning module 208 .
[0187] It should be understood that the division of the various units in the above device is merely a division of logical functions. In actual implementation, they may be fully or partially integrated into a single physical entity, or they may be physically separated. Furthermore, the units in the device may be implemented in the form of a processor calling software; for example, the device includes a processor connected to a memory storing instructions, and the processor calls the instructions stored in the memory to implement any of the above methods or the functions of the various units in the device. The processor may be a general-purpose processor, such as a CPU or a microprocessor, and the memory may be a memory within the device or external to the device. Alternatively, the units in the device may be implemented in the form of hardware circuits, and the functions of some or all of the units may be implemented through the design of the hardware circuits. The hardware circuits may be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units may be implemented through the design of the logical relationships between the components within the circuits. In another implementation, the hardware circuit may be implemented using a PLD, such as an FPGA, which may include a large number of logic gate circuits. The connections between the logic gate circuits are configured using a configuration file to implement the functions of some or all of the above units. All units of the above apparatus may be implemented entirely in the form of software called by a processor, or entirely in the form of hardware circuits, or partially in the form of software called by a processor and the rest in the form of hardware circuits.
[0188] Each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0189] In addition, the various units in the above devices can be fully or partially integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the various units of the device. The type of the at least one processor can be different, for example, including a CPU and FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0190] In a specific implementation, the operations performed by the acquisition unit 2010 and the processing unit 2020 may be performed by a single processor, or by different processors. In a specific implementation, the one or more processors may be processors provided in the computing platform 150 shown in FIG1 ; or the apparatus 2000 may be a chip provided in the sports device 100 .
[0191] FIG12 is a schematic block diagram of a motion control device provided in an embodiment of the present application. The motion control device 2100 shown in FIG12 may include: a processor 2110, a transceiver 2120, and a memory 2130. The processor 2110, the transceiver 2120, and the memory 2130 are connected via an internal connection path, the memory 2130 is used to store instructions, and the processor 2110 is used to execute the instructions stored in the memory 2130 to implement the control methods in the above-mentioned embodiments. Optionally, the memory 2130 can be coupled to the processor 2110 via an interface or integrated with the processor 2110.
[0192] It should be noted that the transceiver 2120 may include but is not limited to a transceiver device such as an input / output interface to implement communication between the device 2100 and other devices or a communication network.
[0193] The memory 2130 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
[0194] The transceiver 2120 uses a transceiver device such as but not limited to a transceiver to implement communication between the device 2100 and other devices or communication networks to receive / send data / information used to implement the control methods in the above embodiments.
[0195] In a specific implementation process, the device 2100 may be provided in the computing platform 150 shown in FIG. 1 , or may be provided in the system shown in FIG. 2 .
[0196] An embodiment of the present application further provides a sports device, which includes the above-mentioned device 2000; or, the sports device includes the above-mentioned device 2100, as well as a detection sensor and an image sensor.
[0197] An embodiment of the present application further provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer implements the methods in the above embodiments of the present application.
[0198] An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer implements the methods in the above embodiments of the present application.
[0199] An embodiment of the present application also provides a chip, including a circuit, for executing the methods in the above embodiments of the present application.
[0200] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or a power-on erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0201] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0202] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0203] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0204] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0205] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A motion control method, characterized in that: include: Acquire an image of a first area, wherein the image indicates location information of a first obstacle in the first area, and the first area is an area where a destination of the sports device is located; Acquire sensor information, where the sensor information indicates first depth information between a second obstacle and the sports device, where the second obstacle is an obstacle located at a first preset height in the first area; Determine, according to the image and the first depth information, first distance information of the first obstacle, where the first obstacle is an obstacle located between the first preset height and a second preset height in the first area, and the first distance information indicates a lateral distance between the first obstacle and the second obstacle in the image, and a depth distance between the first obstacle and the sports device; When the moving device moves toward the destination, the moving device is controlled to avoid obstacles according to the first distance information.
2. The method according to claim 1, characterized in that The determining, according to the image and the first depth information, first distance information of the first obstacle includes: determining a lateral distance between the first obstacle and the second obstacle according to a pixel distance between pixel points in the image; The depth distance between the first obstacle and the motion device is determined according to the grayscale value of the pixel in the image.
3. The method according to claim 2, characterized in that The determining the depth distance between the first obstacle and the motion device according to the grayscale value of the pixel point in the image includes: Determine, according to the first depth information, a depth distance corresponding to a grayscale value of a first pixel point in the image, where the first pixel point is a pixel point in the image corresponding to a graphic of the second obstacle; The depth distance between the first obstacle and the motion device is determined based on the grayscale value of a second pixel in the image, at least one of the grayscale gradient values between the second pixel and the first pixel, and the depth distance corresponding to the grayscale value of the first pixel, where the second pixel is a pixel in the image corresponding to the graphic of the first obstacle.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The second obstacle is detected by a detection sensor of the motion device, and the sensor information is acquired according to data collected by the detection sensor, wherein the sensing range of the detection sensor is adjustable.
5. The method according to claim 4, characterized in that The method further comprises: The sensing range of the detection sensor is dynamically adjusted according to the depth distance indicated by the first distance information.
6. The method according to claim 4 or 5, characterized in that: The sensor information further indicates a density of the second obstacle, and the method further includes: The sensing frame rate of the detection sensor is dynamically adjusted according to the density of the second obstacle.
7. The method according to any one of claims 1 to 6, characterized in that The image indicates location information of a third obstacle in the first area, and the method further includes: The obstacle closer to the sports equipment between the second obstacle and the third obstacle located in a first plane is determined as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the sports equipment.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Get the current motion parameters of the motion device; The controlling the motion device to avoid obstacles according to the first distance information includes: Inputting the current motion parameter and the first distance information into a first neural network to obtain current environment perception information; Inputting the current environment perception information and the destination into a second neural network to obtain a target angular velocity and a target linear velocity; The motion device is controlled to avoid obstacles according to the target angular velocity and the target linear velocity.
9. The method according to any one of claims 1 to 8, characterized in that The controlling the motion device to avoid obstacles according to the first distance information includes: Determine a fused depth distance according to the first distance information and the first depth information; The motion device is controlled to avoid obstacles according to the fusion depth distance and the destination.
10. A sports equipment, characterized in that: include: The image sensor is used to obtain an image of a first area, wherein the image indicates position information of a first obstacle in the first area. information, the first area is the area where the destination of the sports equipment is located; A detection sensor, used to: detect a second obstacle located at a first preset height in the first area to obtain sensor information, wherein the sensor information indicates first depth information between the second obstacle and the motion device, and the second obstacle is an obstacle located at a first preset height in the first area; The processor is used to: determine first distance information of the first obstacle based on the image and the first depth information, the first obstacle being an obstacle located between the first preset height and the second preset height in the first area, the first distance information indicating the lateral distance between the first obstacle and the second obstacle in the image, and the depth distance between the first obstacle and the moving device; the processor is also used to control the moving device to avoid obstacles based on the first distance information during the movement of the moving device toward the destination.
11. The sports equipment according to claim 10, characterized in that The processor is used to: determining a lateral distance between the first obstacle and the second obstacle according to a pixel distance between pixel points in the image; The depth distance between the first obstacle and the motion device is determined according to the grayscale value of the pixel in the image.
12. The exercise equipment according to claim 11, characterized in that The position of the second obstacle in the first area includes a height of the second obstacle, and the processor is further configured to: Determine, according to the first depth information, a depth distance corresponding to a grayscale value of a first pixel point in the image, where the first pixel point is a pixel point in the image corresponding to a graphic of the second obstacle; The depth distance between the first obstacle and the motion device is determined based on the grayscale value of a second pixel in the image, at least one of the grayscale gradient values between the second pixel and the first pixel, and the depth distance corresponding to the grayscale value of the first pixel, where the second pixel is a pixel in the image corresponding to the graphic of the first obstacle.
13. The sports equipment according to any one of claims 10 to 12, characterized in that The sensing range of the detection sensor is adjustable.
14. The exercise equipment according to claim 13, characterized in that The processor is used to: The sensing range of the detection sensor is dynamically adjusted according to the depth distance indicated by the first distance information.
15. The sports equipment according to claim 13 or 14, characterized in that The sensor information further indicates a density of the second obstacle, and the processor is further configured to: According to the density of the first obstacle, the sensing frame rate of the detection sensor is adjusted.
16. The sports equipment according to any one of claims 10 to 15, characterized in that The image indicates location information of a third obstacle in the first area, and the processor is further configured to: The obstacle closer to the sports equipment between the second obstacle and the third obstacle located in a first plane is determined as the first obstacle, wherein the first plane is a plane parallel to the height direction and the depth direction of the sports equipment.
17. The sports equipment according to any one of claims 10 to 16, characterized in that The processor is further configured to: Get the current motion parameters of the motion device; Inputting the current motion parameter and the first distance information into a first neural network to obtain current environment perception information; Inputting the current environment perception information and the destination into a second neural network to obtain a target angular velocity and a target linear velocity; The motion device is controlled to avoid obstacles according to the target angular velocity and the target linear velocity.
18. The sports equipment according to any one of claims 10 to 17, characterized in that The processor is used to: Determine a fused depth distance according to the first distance information and the first depth information; The motion device is controlled to avoid obstacles according to the fusion depth distance and the destination.
19. An integrated circuit, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program stored in the memory, so that the apparatus performs the method according to any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that: Instructions are stored thereon, and when the instructions are executed by a processor, the processor implements the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Motion control method and motion equipment
CN118707939A
Indoor robot obstacle avoidance method and device
CN110502019A
Robot advancing path planning method and device and storage medium
CN112363494A
Obstacle detection method based on millimeter wave radar and camera information fusion
CN113156421A
Multi-sensor fusion obstacle avoidance system for industrial inspection robot
CN113485359A
