Height map construction method and system for robot and storage medium

By constructing a motion distortion removal model and a point cloud filtering model, motion distortion and environment-independent point clouds in the robot's height map are removed, which solves the problem of low map accuracy and achieves efficient height map construction and accurate navigation effects.

WO2024174440A1PCT designated stage expired Publication Date: 2024-08-29HANGZHOU YUSHU TECHNOLOGY CO LTD

Patent Information

Application Number
PCT/CN2023/103707
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-24
Filing Date
2023-06-29
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

When constructing a robot height map, it is difficult to effectively remove motion distortion and environment-independent point clouds using existing technology, resulting in low map accuracy and affecting the robot navigation effect.

Method used

By constructing a motion distortion removal model and a point cloud filtering model, using the body odometer pose data for pose transformation and point cloud preprocessing, motion distortion and environment-independent point clouds are removed, and a height map for robot motion planning is constructed. .

Benefits of technology

It improves the accuracy and calculation efficiency of height maps, realizes real-time and efficient map construction on embedded platforms, and supports accurate robot navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023103707_29082024_PF_FP_ABST
    Figure CN2023103707_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A height map construction method and system for a robot and a storage medium. The method comprises: acquiring original measurement point data of a map planning area; performing pose transformation on the original measurement point data to obtain a current frame point cloud after removing motion distortion; processing the current frame point cloud to remove points unrelated to environment information in the current frame point cloud to obtain a pre-processed point cloud; and using the processed point cloud and body odometry pose data of a legged robot to construct a height map for legged robot motion planning. The method can effectively improve the precision of a height map.
Need to check novelty before this filing date? Find Prior Art

Description

A method, system and storage medium for constructing a height map for a robot Technical Field

[0001] The present invention relates to a method, system and storage medium for constructing a height map for a robot, and belongs to the technical field of height map construction. Background Art

[0002] For legged robots to achieve precise path planning and motion control within their operating environment, they need to use sensor data to build a map of the environment. In complex environments, an accurate map enables legged robots to maneuver safely and efficiently while avoiding obstacles. By utilizing sensors such as lidar and depth cameras, the robot can measure the terrain around it and then use relevant mapping algorithms to create a complete map of the environment.

[0003] The current mainstream environmental mapping method generally builds a global map in the world coordinate system, which requires the use of an accurate global positioning system for positioning, such as laser SLAM and visual SLAM algorithms. However, these positioning methods generally have specific requirements for the environment, otherwise they are prone to failure. For example, the laser SLAM algorithm requires sufficient structural features in the environment to enable effective constraint matching between two frames of laser point clouds; visual SLAM requires sufficient environmental texture features that can be collected in the camera image, and the image cannot be overexposed or blurred due to motion. In addition, these mapping methods usually have very high computational overhead and memory usage, making it difficult to complete real-time calculations in the embedded computers commonly used in legged robots, and the map format they establish cannot generally be directly used for robot motion planning.

[0004] To address the shortcomings of the aforementioned global mapping methods, researchers at ETH Zurich in Switzerland proposed a method called ElevationMapping for creating local elevation maps, using a legged robot as the map center. This method uses only the legged robot's kinematic odometry for positioning and uses sensor measurements to update the elevation map, achieving good mapping results. However, this method still has high computational overhead and memory usage. Furthermore, when the point cloud acquired by the legged robot's sensors is sparse, the map created by this method is also very sparse, making it difficult for the legged robot to plan its foothold.

[0005] Furthermore, a Chinese patent (publication number CN111596665A) discloses a method for constructing a dense height map, belonging to the technical field of dense height map construction. Specifically, this method uses a Gaussian distribution model to estimate lidar measurements and maps them to the corresponding grid of a local map to perform multi-frame data fusion. During this process, the map grid covariance is updated based on the robot's pose information, the local map is moved accordingly, and dynamic obstacles are removed to form a complete local dense map.

[0006] Because the timestamp of each point captured by the sensor is different, the sensor coordinate system at that time also has a different pose in the world coordinate system. Therefore, the original point cloud frame contains distortion caused by sensor motion, known as motion distortion. However, the above solution does not address motion distortion. If motion distortion is not removed, the accuracy of the height map will be affected, making it impossible to accurately navigate the robot, which is not conducive to popularization.

[0007] Furthermore, the above solution does not disclose how to deal with measurement points that are irrelevant to environmental information. If the points that are irrelevant to environmental information are not removed, the accuracy of the height map will also be affected.

[0008] The information disclosed in this Background Art is only for understanding the background of the present inventive concept and therefore it may include information that does not constitute prior art.

[0009] Summary of the Invention

[0010] In response to the above problem or one of the above problems, an object of the present invention is to provide a method for constructing a motion distortion removal model, a point cloud filtering model, and a height map model, transforming the original measurement point data into a posture, and obtaining a current frame point cloud after removing the motion distortion, and then processing the current frame point cloud to remove points irrelevant to environmental information to obtain a preprocessed point cloud; and then using the processed point cloud and the body odometer posture data of the legged robot to construct a height map for the motion planning of the legged robot. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can thus accurately navigate the robot. A method for constructing a height map for the robot.

[0011] In response to the above problem or one of the above problems, the second object of the present invention is to provide a method for constructing a height map for a robot, which utilizes the body odometry pose estimation and the calibrated body coordinate system to sensor coordinate system pose transformation to transform the measurement point from the sensor coordinate system to the world coordinate system, thereby removing motion distortion, and then using the processed data to construct a robot-centered dense height map for legged robot motion planning.

[0012] In response to the above problem or one of the above problems, the third object of the present invention is to provide a method for processing the original measurement point data by setting a motion distortion removal module, a point cloud filtering module, and a height map module, and transforming the original measurement point data from the sensor coordinate system at a certain moment to the sensor coordinate system at a unified moment to obtain the current frame point cloud after removing the motion distortion, and then processing the current frame point cloud to remove the points that are not related to the environmental information to obtain a preprocessed point cloud; and then use the processed point cloud and the body odometer posture data of the legged robot to construct a height map for the legged robot motion planning. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can then accurately navigate the robot. A height map construction system for the robot.

[0013] In response to the above problem or one of the above problems, the fourth object of the present invention is to provide a height map construction method, system and storage medium for a robot with high computational efficiency, high mapping accuracy and good mapping effect.

[0014] To achieve one of the above purposes, the first technical solution of the present invention is:

[0015] A method for constructing a height map for legged robot motion planning comprises the following steps:

[0016] The first step is to obtain the original measurement point data of the map planning area;

[0017] In the second step, the pre-built motion distortion removal model is used to transform the original measurement point data to obtain the current frame point cloud after removing motion distortion;

[0018] The third step is to process the current frame point cloud through the pre-built point cloud filtering model to remove points that are irrelevant to the environment information and obtain the pre-processed point cloud;

[0019] Points irrelevant to environmental information include body point cloud and / or leg point cloud and / or noise point cloud;

[0020] The fourth step is to use the pre-built height map model and process the pre-processed point cloud according to the body odometry and / or visual odometry and / or laser odometry pose data to obtain the grid height value;

[0021] The fifth step is to establish or update the grid in the map planning area according to the grid height value, so as to realize the construction of the height map for legged robot motion planning.

