WO2021190646A1 - 一种地图切换方法和移动机器人 - Google Patents

一种地图切换方法和移动机器人 Download PDF

Info

Publication number
WO2021190646A1
WO2021190646A1 PCT/CN2021/083420 CN2021083420W WO2021190646A1 WO 2021190646 A1 WO2021190646 A1 WO 2021190646A1 CN 2021083420 W CN2021083420 W CN 2021083420W WO 2021190646 A1 WO2021190646 A1 WO 2021190646A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile robot
current position
map
area map
area
Prior art date
Application number
PCT/CN2021/083420
Other languages
English (en)
French (fr)
Inventor
陈元吉
Original Assignee
杭州海康机器人技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康机器人技术有限公司 filed Critical 杭州海康机器人技术有限公司
Publication of WO2021190646A1 publication Critical patent/WO2021190646A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations

Definitions

  • This application relates to the field of navigation technology, in particular, to a map switching method and a mobile robot.
  • maps provide environment description data for machine vision positioning.
  • SLAM Simultaneous Localization And Mapping
  • This application provides a map switching method and a mobile robot to solve the problem of map switching during the visual positioning of the mobile robot.
  • an embodiment of the present application provides a map switching method, and the method includes:
  • the mobile robot loads a first area map including at least the first current position of the mobile robot according to the first current position of the mobile robot, and saves it in the first storage space; wherein, the data of the first area map
  • the capacity is less than or equal to the capacity of the local first storage space of the mobile robot;
  • the mobile robot calculates the minimum distance between the second current position of the mobile robot and the boundary of the first area map based on the first area map;
  • the mobile robot loads at least including The second area map of the second current position of the mobile robot is stored in a second storage space; wherein the data capacity of the second area map is less than or equal to that of the local second storage space of the mobile robot capacity;
  • the mobile robot switches to The second area map is used for positioning; wherein, the second threshold is less than or equal to the first threshold.
  • an embodiment of the present application provides a system for scheduling mobile robots, the system including: a scheduling platform and at least one mobile robot;
  • each mobile robot includes a memory and a processor, and the memory stores instructions that can be executed by the processor, and the instructions are executed by the processor so that the processor executes any one of the maps provided in the first aspect. Steps of switching method;
  • the scheduling platform includes a memory and a processor, and the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor executes any one of the map switching methods provided in the first aspect above A step of.
  • an embodiment of the present application provides a mobile robot, and the mobile robot includes:
  • the first loading module is configured to load a first area map including at least the first current position of the mobile robot according to the first current position of the mobile robot, and save it in the first storage space; wherein, the first area map is stored in the first storage space;
  • the data capacity of an area map is less than or equal to the capacity of the local first storage space of the mobile robot;
  • a first calculation module configured to calculate the minimum distance between the second current position of the mobile robot and the boundary of the first area map based on the first area map;
  • the second loading module is used for when the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold value, according to the second current position of the mobile robot, Load a second area map including at least the second current position of the mobile robot and save it in a second storage space; wherein the data capacity of the second area map is less than or equal to the second local area map of the mobile robot. Capacity of storage space;
  • the first switching module is configured to switch when the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than a set second threshold To perform positioning based on the second area map; wherein the second threshold is less than or equal to the first threshold.
  • an embodiment of the present application provides a map switching method, which is applied to a mobile robot, and the method includes:
  • the first area map is: loaded according to the first current position of the mobile robot, at least containing the first area of the mobile robot A map of the current location;
  • an embodiment of the present application provides a map switching device, which is applied to a mobile robot, and the device includes:
  • the second calculation module is used to calculate the minimum distance between the second current position of the mobile robot and the boundary of the first area map; wherein the first area map is: loaded according to the first current position of the mobile robot including at least A map of the first current position of the mobile robot;
  • the third loading module is used for when the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold value, according to the second current position of the mobile robot, Load a second area map including at least the second current position of the mobile robot and save it in a second storage space; wherein the data capacity of the second area map is less than or equal to the second local area map of the mobile robot. Capacity of storage space;
  • the second switching module is configured to switch when the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than a set second threshold To perform positioning based on the second area map; wherein the second threshold is less than or equal to the first threshold.
  • an embodiment of the present application provides a mobile robot, wherein the mobile robot includes a memory and a processor, the memory stores instructions executable by the processor, and the instructions are executed by the processor to enable The processor executes the steps of any one of the map switching methods provided in the fourth aspect.
  • an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned first or fourth aspects is implemented. Map switching method steps.
  • an embodiment of the present application provides a computer program containing instructions, which when run on a computer, causes the computer to execute the steps of any map switching method provided in the first aspect or the fourth aspect.
  • the application of the solution provided in this application can solve the problem of map switching during the visual positioning of the mobile robot.
  • load the source area map including the first current position of the mobile robot, that is, the first area map, and the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to
  • the acquisition of target map information is triggered, and the target area map is extracted for storage according to the capacity of the second storage space for storing the target area map, that is, the second area map is extracted.
  • the mobile robot s requirements for storage space for storing maps are reduced, and on the other hand, the target area map is loaded in advance, and time is reserved for switching, so that the map switching between the two overlapping areas of the map There is ample margin between them, which realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • Fig. 1 is a flow chart of map switching in the first embodiment.
  • Figure 2 is a schematic diagram of map switching preparation.
  • Fig. 3 is a flow chart of map switching in the second embodiment.
  • Fig. 4 is a flow chart of map switching in the third embodiment.
  • Fig. 5 is a flow chart of map switching in the fourth embodiment.
  • Fig. 6 is a schematic diagram of a scheduling system for scheduling mobile robots.
  • Fig. 7 is a schematic diagram of a mobile robot for realizing map switching.
  • the maximum storage space for storing the map is determined according to the memory of the mobile robot; and the first storage space in the maximum storage space is determined as the space for storing the currently loaded source area map, where ,
  • the source area map may also be called the first area map
  • the second storage space in the maximum storage space is determined as the space for storing the target area map to be switched, where the target area map may also be called the second area map.
  • both the first area map and the second area map are maps that include at least the current position of the robot.
  • the mobile robot locally has a first storage space for storing the currently loaded source area map, and a second storage space for storing the target area map to be switched; it can also be called: the mobile robot locally exists for The first storage space for storing the currently loaded map of the first area, and the second storage space for storing the map of the second area to be switched.
  • the capacity of the aforementioned first storage space and the second storage space may be the same.
  • the capacity of the first storage space and the second storage space may be different.
  • a map switching method provided by an embodiment of the present application may include the following steps:
  • the mobile robot loads a first area map including at least the first current position of the mobile robot according to the first current position of the mobile robot, and saves it in the first storage space; wherein, the data of the first area map
  • the capacity is less than or equal to the capacity of the local first storage space of the mobile robot;
  • the mobile robot calculates the minimum distance between the second current position of the mobile robot and the boundary of the first area map based on the first area map;
  • the mobile robot loads at least including The second area map of the second current position of the mobile robot is stored in a second storage space; wherein the data capacity of the second area map is less than or equal to that of the local second storage space of the mobile robot capacity;
  • the mobile robot switches to The second area map is used for positioning; wherein, the second threshold is less than or equal to the first threshold.
  • the application of the solution provided in this application can solve the problem of map switching during the visual positioning of the mobile robot.
  • load the source area map including the first current position of the mobile robot, that is, the first area map, and the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to
  • the acquisition of target map information is triggered, and the target area map is extracted for storage according to the capacity of the second storage space for storing the target area map, that is, the second area map is extracted.
  • the mobile robot s requirements for storage space for storing maps are reduced, and on the other hand, the target area map is loaded in advance, and time is reserved for switching, so that the map switching between the two overlapping areas of the map There is ample margin between them, which realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • the mobile robot can obtain the map information of the current task through the scheduling platform to which the mobile robot belongs, and generate the first area map and the second area map on the mobile robot side.
  • the switching method includes:
  • Step 101 The mobile robot determines the area size of the source area map according to the capacity of the first storage space for storing the source area map.
  • the mobile robot can determine the area size of the source area map according to the capacity of the first storage space. Moreover, since the source area area is loaded into the first storage space, the determined data capacity of the source area map is less than or equal to the capacity of the first storage space.
  • the area shape of the source area map of the physical range corresponding to a byte may be a square with side length b, or a rectangle with side length b ⁇ c, or a radius For the round shape of r, etc.
  • the specific area shape of the source area map can be designed according to requirements, as long as the data capacity of the source area map is less than or equal to the capacity of the first storage space.
  • Step 102 The mobile robot obtains the first current position.
  • the first current position acquired by the mobile robot is the position where the mobile robot is when performing this step.
  • the mobile robot may interact with the dispatch platform to receive the first current position of the mobile robot provided by the dispatch platform, and report its own identification to the dispatch platform.
  • the mobile robot may obtain the first current position of the mobile robot based on the set initial position. At this time, the mobile robot may report the first current position of the mobile robot and the identification of the mobile robot to the scheduling platform.
  • Step 103 The mobile robot receives the source map information issued by the scheduling platform, and loads a first area map including at least the first current position according to the first current position.
  • the mobile robot can receive the source map information issued by the scheduling platform, and thus, according to the first current position of the mobile robot, determine from the source map information a first area map including at least the first current position of the mobile robot, and then load the determined Map of the first area.
  • the first area map may be centered on the first current position of the mobile robot and stored in the first storage space.
  • the first area map may also be referred to as a source area map.
  • the scheduling platform obtains the first current position of the mobile robot and the identification of the mobile robot, it can find the map information including the first current position of the mobile robot according to the first current position of the mobile robot, as the source map information, the source The map information may be information of any map including the first current location of the mobile robot in the map database stored by the dispatch platform, and then the dispatch platform may send the determined source map information to the mobile robot according to the mobile robot's identification.
  • the mobile robot can receive the source map information issued by the dispatch platform, extract the first area map including the first current position of the mobile robot from the source map information, and load the first area map.
  • the first area map extracted by the mobile robot from the received source map information may be a map having a set first area shape and centered on the first current position of the mobile robot, and the first area The data capacity corresponding to the map is less than or equal to the capacity of the first storage space.
  • Step 104 The mobile robot calculates the minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • the mobile robot may be stationary or moving. Then, when the mobile robot is moving in the process, when the first area map is loaded, the position of the mobile robot and the first current position when the mobile robot starts to load the first area map may be different; In this process, when the mobile robot is stationary, that is, during the loading process of the first area map, the position of the mobile robot does not change, then when the first area map is loaded, the position of the mobile robot is the same as The first current position when the mobile robot starts to load the map of the first area is the same position.
  • the second current position of the mobile robot is the current position when the mobile robot executes step 104.
  • the second current position of the mobile robot may be: based on the loading of the mobile robot in the first area The movement situation during the map process, the current position of the mobile robot when the map of the first area is loaded.
  • the mobile robot will determine the new second current position of the mobile robot again, and then repeat the execution In the above step 104, the minimum distance between the new second current position and the boundary of the first area map is calculated.
  • the mobile robot can be moving, then the determined new second current position The position is different from the second current position used in the previous calculation.
  • the new second current position of the mobile robot is: when the minimum distance calculated last time is greater than the set first threshold, when the mobile robot executes the above step 104 again, the current position is s position.
  • the mobile robot may calculate the difference between the second current position and each node according to the coordinates of the second current position of the mobile robot and the coordinates of each node on the boundary of the first area map.
  • the minimum distance among the obtained distances is used as the minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • the second implementation manner according to the current movement direction of the mobile robot, determine the node of the boundary of the first area map intersected by the extension line of the current movement direction, and calculate the distance between the second current position of the mobile robot and the node to obtain The minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • the node that intersects with the extension line of the current movement direction of the mobile robot on the boundary of the first area map can be determined, so that the distance between the second current position of the mobile robot and the determined node is the mobile The minimum distance between the second current position of the robot and the boundary of the first area map.
  • the second current position of the mobile robot may be represented by coordinates in the world coordinate system, and the position of each node on the boundary of the first area map may also be represented by coordinates in the world coordinates.
  • Step 105 The mobile robot judges whether the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold. If so, prepare for switching, that is, perform step 106, otherwise, The current location is acquired based on the current map, and step 104 is returned to.
  • the mobile robot can determine whether the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold, if yes, go to step 106, otherwise, get the current position based on the current map and return to the step 104.
  • the current map in step 105 may be the map of the first area.
  • Step 106 The mobile robot reports the second current position and the identification of the mobile robot to the dispatching platform, so that the dispatching platform sends target map information to the mobile robot according to the second current position.
  • the scheduling platform When the scheduling platform receives the second current position of the mobile robot and the identification of the mobile robot reported by the mobile robot, it can find the map information including the second current position of the mobile robot according to the second current position of the mobile robot, as the target map information.
  • the target map information may be information of any map including the second current location of the mobile robot in the map database stored by the dispatch platform, and then the dispatch platform may send the determined target map information to the mobile robot according to the mobile robot’s identification. .
  • Step 107 The mobile robot receives the target map information issued by the scheduling platform, and loads a second area map including at least the second current position according to the second current position.
  • the mobile robot may receive the target map information issued by the scheduling platform, and load the second area map including at least the second current position of the mobile robot according to the second current position of the mobile robot.
  • the mobile robot when receiving the target map information issued by the scheduling platform, the mobile robot can extract the second area map including the second current position of the mobile robot from the target map information, and load the second area map.
  • the second area map may be centered on the second current position of the mobile robot and stored in the second storage space.
  • the second area map may also be referred to as a target area map.
  • the second area map extracted by the mobile robot from the received target map information may be a map having a set second area shape and centered on the second current position of the mobile robot, and the second area The data capacity corresponding to the map is less than or equal to the capacity of the second storage space.
  • the shape of the first region is the same as the shape of the second region.
  • the switching process between the first area map and the second area map can make the switching The map information before and after is not missing.
  • Step 108 When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, the mobile robot switches to the second area map and releases the first area map.
  • a regional map When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, the mobile robot switches to the second area map and releases the first area map.
  • the second threshold is less than or equal to the first threshold.
  • the mobile robot in the process of loading the map of the second area by the mobile robot, the mobile robot may be stationary or moving. Then, when the mobile robot is moving in the process, when the second area map is loaded, the position of the mobile robot and the second current position when the mobile robot starts to load the second area map may be different; In this process, when the mobile robot is stationary, that is, during the loading process of the second area map, the position of the mobile robot does not change, then when the second area map is loaded, the position of the mobile robot is the same as The second current position when the mobile robot starts to load the second area map is the same position.
  • the third current position of the mobile robot is the current position when the mobile robot executes step 108.
  • the third current position of the mobile robot may be: based on the mobile robot loading the second area The movement situation during the map process, and the current position of the mobile robot when the map of the second area is loaded.
  • the mobile robot will determine the new third current position of the mobile robot again, and then repeat the execution In the above step 108, the minimum distance between the new third current position and the boundary of the first area map is calculated.
  • the mobile robot can be moving, then the determined new third current position The position is different from the third current position used in the previous calculation.
  • the new third current position of the mobile robot is: when the minimum distance calculated last time is greater than the set second threshold, when the mobile robot executes the above step 108 again, the current position is s position.
  • the mobile robot can switch to positioning based on the second area map.
  • the data in the first storage space used to store the map of the first area can be cleared so that it can be used to store the area map for the next switch. Based on this, when the second area map is loaded and the third area of the mobile robot is loaded When the minimum distance between the current position and the boundary of the first area map is not greater than the set second threshold, the first area map stored in the first storage space may be released. At this point, you can complete a map switch.
  • FIG. 2 is a schematic diagram of map switching preparation, in which the solid line frame is the currently used source area map, and the dotted line frame is the target area map to be switched.
  • c is a set first threshold, and the first threshold may be determined according to the maximum moving speed v of the mobile robot and the time t for acquiring the map.
  • the above-mentioned first threshold is: a product result of the maximum moving speed of the mobile robot and the time-consuming map acquisition. That is to say, the first threshold is positively correlated with the maximum moving speed of the mobile robot, and the first threshold is positively correlated with the time taken to acquire the map.
  • the mobile robot can request the dispatching platform for the target map information to be switched when the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to the set first threshold, and then according to The capacity of the second storage space extracts the target area map for loading and storage.
  • the capacity of the second storage space extracts the target area map for loading and storage.
  • it reduces the storage space requirements of the mobile robot for storing maps. Set aside time so that there is ample margin between the two maps with overlapping areas during map switching, realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • the scheduling platform can generate the first area map and the second area map according to the current location of the mobile robot reported by the mobile robot, and the capacity of the first storage space and the second storage space, and combine the generated first area map and the second area map.
  • the first area map and the second area map are issued to the mobile robot for map switching.
  • the switching method includes:
  • Step 301 The mobile robot reports the capacity of its first storage space and the identification (ID) of the mobile robot to the dispatch platform, so that the dispatch platform determines the first area issued to the mobile robot according to the capacity of the first storage space The data capacity of the map.
  • ID the identification of the mobile robot
  • the scheduling platform can issue the first area map with the determined data capacity to the mobile robot according to the identification of the mobile robot.
  • the scheduling platform may save the received capacity and identification.
  • Step 302 The mobile robot interacts with the scheduling platform, so that the scheduling platform obtains the first current position of the mobile robot.
  • the mobile robot may obtain the first current position of the mobile robot based on the set initial position, and report the obtained first current position of the mobile robot to the scheduling platform.
  • steps 301 and 302 may not have a strict sequence.
  • Step 303 The mobile robot receives the first area map issued by the scheduling platform and loads it into the first storage space.
  • the first area map is the data capacity of the first area map determined by the scheduling platform according to the first area shape set and the capacity of the first storage space, and the first current position of the mobile robot is taken from the scheduling platform. Generated from the map information stored on the side; and, the data capacity of the first area map is less than or equal to the capacity of the first storage space.
  • the first area shape of the first area map may be preset in the scheduling platform, and further, the scheduling platform may also determine the data capacity of the first area map according to the capacity of the first storage space. In this way, the scheduling platform can determine the first area map centered on the first current position of the mobile robot from the map information stored on the scheduling platform side according to the data capacity of the first area map and the first area shape.
  • the scheduling platform can send the first area map to the mobile robot according to the mobile robot's identification.
  • Step 304 The mobile robot calculates the minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • this step is the same as step 104 in the first embodiment above, and will not be repeated here.
  • Step 305 The mobile robot judges whether the minimum distance between the second current position and the boundary of the first area map is not greater than the set first threshold. If so, prepare for handover, that is, perform step 306, otherwise, based on the current map Obtain the current location information, and return to step 304.
  • this step is the same as step 105 in the above-mentioned first embodiment, and will not be repeated here.
  • the setting of the first threshold in this step is the same as the setting of the first threshold in the first embodiment.
  • Step 306 The mobile robot reports the second current position, the identification of the mobile robot, and the capacity of the second storage space to the scheduling platform, so that the scheduling platform issues the second current position to the mobile robot according to the second current position and the second storage space capacity.
  • Area map The mapping.
  • the second area map is the data capacity of the second area map determined by the scheduling platform according to the second area shape and the capacity of the second storage space.
  • the second current position of the mobile robot is taken from the scheduling platform. Generated by extracting from the map information stored on the side; and, the data capacity of the second area map is less than or equal to the capacity of the second storage space.
  • the second area shape of the second area map may be preset in the scheduling platform, and further, the scheduling platform may also determine the data capacity of the second area map according to the capacity of the second storage space. In this way, the scheduling platform can determine the second area map centered on the second current position of the mobile robot from the map information stored on the scheduling platform side according to the data capacity of the second area map and the shape of the second area.
  • the scheduling platform can send the first area map to the mobile robot according to the mobile robot's identification.
  • the mobile robot may not report the capacity of the second storage space.
  • the scheduling platform can determine the data capacity of the second area map according to the capacity of the first storage space, and further, the scheduling platform can determine the data capacity of the second area map according to the above-mentioned data capacity of the second area map and the preset second area of the second area map.
  • the shape, the second area map is generated with the second current position of the mobile robot as the center.
  • the shape of the first region is the same as the shape of the second region.
  • the switching process between the first area map and the second area map can make the switching The map information before and after is not missing.
  • Step 307 The mobile robot receives the second area map issued by the scheduling platform, and loads the area map into the second storage space.
  • the mobile robot can receive the second area map issued by the scheduling platform. After receiving the second area map, the mobile robot can load the second area map and store the second area map in the second storage space.
  • Step 308 When the second area map is loaded and the minimum distance between the third current position and the boundary of the first area map is not greater than the set second threshold, the mobile robot switches to the second area map and releases the first area map .
  • the second threshold is less than or equal to the first threshold.
  • the second area map When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, it can switch to positioning based on the second map.
  • the data in the first storage space used to store the map of the first area can be cleared so that it can be used to store the area map for the next switch. Based on this, when the second area map is loaded and the third area of the mobile robot is loaded When the minimum distance between the current position and the boundary of the first area map is not greater than the set second threshold, the first area map stored in the first storage space may be released. At this point, you can complete a map switch.
  • the target area map can be loaded in advance, and time is reserved for map switching, so that there is ample margin between the maps of two overlapping areas when the map is switched, and seamless map switching is realized. So that the mobile robot will not cause mission interruption due to map switching.
  • the first area map and the second area map are generated and issued by the dispatching station, which can further reduce the storage space requirements of the mobile robot for storing the map.
  • the first area map and the second area map can be determined through the interaction between the mobile robot and the scheduling platform.
  • the switching method includes:
  • Step 401 The mobile robot interacts with the scheduling platform, so that the scheduling platform obtains the first current position of the mobile robot.
  • the mobile robot may obtain the first current position of the mobile robot based on the set initial position, and report the first current position of the mobile robot and the identification of the mobile robot to the scheduling platform.
  • Step 402 The mobile robot receives the source map information issued by the scheduling platform, and loads the first area map centered on the first current position according to the first current position, as the source area map, and stores it in the first storage space.
  • the mobile robot can extract from the received source map information the first area map centered on the first current position of the mobile robot, the data capacity is less than or equal to the capacity of the first storage space, and the first area shape is set for loading. .
  • the source map information is determined by the dispatch platform according to the first current position of the mobile robot from the stored map information, and is issued according to the identification of the mobile robot.
  • Step 403 The mobile robot calculates the minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • this step is the same as step 104 in the first embodiment above, and will not be repeated here.
  • Step 404 The mobile robot judges whether the minimum distance between the second current position and the boundary of the first area map is not greater than the set first threshold. If so, prepare for handover, that is, perform step 405, otherwise, based on the current map Obtain the current location information, and return to step 403.
  • step 105 the steps are the same as step 105 in the above-mentioned first embodiment, and will not be repeated here.
  • step 105 the steps are the same as step 105 in the above-mentioned first embodiment, and will not be repeated here.
  • step 105 the steps are the same as step 105 in the above-mentioned first embodiment, and will not be repeated here.
  • the setting of the first threshold in this step is the same as the setting of the first threshold in the first embodiment.
  • Step 405 The mobile robot judges whether there is map information of the second current location in the source map information that has been issued. A second area map that is equal to the capacity of the second storage space and has a set second area shape is loaded. Otherwise, report the second current location, the mobile robot's identifier, and the capacity of the second storage space to the scheduling platform, so that the scheduling platform issues the second area to the mobile robot according to the second current location and the capacity of the second storage space Map, and clear the source map information to free up storage space.
  • the mobile robot can extract the second current position of the mobile robot from the received source map information as the center ,
  • the data capacity is less than or equal to the capacity of the second storage space, and the second area map with the set second area shape is loaded.
  • the mobile robot can report the second current position of the mobile robot, the identification of the mobile robot, and the second The capacity of the storage space, so that the scheduling platform issues the second area map to the mobile robot according to the second current position of the mobile robot and the capacity of the second storage space, and clears the source map information to release the storage space.
  • the second area map is the data capacity of the second area map determined by the scheduling platform according to the second area shape and the capacity of the second storage space.
  • the second current position of the mobile robot is taken from the scheduling platform. Generated by extracting from the map information stored on the side; and, the capacity data of the second area map is less than or equal to the capacity of the second storage space.
  • the second area shape of the second area map may be preset in the scheduling platform, and further, the scheduling platform may also determine the data capacity of the second area map according to the capacity of the second storage space. In this way, the scheduling platform can determine the second area map centered on the second current position of the mobile robot from the map information stored on the scheduling platform side according to the data capacity of the second area map and the shape of the second area.
  • the shape of the first region is the same as the shape of the second region.
  • the switching process between the first area map and the second area map can make the switching The map information before and after is not missing.
  • Step 406 The mobile robot receives the second area map issued by the scheduling platform, and loads the area map into the second storage space.
  • the mobile robot can receive the second area map issued by the scheduling platform. After receiving the second area map, the mobile robot can load the second area map and store the second area map in the local second storage space. .
  • Step 407 When the second area map is loaded and the minimum distance between the third current position and the boundary of the first area map is not greater than the set second threshold, the mobile robot switches to the second area map and releases the first area map.
  • the second threshold is less than or equal to the first threshold.
  • the second area map When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, it can switch to positioning based on the second map.
  • the data in the first storage space used to store the map of the first area can be cleared so that it can be used to store the area map for the next switch. Based on this, when the second area map is loaded and the third area of the mobile robot is loaded When the minimum distance between the current position and the boundary of the first area map is not greater than the set second threshold, the first area map stored in the first storage space may be released. At this point, you can complete a map switch.
  • Step 408 The mobile robot receives target map information issued by the scheduling platform for generating a map of the second area, and stores the target map information as source map information.
  • the target map information used to generate the second area map is issued after the second area map, it does not take up the switching time and realizes seamless switching, and also enables the mobile robot to behave as a mobile robot in the subsequent switching process.
  • the moving distance is small, there is no need to obtain the map from the dispatching platform, which saves the map acquisition and transmission time.
  • the area map is generated by the mobile robot, and when the moving distance of the mobile robot is large, the second area map is generated by the scheduling platform, so that the overall This saves the map acquisition and transmission time, and improves the switching efficiency.
  • the mobile robot can be used as an independent terminal to switch maps, so as to reduce the storage space occupied by loading the map of the first area and/or the map of the second area during positioning.
  • the switching method includes:
  • step 501 the mobile robot loads all map information needed to perform the task and stores it in the local memory of the mobile robot.
  • map information can be stored in the local peripheral storage space of the mobile robot.
  • Step 502 The mobile robot obtains the first current position.
  • the mobile robot may determine the first current position of the mobile robot based on the stored map information.
  • the mobile robot may obtain the first current position of the mobile robot based on the set initial position.
  • Step 503 According to the current position information, the mobile robot loads a first area map centered on the first current position as a source area map and stores it in the first storage space.
  • the first storage space is located in the local memory of the mobile robot.
  • the mobile robot can extract a first area map centered on the first current location of the mobile robot, the data capacity is less than or equal to the capacity of the first storage space, and the first area shape is set from the map information stored in the peripheral device. Load it.
  • Step 504 The mobile robot calculates the minimum distance between the first current position of the mobile robot and the boundary of the first area map.
  • this step is the same as step 104 in the first embodiment above, and will not be repeated here.
  • Step 505 The mobile robot judges whether the minimum distance between the second current position and the boundary of the first area map is not greater than the set first threshold. If so, prepare for handover, that is, perform step 506, otherwise, based on the current map Obtain current location information, and return to step 504.
  • step 505 is the same as step 105 in the above-mentioned first embodiment, and will not be repeated here.
  • the setting of the first threshold in this step is the same as the setting of the first threshold in the first embodiment.
  • Step 506 The mobile robot loads a second area map centered on the second current position according to the second current position as a target area map and stores it in the second storage space.
  • the second storage space is located in the local memory of the mobile robot.
  • the mobile robot can extract a second area map centered on the second current position of the mobile robot, the data capacity is less than or equal to the capacity of the second storage space, and the second area shape is set from the map information stored in the peripheral device. Load it.
  • the sum of the capacity of the first storage space and the capacity of the second storage space is less than or equal to the total memory capacity of the mobile robot for storing the map.
  • Step 507 When the second area map is loaded and the minimum distance between the third current position and the boundary of the first area map is not greater than the second threshold, the mobile robot switches to the second area map and releases the first area map.
  • the second threshold is less than or equal to the first threshold.
  • the second area map When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, it can switch to positioning based on the second map.
  • the data in the first storage space used to store the map of the first area can be cleared so that it can be used to store the area map for the next switch. Based on this, when the second area map is loaded and the third area of the mobile robot is loaded When the minimum distance between the current position and the boundary of the first area map is not greater than the set second threshold, the first area map stored in the first storage space may be released. At this point, you can complete a map switch.
  • the map can be stored in the local peripheral storage space of the mobile robot, and only the map currently used for positioning is loaded into the local memory of the mobile robot. In this way, the memory resource occupation of the mobile robot by the map is reduced.
  • the scheduling system includes: a scheduling platform for mobile robot scheduling and at least one mobile robot.
  • each mobile robot includes a memory and a processor, and the memory stores instructions that can be executed by the processor, and the instructions are executed by the processor so that the processor executes any of the steps of the map switching method. ;
  • the scheduling platform includes a memory and a processor, and the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor executes the steps of any one of the map switching methods.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • FIG. 7 is a schematic diagram of a mobile robot for realizing map switching.
  • the mobile robot includes:
  • the first loading module is configured to load a first area map including at least the first current position of the mobile robot according to the first current position of the mobile robot, and save it in the first storage space; wherein, the first area map is stored in the first storage space;
  • the data capacity of an area map is less than or equal to the capacity of the local first storage space of the mobile robot;
  • a first calculation module configured to calculate the minimum distance between the second current position of the mobile robot and the boundary of the first area map based on the first area map;
  • the second loading module is used for when the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold value, according to the second current position of the mobile robot, Load a second area map including at least the second current position of the mobile robot and save it in a second storage space; wherein the data capacity of the second area map is less than or equal to the second local area map of the mobile robot. Capacity of storage space;
  • the first switching module is configured to switch when the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than a set second threshold To perform positioning based on the second area map; wherein the second threshold is less than or equal to the first threshold.
  • the application of the solution provided in this application can solve the problem of map switching during the visual positioning of the mobile robot.
  • load the source area map including the first current position of the mobile robot, that is, the first area map, and the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to
  • the acquisition of target map information is triggered, and the target area map is extracted for storage according to the capacity of the second storage space for storing the target area map, that is, the second area map is extracted.
  • the mobile robot s requirements for storage space for storing maps are reduced, and on the other hand, the target area map is loaded in advance, and time is reserved for switching, so that the map switching between the two overlapping areas of the map There is ample margin between them, which realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • the first loading module is specifically configured to: load a first area map centered on the first current position of the mobile robot; wherein, the first area map has a first area map.
  • a region shape, the first current position of the mobile robot is at the center of the first region shape
  • the second loading module is specifically configured to: load a second region centered on the second current position of the mobile robot Map; wherein the second area map has a second area shape, and the second current position of the mobile robot is at the center of the second area shape;
  • the sum of the capacity of the first storage space and the capacity of the second storage space is less than or equal to the total memory capacity of the mobile robot for storing maps.
  • the first threshold is: a result of a product of the maximum moving speed and the time-consuming.
  • the capacity of the first storage space is the same as or different from the capacity of the second storage space
  • the shape of the first area is the same or different from the shape of the second area
  • the first threshold is determined according to the maximum moving speed of the mobile robot and the time taken to acquire the map
  • the device further includes: a data clearing module, configured to switch the mobile robot to perform positioning based on the second area map After that, the data of the first area map is cleared.
  • the minimum distance between the current position of the mobile robot and the boundary of the first area map satisfies any of the following conditions: the current position of the mobile robot and the first area map The minimum distance between the nodes on the boundary of the mobile robot; the distance between the node on the boundary of the first area map intersected by the extension line of the current movement direction of the mobile robot and the current position of the mobile robot;
  • the first loading module is specifically configured to receive the first current position of the mobile robot provided by the scheduling platform through interaction with the scheduling platform, and report to the scheduling platform
  • the identification of the mobile robot, or the first current position of the mobile robot is obtained based on the set initial position, and the first current position of the mobile robot and the identification of the mobile robot are reported to the dispatch platform; and the dispatch is received
  • the platform extracts and loads the first area map from the source map information according to the source map information delivered to the mobile robot according to the first current position of the mobile robot and the identifier of the mobile robot;
  • the second loading module is specifically configured to report the second current position of the mobile robot and the identification of the mobile robot to a dispatching platform, so that the dispatching platform can report the second current position of the mobile robot and the mobile robot's identification to the dispatching platform.
  • the identifier of the robot delivers target map information to the mobile robot; receives the target map information delivered by the scheduling platform, extracts the second area map from the target map information, and loads it.
  • the first loading module is specifically configured to: report the capacity of the first storage space and the identification of the mobile robot to a scheduling platform, so that the scheduling platform is based on the first
  • the capacity of the storage space determines the data capacity of the first area map issued to the mobile robot; the first current position of the mobile robot provided by the scheduling platform is received through interaction with the scheduling platform, and the first current position of the mobile robot is received by the scheduling platform.
  • the dispatch platform reports the identification of the mobile robot, or obtains the first current position of the mobile robot based on the set initial position, and reports the first current position of the mobile robot and the mobile robot’s first current position to the dispatch platform.
  • Identification receiving the first area map issued by the scheduling platform according to the identification of the mobile robot for loading; wherein the first area map is set by the scheduling platform according to the first area shape and according to the first area map
  • the data capacity of the first area map determined by the capacity of the storage space is generated from the map information stored on the scheduling platform side according to the first current position of the mobile robot;
  • the second loading module is specifically configured to: report the second current position of the mobile robot, the identification of the mobile robot, and the capacity of the second storage space to the scheduling platform;
  • the second area map issued by the robot’s logo is loaded; wherein the second area map is determined by the scheduling platform according to the second area shape set and the second area determined according to the capacity of the second storage space
  • the data capacity of the map is generated from the map information stored on the scheduling platform side according to the second current position of the mobile robot.
  • the first loading module is specifically configured to receive the first current position of the mobile robot provided by the scheduling platform through interaction with the scheduling platform, and report to the scheduling platform
  • the identification of the mobile robot, or the first current position of the mobile robot is obtained based on the set initial position, and the first current position of the mobile robot and the identification of the mobile robot are reported to the scheduling platform;
  • the dispatch platform extracts and loads a first area map from the source map information according to the source map information delivered to the mobile robot according to the first current position of the mobile robot and the identifier of the mobile robot;
  • the device further includes: an information judgment module for judging that the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than a set first threshold value. Whether there is map information of the second current location of the mobile robot in the source map information, if so, extract the second area map from the source map information; otherwise, report the mobile robot to the dispatch platform The second current position of, the identification of the mobile robot, and the capacity of the second storage space;
  • the second loading module is specifically configured to receive and load a second area map issued by the dispatch platform according to the identifier of the mobile robot; wherein the second area map is loaded by the dispatch platform according to the first 2.
  • the data capacity of the second area map determined by the capacity of the storage space and the set second area shape are generated from the map information stored on the scheduling platform according to the second current position of the mobile robot;
  • the device further includes: a map storage module, configured to receive target map information issued by the scheduling platform for generating the second area map, and store the target map information as source map information.
  • a map storage module configured to receive target map information issued by the scheduling platform for generating the second area map, and store the target map information as source map information.
  • the embodiments of the present application also provide a computer-readable storage medium in which a computer program is stored, and the computer program is executed by a processor at any time. 1. The response step of the map switching method.
  • the embodiments of the application also provide a computer program product containing instructions that, when run on a computer, cause the computer to execute any one of the methods provided in the first aspect above. The steps of the map switching method.
  • the embodiment of the present application also provides a map switching method applied to a mobile robot.
  • a map switching method applied to a mobile robot may include the following steps 1 to 3:
  • Step 1 Calculate the minimum distance between the second current position of the mobile robot and the boundary of the first area map
  • the first area map is: a map loaded according to the first current position of the mobile robot and containing at least the first current position of the mobile robot;
  • the minimum distance between the second current position of the mobile robot and the boundary of the first area map satisfies any of the following conditions:
  • Step 2 When the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold value, according to the second current position of the mobile robot, load at least The second area map of the second current position of the mobile robot and stored in the second storage space;
  • the data capacity of the second area map is less than or equal to the capacity of the local second storage space of the mobile robot
  • the loading a second area map including at least the current position of the mobile robot according to the second current position of the mobile robot includes the following steps:
  • the target map information issued by the scheduling platform is received, and the second area map is extracted from the target map information for loading.
  • the loading a second area map including at least the current position of the mobile robot according to the second current position of the mobile robot includes the following steps:
  • the second area map issued by the dispatch platform according to the identifier of the mobile robot is received and loaded; wherein, the second area map is loaded by the dispatch platform according to the second area shape set by the dispatch platform and according to the second storage
  • the data capacity of the second area map determined by the space capacity is generated from the map information stored on the scheduling platform side according to the second current position of the mobile robot.
  • the loading a second area map including at least the second current position of the mobile robot includes the following steps:
  • the first threshold is determined according to the maximum moving speed of the mobile robot and the time taken to acquire the map.
  • the first threshold is: the result of the product of the maximum moving speed and the time-consuming.
  • Step 3 When the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than the set second threshold, switch to Positioning is performed on the second area map; wherein the second threshold is less than or equal to the first threshold.
  • the application of the solution provided in this application can solve the problem of map switching during the visual positioning of the mobile robot.
  • load the source area map including the first current position of the mobile robot, that is, the first area map, and the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to
  • the acquisition of target map information is triggered, and the target area map is extracted for storage according to the capacity of the second storage space for storing the target area map, that is, the second area map is extracted.
  • the mobile robot s requirements for storage space for storing maps are reduced, and on the other hand, the target area map is loaded in advance, and time is reserved for switching, so that the map switching between the two overlapping areas of the map There is ample margin between them, which realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • step one above before calculating the minimum distance between the second current position of the mobile robot and the boundary of the first area map, the method further includes the following step four:
  • Step 4 According to the first current position of the mobile robot, load a first area map including at least the first current position of the mobile robot, and save it in the first storage space;
  • the data capacity of the first area map is less than or equal to the capacity of the local first storage space of the mobile robot.
  • step 4 above loading a first area map including at least the first current position of the mobile robot may include the following steps:
  • the sum of the capacity of the first storage space and the capacity of the second storage space is less than or equal to the total memory capacity of the mobile robot for storing maps.
  • the capacity of the first storage space is the same as or different from the capacity of the second storage space
  • the shape of the first area is the same or different from the shape of the second area
  • step four may include the following steps:
  • step four may include the following steps:
  • the capacity of the first storage space and the identification of the mobile robot are reported to the scheduling platform, so that the scheduling platform determines the data of the first area map to be issued to the mobile robot according to the capacity of the first storage space capacity;
  • the first area map issued by the dispatch platform according to the identifier of the mobile robot is received and loaded; wherein, the first area map is loaded by the dispatch platform according to the first area shape set by the dispatch platform and according to the first storage
  • the data capacity of the first area map determined by the space capacity is generated from the map information stored on the scheduling platform side according to the first current position of the mobile robot.
  • step four may include the following steps:
  • the method further includes: clearing the data of the first area map.
  • step two above before loading a second area map including at least the second current position of the mobile robot according to the current position of the mobile robot, the method It also includes the following steps five:
  • Step 5 Determine whether there is map information of the second current location of the mobile robot in the issued source map information, if so, the mobile robot extracts a second area map from the source map information , Otherwise, report the second current position of the mobile robot, the identification of the mobile robot, and the capacity of the second storage space to the scheduling platform;
  • the loading of a second area map including at least the current position of the mobile robot according to the second current position of the mobile robot includes:
  • the second area map issued by the dispatch platform according to the identifier of the mobile robot is received and loaded; wherein, the second area map is loaded by the dispatch platform according to the second area shape set by the dispatch platform and according to the second storage
  • the data capacity of the second area map determined by the space capacity is generated from the map information stored on the scheduling platform according to the second current position of the mobile robot;
  • the method further includes the following step six:
  • Step 6 Receive target map information issued by the scheduling platform for generating the second area map, and store the target map information as source map information.
  • the embodiments of the present application also provide a map switching device applied to mobile robots, and the device includes:
  • the second calculation module is used to calculate the minimum distance between the second current position of the mobile robot and the boundary of the first area map; wherein the first area map is: loaded according to the first current position of the mobile robot including at least A map of the first current position of the mobile robot;
  • the third loading module is used for when the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than the set first threshold value, according to the second current position of the mobile robot, Load a second area map including at least the second current position of the mobile robot and save it in a second storage space; wherein the data capacity of the second area map is less than or equal to the second local area map of the mobile robot. Capacity of storage space;
  • the second switching module is configured to switch when the second area map is loaded and the minimum distance between the third current position of the mobile robot and the boundary of the first area map is not greater than a set second threshold To perform positioning based on the second area map; wherein the second threshold is less than or equal to the first threshold.
  • the application of the solution provided in this application can solve the problem of map switching during the visual positioning of mobile robots.
  • load the source area map including the first current position of the mobile robot, that is, the first area map, and the minimum distance between the second current position of the mobile robot and the boundary of the source area map is less than or equal to
  • the acquisition of target map information is triggered, and the target area map is extracted for storage according to the capacity of the second storage space for storing the target area map, that is, the second area map is extracted.
  • the mobile robot s requirements for storage space for storing maps are reduced, and on the other hand, the target area map is loaded in advance, and time is reserved for switching, so that the map switching between the two overlapping areas of the map There is ample margin between them, which realizes seamless map switching, and prevents mobile robots from interrupting tasks due to map switching.
  • the device further includes:
  • the fourth loading module is used to load the first current position of the mobile robot according to the first current position of the mobile robot before the calculation of the minimum distance between the second current position of the mobile robot and the boundary of the first area map.
  • a first area map of the current location and stored in the first storage space; wherein the data capacity of the first area map is less than or equal to the capacity of the first storage space local to the mobile robot.
  • the fourth loading module is specifically configured to: load a first area map centered on the first current position of the mobile robot; wherein, the first area map has a first area map.
  • a region shape, the first current position of the mobile robot is at the center of the first region shape.
  • the third loading module is specifically configured to: load a second area map centered on the second current position of the mobile robot; wherein, the second area map has a first Two area shapes, the second current position of the mobile robot is at the center of the second area shape.
  • the sum of the capacity of the first storage space and the capacity of the second storage space is less than or equal to the total memory capacity of the mobile robot for storing maps.
  • the capacity of the first storage space is the same as or different from the capacity of the second storage space
  • the shape of the first area is the same as or different from the shape of the second area.
  • the first threshold is determined according to the maximum moving speed of the mobile robot and the time taken to acquire the map.
  • the device further includes: a data clearing module, configured to clear the data of the first area map after the mobile robot switches to positioning based on the second area map .
  • a data clearing module configured to clear the data of the first area map after the mobile robot switches to positioning based on the second area map .
  • the first threshold is: a result of a product of the maximum moving speed and the time-consuming.
  • the minimum distance between the second current position of the mobile robot and the boundary of the first area map satisfies any of the following conditions: the second current position of the mobile robot and the The minimum distance between the nodes on the boundary of the first area map; the distance between the node on the boundary of the first area map intersected by the extension line of the current movement direction of the mobile robot and the second current position of the mobile robot distance;
  • the fourth loading module is specifically configured to receive the first current position of the mobile robot provided by the scheduling platform through interaction with the scheduling platform, and report to the scheduling platform
  • the identification of the mobile robot, or the first current position of the mobile robot is obtained based on the set initial position, and the first current position of the mobile robot and the identification of the mobile robot are reported to the dispatch platform; and the dispatch is received
  • the platform extracts and loads the first area map from the source map information according to the source map information delivered to the mobile robot according to the first current position of the mobile robot and the identifier of the mobile robot;
  • the third loading module is specifically configured to report the second current position of the mobile robot and the identification of the mobile robot to a scheduling platform, so that the scheduling platform can
  • the second current position of the mobile robot and the identification of the mobile robot deliver target map information to the mobile robot, receive target map information issued by the scheduling platform, and extract a second area map from the target map information. load.
  • the fourth loading module is specifically configured to: report the capacity of the first storage space and the identification of the mobile robot to a scheduling platform, so that the scheduling platform is based on the first
  • the capacity of the storage space determines the data capacity of the first area map issued to the mobile robot; the first current position of the mobile robot provided by the scheduling platform is received through interaction with the scheduling platform, and the first current position of the mobile robot is received by the scheduling platform.
  • the dispatch platform reports the identification of the mobile robot, or obtains the first current position of the mobile robot based on the set initial position, and reports the first current position of the mobile robot and the mobile robot’s first current position to the dispatch platform.
  • Identification receiving the first area map issued by the scheduling platform according to the identification of the mobile robot for loading; wherein the first area map is set by the scheduling platform according to the first area shape and the first area
  • the data capacity of the first area map determined by the capacity of the storage space is generated from the map information stored on the scheduling platform side according to the first current position of the mobile robot;
  • the third loading module is specifically configured to: report the second current position of the mobile robot, the identification of the mobile robot, and the second storage space to the scheduling platform Capacity; receiving the second area map issued by the scheduling platform according to the identification of the mobile robot for loading; wherein the second area map is set by the scheduling platform according to the second area shape and according to the first 2.
  • the data capacity of the second area map determined by the capacity of the storage space is generated from the map information stored on the scheduling platform side according to the second current position of the mobile robot.
  • the fourth loading module is specifically configured to receive the first current position of the mobile robot provided by the scheduling platform through interaction with the scheduling platform, and report to the scheduling platform
  • the identification of the mobile robot, or the first current position of the mobile robot is obtained based on the set initial position, and the current position of the mobile robot and the identification of the mobile robot are reported to the dispatch platform; and the dispatch is received
  • the platform extracts and loads the first area map from the source map information according to the source map information delivered to the mobile robot according to the first current position of the mobile robot and the identifier of the mobile robot;
  • the device further includes: an information judgment module for judging that when the minimum distance between the second current position of the mobile robot and the boundary of the first area map is not greater than a set first threshold If there is map information of the second current location of the mobile robot in the source map information, if so, extract the second area map from the source map information; otherwise, report the map to the dispatch platform The second current position of the mobile robot, the identification of the mobile robot, and the capacity of the second storage space;
  • the third loading module is specifically configured to receive a second area map issued by the scheduling platform according to the identifier of the mobile robot for loading; wherein the second area map is set by the scheduling platform according to the first set 2.
  • the area shape and the data capacity of the second area map determined according to the capacity of the second storage space are generated from the map information stored on the scheduling platform according to the second current position of the mobile robot;
  • the device further includes: a map storage module, configured to switch to positioning based on the second area map, receive target map information issued by the scheduling platform for generating the second area map, and store the The target map information is stored as the source map information.
  • a map storage module configured to switch to positioning based on the second area map, receive target map information issued by the scheduling platform for generating the second area map, and store the The target map information is stored as the source map information.
  • the embodiments of the present application also provide a mobile robot, wherein the mobile robot includes a memory and a processor, and the memory stores data An instruction executed by the processor, the instruction being executed by the processor, so that the processor executes the steps of any map switching method applied to a mobile robot provided in the above embodiments of the present application.
  • the embodiments of the present application provide a computer-readable storage medium, wherein a computer program is stored in the storage medium, and the computer program When executed by the processor, the steps of any map switching method applied to a mobile robot provided in the above embodiments of the present application are implemented.
  • the embodiments of the present application provide a computer program containing instructions that, when run on a computer, cause the computer to execute the above embodiments of the present application. Provide the steps of any map switching method applied to mobile robots.

