Positioning method and system for stair-climbing multi-legged robot

By constructing a three-dimensional model of the stairs and adjusting the center of gravity of the posture, the posture and balance problems of the multi-legged robot for climbing stairs are solved, and the stability and obstacle avoidance ability of the ladder climbing process are achieved.

CN118794445APending Publication Date: 2024-10-18SUZHOU RUISHIZHIPAUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864056.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology cannot effectively control the posture and dynamic balance of a multi-legged stair-climbing robot, resulting in an unstable ladder-climbing process and the inability to adjust obstacle avoidance actions in a timely manner.

Method used

By dividing the environment area based on the surrounding environment image, defining the stair scene, building a three-dimensional stair model based on the data collected by lidar and cameras, adjusting the posture center of gravity of the multi-legged stair-climbing robot, and triggering obstacle avoidance actions based on the type of obstacles.

Benefits of technology

The dynamic balance and ladder-climbing stability of the multi-legged stair-climbing robot are realized, and the posture and path are adjusted in time to ensure the stable crawling and obstacle avoidance of the stair-climbing multi-legged robot on multiple stair floors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794445A_ABST
    Figure CN118794445A_ABST
Patent Text Reader

Abstract

The invention discloses a positioning method and system for a stair-climbing multi-legged robot, and the method comprises the steps: defining a stair scene according to the combination of all environment features, so as to make the stair scene clear, enabling the stair-climbing multi-legged robot to be located in the stair scene, building a stair stereoscopic model according to a first image and a real-time image, and carrying out the positioning of the stair-climbing multi-legged robot. Point clouds in a stair scene collected by a laser radar and real-time images in the stair scene collected based on a camera are fully considered, then a stair stereoscopic model is controlled, stair layers of the stair stereoscopic model are controlled, so that the stair climbing multi-legged robot can better climb stairs on multiple stair layers, and meanwhile, the stair climbing multi-legged robot can conveniently climb the stairs. And the posture gravity center of the stair-climbing multi-legged robot is defined according to the posture data, and the posture gravity center of the stair-climbing multi-legged robot is dynamically adjusted along with the stair layer data recorded by the stair stereoscopic model, so that the dynamic balance of the stair-climbing multi-legged robot is maintained, and the stair climbing stability of the stair-climbing multi-legged robot is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of stair-climbing multi-legged robots, and in particular to a positioning method and system for stair-climbing multi-legged robots. Background Art

[0002] With the development of science and technology, stair-climbing multi-legged robots are applied in life or industry. The stair-climbing multi-legged robots climb stairs and gradually step on multiple stair layers during the climbing process. In the prior art, a guidance signal is positioned based on the stair layer, and the forward direction of the stair-climbing multi-legged robot is defined based on the guidance signal. However, the prior art only controls the forward direction of the stair-climbing multi-legged robot, and does not control the posture of the stair-climbing multi-legged robot, nor can it ensure the dynamic balance of the stair-climbing multi-legged robot. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a positioning method and system for a stair-climbing multi-legged robot. A plurality of environmental areas are divided based on a surrounding environment image, and a stair scene is defined according to a combination of various environmental features, so as to clarify the stair scene and place the stair-climbing multi-legged robot in the stair scene. At the same time, a stair stereo model is constructed according to a first image and a real-time image, and full consideration is given to the point cloud in the stair scene collected by a laser radar and the real-time image in the stair scene collected by a camera, so as to control the stair stereo model and control the stair layers of the stair stereo model, so that the stair-climbing multi-legged robot can better perform climbing actions on multiple stair layers. At the same time, the posture center of gravity of the stair-climbing multi-legged robot is defined according to posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted with the stair layer data recorded by the stair stereo model to maintain the dynamic balance of the stair-climbing multi-legged robot, thereby ensuring the climbing stability of the stair-climbing multi-legged robot, and timely triggering the adjustment and action of the posture center of gravity of the multi-legged robot. In addition, the obstacle avoidance action of the stair-climbing multi-legged robot is triggered based on the type of obstacle, and the dynamic adjustment of the climbing path is triggered.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a positioning method for a stair-climbing multi-legged robot, which is applied to a positioning scenario for a stair-climbing multi-legged robot;

[0005] The positioning method for the stair-climbing multi-legged robot comprises:

[0006] Collecting the surrounding environment image of the stair-climbing multi-legged robot, and dividing the surrounding environment image into multiple areas;

[0007] Determine corresponding environmental features according to the identification of multiple environmental areas, and define a staircase scene according to the combination of various environmental features;

[0008] When the stair-climbing multi-legged robot is in a stair scene, a point cloud in the stair scene is collected based on a laser radar, and a first image is constructed according to the point cloud in the stair scene; at the same time, a real-time image in the stair scene is collected based on a camera, and a three-dimensional model of the stair is constructed according to the first image and the real-time image;

[0009] Construct a coordinate system on the three-dimensional model of the stairs, and record the position of the stair-climbing multi-legged robot. At the same time, collect the posture data of the stair-climbing multi-legged robot when climbing the stairs.

[0010] The posture center of gravity of the stair-climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot;

[0011] If the stair-climbing multi-legged robot detects an obstacle, the stair-climbing multi-legged robot's obstacle avoidance action is triggered based on the type of obstacle, and the dynamic adjustment of the stair-climbing path is triggered.

[0012] Optionally, the collecting of the surrounding environment image of the stair-climbing multi-legged robot and dividing the surrounding environment image into multiple environmental areas include:

[0013] The multi-legged robot for climbing stairs takes pictures in all directions and collects multiple images, wherein the multiple images are respectively at different directions of the multi-legged robot for climbing stairs;