[0022] After continuous exploration and experimentation, the present invention constructs a motion distortion removal model, a point cloud filtering model, and a height map model, transforms the posture of the original measurement point data, and obtains the current frame point cloud after removing the motion distortion. The current frame point cloud is then processed to remove points that are not related to environmental information to obtain a preprocessed point cloud; the processed point cloud and the legged robot's body odometer posture data are then used to construct a height map for the legged robot's motion planning. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can accurately navigate the robot.

[0023] As preferred technical measures:

[0024] In the second step, the motion distortion removal model removes motion distortion from the original measurement point data in the following manner:

[0025] Step 1: Put the current frame point cloud with timestamp into the point cloud queue cloudQueue, and put the robot odometry pose with timestamp into the odometry queue odomQueue;

[0026] Step 2: If the current point cloud queue is not empty, traverse the odometry queue from front to back and maintain the alignment of the odometry queue's first frame timestamp with the point cloud starting point timestamp. That is, if the odometry queue's first frame timestamp is less than the point cloud starting point timestamp, remove it from the queue.

[0027] Step 3: For the current frame point cloud, sort them in chronological order. The timestamp of the first point, i.e. the starting point, is t s , the timestamp of the last point is t e That is the end point;

[0028] The end point timestamp is used as the timestamp of the current frame point cloud, denoted as t c =t e ;

[0029] Step 4: traverse the odometry queue from front to back and find the two adjacent frames of odometry poses that are just before and after the point cloud timestamp. The two adjacent frames of odometry poses are and Satisfy t k ≤t c <t k+1 ;

[0030] Then, the linear interpolation method is used to calculate the robot odometry pose at the point cloud timestamp, which is expressed as follows:

[0031] Step 5: Traverse each original measurement point in the point cloud from the starting point backward according to the timestamp; obtain the robot odometer pose at the original measurement point by linear interpolation, which is recorded as

[0032] Step 6: The original measurement point of the current traversal is By transforming the posture from t p The sensor coordinate system at time t is transformed to the unified c The sensor coordinate system at the moment is used to remove motion distortion; the calculation formula is as follows:

[0033] As preferred technical measures:

[0034] In the third step, the point cloud filtering model is used to filter the point cloud of the current frame. The processing method is as follows:

[0035] For a point in the current frame point cloud after removing motion distortion Calculate its polar coordinates in the sensor coordinate system {S}:

[0036] Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis;

[0037] In the polar coordinate system, all points are projected onto s r = 1, and then select a specific spherical rectangular area to remove the noise point cloud projected into it and remove the tail point cloud. The expression is as follows:

[0038] In order to eliminate the point cloud of the quadruped robot's legs, based on the robot's forward kinematics, the position of each joint in the body coordinate system is calculated from the motor joint angle, and then transformed into the sensor coordinate system;

[0039] The positions of the knee joint and foot end in the sensor coordinate system are A and o and B o , first project it onto a sphere with a radius of 1 in the sensor coordinate system {S}; let the two points after projection be A and B, then:

[0040] Then a set of standard orthogonal bases is constructed by vector SA and vector SB:

[0041] The foot of the projection of point P in the XY plane of the orthogonal basis is H = [h x , h y , h z ] T , then the foot of the perpendicular is:

[0042] Under this standard orthogonal basis, calculate the spherical coordinates (1, θ, φ) of a laser point P:

[0043] The projection of the shank link on the normalized sphere approximates a rectangle, and A and B are the central axes of the rectangle;

[0044] The maximum width of the projected connecting rod is b, and the maximum length of the connecting rod is l. Then the following formula is used to determine whether point P is within the range of the rectangle;

[0045] If the measurement point is within the rectangle, it is considered that the measurement point belongs to the leg point, and is removed from the point cloud, thereby achieving the removal of the leg point cloud.

[0046] As preferred technical measures:

[0047] In the fourth step, the height map model treats each measurement point of the pre-processed point cloud as a measurement to establish or update the grid in the map planning area. The method for processing the pre-processed point cloud is as follows:

[0048] For each grid in the map planning area, a Gaussian distribution model is used to characterize the height estimate of the grid:

[0049] in, and are the mean and variance of the Gaussian distribution respectively;

[0050] A measurement point in the sensor coordinate system is p s , then the body odometer pose is used to estimate And the pose transformation from the calibrated body coordinate system to the sensor coordinate system Transform the measurement point from the sensor coordinate system to the world coordinate system:

[0051] Through the map index judgment formula group, the measurement point is mapped from the world coordinate system to obtain its corresponding two-dimensional array index The corresponding height value is the measurement point The z-axis component is the height measurement value of the current grid;

[0052] Create the projection matrix M p = [0, 0, 1], get the current height measurement value:

[0053] The pose transformation from the sensor coordinate system to the robot coordinate system is a fixed value obtained through calibration;

[0054] The measurement point p in the sensor coordinate system s Satisfying the Gaussian distribution, the variance propagation of its height estimation mainly depends on the sensor measurement p s The variance of the robot's odometry The variance of the robot's odometry and the translation of the robot's odometry variance;

[0055] Derived altitude measurement About p s 、 and The Jacobian matrix of :

[0056] Then, the variance of the current height measurement is calculated by covariance propagation:

[0057] Among them, Σ p is the covariance matrix of the measurement points in the sensor coordinate system, and its size depends on the sensor measurement noise model; Σ R is the covariance matrix of the robot odometry rotation; Σ t is the covariance matrix of the robot odometry translation;

[0058] Thus, the Gaussian distribution of the current height measurement is obtained:

[0059] Using the Kalman filter method, the current height measurement is integrated into the height estimate of the current grid to obtain the updated grid height value:

[0060] Finally, based on the grid height values, a height map that can be used for legged robot motion planning is constructed.

[0061] To achieve one of the above objectives, a second technical solution of the present invention is: a method for constructing a height map for motion planning of a legged robot, comprising the following steps:

[0062] S1: Get a measurement point p in a sensor coordinate system collected by the lidar s , using the body odometry pose estimation And the pose transformation from the calibrated body coordinate system to the sensor coordinate system The measurement point is transformed from the sensor coordinate system to the world coordinate system, and the world coordinate value of the measurement point is p w :

[0063] S2: Map the measurement point from the world coordinate system to its corresponding grid in the height map, and the corresponding height value is the measurement point The z-axis component is the height measurement value of the current grid; the measured height value satisfies the Gaussian distribution And construct the projection matrix M p =[0, 0, 1], then the mean value of the current height measurement is obtained:

[0064] The variance of the current height measurement is calculated by covariance propagation:

[0065] Among them, J p 、J R and J t is the height measurement About p s 、 and The Jacobian matrix of Σ p is the covariance matrix of the measurement points in the sensor coordinate system; Σ R is the covariance matrix of the robot odometry rotation; Σ t is the covariance matrix of the robot odometry translation;

[0066] S3: Construct a Gaussian distribution of the current height measurement value based on the mean of the current height measurement and the variance of the current height measurement value;

[0067] The height estimation of the grid satisfies the Gaussian distribution The updated height estimate is obtained by merging the current height measurement into the height estimate of the current grid by calculating the normalized product of the two Gaussian distributions:

[0068] S4: Based on the updated height estimate, a dense height map is constructed for legged robot motion planning.

[0069] This invention provides a method for constructing a height map for motion planning of a legged robot. This method uses the pose estimation of the body odometry and the calibrated pose transformation from the body coordinate system to the sensor coordinate system to transform the measured points from the sensor coordinate system to the world coordinate system, thereby removing motion distortion. The processed data is then used to construct a dense robot-centric height map for motion planning. Compared to traditional methods, this method offers the advantages of high computational efficiency, high mapping accuracy, and excellent mapping results. It can achieve real-time and efficient environmental height map construction on an embedded platform, and the height map can be centered on the legged robot and follow its movements in real time.

[0070] As preferred technical measures:

[0071] Map the measurement point from the world coordinate system to its corresponding grid in the height map, that is, the measurement point p w Map from the world coordinate system to get the two-dimensional array index of the corresponding grid in the height map The steps are as follows:

[0072] Step 1: The measurement point in the world coordinate system is Then divide its x and y components by the map resolution r respectively, and then round down to get the 2D integer index of the grid corresponding to the measurement point in the world coordinate system:

[0073] Step 2: The 2D integer index of the origin of the current map coordinate system in the world coordinate system is Then calculate the 2D integer index of the grid corresponding to the measurement point in the map coordinate system:

[0074] Step 3: The height map is an N×N grid map. The current point's index is determined to be within the height map range by checking whether it satisfies the following two conditions:

[0075] Step 4: If the measurement point satisfies both of the above conditions, that is, the measurement point is within the map range, the 2D integer index in the world coordinate system is modulo the map size N, and the measurement point is mapped to a two-dimensional array index stored in the computer:

[0076] Step 5: Set the height map’s length and width to the same exponent of 2, N = 2. n , change the index mapping step to a more efficient binary form, that is, change the modulus operation "mod" to the binary bitwise AND operation "&":

[0077] The present invention constructs a 2.5D height map model based on a circular array, which can efficiently map a spatial point to the corresponding height map grid and index it, and can also quickly move the map.

[0078] Furthermore, the method provided by the present invention has very low CPU and memory usage when running in an embedded computer, and can construct a high-precision dense height map around the legged robot in real time, providing environmental perception information for the motion planning of the legged robot.

[0079] As preferred technical measures:

[0080] For the measurement point p in the sensor coordinate system s The steps for motion distortion removal include:

[0081] A1: Place the current frame point cloud with a timestamp into the point cloud queue and the robot odometry pose with a timestamp into the odometry queue. If the current point cloud queue is not empty, traverse the odometry queue from front to back, aligning the timestamp of the first frame in the odometry queue with the timestamp of the point cloud starting point.

[0082] A2, for the current frame point cloud, set the timestamp of the starting point to t s The timestamp of the end point is t e , the end point timestamp is used as the timestamp of the current frame point cloud, recorded as t c =t e ;

[0083] A3, traverse the odometry queue from front to back, and find the two adjacent frames of odometry poses that are just before and after the point cloud timestamp. The two adjacent frames of odometry poses are and and satisfy t k ≤t c <t k+1 ; The robot odometry pose at the point cloud timestamp can be calculated by linear interpolation:

[0084] A4, traverse each point in the point cloud queue from the starting point according to the timestamp, and the original measurement point currently traversed is Its timestamp is t p , then the robot odometer pose at the measurement point is obtained by linear interpolation of the odometer poses of the two adjacent frames at that moment, which is recorded as

[0085] A5, the original measurement point Through the posture transformation, it is transformed from t p The sensor coordinate system at the moment is transformed to the unified current frame point cloud timestamp t cThe sensor coordinate system at the moment:

[0086] Thus, the current frame point cloud after removing motion distortion is obtained

[0087] As preferred technical measures:

[0088] Point cloud of the current frame The steps to remove the trailing point cloud include:

[0089] B1, calculate a point p in the point cloud s Polar coordinates in the sensor coordinate system:

[0090] Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis;

[0091] B2, in the polar coordinate system, all points are projected onto s r = 1, and then select a specific spherical rectangular area to remove the trailing point cloud projected into it:

[0092] Point cloud of the current frame The steps for removing the leg point cloud include:

[0093] C1, the position of the knee joint of the leg in the sensor coordinate system A o and the position B of the leg foot in the sensor coordinate system o , projected onto a sphere with a radius of 1 in the sensor coordinate system, the two projected points are A and B, then:

[0094] Construct a set of standard orthogonal bases from vector SA and vector SB:

[0095] C2, let the foot of the projection of point P in the XY plane of the standard orthogonal basis be H = [h x , h y , h z ] T , then the foot of the perpendicular is:

[0096] Under this standard orthogonal basis, calculate the spherical coordinates (1, θ, φ) of a laser point P:

[0097] C3, the projection of the leg link on the normalized sphere is a rectangle. The following formula is used to determine whether point P is within the rectangle:

[0098] Among them, b is the maximum width of the leg link after projection, and l is the maximum length of the leg link after projection; if point P is within the range of the rectangle, it will be removed.

[0099] To achieve one of the above purposes, the third technical solution of the present invention is:

[0100] A method for constructing a height map for legged robot motion planning includes the following:

[0101] Obtain original measurement point data of the map planning area;

[0102] Perform pose transformation on the original measurement point data to obtain the current frame point cloud after removing motion distortion;

[0103] Process the current frame point cloud, remove the points that are irrelevant to the environment information, and obtain the preprocessed point cloud;

[0104] Points irrelevant to environmental information include body point cloud and / or leg point cloud and / or noise point cloud;

[0105] Process the pre-processed point cloud according to the body odometry and / or visual odometry and / or laser odometry pose data to obtain grid height values;

[0106] According to the grid height value, the grid in the map planning area is established or updated, thereby realizing the construction of a height map for legged robot motion planning.

[0107] After continuous exploration and experimentation, the present invention transforms the posture of the original measurement point data to obtain the current frame point cloud after removing motion distortion, and then processes the current frame point cloud to remove points irrelevant to environmental information to obtain a preprocessed point cloud; and then uses the processed point cloud and the body odometer posture data of the legged robot to construct a height map for the legged robot motion planning. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can accurately navigate the robot.

[0108] To achieve one of the above objectives, a fourth technical solution of the present invention is: a height map construction system for legged robot motion planning, comprising a laser radar, a motion distortion removal module, a point cloud filtering module, a height map module, one or more processors, and a storage device;

[0109] LiDAR, used to collect raw measurement point data;

[0110] The motion distortion removal module is used to process the original measurement point data according to the conversion characteristics of the reference coordinate system, transform the original measurement point data from the sensor coordinate system at a certain moment to the sensor coordinate system at a unified moment, and obtain the current frame point cloud after removing the motion distortion;

[0111] The point cloud filtering module is used to process the point cloud of the current frame, remove the points that are irrelevant to the environmental information, and obtain the preprocessed point cloud;

[0112] The height map module is used to process the pre-processed point cloud to obtain the grid height value; and update the corresponding grid of the pre-processed point cloud in the height map;

[0113] a storage device for storing programs of one or more modules;