Abstract

一种地图切换方法和移动机器人,涉及导航技术领域。该方法包括:根据移动机器人的第一当前位置,加载至少包括第一当前位置的第一区域地图,并保存于第一存储空间中;基于第一区域地图,计算第二当前位置与第一区域地图的边界的最小距离;当计算得到的最小距离不大于设定的第一阈值时,根据移动机器人的第二当前位置,加载至少包括移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;当第二区域地图加载完毕且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至第二区域地图进行定位。与现有技术相比,所述方法减少了移动机器人对地图存储空间的要求,使得目标区域地图提前载入。

Description

一种地图切换方法和移动机器人
本申请要求于2020年3月27日提交中国专利局、申请号为202010229067.8发明名称为“一种地图切换的方法和移动机器人”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及导航技术领域,特别地,涉及一种地图切换方法和移动机器人。
背景技术
在机器人导航技术领域里,地图提供了用于机器视觉定位的环境描述数据。例如,在即时定位与建图(SLAM,Simultaneous Localization And Mapping)的系统中,移动机器人可以依靠预先建立的地图进行定位。
发明内容
本申请提供了一种地图切换方法和移动机器人,以解决移动机器人视觉定位过程中地图切换的问题。
第一方面,本申请实施例提供了一种地图切换方法,所述方法包括,
移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
所述移动机器人基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,所述移动机器人切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
第二方面,本申请实施例提供了一种用于移动机器人调度的系统,所述系统包括:调度平台和至少一个移动机器人;
其中,每个移动机器人包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行上述第一方面提供的任一种地图 切换方法的步骤;
所述调度平台包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行上述第一方面提供的任一种地图切换方法的步骤。
第三方面,本申请实施例提供了一种移动机器人,所述移动机器人包括:
第一加载模块,用于根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
第一计算模块,用于基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
第二加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
第一切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
第四方面,本申请实施例提供了一种地图切换方法,应用于移动机器人,所述方法包括:
计算移动机器人的第二当前位置与第一区域地图的边界的最小距离;其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
第五方面,本申请实施例提供了一种地图切换装置,应用于移动机器人,所述装置包括,
第二计算模块,用于计算移动机器人的第二当前位置与第一区域地图的边界的最小距 离;其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
第三加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
第二切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
第六方面,本申请实施例提供了一种移动机器人,其中,所述移动机器人包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行上述第四方面提供的任一所述的地图切换方法的步骤。
第七方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面或第四方面提供的任一地图切换方法步骤。
第八方面,本申请实施例提供了一种包含指令的计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面或第四方面提供的任一地图切换方法步骤。
以上可见,应用本申请提供的方案,可以解决移动机器人视觉定位过程中地图切换的问题。其中,根据移动机器人本地的存储空间容量,加载包括移动机器人的第一当前位置的源区域地图,即第一区域地图,在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,触发获取目标地图信息,并根据用于存储目标区域地图的第二存储空间的容量,提取出目标区域地图进行存储,即提取出第二区域地图。这样,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面使得目标区域地图提前载入,为切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,本领域普通技术人员来讲还可以根据这些附图获得其他的附图。
图1为本实施例一的地图切换的一种流程图。
图2为地图切换准备的一种示意图。
图3为本实施例二的地图切换的一种流程图。
图4为本实施例三的地图切换的一种流程图。
图5为本实施例四的地图切换的一种流程图。
图6为用于调度移动机器人的调度系统的一种示意图。
图7为用于实现地图切换的移动机器人的一种示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。本领域普通技术人员基于本申请中的实施例所获得的所有其他实施例,都属于本申请保护的范围。
申请人发现,当地图比较大而移动机器人没有足够的空间存放完整的地图时,需要将完整的地图进行拆分,移动机器人根据需求载入拆分为不同部分的地图以定位,在这过程中便产生了地图切换的问题。
本申请实施例中,根据移动机器人内存,确定用于可存放地图的最大存储空间;并且,将该最大存储空间中的第一存储空间确定为用于存储当前加载的源区域地图的空间,其中,源区域地图也可以称为第一区域地图,将该最大存储空间中的第二存储空间确定为用于存储待切换的目标区域地图的空间,其中,目标区域地图也可以称为第二区域地图。并且,第一区域地图和第二区域地图均为至少包括机器人的当前位置的地图。
也就是说,移动机器人本地存在用于存储当前加载的源区域地图的第一存储空间,以及用于存储待切换的目标区域地图的第二存储空间;也可以称为:移动机器人本地存在用于存储当前加载的第一区域地图的第一存储空间,以及用于存储待切换的第二区域地图的第二存储空间。
可选的,上述第一存储空间和第二存储空间的容量可以相同。
可选的,上述第一存储空间和第二存储空间的容量可以不同。
其中,本申请实施例提供的一种地图切换方法,可以包括如下步骤:
移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
所述移动机器人基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所 述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,所述移动机器人切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
以上可见,应用本申请提供的方案,可以解决移动机器人视觉定位过程中地图切换的问题。其中,根据移动机器人本地的存储空间容量,加载包括移动机器人的第一当前位置的源区域地图,即第一区域地图,在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,触发获取目标地图信息,并根据用于存储目标区域地图的第二存储空间的容量,提取出目标区域地图进行存储,即提取出第二区域地图。这样,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面使得目标区域地图提前载入,为切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
实施例一
在本实施例中,移动机器人可以通过移动机器人所属的调度平台获取当前任务的地图信息,并在移动机器人侧生成第一区域地图和第二区域地图。
参见图1所示,图1为本实施例一的地图切换的一种流程图。该切换方法包括:
步骤101,移动机器人按照用于存储源区域地图的第一存储空间的容量,确定源区域地图的区域尺寸。
移动机器人可以按照第一存储空间的容量,确定源区域地图的区域尺寸。并且,由于源区域地区是被加载到第一存储空间中的,因此,所确定的源区域地图的数据容量小于等于第一存储空间的容量。
例如,第一存储空间的容量为a字节,则a字节对应的物理范围的源区域地图的区域形状可以为边长为b的正方形,或者,边长为b×c的长方形,或者半径为r的圆形等。其中,源区域地图的具体区域形状可以根据需求设计,只要满足源区域地图的数据容量小于等于第一存储空间的容量即可。
步骤102,移动机器人获取第一当前位置。
其中,移动机器人所获取到的第一当前位置即为移动机器人在执行该步骤时,所在的位置。
可选的,移动机器人可以通过与调度平台交互,接收调度平台提供的移动机器人的第一当前位置,并向调度平台上报自身的标识。
可选的,移动机器人可以基于设置的初始位置而获得移动机器人的第一当前位置,这 时,移动机器人可以向调度平台上报移动机器人的第一当前位置和移动机器人的标识。
步骤103,移动机器人接收调度平台下发的源地图信息,并根据第一当前位置,加载至少包括第一当前位置的第一区域地图。
移动机器人可以接收调度平台下发的源地图信息,从而,根据移动机器人的第一当前位置,从源地图信息中确定至少包括移动机器人的第一当前位置的第一区域地图,进而,加载所确定的第一区域地图。
可选的,第一区域地图可以以移动机器人的第一当前位置为中心,且存储到第一存储空间。其中,第一区域地图也可以称为源区域地图。
当调度平台获取到移动机器人的第一当前位置和移动机器人的标识,则可以根据移动机器人的第一当前位置查找到包括有移动机器人的第一当前位置的地图信息,作为源地图信息,该源地图信息可以是调度平台存储的地图数据库中,包括移动机器人的第一当前位置的任一地图的信息,然后,该调度平台可以按照移动机器人的标识将所确定的源地图信息发送给移动机器人。
这样,移动机器人便可以接收调度平台下发的源地图信息,并从该源地图信息提取出包括移动机器人的第一当前位置的第一区域地图,并加载该第一区域地图。
可选的,移动机器人从接收到的源地图信息中提取的第一区域地图可以是具有设定的第一区域形状且以移动机器人的第一当前位置为中心的地图,并且,该第一区域地图所对应的数据容量小于等于第一存储空间的容量。
步骤104,移动机器人计算移动机器人的第二当前位置与第一区域地图的边界的最小距离。
其中,在移动机器人加载第一区域地图的过程中,移动机器人可以是静止的,也可以是运动的。那么,在该过程中移动机器人是运动的情况下,在第一区域地图加载完成时,移动机器人所在的位置与移动机器人开始加载第一区域地图时的第一当前位置可以是不同的位置;而在该过程中移动机器人是静止的情况下,也就是说,在上述第一区域地图的加载过程中,移动机器人所在的位置未发生变化,则在第一区域地图加载完成时,移动机器人所在的位置与移动机器人开始加载第一区域地图时的第一当前位置是相同的位置。
也就是说,在移动机器人计算移动机器人的第二当前位置与第一区域地图的边界的最小距离时,移动机器人的第二当前位置即为移动机器人执行步骤104时,当前所在的位置。
其中,可选的,在移动机器人第一次计算移动机器人的第二当前位置与第一区域地图的边界的最小距离时,移动机器人的第二当前位置可以为:基于移动机器人在加载第一区域地图的过程中的移动情况,在第一区域地图加载完成时,移动机器人所在的当前位置。
此外,当所计算得到的移动机器人的第二当前位置与第一区域地图的边界的最小距离大于设定的第一阈值时,移动机器人将再次确定移动机器人的新的第二当前位置,进而重 复执行上述步骤104,计算该新的第二当前位置与第一区域地图的边界的最小距离。
显然,在移动机器人得到前一次计算所利用的第二当前位置与得到本次计算所利用的新的第二当前位置之间,移动机器人可以是运动的,那么,所确定的新的第二当前位置与前一次计算所利用的第二当前位置是不同的位置。这样,在这种情况下,移动机器人的新的第二当前位置即为:在前一次计算得到的最小距离大于设定的第一阈值的情况下,移动机器人再次执行上述步骤104时,当前所在的位置。
进一步的,在该步骤中,实施方式之一,移动机器人可以根据移动机器人的第二当前位置的坐标以及第一区域地图的边界上的各节点的坐标,计算上述第二当前位置与各节点之间的距离,将所得到的各个距离中的最小距离作为移动机器人的第二当前位置与第一区域地图的边界的最小距离。
实施方式之二,根据移动机器人的当前运动方向,确定与该当前运动方向延长线所相交的第一区域地图的边界的节点,计算移动机器人的第二当前位置与该节点之间的距离,得到移动机器人的第二当前位置与第一区域地图的边界的最小距离。
也就是说,可以确定第一区域地图的边界上,与移动机器人的当前运动方向延长线所相交的节点,从而,移动机器人的第二当前位置与所确定的节点之间的距离,即为移动机器人的第二当前位置与第一区域地图的边界的最小距离。
可选的,移动机器人的第二当前位置可以用世界坐标系下的坐标表示,第一区域地图的边界上的各个节点的位置也可以用世界坐标下的坐标表示。
步骤105,移动机器人判断移动机器人的第二当前位置与第一区域地图的边界的最小距离是否不大于设定的第一阈值,如果是,则进行切换的准备,即,执行步骤106,否则,基于当前地图获取当前位置,返回执行步骤104。
移动机器人可以判断移动机器人的第二当前位置与第一区域地图的边界的最小距离是否不大于设定的第一阈值,如果是,执行步骤106,否则,基于当前地图获取当前位置,返回执行步骤104。
其中,如果移动机器人的第二当前位置与第一区域地图的边界的最小距离大于设定的第一阈值,那么,可以返回执行上述步骤104,其中,返回执行上述步骤104时,移动机器人的当前位置是基于第一区域地图确定的,因此,上述步骤105中的当前地图可以为上述第一区域地图。
步骤106,移动机器人向调度平台上报第二当前位置和移动机器人的标识,以使得调度平台根据第二当前位置向移动机器人下发目标地图信息。
当调度平台接收到移动机器人上报的移动机器人的第二当前位置和移动机器人的标识,则可以根据移动机器人的第二当前位置查找到包括有移动机器人的第二当前位置的地图信息,作为目标地图信息。该目标地图信息可以是调度平台存储的地图数据库中,包括 移动机器人的第二当前位置的任一地图的信息,然后,调度平台可以按照移动机器人的标识将所确定的目标地图信息发送给移动机器人。
步骤107,移动机器人接收调度平台下发的目标地图信息,并根据第二当前位置,加载至少包括第二当前位置的第二区域地图。
移动机器人可以接收调度平台下发的目标地图信息,并根据移动机器人的第二当前位置,加载至少包括移动机器人的第二当前位置的第二区域地图。
也就是说,在接收到调度平台下发的目标地图信息时,移动机器人可以从该目标地图信息提取出包括移动机器人的第二当前位置的第二区域地图,并加载该第二区域地图。
可选的,第二区域地图可以以移动机器人的第二当前位置为中心,且存储于第二存储空间。其中,第二区域地图也可以称为目标区域地图。
可选的,移动机器人从接收到的目标地图信息中提取的第二区域地图可以是具有设定的第二区域形状且以移动机器人的第二当前位置为中心的地图,并且,该第二区域地图所对应的数据容量小于等于第二存储空间的容量。
可选的,上述第一区域形状与第二区域形状相同。
可选的,上述第一区域形状与第二区域形状相同,且上述第一区域形状与第二区域形状为矩形的情况下,在第一区域地图和第二区域地图的切换过程,可以使得切换前后的地图信息不缺失。
步骤108,当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值,则移动机器人切换至第二区域地图,释放第一区域地图。
其中,第二阈值小于等于第一阈值。
其中,在移动机器人加载第二区域地图的过程中,移动机器人可以是静止的,也可以是运动的。那么,在该过程中移动机器人是运动的情况下,在第二区域地图加载完成时,移动机器人所在的位置与移动机器人开始加载第二区域地图时的第二当前位置可以是不同的位置;而在该过程中移动机器人是静止的情况下,也就是说,在上述第二区域地图的加载过程中,移动机器人所在的位置未发生变化,则在第二区域地图加载完成时,移动机器人所在的位置与移动机器人开始加载第二区域地图时的第二当前位置是相同的位置。
也就是说,在移动机器人计算移动机器人的第三当前位置与第一区域地图的边界的最小距离时,移动机器人的第三当前位置即为移动机器人执行步骤108时,当前所在的位置。
其中,可选的,在移动机器人第一次计算移动机器人的第三当前位置与第一区域地图的边界的最小距离时,移动机器人的第三当前位置可以为:基于移动机器人在加载第二区域地图的过程中的移动情况,在第二区域地图加载完成时,移动机器人所在的当前位置。
此外,当所计算得到的移动机器人的第三当前位置与第一区域地图的边界的最小距离大于设定的第二阈值时,移动机器人将再次确定移动机器人的新的第三当前位置,进而重复执行上述步骤108,计算该新的第三当前位置与第一区域地图的边界的最小距离。
显然,在移动机器人得到前一次计算所利用的第三当前位置与得到本次计算所利用的新的第三当前位置之间,移动机器人可以是运动的,那么,所确定的新的第三当前位置与前一次计算所利用的第三当前位置是不同的位置。这样,在这种情况下,移动机器人的新的第三当前位置即为:在前一次计算得到的最小距离大于设定的第二阈值的情况下,移动机器人再次执行上述步骤108时,当前所在的位置。
当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则移动机器人可以切换至基于第二区域地图进行定位。
这时,用于存储第一区域地图的第一存储空间中的数据可以被清除,以便用于存储下一次切换的区域地图,基于此,当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以释放第一存储空间中存储的第一区域地图。至此,便可以完成一次地图切换。
可选的,参见图2所示,图2为地图切换准备的一种示意图,其中,实线框为当前使用的源区域地图,虚线框为准备切换的目标区域地图。其中,c为设定的第一阈值,该第一阈值可以根据移动机器人的最大移动速度v,以及获取地图的耗时t确定。
其中,移动机器人从移动机器人的当前位置移动到源区域地图的边界所需的路程c可以为:移动机器人的最大移动速度v与获取地图的耗时t的乘积,也就是说,c=v×t。
基于此,可选的,上述第一阈值为:移动机器人的最大移动速度与获取地图的耗时的乘积结果。也就是说,第一阈值与移动机器人的最大移动速度正相关,并且,第一阈值与获取地图的耗时正相关。
以上可见,本实施例中,移动机器人可以在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,向调度平台请求切换的目标地图信息,再根据第二存储空间的容量提取出目标区域地图进行加载和存储。这样,可以解决移动机器人视觉定位过程中地图切换的问题,并且,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面可以使得目标区域地图提前载入,为地图切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
实施例二
在本实施例中,调度平台可以根据移动机器人上报的移动机器人的当前位置,以及第一存储空间和第二存储空间的容量来生成第一区域地图和第二区域地图,并将所生成的第一区域地图和第二区域地图下发给移动机器人以用于地图切换。
参见图3所示,图3为本实施例二的地图切换的一种流程图。该切换方法包括:
步骤301,移动机器人将其第一存储空间的容量和该移动机器人的标识(ID,identification)上报至调度平台,以便调度平台根据第一存储空间的容量确定向该移动机器人下发的第一区域地图的数据容量。
调度平台在确定向该移动机器人下发的第一区域地图的数据容量后,便可以根据移动机器人的标识向移动机器人下发数据容量为所确定的数据容量的第一区域地图。
可选的,调度平台在接收到第一存储空间的容量和移动机器人的标识后,可以保存所接收到的容量和标识。
步骤302,移动机器人与调度平台交互,以使得调度平台获得移动机器人的第一当前位置。
可选的,移动机器人可以基于设置的初始位置而获得移动机器人的第一当前位置,并向调度平台上报所获得的移动机器人的第一当前位置。
其中,上述步骤301、302可以无严格的先后次序。
步骤303,移动机器人接收调度平台下发的第一区域地图,并加载至第一存储空间中。
其中,第一区域地图是由调度平台按照设定的第一区域形状和根据第一存储空间的容量所确定的第一区域地图的数据容量,以移动机器人的第一当前位置为中心从调度平台侧存储的地图信息中生成的;并且,第一区域地图的数据容量小于等于第一存储空间的容量。
也就是说,调度平台中可以预先设定有第一区域地图的第一区域形状,进而,调度平台还可以根据第一存储空间的容量确定第一区域地图的数据容量。这样,调度平台便可以根据上述第一区域地图的数据容量和第一区域形状,从调度平台侧存储的地图信息中确定以移动机器人的第一当前位置为中心的第一区域地图。
在确定出第一区域地图后,调度平台便可以根据移动机器人的标识将第一区域地图发送给移动机器人。
步骤304,移动机器人计算移动机器人的第二当前位置与第一区域地图的边界的最小距离。
其中,该步骤与上述实施例一中的步骤104相同,在此不再赘述。
步骤305,移动机器人判断第二当前位置与第一区域地图的边界的最小距离是否不大于设定的第一阈值,如果是,则进行切换的准备,即,执行步骤306,否则,基于当前地图获取当前位置信息,返回执行步骤304。
其中,该步骤与上述实施例一中的步骤105相同,在此不再赘述。并且,该步骤中的第一阈值的设定与实施例一中的第一阈值的设定相同。
步骤306,移动机器人向调度平台上报第二当前位置、移动机器人的标识、以及第二存储空间的容量,以使得调度平台根据第二当前位置和第二存储空间容量向该移动机器人下发第二区域地图。
其中,第二区域地图是由调度平台按照设定的第二区域形状和根据第二存储空间的容量所确定的第二区域地图的数据容量,以移动机器人的第二当前位置为中心从调度平台侧存储的地图信息中提取而生成的;并且,第二区域地图的数据容量小于等于第二存储空间的容量。
也就是说,调度平台中可以预先设定有第二区域地图的第二区域形状,进而,调度平台还可以根据第二存储空间的容量确定第二区域地图的数据容量。这样,调度平台便可以根据上述第二区域地图的数据容量和第二区域形状,从调度平台侧存储的地图信息中确定以移动机器人的第二当前位置为中心的第二区域地图。
在确定出第二区域地图后,调度平台便可以根据移动机器人的标识将第一区域地图发送给移动机器人。
可选的,如果系统设计时将第二存储空间的容量与第一存储空间的容量设计为相同的容量,则移动机器人可以不上报第二存储空间的容量。这时,调度平台则可以根据第一存储空间的容量确定第二区域地图的数据容量,进而,调度平台可以根据上述第二区域地图的数据容量和预先设定的第二区域地图的第二区域形状,以移动机器人的第二当前位置为中心生成第二区域地图。
可选的,上述第一区域形状与第二区域形状相同。
可选的,上述第一区域形状与第二区域形状相同,且上述第一区域形状与第二区域形状为矩形的情况下,在第一区域地图和第二区域地图的切换过程,可以使得切换前后的地图信息不缺失。
步骤307,移动机器人接收调度平台下发的第二区域地图,将该区域地图加载至第二存储空间中。
移动机器人可以接收调度平台下发的第二区域地图,在接收到该第二区域地图后,移动机器人便可以加载该第二区域地图,并将该第二区域地图存储至第二存储空间中。
步骤308,当第二区域地图加载完毕、且第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值,则移动机器人切换至第二区域地图,释放第一区域地图。
其中,第二阈值小于等于第一阈值。
当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以切换至基于第二地图进行定位。
这时,用于存储第一区域地图的第一存储空间中的数据可以被清除,以便用于存储下 一次切换的区域地图,基于此,当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以释放第一存储空间中存储的第一区域地图。至此,便可以完成一次地图切换。
本实施例中,可以使得目标区域地图提前载入,为地图切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。并且,第一区域地图和第二区域地图由调度台来生成下发,可以更进一步地减少了移动机器人对用于存储地图的存储空间的要求。
实施例三
在本实施例中,可以通过移动机器人与调度平台的交互来确定第一区域地图和第二区域地图。
参见图4所示,图4为本实施例三的地图切换的一种流程图。该切换方法包括,
步骤401,移动机器人与调度平台交互,以使得调度平台获得移动机器人第一当前位置。
移动机器人可以基于设置的初始位置而获得该移动机器人的第一当前位置,并向调度平台上报该移动机器人的第一当前位置和该移动机器人的标识。
步骤402,移动机器人接收调度平台下发的源地图信息,并根据第一当前位置,加载以第一当前位置为中心的第一区域地图,作为源区域地图,存储于第一存储空间。
移动机器人可以从接收的源地图信息中提取出以移动机器人的第一当前位置为中心、数据容量小于等于第一存储空间的容量、且具有设定第一区域形状的第一区域地图来进行加载。
其中,源地图信息由调度平台根据移动机器人的第一当前位置从存储的地图信息中查找而确定,并根据移动机器人的标识进行下发。
步骤403,移动机器人计算移动机器人的第二当前位置与第一区域地图的边界的最小距离。
其中,该步骤与上述实施例一中的步骤104相同,在此不再赘述。
步骤404,移动机器人判断第二当前位置与第一区域地图的边界的最小距离是否不大于设定的第一阈值,如果是,则进行切换的准备,即,执行步骤405,否则,基于当前地图获取当前位置信息,返回执行步骤403。
其中,在步骤与上述实施例一中的步骤105相同,在此不再赘述。并且,在该步骤中的第一阈值的设定与实施例一中的第一阈值的设定相同。
步骤405,移动机器人判断已下发的源地图信息中是否有第二当前位置的地图信息, 如果是,则移动机器人从接收的源地图信息中提取出以第二当前位置为中心、数据容量小于等于第二存储空间的容量、且具有设定的第二区域形状的第二区域地图来进行加载。否则,则向调度平台上报第二当前位置、移动机器人的标识、以及第二存储空间的容量,以使得调度平台根据第二当前位置和第二存储空间的容量向该移动机器人下发第二区域地图,并清除源地图信息以释放存储空间。
在移动机器人的第二当前位置与第一区域地图的边界的最小距离小于等于设定的第一阈值时,移动机器人可以从接收的源地图信息中提取出以移动机器人的第二当前位置为中心、数据容量小于等于第二存储空间的容量、且具有设定的第二区域形状的第二区域地图来进行加载。
在移动机器人的第二当前位置与第一区域地图的边界的最小距离大于设定的第一阈值时,移动机器人可以向调度平台上报移动机器人的第二当前位置、移动机器人的标识、以及第二存储空间的容量,以使得调度平台根据移动机器人的第二当前位置和第二存储空间的容量向该移动机器人下发第二区域地图,并清除源地图信息以释放存储空间。
其中,第二区域地图是由调度平台按照设定的第二区域形状和根据第二存储空间的容量所确定的第二区域地图的数据容量,以移动机器人的第二当前位置为中心从调度平台侧存储的地图信息中提取而生成的;并且,第二区域地图的容量数据小于等于第二存储空间的容量。
也就是说,调度平台中可以预先设定有第二区域地图的第二区域形状,进而,调度平台还可以根据第二存储空间的容量确定第二区域地图的数据容量。这样,调度平台便可以根据上述第二区域地图的数据容量和第二区域形状,从调度平台侧存储的地图信息中确定以移动机器人的第二当前位置为中心的第二区域地图。
这样,当移动机器人的移动距离较小时,则不必向调度平台获取地图,当移动机器人的移动距离较大时,由调度平台来生成第二区域地图,从而在一次切换中从整体上节约了地图的获取和传输时间,提高了切换效率。
可选的,上述第一区域形状与第二区域形状相同。
可选的,上述第一区域形状与第二区域形状相同,且上述第一区域形状与第二区域形状为矩形的情况下,在第一区域地图和第二区域地图的切换过程,可以使得切换前后的地图信息不缺失。
步骤406,移动机器人接收调度平台下发的第二区域地图,将该区域地图加载至第二存储空间中。
移动机器人可以接收调度平台下发的第二区域地图,在接收到该第二区域地图后,移动机器人可以加载该第二区域地图,并将该第二区域地图存储至本地的第二存储空间中。
步骤407,当第二区域地图加载完毕、且第三当前位置与第一区域地图边界的最小距 离不大于设定的第二阈值,则移动机器人切换至第二区域地图,释放第一区域地图。
其中,第二阈值小于等于第一阈值。
当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以切换至基于第二地图进行定位。
这时,用于存储第一区域地图的第一存储空间中的数据可以被清除,以便用于存储下一次切换的区域地图,基于此,当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以释放第一存储空间中存储的第一区域地图。至此,便可以完成一次地图切换。
步骤408,移动机器人接收调度平台下发的用于生成第二区域地图的目标地图信息,将该目标地图信息作为源地图信息存储。
由于用于生成第二区域地图的目标地图信息是在第二区域地图之后方下发,这样既不占用切换的时间,实现无缝切换,又使得后续的切换过程中,能够实现当移动机器人的移动距离较小时,不必向调度平台获取地图,节约了地图的获取和传输时间。
本实施例中,实现了当移动机器人的移动距离较小时,由移动机器人生成区域地图,当移动机器人的移动距离较大时,由调度平台来生成第二区域地图,从而在一次切换中从整体上节约了地图的获取和传输时间,提高了切换效率。
实施例四
在本实施例中,移动机器人可以作为独立的终端,来进行地图的切换,以减少定位时加载第一区域地图和/或第二区域地图所占用的存储空间。
参见图5所示,图5为本实施例四的地图切换的一种流程图。该切换方法包括:
步骤501,移动机器人加载执行任务所需的所有地图信息,并存储于移动机器人本地的存储器中。
其中,为了不占用内存资源,上述所有地图信息可以存储于移动机器人本地的外设存储空间。
步骤502,移动机器人获取第一当前位置。
可选的,移动机器人可以基于存储的地图信息,确定该移动机器人的第一当前位置。
可选的,移动机器人可以基于设置的初始位置而获得该移动机器人的第一当前位置。
步骤503,移动机器人根据当前位置信息,加载以第一当前位置为中心的第一区域地图,作为源区域地图,存储于第一存储空间。
其中,第一存储空间位于移动机器人本地的内存中。
移动机器人可以从存储于外设的地图信息中提取出以移动机器人的第一当前位置为中心、数据容量小于等于第一存储空间的容量、且具有设定第一区域形状的第一区域地图来进行加载。
步骤504,移动机器人计算移动机器人的第一当前位置与第一区域地图的边界的最小距离。
其中,该步骤与上述实施例一中的步骤104相同,在此不再赘述。
步骤505,移动机器人判断第二当前位置与第一区域地图的边界的最小距离是否不大于设定的第一阈值,如果是,则进行切换的准备,即,执行步骤506,否则,基于当前地图获取当前位置信息,返回执行步骤504。
其中,步骤505与上述实施例一中的步骤105相同,在此不再赘述。并且,在该步骤中的第一阈值的设定与实施例一中的第一阈值的设定相同。
步骤506,移动机器人根据第二当前位置加载以第二当前位置为中心的第二区域地图,作为目标区域地图,存储于第二存储空间。
其中,第二存储空间位于移动机器人本地的内存中。
移动机器人可以从存储于外设的地图信息中提取出以移动机器人的第二当前位置为中心、数据容量小于等于第二存储空间的容量、且具有设定第二区域形状的第二区域地图来进行加载。
其中,第一存储空间的容量与第二存储空间的容量之和小于等于移动机器人用于存储地图的内存总容量。
步骤507,当第二区域地图加载完毕、且第三当前位置与第一区域地图边界的最小距离不大于第二阈值,则移动机器人切换至第二区域地图,释放第一区域地图。
其中,第二阈值小于等于第一阈值。
当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以切换至基于第二地图进行定位。
这时,用于存储第一区域地图的第一存储空间中的数据可以被清除,以便用于存储下一次切换的区域地图,基于此,当第二区域地图加载完毕、且移动机器人的第三当前位置与第一区域地图的边界的最小距离不大于设定的第二阈值时,则可以释放第一存储空间中存储的第一区域地图。至此,便可以完成一次地图切换。
本实施例中,可以将地图存储于移动机器人本地的外设存储空间,仅将当前定位所使用的地图加载至移动机器人本地内存中,这样,减少了地图对移动机器人内存资源的占用。
参见图6所示,图6为用于调度移动机器人的调度系统的一种示意图。该调度系 统包括:用于移动机器人调度的调度平台和至少一个移动机器人。
其中,每个移动机器人包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行任一所述的地图切换方法的步骤;
所述调度平台包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行任一所述的地图切换方法的步骤。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
参见图7所示,图7为用于实现地图切换的移动机器人的一种示意图。该移动机器人包括:
第一加载模块,用于根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
第一计算模块,用于基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
第二加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
第一切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
以上可见,应用本申请提供的方案,可以解决移动机器人视觉定位过程中地图切换的问题。其中,根据移动机器人本地的存储空间容量,加载包括移动机器人的第一当前位置的源区域地图,即第一区域地图,在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,触发获取目标地图信息,并根据用于存储目标区域地图的第二存储空间的容量,提取出目标区域地图进行存储,即提取出第二区域地图。这样,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面使得目标区域 地图提前载入,为切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
可选的,一种具体实现方式中,所述第一加载模块具体用于:加载以所述移动机器人的第一当前位置为中心的第一区域地图;其中,所述第一区域地图具有第一区域形状,所述移动机器人的第一当前位置处于所述第一区域形状的中心;所述第二加载模块具体用于:加载以所述移动机器人的第二当前位置为中心的第二区域地图;其中,所述第二区域地图具有第二区域形状,所述移动机器人的第二当前位置处于所述第二区域形状的中心;
并且,所述第一存储空间的容量与所述第二存储空间的容量之和小于等于所述移动机器人用于存储地图的内存总容量。
可选的,一种具体实现方式中,所述第一阈值为:所述最大移动速度与所述耗时的乘积的结果。
可选的,一种具体实现方式中,所述第一存储空间的容量与所述第二存储空间的容量相同或不同,所述第一区域形状与所述第二区域形状相同或不同,所述第一阈值是根据所述移动机器人最大移动速度和获取地图的耗时确定的;所述装置还包括:数据清除模块,用于在所述移动机器人切换至基于所述第二区域地图进行定位之后,清除所述第一区域地图的数据。
可选的,一种具体实现方式中,所述移动机器人的当前位置与所述第一区域地图的边界的最小距离满足以下任一条件:所述移动机器人的当前位置与所述第一区域地图的边界上的各节点之间的最小距离;所述移动机器人的当前运动方向延长线所相交的所述第一区域地图的边界的节点与所述移动机器人的当前位置的距离;
可选的,一种具体实现方式中,所述第一加载模块具体用于:通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
所述第二加载模块具体用于:向调度平台上报所述移动机器人的第二当前位置和所述移动机器人的标识,使得所述调度平台根据所述移动机器人的第二当前位置和所述移动机器人的标识向所述移动机器人下发目标地图信息;接收所述调度平台下发的目标地图信息,从所述目标地图信息提取出第二区域地图进行加载。
可选的,一种具体实现方式中,所述第一加载模块具体用于:将第一存储空间的容量和所述移动机器人的标识上报至调度平台,使得所述调度平台根据所述第一存储空间的容量确定向所述移动机器人下发的所述第一区域地图的数据容量;通过与所述调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移 动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的标识下发的第一区域地图进行加载;其中,所述第一区域地图由所述调度平台按照设定的第一区域形状和根据所述第一存储空间的容量所确定的所述第一区域地图的数据容量,根据所述移动机器人的第一当前位置从所述调度平台侧存储的地图信息中生成;
所述第二加载模块具体用于:向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量所确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成。
可选的,一种具体实现方式中,所述第一加载模块具体用于:通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
所述装置还包括:信息判断模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,判断已下发的所述源地图信息中是否有所述移动机器人的第二当前位置的地图信息,如果有,则从所述源地图信息中提取出第二区域地图,否则,向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
所述第二加载模块具体用于:接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照根据所述第二存储空间的容量确定的第二区域地图的数据容量和设定的第二区域形状,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成;
所述装置还包括:地图存储模块,用于接收所述调度平台下发的用于生成所述第二区域地图的目标地图信息,将所述目标地图信息作为源地图信息存储。
相应于上述本申请实施例提供的一种地图切换方法,本申请实施例还提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时任一所述的地图切换方法的响应步骤。
相应于上述本申请实施例提供的一种地图切换方法,本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的任一地图切换方法的步骤。
在上述本申请实施例提供的一种地图切换方法的基础上,本申请实施例还提供了一种应用于移动机器人的地图切换方法。
其中,本申请实施例提供的一种应用于移动机器人的地图切换方法,可以包括如下步骤一至步骤三:
步骤一:计算移动机器人的第二当前位置与第一区域地图的边界的最小距离;
其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
可选的,一种具体实现方式中,所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离满足以下任一条件:
所述移动机器人的第二当前位置与所述第一区域地图的边界上的各节点之间的最小距离;
所述移动机器人的当前运动方向延长线所相交的所述第一区域地图的边界的节点与所述移动机器人的第二当前位置的距离。
步骤二:当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;
其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
可选的,一种具体实现方式中,所述根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的当前位置的第二区域地图,包括如下步骤:
向调度平台上报所述移动机器人的第二当前位置和所述移动机器人的标识,使得所述调度平台根据所述移动机器人的第二当前位置和所述移动机器人的标识向所述移动机器人下发目标地图信息;
接收所述调度平台下发的目标地图信息,从所述目标地图信息提取出第二区域地图进行加载。
可选的,一种具体实现方式中,所述根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的当前位置的第二区域地图,包括如下步骤:
向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的 容量所确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成。
可选的,一种具体实现方式中,所述加载至少包括所述移动机器人的第二当前位置的第二区域地图,包括如下步骤:
加载以所述移动机器人的第二当前位置为中心的第二区域地图;其中,所述第二区域地图具有第二区域形状,所述移动机器人的第二当前位置处于所述第二区域形状的中心。
可选的,一种具体实现方式中,所述第一阈值是根据所述移动机器人最大移动速度和获取地图的耗时确定的。
可选的,所述第一阈值为:所述最大移动速度与所述耗时的乘积的结果。
步骤三:当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
其中,上述步骤一至步骤三的具体内容,与上述实施例一至实施例四中的相应步骤的具体内容相同,在此不再赘述。
以上可见,应用本申请提供的方案,可以解决移动机器人视觉定位过程中地图切换的问题。其中,根据移动机器人本地的存储空间容量,加载包括移动机器人的第一当前位置的源区域地图,即第一区域地图,在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,触发获取目标地图信息,并根据用于存储目标区域地图的第二存储空间的容量,提取出目标区域地图进行存储,即提取出第二区域地图。这样,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面使得目标区域地图提前载入,为切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
可选的,一种具体实现方式中,在上述步骤一,计算移动机器人的第二当前位置与第一区域地图的边界的最小距离之前,所述方法还包括如下步骤四:
步骤四:根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;
其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量。
可选的,第一种实施例中,上述步骤四中,加载至少包括所述移动机器人的第一当前位置的第一区域地图,可以包括如下步骤:
加载以所述移动机器人的第一当前位置为中心的第一区域地图;其中,所述第一区域地图具有第一区域形状,所述移动机器人的第一当前位置处于所述第一区域形状的中心。
基于此,可选的,所述第一存储空间的容量与所述第二存储空间的容量之和小于等于所述移动机器人用于存储地图的内存总容量。
可选的,所述第一存储空间的容量与所述第二存储空间的容量相同或不同,所述第一区域形状与所述第二区域形状相同或不同。
可选的,第二种实施例中,上述步骤四可以包括如下步骤:
通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向调度平台上报所述移动机器人的当前位置和所述移动机器人的标识;
接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载。
可选的,第三种实施例中,上述步骤四可以包括如下步骤:
将第一存储空间的容量和所述移动机器人的标识上报至调度平台,使得所述调度平台根据所述第一存储空间的容量确定向所述移动机器人下发的所述第一区域地图的数据容量;
通过与所述调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;
接收所述调度平台根据所述移动机器人的标识下发的第一区域地图进行加载;其中,所述第一区域地图由所述调度平台按照设定的第一区域形状和根据所述第一存储空间的容量所确定的所述第一区域地图的数据容量,根据所述移动机器人的第一当前位置从所述调度平台侧存储的地图信息中生成。
可选的,第四种实施例中,上述步骤四可以包括如下步骤:
通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;
接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载。
其中,上述步骤四的具体内容,与上述实施例一至实施例四中的相应步骤的具体内容相同,在此不再赘述。
可选的,一种具体实现方式中,在上述步骤三,切换至基于所述第二区域地图进行定 位之后,所述方法还包括:清除所述第一区域地图的数据。
可选的,一种具体实现方式中,在上述步骤二中,所述根据所述移动机器人的当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图之前,所述方法还包括如下步骤五:
步骤五:判断已下发的所述源地图信息中是否有所述移动机器人的第二当前位置的地图信息,如果有,则所述移动机器人从所述源地图信息中提取出第二区域地图,否则,向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
相应的,在本具体实现方式中,上述步骤二中,所述根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的当前位置的第二区域地图,包括:
接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成;
进一步的,在本具体实现方式中,所述方法还包括如下步骤六:
步骤六:接收所述调度平台下发的用于生成所述第二区域地图的目标地图信息,将所述目标地图信息作为源地图信息存储。
其中,本具体实现方式的具体内容与上述实施例四中的相应步骤的具体内容相同,在此不再赘述。
相应于上述本申请实施例提供的一种应用于移动机器人的地图切换方法,本申请实施例还提供了一种应用于移动机器人的地图切换装置,所述装置包括:
第二计算模块,用于计算移动机器人的第二当前位置与第一区域地图的边界的最小距离;其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
第三加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
第二切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
以上可见,应用本申请提供的方案,可以解决移动机器人视觉定位过程中地图切换的 问题。其中,根据移动机器人本地的存储空间容量,加载包括移动机器人的第一当前位置的源区域地图,即第一区域地图,在移动机器人的第二当前位置距离源区域地图的边界的最小距离小于等于设定的第一阈值时,触发获取目标地图信息,并根据用于存储目标区域地图的第二存储空间的容量,提取出目标区域地图进行存储,即提取出第二区域地图。这样,一方面减少了移动机器人对用于存储地图的存储空间的要求,另一方面使得目标区域地图提前载入,为切换预留出时间,使得地图切换时两个有重叠的区域的地图之间有充裕的余量,实现了无缝地图切换,并使得移动机器人不会因地图切换而导致任务中断。
可选的,一种具体实现方式中,所述装置还包括:
第四加载模块,用于在所述计算移动机器人的第二当前位置与第一区域地图的边界的最小距离之前,根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量。
可选的,一种具体实现方式中,所述第四加载模块具体用于:加载以所述移动机器人的第一当前位置为中心的第一区域地图;其中,所述第一区域地图具有第一区域形状,所述移动机器人的第一当前位置处于所述第一区域形状的中心。
可选的,一种具体实现方式中,所述第三加载模块具体用于:加载以所述移动机器人的第二当前位置为中心的第二区域地图;其中,所述第二区域地图具有第二区域形状,所述移动机器人的第二当前位置处于所述第二区域形状的中心。
可选的,一种具体实现方式中,所述第一存储空间的容量与所述第二存储空间的容量之和小于等于所述移动机器人用于存储地图的内存总容量。
可选的,一种具体实现方式中,所述第一存储空间的容量与所述第二存储空间的容量相同或不同,所述第一区域形状与所述第二区域形状相同或不同。
可选的,一种具体实现方式中,所述第一阈值是根据所述移动机器人最大移动速度和获取地图的耗时确定的。
可选的,一种具体实现方式中,所述装置还包括:数据清除模块,用于在所述移动机器人切换至基于所述第二区域地图进行定位之后,清除所述第一区域地图的数据。
可选的,一种具体实现方式中,所述第一阈值为:所述最大移动速度与所述耗时的乘积的结果。
可选的,一种具体实现方式中,所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离满足以下任一条件:所述移动机器人的第二当前位置与所述第一区域地图的边界上的各节点之间的最小距离;所述移动机器人的当前运动方向延长线所相交的所述第一区域地图的边界的节点与所述移动机器人的第二当前位置的距离;
可选的,一种具体实现方式中,所述第四加载模块具体用于:通过与调度平台交互接 收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
可选的,一种具体实现方式中,所述第三加载模块具体用于:向调度平台上报所述移动机器人的第二当前位置和所述移动机器人的标识,使得所述调度平台根据所述移动机器人的第二当前位置和所述移动机器人的标识向所述移动机器人下发目标地图信息,接收所述调度平台下发的目标地图信息,从所述目标地图信息提取出第二区域地图进行加载。
可选的,一种具体实现方式中,所述第四加载模块具体用于:将第一存储空间的容量和所述移动机器人的标识上报至调度平台,使得所述调度平台根据所述第一存储空间的容量确定向所述移动机器人下发的所述第一区域地图的数据容量;通过与所述调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的标识下发的第一区域地图进行加载;其中,所述第一区域地图由所述调度平台按照根据设定的第一区域形状和所述第一存储空间的容量所确定的所述第一区域地图的数据容量,根据所述移动机器人的第一当前位置从所述调度平台侧存储的地图信息中生成;
可选的,一种具体实现方式中,所述第三加载模块具体用于:向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量所确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成。
可选的,一种具体实现方式中,所述第四加载模块具体用于:通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的当前位置和所述移动机器人的标识;接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
所述装置还包括:信息判断模块,用于所述当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,判断已下发的所述源地图信息中是否有所述移动机器人的第二当前位置的地图信息,如果有,则从所述源地图信息中提取出第二区域地图,否则,向所述调度平台上报所述移动机器人的第二当前位置、所述移 动机器人的标识、以及第二存储空间的容量;
所述第三加载模块具体用于:接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成;
所述装置还包括:地图存储模块,用于切换至基于所述第二区域地图进行定位之后,接收所述调度平台下发的用于生成所述第二区域地图的目标地图信息,将所述目标地图信息作为源地图信息存储。
相应于上述本申请实施例提供的一种应用于移动机器人的地图切换方法,本申请实施例还提供了一种移动机器人,其中,所述移动机器人包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行上述本申请实施例提供的任一应用于移动机器人的地图切换方法的步骤。
相应于上述本申请实施例提供的一种应用于移动机器人的地图切换方法,本申请实施例提供了一种计算机可读存储介质,其中,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述本申请实施例提供的任一应用于移动机器人的地图切换方法的步骤。
相应于上述本申请实施例提供的一种应用于移动机器人的地图切换方法,本申请实施例提供了一种包含指令的计算机程序,当其在计算机上运行时,使得计算机执行上述本申请实施例提供的任一应用于移动机器人的地图切换方法的步骤。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例、移动机器人实施例、计算机可读存储介质实施例和计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (17)

  1. 一种地图切换方法,所述方法包括:
    移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
    所述移动机器人基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
    当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
    当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,所述移动机器人切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
  2. 如权利要求1所述的方法,其中,所述加载至少包括所述移动机器人的第一当前位置的第一区域地图,包括:加载以所述移动机器人的第一当前位置为中心的第一区域地图;其中,所述第一区域地图具有第一区域形状,所述移动机器人的第一当前位置处于所述第一区域形状的中心;
    所述加载至少包括所述移动机器人的第二当前位置的第二区域地图,包括:加载以所述移动机器人的第二当前位置为中心的第二区域地图;其中,所述第二区域地图具有第二区域形状,所述移动机器人的第二当前位置处于所述第二区域形状的中心;
    并且,所述第一存储空间的容量与所述第二存储空间的容量之和小于等于所述移动机器人用于存储地图的内存总容量。
  3. 如权利要求2所述的方法,其中,所述第一存储空间的容量与所述第二存储空间的容量相同或不同,所述第一区域形状与所述第二区域形状相同或不同,所述第一阈值是根据所述移动机器人最大移动速度和获取地图的耗时确定的;
    所述移动机器人切换至基于所述第二区域地图进行定位之后,所述方法还包括:所述移动机器人清除所述第一区域地图的数据。
  4. 如权利要求3所述的方法,其中,所述第一阈值为:所述最大移动速度与所述耗时的乘积的结果。
  5. 如权利要求1至4任一所述的方法,其中,所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离满足以下任一条件:
    所述移动机器人的第二当前位置与所述第一区域地图的边界上的各节点之间的最小距离;
    所述移动机器人的当前运动方向延长线所相交的所述第一区域地图的边界的节点与所述移动机器人的第二当前位置的距离。
  6. 如权利要求1所述的方法,其中,所述移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,包括:
    所述移动机器人通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,所述移动机器人基于设置的初始位置获得所述移动机器人的第一当前位置,向调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;
    所述移动机器人接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
    所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,包括:
    所述移动机器人向调度平台上报所述移动机器人的第二当前位置和所述移动机器人的标识,使得所述调度平台根据所述移动机器人的第二当前位置和所述移动机器人的标识向所述移动机器人下发目标地图信息;
    所述移动机器人接收所述调度平台下发的目标地图信息,从所述目标地图信息提取出第二区域地图进行加载。
  7. 如权利要求1所述的方法,其中,所述移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,包括:
    所述移动机器人将第一存储空间的容量和所述移动机器人的标识上报至调度平台,使得所述调度平台根据所述第一存储空间的容量确定向所述移动机器人下发的所述第一区域地图的数据容量;
    所述移动机器人通过与所述调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,所述移动机器人基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;
    所述移动机器人接收所述调度平台根据所述移动机器人的标识下发的第一区域地图进行加载;其中,所述第一区域地图由所述调度平台按照设定的第一区域形状和根据所述第一存储空间的容量所确定的所述第一区域地图的数据容量,根据所述移动机器人的第一当前位置从所述调度平台侧存储的地图信息中生成;
    所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的当前位置的第二区域地图,包括:
    所述移动机器人向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
    所述移动机器人接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量所确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成。
  8. 如权利要求1所述的方法,其中,所述移动机器人根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,包括:
    所述移动机器人通过与调度平台交互接收所述调度平台提供的所述移动机器人的第一当前位置,并向所述调度平台上报所述移动机器人的标识,或者,所述移动机器人基于设置的初始位置获得所述移动机器人的第一当前位置,向所述调度平台上报所述移动机器人的第一当前位置和所述移动机器人的标识;
    所述移动机器人接收所述调度平台根据所述移动机器人的第一当前位置和所述移动机器人的标识向所述移动机器人下发的源地图信息,从所述源地图信息提取出第一区域地图进行加载;
    所述当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,所述方法还包括:
    所述移动机器人判断已下发的所述源地图信息中是否有所述移动机器人的第二当前位置的地图信息,如果有,则所述移动机器人从所述源地图信息中提取出第二区域地图,否则,向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
    所述移动机器人根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,包括:
    所述移动机器人接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照根据所述第二存储空间的容量确定的第二区域地图的数据容量和设定的第二区域形状,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成;
    所述移动机器人切换至基于所述第二区域地图进行定位之后,所述方法还包括:
    所述移动机器人接收所述调度平台下发的用于生成所述第二区域地图的目标地图信息,将所述目标地图信息作为源地图信息存储。
  9. 一种用于移动机器人调度的系统,所述系统包括:调度平台和至少一个移动机器人;
    其中,每个移动机器人包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行如权利要求1至8任一所述的地图切换方法的步骤;
    所述调度平台包括存储器和处理器,所述存储器存储有可被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行如权利要求1至8任一所述的地图切换方法的响应步骤。
  10. 一种移动机器人,所述移动机器人包括:
    第一加载模块,用于根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量;
    第一计算模块,用于基于所述第一区域地图,计算所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离;
    第二加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
    第一切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
  11. 一种地图切换方法,应用于移动机器人,所述方法包括,
    计算移动机器人的第二当前位置与第一区域地图的边界的最小距离;其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
    当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
    当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
  12. 根据权利要求11所述的方法,其中,在所述计算移动机器人的第二当前位置与第一区域地图的边界的最小距离的步骤之前,所述方法还包括:
    根据所述移动机器人的第一当前位置,加载至少包括所述移动机器人的第一当前位置的第一区域地图,并保存于第一存储空间中;其中,所述第一区域地图的数据容量小于等于所述移动机器人本地的所述第一存储空间的容量。
  13. 如权利要求11或12所述的方法,其中,在所述根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的当前位置的第二区域地图之前,所述方法还包括:
    判断已下发的所述源地图信息中是否有所述移动机器人的第二当前位置的地图信息,如果有,则所述移动机器人从所述源地图信息中提取出第二区域地图,否则,向所述调度平台上报所述移动机器人的第二当前位置、所述移动机器人的标识、以及第二存储空间的容量;
    所述根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,包括:
    接收所述调度平台根据所述移动机器人的标识下发的第二区域地图进行加载;其中,所述第二区域地图由所述调度平台按照设定的第二区域形状和根据所述第二存储空间的容量确定的第二区域地图的数据容量,根据所述移动机器人的第二当前位置从所述调度平台侧存储的地图信息中生成;
    所述方法还包括:
    接收所述调度平台下发的用于生成所述第二区域地图的目标地图信息,将所述目标地图信息作为源地图信息存储。
  14. 一种地图切换装置,应用于移动机器人,所述装置包括,
    第二计算模块,用于计算移动机器人的第二当前位置与第一区域地图的边界的最小距离;其中,所述第一区域地图为:根据所述移动机器人的第一当前位置加载的至少包含所述移动机器人的第一当前位置的地图;
    第三加载模块,用于当所述移动机器人的第二当前位置与所述第一区域地图的边界的最小距离不大于设定的第一阈值时,根据所述移动机器人的第二当前位置,加载至少包括所述移动机器人的第二当前位置的第二区域地图,并保存于第二存储空间中;其中,所述第二区域地图的数据容量小于等于所述移动机器人本地的所述第二存储空间的容量;
    第二切换模块,用于当所述第二区域地图加载完毕、且所述移动机器人的第三当前位置与所述第一区域地图的边界的最小距离不大于设定的第二阈值时,切换至基于所述第二区域地图进行定位;其中,所述第二阈值小于等于所述第一阈值。
  15. 一种移动机器人,所述移动机器人包括存储器和处理器,所述存储器存储有可 被处理器执行的指令,所述指令被处理器执行,以使所述处理器执行如权利要求1至8任一所述地图切换方法的步骤或如权利要求11至13任一所述的地图切换方法的步骤。
  16. 一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一所述地图切换方法的步骤或者实现如权利要求11至13任一所述地图切换方法的步骤。
  17. 一种包含指令的计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1至8任一所述地图切换方法的步骤或者实现如权利要求11至13任一所述地图切换方法的步骤。