[0014] Constructing a surrounding environment image of the building-climbing multi-legged robot according to the multiple images and the center position of the building-climbing multi-legged robot;

[0015] Highlighting the contour line based on the surrounding environment image, and constructing multiple closed-loop areas of the surrounding environment image according to the closed loop of the contour line;

[0016] The surrounding environment image is divided based on the closed-loop area, and multiple environment areas are divided. At this time, a coherence coefficient is defined based on two adjacent closed-loop areas. If the coherence coefficient is greater than a preset coherence coefficient threshold, the two adjacent closed-loop areas are merged.

[0017] Optionally, the determining corresponding environmental features according to the identification of multiple environmental areas, and defining the staircase scene according to the combination of the environmental features, includes:

[0018] Freeze multiple environmental areas and define the relative positions between the multiple environmental areas;

[0019] Associating a plurality of environmental regions and an environmental learning model, and synchronously identifying the plurality of environmental regions based on the environmental learning model to output a first shape parameter;

[0020] defining a first position parameter according to relative positions between the plurality of environmental regions;

[0021] Determine a corresponding environmental feature according to the first shape parameter and the first position parameter;

[0022] Collect various environmental features, and define the stair scene based on the combination of various environmental features. At this time, filter the stair layer features according to the combination of various environmental features, associate the remaining environmental features with the stair layer features, and define the stair scene based on the stair layer features and the remaining environmental features.

[0023] Optionally, when the stair-climbing multi-legged robot is in a stair scene, collecting a point cloud in the stair scene based on a laser radar, and constructing a first image according to the point cloud in the stair scene; at the same time, collecting a real-time image in the stair scene based on a camera, and constructing a stair stereo model according to the first image and the real-time image, including:

[0024] When the stair-climbing multi-legged robot is in a stair scene, the point cloud in the stair scene is collected based on the lidar;

[0025] Collect multiple point clouds and construct a point cloud set based on the multiple point clouds;

[0026] Based on the abnormality detection of the point cloud set, abnormal point elements are defined, and the abnormal point cloud is optimized to achieve the optimization of the point cloud set;

[0027] The optimized point cloud set is matched to the staircase scene. At this time, a first image is constructed according to the optimized point cloud set.

[0028] Optionally, when the stair-climbing multi-legged robot is in a stair scene, collecting a point cloud in the stair scene based on a laser radar, and constructing a first image according to the point cloud in the stair scene; at the same time, collecting a real-time image in the stair scene based on a camera, and constructing a stair 3D model according to the first image and the real-time image, further comprising:

[0029] Locating the position of the stairs based on the first image;

[0030] The position of the camera is adjusted according to the position of the stairs until the camera is facing the position of the stairs, and the elevation angle of the camera is adjusted according to the inclination of the stairs;

[0031] Collect real-time images in the staircase scene based on the camera;

[0032] The real-time image and the first image are associated, and a three-dimensional model of the stairs is constructed according to the first image and the real-time image.

[0033] Optionally, the step of constructing a coordinate system in the three-dimensional model of the stairs, recording the position of the stair-climbing multi-legged robot, and collecting posture data of the stair-climbing multi-legged robot when climbing the stairs includes:

[0034] Collect staircase stereo models;

[0035] The origin of the staircase stereo model is located based on the staircase stereo model, and a coordinate system is constructed based on the origin and the staircase stereo model. At this time, the inclination direction of the staircase in the staircase stereo model is introduced, and the inclination direction of the staircase is used as the X-axis direction in the coordinate system. At the same time, the interval of each value in the X-axis is defined according to the relative distance between each staircase layer;

[0036] When the stair-climbing multi-legged robot is on the stairs, the stair-climbing multi-legged robot is integrated into the staircase three-dimensional model;

[0037] Record the location of the stair-climbing multi-legged robot and determine the location coordinates of the stair-climbing multi-legged robot;

[0038] Collecting posture data of the stair-climbing multi-legged robot when climbing stairs, defining the force condition of the stair-climbing multi-legged robot based on the posture data, and associating the force condition with the position coordinates of the stair-climbing multi-legged robot;

[0039] In the coordinate system, the posture of the stair-climbing multi-legged robot is decomposed according to the force conditions, and the degree of deflection of the stair-climbing multi-legged robot in all directions is controlled.

[0040] Optionally, the posture center of gravity of the stair-climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot, including:

[0041] Freeze-frame posture data;

[0042] The posture center of gravity of the stair-climbing multi-legged robot is defined based on the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically monitored;

[0043] Collect the position of the center of gravity of the stair-climbing multi-legged robot;

[0044] Correlation is performed based on the position of the center of gravity of the posture and the stair layer data recorded by the stair three-dimensional model;

[0045] Define the center of gravity balance range based on the position of the center of gravity of the posture and the stair layer data;

[0046] A dynamic comparison is performed based on the center of gravity balance range and the position of the posture center of gravity. At the same time, the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair 3D model to maintain the dynamic balance of the stair-climbing multi-legged robot.

[0047] Optionally, when the building-climbing multi-legged robot detects an obstacle, triggering an obstacle avoidance action of the building-climbing multi-legged robot based on the type of the obstacle, and triggering dynamic adjustment of the building-climbing path, includes:

[0048] Record the stair-climbing movements of the multi-legged robot in real time and detect obstacles in the surrounding area;

[0049] Collect detection images and perform dynamic recognition based on the detection images to define obstacles; obstacles include empty areas of stairs, objects on the staircase, and the front end of the staircase;

[0050] Match the corresponding obstacle type according to the obstacle.