[0114] When the program is executed by the one or more processors, the one or more processors implement the above-mentioned height map construction method for legged robot motion planning.

[0115] After continuous exploration and experimentation, the present invention processes the original measurement point data by setting a motion distortion removal module, a point cloud filtering module, and a height map module, and transforms the original measurement point data from a sensor coordinate system at a certain moment to a sensor coordinate system at a unified moment to obtain a current frame point cloud after removing motion distortion. The current frame point cloud is then processed to remove points irrelevant to environmental information to obtain a preprocessed point cloud; the processed point cloud and the body odometer posture data of the legged robot are then used to construct a height map for the motion planning of the legged robot. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can accurately navigate the robot.

[0116] Furthermore, compared with traditional methods, the present invention has the advantages of high computational efficiency, high mapping accuracy and good mapping effect. It can realize real-time and efficient construction of environmental height maps on embedded platforms, and the height map can be centered on the legged robot and follow the movement of the legged robot in real time.

[0117] To achieve one of the above objectives, the fifth technical solution of the present invention is:

[0118] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for constructing a height map for motion planning of a legged robot.

[0119] The present invention has the following beneficial effects:

[0120] After continuous exploration and experimentation, the present invention transforms the posture of the original measurement point data to obtain the current frame point cloud after removing motion distortion, and then processes the current frame point cloud to remove points irrelevant to environmental information to obtain a preprocessed point cloud; and then uses the processed point cloud and the body odometer posture data of the legged robot to construct a height map for the legged robot motion planning. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can accurately navigate the robot.

[0121] Furthermore, the present invention provides a method for constructing a height map for legged robot motion planning, which utilizes the body odometry pose estimation and the calibrated body coordinate system to sensor coordinate system pose transformation to transform the measurement point from the sensor coordinate system to the world coordinate system, thereby removing motion distortion, and then using the processed data to construct a robot-centered dense height map for legged robot motion planning.

[0122] Furthermore, after continuous exploration and experimentation, the present invention processes the original measurement point data by setting a motion distortion removal module, a point cloud filtering module, and a height map module, and transforms the original measurement point data from the sensor coordinate system at a certain moment to the sensor coordinate system at a unified moment to obtain the current frame point cloud after removing the motion distortion, and then processes the current frame point cloud to remove points that are not related to environmental information to obtain a preprocessed point cloud; and then uses the processed point cloud and the body odometer posture data of the legged robot to construct a height map for the legged robot motion planning. The scheme is scientific, reasonable, and feasible, can effectively improve the accuracy of the height map, is conducive to promotion, and can accurately navigate the robot.

[0123] Furthermore, compared with traditional methods, the present invention has the advantages of high computational efficiency, high mapping accuracy and good mapping effect. It can realize real-time and efficient construction of environmental height maps on embedded platforms, and the height map can be centered on the legged robot and follow the movement of the legged robot in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0124] FIG1 is a flow chart of a first method for constructing a height map according to the present invention;

[0125] FIG2 is a second flow chart of the height map construction method of the present invention;

[0126] FIG3 is a schematic diagram of a coordinate system of the present invention;

[0127] FIG4 is a schematic diagram of removing leg point clouds in a spherical coordinate system according to the present invention;

[0128] FIG5 is a schematic diagram of a noise point cloud and a leg point cloud before removal according to the present invention;

[0129] FIG6 is a schematic diagram of a noise point cloud and a leg point cloud after removal of the present invention;

[0130] FIG7 is a schematic diagram of a height map index according to the present invention;

[0131] FIG8 is a schematic diagram of a height map movement according to the present invention;

[0132] FIG9 is a schematic diagram of a dense height map construction effect of the present invention;

[0133] FIG10 is another schematic diagram of a dense height map construction effect of the present invention. DETAILED DESCRIPTION

[0134] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0135] On the contrary, the present invention covers any alternatives, modifications, equivalents, and solutions that fall within the spirit and scope of the present invention as defined by the claims. Furthermore, to facilitate a better understanding of the present invention, certain specific details are described in detail below in the detailed description of the present invention. Those skilled in the art will be able to fully understand the present invention without these details.

[0136] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one skilled in the art to which this invention pertains. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present invention. As used herein, the term "or / and" includes any and all combinations of one or more of the associated listed items.

[0137] As shown in FIG1 , a first specific embodiment of the method for constructing a height map for legged robot motion planning according to the present invention is as follows:

[0138] A method for constructing a height map for legged robot motion planning comprises the following steps:

[0139] The first step is to obtain the original measurement point data of the map planning area;

[0140] In the second step, the pre-built motion distortion removal model is used to transform the original measurement point data to obtain the current frame point cloud after removing motion distortion;

[0141] The third step is to process the current frame point cloud through the pre-built point cloud filtering model to remove points that are irrelevant to the environment information and obtain the pre-processed point cloud;

[0142] Points irrelevant to environmental information include body point cloud and / or leg point cloud and / or noise point cloud;

[0143] The fourth step is to use the pre-built height map model and process the pre-processed point cloud according to the body odometry and / or visual odometry and / or laser odometry pose data to obtain the grid height value;

[0144] The fifth step is to establish or update the grid in the map planning area according to the grid height value, so as to realize the construction of the height map for legged robot motion planning.

[0145] As shown in FIG2 , a second specific embodiment of the method for constructing a height map for legged robot motion planning according to the present invention is as follows:

[0146] A method for constructing a height map for legged robot motion planning comprises the following steps:

[0147] S1: Use the lidar to obtain a measurement point p in the sensor coordinate system s , using the body odometry pose estimation And the pose transformation from the calibrated body coordinate system to the sensor coordinate system Transform the measurement point from the sensor coordinate system to the world coordinate system:

[0148] S2: Map the measurement point from the world coordinate system to its corresponding grid in the height map, and the corresponding height value is the measurement point The z-axis component is the height measurement value of the current grid; the measured height value satisfies the Gaussian distribution Define the projection matrix M p =[0, 0, 1], then the current height measurement value can be obtained:

[0149] S3: The variance of the current height measurement is calculated by covariance propagation:

[0150] Among them, J p 、J R and J t is the height measurement About p s 、 and The Jacobian matrix, Σ p is the covariance matrix of the measurement points in the sensor coordinate system, and its size depends on the sensor measurement noise model; Σ R is the covariance matrix of the robot odometry rotation; Σ t is the covariance matrix of the robot odometry translation;

[0151] S4: The height estimation of the grid satisfies the Gaussian distribution By calculating the normalized product of the two Gaussian distributions, the current height measurement can be integrated into the height estimate of the current grid to obtain an updated height estimate:

[0152] The present invention provides a method for constructing a height map for legged robot motion planning. The method is based on a dual-rotation axis three-dimensional laser radar, and performs point cloud preprocessing steps such as motion distortion removal, leg point cloud removal, and tail noise point cloud removal on the sparse point cloud obtained. The processed point cloud and the odometer data of the legged robot can be further used to construct a robot-centered dense height map for legged robot motion planning.

[0153] The present invention provides a height map construction method for legged robot motion planning, which has low computational overhead and memory occupation, high computational efficiency, and can realize real-time and efficient environment height map construction on an embedded platform.