PCT/CN2021/083420 2020-03-27 2021-03-26 一种地图切换方法和移动机器人 WO2021190646A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010229067.8A CN113449054B (zh) 2020-03-27 2020-03-27 一种地图切换的方法和移动机器人
CN202010229067.8 2020-03-27

Publications (1)

Publication Number Publication Date
WO2021190646A1 true WO2021190646A1 (zh) 2021-09-30

Family

ID=77808026

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083420 WO2021190646A1 (zh) 2020-03-27 2021-03-26 一种地图切换方法和移动机器人

Country Status (2)

Country Link
CN (1) CN113449054B (zh)
WO (1) WO2021190646A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302327B (zh) * 2021-12-24 2023-06-23 珠海优特电力科技股份有限公司 定位区域的切换方法、装置、设备、定位系统和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885060A (zh) * 2005-06-20 2006-12-27 英华达(上海)电子有限公司 一种按全球卫星定位信号在gps上自动加载地图的方法
CN105807769A (zh) * 2016-03-09 2016-07-27 哈尔滨工程大学 无人水下航行器ivfh避碰方法
EP3336489A1 (en) * 2015-08-14 2018-06-20 Beijing Evolver Robotics Co., Ltd Method and system for automatically establishing map indoors by mobile robot
CN108709562A (zh) * 2018-04-28 2018-10-26 北京机械设备研究所 一种移动机器人滚动栅格地图构建方法
CN110531766A (zh) * 2019-08-27 2019-12-03 熵智科技(深圳)有限公司 基于已知占据栅格地图的持续激光slam构图定位方法
CN110531761A (zh) * 2019-08-19 2019-12-03 深圳元戎启行科技有限公司 无人车调度方法、装置及执行无人车调度方法的系统
CN110858075A (zh) * 2018-08-15 2020-03-03 杭州海康机器人技术有限公司 一种移动机器人跨区域方法、装置、调度系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5402769B2 (ja) * 2010-03-24 2014-01-29 株式会社デンソー ナビゲーション装置における参照地図データ切替方法
JP6762148B2 (ja) * 2015-07-09 2020-09-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America 地図生成方法、移動ロボット及び地図生成システム
EP3144765B1 (en) * 2015-09-18 2020-01-08 Samsung Electronics Co., Ltd. Apparatus for localizing cleaning robot, cleaning robot, and controlling method of cleaning robot
CN106855881B (zh) * 2016-12-16 2021-01-08 北京奇鱼时代科技有限公司 一种基于移动设备的多地图切换的方法和装置
CN107016924B (zh) * 2016-12-20 2020-04-07 阿里巴巴集团控股有限公司 虚拟地图中的瓦片地图生成方法、更新方法和装置
JP6740898B2 (ja) * 2016-12-28 2020-08-19 カシオ計算機株式会社 地図記録装置、プログラム及び地図記録方法
CN110019598A (zh) * 2017-09-30 2019-07-16 北京嘀嘀无限科技发展有限公司 加载站点的方法、系统、计算机装置及可读存储介质
CN107729530A (zh) * 2017-10-30 2018-02-23 西安蜂语信息科技有限公司 地图切换方法及装置
CN109460020A (zh) * 2018-10-31 2019-03-12 北京猎户星空科技有限公司 机器人地图共享方法、装置、机器人及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885060A (zh) * 2005-06-20 2006-12-27 英华达(上海)电子有限公司 一种按全球卫星定位信号在gps上自动加载地图的方法
EP3336489A1 (en) * 2015-08-14 2018-06-20 Beijing Evolver Robotics Co., Ltd Method and system for automatically establishing map indoors by mobile robot
CN105807769A (zh) * 2016-03-09 2016-07-27 哈尔滨工程大学 无人水下航行器ivfh避碰方法
CN108709562A (zh) * 2018-04-28 2018-10-26 北京机械设备研究所 一种移动机器人滚动栅格地图构建方法
CN110858075A (zh) * 2018-08-15 2020-03-03 杭州海康机器人技术有限公司 一种移动机器人跨区域方法、装置、调度系统
CN110531761A (zh) * 2019-08-19 2019-12-03 深圳元戎启行科技有限公司 无人车调度方法、装置及执行无人车调度方法的系统
CN110531766A (zh) * 2019-08-27 2019-12-03 熵智科技(深圳)有限公司 基于已知占据栅格地图的持续激光slam构图定位方法