[0051] Optionally, when the building-climbing multi-legged robot detects an obstacle, triggering an obstacle avoidance action of the building-climbing multi-legged robot based on the type of the obstacle, and triggering dynamic adjustment of the building-climbing path, further includes:

[0052] If there are multiple obstacles, they are associated based on their types and an obstacle set is constructed. At this time, the obstacle set is dynamically adjusted as the stair-climbing multi-legged robot climbs the stairs;

[0053] The obstacle area enclosed by each obstacle is defined according to the obstacle set, and the obstacle area and the position of the stair-climbing multi-legged robot are dynamically compared;

[0054] If the stair-climbing multi-legged robot is in an obstacle area, the obstacle avoidance action of the stair-climbing multi-legged robot is triggered, and the corresponding action adjustment is made according to the type of obstacle to be dealt with. At the same time, the dynamic adjustment of the stair-climbing path is triggered based on the reversing movement of the stair-climbing multi-legged robot.

[0055] In addition, an embodiment of the present invention further provides a positioning system for a stair-climbing multi-legged robot, the positioning system for a stair-climbing multi-legged robot comprising:

[0056] The area module is used to collect the surrounding environment image of the stair-climbing multi-legged robot and divide the surrounding environment image into multiple areas;

[0057] A stair scene module, used to determine corresponding environmental features according to the identification of multiple environmental areas, and define a stair scene according to the combination of various environmental features;

[0058] The staircase stereo model module is used to collect point clouds in the staircase scene based on the laser radar when the stair-climbing multi-legged robot is in the staircase scene, and construct a first image based on the point clouds in the staircase scene; at the same time, collect real-time images in the staircase scene based on the camera, and construct a staircase stereo model based on the first image and the real-time image;

[0059] The posture module is used to construct a coordinate system in the three-dimensional model of the stairs and record the position of the stair-climbing multi-legged robot. At the same time, it collects the posture data of the stair-climbing multi-legged robot when climbing the stairs.

[0060] A dynamic balance module is used to define the posture center of gravity of the stair-climbing multi-legged robot according to the posture data. The posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot.

[0061] The obstacle avoidance module is used to trigger the obstacle avoidance action of the building-climbing multi-legged robot based on the type of obstacle when the building-climbing multi-legged robot detects an obstacle, and trigger the dynamic adjustment of the building-climbing path.

[0062] In an embodiment of the present invention, through the method in the embodiment of the present invention, multiple environmental areas are divided based on the surrounding environment image, and the stair scene is defined according to the combination of various environmental features, so as to clarify the stair scene and place the climbing multi-legged robot in the stair scene. At the same time, a three-dimensional model of the stairs is constructed according to the first image and the real-time image, and the point cloud in the stair scene collected by the laser radar and the real-time image in the stair scene collected by the camera are fully considered, so as to control the three-dimensional model of the stairs, and control the stair layers of the three-dimensional model of the stairs, so that the climbing multi-legged robot can better perform climbing actions on multiple stair layers. At the same time, the posture center of gravity of the climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the climbing multi-legged robot is dynamically adjusted with the stair layer data recorded by the three-dimensional model of the stairs to maintain the dynamic balance of the climbing multi-legged robot, ensure the climbing stability of the climbing multi-legged robot, and can timely trigger the adjustment and action of the posture center of gravity of the multi-legged robot. In addition, the obstacle avoidance action of the climbing multi-legged robot is triggered based on the type of obstacle, and the dynamic adjustment of the climbing path is triggered. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 is a flow chart of a positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0065] Figure 2 is a flow chart of S11 in the positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0066] Figure 3 is a flow chart of S12 in the positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0067] Figure 4is a schematic diagram of the flow of S13 in the positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0068] Figure 5 is a flow chart of S14 in the positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0069] Figure 6 is a flow chart of S15 in the positioning method for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0070] Figure 7 Schematic diagram of the structure of a positioning system for a stair-climbing multi-legged robot in an embodiment of the present invention;

[0071] Figure 8 The figure is a hardware diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] Example

[0074] See also Figures 1 to 8 , a positioning method for a multi-legged robot for climbing stairs, applied to a positioning scenario for a multi-legged robot for climbing stairs; the positioning method for a multi-legged robot for climbing stairs includes:

[0075] Step S11: collecting an image of the surrounding environment of the stair-climbing multi-legged robot, and dividing the surrounding environment into multiple areas according to the image;

[0076] Step S12: determining corresponding environmental features according to the identification of multiple environmental areas, and defining a staircase scene according to a combination of the environmental features;

[0077] Step S13: when the stair-climbing multi-legged robot is in a stair scene, collecting point clouds in the stair scene based on a laser radar, and constructing a first image based on the point clouds in the stair scene; at the same time, collecting real-time images in the stair scene based on a camera, and constructing a three-dimensional model of the stair according to the first image and the real-time image;

[0078] Step S14: constructing a coordinate system in the three-dimensional model of the stairs, and recording the position of the stair-climbing multi-legged robot, and at the same time, collecting posture data of the stair-climbing multi-legged robot when climbing the stairs;

[0079] Step S15: defining the posture center of gravity of the stair-climbing multi-legged robot according to the posture data, and dynamically adjusting the posture center of gravity of the stair-climbing multi-legged robot according to the stair layer data recorded by the stair 3D model to maintain the dynamic balance of the stair-climbing multi-legged robot;

[0080] Step S16: If the building-climbing multi-legged robot detects an obstacle, an obstacle avoidance action of the building-climbing multi-legged robot is triggered based on the type of obstacle, and a dynamic adjustment of the building-climbing path is triggered.