[0154] A specific embodiment of the present invention mapping to obtain the two-dimensional array index to which the corresponding grid belongs:

[0155] will p w Map from the world coordinate system to get the two-dimensional array index of the corresponding grid in the height map The steps are as follows:

[0156] Step 1: Let a point in the world coordinate system be Then divide its x and y components by the map resolution r respectively, and then round down to get the 2D integer index of the grid corresponding to the measurement point in the world coordinate system:

[0157] Step 2: Set the 2D integer index of the origin of the current map coordinate system in the world coordinate system to Then the 2D integer index of the grid corresponding to the measurement point in the map coordinate system can be calculated:

[0158] Step 3: Assume that the height map is an N×N grid map. Then determine whether the measurement point is within the map range by checking whether the following two conditions are met at the same time:

[0159] Step 4: If the measurement point satisfies both of the above conditions, that is, the measurement point is within the map range, the 2D integer index in the world coordinate system can be modulo the map size N to obtain a two-dimensional array index:

[0160] Step 5: Set the height map’s length and width to the same exponent of 2, N = 2. n , the above index mapping step can be changed to a more efficient binary form, that is, the modulus operation "mod" is changed to the binary bitwise AND operation "&":

[0161] A specific embodiment of motion distortion removal of the present invention:

[0162] For the measurement point p in the sensor coordinate system s The method for removing motion distortion comprises the following steps:

[0163] A1: Place the current frame point cloud with a timestamp into the point cloud queue and the robot odometry pose with a timestamp into the odometry queue. If the current point cloud queue is not empty, traverse the odometry queue from front to back, aligning the timestamp of the first frame in the odometry queue with the timestamp of the point cloud starting point.

[0164] A2, for the current frame point cloud, set the timestamp of the starting point to t s The timestamp of the end point is t e , the end point timestamp is used as the timestamp of the current frame point cloud, recorded as t c =t e ;

[0165] A3, traverse the odometry queue from front to back, and find the odometry poses of two adjacent frames that are just before and after the point cloud timestamp, set as and It satisfies t k ≤t c <t k+1 ; The robot odometry pose at the point cloud timestamp can be calculated by linear interpolation:

[0166] A4, traverse each point in the point cloud queue from the starting point according to the timestamp, and set the original measurement point currently traversed to be Its timestamp is t p , then the robot odometer pose at the measurement point can be calculated by linear interpolation of the odometer poses of the two adjacent frames at that moment, which is recorded as

[0167] A5, the original measurement point Through the posture transformation, it is transformed from t p The sensor coordinate system at the moment is transformed to the unified current frame point cloud timestamp t c Sensor coordinate system at the moment:

[0168] Thus, the current frame point cloud after removing motion distortion is obtained

[0169] A specific embodiment of the present invention for removing trailing point clouds:

[0170] Point cloud of the current frame The steps to remove the trailing point cloud include:

[0171] B1, calculate a point p in the point cloud s Polar coordinates in the sensor coordinate system:

[0172] Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis;

[0173] B2, in the polar coordinate system, all points are projected onto s r = 1, and then select a specific spherical rectangular area to remove the trailing point cloud projected into it:

[0174] A specific embodiment of the present invention for removing leg point clouds:

[0175] Point cloud of the current frame The steps for removing the leg point cloud include:

[0176] C1, the position A of the knee joint in the sensor coordinate system o and the foot end position B in the sensor coordinate system o , projected onto a sphere with a radius of 1 in the sensor coordinate system, the two projected points are A and B, then:

[0177] Construct a set of standard orthogonal bases from vector SA and vector SB:

[0178] C2, let the foot of the projection of point P in the XY plane of the standard orthogonal basis be H = [h x , h y , h z ] T , then the foot of the perpendicular is:

[0179] Under this standard orthogonal basis, calculate the spherical coordinates (1, θ, φ) of a laser point P:

[0180] C3, the projection of the leg link on the normalized sphere is a rectangle. The following formula is used to determine whether point P is within the rectangle:

[0181] Among them, b is the maximum width of the leg link after projection, and l is the maximum length of the leg link after projection; if point P is within the range of the rectangle, it will be removed.

[0182] As shown in FIG2 , a preferred embodiment of the method of the present invention is shown.

[0183] In order to accurately describe the present invention, the coordinate system and common symbols are first defined.

[0184] First, the present invention mainly includes four reference coordinate systems, all of which use right-handed coordinate systems, namely the inertial world coordinate system {W}, the robot body coordinate system {B}, the sensor coordinate system {S} and the map coordinate system {M}, as shown in Figure 3.

[0185] The world coordinate system {W} remains relatively stationary with respect to the terrain environment, and its xy coordinate axis plane remains consistent with the horizontal plane;

[0186] The body coordinate system {B} is a fixed coordinate system connected to the robot body, generally the center of rotation of the robot;

[0187] The sensor coordinate system {S} is the reference coordinate system of the sensor measurement values;

[0188] The xyz axes of the map coordinate system {M} are oriented in the same direction as the world coordinate system, and its xy plane coincides with the world coordinate system. The x and y coordinates of its origin move with the fuselage coordinate system so that the map center grid always coincides with the fuselage coordinate system.

[0189] Since the timestamp of each point collected by the sensor is different, the pose of the sensor coordinate system corresponding to the timestamp of the measurement point in the world coordinate system is also different. Therefore, the original point cloud frame contains distortion caused by sensor motion, which is called motion distortion.

[0190] The steps for motion distortion removal are as follows:

[0191] First, put the current frame point cloud with timestamp into the point cloud queue cloudQueue, and put the robot odometry pose with timestamp into the odometry queue odomQueue.

[0192] In the second step, if the current point cloud queue is not empty, the odometry queue is traversed from front to back, and the timestamp of the first frame of the odometry queue is aligned with the timestamp of the starting point of the point cloud. That is, if the timestamp of the first frame of the odometry queue is less than the timestamp of the starting point of the point cloud, it is removed from the queue.

[0193] The third step is to set the timestamp of the first point (i.e., the starting point) of the current frame point cloud as t s , the timestamp of the last point is t e (i.e., the end point). The timestamp of the end point is used as the timestamp of the current frame point cloud, denoted as t c =t e .

[0194] The fourth step is to traverse the odometry queue from front to back and find the two adjacent frames of odometry poses that are just before and after the point cloud timestamp, set as and It satisfies t k ≤t c <t k+1 Then, the linear interpolation method can be used to calculate the robot odometry pose at the point cloud timestamp, which is abbreviated as:

[0195] The fifth step is to traverse each point in the point cloud from the starting point according to the timestamp. Let the original measurement point currently traversed be Its timestamp is t p , then similar to the above formula, the robot odometer pose at the measurement point can be obtained by linear interpolation, which is recorded as

[0196] Step 6: For the original measurement point currently traversed, It can be transformed from t p The sensor coordinate system at time t is transformed to the unified c The sensor coordinate system at the moment is used to remove motion distortion. The calculation is as follows:

[0197] The method for filtering out tail point clouds and leg point clouds in a spherical coordinate system includes the following:

[0198] For the current frame point cloud after removing motion distortion It is also necessary to further remove points that are not related to environmental information, which mainly include body point cloud, leg point cloud and noise point cloud.