Also Published As

Publication number Publication date
CN113449054B (zh) 2023-08-04
CN113449054A (zh) 2021-09-28

Similar Documents

Publication Publication Date Title
US20200322879A1 (en) Slice information update method and apparatus
US10764132B2 (en) Scale-out association method and apparatus, and system
US11018944B2 (en) Method and apparatus for virtualized network function scaling that is initiated by network management and/or element management
WO2022001173A1 (zh) 一种卫星通信系统星地协同寻呼方法和装置
WO2016116070A2 (zh) 一种确定位置关系的方法和装置
WO2021190646A1 (zh) 一种地图切换方法和移动机器人
CN112672421B (zh) 通信网络中对终端的定位方法、系统、装置和存储介质
CN104599217A (zh) 用于确定乘客的当前目的地的方法及设备
CN114025399B (zh) 低轨卫星切换控制方法、核心网设备、装置和存储介质
EP2317784A1 (en) Message distribution method, radio base station, and message distribution station
US10965597B2 (en) Virtual network function load balancer
EP4054227A1 (en) Network data analysis method, functional entity and electronic device
US20190199582A1 (en) Alarm information reporting method and apparatus
US20160316313A1 (en) M2M-based information processing method and M2M service platform
CN110225379A (zh) 基于车载终端的智能终端屏幕共享方法及系统、车载终端
WO2019141226A1 (zh) 多移动机器人的冲突管理方法及系统
US20160245896A1 (en) Method and device for positioning terminal location
CN106815080A (zh) 分布式图数据处理方法和装置
CN106815029B (zh) 一种使用Qt进行二维图层的绘制及事件处理方法
US20170192087A1 (en) Method and device for determining vehicle site location
WO2016146055A1 (en) Positioning access points selection
CN111660314A (zh) 机器人停止缓冲区划分方法、设备及存储装置
CN113873423B (zh) 终端定位方法、装置及系统
CN102902572B (zh) 一种基于消息分段式的工作流引擎以及集群系统
CN111565364A (zh) 定位信息的获取方法及装置、存储介质、终端

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: 21774993

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21774993

Country of ref document: EP

Kind code of ref document: A1