[0081] In an embodiment of the present invention, through the method in the embodiment of the present invention, multiple environmental areas are divided based on the surrounding environment image, and the stair scene is defined according to the combination of various environmental features, so as to clarify the stair scene and place the climbing multi-legged robot in the stair scene. At the same time, a three-dimensional model of the stairs is constructed according to the first image and the real-time image, and the point cloud in the stair scene collected by the laser radar and the real-time image in the stair scene collected by the camera are fully considered, so as to control the three-dimensional model of the stairs, and control the stair layers of the three-dimensional model of the stairs, so that the climbing multi-legged robot can better perform climbing actions on multiple stair layers. At the same time, the posture center of gravity of the climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the climbing multi-legged robot is dynamically adjusted with the stair layer data recorded by the three-dimensional model of the stairs to maintain the dynamic balance of the climbing multi-legged robot, ensure the climbing stability of the climbing multi-legged robot, and can timely trigger the adjustment and action of the posture center of gravity of the multi-legged robot. In addition, the obstacle avoidance action of the climbing multi-legged robot is triggered based on the type of obstacle, and the dynamic adjustment of the climbing path is triggered.

[0082] In step S11, an image of the surrounding environment of the stair-climbing multi-legged robot is collected, and a plurality of environmental areas are divided according to the image of the surrounding environment;

[0083] In the specific implementation process of the present invention, the specific steps may be:

[0084] S111: The building-climbing multi-legged robot takes pictures in all directions and collects a plurality of images, where the plurality of images are respectively in different directions of the building-climbing multi-legged robot;

[0085] S112: constructing a surrounding environment image of the building-climbing multi-legged robot according to the multiple images and the center position of the building-climbing multi-legged robot;

[0086] S113: highlighting contour lines based on the surrounding environment image, and constructing multiple closed-loop areas of the surrounding environment image according to closed loops of the contour lines;

[0087] S114: Divide the surrounding environment image based on the closed-loop area and divide it into multiple environment areas. At this time, define a coherence coefficient based on two adjacent closed-loop areas. If the coherence coefficient is greater than a preset coherence coefficient threshold, merge the two adjacent closed-loop areas.

[0088] In an embodiment of the present application, based on the fact that the building-climbing multi-legged robot shoots in all directions and collects multiple images, the multiple images are respectively located at different directions of the building-climbing multi-legged robot. Shooting in all directions of the building-climbing multi-legged robot is introduced, and the multiple images are presented in different directions to facilitate compatibility with considerations in multiple directions, thereby making full use of the multiple images for the next step of processing.

[0089] Furthermore, an image of the surrounding environment of the stair-climbing multi-legged robot is constructed based on multiple images and the center position of the stair-climbing multi-legged robot, so as to facilitate association between the multiple images and the center position of the stair-climbing multi-legged robot, thereby defining the image of the surrounding environment of the stair-climbing multi-legged robot based on the synthesis of the multiple images and the center position of the stair-climbing multi-legged robot, thereby ensuring the accuracy of the image of the surrounding environment of the stair-climbing multi-legged robot.

[0090] At the same time, further image processing is performed on the surrounding environment image. At this time, the contour lines are highlighted based on the surrounding environment image, and multiple closed-loop areas of the surrounding environment image are constructed according to the closed loops of the contour lines, so as to facilitate the management and control of the multiple closed-loop areas. Therefore, the surrounding environment image is divided based on the closed-loop areas, and multiple environmental areas are divided. At this time, a coherence coefficient is defined based on two adjacent closed-loop areas. If the coherence coefficient is greater than a preset coherence coefficient threshold, the two adjacent closed-loop areas are merged.

[0091] In step S12, corresponding environmental features are determined according to the identification of multiple environmental areas, and a staircase scene is defined according to a combination of the environmental features;

[0092] In the specific implementation process of the present invention, the specific steps may be:

[0093] S121: freeze multiple environmental areas, and define relative positions between the multiple environmental areas;

[0094] S122: Associating multiple environmental regions and environmental learning models, and synchronously identifying the multiple environmental regions based on the environmental learning model to output a first shape parameter;

[0095] S123: defining a first position parameter according to the relative positions between the plurality of environmental areas;

[0096] S124: Determine a corresponding environmental feature according to the first shape parameter and the first position parameter;

[0097] S125: Collect various environmental features, and define a stair scene based on the combination of various environmental features. At this time, filter the stair layer features according to the combination of various environmental features, associate the remaining environmental features with the stair layer features, and define the stair scene based on the stair layer features and the remaining environmental features.

[0098] In an embodiment of the present application, multiple environmental areas are frozen, and the relative positions between the multiple environmental areas are defined, so as to introduce the relative positions between the multiple environmental areas, thereby further controlling the relative positions between the multiple environmental areas.

[0099] At the same time, multiple environmental areas and environmental learning models are associated, and multiple environmental areas are synchronously identified based on the environmental learning model to output a first shape parameter, thereby performing parameterized processing on the environmental area, so as to input multiple environmental areas into the environmental learning model and output the first shape parameter in the environmental learning model. Optionally, the environmental learning model is trained based on previous environmental areas and shape parameters.

[0100] Furthermore, a first position parameter is defined according to the relative position between multiple environmental areas; corresponding environmental features are determined according to the first shape parameter and the first position parameter; various environmental features are collected, and a stair scene is defined based on a combination of various environmental features. At this time, the stair layer features are screened according to the combination of various environmental features, the remaining environmental features are associated with the stair layer features, and the stair scene is defined based on the stair layer features and the remaining environmental features, so as to control the stair scene, and then control the progress of the stair scene in multiple dimensions.