[0199] For a point in the current frame point cloud after removing motion distortion First, its polar coordinates in the sensor coordinate system {S} can be calculated:

[0200] Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis.

[0201] In the polar coordinate system, all points can be projected onto s r = 1, and then select a specific spherical rectangular area to remove the noise point cloud projected into it, which can effectively remove the trailing point cloud. The example is as follows:

[0202] In order to eliminate the point cloud of the quadruped robot's legs, the position of each joint in the body coordinate system is first calculated from the motor joint angle based on the robot's forward kinematics, and then transformed into the sensor coordinate system.

[0203] As shown in Figure 4, here we take the left front calf joint as an example, and assume that the positions of its knee joint and foot end in the sensor coordinate system are A and o and B o , first project it onto a sphere with a radius of 1 in the sensor coordinate system {S}. Let the two points after projection be A and B, then:

[0204] Then a set of standard orthogonal bases can be constructed from vector SA and vector SB:

[0205] Let the foot of the projection of point P in the XY plane of the standard orthogonal basis be H = [h x , h y , h z ] T , then the foot of the perpendicular is:

[0206] Under this standard orthogonal basis, the spherical coordinates (1, θ, φ) of a laser point P can be calculated:

[0207] Assume that the projection of the calf link onto the normalized sphere approximates a rectangle, and A and B are the central axes of the rectangle. Let the maximum width of the projected link be b and the maximum length be l. The following formula can be used to determine whether point P is within the rectangle.

[0208] If the measurement point is within the rectangle, it is considered to belong to the leg point and is removed from the point cloud.

[0209] The effects before and after the removal of noise point clouds and leg point clouds are shown in Figures 5 and 6.

[0210] A loop-based array heightmap model consisting of the following:

[0211] Commonly used map models include 2D grid maps, 3D grid maps, point cloud maps, octree maps, and topological maps. Octree maps have a small memory footprint but low element access efficiency, which is logarithmic in the number of map nodes. Conversely, raster maps have a high memory footprint but constant element access time, resulting in high access efficiency. Considering the balance between map storage efficiency and indexing efficiency, a 2D grid map model was chosen to represent environmental information, and an efficient method for constructing height maps based on circular arrays was developed.

[0212] For computers, no matter what kind of map model it is, its storage method is ultimately linear storage. In order to build a 2.5D height map, we must first define the data structure for storing and accessing map elements in the computer. Specifically, this data structure should have the following functions:

[0213] Given a 3D point in space, its corresponding grid index in the height map can be calculated, and its storage index in the computer memory can be further obtained;

[0214] Move the entire map by one voxel in a certain direction;

[0215] Determine whether a point is within the voxel map;

[0216] As shown in Figure 7, the geometric structure of a 2.5D height map is defined as follows: - the map resolution is r, i.e., the side length of a square grid is r; - a height map is a square area consisting of N × N grid cells; - the coordinate axes of the map coordinate system are consistent with the world coordinate system, and only move in the x and y directions; - the origin of the map coordinate system is the grid with the smallest x and y coordinates among all the grids in the current height map, denoted by Om;

[0217] The steps to determine whether a point in the world coordinate system is within the map range and map it to the corresponding 2D grid and its one-dimensional array index in the map are as follows:

[0218] Let a point in the world coordinate system be Then divide its x and y components by the map resolution r respectively, and then round down to get the 2D integer index of the measurement point in the world coordinate system:

[0219] Let the 2D integer index of the origin of the current map coordinate system in the world coordinate system be Then the 2D integer index of the measurement point in the map coordinate system can be calculated:

[0220] You can determine whether the measurement point is within the map range by judging whether the following two conditions are met at the same time:

[0221] If the measurement point satisfies both of the above conditions, that is, the measurement point is within the map range, the 2D integer index in the world coordinate system can be modulo the map size N to obtain a two-dimensional array index:

[0222] By setting the length and width of the height map to the same size as the exponent of 2, that is, N = 2 n , the above index mapping step can be changed to a more efficient binary form, that is, the modulus operation "mod" is changed to the binary bitwise AND operation "&":

[0223] Finally, the two-dimensional array index is uniquely mapped to a one-dimensional array index I a , which corresponds to the storage address of the grid in the computer:

[0224] Here, taking the height map in the above figure as an example, the map size is N=2 3 = 8. The integer index of the dark grid in the map in the world coordinate system is The integer index in the map coordinate system is The two-dimensional array index is The one-dimensional array index is Ia=5×8+1=41.

[0225] In addition, when the robot moves, it is necessary to control the movement of the map coordinate system so that the origin of the robot coordinate system always remains vertically above the center of the map. m1 Move to O m2 When the grid area (blue grid) that overlaps before and after the movement remains unchanged in its two-dimensional array index and one-dimensional array index in storage, so there is no need to move it in the storage array, which can save a lot of computing resources; the grid added after the movement (the upper right corner oblique area) and the grid discarded after the movement (the lower left corner oblique area) have a one-to-one correspondence in the two-dimensional array index, so it is only necessary to store the value of the new grid at the address of the discarded grid. For example, as shown by the arrow in Figure 8, after the movement, map O m2The two-dimensional array index of the upper right corner of the grid is (3, 1), which just corresponds to the map O before moving. m1 The second grid in the bottom row.

[0226] The construction of the height map includes the following:

[0227] For the point cloud after the preprocessing step, each point is taken as a measurement to update its corresponding grid in the height map. For each grid in the height map, a Gaussian distribution model is used to characterize the height estimate of the grid:

[0228] in, and are the mean and variance of the Gaussian distribution, respectively.

[0229] Assume that a measurement point in the sensor coordinate system is p s , the body odometer pose can be used to estimate And the pose transformation from the calibrated body coordinate system to the sensor coordinate system Transform the measurement point from the sensor coordinate system to the world coordinate system:

[0230] According to formulas (10)-(14), the measurement point can be mapped from the world coordinate system to obtain its corresponding two-dimensional array index The corresponding height value is the measurement point The z-axis component is the height measurement value of the current grid. Define the projection matrix M p =[0, 0, 1], then the current height measurement value can be obtained:

[0231] Since the pose transformation from the sensor coordinate system to the robot coordinate system is a fixed value obtained by calibration, its variance does not need to be considered. s Also satisfies the Gaussian distribution, then the variance propagation of the height estimation mainly depends on the sensor measurement p s The variance of the robot's odometry The variance of the robot's odometry and the translation of the robot's odometry The variance of . The height measurement value can be derived About p s 、 and The Jacobian matrix of :

[0232] Then, the variance of the current height measurement is calculated by covariance propagation:

[0233] Among them, Σ p is the covariance matrix of the measurement points in the sensor coordinate system, and its size depends on the sensor measurement noise model; Σ R is the covariance matrix of the robot odometry rotation; Σ t is the covariance matrix of the robot odometry translation.

[0234] So we get the Gaussian distribution of the current height measurement:

[0235] Finally, the Kalman filter method can be used to fuse the current height measurement into the height estimate of the current grid to obtain an updated height estimate:

[0236] The height map effects created by the present invention are shown in FIG9 and FIG10 .

[0237] An embodiment of a device applying the method of the present invention:

[0238] A computer device comprising:

