WO2022134680A1 - Method and device for robot positioning, storage medium, and electronic device - Google Patents
Method and device for robot positioning, storage medium, and electronic device Download PDFInfo
- Publication number
- WO2022134680A1 WO2022134680A1 PCT/CN2021/119172 CN2021119172W WO2022134680A1 WO 2022134680 A1 WO2022134680 A1 WO 2022134680A1 CN 2021119172 W CN2021119172 W CN 2021119172W WO 2022134680 A1 WO2022134680 A1 WO 2022134680A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- robot
- positioning
- movement
- environment
- navigation path
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 120
- 230000008569 process Effects 0.000 claims abstract description 68
- 230000007613 environmental effect Effects 0.000 claims description 157
- 238000004590 computer program Methods 0.000 claims description 21
- 238000013507 mapping Methods 0.000 description 18
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0231—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0257—Control of position or course in two dimensions specially adapted to land vehicles using a radar
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/246—Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/024—Guidance services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
Definitions
- the present disclosure relates to the field of robot technology, and in particular, to a robot positioning method, device, storage medium and electronic device.
- the indoor robot needs to scan and map the environment, and then match the environmental characteristics currently collected by the sensor with the environmental characteristics collected by the sensor when the map is built to determine the position and posture of the robot in space, that is, Realize the positioning of the robot.
- the currently collected environmental features cannot match the environmental features collected during mapping, or the matching degree is lower than the matching threshold, resulting in the problem that the robot cannot be accurately positioned.
- the related art usually optimizes the environmental features collected by the sensors, for example, the environmental features collected by the sensors can be denoised, etc., to improve the feature matching degree.
- the environmental features collected by the sensors can be denoised, etc., to improve the feature matching degree.
- a simple environment such as a hotel corridor with a simple environment for delivering items
- due to repeated and sparse environmental features even if the environmental features are optimized, a better feature matching result may not be obtained, thus affecting the robot. accurate positioning.
- the purpose of the present disclosure is to provide a robot positioning method, device, storage medium and electronic equipment, so as to provide a new robot positioning method.
- the present disclosure provides a method for positioning a robot, including:
- the robot is controlled to swing left and right along the centerline of the positioning and navigation path during the traveling process, so as to adjust the environment for collecting the environment.
- the scanning range of the sensor of the characteristic information
- the position of the robot is determined according to the environmental characteristics collected by the sensor at the position of the robot after the adjustment of the scanning range.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process includes:
- the robot is controlled to move in an S-shape along the centerline of the positioning and navigation path.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process includes:
- the robot is controlled to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, wherein, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
- controlling the robot to perform rocking movement from side to side with a first movement range along the centerline of the positioning and navigation path during the traveling process including:
- the first movement range is determined according to the density of the sample environmental features at the location of the robot and the first preset correspondence between the density of the environmental features and the movement range, and the robot is controlled to navigate along the positioning The center line of the path performs rocking side-to-side rocking movement at the first movement amplitude during the travel.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process including:
- the second movement range is determined according to the density of the sample environment features at the location of the robot and the second preset correspondence between the density of the environment features and the movement range, and the robot is controlled to navigate along the positioning The centerline of the path performs a side-to-side rocking movement during travel with a second movement amplitude.
- determining the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range includes:
- the robot is controlled to repeatedly execute the rotation positioning instruction, Until the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position is greater than or equal to the preset threshold, the rotation and positioning instruction is used to control the robot to rotate at the position, and when all When the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position after the robot rotates is less than the preset threshold, the robot is controlled to move forward along the positioning and navigation path to a new position;
- the position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
- the robot is controlled to move according to the obstacle avoidance movement path.
- the present disclosure also provides a robot positioning device, comprising:
- the first control module is used to control the robot to move based on the positioning and navigation path corresponding to the built map, and the built map is based on the sample environment features collected by the robot in the target environment by swinging left and right. rebuilt;
- an acquisition module configured to acquire the actual environmental characteristics of the location of the robot during the movement process, and to determine the sample environmental characteristics corresponding to the location of the robot;
- the second control module is configured to control the robot to swing left and right along the centerline of the positioning and navigation path during traveling when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold , to adjust the scanning range of the sensor used to collect environmental feature information;
- the positioning module is configured to determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
- the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of any one of the methods in the first aspect.
- the present disclosure also provides an electronic device, comprising:
- a processor for executing the computer program in the memory to implement the steps of any one of the methods in the first aspect.
- the present disclosure also provides a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the first aspect The code portion of any one of the methods.
- the robot can obtain more sample environment features by swinging left and right, and in the actual positioning process, if the matching degree between the actual environment features and the sample environment features is less than the preset threshold , then the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used to collect environmental feature information, so as to obtain more actual environmental features.
- both the sample environment features and the actual environment features used for environment feature matching are increased, so the matching degree of the environment features can be improved, so as to achieve more stable robot positioning, and to a certain extent, the accuracy of the robot positioning can be improved.
- Figure 1 is a dense point cloud image of the environment obtained by the robot scanning and mapping the environment
- Figure 2 is a sparse point cloud image of the environment obtained by the robot scanning and mapping the environment
- FIG. 3 is a schematic diagram of a positioning and navigation path obtained by a robot scanning and mapping the environment
- FIG. 4 is a flowchart of a method for positioning a robot according to an exemplary embodiment of the present disclosure
- FIG. 5 is a schematic diagram of a built map in a robot positioning method according to an exemplary embodiment of the present disclosure
- FIG. 6 is a schematic diagram of an obstacle avoidance process in a robot positioning method according to an exemplary embodiment of the present disclosure
- FIG. 7 is a schematic diagram of interaction between a robot body and a server in a method for positioning a robot according to an exemplary embodiment of the present disclosure
- FIG. 8 is a block diagram of a robot positioning device according to an exemplary embodiment of the present disclosure.
- FIG. 9 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
- Fig. 10 is a block diagram of an electronic device according to another exemplary embodiment of the present disclosure.
- SLAM Simultaneous Iocalization and Mapping
- real-time positioning and map construction or concurrent mapping and positioning.
- the problem can be described as: put a robot into an unknown position in an unknown environment, is there a way for the robot to gradually draw a complete map of the environment while moving, the so-called complete map (a consistent map) means that the robot travels without obstacles to every corner of the room accessible.
- position estimation of the robot is required. Specifically, after obtaining the robot position estimate using the robot motion equation, the position of the robot can be corrected using the surrounding environment information obtained by the ranging unit.
- the above correction process is generally realized by extracting environmental features, and then re-observing the position of the features after the robot moves.
- EKF Extended Kalman Filter
- Extended Kalman Filter Extended Kalman Filter
- the features selected in the above process are generally called landmarks, that is, the EKF will continuously estimate the position of the robot and the landmark positions in the surrounding environment.
- the robot As the robot moves, its position will change. At this time, according to the observation of the robot position sensor, the feature points in the observation information are extracted, and then the robot combines the position of the currently observed feature point, the robot motion distance and the position of the feature point before the robot motion through the EKF. Current location and current environment information are estimated.
- the robot needs to first scan and map the environment through single-line or multi-line lidar 3D scanning, visual sensors (including but not limited to binocular vision, TOF and infrared active light cameras, etc.) Environment dense point cloud map, environment sparse point cloud map shown in Figure 2, and navigation path map shown in Figure 3). Then the robot can determine its position and posture in space by matching the environmental features collected by sensors in the environment where the map has been built, that is, to realize the positioning of the robot.
- visual sensors including but not limited to binocular vision, TOF and infrared active light cameras, etc.
- the related art usually optimizes the environmental features collected by the sensors, for example, the environmental features collected by the sensors can be denoised, etc., to improve the feature matching degree.
- the inventor's research found that in a scenario with a simple environment, such as a hotel corridor with a simple environment for delivering items, due to repeated and sparse environmental features, even if the environmental features are optimized, a better feature matching result may not be obtained. , thus affecting the accurate positioning of the robot. Or, in a scene with a complex environment and rich visual features, such as parks and communities where robots need to patrol, due to the complex and rich environmental features, optimizing the environmental features may lose some important environmental features, thereby affecting the accurate positioning of the robot. .
- the related technology optimizes the environmental features without changing the number of collected environmental features to improve the matching degree of the environmental features, which may lead to the inability to obtain a better environment in a scene with a simple or complex environment.
- the result of feature matching, and then the accurate positioning of the robot cannot be achieved.
- the present disclosure proposes a robot positioning method, device, storage medium and electronic device, so as to obtain more environmental feature points for feature matching during the robot positioning process, thereby improving the accuracy of robot positioning and better application Robot positioning requirements in different scenarios.
- Fig. 4 is a flowchart of a method for positioning a robot according to an exemplary embodiment of the present disclosure. 4, the robot positioning method includes:
- Step 401 controlling the robot to move in the target environment based on the positioning and navigation path corresponding to the built map.
- the built map is obtained by reconstructing the map based on the sample environment features collected by the robot in the target environment by swinging left and right.
- Step 402 Acquire the actual environmental characteristics of the location where the robot is located during the moving process, and determine the sample environmental characteristics corresponding to the location where the robot is located.
- Step 403 if the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, then control the robot to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the sensor used for collecting the environment feature information. Scan range.
- Step 404 Determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
- the robot can obtain more sample environment features by swinging left and right, and in the actual positioning process, if the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, Then, the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used for collecting environmental feature information, so as to obtain more actual environmental features.
- both the sample environment features and the actual environment features used for environment feature matching are increased, so the matching degree of the environment features can be improved, so as to achieve more stable robot positioning, and to a certain extent, the accuracy of the robot positioning can be improved.
- the robot may move in the target environment. And in order to obtain more environmental features for mapping (such as environment dense point cloud image and environment sparse point cloud image), the robot can swing left and right in the target environment.
- the head or body part of the robot provided with sensors for collecting environmental features can be controlled to swing left and right, or the whole robot can be controlled to swing left and right in an S-shape, and so on.
- the sensors used to collect environmental features include but are not limited to lidar, depth camera, and millimeter-wave radar, and can be selected according to requirements when the present disclosure is specifically implemented.
- a built map corresponding to the target environment can be obtained, such as the built map shown in FIG. 5 .
- the robot can be controlled to move in the target environment based on the positioning and navigation path corresponding to the built map, and during the movement process, the actual environmental characteristics of the robot's location can be obtained, and the sample environmental characteristics corresponding to the robot's location can be determined at the same time. , so that the subsequent process can realize the positioning of the robot according to the matching of environmental characteristics.
- the robot is controlled to swing left and right along the centerline of the positioning and navigation path during the traveling process, so as to adjust the sensor used for collecting the environment feature information.
- the preset threshold may be set according to an actual scene, which is not limited in this embodiment of the present disclosure.
- the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, which may be that the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold at a certain moment, or it may be the matching between the actual environment feature and the sample environment feature for a continuous period of time.
- the degree is smaller than the preset threshold, etc., which is not limited in this embodiment of the present disclosure.
- both the actual environment feature and the sample environment feature may include multiple environment feature points, and accordingly, the matching degree between the actual environment feature and the sample environment feature may be determined by the number of matched environment feature points in the actual environment feature and the sample environment feature. express.
- the matching degree between the actual environment feature and the sample environment feature may also be determined by other methods in the related art, which is not limited in this embodiment of the present disclosure.
- the positioning navigation path may be shown in FIG. 3 , which is used to represent the movement path of the robot in the target environment.
- the positioning navigation path may correspond to a road with a width in the actual environment, so the center line of the positioning navigation path may be the road center line corresponding to the positioning navigation path.
- the centerline of the positioning navigation path can be determined according to the trajectory during visual SLAM mapping, or the navigation path planned by laser SLAM.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may be controlling the robot as a whole to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process, or it may also be to control the
- the provided sensor for collecting environmental feature information performs a swinging movement from side to side, and so on, which is not limited in this embodiment of the present disclosure.
- the head of the robot when the matching degree between the actual environmental features and the sample environmental features is less than the preset threshold, the head of the robot can be controlled to rotate left and right by several angles to increase the The scanning range of the depth camera is used to obtain more actual environmental features for environmental feature matching to achieve robot positioning.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may be to control the robot to move in an S-shape along the centerline of the positioning and navigation path. That is to say, the whole robot can be controlled to perform left-right S-shaped movement, or the sensor provided on the robot for collecting environmental features can be controlled to perform left-right S-shaped movement, etc., which are not limited in the embodiments of the present disclosure.
- the robot can acquire more sample environment features through S-shaped movement.
- the robot can also obtain more actual environment features through S-shaped movement, which can further improve the matching degree of the sample environment features and the actual environment features, thereby improving the positioning accuracy of the robot.
- controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may also be: when the density of the sample environment features corresponding to the position of the robot is greater than or equal to the preset density, controlling the robot Along the centerline of the positioning and navigation path, the first movement amplitude is used to move left and right during the travel process.
- the robot is controlled along the centerline of the positioning and navigation path to move to the left and right.
- the second movement range performs a left-right rocking movement during traveling, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
- the preset density may be set according to actual conditions, which is not limited in this embodiment of the present disclosure.
- the environment complexity in the target environment can be determined according to the sample environment characteristics collected during map construction. Therefore, in this embodiment of the present disclosure, the complexity of the current environment (that is, the density and sparseness of environmental characteristics) can be determined. Adapt to the magnitude of the robot's left and right rocking movement. Specifically, in the case of complex environment (such as dense, obvious and unobstructed environment features), the robot can move slowly or not at a small amplitude to save energy consumption of the robot. On the other hand, when the environment is simple (such as sparse and inconspicuous environmental features), the amplitude of the robot's left and right swaying movement can be increased to obtain more actual environmental features that match the sample environmental features, so as to achieve more effective position.
- the movement range is used to represent the distance that the robot moves away from the centerline of the navigation path. to more environmental features.
- This embodiment of the present disclosure does not limit the setting of the first movement range and the second movement range, as long as the first movement range is smaller than the second movement range, and in a possible manner, the first movement range may be set to 0.
- the robot is controlled to move left and right with a first movement amplitude along the centerline of the positioning and navigation path during the traveling process, which may be to control the robot to travel along the centerline of the positioning and navigation path with the same first movement amplitude
- the swinging movement is performed left and right; or, according to the density of the sample environment features at the location of the robot, and the first preset correspondence between the density of the environment features and the movement range, determine the first movement range, and control the robot to move along the The center line of the positioning navigation path performs a left-right oscillating movement with a first movement range during traveling.
- the embodiments of the present disclosure provide two ways of controlling the robot to swing left and right along the center line of the positioning and navigation path with the first movement range during the traveling process, so as to better meet the positioning requirements of the robot in different scenarios.
- the first way is to control the robot to swing left and right during the traveling process with the same first movement range, which simplifies the control of the robot.
- the second method is to determine the first movement range of the robot according to the density of environmental characteristics, so that when the density of sample environmental characteristics is greater than or equal to the preset density, the robot can also determine different first movement ranges according to the density of environmental characteristics, Increased flexibility for robot control.
- the robot can be controlled to perform left and right movements of different amplitudes during the travel process according to the density of environmental characteristics of the position. Rocking movement to maximize the sample environment characteristics corresponding to the location. Then, for each position in the target environment where the environmental characteristic density is greater than or equal to the preset density, the environmental characteristic density of the position and the corresponding robot movement range can be recorded, thereby obtaining the first preset correspondence.
- the Set determines the first movement range, and control the robot to move left and right along the center line of the positioning and navigation path with the first movement range, so as to collect more actual environment features for feature matching.
- controlling the robot to perform rocking movement along the centerline of the positioning and navigation path with the second movement amplitude during the traveling process may be: controlling the robot to perform the same second moving amplitude during the traveling process along the centerline of the positioning and navigation path swinging left and right; or, according to the density of the sample environment features at the location where the robot is located, and the second preset correspondence between the density of the environment features and the movement range, determine the second movement range, and control the robot along the positioning and navigation path
- the center line of with a second movement amplitude, moves side-to-side oscillatingly during travel.
- the embodiments of the present disclosure can provide two ways of controlling the robot to swing left and right along the center line of the positioning navigation path with the second movement amplitude during the traveling process, so as to better satisfy the robot positioning in different scenarios. need.
- the first method is to control the robot to swing left and right during the traveling process with the same second movement range, which simplifies the control of the robot.
- the second method is to determine the second moving range of the robot according to the density of environmental features, so that when the density of sample environmental features is less than the preset density, the robot can also determine different second moving ranges according to the density of environmental features, increasing the Flexibility for robot control.
- the robot can be controlled to swing left and right with different amplitudes in the process of traveling according to the density of environmental characteristics of the position. Move to maximize the collection of sample environmental characteristics corresponding to that location. Then, for each position in the target environment where the environmental characteristic density is less than the preset density, the environmental characteristic density of the position and the corresponding robot movement range can be recorded, so as to obtain a second preset corresponding relationship.
- the sample environment characteristic density can correspond to the second preset according to the sample environment characteristic density. relationship, and determine the second movement range, so as to control the robot to perform the left and right range along the center line of the positioning and navigation path with the second movement range, so as to collect more actual environment features for feature matching.
- the robot can be controlled to swing left and right along the center line of the positioning and navigation path through a fixed movement range, which simplifies the positioning control of the robot.
- the corresponding movement range can be determined according to the density of the environmental features, so that the robot can be controlled to swing left and right with different amplitudes during the traveling process along the positioning and navigation path, which increases the control flexibility and can better adapt to different positioning scenarios.
- the scanning range of the sensor used to collect environmental feature information by controlling the robot to swing left and right along the centerline of the positioning and navigation path during travel, that is, after increasing the scanning range of the sensor, If the matching degree between the collected actual environmental characteristics and the sample environmental characteristics is still less than the preset threshold, it can be considered that the matching degree between the actual environmental characteristics and the sample environmental characteristics is smaller than the preset threshold continuously.
- step 404 may be: if the matching degree between the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation and positioning instructions until The matching degree of the environmental features collected by the sensor and the sample environmental features of the corresponding position is greater than or equal to the preset threshold.
- the rotation positioning instruction is used to control the robot to rotate at the position, and when the degree of matching between the environmental characteristics collected by the sensor after the robot rotates and the sample environmental characteristics of the corresponding position is less than a preset threshold, the robot is controlled to move along the positioning and navigation path. before moving to a new location. Finally, the position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
- the robot when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold value, the robot can be controlled to suspend the movement, and the robot can be controlled to repeatedly execute the rotation positioning instruction. Specifically, the robot can be controlled to rotate 360 degrees on the spot to obtain the maximum feature matching probability at the current position. If the probability of the maximum feature matching is less than the preset probability, it means that the degree of matching between the environmental features collected by the sensor and the sample environmental features of the corresponding position after the rotation is still less than the preset threshold, that is, the robot still cannot achieve positioning through feature matching. The robot can then be controlled to move forward along the positioning and navigation path to a new position, and this process is an execution process of the rotation positioning instruction.
- the matching degree between the actual environmental features collected by the robot at the new position and the sample environmental features corresponding to the new position is greater than or equal to the preset threshold, it means that the robot can achieve positioning through the matching of environmental features.
- the position of the robot is determined, that is, the positioning of the robot is realized.
- the preset probability may be set according to an actual situation, which is not limited in this embodiment of the present disclosure.
- the matching degree between the actual environmental features collected by the robot at the new position and the sample environmental features corresponding to the new position is still less than the preset threshold, it means that the robot has moved to the new position.
- the rotation positioning command can be executed again, that is, the robot can be controlled to rotate 360 degrees in a new position, and when the robot rotates, the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position
- control the robot to move forward along the positioning and navigation path to another new position, so as to repeatedly find the position where the robot can be positioned by the environmental features, so as to realize the positioning of the robot.
- the robot In a possible way, taking into account the accidental error, it is also possible to control the robot to continue to move based on inertial motion when the actual environmental characteristics currently collected and the sample environmental characteristics collected during mapping cannot be matched or the matching degree is lower than the preset threshold. At the same time, it continues to match subsequent environmental features.
- the robot is controlled to swing left and right along the center line of the positioning and navigation path during the traveling process to adjust the data used for the collection.
- the scanning range of the sensor for environmental feature information is also possible to control the robot to continue to move based on inertial motion when the actual environmental characteristics currently collected and the sample environmental characteristics collected during mapping cannot be matched or the matching degree is lower than the preset threshold. At the same time, it continues to match subsequent environmental features.
- the robot is controlled to swing left and right along the center line of the positioning and navigation path during the traveling process to adjust the data used for the collection.
- the scanning range of the sensor for environmental feature information is also possible to control the robot to continue to move based on inertial motion when the actual environmental
- the robot When the matching degree between the actual environment features and the sample environment features collected during mapping is smaller than the preset minimum threshold for several consecutive moments, the robot will be controlled along the positioning method by automatically gradually increasing the left and right swaying movement amplitude and reducing the moving speed at the same time.
- the center line of the navigation path is swayed left and right during the traveling process to search for more matching feature points to achieve a higher degree of environmental feature matching, thereby achieving accurate positioning.
- the preset minimum threshold is smaller than the preset threshold, and the preset minimum threshold may be set according to the actual situation, which is not limited in this embodiment of the present disclosure.
- the robot can also be controlled to repeatedly execute the rotation and positioning instructions until the sensor collects
- the degree of matching between the environmental feature and the sample environmental feature of the corresponding position is greater than or equal to a preset threshold.
- the embodiments of the present disclosure can determine the obstacle-free area where the robot can travel during the swinging movement of the robot along the center line of the positioning and navigation path, and determine the obstacle-avoiding movement path of the robot in the obstacle-free area, and then Control the robot to move according to the obstacle avoidance movement path.
- the robot when facing an obstacle, the robot can first find an area where it can continue to travel by swinging left and right to walk the S-shaped route, and plan an obstacle avoidance movement path around the obstacle to return to On the normal positioning navigation path. As shown in Figure 6, the robot can find a feasible obstacle avoidance area by swinging left and right to walk an S-shaped path, and plan a local path to obtain an obstacle avoidance path. The robot can then be controlled to move along the obstacle avoidance path. Referring to FIG. 6 , after the obstacle avoidance path, the robot can move to the normal planned path (that is, the positioning and navigation path determined during mapping) and continue to move, so that the obstacle avoidance function can be realized while improving the positioning accuracy.
- the normal planned path that is, the positioning and navigation path determined during mapping
- any of the above-mentioned robot positioning methods can be applied to a robot, that is, to a controller of the robot.
- a built map corresponding to the target environment can be stored in the memory of the robot.
- the robot can obtain the actual environmental characteristics of its own location, and determine the sample environmental characteristics corresponding to its own location through the stored built map. If the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used to collect the environment feature information. , and finally determine its own position according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
- any one of the above robot positioning methods can be applied to the server.
- the server may store a built map
- the robot may obtain environmental information of its own location through sensors, and extract environmental features from the environmental information through a feature extraction module.
- the server can acquire the actual environmental characteristics corresponding to the position of the robot by receiving the environmental characteristics.
- the server can determine the sample environment characteristics corresponding to the location of the robot through the stored map. Then the server can determine the matching degree between the actual environment feature and the sample environment feature. If the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, the server can send a control instruction to the robot to control the robot along the positioning and navigation path.
- the center line swings left and right during the traveling process to adjust the scanning range of the sensor used to collect environmental feature information.
- the position of the robot is determined according to the environmental features collected by the sensor at the location of the robot after adjusting the scanning range.
- the robot body can send the environmental characteristics collected by the sensor after adjusting the scanning range to the server, so that the server can locate the robot according to the matching degree between the environmental characteristics and the corresponding sample environmental characteristics.
- the present disclosure also provides a robot positioning device, which can become part or all of a robot or a server through software, hardware, or a combination of the two.
- the robot positioning device 800 may include:
- the first control module 801 is used to control the robot to move based on the positioning and navigation path corresponding to the built map.
- the built map is based on the sample environment characteristics collected by the robot in the target environment by swinging left and right. obtained from map reconstruction;
- an acquisition module 802 configured to acquire the actual environmental characteristics of the location where the robot is located during the movement process, and determine the sample environmental characteristics corresponding to the location of the robot;
- the second control module 803 is configured to control the robot to sway from side to side along the centerline of the positioning and navigation path during the traveling process when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold Move to adjust the scanning range of the sensor used to collect environmental feature information;
- the positioning module 804 is configured to determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
- the second control module 803 is used for:
- the robot is controlled to move in an S-shape along the centerline of the positioning and navigation path.
- the second control module 803 is used for:
- the robot is controlled to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, wherein, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
- the second control module 803 is used for:
- the first movement range is determined according to the density of the sample environmental features at the location of the robot and the first preset correspondence between the density of the environmental features and the movement range, and the robot is controlled to navigate along the positioning
- the center line of the path performs a side-to-side rocking movement with a first movement amplitude during the travel.
- the second control module 803 is used for:
- the second movement range is determined according to the density of the sample environment features at the location of the robot and the second preset correspondence between the density of the environment features and the movement range, and the robot is controlled to navigate along the positioning The centerline of the path performs a side-to-side rocking movement during travel with a second movement amplitude.
- the positioning module is used for:
- the robot When the degree of matching between the environmental characteristics collected by the sensor at the location of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation positioning instruction, Until the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position is greater than or equal to the preset threshold, the rotation and positioning instruction is used to control the robot to rotate at the position, and when all When the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position after the robot rotates is less than the preset threshold, the robot is controlled to move forward along the positioning and navigation path to a new position;
- the position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
- the apparatus 800 further includes:
- the determining module is used to determine the obstacle-free area in which the robot can travel during the swinging movement of the robot along the centerline of the positioning and navigation path, and determine the avoidance of the robot in the obstacle-free area. obstacle movement path;
- the third control module is configured to control the robot to move according to the obstacle avoidance movement path.
- an electronic device including:
- the processor is configured to execute the computer program in the memory, so as to implement the steps of any one of the above robot positioning methods.
- the electronic device 900 may include: a processor 901 and a memory 902 .
- the electronic device 900 may also include one or more of a multimedia component 903 , an input/output (I/O) interface 904 , and a communication component 905 .
- the processor 901 is used to control the overall operation of the electronic device 900 to complete all or part of the steps in the above-mentioned robot positioning method.
- the memory 902 is used to store various types of data to support operations on the electronic device 900, such data may include, for example, instructions for any application or method operating on the electronic device 900, and application-related data, Such as sent and received messages, pictures, audio, video and so on.
- the memory 902 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk.
- Multimedia components 903 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals.
- the audio component may include a microphone for receiving external audio signals.
- the received audio signal may be further stored in memory 902 or transmitted through communication component 905 .
- the audio assembly also includes at least one speaker for outputting audio signals.
- the I/O interface 904 provides an interface between the processor 901 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
- the communication component 905 is used for wired or wireless communication between the electronic device 900 and other devices.
- Wireless communication such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them
- the corresponding communication component 905 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
- the electronic device 900 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to execute the above-mentioned robot positioning method.
- ASIC Application Specific Integrated Circuit
- DSP Digital Signal Processor
- DSP Digital Signal Processor
- DSP Digital Signal Processing Device
- PLD Programmable Logic Device
- FPGA Field Programmable Gate Array
- controller microcontroller, microprocessor or other electronic components Implementation is used to execute the above-mentioned robot positioning method.
- a computer-readable storage medium including program instructions is also provided, the program instructions implement the steps of the above-mentioned robot positioning method when executed by a processor.
- the computer-readable storage medium can be the above-mentioned memory 902 including program instructions, and the above-mentioned program instructions can be executed by the processor 901 of the electronic device 900 to complete the above-mentioned robot positioning method.
- the electronic device may be provided as a server.
- the electronic device 1000 includes a processor 1022 , which may be one or more in number, and a memory 1032 for storing a computer program executable by the processor 1022 .
- a computer program stored in memory 1032 may include one or more modules, each corresponding to a set of instructions.
- the processor 1022 may be configured to execute the computer program to perform the robot positioning method described above.
- the electronic device 1000 may also include a power supply component 1026, which may be configured to perform power management of the electronic device 1000, and a communication component 1050, which may be configured to enable communication of the electronic device 1000, eg, wired or wireless communication. Additionally, the electronic device 1000 may also include an input/output (I/O) interface 1058 . Electronic device 1000 may operate based on an operating system stored in memory 1032, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, and the like.
- a computer-readable storage medium including program instructions is also provided, the program instructions implement the steps of the above-mentioned robot positioning method when executed by a processor.
- the computer-readable storage medium can be the above-mentioned memory 1032 including program instructions, and the above-mentioned program instructions can be executed by the processor 1022 of the electronic device 1000 to complete the above-mentioned robot positioning method.
- a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the above The code section of the robot positioning method.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Aviation & Aerospace Engineering (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electromagnetism (AREA)
- Multimedia (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
The present disclosure relates to a method and device for robot positioning, a storage medium, and an electronic device, for acquiring more environment feature points for feature matching in a robot positioning process, thus achieving robot positioning. The method for robot positioning comprises: controlling a robot to move in a target environment on the basis of a positioning navigation path corresponding to a constructed map; acquiring an actual environment feature of the position at where the robot is located during the moving process, and determining a sample environment feature corresponding to the position at where the robot is located; if the degree of match between the actual environment feature and the sample environment feature is less than a preset threshold, controlling the robot to make left and right swaying movements while traveling along the centerline of the positioning navigation path, thus adjusting the scanning range of a sensor used for collecting environment feature information; and determining, on the basis of an environment feature of the position at where the robot is located and collected by the sensor having the adjusted scanning range, the position at where the robot is located.
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求在2020年12月25日提交中国专利局、申请号为202011565214.5、名称为“机器人定位方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application with application number 202011565214.5 and entitled "Robot Positioning Method, Device, Storage Medium and Electronic Equipment" filed with the Chinese Patent Office on December 25, 2020, the entire contents of which are incorporated by reference in in this disclosure.
本公开涉及机器人技术领域,具体地,涉及一种机器人定位方法、装置、存储介质及电子设备。The present disclosure relates to the field of robot technology, and in particular, to a robot positioning method, device, storage medium and electronic device.
室内机器人需要对环境进行扫描建图,然后在已建好图的环境中通过传感器当前采集的环境特征与建图时传感器采集的环境特征进行匹配,以确定机器人在空间中的位置和姿态,即实现机器人的定位。在实际应用场景中,可能存在当前采集的环境特征与建图时采集的环境特征无法匹配或匹配程度低于匹配阈值的情况,从而导致机器人无法准确定位的问题。The indoor robot needs to scan and map the environment, and then match the environmental characteristics currently collected by the sensor with the environmental characteristics collected by the sensor when the map is built to determine the position and posture of the robot in space, that is, Realize the positioning of the robot. In practical application scenarios, there may be situations in which the currently collected environmental features cannot match the environmental features collected during mapping, or the matching degree is lower than the matching threshold, resulting in the problem that the robot cannot be accurately positioned.
相关技术为了解决上述机器人无法准确定位的问题,通常是对传感器采集到的环境特征进行优化处理,比如,可以对传感器采集到的环境特征进行去噪处理等等,以提高特征匹配程度。但是在环境简单的场景下,比如用于配送物品的环境简单的酒店走廊等,由于环境特征重复且稀疏,即使对环境特征进行优化处理,可能也无法获得较好的特征匹配结果,从而影响机器人的准确定位。In order to solve the above-mentioned problem that the robot cannot be positioned accurately, the related art usually optimizes the environmental features collected by the sensors, for example, the environmental features collected by the sensors can be denoised, etc., to improve the feature matching degree. However, in a scenario with a simple environment, such as a hotel corridor with a simple environment for delivering items, due to repeated and sparse environmental features, even if the environmental features are optimized, a better feature matching result may not be obtained, thus affecting the robot. accurate positioning.
发明内容SUMMARY OF THE INVENTION
本公开的目的是提供一种机器人定位方法、装置、存储介质及电子设备,以提供一种新的机器人定位方法。The purpose of the present disclosure is to provide a robot positioning method, device, storage medium and electronic equipment, so as to provide a new robot positioning method.
为了实现上述目的,第一方面,本公开提供一种机器人定位方法,包括:In order to achieve the above object, in a first aspect, the present disclosure provides a method for positioning a robot, including:
控制机器人基于已建地图对应的定位导航路径在目标环境中进行移动,所述已建地图是根据所述机器人在所述目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的;Control the robot to move in the target environment based on the positioning and navigation path corresponding to the built map, and the built map is based on the sample environment features collected by the robot in the target environment by swinging left and right to perform map reconstruction. obtained;
在移动过程中获取所述机器人所处位置的实际环境特征,并确定所述机器人所处位 置对应的所述样本环境特征;Acquire the actual environmental characteristics of the position of the robot during the movement process, and determine the sample environmental characteristics corresponding to the position of the robot;
若所述实际环境特征与所述样本环境特征的匹配程度小于预设阈值,则控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围;If the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold, the robot is controlled to swing left and right along the centerline of the positioning and navigation path during the traveling process, so as to adjust the environment for collecting the environment. The scanning range of the sensor of the characteristic information;
根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置。The position of the robot is determined according to the environmental characteristics collected by the sensor at the position of the robot after the adjustment of the scanning range.
可选地,所述控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,包括:Optionally, the controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process includes:
控制所述机器人沿所述定位导航路径的中心线S型移动。The robot is controlled to move in an S-shape along the centerline of the positioning and navigation path.
可选地,所述控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,包括:Optionally, the controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process includes:
当所述机器人所处位置对应的所述样本环境特征的密度大于或等于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动;When the density of the sample environment features corresponding to the position of the robot is greater than or equal to a preset density, control the robot to perform a left-right swinging motion with a first movement range along the centerline of the positioning and navigation path during traveling. move;
当所述机器人所处位置对应的所述样本环境特征的密度小于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,其中,所述第二移动幅度大于所述第一移动幅度,所述移动幅度用于表征所述机器人偏离所述中心线的距离。When the density of the sample environment features corresponding to the position of the robot is less than the preset density, the robot is controlled to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, Wherein, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
可选地,所述控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动,包括:Optionally, the controlling the robot to perform rocking movement from side to side with a first movement range along the centerline of the positioning and navigation path during the traveling process, including:
控制所述机器人沿所述定位导航路径的中心线以相同的第一移动幅度在行进过程中进行左右摇摆性移动;或者Controlling the robot to oscillate left and right along the centerline of the positioning and navigation path with the same first movement amplitude during travel; or
根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第一预设对应关系,确定所述第一移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行摇摆性左右摇摆性移动。The first movement range is determined according to the density of the sample environmental features at the location of the robot and the first preset correspondence between the density of the environmental features and the movement range, and the robot is controlled to navigate along the positioning The center line of the path performs rocking side-to-side rocking movement at the first movement amplitude during the travel.
可选地,所述控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,包括:Optionally, the controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, including:
控制所述机器人沿所述定位导航路径的中心线以相同的第二移动幅度在行进过程中进行左右摇摆性移动;或者Controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path with the same second movement amplitude during travel; or
根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第二预设对应关系,确定所述第二移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动。The second movement range is determined according to the density of the sample environment features at the location of the robot and the second preset correspondence between the density of the environment features and the movement range, and the robot is controlled to navigate along the positioning The centerline of the path performs a side-to-side rocking movement during travel with a second movement amplitude.
可选地,所述根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置,包括:Optionally, determining the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range includes:
若调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征与所述样本环境特征的匹配程度小于所述预设阈值,则控制所述机器人重复执行旋转定位指令,直到所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度大于或等于所述预设阈值,所述旋转定位指令用于控制所述机器人在所处位置旋转,并当所述机器人旋转后所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度小于所述预设阈值时,控制所述机器人沿所述定位导航路径向前移动到新的位置;If the degree of matching between the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation positioning instruction, Until the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position is greater than or equal to the preset threshold, the rotation and positioning instruction is used to control the robot to rotate at the position, and when all When the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position after the robot rotates is less than the preset threshold, the robot is controlled to move forward along the positioning and navigation path to a new position;
根据所述机器人在停止执行所述旋转定位指令后所述传感器采集到的环境特征,确定所述机器人所处的位置。The position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
可选地,还包括:Optionally, also include:
在所述机器人沿所述定位导航路径中心线左右摇摆性移动的过程中,确定所述机器人可行进的无障碍区域,并在所述无障碍区域中确定所述机器人的避障移动路径;During the swinging movement of the robot left and right along the centerline of the positioning and navigation path, determining an obstacle-free area in which the robot can travel, and determining an obstacle-avoiding movement path of the robot in the obstacle-free area;
控制所述机器人按照所述避障移动路径进行移动。The robot is controlled to move according to the obstacle avoidance movement path.
第二方面,本公开还提供一种机器人定位装置,包括:In a second aspect, the present disclosure also provides a robot positioning device, comprising:
第一控制模块,用于控制机器人基于已建地图对应的定位导航路径进行移动,所述已建地图是根据所述机器人在目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的;The first control module is used to control the robot to move based on the positioning and navigation path corresponding to the built map, and the built map is based on the sample environment features collected by the robot in the target environment by swinging left and right. rebuilt;
获取模块,用于在移动过程中获取所述机器人所处位置的实际环境特征,并确定所述机器人所处位置对应的所述样本环境特征;an acquisition module, configured to acquire the actual environmental characteristics of the location of the robot during the movement process, and to determine the sample environmental characteristics corresponding to the location of the robot;
第二控制模块,用于当所述实际环境特征与所述样本环境特征的匹配程度小于预设阈值时,控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围;The second control module is configured to control the robot to swing left and right along the centerline of the positioning and navigation path during traveling when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold , to adjust the scanning range of the sensor used to collect environmental feature information;
定位模块,用于根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置。The positioning module is configured to determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
第三方面,本公开还提供一种计算机可读存储介质,其上存储有计算机程序,该程 序被处理器执行时实现第一方面中任一项所述方法的步骤。In a third aspect, the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of any one of the methods in the first aspect.
第四方面,本公开还提供一种电子设备,包括:In a fourth aspect, the present disclosure also provides an electronic device, comprising:
存储器,其上存储有计算机程序;a memory on which a computer program is stored;
处理器,用于执行所述存储器中的所述计算机程序,以实现第一方面中任一项所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of any one of the methods in the first aspect.
第五方面,本公开还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行第一方面中任一项所述方法的代码部分。In a fifth aspect, the present disclosure also provides a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the first aspect The code portion of any one of the methods.
通过上述技术方案,在建图过程中,机器人可以通过左右摇摆性移动的方式获得更多的样本环境特征,并且在实际定位过程中,若实际环境特征与样本环境特征的匹配程度小于预设阈值,则可以控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围,从而获取更多的实际环境特征。由此,用于环境特征匹配的样本环境特征和实际环境特征均有所增加,因此可以提高环境特征的匹配程度,从而实现更加稳定的机器人定位,并且一定程度上可以提高机器人定位的准确性。Through the above technical solution, during the mapping process, the robot can obtain more sample environment features by swinging left and right, and in the actual positioning process, if the matching degree between the actual environment features and the sample environment features is less than the preset threshold , then the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used to collect environmental feature information, so as to obtain more actual environmental features. As a result, both the sample environment features and the actual environment features used for environment feature matching are increased, so the matching degree of the environment features can be improved, so as to achieve more stable robot positioning, and to a certain extent, the accuracy of the robot positioning can be improved.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and together with the following detailed description, are used to explain the present disclosure, but not to limit the present disclosure. In the attached image:
图1是机器人对环境进行扫描建图而得到的环境稠密点云图;Figure 1 is a dense point cloud image of the environment obtained by the robot scanning and mapping the environment;
图2是机器人对环境进行扫描建图而得到的环境稀疏点云图;Figure 2 is a sparse point cloud image of the environment obtained by the robot scanning and mapping the environment;
图3是机器人对环境进行扫描建图而得到的定位导航路径的示意图;3 is a schematic diagram of a positioning and navigation path obtained by a robot scanning and mapping the environment;
图4是根据本公开一示例性实施例示出的一种机器人定位方法的流程图;4 is a flowchart of a method for positioning a robot according to an exemplary embodiment of the present disclosure;
图5是根据本公开一示例性实施例示出的一种机器人定位方法中已建地图的示意图;5 is a schematic diagram of a built map in a robot positioning method according to an exemplary embodiment of the present disclosure;
图6是根据本公开一示例性实施例示出的一种机器人定位方法中避障过程的示意图;6 is a schematic diagram of an obstacle avoidance process in a robot positioning method according to an exemplary embodiment of the present disclosure;
图7是根据本公开一示例性实施例示出的一种机器人定位方法中机器人本体和服务器的交互示意图;7 is a schematic diagram of interaction between a robot body and a server in a method for positioning a robot according to an exemplary embodiment of the present disclosure;
图8是根据本公开一示例性实施例示出的一种机器人定位装置的框图;FIG. 8 is a block diagram of a robot positioning device according to an exemplary embodiment of the present disclosure;
图9是根据本公开一示例性实施例示出的一种电子设备的框图;FIG. 9 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure;
图10是根据本公开另一示例性实施例示出的一种电子设备的框图。Fig. 10 is a block diagram of an electronic device according to another exemplary embodiment of the present disclosure.
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, but not to limit the present disclosure.
SLAM(Simultaneous Iocalization and Mapping),即时定位与地图构建,或并发建图与定位。问题可以描述为:将一个机器人放入未知环境中的未知位置,是否有办法让机器人一边移动一边逐步描绘出此环境完全的地图,所谓完全的地图(a consistent map)是指机器人不受障碍行进到房间可进入的每个角落。在此过程中,需要对机器人进行位置估计。具体地,可以在使用机器人运动方程得到机器人位置估计后,使用测距单元得到的周围环境信息更正机器人的位置。上述更正过程一般通过提取环境特征,然后在机器人运动后重新观测特征的位置实现。EKF(Extended Kalman Filter,扩展卡尔曼滤波器)用于结合上述信息估计机器人的准确位置。其中,上述过程中选取的特征一般称作地标,即EKF将持续不断的对机器人位置和周围环境中的地标位置进行估计。SLAM (Simultaneous Iocalization and Mapping), real-time positioning and map construction, or concurrent mapping and positioning. The problem can be described as: put a robot into an unknown position in an unknown environment, is there a way for the robot to gradually draw a complete map of the environment while moving, the so-called complete map (a consistent map) means that the robot travels without obstacles to every corner of the room accessible. During this process, position estimation of the robot is required. Specifically, after obtaining the robot position estimate using the robot motion equation, the position of the robot can be corrected using the surrounding environment information obtained by the ranging unit. The above correction process is generally realized by extracting environmental features, and then re-observing the position of the features after the robot moves. EKF (Extended Kalman Filter, Extended Kalman Filter) is used to estimate the exact position of the robot in combination with the above information. Among them, the features selected in the above process are generally called landmarks, that is, the EKF will continuously estimate the position of the robot and the landmark positions in the surrounding environment.
当机器人运动时,其位置将会发生变化。此时,根据机器人位置传感器的观测,提取得到观测信息中的特征点,然后机器人通过EKF将目前观测到特征点的位置、机器人运动距离与机器人运动前观测到特征点的位置相互结合,对机器人当前位置和当前环境信息进行估计。As the robot moves, its position will change. At this time, according to the observation of the robot position sensor, the feature points in the observation information are extracted, and then the robot combines the position of the currently observed feature point, the robot motion distance and the position of the feature point before the robot motion through the EKF. Current location and current environment information are estimated.
因此,机器人需要先通过单线或多线激光雷达三维扫描、视觉传感器(包括但不限于双目视觉、TOF和红外主动光相机等)对环境进行扫描建图,比如可以建立如图1所示的环境稠密点云图、图2所示的环境稀疏点云图以及图3所示的导航路径图)。然后机器人可以在已经建好图的环境中通过传感器采集环境特征匹配的方式,确定自己在空间中的位置和姿态,即实现机器人的定位。Therefore, the robot needs to first scan and map the environment through single-line or multi-line lidar 3D scanning, visual sensors (including but not limited to binocular vision, TOF and infrared active light cameras, etc.) Environment dense point cloud map, environment sparse point cloud map shown in Figure 2, and navigation path map shown in Figure 3). Then the robot can determine its position and posture in space by matching the environmental features collected by sensors in the environment where the map has been built, that is, to realize the positioning of the robot.
由此,机器人在实际行进的导航过程中,需要在已建好的地图的基础上应尽可能的沿着已建好的地图时所行走的轨迹路线(比如按照图3所示的导航路径)行进和移动,这样可以保证激光雷达和视觉传感器扫描的当前环境的特征与已建图的特征获得最多、最可信的搜索匹配,以获得最佳的特征匹配位置,换句话,就是最大限度的保证匹配概率最大。Therefore, in the actual navigation process of the robot, it is necessary to follow the trajectory route of the built map as much as possible on the basis of the built map (for example, according to the navigation path shown in Figure 3) Travel and move, which ensures that the features of the current environment scanned by the lidar and vision sensors get the most and most credible search matches to the features that have been mapped to get the best feature matching locations, in other words, the maximum The guaranteed matching probability is the largest.
但是,在实际应用场景中,可能存在当前采集的环境特征与建图时采集的环境特征无法匹配或匹配程度低于匹配阈值的情况,从而导致机器人无法准确定位的问题。相关技术为了解决上述机器人无法准确定位的问题,通常是对传感器采集到的环境特征进行优化处理,比如,可以对传感器采集到的环境特征进行去噪处理等等,以提高特征匹配程度。However, in practical application scenarios, there may be situations in which the currently collected environmental features cannot match the environmental features collected during mapping, or the matching degree is lower than the matching threshold, resulting in the problem that the robot cannot be accurately positioned. In order to solve the above-mentioned problem that the robot cannot be positioned accurately, the related art usually optimizes the environmental features collected by the sensors, for example, the environmental features collected by the sensors can be denoised, etc., to improve the feature matching degree.
发明人研究发现,在环境简单的场景下,比如用于配送物品的环境简单的酒店走廊等,由于环境特征重复且稀疏,即使对环境特征进行优化处理,可能也无法获得较好的特征匹配结果,从而影响机器人的准确定位。或者,在环境复杂视觉特征丰富的场景下,比如机器人需要巡逻的园区、社区等,由于环境特征复杂丰富,对环境特征进行优化处理,反而可能丢失一些重要的环境特征,从而影响机器人的准确定位。也即是说,相关技术是在不改变采集到的环境特征数量的情况下对环境特征进行优化处理以提高环境特征匹配程度,从而可能导致环境简单或环境复杂的场景下无法得到较好的环境特征匹配结果,进而无法实现机器人的准确定位。The inventor's research found that in a scenario with a simple environment, such as a hotel corridor with a simple environment for delivering items, due to repeated and sparse environmental features, even if the environmental features are optimized, a better feature matching result may not be obtained. , thus affecting the accurate positioning of the robot. Or, in a scene with a complex environment and rich visual features, such as parks and communities where robots need to patrol, due to the complex and rich environmental features, optimizing the environmental features may lose some important environmental features, thereby affecting the accurate positioning of the robot. . That is to say, the related technology optimizes the environmental features without changing the number of collected environmental features to improve the matching degree of the environmental features, which may lead to the inability to obtain a better environment in a scene with a simple or complex environment. The result of feature matching, and then the accurate positioning of the robot cannot be achieved.
有鉴于此,本公开提出一种机器人定位方法、装置、存储介质及电子设备,以在机器人定位过程中获取更多的环境特征点进行特征匹配,从而提高机器人定位的准确性,更好的适用不同场景下的机器人定位需求。In view of this, the present disclosure proposes a robot positioning method, device, storage medium and electronic device, so as to obtain more environmental feature points for feature matching during the robot positioning process, thereby improving the accuracy of robot positioning and better application Robot positioning requirements in different scenarios.
图4是根据本公开一示例性实施例示出的一种机器人定位方法的流程图。参照图4,该机器人定位方法包括:Fig. 4 is a flowchart of a method for positioning a robot according to an exemplary embodiment of the present disclosure. 4, the robot positioning method includes:
步骤401,控制机器人基于已建地图对应的定位导航路径在目标环境中进行移动。该已建地图是根据机器人在目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的。 Step 401 , controlling the robot to move in the target environment based on the positioning and navigation path corresponding to the built map. The built map is obtained by reconstructing the map based on the sample environment features collected by the robot in the target environment by swinging left and right.
步骤402,在移动过程中获取机器人所处位置的实际环境特征,并确定机器人所处位置对应的样本环境特征。Step 402: Acquire the actual environmental characteristics of the location where the robot is located during the moving process, and determine the sample environmental characteristics corresponding to the location where the robot is located.
步骤403,若实际环境特征与样本环境特征的匹配程度小于预设阈值,则控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围。 Step 403, if the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, then control the robot to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the sensor used for collecting the environment feature information. Scan range.
步骤404,根据调整扫描范围后的传感器在机器人所处位置采集到的环境特征,确定机器人所处的位置。Step 404: Determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
通过上述方式,在建图过程中,机器人可以通过左右摇摆性移动的方式获得更多的 样本环境特征,并且在实际定位过程中,若实际环境特征与样本环境特征的匹配程度小于预设阈值,则可以控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围,从而获取更多的实际环境特征。由此,用于环境特征匹配的样本环境特征和实际环境特征均有所增加,因此可以提高环境特征的匹配程度,从而实现更加稳定的机器人定位,并且一定程度上可以提高机器人定位的准确性。Through the above method, during the mapping process, the robot can obtain more sample environment features by swinging left and right, and in the actual positioning process, if the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, Then, the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used for collecting environmental feature information, so as to obtain more actual environmental features. As a result, both the sample environment features and the actual environment features used for environment feature matching are increased, so the matching degree of the environment features can be improved, so as to achieve more stable robot positioning, and to a certain extent, the accuracy of the robot positioning can be improved.
为了使得本领域技术人员更加理解本公开实施例提供的机器人定位方法,下面对上述各步骤进行详细举例说明。In order to make those skilled in the art better understand the robot positioning method provided by the embodiments of the present disclosure, the above steps are described in detail below.
示例地,在步骤401之前,机器人可以在目标环境中进行移动。并且为了获取到更多的环境特征用于建图(比如环境稠密点云图和环境稀疏点云图),机器人可以在目标环境中进行左右摇摆性移动。比如可以控制机器人设置有用于采集环境特征的传感器的头部或身体部分进行左右摇摆性移动,或者也可以控制机器人整体可以进行左右S型摆动,等等。其中,用于采集环境特征的传感器包括但不限于激光雷达、深度相机和毫米波雷达,当本公开具体实施时,可以根据需求进行选择。Illustratively, prior to step 401, the robot may move in the target environment. And in order to obtain more environmental features for mapping (such as environment dense point cloud image and environment sparse point cloud image), the robot can swing left and right in the target environment. For example, the head or body part of the robot provided with sensors for collecting environmental features can be controlled to swing left and right, or the whole robot can be controlled to swing left and right in an S-shape, and so on. Wherein, the sensors used to collect environmental features include but are not limited to lidar, depth camera, and millimeter-wave radar, and can be selected according to requirements when the present disclosure is specifically implemented.
通过机器人预先采集的样本环境特征进行地图重建,可以得到目标环境对应的已建地图,比如图5所示的已建地图。在此之后,可以控制机器人基于已建地图对应的定位导航路径在目标环境中进行移动,并且在移动过程中可以获取机器人所处位置的实际环境特征,同时确定机器人所处位置对应的样本环境特征,从而后续过程可以根据环境特征匹配来实现机器人的定位。By performing map reconstruction through the sample environment features pre-collected by the robot, a built map corresponding to the target environment can be obtained, such as the built map shown in FIG. 5 . After that, the robot can be controlled to move in the target environment based on the positioning and navigation path corresponding to the built map, and during the movement process, the actual environmental characteristics of the robot's location can be obtained, and the sample environmental characteristics corresponding to the robot's location can be determined at the same time. , so that the subsequent process can realize the positioning of the robot according to the matching of environmental characteristics.
示例地,若实际环境特征与样本环境特征的匹配程度小于预设阈值,则控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围。其中,预设阈值可以根据实际场景进行设定,本公开实施例对此不作限定。实际环境特征与样本环境特征的匹配程度小于预设阈值可以是某一时刻实际环境特征与样本环境特征的匹配程度小于预设阈值,或者可以是一段连续时长内实际环境特征与样本环境特征的匹配程度小于预设阈值,等等,本公开实施例对此不作限定。For example, if the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, the robot is controlled to swing left and right along the centerline of the positioning and navigation path during the traveling process, so as to adjust the sensor used for collecting the environment feature information. Scan range. The preset threshold may be set according to an actual scene, which is not limited in this embodiment of the present disclosure. The matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, which may be that the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold at a certain moment, or it may be the matching between the actual environment feature and the sample environment feature for a continuous period of time. The degree is smaller than the preset threshold, etc., which is not limited in this embodiment of the present disclosure.
示例地,实际环境特征和样本环境特征均可以包括多个环境特征点,相应地,实际环境特征与样本环境特征的匹配程度可以通过实际环境特征和样本环境特征中匹配的环境特征点的数量进行表示。当然,也可以通过相关技术中的其他方式确定实际环境特征 与样本环境特征的匹配程度,本公开实施例对此不作限定。For example, both the actual environment feature and the sample environment feature may include multiple environment feature points, and accordingly, the matching degree between the actual environment feature and the sample environment feature may be determined by the number of matched environment feature points in the actual environment feature and the sample environment feature. express. Of course, the matching degree between the actual environment feature and the sample environment feature may also be determined by other methods in the related art, which is not limited in this embodiment of the present disclosure.
示例地,定位导航路径可以如图3所示,用于表征机器人在目标环境中的移动路径。定位导航路径可以对应实际环境中一段具有宽度的道路,因此定位导航路径的中心线可以是定位导航路径对应的道路中心线。在具体实施时,可以根据视觉SLAM建图时的轨迹,或激光SLAM规划出来导航路径确定定位导航路径的中心线。For example, the positioning navigation path may be shown in FIG. 3 , which is used to represent the movement path of the robot in the target environment. The positioning navigation path may correspond to a road with a width in the actual environment, so the center line of the positioning navigation path may be the road center line corresponding to the positioning navigation path. In specific implementation, the centerline of the positioning navigation path can be determined according to the trajectory during visual SLAM mapping, or the navigation path planned by laser SLAM.
示例地,控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动可以是控制机器人整体沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,或者还可以是控制机器人上设置的、用于采集环境特征信息的传感器进行左右摇摆性移动,等等,本公开实施例对此不作限定。比如,用于采集环境特征信息的深度相机设置在机器人的头部,则当实际环境特征与样本环境特征的匹配程度小于预设阈值时,可以控制机器人的头部左右转动若干角度,以增大深度相机的扫描范围,从而获取更多的实际环境特征用于环境特征匹配,以实现机器人定位。For example, controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may be controlling the robot as a whole to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process, or it may also be to control the The provided sensor for collecting environmental feature information performs a swinging movement from side to side, and so on, which is not limited in this embodiment of the present disclosure. For example, if the depth camera used to collect environmental feature information is set on the head of the robot, when the matching degree between the actual environmental features and the sample environmental features is less than the preset threshold, the head of the robot can be controlled to rotate left and right by several angles to increase the The scanning range of the depth camera is used to obtain more actual environmental features for environmental feature matching to achieve robot positioning.
在可能的方式中,控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动可以是控制机器人沿定位导航路径的中心线S型移动。也即是说,可以控制机器人整体进行左右S型移动,或者还可以是控制机器人上设置的、用于采集环境特征的传感器进行左右S型移动,等等,本公开实施例对此不作限定。通过此种方式,建图过程中,机器人可以通过S型移动获取更多的样本环境特征。实际定位过程中,机器人也可以通过S型移动获取更多的实际环境特征,从而可以进一步提高样本环境特征和实际环境特征的匹配程度,进而提高机器人的定位准确性。In a possible manner, controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may be to control the robot to move in an S-shape along the centerline of the positioning and navigation path. That is to say, the whole robot can be controlled to perform left-right S-shaped movement, or the sensor provided on the robot for collecting environmental features can be controlled to perform left-right S-shaped movement, etc., which are not limited in the embodiments of the present disclosure. In this way, during the mapping process, the robot can acquire more sample environment features through S-shaped movement. In the actual positioning process, the robot can also obtain more actual environment features through S-shaped movement, which can further improve the matching degree of the sample environment features and the actual environment features, thereby improving the positioning accuracy of the robot.
在可能的方式中,控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动还可以是:当机器人所处位置对应的样本环境特征的密度大于或等于预设密度时,控制机器人沿定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动,当机器人所处位置对应的样本环境特征的密度小于预设密度时,控制机器人沿定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,该第二移动幅度大于第一移动幅度,该移动幅度用于表征机器人偏离中心线的距离。其中,预设密度可以根据实际情况设定,本公开实施例对此不作限定。In a possible manner, controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path during the traveling process may also be: when the density of the sample environment features corresponding to the position of the robot is greater than or equal to the preset density, controlling the robot Along the centerline of the positioning and navigation path, the first movement amplitude is used to move left and right during the travel process. When the density of the sample environment features corresponding to the position of the robot is less than the preset density, the robot is controlled along the centerline of the positioning and navigation path to move to the left and right. The second movement range performs a left-right rocking movement during traveling, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line. The preset density may be set according to actual conditions, which is not limited in this embodiment of the present disclosure.
实际定位过程中,根据建图时采集到的样本环境特征可以确定目标环境中的环境复杂程度,因此本公开实施例中,可以根据当前环境的复杂程度(即环境特征的稠密和稀疏程度)来适配机器人左右摇摆性移动的幅度大小。具体地,可以在环境复杂(比如环 境特征稠密、明显且无遮挡)的情况下,小幅度慢速移动或不移动,以节省机器人能耗。另一方面,在环境简单(比如环境特征稀疏、不明显)的情况下,可以增大机器人左右摇摆性移动的幅度,以获得更多与样本环境特征匹配的实际环境特征,从而实现更有效的定位。In the actual positioning process, the environment complexity in the target environment can be determined according to the sample environment characteristics collected during map construction. Therefore, in this embodiment of the present disclosure, the complexity of the current environment (that is, the density and sparseness of environmental characteristics) can be determined. Adapt to the magnitude of the robot's left and right rocking movement. Specifically, in the case of complex environment (such as dense, obvious and unobstructed environment features), the robot can move slowly or not at a small amplitude to save energy consumption of the robot. On the other hand, when the environment is simple (such as sparse and inconspicuous environmental features), the amplitude of the robot's left and right swaying movement can be increased to obtain more actual environmental features that match the sample environmental features, so as to achieve more effective position.
应当理解的是,移动幅度用于表征机器人移动过程偏离导航路径中心线的距离,移动幅度越大,则机器人偏离导航路径中心线的距离越大,从而可以获取更大的传感器扫描范围,进而采集到更多的环境特征。本公开实施例对于第一移动幅度和第二移动幅度的设定不作限定,只要第一移动幅度小于第二移动幅度即可,在可能的方式中,第一移动幅度可以设定为0。It should be understood that the movement range is used to represent the distance that the robot moves away from the centerline of the navigation path. to more environmental features. This embodiment of the present disclosure does not limit the setting of the first movement range and the second movement range, as long as the first movement range is smaller than the second movement range, and in a possible manner, the first movement range may be set to 0.
在可能的方式中,控制机器人沿定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动,可以是控制机器人沿定位导航路径的中心线以相同的第一移动幅度在行进过程中进行左右摇摆性移动;或者,根据机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第一预设对应关系,确定第一移动幅度,并控制机器人沿定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动。In a possible manner, the robot is controlled to move left and right with a first movement amplitude along the centerline of the positioning and navigation path during the traveling process, which may be to control the robot to travel along the centerline of the positioning and navigation path with the same first movement amplitude During the process, the swinging movement is performed left and right; or, according to the density of the sample environment features at the location of the robot, and the first preset correspondence between the density of the environment features and the movement range, determine the first movement range, and control the robot to move along the The center line of the positioning navigation path performs a left-right oscillating movement with a first movement range during traveling.
也即是说,本公开实施例提供两种控制机器人沿定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动的方式,以更好地满足不同场景下的机器人定位需求。其中,第一种方式为控制机器人在移动过程中以相同的第一移动幅度在行进过程中进行左右摇摆性移动,简化了对于机器人的控制。第二种方式为根据环境特征密度确定机器人的第一移动幅度,由此在样本环境特征密度大于或等于预设密度时,机器人还可以根据环境特征密度的不同而确定不同的第一移动幅度,增加了对机器人控制的灵活性。That is to say, the embodiments of the present disclosure provide two ways of controlling the robot to swing left and right along the center line of the positioning and navigation path with the first movement range during the traveling process, so as to better meet the positioning requirements of the robot in different scenarios. . Among them, the first way is to control the robot to swing left and right during the traveling process with the same first movement range, which simplifies the control of the robot. The second method is to determine the first movement range of the robot according to the density of environmental characteristics, so that when the density of sample environmental characteristics is greater than or equal to the preset density, the robot can also determine different first movement ranges according to the density of environmental characteristics, Increased flexibility for robot control.
对于第二种方式,可以在建图过程中,针对目标环境中环境特征密度大于或等于预设密度的每一位置,根据该位置的环境特征密度,控制机器人在行进过程中进行不同幅度的左右摇摆性移动,以最大程度地采集该位置对应的样本环境特征。然后,可以针对目标环境中环境特征密度大于或等于预设密度的每一位置,记录该位置的环境特征密度以及对应的机器人移动幅度,从而得到第一预设对应关系。在后续实际定位过程中,在机器人移动过程中,当确定机器人所处位置的样本环境特征密度之后,若样本环境特征密度大于或等于预设密度,则可以根据该样本环境特征密度和第一预设对应关系,确定 第一移动幅度,从而控制机器人沿定位导航路径的中心线以第一移动幅度进行左右幅度,以采集更多的实际环境特征用于特征匹配。For the second method, during the mapping process, for each position in the target environment where the density of environmental characteristics is greater than or equal to the preset density, the robot can be controlled to perform left and right movements of different amplitudes during the travel process according to the density of environmental characteristics of the position. Rocking movement to maximize the sample environment characteristics corresponding to the location. Then, for each position in the target environment where the environmental characteristic density is greater than or equal to the preset density, the environmental characteristic density of the position and the corresponding robot movement range can be recorded, thereby obtaining the first preset correspondence. In the subsequent actual positioning process, during the movement of the robot, after determining the characteristic density of the sample environment where the robot is located, if the characteristic density of the sample environment is greater than or equal to the preset density, the Set the corresponding relationship, determine the first movement range, and control the robot to move left and right along the center line of the positioning and navigation path with the first movement range, so as to collect more actual environment features for feature matching.
类似地,控制机器人沿定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动可以是:控制机器人沿定位导航路径的中心线以相同的第二移动幅度在行进过程中进行左右摇摆性移动;或者,根据机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第二预设对应关系,确定第二移动幅度,并控制机器人沿定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动。Similarly, controlling the robot to perform rocking movement along the centerline of the positioning and navigation path with the second movement amplitude during the traveling process may be: controlling the robot to perform the same second moving amplitude during the traveling process along the centerline of the positioning and navigation path swinging left and right; or, according to the density of the sample environment features at the location where the robot is located, and the second preset correspondence between the density of the environment features and the movement range, determine the second movement range, and control the robot along the positioning and navigation path The center line of , with a second movement amplitude, moves side-to-side oscillatingly during travel.
也即是说,本公开实施例可以提供两种控制机器人沿定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动的方式,以更好地满足不同场景下的机器人定位需求。其中,第一种方式为控制机器人在移动过程中以相同的第二移动幅度在行进过程中进行左右摇摆性移动,简化了对于机器人的控制。第二种方式为根据环境特征密度确定机器人的第二移动幅度,由此在样本环境特征密度小于预设密度时,机器人还可以根据环境特征密度的不同而确定不同的第二移动幅度,增加了对机器人控制的灵活性。That is to say, the embodiments of the present disclosure can provide two ways of controlling the robot to swing left and right along the center line of the positioning navigation path with the second movement amplitude during the traveling process, so as to better satisfy the robot positioning in different scenarios. need. Among them, the first method is to control the robot to swing left and right during the traveling process with the same second movement range, which simplifies the control of the robot. The second method is to determine the second moving range of the robot according to the density of environmental features, so that when the density of sample environmental features is less than the preset density, the robot can also determine different second moving ranges according to the density of environmental features, increasing the Flexibility for robot control.
对于第二种方式,可以在建图过程中,针对目标环境中环境特征密度小于预设密度的每一位置,根据该位置的环境特征密度,控制机器人在行进过程中进行不同幅度的左右摇摆性移动,以最大程度地采集该位置对应的样本环境特征。然后,可以针对目标环境中环境特征密度小于预设密度的每一位置,记录该位置的环境特征密度以及对应的机器人移动幅度,从而得到第二预设对应关系。在后续实际定位过程中,在机器人移动过程中,当确定机器人所处位置的样本环境特征密度之后,若样本环境特征密度小于预设密度,则可以根据该样本环境特征密度和第二预设对应关系,确定第二移动幅度,从而控制机器人沿定位导航路径的中心线以第二移动幅度进行左右幅度,以采集更多的实际环境特征用于特征匹配。For the second method, during the mapping process, for each position in the target environment where the density of environmental characteristics is less than the preset density, the robot can be controlled to swing left and right with different amplitudes in the process of traveling according to the density of environmental characteristics of the position. Move to maximize the collection of sample environmental characteristics corresponding to that location. Then, for each position in the target environment where the environmental characteristic density is less than the preset density, the environmental characteristic density of the position and the corresponding robot movement range can be recorded, so as to obtain a second preset corresponding relationship. In the subsequent actual positioning process, during the movement of the robot, after determining the sample environment characteristic density of the location where the robot is located, if the sample environment characteristic density is less than the preset density, then the sample environment characteristic density can correspond to the second preset according to the sample environment characteristic density. relationship, and determine the second movement range, so as to control the robot to perform the left and right range along the center line of the positioning and navigation path with the second movement range, so as to collect more actual environment features for feature matching.
通过上述方式,可以通过固定的移动幅度控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,简化了对于机器人的定位控制。或者还可以根据环境特征的密度确定对应的移动幅度,从而控制机器人沿定位导航路径在行进过程中进行不同幅度的左右摇摆性移动,增加了控制灵活性,可以更好的适应不同定位场景。In the above manner, the robot can be controlled to swing left and right along the center line of the positioning and navigation path through a fixed movement range, which simplifies the positioning control of the robot. Alternatively, the corresponding movement range can be determined according to the density of the environmental features, so that the robot can be controlled to swing left and right with different amplitudes during the traveling process along the positioning and navigation path, which increases the control flexibility and can better adapt to different positioning scenarios.
在实际应用中,可能存在通过控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动来调整用于采集环境特征信息的传感器的扫描范围之后,即增大传感器的扫描范围之后,采集到的实际环境特征和样本环境特征之间的匹配程度仍然小于预 设阈值,则可以认为是连续出现了实际环境特征和样本环境特征之间的匹配程度小于预设阈值的情况。In practical applications, it may be possible to adjust the scanning range of the sensor used to collect environmental feature information by controlling the robot to swing left and right along the centerline of the positioning and navigation path during travel, that is, after increasing the scanning range of the sensor, If the matching degree between the collected actual environmental characteristics and the sample environmental characteristics is still less than the preset threshold, it can be considered that the matching degree between the actual environmental characteristics and the sample environmental characteristics is smaller than the preset threshold continuously.
在此种情况下,步骤404可以是:若调整扫描范围后的传感器在机器人所处位置采集到的环境特征与样本环境特征的匹配程度小于预设阈值,则控制机器人重复执行旋转定位指令,直到传感器采集到的环境特征与对应位置的样本环境特征的匹配程度大于或等于预设阈值。其中,该旋转定位指令用于控制机器人在所处位置旋转,并当机器人旋转后传感器采集到的环境特征与对应位置的样本环境特征的匹配程度小于预设阈值时,控制机器人沿定位导航路径向前移动到新的位置。最后,根据机器人在停止执行旋转定位指令后传感器采集到的环境特征,确定机器人所处的位置。In this case, step 404 may be: if the matching degree between the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation and positioning instructions until The matching degree of the environmental features collected by the sensor and the sample environmental features of the corresponding position is greater than or equal to the preset threshold. The rotation positioning instruction is used to control the robot to rotate at the position, and when the degree of matching between the environmental characteristics collected by the sensor after the robot rotates and the sample environmental characteristics of the corresponding position is less than a preset threshold, the robot is controlled to move along the positioning and navigation path. before moving to a new location. Finally, the position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
例如,当连续出现实际环境特征与样本环境特征的匹配程度小于预设阈值时,可以控制机器人暂停移动,并控制机器人重复执行旋转定位指令。具体地,可以控制机器人先在原地进行360度旋转,以获得当前位置上最大特征匹配的概率。若该最大特征匹配的概率小于预设概率,则说明旋转后传感器采集到的环境特征与对应位置的样本环境特征的匹配程度仍小于预设阈值,即机器人仍然无法通过特征匹配来实现定位,从而可以再控制机器人沿着定位导航路径向前移动到新的位置,该过程即为旋转定位指令的一次执行过程。若移动到新的位置之后,机器人在新的位置采集到的实际环境特征和该新的位置对应的样本环境特征的匹配程度大于或等于预设阈值,则说明机器人可以通过环境特征匹配实现定位,从而可以停止执行旋转定位指令。并根据机器人在停止执行旋转定位指令后所述传感器采集到的环境特征,确定机器人所处的位置,即实现机器人的定位。其中,预设概率可以根据实际情况设定,本公开实施例对此不作限定。For example, when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold value, the robot can be controlled to suspend the movement, and the robot can be controlled to repeatedly execute the rotation positioning instruction. Specifically, the robot can be controlled to rotate 360 degrees on the spot to obtain the maximum feature matching probability at the current position. If the probability of the maximum feature matching is less than the preset probability, it means that the degree of matching between the environmental features collected by the sensor and the sample environmental features of the corresponding position after the rotation is still less than the preset threshold, that is, the robot still cannot achieve positioning through feature matching. The robot can then be controlled to move forward along the positioning and navigation path to a new position, and this process is an execution process of the rotation positioning instruction. If, after moving to a new position, the matching degree between the actual environmental features collected by the robot at the new position and the sample environmental features corresponding to the new position is greater than or equal to the preset threshold, it means that the robot can achieve positioning through the matching of environmental features. This stops the execution of the rotation positioning command. And according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction, the position of the robot is determined, that is, the positioning of the robot is realized. The preset probability may be set according to an actual situation, which is not limited in this embodiment of the present disclosure.
另一方面,若移动到新的位置之后,机器人在新的位置采集到的实际环境特征和该新的位置对应的样本环境特征的匹配程度仍小于预设阈值,则说明机器人移动到新的位置之后仍然无法通过环境特征匹配实现定位,从而可以再次执行旋转定位指令,即可以再控制机器人在新的位置进行360度旋转,并当机器人旋转后传感器采集到的环境特征与对应位置的样本环境特征的匹配程度小于预设阈值时,控制机器人沿定位导航路径向前移动到另一新的位置,以此重复找到可以通过环境特征实现机器人定位的位置,从而实现机器人的定位。On the other hand, if after moving to a new position, the matching degree between the actual environmental features collected by the robot at the new position and the sample environmental features corresponding to the new position is still less than the preset threshold, it means that the robot has moved to the new position. After that, it is still impossible to achieve positioning through environmental feature matching, so that the rotation positioning command can be executed again, that is, the robot can be controlled to rotate 360 degrees in a new position, and when the robot rotates, the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position When the matching degree is less than the preset threshold, control the robot to move forward along the positioning and navigation path to another new position, so as to repeatedly find the position where the robot can be positioned by the environmental features, so as to realize the positioning of the robot.
在可能的方式中,考虑到偶然误差,还可以当出现当前采集的实际环境特征与建图时采集的样本环境特征无法匹配或匹配程度低于预设阈值时,控制机器人基于惯性运动 继续移动,同时继续匹配后续的环境特征。当出现连续若干时刻实际环境特征与建图时采集的样本环境特征的匹配程度小于预设阈值,则控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围。当出现连续若干时刻实际环境特征与建图时采集的样本环境特征的匹配程度小于预设最低阈值时,则通过自动逐步加大左右摇摆性移动幅度且同时降低移动速度的方式,控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动,以搜寻更多匹配特征点来达到较高的环境特征匹配程度,从而实现准确定位。其中,预设最低阈值小于预设阈值,该预设最低阈值可以根据实际情况设定,本公开实施例对此不作限定。In a possible way, taking into account the accidental error, it is also possible to control the robot to continue to move based on inertial motion when the actual environmental characteristics currently collected and the sample environmental characteristics collected during mapping cannot be matched or the matching degree is lower than the preset threshold. At the same time, it continues to match subsequent environmental features. When the matching degree between the actual environment features and the sample environment features collected during mapping is less than the preset threshold for several consecutive moments, the robot is controlled to swing left and right along the center line of the positioning and navigation path during the traveling process to adjust the data used for the collection. The scanning range of the sensor for environmental feature information. When the matching degree between the actual environment features and the sample environment features collected during mapping is smaller than the preset minimum threshold for several consecutive moments, the robot will be controlled along the positioning method by automatically gradually increasing the left and right swaying movement amplitude and reducing the moving speed at the same time. The center line of the navigation path is swayed left and right during the traveling process to search for more matching feature points to achieve a higher degree of environmental feature matching, thereby achieving accurate positioning. Wherein, the preset minimum threshold is smaller than the preset threshold, and the preset minimum threshold may be set according to the actual situation, which is not limited in this embodiment of the present disclosure.
若加大左右摇摆性移动幅度之后,传感器在机器人所处位置采集到的环境特征与样本环境特征的匹配程度仍小于预设阈值,则还可以控制机器人重复执行旋转定位指令,直到传感器采集到的环境特征与对应位置的样本环境特征的匹配程度大于或等于预设阈值。If the degree of matching between the environmental features collected by the sensor at the location of the robot and the sample environmental features is still less than the preset threshold after the amplitude of the left-right swinging movement is increased, the robot can also be controlled to repeatedly execute the rotation and positioning instructions until the sensor collects The degree of matching between the environmental feature and the sample environmental feature of the corresponding position is greater than or equal to a preset threshold.
实际应用场景中,最多出现的情况是机器人被人群围观或临时出现较大的障碍物时,因人为遮挡的原因会造成用于定位的环境特征大面积丢失,导致机器人的定位丢失。为了解决该问题,本公开实施例可以在机器人沿定位导航路径中心线左右摇摆性移动的过程中,确定机器人可行进的无障碍区域,并在无障碍区域中确定机器人的避障移动路径,然后控制机器人按照避障移动路径进行移动。In practical application scenarios, the most common situation is that when the robot is surrounded by crowds or a large obstacle appears temporarily, the environmental features used for positioning will be lost in a large area due to artificial occlusion, resulting in the loss of the robot's positioning. In order to solve this problem, the embodiments of the present disclosure can determine the obstacle-free area where the robot can travel during the swinging movement of the robot along the center line of the positioning and navigation path, and determine the obstacle-avoiding movement path of the robot in the obstacle-free area, and then Control the robot to move according to the obstacle avoidance movement path.
也即是说,在面对障碍物时,机器人可以通过左右来回摆动走S型路线的方式,先寻找到可以继续行进的区域,并规划绕开障碍物的避障移动路径,以重新回到正常的定位导航路径上。如图6所示,机器人可通过左右摆动走S型路径的方式找到可行进的避障区域,并进行局部路径的规划,即得到避障路径。然后可以控制机器人按照该避障路径进行移动。参照图6可知,在避障路径之后,机器人可以移动到正常的规划路径(即建图时确定的定位导航路径)继续移动,从而可以在提高定位准确性的同时,实现避障功能。That is to say, when facing an obstacle, the robot can first find an area where it can continue to travel by swinging left and right to walk the S-shaped route, and plan an obstacle avoidance movement path around the obstacle to return to On the normal positioning navigation path. As shown in Figure 6, the robot can find a feasible obstacle avoidance area by swinging left and right to walk an S-shaped path, and plan a local path to obtain an obstacle avoidance path. The robot can then be controlled to move along the obstacle avoidance path. Referring to FIG. 6 , after the obstacle avoidance path, the robot can move to the normal planned path (that is, the positioning and navigation path determined during mapping) and continue to move, so that the obstacle avoidance function can be realized while improving the positioning accuracy.
应当理解的是,上述任一机器人定位方法可以应用于机器人,即应用于机器人的控制器。此种情况下,机器人的存储器中可以存储目标环境对应的已建地图。相应地,在移动过程中机器人可以获取自身所处位置的实际环境特征,并通过存储的已建地图确定自身所处位置对应的样本环境特征。若实际环境特征与样本环境特征的匹配程度小于预设阈值,则可以控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动, 以调整用于采集环境特征信息的传感器的扫描范围,最后根据调整扫描范围后的传感器在机器人所处位置采集到的环境特征,确定自身所处的位置。It should be understood that any of the above-mentioned robot positioning methods can be applied to a robot, that is, to a controller of the robot. In this case, a built map corresponding to the target environment can be stored in the memory of the robot. Correspondingly, during the moving process, the robot can obtain the actual environmental characteristics of its own location, and determine the sample environmental characteristics corresponding to its own location through the stored built map. If the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, the robot can be controlled to swing left and right along the center line of the positioning and navigation path during the traveling process, so as to adjust the scanning range of the sensor used to collect the environment feature information. , and finally determine its own position according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
在另一可能的方式中,上述任一机器人定位方法可以应用于服务器。在此种情况下,参照图7,服务器可以存储有已建地图,机器人可以通过传感器获取自身所处位置的环境信息,并通过特征提取模块从环境信息中提取环境特征。相应地,服务器可以通过接收环境特征的方式获取到机器人所处位置对应的实际环境特征。同时服务器可以通过存储的已建地图确定机器人所处位置对应的样本环境特征。然后服务器可以确定实际环境特征与样本环境特征之间的匹配程度,若实际环境特征与样本环境特征的匹配程度小于预设阈值,则服务器可以向机器人发送控制指令,以控制机器人沿定位导航路径的中心线在行进过程中进行左右摇摆性移动来调整用于采集环境特征信息的传感器的扫描范围,最后根据调整扫描范围后的传感器在机器人所处位置采集到的环境特征,确定机器人所处的位置,机器人本体可以将调整扫描范围后的传感器采集到的环境特征发送给服务器,以使服务器根据该环境特征与对应的样本环境特征之间的匹配程度,实现对机器人的定位。In another possible manner, any one of the above robot positioning methods can be applied to the server. In this case, referring to FIG. 7 , the server may store a built map, the robot may obtain environmental information of its own location through sensors, and extract environmental features from the environmental information through a feature extraction module. Correspondingly, the server can acquire the actual environmental characteristics corresponding to the position of the robot by receiving the environmental characteristics. At the same time, the server can determine the sample environment characteristics corresponding to the location of the robot through the stored map. Then the server can determine the matching degree between the actual environment feature and the sample environment feature. If the matching degree between the actual environment feature and the sample environment feature is less than the preset threshold, the server can send a control instruction to the robot to control the robot along the positioning and navigation path. The center line swings left and right during the traveling process to adjust the scanning range of the sensor used to collect environmental feature information. Finally, the position of the robot is determined according to the environmental features collected by the sensor at the location of the robot after adjusting the scanning range. , the robot body can send the environmental characteristics collected by the sensor after adjusting the scanning range to the server, so that the server can locate the robot according to the matching degree between the environmental characteristics and the corresponding sample environmental characteristics.
基于同一发明构思,本公开还提供一种机器人定位装置,该装置可以通过软件、硬件或两者结合的方式成为机器人或服务器的部分或全部。参照图8,该机器人定位装置800可以包括:Based on the same inventive concept, the present disclosure also provides a robot positioning device, which can become part or all of a robot or a server through software, hardware, or a combination of the two. 8, the robot positioning device 800 may include:
第一控制模块801,用于控制机器人基于已建地图对应的定位导航路径进行移动,所述已建地图是根据所述机器人在目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的;The first control module 801 is used to control the robot to move based on the positioning and navigation path corresponding to the built map. The built map is based on the sample environment characteristics collected by the robot in the target environment by swinging left and right. obtained from map reconstruction;
获取模块802,用于在移动过程中获取所述机器人所处位置的实际环境特征,并确定所述机器人所处位置对应的所述样本环境特征;an acquisition module 802, configured to acquire the actual environmental characteristics of the location where the robot is located during the movement process, and determine the sample environmental characteristics corresponding to the location of the robot;
第二控制模块803,用于当所述实际环境特征与所述样本环境特征的匹配程度小于预设阈值时,控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围;The second control module 803 is configured to control the robot to sway from side to side along the centerline of the positioning and navigation path during the traveling process when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold Move to adjust the scanning range of the sensor used to collect environmental feature information;
定位模块804,用于根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置。The positioning module 804 is configured to determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
可选地,所述第二控制模块803用于:Optionally, the second control module 803 is used for:
控制所述机器人沿所述定位导航路径的中心线S型移动。The robot is controlled to move in an S-shape along the centerline of the positioning and navigation path.
可选地,所述第二控制模块803用于:Optionally, the second control module 803 is used for:
当所述机器人所处位置对应的所述样本环境特征的密度大于或等于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动;When the density of the sample environment features corresponding to the position of the robot is greater than or equal to a preset density, control the robot to perform a left-right swinging motion with a first movement range along the centerline of the positioning and navigation path during traveling. move;
当所述机器人所处位置对应的所述样本环境特征的密度小于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,其中,所述第二移动幅度大于所述第一移动幅度,所述移动幅度用于表征所述机器人偏离所述中心线的距离。When the density of the sample environment features corresponding to the position of the robot is less than the preset density, the robot is controlled to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, Wherein, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
可选地,所述第二控制模块803用于:Optionally, the second control module 803 is used for:
控制所述机器人沿所述定位导航路径的中心线以相同的第一移动幅度在行进过程中进行左右摇摆性移动;或者Controlling the robot to oscillate left and right along the centerline of the positioning and navigation path with the same first movement amplitude during travel; or
根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第一预设对应关系,确定所述第一移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动。The first movement range is determined according to the density of the sample environmental features at the location of the robot and the first preset correspondence between the density of the environmental features and the movement range, and the robot is controlled to navigate along the positioning The center line of the path performs a side-to-side rocking movement with a first movement amplitude during the travel.
可选地,所述第二控制模块803用于:Optionally, the second control module 803 is used for:
控制所述机器人沿所述定位导航路径的中心线以相同的第二移动幅度在行进过程中进行左右摇摆性移动;或者Controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path with the same second movement amplitude during travel; or
根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第二预设对应关系,确定所述第二移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动。The second movement range is determined according to the density of the sample environment features at the location of the robot and the second preset correspondence between the density of the environment features and the movement range, and the robot is controlled to navigate along the positioning The centerline of the path performs a side-to-side rocking movement during travel with a second movement amplitude.
可选地,所述定位模块用于:Optionally, the positioning module is used for:
当调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征与所述样本环境特征的匹配程度小于所述预设阈值时,控制所述机器人重复执行旋转定位指令,直到所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度大于或等于所述预设阈值,所述旋转定位指令用于控制所述机器人在所处位置旋转,并当所述机器人旋转后所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度小于所述预设阈值时,控制所述机器人沿所述定位导航路径向前移动到新的位置;When the degree of matching between the environmental characteristics collected by the sensor at the location of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation positioning instruction, Until the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position is greater than or equal to the preset threshold, the rotation and positioning instruction is used to control the robot to rotate at the position, and when all When the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position after the robot rotates is less than the preset threshold, the robot is controlled to move forward along the positioning and navigation path to a new position;
根据所述机器人在停止执行所述旋转定位指令后所述传感器采集到的环境特征,确定所述机器人所处的位置。The position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
可选地,所述装置800还包括:Optionally, the apparatus 800 further includes:
确定模块,用于在所述机器人沿所述定位导航路径中心线左右摇摆性移动的过程中,确定所述机器人可行进的无障碍区域,并在所述无障碍区域中确定所述机器人的避障移动路径;The determining module is used to determine the obstacle-free area in which the robot can travel during the swinging movement of the robot along the centerline of the positioning and navigation path, and determine the avoidance of the robot in the obstacle-free area. obstacle movement path;
第三控制模块,用于控制所述机器人按照所述避障移动路径进行移动。The third control module is configured to control the robot to move according to the obstacle avoidance movement path.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
基于同一发明构思,本公开还提供一种电子设备,包括:Based on the same inventive concept, the present disclosure also provides an electronic device, including:
存储器,其上存储有计算机程序;a memory on which a computer program is stored;
处理器,用于执行所述存储器中的所述计算机程序,以实现上述任一机器人定位方法的步骤。The processor is configured to execute the computer program in the memory, so as to implement the steps of any one of the above robot positioning methods.
在可能的方式中,电子设备的框图如图9所示。参照图9,该电子设备900可以包括:处理器901,存储器902。该电子设备900还可以包括多媒体组件903,输入/输出(I/O)接口904,以及通信组件905中的一者或多者。In a possible manner, the block diagram of the electronic device is shown in FIG. 9 . Referring to FIG. 9 , the electronic device 900 may include: a processor 901 and a memory 902 . The electronic device 900 may also include one or more of a multimedia component 903 , an input/output (I/O) interface 904 , and a communication component 905 .
其中,处理器901用于控制该电子设备900的整体操作,以完成上述的机器人定位方法中的全部或部分步骤。存储器902用于存储各种类型的数据以支持在该电子设备900的操作,这些数据例如可以包括用于在该电子设备900上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如收发的消息、图片、音频、视频等等。该存储器902可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件903可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器902或通过通信组件905发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口904为处理器901和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组 件905用于该电子设备900与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件905可以包括:Wi-Fi模块,蓝牙模块,NFC模块等等。Wherein, the processor 901 is used to control the overall operation of the electronic device 900 to complete all or part of the steps in the above-mentioned robot positioning method. The memory 902 is used to store various types of data to support operations on the electronic device 900, such data may include, for example, instructions for any application or method operating on the electronic device 900, and application-related data, Such as sent and received messages, pictures, audio, video and so on. The memory 902 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. Multimedia components 903 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in memory 902 or transmitted through communication component 905 . The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 904 provides an interface between the processor 901 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons. The communication component 905 is used for wired or wireless communication between the electronic device 900 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 905 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
在一示例性实施例中,电子设备900可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的机器人定位方法。In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to execute the above-mentioned robot positioning method.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的机器人定位方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器902,上述程序指令可由电子设备900的处理器901执行以完成上述的机器人定位方法。In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, the program instructions implement the steps of the above-mentioned robot positioning method when executed by a processor. For example, the computer-readable storage medium can be the above-mentioned memory 902 including program instructions, and the above-mentioned program instructions can be executed by the processor 901 of the electronic device 900 to complete the above-mentioned robot positioning method.
在另一可能的方式中,该电子设备可以被提供为一服务器。参照图10,电子设备1000包括处理器1022,其数量可以为一个或多个,以及存储器1032,用于存储可由处理器1022执行的计算机程序。存储器1032中存储的计算机程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理器1022可以被配置为执行该计算机程序,以执行上述的机器人定位方法。In another possible way, the electronic device may be provided as a server. 10 , the electronic device 1000 includes a processor 1022 , which may be one or more in number, and a memory 1032 for storing a computer program executable by the processor 1022 . A computer program stored in memory 1032 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processor 1022 may be configured to execute the computer program to perform the robot positioning method described above.
另外,电子设备1000还可以包括电源组件1026和通信组件1050,该电源组件1026可以被配置为执行电子设备1000的电源管理,该通信组件1050可以被配置为实现电子设备1000的通信,例如,有线或无线通信。此外,该电子设备1000还可以包括输入/输出(I/O)接口1058。电子设备1000可以操作基于存储在存储器1032的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM等等。In addition, the electronic device 1000 may also include a power supply component 1026, which may be configured to perform power management of the electronic device 1000, and a communication component 1050, which may be configured to enable communication of the electronic device 1000, eg, wired or wireless communication. Additionally, the electronic device 1000 may also include an input/output (I/O) interface 1058 . Electronic device 1000 may operate based on an operating system stored in memory 1032, such as Windows Server™, Mac OS X™, Unix™, Linux™, and the like.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的机器人定位方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器1032,上述程序指令可由电子设备1000的处理器1022执行以完成上述的机器人定位方法。In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, the program instructions implement the steps of the above-mentioned robot positioning method when executed by a processor. For example, the computer-readable storage medium can be the above-mentioned memory 1032 including program instructions, and the above-mentioned program instructions can be executed by the processor 1022 of the electronic device 1000 to complete the above-mentioned robot positioning method.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够 由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的机器人定位方法的代码部分。In another exemplary embodiment, there is also provided a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the above The code section of the robot positioning method.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described above in detail with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above-mentioned embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure. These simple modifications all fall within the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that the various specific technical features described in the above-mentioned specific embodiments can be combined in any suitable manner unless they are inconsistent. In order to avoid unnecessary repetition, the present disclosure provides The combination method will not be specified otherwise.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, the various embodiments of the present disclosure can also be arbitrarily combined, as long as they do not violate the spirit of the present disclosure, they should also be regarded as the contents disclosed in the present disclosure.
Claims (11)
- 一种机器人定位方法,其特征在于,包括:A method for positioning a robot, comprising:控制机器人基于已建地图对应的定位导航路径在目标环境中进行移动,所述已建地图是根据所述机器人在所述目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的;Control the robot to move in the target environment based on the positioning and navigation path corresponding to the built map, and the built map is based on the sample environment features collected by the robot in the target environment by swinging left and right to perform map reconstruction. obtained;在移动过程中获取所述机器人所处位置的实际环境特征,并确定所述机器人所处位置对应的所述样本环境特征;Acquire the actual environmental characteristics of the location where the robot is located during the moving process, and determine the sample environment characteristics corresponding to the location where the robot is located;若所述实际环境特征与所述样本环境特征的匹配程度小于预设阈值,则控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围;If the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold, the robot is controlled to swing left and right along the centerline of the positioning and navigation path during the traveling process, so as to adjust the environment for collecting the environment. The scanning range of the sensor of the characteristic information;根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置。The position of the robot is determined according to the environmental characteristics collected by the sensor at the position of the robot after the adjustment of the scanning range.
- 根据权利要求1所述的方法,其特征在于,所述控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,包括:The method according to claim 1, wherein the controlling the robot to perform rocking movement from side to side along the centerline of the positioning and navigation path during the traveling process comprises:控制所述机器人沿所述定位导航路径的中心线S型移动。The robot is controlled to move in an S-shape along the centerline of the positioning and navigation path.
- 根据权利要求1或2所述的方法,其特征在于,所述控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,包括:The method according to claim 1 or 2, wherein the controlling the robot to perform rocking movement from side to side along the center line of the positioning and navigation path during the traveling process comprises:当所述机器人所处位置对应的所述样本环境特征的密度大于或等于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动;When the density of the sample environment features corresponding to the position of the robot is greater than or equal to a preset density, control the robot to perform a left-right swinging motion with a first movement range along the centerline of the positioning and navigation path during traveling. move;当所述机器人所处位置对应的所述样本环境特征的密度小于预设密度时,控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,其中,所述第二移动幅度大于所述第一移动幅度,所述移动幅度用于表征所述机器人偏离所述中心线的距离。When the density of the sample environment features corresponding to the position of the robot is less than the preset density, the robot is controlled to perform a left-right rocking movement along the centerline of the positioning and navigation path with a second movement amplitude during the traveling process, Wherein, the second movement range is greater than the first movement range, and the movement range is used to represent the distance that the robot deviates from the center line.
- 根据权利要求3所述的方法,其特征在于,所述控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行左右摇摆性移动,包括:The method according to claim 3, wherein the controlling the robot to perform rocking movement from side to side with a first movement range along the center line of the positioning and navigation path during the traveling process, comprising:控制所述机器人沿所述定位导航路径的中心线以相同的第一移动幅度在行进过程中 进行左右摇摆性移动;或者Controlling the robot to oscillate left and right along the centerline of the positioning and navigation path with the same first movement amplitude during travel; or根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第一预设对应关系,确定所述第一移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第一移动幅度在行进过程中进行摇摆性左右摇摆性移动。The first movement range is determined according to the density of the sample environmental features at the location of the robot and the first preset correspondence between the density of the environmental features and the movement range, and the robot is controlled to navigate along the positioning The center line of the path performs a rocking side-to-side rocking movement with a first movement amplitude during the traveling process.
- 根据权利要求3所述的方法,其特征在于,所述控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动,包括:The method according to claim 3, wherein the controlling the robot to perform rocking movement from side to side with a second movement range along the center line of the positioning and navigation path during traveling, comprising:控制所述机器人沿所述定位导航路径的中心线以相同的第二移动幅度在行进过程中进行左右摇摆性移动;或者Controlling the robot to perform a left-right rocking movement along the centerline of the positioning and navigation path with the same second movement amplitude during travel; or根据所述机器人所处位置的样本环境特征的密度、以及环境特征的密度与移动幅度之间的第二预设对应关系,确定所述第二移动幅度,并控制所述机器人沿所述定位导航路径的中心线以第二移动幅度在行进过程中进行左右摇摆性移动。The second movement range is determined according to the density of the sample environment features at the location of the robot and the second preset correspondence between the density of the environment features and the movement range, and the robot is controlled to navigate along the positioning The centerline of the path moves side-to-side oscillatingly during travel by the second movement amplitude.
- 根据权利要求1或2所述的方法,其特征在于,所述根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置,包括:The method according to claim 1 or 2, wherein the position of the robot is determined according to the environmental characteristics collected by the sensor after the adjustment of the scanning range at the position of the robot, include:若调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征与所述样本环境特征的匹配程度小于所述预设阈值,则控制所述机器人重复执行旋转定位指令,直到所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度大于或等于所述预设阈值,所述旋转定位指令用于控制所述机器人在所处位置旋转,并当所述机器人旋转后所述传感器采集到的环境特征与对应位置的所述样本环境特征的匹配程度小于所述预设阈值时,控制所述机器人沿所述定位导航路径向前移动到新的位置;If the matching degree between the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range and the sample environmental characteristics is less than the preset threshold, the robot is controlled to repeatedly execute the rotation positioning instruction, Until the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position is greater than or equal to the preset threshold, the rotation and positioning instruction is used to control the robot to rotate at the position, and when all When the degree of matching between the environmental characteristics collected by the sensor and the sample environmental characteristics of the corresponding position after the robot rotates is less than the preset threshold, the robot is controlled to move forward along the positioning and navigation path to a new position;根据所述机器人在停止执行所述旋转定位指令后所述传感器采集到的环境特征,确定所述机器人所处的位置。The position of the robot is determined according to the environmental characteristics collected by the sensor after the robot stops executing the rotation positioning instruction.
- 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:在所述机器人沿所述定位导航路径中心线左右摇摆性移动的过程中,确定所述机器人可行进的无障碍区域,并在所述无障碍区域中确定所述机器人的避障移动路径;During the swinging movement of the robot left and right along the centerline of the positioning and navigation path, determining an obstacle-free area in which the robot can travel, and determining an obstacle-avoiding movement path of the robot in the obstacle-free area;控制所述机器人按照所述避障移动路径进行移动。The robot is controlled to move according to the obstacle avoidance movement path.
- 一种机器人定位装置,其特征在于,包括:A robot positioning device, comprising:第一控制模块,用于控制机器人基于已建地图对应的定位导航路径进行移动,所述已建地图是根据所述机器人在目标环境中通过左右摇摆性移动的方式采集到的样本环境特征进行地图重建而得到的;The first control module is used to control the robot to move based on the positioning and navigation path corresponding to the built map, and the built map is based on the sample environment features collected by the robot in the target environment by swinging left and right. rebuilt;获取模块,用于在移动过程中获取所述机器人所处位置的实际环境特征,并确定所述机器人所处位置对应的所述样本环境特征;an acquisition module, configured to acquire the actual environmental characteristics of the location of the robot during the movement process, and to determine the sample environmental characteristics corresponding to the location of the robot;第二控制模块,用于当所述实际环境特征与所述样本环境特征的匹配程度小于预设阈值时,控制所述机器人沿所述定位导航路径的中心线在行进过程中进行左右摇摆性移动,以调整用于采集环境特征信息的传感器的扫描范围;The second control module is configured to control the robot to swing left and right along the centerline of the positioning and navigation path during traveling when the matching degree between the actual environment feature and the sample environment feature is less than a preset threshold , to adjust the scanning range of the sensor used to collect environmental feature information;定位模块,用于根据调整所述扫描范围后的所述传感器在所述机器人所处位置采集到的环境特征,确定所述机器人所处的位置。The positioning module is configured to determine the position of the robot according to the environmental characteristics collected by the sensor at the position of the robot after adjusting the scanning range.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1-7中任一项所述方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
- 一种电子设备,其特征在于,包括:An electronic device, comprising:存储器,其上存储有计算机程序;a memory on which a computer program is stored;处理器,用于执行所述存储器中的所述计算机程序,以实现权利要求1-7中任一项所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-7.
- 一种计算机程序产品,其特征在于,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行权利要求1-7中任一项所述方法的代码部分。A computer program product, characterized in that the computer program product comprises a computer program executable by a programmable device, the computer program having, when executed by the programmable device, for performing any one of claims 1-7 The code part of the method described in item.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011565214.5A CN112581535B (en) | 2020-12-25 | 2020-12-25 | Robot positioning method, device, storage medium and electronic equipment |
CN202011565214.5 | 2020-12-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022134680A1 true WO2022134680A1 (en) | 2022-06-30 |
Family
ID=75139758
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/119172 WO2022134680A1 (en) | 2020-12-25 | 2021-09-17 | Method and device for robot positioning, storage medium, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112581535B (en) |
WO (1) | WO2022134680A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112581535B (en) * | 2020-12-25 | 2023-03-24 | 达闼机器人股份有限公司 | Robot positioning method, device, storage medium and electronic equipment |
CN115237113B (en) * | 2021-08-02 | 2023-05-12 | 达闼机器人股份有限公司 | Robot navigation method, robot system and storage medium |
CN114407005A (en) * | 2021-12-02 | 2022-04-29 | 国能铁路装备有限责任公司 | Robot and walking control method and device thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100288307A1 (en) * | 2009-05-14 | 2010-11-18 | Samsung Electronics Co., Ltd. | Robot cleaner and method for controlling the same |
CN105806337A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Positioning method applied to indoor robot, and indoor robot |
CN105806331A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Positioning method for indoor robot and indoor robot |
CN105892461A (en) * | 2016-04-13 | 2016-08-24 | 上海物景智能科技有限公司 | Method and system for matching and recognizing the environment where robot is and map |
CN107168331A (en) * | 2017-06-20 | 2017-09-15 | 南京阿凡达机器人科技有限公司 | Map creating method in robot chamber based on optical mouse sensor displacement detecting |
CN108594825A (en) * | 2018-05-31 | 2018-09-28 | 四川斐讯信息技术有限公司 | Sweeping robot control method based on depth camera and system |
CN110605713A (en) * | 2018-06-15 | 2019-12-24 | 科沃斯机器人股份有限公司 | Robot positioning method, robot, and storage medium |
CN112581535A (en) * | 2020-12-25 | 2021-03-30 | 达闼机器人有限公司 | Robot positioning method, device, storage medium and electronic equipment |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9668146B2 (en) * | 2014-04-25 | 2017-05-30 | The Hong Kong University Of Science And Technology | Autonomous robot-assisted indoor wireless coverage characterization platform |
CN104501811A (en) * | 2014-11-24 | 2015-04-08 | 杭州申昊科技股份有限公司 | Map matching method based on environmental linear features |
CN107378953A (en) * | 2017-09-20 | 2017-11-24 | 深圳市杉川机器人有限公司 | Clean control method, device, sweeping robot and readable storage medium storing program for executing |
CN108759844B (en) * | 2018-06-07 | 2021-11-16 | 科沃斯商用机器人有限公司 | Robot repositioning and environment map constructing method, robot and storage medium |
KR101948728B1 (en) * | 2018-09-28 | 2019-02-15 | 네이버랩스 주식회사 | Method and system for collecting data |
JP7225762B2 (en) * | 2018-12-17 | 2023-02-21 | カシオ計算機株式会社 | Self-position estimation device, self-position estimation method and program |
CN109724603A (en) * | 2019-01-08 | 2019-05-07 | 北京航空航天大学 | A kind of Indoor Robot air navigation aid based on environmental characteristic detection |
CN110220524A (en) * | 2019-04-23 | 2019-09-10 | 炬星科技(深圳)有限公司 | Paths planning method, electronic equipment, robot and computer readable storage medium |
CN110083165B (en) * | 2019-05-21 | 2022-03-08 | 大连大学 | Path planning method of robot in complex narrow environment |
CN111006676B (en) * | 2019-11-14 | 2021-08-31 | 广东博智林机器人有限公司 | Map construction method, device and system |
CN111105454B (en) * | 2019-11-22 | 2023-05-09 | 北京小米移动软件有限公司 | Method, device and medium for obtaining positioning information |
-
2020
- 2020-12-25 CN CN202011565214.5A patent/CN112581535B/en active Active
-
2021
- 2021-09-17 WO PCT/CN2021/119172 patent/WO2022134680A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100288307A1 (en) * | 2009-05-14 | 2010-11-18 | Samsung Electronics Co., Ltd. | Robot cleaner and method for controlling the same |
CN105806337A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Positioning method applied to indoor robot, and indoor robot |
CN105806331A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Positioning method for indoor robot and indoor robot |
CN105892461A (en) * | 2016-04-13 | 2016-08-24 | 上海物景智能科技有限公司 | Method and system for matching and recognizing the environment where robot is and map |
CN107168331A (en) * | 2017-06-20 | 2017-09-15 | 南京阿凡达机器人科技有限公司 | Map creating method in robot chamber based on optical mouse sensor displacement detecting |
CN108594825A (en) * | 2018-05-31 | 2018-09-28 | 四川斐讯信息技术有限公司 | Sweeping robot control method based on depth camera and system |
CN110605713A (en) * | 2018-06-15 | 2019-12-24 | 科沃斯机器人股份有限公司 | Robot positioning method, robot, and storage medium |
CN112581535A (en) * | 2020-12-25 | 2021-03-30 | 达闼机器人有限公司 | Robot positioning method, device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112581535B (en) | 2023-03-24 |
CN112581535A (en) | 2021-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022134680A1 (en) | Method and device for robot positioning, storage medium, and electronic device | |
US11914370B2 (en) | System and method for providing easy-to-use release and auto-positioning for drone applications | |
CN107992052B (en) | Target tracking method and device, mobile device and storage medium | |
KR102460225B1 (en) | The laser scan system, the laser scan method, and the movement laser scan system and program | |
CN108475059B (en) | Autonomous visual navigation | |
WO2019144541A1 (en) | Cleaning robot | |
WO2018068771A1 (en) | Target tracking method and system, electronic device, and computer storage medium | |
US20170021497A1 (en) | Collaborative human-robot swarm | |
EP3574285A1 (en) | Laser scanner with real-time, online ego-motion estimation | |
US20230057965A1 (en) | Robot and control method therefor | |
WO2018214978A1 (en) | Positioning device and method and automatically moving apparatus | |
WO2018077307A1 (en) | Movement control method and apparatus, and computer storage medium | |
US20200169666A1 (en) | Target observation method, related device and system | |
Ye et al. | 6-DOF pose estimation of a robotic navigation aid by tracking visual and geometric features | |
WO2019128496A1 (en) | Device motion control | |
WO2023273415A1 (en) | Positioning method and apparatus based on unmanned aerial vehicle, storage medium, electronic device, and product | |
US20210141381A1 (en) | Information processing device, information processing system, behavior planning method, and computer program | |
WO2022041343A1 (en) | Robotic vacuum cleaner, control method and device for robotic vacuum cleaner, and computer-readable storage medium | |
CN114034299A (en) | Navigation system based on active laser SLAM | |
WO2018133074A1 (en) | Intelligent wheelchair system based on big data and artificial intelligence | |
US20210316452A1 (en) | Information processing device, action decision method and program | |
JP7499898B1 (en) | Orbit correction system and orbit correction method | |
JP2020154751A (en) | Mobile body control device, mobile body control method, and computer program | |
WO2021114987A1 (en) | Autonomous robot, wireless charging and docking method and apparatus therefor, and storage medium | |
Tran-Ngoc et al. | Gait-Adaptive Navigation and Human Searching in field with Cyborg Insect |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21908681 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.11.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21908681 Country of ref document: EP Kind code of ref document: A1 |