[0101] In step S13, when the stair-climbing multi-legged robot is in a stair scene, a point cloud in the stair scene is collected based on a laser radar, and a first image is constructed based on the point cloud in the stair scene; at the same time, a real-time image in the stair scene is collected based on a camera, and a three-dimensional model of the stair is constructed based on the first image and the real-time image;

[0102] In the specific implementation process of the present invention, the specific steps may be:

[0103] S131: When the stair-climbing multi-legged robot is in a stair scene, collecting a point cloud in the stair scene based on a laser radar;

[0104] S132: collecting multiple point clouds, and constructing a point cloud set according to the multiple point clouds;

[0105] S133: defining abnormal point elements based on abnormality detection of the point cloud set, and optimizing the abnormal point cloud to achieve optimization of the point cloud set;

[0106] S134: matching the optimized point cloud set to the staircase scene, and at this time, constructing a first image according to the optimized point cloud set;

[0107] S135: Locating the position of the stairs based on the first image;

[0108] S136: triggering the position adjustment of the camera according to the position of the stairs until the camera faces the position of the stairs, and adjusting the elevation angle of the camera according to the inclination of the stairs;

[0109] S137: Collecting a real-time image in the staircase scene based on a camera;

[0110] S138: Associating the real-time image with the first image, and constructing a three-dimensional model of the stairs according to the first image and the real-time image.

[0111] In an embodiment of the present application, when the stair-climbing multi-legged robot is in a stair scene, a point cloud in the stair scene is collected based on a lidar to facilitate control of the point cloud in the stair scene. At the same time, multiple point clouds are collected, and a point cloud set is constructed based on the multiple point clouds. Abnormal point elements are defined based on abnormality detection of the point cloud set, and the abnormal point cloud is optimized to achieve optimization of the point cloud set, thereby ensuring control of the point cloud set and ensuring the accuracy of the point cloud set.

[0112] Furthermore, the optimized point cloud set is matched to the stair scene. At this time, a first image is constructed according to the optimized point cloud set, so as to control the first image, and then the position of the stairs is located based on the first image, so as to control the position of the stairs. At the same time, the position adjustment of the camera is triggered according to the position of the stairs until the camera is facing the position of the stairs, and the elevation angle of the camera is adjusted according to the inclination of the stairs, so as to ensure the shooting angle of the camera.

[0113] Therefore, a real-time image of the stair scene is collected based on a camera; the real-time image and the first image are associated, and image operations are performed based on the real-time image and the first image, so as to construct a three-dimensional model of the staircase according to the first image and the real-time image.

[0114] S14: constructing a coordinate system in the three-dimensional model of the stairs, and recording the position of the stair-climbing multi-legged robot, and at the same time, collecting posture data of the stair-climbing multi-legged robot when climbing the stairs;

[0115] In the specific implementation process of the present invention, the specific steps may be:

[0116] S141: Collect the three-dimensional model of stairs;

[0117] S142: locating the origin of the staircase 3D model based on the staircase 3D model, and constructing a coordinate system based on the origin and the staircase 3D model. At this time, the inclination direction of the staircase in the staircase 3D model is introduced, and the inclination direction of the staircase is used as the X-axis direction in the coordinate system. At the same time, the interval of each value in the X-axis is defined according to the relative distance between each staircase layer;

[0118] S143: When the stair-climbing multi-legged robot is on the staircase, integrating the stair-climbing multi-legged robot into the staircase three-dimensional model;

[0119] S144: Record the location of the stair-climbing multi-legged robot and determine the location coordinates of the stair-climbing multi-legged robot;

[0120] S145: collecting posture data of the stair-climbing multi-legged robot when climbing stairs, defining a force condition of the stair-climbing multi-legged robot based on the posture data, and associating the force condition with the position coordinates of the stair-climbing multi-legged robot;

[0121] S146: In the coordinate system, posture decomposition is performed according to the force conditions of the stair-climbing multi-legged robot, and the degree of deflection of the stair-climbing multi-legged robot in various directions is controlled.

[0122] In an embodiment of the present application, a three-dimensional model of the stairs is collected; the origin of the three-dimensional model of the stairs is located based on the three-dimensional model of the stairs, and a coordinate system is constructed based on the origin and the three-dimensional model of the stairs. At this time, the inclination direction of the stairs in the three-dimensional model of the stairs is introduced, and the inclination direction of the stairs is used as the X-axis direction in the coordinate system. At the same time, the interval of each value in the X-axis is defined according to the relative distance between each stair layer, so as to construct a corresponding relationship between the inclination direction of the stairs in the three-dimensional model of the stairs and the X-axis direction, so as to facilitate the deep integration of the three-dimensional model of the stairs with the coordinate system, thereby ensuring the adaptability of the coordinate system.

[0123] At this time, when the stair-climbing multi-legged robot is on the stairs, the stair-climbing multi-legged robot is integrated into the stair-climbing three-dimensional model; the position of the stair-climbing multi-legged robot is recorded, and the position coordinates of the stair-climbing multi-legged robot are determined, so as to clarify the position coordinates of the stair-climbing multi-legged robot, thereby ensuring the accuracy of the position of the stair-climbing multi-legged robot.

[0124] At the same time, the posture data of the stair-climbing multi-legged robot when climbing stairs is collected, the force condition of the stair-climbing multi-legged robot is defined based on the posture data, and the force condition is associated with the position coordinates of the stair-climbing multi-legged robot; in the coordinate system, the posture decomposition is performed according to the force condition of the stair-climbing multi-legged robot, and the degree of deflection of the stair-climbing multi-legged robot in all directions is controlled to ensure the stability of the stair-climbing multi-legged robot during the climbing process.