[0239] one or more processors;

[0240] a storage device for storing one or more programs;

[0241] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method for constructing a height map for legged robot motion planning.

[0242] A computer medium embodiment of the method of the present invention:

[0243] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for constructing a height map for motion planning of a legged robot.

[0244] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.

Claims

1. A method for constructing a height map for motion planning of a legged robot, characterized in that: The steps include: The first step is to obtain the original measurement point data of the map planning area; The second step is to use the pre-built motion distortion removal model to transform the original measurement point data to obtain the current frame point cloud after removing the motion distortion; The third step is to process the current frame point cloud through the pre-built point cloud filtering model, remove the points that are irrelevant to the environmental information, and obtain the pre-processed point cloud; Points irrelevant to environmental information include body point cloud and / or leg point cloud and / or noise point cloud; The fourth step is to use the pre-built height map model and process the pre-processed point cloud according to the body odometer and / or visual odometer and / or laser odometer pose data to obtain the grid height value; The fifth step is to establish or update the grid in the map planning area according to the grid height value, so as to realize the construction of the height map for the motion planning of the legged robot.

2. A method for constructing a height map for motion planning of a legged robot according to claim 1, characterized in that: In the second step, the method for the motion distortion removal model to remove the motion distortion of the original measurement point data is as follows: Step 1: put the current frame point cloud with timestamp into the point cloud queue cloudQueue, and put the robot odometer pose with timestamp into the odometer queue odomQueue; Step 2: If the current point cloud queue is not empty, traverse the odometer queue from front to back, and maintain the alignment of the first frame timestamp of the odometer queue with the point cloud starting point timestamp. That is, if the first frame timestamp of the odometer queue is less than the point cloud starting point timestamp, remove it from the queue. Step 3: For the point cloud of the current frame, sort them in chronological order. The timestamp of the first point, i.e. the starting point, is t s , the timestamp of the last point is t e That is the end point; The end point timestamp is used as the timestamp of the current frame point cloud, denoted as t c =t e ; Step 4: traverse the odometer queue from front to back and find the two adjacent frames of odometer poses that are just before and after the point cloud timestamp. The odometer poses of the two adjacent frames are and Satisfy t k ≤t c <t k+1 ; Then, the linear interpolation method is used to calculate the robot odometer pose at the point cloud timestamp, and its expression is as follows: Step 5: traverse each original measurement point in the point cloud from the starting point backward according to the timestamp; obtain the robot odometer pose at the original measurement point by linear interpolation, which is recorded as Step 6: The original measurement point currently traversed is Through the posture transformation, it is changed from t p The sensor coordinate system at time t is transformed to a unified c The sensor coordinate system at the moment can remove motion distortion; the calculation formula is as follows:

3. A method for constructing a height map for motion planning of a legged robot according to claim 1, characterized in that: In the third step, the point cloud filtering model is used to filter the point cloud of the current frame. The processing method is as follows: For a point in the current frame point cloud after removing motion distortion Calculate its polar coordinates in the sensor coordinate system {S}: Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis; In the polar coordinate system, all points are projected onto s r = 1, and then select a specific spherical rectangular area to remove the noise point cloud projected into it and remove the trailing point cloud. The expression is as follows: In order to remove the point cloud of the quadruped robot's legs, based on the robot's forward kinematics, the position of each joint in the body coordinate system is calculated from the motor joint angle, and then transformed into the sensor coordinate system; The positions of the knee joint and the foot end in the sensor coordinate system are A and o and B o , first project it onto a sphere with a radius of 1 in the sensor coordinate system {S}; let the two points after projection be A and B, then: Then a set of standard orthogonal bases is constructed by vector SA and vector SB: The foot of the projection of point P in the XY plane of the standard orthogonal basis is H = [h x ,h y ,h z ] T , then the foot of the perpendicular is: Under this standard orthogonal basis, calculate the spherical coordinates (1, θ, φ) of a laser point P: The projection of the shank link on the normalized sphere approximates a rectangle, and A and B are the central axes of the rectangle; The maximum width of the projected connecting rod is b, and the maximum length of the connecting rod is l. The following formula is used to determine whether point P is within the range of the rectangle; If the measurement point is within the rectangle, it is considered that the measurement point belongs to the leg point, and is removed from the point cloud, thereby achieving the removal of the leg point cloud.

4. A method for constructing a height map for motion planning of a legged robot according to any one of claims 1 to 3, characterized in that: In the fourth step, the height map model takes each measurement point of the pre-processed point cloud as a measurement to establish or update the grid in the map planning area. The method for processing the pre-processed point cloud is as follows: For each grid in the map planning area, a Gaussian distribution model is used to characterize the height estimate of the grid: in, and are the mean and variance of the Gaussian distribution respectively; A measurement point in the sensor coordinate system is p s , then the body odometer pose is used to estimate And the calibrated pose transformation from the fuselage coordinate system to the sensor coordinate system Transform the measurement point from the sensor coordinate system to the world coordinate system: Through the map index judgment formula group, the measurement point is mapped from the world coordinate system to obtain its corresponding two-dimensional array index The corresponding height value is the measurement point The z-axis component of is the height measurement value of the current grid; Create the projection matrix M p = [0, 0, 1], get the current height measurement value: The pose transformation from the sensor coordinate system to the robot coordinate system is a fixed value obtained by calibration; The measurement point p in the sensor coordinate system s Satisfying the Gaussian distribution, the variance propagation of its height estimate mainly depends on the sensor measurement p s The variance of the robot mileage The rotation amount of the meter The variance of the robot's odometer translation The variance of Derived height measurement About p s , and The Jacobian matrix of : Then, the variance of the current height measurement is calculated by covariance propagation: Among them, Σ p is the covariance matrix of the measurement points in the sensor coordinate system, and its size depends on the sensor measurement noise model; Σ R is the covariance matrix of the robot odometer rotation; Σ t is the covariance matrix of the robot odometry translation; Thus, the Gaussian distribution of the current height measurement is obtained: Using the Kalman filter method, the current height measurement is fused into the height estimate of the current grid to obtain the updated grid height value: Finally, based on the grid height values, the height map that can be used for legged robot motion planning is constructed.

5. A method for constructing a height map for motion planning of a legged robot, characterized in that: The following steps are involved: S1: Get a measurement point p in a sensor coordinate system collected by LiDAR s , using the body odometer pose estimation And the calibrated pose transformation from the fuselage coordinate system to the sensor coordinate system The measurement point is transformed from the sensor coordinate system to the world coordinate system, and the world coordinate value of the measurement point is p w : S2: Map the measurement point from the world coordinate system to its corresponding grid in the height map, and the corresponding height value is the measurement point The z-axis component is the height measurement value of the current grid; the measured height value satisfies the Gaussian distribution And construct the projection matrix M p =[0, 0, 1], then the mean value of the current height measurement is obtained: The variance of the current height measurement is calculated by covariance propagation: Among them, J p , J R and J t is the height measurement About p s , and The Jacobian matrix of p is the covariance matrix of the measurement points in the sensor coordinate system; Σ R is the covariance matrix of the robot odometer rotation; Σ t is the covariance matrix of the robot odometry translation; S3: construct a Gaussian distribution of the current height measurement value according to the mean value of the current height measurement and the variance of the current height measurement value; The height estimation of the grid satisfies the Gaussian distribution Then the current height measurement is fused into the height estimate of the current grid by calculating the normalized product of the two Gaussian distributions to obtain an updated height estimate: S4: Based on the updated height estimate, a dense height map is constructed for legged robot motion planning.