[0125] S15: defining a posture center of gravity of the stair-climbing multi-legged robot according to the posture data, and dynamically adjusting the posture center of gravity of the stair-climbing multi-legged robot according to the stair layer data recorded by the stair 3D model to maintain the dynamic balance of the stair-climbing multi-legged robot;

[0126] In the specific implementation process of the present invention, the specific steps may be:

[0127] S151: freeze posture data;

[0128] S152: defining the posture center of gravity of the stair-climbing multi-legged robot based on the posture data, and dynamically monitoring the posture center of gravity of the stair-climbing multi-legged robot;

[0129] S153: collecting the position of the center of gravity of the stair-climbing multi-legged robot;

[0130] S154: Associating based on the position of the center of gravity of the posture and the stair layer data recorded by the stair 3D model;

[0131] S155: defining a center of gravity balance range according to the position of the center of gravity of the posture and the stair layer data;

[0132] S156: Dynamically compare the center of gravity balance range with the position of the posture center of gravity. At the same time, the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair 3D model to maintain the dynamic balance of the stair-climbing multi-legged robot.

[0133] In an embodiment of the present application, posture data is frozen; the posture center of gravity of the stair-climbing multi-legged robot is defined based on the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically monitored to facilitate the control of the posture center of gravity of the stair-climbing multi-legged robot, thereby ensuring the accuracy of the posture center of gravity of the stair-climbing multi-legged robot, and multiple processing is performed through the posture data to define the posture center of gravity of the stair-climbing multi-legged robot.

[0134] In step S16, if the building-climbing multi-legged robot detects an obstacle, an obstacle avoidance action of the building-climbing multi-legged robot is triggered based on the type of obstacle, and a dynamic adjustment of the building-climbing path is triggered;

[0135] In the specific implementation process of the present invention, the climbing action of the stair-climbing multi-legged robot is recorded in real time, and obstacles are detected in the surrounding area; detection images are collected, and dynamic recognition is performed based on the detection images to define obstacles; obstacles include empty stair areas, objects on the stair layers, and the front end of the stair layers;

[0136] At this time, the type of the corresponding obstacle is matched according to the obstacle; if there are multiple obstacles, they are associated based on the types of the multiple obstacles, and an obstacle set is constructed. At this time, the obstacle set is dynamically adjusted as the stair-climbing multi-legged robot climbs the stairs; the obstacle area enclosed by each obstacle is defined according to the obstacle set, and the obstacle area and the position of the stair-climbing multi-legged robot are dynamically compared;

[0137] In addition, if the stair-climbing multi-legged robot is in an obstacle area, the obstacle avoidance action of the stair-climbing multi-legged robot is triggered, and the corresponding action is adjusted according to the type of obstacle to be dealt with. At the same time, the dynamic adjustment of the stair-climbing path is triggered based on the reversing movement of the stair-climbing multi-legged robot.

[0138] In an embodiment of the present invention, through the method in the embodiment of the present invention, multiple environmental areas are divided based on the surrounding environment image, and the stair scene is defined according to the combination of various environmental features, so as to clarify the stair scene and place the climbing multi-legged robot in the stair scene. At the same time, a three-dimensional model of the stairs is constructed according to the first image and the real-time image, and the point cloud in the stair scene collected by the laser radar and the real-time image in the stair scene collected by the camera are fully considered, so as to control the three-dimensional model of the stairs, and control the stair layers of the three-dimensional model of the stairs, so that the climbing multi-legged robot can better perform climbing actions on multiple stair layers. At the same time, the posture center of gravity of the climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the climbing multi-legged robot is dynamically adjusted with the stair layer data recorded by the three-dimensional model of the stairs to maintain the dynamic balance of the climbing multi-legged robot, ensure the climbing stability of the climbing multi-legged robot, and can timely trigger the adjustment and action of the posture center of gravity of the multi-legged robot. In addition, the obstacle avoidance action of the climbing multi-legged robot is triggered based on the type of obstacle, and the dynamic adjustment of the climbing path is triggered.

[0139] Example

[0140] See also Figure 7 , Figure 7 It is a schematic diagram of the structural composition of a positioning system for a stair-climbing multi-legged robot in an embodiment of the present invention.

[0141] like Figure 7 As shown, a positioning system for a stair-climbing multi-legged robot, the positioning system for a stair-climbing multi-legged robot comprises:

[0142] The area module 21 is used to collect the surrounding environment image of the stair-climbing multi-legged robot and divide the surrounding environment image into multiple areas;

[0143] A stair scene module 22, for determining corresponding environmental features according to the identification of multiple environmental areas, and defining a stair scene according to a combination of the environmental features;

[0144] The staircase stereo model module 23 is used to collect point clouds in the staircase scene based on the laser radar when the stair-climbing multi-legged robot is in the staircase scene, and construct a first image according to the point clouds in the staircase scene; at the same time, collect a real-time image in the staircase scene based on the camera, and construct a staircase stereo model according to the first image and the real-time image;

[0145] The data collection module 24 is used to construct a coordinate system in the three-dimensional model of the stairs, and record the position of the stair-climbing multi-legged robot, and at the same time, collect the posture data of the stair-climbing multi-legged robot when climbing the stairs;

[0146] The dynamic balance module 25 is used to define the posture center of gravity of the stair-climbing multi-legged robot according to the posture data. The posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot.

[0147] The obstacle avoidance module 26 is used to trigger the obstacle avoidance action of the building-climbing multi-legged robot based on the type of obstacle when the building-climbing multi-legged robot detects an obstacle, and trigger the dynamic adjustment of the building-climbing path.

[0148] Example

[0149] See also Figure 8 , refer to the following Figure 8 The electronic device 40 according to this embodiment of the present invention will be described. Figure 8 The electronic device 40 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0150] like Figure 8 As shown, the electronic device 40 is in the form of a general computing device. The components of the electronic device 40 may include but are not limited to: at least one processing unit 41, at least one storage unit 42, and a bus 43 connecting different system components (including the storage unit 42 and the processing unit 41).

[0151] The storage unit stores program codes, which can be executed by the processing unit 41, so that the processing unit 41 executes the steps according to various exemplary embodiments of the present invention described in the above “Embodiment Method” section of this specification.

[0152] The storage unit 42 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0153] The storage unit 42 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0154] Bus 43 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0155] The electronic device 40 may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 40, and / or any device that enables the electronic device 40 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. Furthermore, the electronic device 40 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 45. Figure 8 As shown, the network adapter 45 communicates with other modules of the electronic device 40 via the bus 43. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup planning systems.

[0156] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0157] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. In addition, it stores computer program instructions, and when the computer program instructions are executed by a computer, the computer executes the above method.

[0158] In addition, the positioning method and system for the stair-climbing multi-legged robot provided in the embodiments of the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in the field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A positioning method for a stair-climbing multi-legged robot, characterized in that: Applied to the positioning scenario of multi-legged robots climbing stairs; The positioning method for the stair-climbing multi-legged robot comprises: Collecting the surrounding environment image of the stair-climbing multi-legged robot, and dividing the surrounding environment image into multiple areas; Determine corresponding environmental features according to the identification of multiple environmental areas, and define a staircase scene according to the combination of various environmental features; When the stair-climbing multi-legged robot is in a stair scene, a point cloud in the stair scene is collected based on a laser radar, and a first image is constructed according to the point cloud in the stair scene; at the same time, a real-time image in the stair scene is collected based on a camera, and a three-dimensional model of the stair is constructed according to the first image and the real-time image; Construct a coordinate system on the three-dimensional model of the stairs, and record the position of the stair-climbing multi-legged robot. At the same time, collect the posture data of the stair-climbing multi-legged robot when climbing the stairs. The posture center of gravity of the stair-climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot; If the stair-climbing multi-legged robot detects an obstacle, the stair-climbing multi-legged robot's obstacle avoidance action is triggered based on the type of obstacle, and the dynamic adjustment of the stair-climbing path is triggered.

2. The positioning method for a stair-climbing multi-legged robot according to claim 1, characterized in that: The collecting of the surrounding environment image of the stair-climbing multi-legged robot and dividing the surrounding environment image into multiple environmental areas include: The multi-legged robot for climbing stairs takes pictures in all directions and collects multiple images, wherein the multiple images are respectively at different directions of the multi-legged robot for climbing stairs; Constructing a surrounding environment image of the building-climbing multi-legged robot according to the multiple images and the center position of the building-climbing multi-legged robot; Highlighting the contour line based on the surrounding environment image, and constructing multiple closed-loop areas of the surrounding environment image according to the closed loop of the contour line; The surrounding environment image is divided based on the closed-loop area, and multiple environment areas are divided. At this time, a coherence coefficient is defined based on two adjacent closed-loop areas. If the coherence coefficient is greater than a preset coherence coefficient threshold, the two adjacent closed-loop areas are merged.

3. The positioning method for a stair-climbing multi-legged robot according to claim 2, characterized in that: The step of determining corresponding environmental features according to the identification of multiple environmental areas and defining a staircase scene according to a combination of the environmental features includes: Freeze multiple environmental areas and define the relative positions between the multiple environmental areas; Associating a plurality of environmental regions and an environmental learning model, and synchronously identifying the plurality of environmental regions based on the environmental learning model to output a first shape parameter; defining a first position parameter according to relative positions between the plurality of environmental regions; Determine a corresponding environmental feature according to the first shape parameter and the first position parameter; Collect various environmental features, and define the stair scene based on the combination of various environmental features. At this time, filter the stair layer features according to the combination of various environmental features, associate the remaining environmental features with the stair layer features, and define the stair scene based on the stair layer features and the remaining environmental features.

4. The positioning method for a stair-climbing multi-legged robot according to claim 1, characterized in that: The stair-climbing multi-legged robot is in a stair scene, collecting a point cloud in the stair scene based on a laser radar, and constructing a first image according to the point cloud in the stair scene; At the same time, based on the camera collecting the real-time image in the stair scene, a stair stereo model is constructed according to the first image and the real-time image, including: When the stair-climbing multi-legged robot is in a stair scene, the point cloud in the stair scene is collected based on the lidar; Collect multiple point clouds and construct a point cloud set based on the multiple point clouds; Based on the abnormality detection of the point cloud set, abnormal point elements are defined, and the abnormal point cloud is optimized to achieve the optimization of the point cloud set; The optimized point cloud set is matched to the staircase scene. At this time, a first image is constructed according to the optimized point cloud set.

5. The positioning method for a stair-climbing multi-legged robot according to claim 4, characterized in that: The stair-climbing multi-legged robot is in a stair scene, collecting point clouds in the stair scene based on a laser radar, and constructing a first image according to the point clouds in the stair scene; at the same time, collecting a real-time image in the stair scene based on a camera, and constructing a stair 3D model according to the first image and the real-time image, further comprising: Locating the position of the stairs based on the first image; The position of the camera is adjusted according to the position of the stairs until the camera is facing the position of the stairs, and the elevation angle of the camera is adjusted according to the inclination of the stairs; Collect real-time images in the staircase scene based on the camera; The real-time image and the first image are associated, and a three-dimensional model of the stairs is constructed according to the first image and the real-time image.