6. A method for constructing a height map for motion planning of a legged robot as claimed in claim 5, characterized in that: Map the measurement point from the world coordinate system to its corresponding grid in the height map, that is, the measurement point p w Map from the world coordinate system to get the two-dimensional array index of the corresponding grid in the height map The steps are as follows: Step 1: The measurement point in the world coordinate system is Then divide its x and y components by the map resolution r respectively, and then round down to get the 2D integer index of the grid corresponding to the measurement point in the world coordinate system: Step 2: The 2D integer index of the origin of the current map coordinate system in the world coordinate system is Then the 2D integer index of the grid corresponding to the measurement point in the map coordinate system is calculated: Step 3: If the height map is an N×N grid map, the index of the current point is determined to be within the height map range by determining whether it satisfies the following two conditions at the same time: Step 4: If the measurement point satisfies both of the above conditions, that is, the measurement point is within the map range, the 2D integer index in the world coordinate system is modulo the map size N, and the measurement point is mapped to a two-dimensional array index stored in the computer: Step 5: Set the height map’s length and width to the same exponent of 2, i.e. N = 2. n , change the index mapping step to a more efficient binary form, that is, change the modulus operation "mod" to a binary bitwise AND operation "&":

7. A method for constructing a height map for motion planning of a legged robot as claimed in claim 6, characterized in that: For the measurement point p in the sensor coordinate system s The steps for motion distortion removal include: A1: Put the current frame point cloud with timestamp into the point cloud queue, and put the robot odometer pose with timestamp into the odometer queue; if the current point cloud queue is not empty, traverse the odometer queue from front to back, and maintain the alignment of the timestamp of the first frame of the odometer queue with the timestamp of the starting point of the point cloud; A2, for the current frame point cloud, set the timestamp of the starting point to t s The end point timestamp is t e , the end point timestamp is used as the timestamp of the current frame point cloud, recorded as t c =t e ; A3, traverse the odometer queue from front to back, and find the two adjacent frames of odometer poses that are just before and after the point cloud timestamp. The odometer poses of the two adjacent frames are and And satisfy t k ≤t c <t k+1 ; The robot odometer pose at the point cloud timestamp can be calculated by linear interpolation: A4, traverse each point in the point cloud queue from the starting point according to the timestamp, and the original measurement point currently traversed is Its timestamp is t p , then the robot odometer pose at the measurement point is obtained by linear interpolation of the odometer poses of the two adjacent frames at that moment, which is recorded as A5, the original measurement point Through the posture transformation, it is transformed from t p The sensor coordinate system at the moment is transformed to the unified current frame point cloud timestamp t c Sensors at all times Coordinate system: Thus, the point cloud of the current frame after removing motion distortion is obtained.

8. A method for constructing a height map for motion planning of a legged robot as claimed in claim 7, characterized in that: Point cloud of current frame The steps to remove the trailing point cloud include: B1, calculate a point p in the point cloud s Polar coordinates in the sensor coordinate system: Among them, s r is the vector p s The modulus length, s p is the vector p s Angle with the positive Z axis of the sensor coordinate system, s a is the vector p s The angle between the projection vector on the XY plane of the sensor coordinate system and the positive direction of the X axis; B2, in the polar coordinate system, all points are projected onto s r = 1, and then select a specific spherical rectangular area to remove the trailing point cloud projected into it: Point cloud of current frame The steps for removing the leg point cloud include: C1, the position of the knee joint of the leg in the sensor coordinate system A o and the position of the leg foot in the sensor coordinate system B o , projected onto a sphere with a radius of 1 in the sensor coordinate system, the two points after projection are A and B, respectively, then: Construct a set of standard orthogonal bases from vector SA and vector SB: C2, let the foot of the projection of point P in the XY plane of the standard orthogonal basis be H = [h x ,h y ,h z ] T , then the foot of the perpendicular is: Under this standard orthogonal basis, calculate the spherical coordinates (1, θ, φ) of a laser point P: C3, the projection of the leg link on the normalized sphere is a rectangle. The following formula is used to determine whether point P is within the range of the rectangle: Among them, b is the maximum width of the leg link after projection, and l is the maximum length of the leg link after projection; if point P is within the range of the rectangle, it will be removed.

9. A method for constructing a height map for motion planning of a legged robot, characterized in that: It includes the following: Get the original measurement point data of the map planning area; The original measurement point data is transformed in position and posture to obtain the current frame point cloud after removing motion distortion; Process the point cloud of the current frame, remove the points that are irrelevant to the environmental information, and obtain the preprocessed point cloud; Points irrelevant to environmental information include body point cloud and / or leg point cloud and / or noise point cloud; According to the body odometer and / or visual odometer and / or laser odometer posture data, the pre-processed point cloud is processed to obtain a grid height value; According to the grid height value, the grid in the map planning area is established or updated, thereby realizing the construction of a height map for legged robot motion planning.

10. A height map construction system for legged robot motion planning, characterized in that: It includes a laser radar, a motion distortion removal module, a point cloud filtering module, a height map module, one or more processors, and a storage device; LiDAR, used to collect raw measurement point data; The motion distortion removal module is used to process the original measurement point data according to the conversion characteristics of the reference coordinate system, transform the original measurement point data from the sensor coordinate system at a certain moment to the sensor coordinate system at a unified moment, and obtain the current frame point cloud after removing the motion distortion; The point cloud filtering module is used to process the point cloud of the current frame, remove the points that are irrelevant to the environmental information, and obtain the preprocessed point cloud; The height map module is used to process the pre-processed point cloud to obtain the grid height value; and update the corresponding grid of the pre-processed point cloud in the height map; A storage device for storing programs of one or more modules; When the program is executed by the one or more processors, the one or more processors implement a height map construction method for legged robot motion planning as described in any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, a method for constructing a height map for motion planning of a legged robot as described in any one of claims 1-9 is implemented.

Citation Information

Patent Citations

  • High-precision mileage estimation method based on double-layer filtering frame

    CN114046800A

  • Raster map updating method and device, electronic equipment and storage medium

    CN114299145A

  • Mapping positioning method fusing laser radar and depth camera point cloud

    CN115330866A

  • Method and apparatus for updating maps

    US20180299557A1

  • Scalable Feature Classification for Laser Scanning Data and Digital Elevation Models

    US20200151504A1

Cited By

  • Intelligent workshop dynamic three-dimensional reconstruction method based on voxels and computer equipment

    CN118736162A

  • A voxel-based dynamic three-dimensional reconstruction method and computer equipment for intelligent workshops

    CN118736162B

  • Robot navigation method based on importance staring representation and obstacle Gaussian constraint

    CN119414404A

  • Vein boundary extraction method, computer equipment and storage medium

    CN119722723A

  • Monocular SLAM dynamic modeling-oriented lung bronchial voxel model optimization method

    CN119741441A