6. The positioning method for a stair-climbing multi-legged robot according to claim 1, characterized in that: The coordinate system is constructed on the three-dimensional model of the stairs, and the position of the stair-climbing multi-legged robot is recorded, and at the same time, the posture data of the stair-climbing multi-legged robot when climbing the stairs is collected, including: Collect staircase stereo models; The origin of the staircase stereo model is located based on the staircase stereo model, and a coordinate system is constructed based on the origin and the staircase stereo model. At this time, the inclination direction of the staircase in the staircase stereo model is introduced, and the inclination direction of the staircase is used as the X-axis direction in the coordinate system. At the same time, the interval of each value in the X-axis is defined according to the relative distance between each staircase layer; When the stair-climbing multi-legged robot is on the stairs, the stair-climbing multi-legged robot is integrated into the staircase three-dimensional model; Record the location of the stair-climbing multi-legged robot and determine the location coordinates of the stair-climbing multi-legged robot; Collecting posture data of the stair-climbing multi-legged robot when climbing stairs, defining the force condition of the stair-climbing multi-legged robot based on the posture data, and associating the force condition with the position coordinates of the stair-climbing multi-legged robot; In the coordinate system, the posture of the stair-climbing multi-legged robot is decomposed according to the force conditions, and the degree of deflection of the stair-climbing multi-legged robot in all directions is controlled.

7. The positioning method for a stair-climbing multi-legged robot according to claim 6, characterized in that: The posture center of gravity of the stair-climbing multi-legged robot is defined according to the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot, including: Freeze-frame posture data; The posture center of gravity of the stair-climbing multi-legged robot is defined based on the posture data, and the posture center of gravity of the stair-climbing multi-legged robot is dynamically monitored; Collect the position of the center of gravity of the stair-climbing multi-legged robot; Correlation is performed based on the position of the center of gravity of the posture and the stair layer data recorded by the stair three-dimensional model; Define the center of gravity balance range based on the position of the center of gravity of the posture and the stair layer data; A dynamic comparison is performed based on the center of gravity balance range and the position of the posture center of gravity. At the same time, the posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair 3D model to maintain the dynamic balance of the stair-climbing multi-legged robot.

8. The positioning method for a stair-climbing multi-legged robot according to claim 7, characterized in that: If the stair-climbing multi-legged robot detects an obstacle, the stair-climbing multi-legged robot is triggered to avoid the obstacle based on the type of the obstacle, and the dynamic adjustment of the stair-climbing path is triggered, including: Record the stair-climbing movements of the multi-legged robot in real time and detect obstacles in the surrounding area; Collect detection images and perform dynamic recognition based on the detection images to define obstacles; obstacles include empty areas of stairs, objects on the staircase, and the front end of the staircase; Match the corresponding obstacle type according to the obstacle.

9. The positioning method for a stair-climbing multi-legged robot according to claim 8, characterized in that: If the building-climbing multi-legged robot detects an obstacle, the building-climbing multi-legged robot triggers an obstacle avoidance action based on the type of the obstacle, and triggers dynamic adjustment of the building-climbing path, further comprising: If there are multiple obstacles, they are associated based on their types and an obstacle set is constructed. At this time, the obstacle set is dynamically adjusted as the stair-climbing multi-legged robot climbs the stairs; The obstacle area enclosed by each obstacle is defined according to the obstacle set, and the obstacle area and the position of the stair-climbing multi-legged robot are dynamically compared; If the stair-climbing multi-legged robot is in an obstacle area, the obstacle avoidance action of the stair-climbing multi-legged robot is triggered, and the corresponding action adjustment is made according to the type of obstacle to be dealt with. At the same time, the dynamic adjustment of the stair-climbing path is triggered based on the reversing movement of the stair-climbing multi-legged robot.

10. A positioning system for a stair-climbing multi-legged robot, characterized in that: The positioning system for the stair-climbing multi-legged robot is applied to the positioning method for the stair-climbing multi-legged robot as claimed in any one of claims 1 to 9, and the positioning system for the stair-climbing multi-legged robot comprises: The area module is used to collect the surrounding environment image of the stair-climbing multi-legged robot and divide the surrounding environment image into multiple areas; A stair scene module, used to determine corresponding environmental features according to the identification of multiple environmental areas, and define a stair scene according to the combination of various environmental features; The staircase stereo model module is used to collect point clouds in the staircase scene based on the laser radar when the stair-climbing multi-legged robot is in the staircase scene, and construct a first image based on the point clouds in the staircase scene; at the same time, collect real-time images in the staircase scene based on the camera, and construct a staircase stereo model based on the first image and the real-time image; The posture module is used to construct a coordinate system in the three-dimensional model of the stairs and record the position of the stair-climbing multi-legged robot. At the same time, it collects the posture data of the stair-climbing multi-legged robot when climbing the stairs. A dynamic balance module is used to define the posture center of gravity of the stair-climbing multi-legged robot according to the posture data. The posture center of gravity of the stair-climbing multi-legged robot is dynamically adjusted according to the stair layer data recorded by the stair three-dimensional model to maintain the dynamic balance of the stair-climbing multi-legged robot. The obstacle avoidance module is used to trigger the obstacle avoidance action of the building-climbing multi-legged robot based on the type of obstacle when the building-climbing multi-legged robot detects an obstacle, and trigger the dynamic adjustment of the building-climbing path.