WO2019183795A1 - Robot localization method and robot - Google Patents

Robot localization method and robot Download PDF

Info

Publication number
WO2019183795A1
WO2019183795A1 PCT/CN2018/080659 CN2018080659W WO2019183795A1 WO 2019183795 A1 WO2019183795 A1 WO 2019183795A1 CN 2018080659 W CN2018080659 W CN 2018080659W WO 2019183795 A1 WO2019183795 A1 WO 2019183795A1
Authority
WO
WIPO (PCT)
Prior art keywords
robot
corridor
distance
determining
contour information
Prior art date
Application number
PCT/CN2018/080659
Other languages
French (fr)
Chinese (zh)
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 深圳市神州云海智能科技有限公司
Priority to PCT/CN2018/080659 priority Critical patent/WO2019183795A1/en
Publication of WO2019183795A1 publication Critical patent/WO2019183795A1/en

Links

Images

Classifications

    • 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

Definitions

  • the invention belongs to the field of robot technology, and in particular relates to a method for robot positioning and a robot.
  • positioning is mostly achieved by laser positioning, such as installing a reflector in an environment, positioning by detecting the position of the reflector, or creating an environmental map based on Simultaneous Localization and Mapping (SLAM).
  • SLAM Simultaneous Localization and Mapping
  • the solution for installing the reflector needs to be modified to the environment, and the number of reflectors is large, and the installation position has certain requirements, which is very troublesome in application.
  • SLAM technology for positioning, in the relatively single and long corridor environment, due to the limitation of the distance and angular resolution of the laser scanning radar, the robot cannot be accurately positioned in the corridor environment, and thus cannot be controlled. The robot travels with precision.
  • the embodiments of the present invention provide a method and a robot for positioning a robot, so as to solve the problem that the robot cannot be accurately positioned in the corridor environment in the prior art, and thus the robot cannot accurately control the robot.
  • a first aspect of the embodiments of the present invention provides a method for robot positioning, including:
  • a second aspect of the embodiments of the present invention provides a robot, including:
  • a first distance determining unit configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information
  • a signal acquiring unit configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
  • a second distance determining unit configured to determine a second distance between the robot and the wireless node according to the signal strength value
  • a unit for determining location information configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
  • a third aspect of the embodiments of the present invention provides a robot, including: a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storing
  • a computer program supporting a device for performing the above method the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
  • a fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program including program instructions, the program instructions causing the processing when executed by a processor The method of the first aspect described above is performed.
  • the embodiment of the present invention has the beneficial effects of: determining the first distance between the robot and the two sides of the corridor according to the contour information by acquiring contour information on both sides of the corridor where the robot is currently located; a signal strength value of a signal sent by the wireless node disposed at the end of the corridor, and a unique identifier of the wireless node carried by the signal; and determining a second distance between the robot and the wireless node according to the signal strength value And determining current location information of the robot according to the first distance, the unique identifier, and the second distance.
  • the distance between the parallel and perpendicular to the corridor is determined respectively, and the current position information of the robot is obtained more accurately, especially when the robot is carried out in a single corridor environment, the accuracy of controlling the traveling of the robot is improved.
  • FIG. 1 is a flowchart of a method for positioning a robot according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a walking path of a robot in a corridor according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for positioning a robot according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of robot contour information matching according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of determining robot position information according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a robot according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a robot according to another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a robot according to still another embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for positioning a robot according to an embodiment of the present invention.
  • the execution body of the method for positioning the robot in this embodiment is a robot.
  • the method of robot positioning as shown in FIG. 1 may include the following steps:
  • S101 Obtain contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information.
  • the robot When the robot is in the corridor, obtain the contour information on both sides of the corridor where the robot is currently located.
  • the time when the robot acquires the contour information may be when the robot is traveling, or when the robot is stationary at a certain position, which is not limited herein.
  • the first distance between the robot and the two sides of the corridor is determined according to the contour information.
  • the robot can proceed parallel to the corridor according to the fixed left and right distances while determining the left and right distance from the corridor.
  • FIG. 2 is a schematic diagram of a walking path of a robot in a corridor according to an embodiment of the present invention.
  • the dotted line in Figure 2 is the cleaning route of the cleaning robot, and the entire corridor can be covered after multiple round trips.
  • the width of the cleaning robot can be 1/4 of the corridor, the cleaning of the entire corridor can be covered by cleaning 4 times.
  • each route must be as shown in FIG. 2.
  • the width of the previous route translation robot is the second cleaning route, and is maintained in real time until the end of the corridor.
  • the cleaning robot must be accurate in real time in the direction of the vertical corridor according to the first distance to cover the entire corridor.
  • S102 Acquire a signal strength value of a signal sent by a wireless node set at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal.
  • a wireless node is set at the end of the corridor to send a signal to the robot. Since the end of the corridor includes many conditions, such as corners or intersections, the wireless node is set at the end of the corridor to remind the robot of the current position when the robot travels there, so that the robot can turn or turn around. .
  • the wireless node may be a Bluetooth device, a WI-FI WI-FI device, a Zigbee device, or a Radio Frequency Identification (RFID) device, which is not limited herein. .
  • RFID Radio Frequency Identification
  • the number of wireless nodes set in the corridor may be one or more, and the specific number is set according to the specific conditions of the corridor, the configuration information of the robot, or the needs of the user. Except for the total number of corners and corners of the corridor, there are five wireless nodes, which are located at the end of each corridor and at the corner.
  • the signals received by the robot may come from multiple wireless nodes and the source of the received signal cannot be determined. Therefore, if the number of wireless nodes set in the corridor is greater than one, a unique identifier is set for all wireless nodes, and when transmitting signals to the robot, the unique identifier is carried at the same time.
  • the received signal strength value is smaller.
  • the robot acquires the signal transmitted by the wireless node with different signal strength values at different positions, and the unique identifier of the wireless node, so that the robot determines the current region where it is located.
  • S103 Determine a second distance between the robot and the wireless node according to the signal strength value.
  • the wireless node Since the wireless node transmits a signal with a limited distance and the further away from the wireless node, the received signal strength value is smaller. Therefore, the signal strength value can be used to determine the second distance between the robot and the wireless node.
  • the second distance between the robot and the wireless node can be calculated by equation (1):
  • d represents the second distance
  • R represents the signal strength value of the signal received by the robot
  • A represents the signal strength when the wireless node is separated from the robot by 1 meter
  • n represents the environmental attenuation factor
  • the wireless node Since the wireless node is installed at the end of the corridor, by determining the second distance between the robot and the wireless node, the distance of the robot from the end of the corridor can be determined.
  • the preset correspondence between the distance value and the signal strength value is pre-stored in the robot. Therefore, when acquiring the signal strength value of the signal sent by the wireless node, the robot may according to the distance value and the signal strength. A preset correspondence between the values determines a distance value corresponding to a signal strength value of the currently received signal, thereby determining a second distance between the robot and the wireless node.
  • the control robot performs a corresponding operation when the second distance is less than the distance threshold. For example, if the distance threshold is set to 0.5 m, when the current second distance of the robot is less than 0.5 m, the U-turn is performed to avoid the collision of the robot while traveling, and the safety of the robot during the operation is ensured.
  • S104 Determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
  • determining the node position of the wireless node according to the unique identifier After determining the first distance between the robot and the two sides of the corridor and the second distance from the end of the corridor, determining the node position of the wireless node according to the unique identifier, determining the current region of the robot according to the node position; determining the vertical of the robot according to the first distance
  • the position information of the corridor determining the position information of the robot parallel to the corridor according to the second distance; determining the current position information of the robot according to the position information of the robot perpendicular to the corridor and the position information of the robot parallel to the corridor.
  • the robot determines, according to the obtained unique identifier, which wireless node sends the node location, and determines the node location of the node.
  • the robot can determine the current location of the robot according to the communication range of the wireless node. The area to prevent location confusion caused by multiple locations when simultaneously receiving signals transmitted by multiple wireless nodes.
  • the distance between the robot and the two sides of the corridor is determined, that is, the position information of the robot perpendicular to the corridor.
  • the distance of the robot wireless node is determined according to the second distance, that is, the position information of the robot parallel to the corridor.
  • the current position information of the robot is determined according to the position information of the robot perpendicular to the corridor and the position information parallel to the corridor.
  • the method may further include:
  • the U-turn is performed according to the first distance and the signal strength value
  • the turning is performed according to the first distance and the signal strength value.
  • the contour information is matched with the preset map information to determine the shape of the corridor at the current position of the robot.
  • the shape of the corridor includes L-shaped, cross-shaped, T-shaped corridors or the end of the corridor, etc., and is not limited herein.
  • the robot needs to make a U-turn to avoid collision. Since the first distance includes the left and right distances of the robot and the sides of the corridor wall, according to the radius of the arc required by the robot to turn the head, the left and right distances of the robot when the U-turn is controlled are controlled, and the robot is determined to turn around according to the signal strength value. The distance from the front wall, so that the robot can control the U-turn in the horizontal and vertical directions to prevent the robot from colliding with the front wall. Similarly, if the robot is currently located at the corner of the corridor according to the shape of the corridor, according to the first distance And the signal strength value is turned.
  • the method may further include: if the accurate position of the robot cannot be obtained by using the contour information, according to the A distance travels straight parallel to the corridor.
  • the distance between the parallel and perpendicular to the corridor is determined by the laser scanning device and the wireless node, and the current position information of the robot is obtained more accurately according to the determined distance, especially when the robot is in the environment. Improves the accuracy of the control robot's travel while in a single corridor environment.
  • FIG. 3 is a flowchart of a method for positioning a robot according to another embodiment of the present invention.
  • the execution subject of the method of robot positioning in this embodiment is a robot.
  • the method of robot positioning as shown in FIG. 3 may include the following steps:
  • S301 Scan the radar by the laser scanning radar disposed on the robot to scan contour information on both sides of the corridor where the robot is currently located.
  • a laser scanning radar is preset on the robot for scanning contour information on both sides of the corridor where the robot is currently located.
  • the laser scanning radar in this embodiment uses a laser as a signal source, and a laser emits a pulsed laser to hit a wall around the robot to cause scattering. A part of the light wave is reflected to the receiver of the laser scanning radar, and the pulse laser continuously scans the target.
  • the object can obtain the data of all the target points on the target object, and after using the data for imaging processing, the contour information on both sides of the corridor wall can be obtained accurately.
  • the robot After acquiring the contour information on both sides of the corridor at the current location, the robot determines the pose of each particle. Among them, the pose includes the abscissa value, the ordinate value and the heading angle of the particle.
  • the matching credibility of each particle is calculated according to the contour information and the preset map by the abscissa value and the ordinate value in the contour information corresponding to each particle.
  • calculating the matching credibility in step S302 can be calculated in the following manner:
  • R v represents the matching credibility of each particle in the preset map
  • N represents the number of laser beams
  • (x i , y i ) represents the coordinates of the i-th laser beam
  • P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
  • FIG. 4 is a schematic diagram of robot contour information matching according to an embodiment of the present invention.
  • the coordinate axis is established at an angle of the corridor.
  • the x-axis of the horizontal axis is parallel to the direction of the corridor, and the y-axis of the vertical axis is perpendicular to the direction of the corridor.
  • the left side of the corridor wall is the wall A side, and the right side is the wall B surface.
  • the dotted line in the figure indicates the laser contour range that can be acquired by the laser scanning radar on the robot.
  • a certain number of particles are randomly selected as the target particles in the contour information, the number is N, and the poses of the target particles are respectively (x 1 , y 1 , ⁇ 1 ), (x 2 , y 2 , ⁇ 2 ), ..., (x N , y N , ⁇ N ), where x 1 , x 2 , ..., x N represent values of the target particles in a direction parallel to the corridor, y 1 , y 2 ,...,y N represents the value of the target particle in the direction perpendicular to the corridor, ⁇ 1 , ⁇ 2 ,..., ⁇ N represents the angle between the target particle and the direction parallel to the corridor, which can be parallel to the corridor
  • the value in the direction is calculated from the tangent of the value perpendicular to the direction of the corridor, and can also be obtained by laser scanning radar.
  • the image matching based on the Monte Carlo method is performed by using the round-trip information acquired by the current laser scanning radar and the preset raster map, that is, the particle filtering method is used to obtain the most particles.
  • the contour information is mapped to the preset map, and the pose of the N target particles is calculated to map the pixel sum on the original raster map, and normalized to obtain credibility.
  • Degree parameter dis_temp That is, the credibility parameter dis_temp is calculated by the formula (3):
  • N represents the number of laser beams
  • (x i , y i ) represents the coordinates of the ith laser beam
  • P(x i , y i ) represents the coordinates of the contour information and the preset map (x) i , y i ) The mapped pixel value between the obstacle points.
  • the matching credibility is calculated by formula (4):
  • S303 Identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot.
  • the particle corresponding to the maximum matching credibility is determined as the optimal particle, and the corresponding pose of the optimal particle is (x, y, ⁇ ), that is, the optimal pose
  • the pose is recognized as the coordinates of the robot.
  • S304 Calculate a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the width of the corridor.
  • FIG. 5 is a schematic diagram of determining robot position information according to an embodiment of the present invention.
  • the corresponding y value in the optimal pose (x, y, ⁇ ) is the ordinate value of the robot, that is, d 2 in FIG. 5 , which is also the right distance in the first distance.
  • the left distance d 1 in the first distance is calculated from the right distance and the width of the corridor.
  • the robot's current distance perpendicular to the corridor can be determined.
  • the robot is in a straight line parallel to the corridor, only the robot must be controlled to maintain the left distance. And the right distance is unchanged, then the robot can be controlled to maintain a precise straight walking route for the parallel corridor, which is the straight line L of the A and B sides of the parallel corridor in FIG.
  • This robotic control method is especially important in corridor cleaning robots, which allows the robot to maintain precise route travel during cleaning operations, ensuring that every floor in the corridor can be cleaned. Moreover, if the control robot performs effective turning and U-turn, the cleaning task can be completed in the shortest time, avoiding repeated cleaning, thereby improving the working efficiency of the cleaning robot and improving the utilization rate of the robot energy.
  • the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability
  • the coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor.
  • the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability.
  • the pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
  • FIG. 6 is a schematic diagram of a robot according to an embodiment of the present invention.
  • the units included in the robot 600 of the present embodiment are used to perform the steps in the embodiment corresponding to FIG. 1.
  • the robot 600 of the present embodiment includes a first distance determining unit 601, a signal acquiring unit 602, a second distance determining unit 603, and a position information determining unit 604.
  • the first distance determining unit 601 is configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
  • the signal acquiring unit 602 is configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
  • a second distance determining unit 603, configured to determine a second distance between the robot and the wireless node according to the signal strength value
  • the location information determining unit 604 is configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
  • the location information determining unit 604 further includes:
  • a region determining unit configured to determine a node location of the wireless node according to the unique identifier, and determine an area where the robot is currently located according to the node location;
  • a horizontal and vertical distance determining unit configured to determine position information of the robot perpendicular to the corridor according to the first distance; and determine position information of the robot parallel to the corridor according to the second distance;
  • a position determining unit configured to determine current position information of the robot according to position information of the robot perpendicular to the corridor and position information of the robot parallel to the corridor.
  • the robot further includes:
  • a contour matching unit configured to match the contour information with a preset map, and determine a shape of a corridor at a current position of the robot
  • a U-turn control unit configured to: if the robot is currently located at the end of the corridor according to the shape of the corridor, perform a U-turn according to the first distance and the signal strength value;
  • a turning control unit configured to perform turning according to the first distance and the signal strength value if it is determined that the robot is currently located at a corner of the corridor according to the shape of the corridor.
  • the straight line traveling unit is configured to travel along a straight line parallel to the corridor according to the first distance if the accurate position of the robot cannot be acquired by the contour information.
  • the distance between the parallel and perpendicular to the corridor is determined by the laser scanning device and the wireless node, and the current position information of the robot is obtained more accurately according to the determined distance, especially when the robot is in the environment. Improve the accuracy of robot travel while in a single corridor environment.
  • FIG. 7 is a schematic diagram of a robot according to an embodiment of the present invention.
  • the units included in the robot 700 of the present embodiment are used to perform the steps in the embodiment corresponding to FIG. 2 .
  • the robot 700 of the present embodiment includes a contour acquiring unit 701, a parameter calculating unit 702, a coordinate determining unit 703, and a distance determining unit 704.
  • a contour acquiring unit 701 configured to scan, by using a laser scanning radar disposed on the robot, contour information on both sides of the corridor where the robot is currently located;
  • a parameter calculation unit 702 configured to calculate a matching credibility of each particle in a preset map
  • a coordinate determining unit 703 configured to identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
  • the distance determining unit 704 is configured to calculate a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the corridor width.
  • parameter calculation unit 702 is further configured to Calculate the matching credibility of each particle in the preset map
  • R v represents the matching credibility of each particle in the preset map
  • N represents the number of laser beams
  • (x i , y i ) represents the coordinates of the i-th laser beam
  • P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
  • the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability
  • the coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor.
  • the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability.
  • the pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
  • FIG. 8 is a schematic diagram of a robot according to still another embodiment of the present invention.
  • the robot 800 in this embodiment as shown in FIG. 8 may include a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and operable on the processor 801.
  • the processor 801, when executing the computer program 803, implements the steps in the various method embodiments described above for robot positioning.
  • Memory 802 is used to store computer programs, including program instructions.
  • the processor 801 is configured to execute program instructions stored by the memory 802.
  • the processor 801 is configured to invoke the program instruction to perform the following operations:
  • the processor 801 is configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
  • the processor 801 is further configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
  • the processor 801 is further configured to determine a second distance between the robot and the wireless node according to the signal strength value
  • the processor 801 is further configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
  • the processor 801 is specifically configured to match the contour information with a preset map to determine a shape of a corridor at a current location of the robot;
  • the processor 801 is specifically configured to: if the robot is currently located at the end of the corridor according to the shape of the corridor, perform a U-turn according to the first distance and the signal strength value;
  • the processor 801 is specifically configured to: if the robot is currently located at a corner of the corridor according to the shape of the corridor, perform a turn according to the first distance and the signal strength value.
  • the processor 801 is specifically configured to scan, by using a laser scanning radar disposed on the robot, contour information on both sides of the corridor where the robot is currently located;
  • the processor 801 is specifically configured to calculate a matching credibility of each particle in a preset map.
  • the processor 801 is specifically configured to identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
  • the processor 801 is specifically configured to calculate a first distance between the robot and two sides of the corridor according to the coordinates of the robot and the width of the corridor.
  • the processor 801 is specifically configured to Calculate the matching credibility of each particle in the preset map
  • R v represents the matching credibility of each particle in the preset map
  • N represents the number of laser beams
  • (x i , y i ) represents the coordinates of the i-th laser beam
  • P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
  • the processor 801 is specifically configured to determine, according to the unique identifier, a node location of the wireless node, and determine, according to the node location, an area where the robot is currently located;
  • the processor 801 is specifically configured to determine location information of the robot perpendicular to the corridor according to the first distance, and determine location information of the robot parallel to the corridor according to the second distance;
  • the processor 801 is specifically configured to determine current position information of the robot according to position information of the robot perpendicular to the corridor and position information of the robot parallel to the corridor.
  • the processor 801 is specifically configured to: if the accurate position of the robot cannot be acquired by using the contour information, proceed according to the first distance and parallel to the straight line of the corridor.
  • the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability
  • the coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor.
  • the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability.
  • the pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
  • the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 802 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 802 may also include a non-volatile random access memory. For example, the memory 802 can also store information of the device type.
  • the processor 801, the memory 802, and the computer program 803 described in the embodiments of the present invention may implement the first embodiment and the implementation manner described in the second embodiment of the method for positioning a robot provided by an embodiment of the present invention.
  • the implementation of the robot described in the embodiment of the present invention may also be implemented, and details are not described herein again.
  • a computer readable storage medium is stored, the computer readable storage medium storing a computer program comprising program instructions, the program instructions being implemented by a processor to:
  • the U-turn is performed according to the first distance and the signal strength value
  • the turning is performed according to the first distance and the signal strength value.
  • Scanning radar on the robot to scan the contour information on both sides of the corridor where the robot is currently located;
  • R v represents the matching credibility of each particle in the preset map
  • N represents the number of laser beams
  • (x i , y i ) represents the coordinates of the i-th laser beam
  • P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
  • the current position information of the robot is determined according to the position information of the robot perpendicular to the corridor and the position information of the robot parallel to the corridor.
  • the first distance is linearly parallel to the corridor according to the first distance.
  • the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability
  • the coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor.
  • the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability.
  • the pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
  • the computer readable storage medium may be an internal storage unit of the robot as described in any of the preceding embodiments, such as a hard disk or a memory of the robot.
  • the computer readable storage medium may also be an external storage device of the robot, such as a plug-in hard disk equipped on the robot, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the robot and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the robot.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the disclosed robot and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

Provided are a robot localization method and a robot, applicable to the technical field of robots. The method comprises obtaining contour information of either side of a corridor where a robot is currently located, and determining a first distance between the robot and either side of the corridor according to the contour information; obtaining a signal strength value of a signal sent by a wireless node provided at the end of the corridor, and obtaining a unique identifier of the wireless node carried by the signal; determining a second distance between the robot and the wireless node according to the signal strength value; and determining current position information of the robot according to the first distance, the unique identifier, and the second distance. Horizontal and vertical distances of a robot with respect to a corridor are separately determined by combining a laser scanning apparatus with a wireless node, so as to obtain current position information of the robot more accurately, in particular, to improve the accuracy of robot travel control when the robot is operating in a single corridor environment.

Description

一种机器人定位的方法及机器人Robot positioning method and robot 技术领域Technical field
本发明属于机器人技术领域,尤其涉及一种机器人定位的方法及机器人。The invention belongs to the field of robot technology, and in particular relates to a method for robot positioning and a robot.
背景技术Background technique
随着机器人行业的发展,自主清洁机器人也进入了人们的生活,自主清洁机器人需要覆盖整个清扫环境,因此定位精度要求高,现有许多成熟方案可实现。但是在楼道这种单一且特殊环境下,实现全覆盖清扫整个环境,同样需要精度较高的定位。With the development of the robot industry, autonomous cleaning robots have also entered people's lives. Autonomous cleaning robots need to cover the entire cleaning environment, so the positioning accuracy is high, and many mature solutions are available. However, in a single and special environment of the corridor, achieving full coverage to clean the entire environment also requires higher precision positioning.
现有技术中大多通过激光定位的方式实现定位,比如在环境中安装反光板,通过检测反光板的位置进行定位;或者基于即时定位与地图构建技术(Simultaneous Localization and Mapping,SLAM)创建环境地图,采用轮廓匹配实时定位。但是安装反光板的方案需要对环境进行一定改造,且反光板数量较多,安装位置有一定要求,在应用中非常麻烦。但是,采用SLAM技术进行定位时,在环境相对单一的且较长的楼道环境中,由于激光扫描雷达的距离和角度分辨率的局限性,不能在楼道环境中对机器人进行准确定位,进而不能控制机器人精确行进。In the prior art, positioning is mostly achieved by laser positioning, such as installing a reflector in an environment, positioning by detecting the position of the reflector, or creating an environmental map based on Simultaneous Localization and Mapping (SLAM). Use contour matching for real-time positioning. However, the solution for installing the reflector needs to be modified to the environment, and the number of reflectors is large, and the installation position has certain requirements, which is very troublesome in application. However, when using SLAM technology for positioning, in the relatively single and long corridor environment, due to the limitation of the distance and angular resolution of the laser scanning radar, the robot cannot be accurately positioned in the corridor environment, and thus cannot be controlled. The robot travels with precision.
技术问题technical problem
有鉴于此,本发明实施例提供了一种机器人定位的方法及机器人,以解决现有技术中不能在楼道环境中对机器人进行准确定位,进而不能控制机器人精确行进的问题。In view of this, the embodiments of the present invention provide a method and a robot for positioning a robot, so as to solve the problem that the robot cannot be accurately positioned in the corridor environment in the prior art, and thus the robot cannot accurately control the robot.
技术解决方案Technical solution
本发明实施例的第一方面提供了一种机器人定位的方法,包括:A first aspect of the embodiments of the present invention provides a method for robot positioning, including:
获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;Obtaining contour information on both sides of the corridor where the robot is currently located, and determining a first distance between the robot and the two sides of the corridor according to the contour information;
获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;Obtaining a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and acquiring a unique identifier of the wireless node carried by the signal;
根据所述信号强度值确定机器人与所述无线节点之间的第二距离;Determining a second distance between the robot and the wireless node based on the signal strength value;
根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。Determining current location information of the robot according to the first distance, the unique identifier, and the second distance.
本发明实施例的第二方面提供了一种机器人,包括:A second aspect of the embodiments of the present invention provides a robot, including:
第一距离确定单元,用于获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述 轮廓信息确定所述机器人与楼道两侧的第一距离;a first distance determining unit, configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
信号获取单元,用于获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;a signal acquiring unit, configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
第二距离确定单元,用于根据所述信号强度值确定机器人与所述无线节点之间的第二距离;a second distance determining unit, configured to determine a second distance between the robot and the wireless node according to the signal strength value;
位置信息确定的单元,用于根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。And a unit for determining location information, configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
本发明实施例的第三方面提供了一种机器人,包括:处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持装置执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。A third aspect of the embodiments of the present invention provides a robot, including: a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storing A computer program supporting a device for performing the above method, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
本发明实施例的第四方面提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。A fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program, the computer program including program instructions, the program instructions causing the processing when executed by a processor The method of the first aspect described above is performed.
有益效果Beneficial effect
本发明实施例与现有技术相比存在的有益效果是:通过获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;根据所述信号强度值确定机器人与所述无线节点之间的第二距离;根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。通过激光扫描装置与无线节点结合,分别确定机器人平行和垂直于楼道的距离,更精确地得到机器人当前的位置信息,尤其当机器人在环境单一的楼道环境中进行时,提升控制机器人行进的精确性。Compared with the prior art, the embodiment of the present invention has the beneficial effects of: determining the first distance between the robot and the two sides of the corridor according to the contour information by acquiring contour information on both sides of the corridor where the robot is currently located; a signal strength value of a signal sent by the wireless node disposed at the end of the corridor, and a unique identifier of the wireless node carried by the signal; and determining a second distance between the robot and the wireless node according to the signal strength value And determining current location information of the robot according to the first distance, the unique identifier, and the second distance. By combining the laser scanning device with the wireless node, the distance between the parallel and perpendicular to the corridor is determined respectively, and the current position information of the robot is obtained more accurately, especially when the robot is carried out in a single corridor environment, the accuracy of controlling the traveling of the robot is improved. .
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本发明一实施例提供的机器人定位的方法的流程图;1 is a flowchart of a method for positioning a robot according to an embodiment of the present invention;
图2是本发明一实施例提供的机器人在楼道中的行走路线的示意图;2 is a schematic diagram of a walking path of a robot in a corridor according to an embodiment of the present invention;
图3是本发明另一实施例提供的机器人定位的方法的流程图;3 is a flowchart of a method for positioning a robot according to another embodiment of the present invention;
图4是本发明一实施例提供的机器人轮廓信息匹配的示意图;4 is a schematic diagram of robot contour information matching according to an embodiment of the present invention;
图5是本发明一实施例提供的确定机器人位置信息的示意图;FIG. 5 is a schematic diagram of determining robot position information according to an embodiment of the present invention; FIG.
图6是本发明一实施例提供的机器人的示意图;FIG. 6 is a schematic diagram of a robot according to an embodiment of the present invention; FIG.
图7是本发明另一实施例提供的机器人的示意图;FIG. 7 is a schematic diagram of a robot according to another embodiment of the present invention; FIG.
图8是本发明再一实施例提供的机器人的示意图。FIG. 8 is a schematic diagram of a robot according to still another embodiment of the present invention.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
实施例1Example 1
参见图1,图1是本发明实施例提供的一种机器人定位的方法的流程图。本实施例中机器人定位的方法的执行主体为机器人。如图1所示的机器人定位的方法可以包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a method for positioning a robot according to an embodiment of the present invention. The execution body of the method for positioning the robot in this embodiment is a robot. The method of robot positioning as shown in FIG. 1 may include the following steps:
S101:获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离。S101: Obtain contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information.
随着科技的进步,生活条件的提高,机器人越来越多地进入日常生活中,替代人们做此类重复地、机械地工作,例如,自主清洁机器人。目前自主小型扫地机越来越普遍,已经可以在居民家中进行全覆盖自主清扫。而目前在公共场所,大型环境下实现自主清扫依然存在许多技术问题。尤其针对环境单一的楼道环境下,如写字楼、宿舍、酒店等,许多定位技术不能很好适应楼道环境,而造成机器人在楼道中的定位不够准确。由于自主清洁机器人需要覆盖整个清扫环境,因此定位精度要求高,现有许多成熟方案可实现。但是在楼道这种单一且特殊环境下,实现全覆盖清扫整个环境,同样需要精度较高的定位。With the advancement of technology and the improvement of living conditions, robots are increasingly entering daily life, replacing people doing such repeated and mechanical work, for example, autonomous cleaning robots. At present, autonomous small-scale sweeping machines are becoming more and more common, and it is now possible to carry out full-coverage self-cleaning in residential homes. At present, there are still many technical problems in the public places and in the large-scale environment to achieve self-cleaning. Especially for a single corridor environment, such as office buildings, dormitories, hotels, etc., many positioning technologies can not adapt well to the corridor environment, and the positioning of the robot in the corridor is not accurate enough. Since the autonomous cleaning robot needs to cover the entire cleaning environment, the positioning accuracy is high, and many mature solutions are available. However, in a single and special environment of the corridor, achieving full coverage to clean the entire environment also requires higher precision positioning.
机器人在楼道中时,获取机器人当前所处位置的楼道两侧的轮廓信息。其中,机器人获取轮廓信息的时刻可以为机器人正在行进时,也可以为机器人静止在某一位置的时候,此处不作限定。When the robot is in the corridor, obtain the contour information on both sides of the corridor where the robot is currently located. The time when the robot acquires the contour information may be when the robot is traveling, or when the robot is stationary at a certain position, which is not limited herein.
在获取到机器人当前所处位置的楼道两侧的轮廓信息之后,根据轮廓信息确定机器人与楼道两侧的第一距离。通过确定机器人与楼道两侧的距离可以使机器人在确定与楼道左右距离的情况下,根据固定的左距离和右距离进行平行于楼道的行进。After obtaining the contour information on both sides of the corridor where the robot is currently located, the first distance between the robot and the two sides of the corridor is determined according to the contour information. By determining the distance between the robot and the two sides of the corridor, the robot can proceed parallel to the corridor according to the fixed left and right distances while determining the left and right distance from the corridor.
示例性的,请一并参阅图2,图2是本发明一实施例提供的机器人在楼道中的行走路线的示意图。当机器人为清洁机器人时,图2中的虚线为清洁机器人的清扫路线,经过多次往返可覆盖整个楼道。假设清洁机器人单次可清扫的宽度为楼道1/4,则需清扫4次即可覆盖清扫整条楼道。而且每一次路线必须如图2中所示,根据所确定的第一距离中的左距离和右距离,以前一次的路线平移机器人的宽度为第二次的清扫路线,且实时保持直到楼道尽头。针对此种情况,清洁机器人必须根据第一距离,在垂直楼道方向位置实时保持精确,方可覆盖整个楼道。For example, please refer to FIG. 2 . FIG. 2 is a schematic diagram of a walking path of a robot in a corridor according to an embodiment of the present invention. When the robot is cleaning the robot, the dotted line in Figure 2 is the cleaning route of the cleaning robot, and the entire corridor can be covered after multiple round trips. Assuming that the width of the cleaning robot can be 1/4 of the corridor, the cleaning of the entire corridor can be covered by cleaning 4 times. Moreover, each route must be as shown in FIG. 2. According to the determined left and right distances in the first distance, the width of the previous route translation robot is the second cleaning route, and is maintained in real time until the end of the corridor. In this case, the cleaning robot must be accurate in real time in the direction of the vertical corridor according to the first distance to cover the entire corridor.
S102:获取设定于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识。S102: Acquire a signal strength value of a signal sent by a wireless node set at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal.
在楼道尽头处设定无线节点,用于向机器人发送信号。由于楼道尽头包括了很多种情况,例如拐弯或者路口等,将无线节点设定与楼道尽头处,用于在机器人行进至该处时,提醒机器人当前的位置情况,以使机器人进行拐弯或者掉头等。A wireless node is set at the end of the corridor to send a signal to the robot. Since the end of the corridor includes many conditions, such as corners or intersections, the wireless node is set at the end of the corridor to remind the robot of the current position when the robot travels there, so that the robot can turn or turn around. .
示例性的,无线节点可以为蓝牙装置、无线保真(WIreless-FIdelity,WI-FI)装置,紫蜂协议(Zigbee)装置或者射频识别(Radio Frequency Identification,RFID)装置等,此处不做限定。For example, the wireless node may be a Bluetooth device, a WI-FI WI-FI device, a Zigbee device, or a Radio Frequency Identification (RFID) device, which is not limited herein. .
需要说明的是,楼道中设定的无线节点的数量可以有一个或者多个,具体的数量根据楼道的具体情况、机器人的配置信息或者用户的需求进行设定。示例性的,若楼道的尽头、拐弯数量总共有5个,则设定5个无线节点,分别位于每个楼道尽头和拐弯处。It should be noted that the number of wireless nodes set in the corridor may be one or more, and the specific number is set according to the specific conditions of the corridor, the configuration information of the robot, or the needs of the user. Except for the total number of corners and corners of the corridor, there are five wireless nodes, which are located at the end of each corridor and at the corner.
由于楼道中无线节点的数量可能有多个,机器人所接受到的信号可能来自多个无线节点,并不能确定所接收到信号的来源。因此,若楼道中设定的无线节点的数量大于1个时,对所有的无线节点设定唯一标识,并在向机器人发送信号时,同时携带自己的唯一标识。Since there may be more than one wireless node in the corridor, the signals received by the robot may come from multiple wireless nodes and the source of the received signal cannot be determined. Therefore, if the number of wireless nodes set in the corridor is greater than one, a unique identifier is set for all wireless nodes, and when transmitting signals to the robot, the unique identifier is carried at the same time.
由于无线节点发送信号的距离有限,且距离无线节点越远,接收到的信号强度值越小。机器人在不同的位置以不同的信号强度值获取到无线节点发送的信号,以及该无线节点的唯一标识,以使机器人确定自己当前的所处的区域。Since the wireless node transmits a signal with a limited distance and the further away from the wireless node, the received signal strength value is smaller. The robot acquires the signal transmitted by the wireless node with different signal strength values at different positions, and the unique identifier of the wireless node, so that the robot determines the current region where it is located.
S103:根据所述信号强度值确定机器人与所述无线节点之间的第二距离。S103: Determine a second distance between the robot and the wireless node according to the signal strength value.
由于无线节点发送信号的距离有限,且距离无线节点越远,接收到的信号强度值越小。因此,通过信号强度值便可以确定机器人与无线节点之间的第二距离。Since the wireless node transmits a signal with a limited distance and the further away from the wireless node, the received signal strength value is smaller. Therefore, the signal strength value can be used to determine the second distance between the robot and the wireless node.
示例性的,在一实施方式中,可以通过公式(1)计算机器人与无线节点之间的第二 距离:Illustratively, in an embodiment, the second distance between the robot and the wireless node can be calculated by equation (1):
d=10 (|R|-A)/10n          (1) d=10 (|R|-A)/10n (1)
其中,d表示第二距离;R表示机器人所接收到的信号的信号强度值;A表示无线节点与机器人相隔1米时的信号强度;n表示环境衰减因子。需要说明的是,由于所处环境不同,每个无线节点对应参数值都不一样。为了计算的精确性,公式里的每项参数都应该在实际的应用之前实验获得。Where d represents the second distance; R represents the signal strength value of the signal received by the robot; A represents the signal strength when the wireless node is separated from the robot by 1 meter; and n represents the environmental attenuation factor. It should be noted that the parameters of the corresponding parameters of each wireless node are different due to different environments. For the accuracy of the calculation, each parameter in the formula should be experimentally obtained before the actual application.
由于无线节点安装在楼道尽头,因此通过确定机器人与无线节点之间的第二距离,便可以确定机器人距离楼道尽头的距离。Since the wireless node is installed at the end of the corridor, by determining the second distance between the robot and the wireless node, the distance of the robot from the end of the corridor can be determined.
在另一实施方式中,机器人中预先存储了距离值与信号强度值之间的预设对应关系,因此,机器人在获取到无线节点发送的信号的信号强度值时,可以根据距离值与信号强度值之间的预设对应关系,确定当前接收到的信号的信号强度值所对应的距离值,从而确定机器人与无线节点之间的第二距离。In another embodiment, the preset correspondence between the distance value and the signal strength value is pre-stored in the robot. Therefore, when acquiring the signal strength value of the signal sent by the wireless node, the robot may according to the distance value and the signal strength. A preset correspondence between the values determines a distance value corresponding to a signal strength value of the currently received signal, thereby determining a second distance between the robot and the wireless node.
进一步的,通过设定距离阈值,用于在第二距离小于该距离阈值时,控制机器人进行相应的操作。例如,设置距离阈值为0.5米,在机器人当前的第二距离小于0.5米时,进行掉头,以避免机器人在行进时发生碰撞,保证机器人在进行时的安全性。Further, by setting a distance threshold, the control robot performs a corresponding operation when the second distance is less than the distance threshold. For example, if the distance threshold is set to 0.5 m, when the current second distance of the robot is less than 0.5 m, the U-turn is performed to avoid the collision of the robot while traveling, and the safety of the robot during the operation is ensured.
S104:根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。S104: Determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
在确定机器人与楼道两侧的第一距离和与楼道尽头的第二距离之后,根据唯一标识确定无线节点的节点位置,根据节点位置确定机器人当前所处的区域;根据第一距离,确定机器人垂直于楼道的位置信息;根据第二距离,确定机器人平行于楼道的位置信息;根据机器人垂直于楼道的位置信息和机器人平行于楼道的位置信息,确定机器人当前的位置信息。After determining the first distance between the robot and the two sides of the corridor and the second distance from the end of the corridor, determining the node position of the wireless node according to the unique identifier, determining the current region of the robot according to the node position; determining the vertical of the robot according to the first distance The position information of the corridor; determining the position information of the robot parallel to the corridor according to the second distance; determining the current position information of the robot according to the position information of the robot perpendicular to the corridor and the position information of the robot parallel to the corridor.
具体的,机器人根据获取到的唯一标识确定是哪个无线节点发送的,便可确定该节点的节点位置,通过确定该无线节点的节点位置,便可以根据该无线节点的通信范围确定机器人当前所处的区域,以防止在同时接收多个无线节点发送的信号时,而确定出多个位置所造成的位置混淆。再根据第一距离中的左距离和右距离,确定机器人与楼道两边的距离,即机器人垂直于楼道的位置信息。根据第二距离确定机器人无线节点的距离,即机器人平行于楼道的位置信息。最后根据机器人垂直于楼道的位置信息和平行于楼道的位置信息,确定机器人当前的位置信息。Specifically, the robot determines, according to the obtained unique identifier, which wireless node sends the node location, and determines the node location of the node. By determining the node location of the wireless node, the robot can determine the current location of the robot according to the communication range of the wireless node. The area to prevent location confusion caused by multiple locations when simultaneously receiving signals transmitted by multiple wireless nodes. Then, according to the left distance and the right distance in the first distance, the distance between the robot and the two sides of the corridor is determined, that is, the position information of the robot perpendicular to the corridor. The distance of the robot wireless node is determined according to the second distance, that is, the position information of the robot parallel to the corridor. Finally, the current position information of the robot is determined according to the position information of the robot perpendicular to the corridor and the position information parallel to the corridor.
可选的,在步骤S104之后,还可以包括:Optionally, after step S104, the method may further include:
将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状;Matching the contour information with a preset map to determine a shape of the corridor at the current position of the robot;
若根据所述楼道形状确定所述机器人当前位于楼道尽头,则根据所述第一距离和所述信号强度值进行掉头;If it is determined according to the shape of the corridor that the robot is currently located at the end of the corridor, the U-turn is performed according to the first distance and the signal strength value;
若根据所述楼道形状确定所述机器人当前位于楼道拐角,则根据所述第一距离和所述信号强度值进行转弯。If it is determined according to the shape of the corridor that the robot is currently located at a corner of the corridor, the turning is performed according to the first distance and the signal strength value.
请一并参阅图2,在确定好机器人当前的位置信息之后,通过将轮廓信息与预设的地图信息进行匹配,以确定机器人当前位置处的楼道形状。其中,楼道形状包括L型、十字型、丁字型楼道或者楼道尽头等,此处不做限定。Referring to FIG. 2 together, after determining the current position information of the robot, the contour information is matched with the preset map information to determine the shape of the corridor at the current position of the robot. Among them, the shape of the corridor includes L-shaped, cross-shaped, T-shaped corridors or the end of the corridor, etc., and is not limited herein.
若根据楼道形状确定机器人当前位于楼道尽头,说明机器人需要进行掉头来避免碰撞。由于第一距离包括机器人与楼道墙壁两侧的左距离和右距离,根据机器人掉头时所需弧度半径的大小,控制机器人掉头时的左距离和右距离的变化,根据信号强度值确定机器人在掉头时与前方墙壁的距离,这样便可以控制机器人在横向和纵向上进行精准的掉头,防止机器人与前方墙壁发生碰撞;同理的,若根据楼道形状确定机器人当前位于楼道拐角,则根据第一距离和信号强度值进行转弯。If it is determined according to the shape of the corridor that the robot is currently at the end of the corridor, the robot needs to make a U-turn to avoid collision. Since the first distance includes the left and right distances of the robot and the sides of the corridor wall, according to the radius of the arc required by the robot to turn the head, the left and right distances of the robot when the U-turn is controlled are controlled, and the robot is determined to turn around according to the signal strength value. The distance from the front wall, so that the robot can control the U-turn in the horizontal and vertical directions to prevent the robot from colliding with the front wall. Similarly, if the robot is currently located at the corner of the corridor according to the shape of the corridor, according to the first distance And the signal strength value is turned.
可选地,在将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状之后,还可以包括:若通过所述轮廓信息无法获取机器人准确位置,则根据所述第一距离平行于所述楼道直线行进。Optionally, after the contour information is matched with the preset map, and determining the shape of the corridor at the current position of the robot, the method may further include: if the accurate position of the robot cannot be obtained by using the contour information, according to the A distance travels straight parallel to the corridor.
若无法确定机器人平行于楼道的准确位置,则说明机器人行进的前方没有出现L型、十字型、丁字型楼道或者楼道尽头等障碍物,则根据第一距离平行于楼道直线行进,通过这种方式,保证机器人行进过程各种的顺畅,提高机器人行进的效率。If it is impossible to determine the exact position of the robot parallel to the corridor, it means that there is no obstacle such as L-shaped, cross-shaped, T-shaped corridor or the end of the corridor in front of the robot, and then the straight line runs parallel to the corridor according to the first distance. To ensure the smooth progress of the robot's travel process and improve the efficiency of the robot's travel.
上述方案,通过获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;根据所述信号强度值确定机器人与所述无线节点之间的第二距离;根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。在本发明实施例中,通过激光扫描装置与无线节点结合的方式,分别确定机器人平行和垂直于楼道的距离,并根据所确定的距离更精确地得到机器人当前的位置信息,尤其当机器人在环境单一的楼道环境中进行时,提升控制机器人行进的精确性。In the above solution, by obtaining contour information on both sides of the corridor where the robot is currently located, determining a first distance between the robot and the two sides of the corridor according to the contour information; and acquiring a signal of a signal sent by the wireless node disposed at the end of the corridor An intensity value, and a unique identifier of the wireless node carried by the signal; determining a second distance between the robot and the wireless node according to the signal strength value; according to the first distance, the unique identifier, and The second distance determines current location information of the robot. In the embodiment of the present invention, the distance between the parallel and perpendicular to the corridor is determined by the laser scanning device and the wireless node, and the current position information of the robot is obtained more accurately according to the determined distance, especially when the robot is in the environment. Improves the accuracy of the control robot's travel while in a single corridor environment.
实施例2Example 2
参见图3,图3是本发明另一实施例提供的一种机器人定位的方法的流程图。本实施 例中机器人定位的方法的执行主体为机器人。如图3所示的机器人定位的方法可以包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of a method for positioning a robot according to another embodiment of the present invention. The execution subject of the method of robot positioning in this embodiment is a robot. The method of robot positioning as shown in FIG. 3 may include the following steps:
S301:通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息。S301: Scan the radar by the laser scanning radar disposed on the robot to scan contour information on both sides of the corridor where the robot is currently located.
在机器人上预先设置激光扫描雷达,用于扫描机器人当前所处位置的楼道两侧的轮廓信息。本实施例中的激光扫描雷达以激光作为信号源,由激光器发射出脉冲激光,打到机器人周围的墙壁上引起散射,一部分光波会反射到激光扫描雷达的接收器上,脉冲激光不断地扫描目标物,就可以得到目标物上全部目标点的数据,用此数据进行成像处理后,就可得到精确的楼道墙壁两侧的轮廓信息。A laser scanning radar is preset on the robot for scanning contour information on both sides of the corridor where the robot is currently located. The laser scanning radar in this embodiment uses a laser as a signal source, and a laser emits a pulsed laser to hit a wall around the robot to cause scattering. A part of the light wave is reflected to the receiver of the laser scanning radar, and the pulse laser continuously scans the target. The object can obtain the data of all the target points on the target object, and after using the data for imaging processing, the contour information on both sides of the corridor wall can be obtained accurately.
S302:计算每个粒子在预设地图中的匹配可信度。S302: Calculate the matching credibility of each particle in the preset map.
机器人在获取到当前所处位置的楼道两侧的轮廓信息之后,确定每个粒子的位姿。其中,位姿包括粒子的横坐标值、纵坐标值以及航向角。通过每个粒子对应的轮廓信息中的横坐标值、纵坐标值,依据轮廓信息与预设地图计算每个粒子的匹配可信度。After acquiring the contour information on both sides of the corridor at the current location, the robot determines the pose of each particle. Among them, the pose includes the abscissa value, the ordinate value and the heading angle of the particle. The matching credibility of each particle is calculated according to the contour information and the preset map by the abscissa value and the ordinate value in the contour information corresponding to each particle.
具体的,步骤S302中计算匹配可信度可通过以下方式计算:Specifically, calculating the matching credibility in step S302 can be calculated in the following manner:
根据公式(2)计算每个粒子在预设地图中的匹配可信度:Calculate the matching credibility of each particle in the preset map according to formula (2):
Figure PCTCN2018080659-appb-000001
Figure PCTCN2018080659-appb-000001
其中,R v表示每个粒子在预设地图中的匹配可信度;N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的障碍点之间的映射像素值。 Where R v represents the matching credibility of each particle in the preset map; N represents the number of laser beams; (x i , y i ) represents the coordinates of the i-th laser beam; P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
请一并参阅图4,图4是本发明一实施例提供的机器人轮廓信息匹配的示意图。在楼道的某个角度建立坐标轴,横轴x轴为平行于楼道的方向,纵轴y轴为垂直于楼道的方向,楼道墙壁的左边为墙壁A面,右边为墙壁B面。图中的虚线表示机器人上的激光扫描雷达可获取的激光轮廓范围,在轮廓信息中随机选取一定数目粒子作为目标粒子,数目为N,目标粒子的位姿分别为(x 1,y 11),(x 2,y 22),…,(x N,y NN),其中x 1,x 2,…,x N表示目标粒子在平行于楼道方向上的值,y 1,y 2,…,y N表示目标粒子在垂直于楼道方向上的值,θ 12,…,θ N表示目标粒子与平行于楼道方向上的夹角,可通过平行于楼道方向上的值与垂直于楼道方向上的值的正切值计算出来,也可以通过激光扫描雷达获取到。 Please refer to FIG. 4, which is a schematic diagram of robot contour information matching according to an embodiment of the present invention. The coordinate axis is established at an angle of the corridor. The x-axis of the horizontal axis is parallel to the direction of the corridor, and the y-axis of the vertical axis is perpendicular to the direction of the corridor. The left side of the corridor wall is the wall A side, and the right side is the wall B surface. The dotted line in the figure indicates the laser contour range that can be acquired by the laser scanning radar on the robot. A certain number of particles are randomly selected as the target particles in the contour information, the number is N, and the poses of the target particles are respectively (x 1 , y 1 , θ 1 ), (x 2 , y 2 , θ 2 ), ..., (x N , y N , θ N ), where x 1 , x 2 , ..., x N represent values of the target particles in a direction parallel to the corridor, y 1 , y 2 ,...,y N represents the value of the target particle in the direction perpendicular to the corridor, θ 1 , θ 2 ,..., θ N represents the angle between the target particle and the direction parallel to the corridor, which can be parallel to the corridor The value in the direction is calculated from the tangent of the value perpendicular to the direction of the corridor, and can also be obtained by laser scanning radar.
在轮廓信息中的粒子位姿的最大误差范围内,用当前激光扫描雷达获取的轮过信息与 预设栅格地图进行基于蒙特卡洛方法的图像匹配,即采用粒子滤波的方法获取粒子的最佳位姿(x,y,θ),及其与预设地图中的粒子之间的匹配可信度。In the maximum error range of the particle pose in the contour information, the image matching based on the Monte Carlo method is performed by using the round-trip information acquired by the current laser scanning radar and the preset raster map, that is, the particle filtering method is used to obtain the most particles. The good pose (x, y, θ) and its matching credibility with the particles in the preset map.
具体的,基于当前轮廓信息中目标粒子的位姿,将轮廓信息映射至预设地图中,计算N个目标粒子的位姿在原有栅格地图上映射像素和,并进行归一化获得可信度参数dis_temp。即,通过公式(3)计算可信度参数dis_temp:Specifically, based on the pose of the target particle in the current contour information, the contour information is mapped to the preset map, and the pose of the N target particles is calculated to map the pixel sum on the original raster map, and normalized to obtain credibility. Degree parameter dis_temp. That is, the credibility parameter dis_temp is calculated by the formula (3):
Figure PCTCN2018080659-appb-000002
Figure PCTCN2018080659-appb-000002
其中,N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的障碍点之间的映射像素值。 Wherein N represents the number of laser beams; (x i , y i ) represents the coordinates of the ith laser beam; P(x i , y i ) represents the coordinates of the contour information and the preset map (x) i , y i ) The mapped pixel value between the obstacle points.
假设预设地图中黑色像素为障碍物,像素值为0;白色像素为无障碍物,像素值为255,故dis_temp范围为0~255。由于在二维栅格地图中,障碍像素值为0,故dis_temp越小则表明位姿越精确。为适应匹配可信度意义,通过公式(4)计算匹配可信度:Assume that the black pixel in the preset map is an obstacle, the pixel value is 0; the white pixel is an obstacle-free object, and the pixel value is 255, so the range of dis_temp is 0-255. Since the obstacle pixel value is 0 in the two-dimensional raster map, the smaller the dis_temp is, the more accurate the pose is. In order to adapt to the meaning of matching credibility, the matching credibility is calculated by formula (4):
Figure PCTCN2018080659-appb-000003
Figure PCTCN2018080659-appb-000003
故匹配可信度越大,表明该粒子的位姿越精确。Therefore, the greater the confidence of the match, the more accurate the pose of the particle.
S303:将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标。S303: Identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot.
通过计算所有粒子的匹配可信度,在目标粒子中,确定最大匹配可信度对应的粒子为最优粒子,最优粒子对应的位姿为(x,y,θ),即最佳位姿,将该位姿识别为机器人的坐标。By calculating the matching credibility of all particles, in the target particle, the particle corresponding to the maximum matching credibility is determined as the optimal particle, and the corresponding pose of the optimal particle is (x, y, θ), that is, the optimal pose The pose is recognized as the coordinates of the robot.
S304:根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。S304: Calculate a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the width of the corridor.
请一并参见图5,图5是本发明一实施例提供的确定机器人位置信息的示意图。综合图4和图5可知,最佳位姿(x,y,θ)中对应的y值即为机器人的纵坐标值,即为图5中的d 2,也是第一距离中的右距离。在确定出右距离之后,根据右距离和楼道的宽度,计算出第一距离中的左距离d 1Referring to FIG. 5, FIG. 5 is a schematic diagram of determining robot position information according to an embodiment of the present invention. 4 and FIG. 5, the corresponding y value in the optimal pose (x, y, θ) is the ordinate value of the robot, that is, d 2 in FIG. 5 , which is also the right distance in the first distance. After the right distance is determined, the left distance d 1 in the first distance is calculated from the right distance and the width of the corridor.
在确定出机器人当前位置处第一距离中的左距离和右距离之后,便可以确定机器人当前的垂直于楼道的距离,当机器人处于平行于楼道直线行走的状态时,只需要控制机器人保持左距离和右距离不变,便可以控制机器人保持精确地直线行走路线进行平行楼道的行进,该路线即为图5中平行楼道A面和B面的直线L。After determining the left and right distances in the first distance at the current position of the robot, the robot's current distance perpendicular to the corridor can be determined. When the robot is in a straight line parallel to the corridor, only the robot must be controlled to maintain the left distance. And the right distance is unchanged, then the robot can be controlled to maintain a precise straight walking route for the parallel corridor, which is the straight line L of the A and B sides of the parallel corridor in FIG.
这种机器人的控制方法在楼道清洁机器人中尤为重要,可以使机器人在清洁工作中保 持精准的路线行进,保证楼道中的每一块地面都可以被清扫到。并且,若是控制机器人进行有效的转弯和掉头,可以实现用最短的时间完成清洁任务,避免重复清洁的情况发生,进而提升清洁机器人的工作效率,提升机器人能源的利用率。This robotic control method is especially important in corridor cleaning robots, which allows the robot to maintain precise route travel during cleaning operations, ensuring that every floor in the corridor can be cleaned. Moreover, if the control robot performs effective turning and U-turn, the cleaning task can be completed in the shortest time, avoiding repeated cleaning, thereby improving the working efficiency of the cleaning robot and improving the utilization rate of the robot energy.
上述方案,通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;计算每个粒子在预设地图中的匹配可信度;将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。在本发明实施例中,通过根据激光扫描雷达获取到的楼道墙壁两侧的轮廓信息中的粒子与预设地图中的粒子,计算两者之间的匹配可信度,进而根据匹配可信度最高的粒子的位姿确定机器人与楼道两侧的左距离和右距离,提升了机器人与楼道两侧距离获取的精确度,保证了机器人定位的准确性和可靠性。In the above solution, the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability The coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor. In the embodiment of the present invention, the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability. The pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
实施例3Example 3
参见图6,图6是本发明实施例提供的一种机器人的示意图。本实施例的机器人600包括的各单元用于执行图1对应的实施例中的各步骤,具体请参阅图1及图1对应的实施例中的相关描述,此处不赘述。本实施例的机器人600包括第一距离确定单元601、信号获取单元602、第二距离确定单元603及位置信息确定单元604。Referring to FIG. 6, FIG. 6 is a schematic diagram of a robot according to an embodiment of the present invention. The units included in the robot 600 of the present embodiment are used to perform the steps in the embodiment corresponding to FIG. 1. For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. The robot 600 of the present embodiment includes a first distance determining unit 601, a signal acquiring unit 602, a second distance determining unit 603, and a position information determining unit 604.
第一距离确定单元601,用于获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;The first distance determining unit 601 is configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
信号获取单元602,用于获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;The signal acquiring unit 602 is configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
第二距离确定单元603,用于根据所述信号强度值确定机器人与所述无线节点之间的第二距离;a second distance determining unit 603, configured to determine a second distance between the robot and the wireless node according to the signal strength value;
位置信息确定单元604,用于根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。The location information determining unit 604 is configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
具体的,位置信息确定单元604还包括:Specifically, the location information determining unit 604 further includes:
区域确定单元,用于根据所述唯一标识确定所述无线节点的节点位置,根据所述节点位置确定所述机器人当前所处的区域;a region determining unit, configured to determine a node location of the wireless node according to the unique identifier, and determine an area where the robot is currently located according to the node location;
横纵距离确定单元,用于根据所述第一距离,确定所述机器人垂直于楼道的位置信息;根据所述第二距离,确定所述机器人平行于楼道的位置信息;a horizontal and vertical distance determining unit, configured to determine position information of the robot perpendicular to the corridor according to the first distance; and determine position information of the robot parallel to the corridor according to the second distance;
位置确定单元,用于根据所述机器人垂直于楼道的位置信息和所述机器人平行于楼道的位置信息,确定所述机器人当前的位置信息。a position determining unit, configured to determine current position information of the robot according to position information of the robot perpendicular to the corridor and position information of the robot parallel to the corridor.
具体的,所述机器人还包括:Specifically, the robot further includes:
轮廓匹配单元,用于将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状;a contour matching unit, configured to match the contour information with a preset map, and determine a shape of a corridor at a current position of the robot;
掉头控制单元,用于若根据所述楼道形状确定所述机器人当前位于楼道尽头,则根据所述第一距离和所述信号强度值进行掉头;a U-turn control unit, configured to: if the robot is currently located at the end of the corridor according to the shape of the corridor, perform a U-turn according to the first distance and the signal strength value;
转弯控制单元,用于若根据所述楼道形状确定所述机器人当前位于楼道拐角,则根据所述第一距离和所述信号强度值进行转弯。And a turning control unit, configured to perform turning according to the first distance and the signal strength value if it is determined that the robot is currently located at a corner of the corridor according to the shape of the corridor.
直线行进单元,用于若通过所述轮廓信息无法获取机器人准确位置,则根据所述第一距离平行于所述楼道直线行进。The straight line traveling unit is configured to travel along a straight line parallel to the corridor according to the first distance if the accurate position of the robot cannot be acquired by the contour information.
上述方案,通过获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;根据所述信号强度值确定机器人与所述无线节点之间的第二距离;根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。在本发明实施例中,通过激光扫描装置与无线节点结合的方式,分别确定机器人平行和垂直于楼道的距离,并根据所确定的距离更精确地得到机器人当前的位置信息,尤其当机器人在环境单一的楼道环境中进行时,提升机器人行进的精确性。In the above solution, by obtaining contour information on both sides of the corridor where the robot is currently located, determining a first distance between the robot and the two sides of the corridor according to the contour information; and acquiring a signal of a signal sent by the wireless node disposed at the end of the corridor An intensity value, and a unique identifier of the wireless node carried by the signal; determining a second distance between the robot and the wireless node according to the signal strength value; according to the first distance, the unique identifier, and The second distance determines current location information of the robot. In the embodiment of the present invention, the distance between the parallel and perpendicular to the corridor is determined by the laser scanning device and the wireless node, and the current position information of the robot is obtained more accurately according to the determined distance, especially when the robot is in the environment. Improve the accuracy of robot travel while in a single corridor environment.
实施例4Example 4
参见图7,图7是本发明实施例提供的一种机器人的示意图。本实施例的机器人700包括的各单元用于执行图2对应的实施例中的各步骤,具体请参阅图2及图2对应的实施例中的相关描述,此处不赘述。本实施例的机器人700包括轮廓获取单元701、参数计算单元702、坐标确定单元703及距离确定单元704。Referring to FIG. 7, FIG. 7 is a schematic diagram of a robot according to an embodiment of the present invention. The units included in the robot 700 of the present embodiment are used to perform the steps in the embodiment corresponding to FIG. 2 . For details, please refer to the related description in the embodiment corresponding to FIG. 2 and FIG. 2 , and details are not described herein. The robot 700 of the present embodiment includes a contour acquiring unit 701, a parameter calculating unit 702, a coordinate determining unit 703, and a distance determining unit 704.
轮廓获取单元701,用于通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;a contour acquiring unit 701, configured to scan, by using a laser scanning radar disposed on the robot, contour information on both sides of the corridor where the robot is currently located;
参数计算单元702,用于计算每个粒子在预设地图中的匹配可信度;a parameter calculation unit 702, configured to calculate a matching credibility of each particle in a preset map;
坐标确定单元703,用于将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;a coordinate determining unit 703, configured to identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
距离确定单元704,用于根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。The distance determining unit 704 is configured to calculate a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the corridor width.
具体的,参数计算单元702还用于根据
Figure PCTCN2018080659-appb-000004
计算每个粒子在预设地图中的匹配可信度;
Specifically, the parameter calculation unit 702 is further configured to
Figure PCTCN2018080659-appb-000004
Calculate the matching credibility of each particle in the preset map;
其中,R v表示每个粒子在预设地图中的匹配可信度;N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的障碍点之间的映射像素值。 Where R v represents the matching credibility of each particle in the preset map; N represents the number of laser beams; (x i , y i ) represents the coordinates of the i-th laser beam; P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
上述方案,通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;计算每个粒子在预设地图中的匹配可信度;将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。在本发明实施例中,通过根据激光扫描雷达获取到的楼道墙壁两侧的轮廓信息中的粒子与预设地图中的粒子,计算两者之间的匹配可信度,进而根据匹配可信度最高的粒子的位姿确定机器人与楼道两侧的左距离和右距离,提升了机器人与楼道两侧距离获取的精确度,保证了机器人定位的准确性和可靠性。In the above solution, the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability The coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor. In the embodiment of the present invention, the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability. The pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be construed as limiting the implementation of the embodiments of the present invention.
实施例5Example 5
参见图8,图8是本发明再一实施例提供的一种机器人的示意图。如图8所示的本实施例中的机器人800可以包括:处理器801、存储器802以及存储在存储器802中并可在处理器801上运行的计算机程序803。处理器801执行计算机程序803时实现上述各个用于机器人定位的方法实施例中的步骤。存储器802用于存储计算机程序,所述计算机程序包括程序指令。处理器801用于执行存储器802存储的程序指令。其中,处理器801被配置用于调用所述程序指令执行以下操作:Referring to FIG. 8, FIG. 8 is a schematic diagram of a robot according to still another embodiment of the present invention. The robot 800 in this embodiment as shown in FIG. 8 may include a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and operable on the processor 801. The processor 801, when executing the computer program 803, implements the steps in the various method embodiments described above for robot positioning. Memory 802 is used to store computer programs, including program instructions. The processor 801 is configured to execute program instructions stored by the memory 802. The processor 801 is configured to invoke the program instruction to perform the following operations:
处理器801用于获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;The processor 801 is configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
处理器801还用于获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;The processor 801 is further configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
处理器801还用于根据所述信号强度值确定机器人与所述无线节点之间的第二距离;The processor 801 is further configured to determine a second distance between the robot and the wireless node according to the signal strength value;
处理器801还用于根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。The processor 801 is further configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
处理器801具体用于将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状;The processor 801 is specifically configured to match the contour information with a preset map to determine a shape of a corridor at a current location of the robot;
处理器801具体用于若根据所述楼道形状确定所述机器人当前位于楼道尽头,则根据所述第一距离和所述信号强度值进行掉头;The processor 801 is specifically configured to: if the robot is currently located at the end of the corridor according to the shape of the corridor, perform a U-turn according to the first distance and the signal strength value;
处理器801具体用于若根据所述楼道形状确定所述机器人当前位于楼道拐角,则根据所述第一距离和所述信号强度值进行转弯。The processor 801 is specifically configured to: if the robot is currently located at a corner of the corridor according to the shape of the corridor, perform a turn according to the first distance and the signal strength value.
处理器801具体用于通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;The processor 801 is specifically configured to scan, by using a laser scanning radar disposed on the robot, contour information on both sides of the corridor where the robot is currently located;
处理器801具体用于计算每个粒子在预设地图中的匹配可信度;The processor 801 is specifically configured to calculate a matching credibility of each particle in a preset map.
处理器801具体用于将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;The processor 801 is specifically configured to identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
处理器801具体用于根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。The processor 801 is specifically configured to calculate a first distance between the robot and two sides of the corridor according to the coordinates of the robot and the width of the corridor.
处理器801具体用于根据
Figure PCTCN2018080659-appb-000005
计算每个粒子在预设地图中的匹配可信度;
The processor 801 is specifically configured to
Figure PCTCN2018080659-appb-000005
Calculate the matching credibility of each particle in the preset map;
其中,R v表示每个粒子在预设地图中的匹配可信度;N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的障碍点之间的映射像素值。 Where R v represents the matching credibility of each particle in the preset map; N represents the number of laser beams; (x i , y i ) represents the coordinates of the i-th laser beam; P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
处理器801具体用于根据所述唯一标识确定所述无线节点的节点位置,根据所述节点位置确定所述机器人当前所处的区域;The processor 801 is specifically configured to determine, according to the unique identifier, a node location of the wireless node, and determine, according to the node location, an area where the robot is currently located;
处理器801具体用于根据所述第一距离,确定所述机器人垂直于楼道的位置信息;根据所述第二距离,确定所述机器人平行于楼道的位置信息;The processor 801 is specifically configured to determine location information of the robot perpendicular to the corridor according to the first distance, and determine location information of the robot parallel to the corridor according to the second distance;
处理器801具体用于根据所述机器人垂直于楼道的位置信息和所述机器人平行于楼道的位置信息,确定所述机器人当前的位置信息。The processor 801 is specifically configured to determine current position information of the robot according to position information of the robot perpendicular to the corridor and position information of the robot parallel to the corridor.
处理器801具体用于若通过所述轮廓信息无法获取机器人准确位置,则根据所述第一距离平行于所述楼道直线行进。The processor 801 is specifically configured to: if the accurate position of the robot cannot be acquired by using the contour information, proceed according to the first distance and parallel to the straight line of the corridor.
上述方案,通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;计算每个粒子在预设地图中的匹配可信度;将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;根据所述机器人的坐标与楼道宽度 计算所述机器人与楼道两侧的第一距离。在本发明实施例中,通过根据激光扫描雷达获取到的楼道墙壁两侧的轮廓信息中的粒子与预设地图中的粒子,计算两者之间的匹配可信度,进而根据匹配可信度最高的粒子的位姿确定机器人与楼道两侧的左距离和右距离,提升了机器人与楼道两侧距离获取的精确度,保证了机器人定位的准确性和可靠性。In the above solution, the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability The coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor. In the embodiment of the present invention, the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability. The pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
应当理解,在本发明实施例中,所称处理器801可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器802可以包括只读存储器和随机存取存储器,并向处理器801提供指令和数据。存储器802的一部分还可以包括非易失性随机存取存储器。例如,存储器802还可以存储设备类型的信息。The memory 802 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 802 may also include a non-volatile random access memory. For example, the memory 802 can also store information of the device type.
具体实现中,本发明实施例中所描述的处理器801、存储器802、计算机程序803可执行本发明实施例提供的机器人定位的方法的第一实施例和第二实施例中所描述的实现方式,也可执行本发明实施例所描述的机器人的实现方式,在此不再赘述。In a specific implementation, the processor 801, the memory 802, and the computer program 803 described in the embodiments of the present invention may implement the first embodiment and the implementation manner described in the second embodiment of the method for positioning a robot provided by an embodiment of the present invention. The implementation of the robot described in the embodiment of the present invention may also be implemented, and details are not described herein again.
在本发明的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时实现:In another embodiment of the present invention, a computer readable storage medium is stored, the computer readable storage medium storing a computer program comprising program instructions, the program instructions being implemented by a processor to:
获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;Obtaining contour information on both sides of the corridor where the robot is currently located, and determining a first distance between the robot and the two sides of the corridor according to the contour information;
获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;Obtaining a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and acquiring a unique identifier of the wireless node carried by the signal;
根据所述信号强度值确定机器人与所述无线节点之间的第二距离;Determining a second distance between the robot and the wireless node based on the signal strength value;
根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。Determining current location information of the robot according to the first distance, the unique identifier, and the second distance.
进一步的,所述计算机程序被处理器执行时还实现:Further, when the computer program is executed by the processor, it is further implemented:
将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状;Matching the contour information with a preset map to determine a shape of the corridor at the current position of the robot;
若根据所述楼道形状确定所述机器人当前位于楼道尽头,则根据所述第一距离和所述信号强度值进行掉头;If it is determined according to the shape of the corridor that the robot is currently located at the end of the corridor, the U-turn is performed according to the first distance and the signal strength value;
若根据所述楼道形状确定所述机器人当前位于楼道拐角,则根据所述第一距离和所述信号强度值进行转弯。If it is determined according to the shape of the corridor that the robot is currently located at a corner of the corridor, the turning is performed according to the first distance and the signal strength value.
进一步的,所述计算机程序被处理器执行时还实现:Further, when the computer program is executed by the processor, it is further implemented:
通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;Scanning radar on the robot to scan the contour information on both sides of the corridor where the robot is currently located;
计算每个粒子在预设地图中的匹配可信度;Calculate the matching credibility of each particle in the preset map;
将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;Identifying coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。Calculating a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the width of the corridor.
进一步的,所述计算机程序被处理器执行时还实现:Further, when the computer program is executed by the processor, it is further implemented:
根据
Figure PCTCN2018080659-appb-000006
计算每个粒子在预设地图中的匹配可信度;
according to
Figure PCTCN2018080659-appb-000006
Calculate the matching credibility of each particle in the preset map;
其中,R v表示每个粒子在预设地图中的匹配可信度;N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的障碍点之间的映射像素值。 Where R v represents the matching credibility of each particle in the preset map; N represents the number of laser beams; (x i , y i ) represents the coordinates of the i-th laser beam; P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
进一步的,所述计算机程序被处理器执行时还实现:Further, when the computer program is executed by the processor, it is further implemented:
根据所述唯一标识确定所述无线节点的节点位置,根据所述节点位置确定所述机器人当前所处的区域;Determining, according to the unique identifier, a node location of the wireless node, and determining, according to the node location, an area where the robot is currently located;
根据所述第一距离,确定所述机器人垂直于楼道的位置信息;根据所述第二距离,确定所述机器人平行于楼道的位置信息;Determining, according to the first distance, position information of the robot perpendicular to the corridor; determining, according to the second distance, position information of the robot parallel to the corridor;
根据所述机器人垂直于楼道的位置信息和所述机器人平行于楼道的位置信息,确定所述机器人当前的位置信息。The current position information of the robot is determined according to the position information of the robot perpendicular to the corridor and the position information of the robot parallel to the corridor.
进一步的,所述计算机程序被处理器执行时还实现:Further, when the computer program is executed by the processor, it is further implemented:
若通过所述轮廓信息无法获取机器人准确位置,则根据所述第一距离平行于所述楼道直线行进。If the accurate position of the robot cannot be acquired by the contour information, the first distance is linearly parallel to the corridor according to the first distance.
上述方案,通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;计算每个粒子在预设地图中的匹配可信度;将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。在本发明实施例中,通过根据激光扫描雷达获取到的楼道墙壁两侧的轮廓信息中的粒子与预设地图中的粒子,计算两者之间的匹配可信度,进而根据匹配可信度最高的粒子的位姿确定机器人与楼道两侧的左距离和右距离,提升了机器人与楼道两侧距离获取的精确度,保证了机器人定位的准确性和可靠性。In the above solution, the laser scanning radar disposed on the robot scans the contour information on both sides of the corridor where the robot is currently located; calculates the matching credibility of each particle in the preset map; corresponding to the highest matching reliability The coordinates of the particles in the contour information are identified as the coordinates of the robot; and the first distance between the robot and the two sides of the corridor is calculated according to the coordinates of the robot and the width of the corridor. In the embodiment of the present invention, the matching credibility between the two is calculated according to the particles in the contour information on both sides of the corridor wall acquired by the laser scanning radar and the particles in the preset map, and then the matching reliability is determined according to the matching reliability. The pose of the highest particle determines the left and right distances of the robot and the two sides of the corridor, which improves the accuracy of the distance between the robot and the two sides of the corridor, and ensures the accuracy and reliability of the robot positioning.
所述计算机可读存储介质可以是前述任一实施例所述的机器人的内部存储单元,例如 机器人的硬盘或内存。所述计算机可读存储介质也可以是所述机器人的外部存储设备,例如所述机器人上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述机器人的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序及所述机器人所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the robot as described in any of the preceding embodiments, such as a hard disk or a memory of the robot. The computer readable storage medium may also be an external storage device of the robot, such as a plug-in hard disk equipped on the robot, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the robot and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the robot. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的机器人和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the robot and the unit described above can refer to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的机器人和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed robot and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备 (可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种机器人定位的方法,其特征在于,包括:A method for robot positioning, comprising:
    获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;Obtaining contour information on both sides of the corridor where the robot is currently located, and determining a first distance between the robot and the two sides of the corridor according to the contour information;
    获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;Obtaining a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and acquiring a unique identifier of the wireless node carried by the signal;
    根据所述信号强度值确定机器人与所述无线节点之间的第二距离;Determining a second distance between the robot and the wireless node based on the signal strength value;
    根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。Determining current location information of the robot according to the first distance, the unique identifier, and the second distance.
  2. 如权利要求1所述的机器人定位的方法,其特征在于,所述根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息之后,还包括:The method for positioning a robot according to claim 1, wherein the determining the current position information of the robot according to the first distance, the unique identifier, and the second distance further includes:
    将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道形状;Matching the contour information with a preset map to determine a shape of the corridor at the current position of the robot;
    若根据所述楼道形状确定所述机器人当前位于楼道尽头,则根据所述第一距离和所述信号强度值进行掉头;If it is determined according to the shape of the corridor that the robot is currently located at the end of the corridor, the U-turn is performed according to the first distance and the signal strength value;
    若根据所述楼道形状确定所述机器人当前位于楼道拐角,则根据所述第一距离和所述信号强度值进行转弯。If it is determined according to the shape of the corridor that the robot is currently located at a corner of the corridor, the turning is performed according to the first distance and the signal strength value.
  3. 如权利要求1或2所述的机器人定位的方法,其特征在于,所述获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离,包括:The method for positioning a robot according to claim 1 or 2, wherein the acquiring contour information on both sides of the corridor where the robot is currently located, and determining the first sides of the robot and the corridor according to the contour information Distances include:
    通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;Scanning radar on the robot to scan the contour information on both sides of the corridor where the robot is currently located;
    计算每个粒子在预设地图中的匹配可信度;Calculate the matching credibility of each particle in the preset map;
    将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;Identifying coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
    根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的第一距离。Calculating a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the width of the corridor.
  4. 如权利要求3所述的机器人定位的方法,其特征在于,所述计算每个粒子在预设地图中的匹配可信度,包括:The method for positioning a robot according to claim 3, wherein the calculating the matching credibility of each particle in the preset map comprises:
    根据
    Figure PCTCN2018080659-appb-100001
    计算每个粒子在预设地图中的匹配可信度;
    according to
    Figure PCTCN2018080659-appb-100001
    Calculate the matching credibility of each particle in the preset map;
    其中,R v表示每个粒子在预设地图中的匹配可信度;N表示激光光束的个数;(x i,y i)表示第i个激光光束的坐标;P(x i,y i)表示所述轮廓信息与所述预设地图中坐标为(x i,y i)的 障碍点之间的映射像素值。 Where R v represents the matching credibility of each particle in the preset map; N represents the number of laser beams; (x i , y i ) represents the coordinates of the i-th laser beam; P(x i , y i And a mapping pixel value between the contour information and the obstacle point of the preset map whose coordinates are (x i , y i ).
  5. 如权利要求1所述的机器人定位的方法,其特征在于,所述唯一标识与所述无线节点的节点位置对应;所述根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息,包括:The method of robot positioning according to claim 1, wherein said unique identifier corresponds to a node position of said wireless node; said said first distance, said unique identifier, and said second distance, Determining the current location information of the robot, including:
    根据所述唯一标识确定所述无线节点的节点位置,根据所述节点位置确定所述机器人当前所处的区域;Determining, according to the unique identifier, a node location of the wireless node, and determining, according to the node location, an area where the robot is currently located;
    根据所述第一距离,确定所述机器人垂直于楼道的位置信息;根据所述第二距离,确定所述机器人平行于楼道的位置信息;Determining, according to the first distance, position information of the robot perpendicular to the corridor; determining, according to the second distance, position information of the robot parallel to the corridor;
    根据所述机器人垂直于楼道的位置信息和所述机器人平行于楼道的位置信息,确定所述机器人当前的位置信息。The current position information of the robot is determined according to the position information of the robot perpendicular to the corridor and the position information of the robot parallel to the corridor.
  6. 如权利要求2所述的机器人定位的方法,其特征在于,所述将所述轮廓信息与预设地图进行匹配,确定所述机器人当前位置处的楼道地形之后,还包括:The method for positioning a robot according to claim 2, wherein the matching the contour information with the preset map to determine the terrain of the corridor at the current position of the robot further comprises:
    若通过所述轮廓信息无法获取机器人准确位置,则根据所述第一距离平行于所述楼道直线行进。If the accurate position of the robot cannot be acquired by the contour information, the first distance is linearly parallel to the corridor according to the first distance.
  7. 一种机器人,其特征在于,包括:A robot characterized by comprising:
    第一距离确定单元,用于获取机器人当前所处位置的楼道两侧的轮廓信息,根据所述轮廓信息确定所述机器人与楼道两侧的第一距离;a first distance determining unit, configured to acquire contour information on both sides of the corridor where the robot is currently located, and determine a first distance between the robot and the two sides of the corridor according to the contour information;
    信号获取单元,用于获取设置于楼道尽头处的无线节点发送的信号的信号强度值,以及获取所述信号携带的所述无线节点的唯一标识;a signal acquiring unit, configured to acquire a signal strength value of a signal sent by a wireless node disposed at an end of the corridor, and obtain a unique identifier of the wireless node carried by the signal;
    第二距离确定单元,用于根据所述信号强度值确定机器人与所述无线节点之间的第二距离;a second distance determining unit, configured to determine a second distance between the robot and the wireless node according to the signal strength value;
    位置信息确定单元,用于根据所述第一距离、所述唯一标识和所述第二距离,确定所述机器人当前的位置信息。The location information determining unit is configured to determine current location information of the robot according to the first distance, the unique identifier, and the second distance.
  8. 如权利要求7所述的机器人定位的方法,其特征在于,所述第一距离确定单元包括:The method of positioning a robot according to claim 7, wherein the first distance determining unit comprises:
    轮廓获取单元,用于通过设置于机器人上的激光扫描雷达扫描机器人当前所处位置的楼道两侧的轮廓信息;a contour acquiring unit, configured to scan contour information on both sides of the corridor where the robot is currently located by using a laser scanning radar disposed on the robot;
    参数计算单元,用于计算每个粒子在预设地图中的匹配可信度;a parameter calculation unit, configured to calculate a matching credibility of each particle in a preset map;
    坐标确定单元,用于将最高的匹配可信度所对应的所述轮廓信息中的粒子的坐标识别为所述机器人的坐标;a coordinate determining unit, configured to identify coordinates of the particles in the contour information corresponding to the highest matching reliability as coordinates of the robot;
    距离确定单元,用于根据所述机器人的坐标与楼道宽度计算所述机器人与楼道两侧的 第一距离。The distance determining unit is configured to calculate a first distance between the robot and the two sides of the corridor according to the coordinates of the robot and the width of the corridor.
  9. 一种机器人,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述方法的步骤。A robot comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program as claimed in claims 1 to 6 The steps of any of the methods described.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述方法的步骤。A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the steps of the method of any one of claims 1 to 6.
PCT/CN2018/080659 2018-03-27 2018-03-27 Robot localization method and robot WO2019183795A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/080659 WO2019183795A1 (en) 2018-03-27 2018-03-27 Robot localization method and robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/080659 WO2019183795A1 (en) 2018-03-27 2018-03-27 Robot localization method and robot

Publications (1)

Publication Number Publication Date
WO2019183795A1 true WO2019183795A1 (en) 2019-10-03

Family

ID=68058532

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/080659 WO2019183795A1 (en) 2018-03-27 2018-03-27 Robot localization method and robot

Country Status (1)

Country Link
WO (1) WO2019183795A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833671A (en) * 2011-06-17 2012-12-19 国民技术股份有限公司 Method and system for positioning robot vision
US20130079027A1 (en) * 2011-09-23 2013-03-28 Xirrus, Inc. System and method for determining the location of a station in a wireless environment
CN105147198A (en) * 2015-08-10 2015-12-16 深圳先进技术研究院 Indoor mapping system and method based on sweeping robot
CN106052676A (en) * 2016-05-26 2016-10-26 深圳市神州云海智能科技有限公司 Robot navigation positioning method and device and robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833671A (en) * 2011-06-17 2012-12-19 国民技术股份有限公司 Method and system for positioning robot vision
US20130079027A1 (en) * 2011-09-23 2013-03-28 Xirrus, Inc. System and method for determining the location of a station in a wireless environment
CN105147198A (en) * 2015-08-10 2015-12-16 深圳先进技术研究院 Indoor mapping system and method based on sweeping robot
CN106052676A (en) * 2016-05-26 2016-10-26 深圳市神州云海智能科技有限公司 Robot navigation positioning method and device and robot

Similar Documents

Publication Publication Date Title
CN108247647B (en) Cleaning robot
US10612929B2 (en) Discovering and plotting the boundary of an enclosure
WO2020140860A1 (en) Dynamic region division and region channel identification method, and cleaning robot
KR20210003243A (en) Robots and automatic charging methods and systems for robots, electronic devices and storage media
WO2018121448A1 (en) Topology map creation method and navigation method for mobile robot, programmable device, and computer readable medium
CN111258320B (en) Robot obstacle avoidance method and device, robot and readable storage medium
CN109490825B (en) Positioning navigation method, device, equipment, system and storage medium
US20190202067A1 (en) Method and device for localizing robot and robot
Mendez et al. Sedar-semantic detection and ranging: Humans can localise without lidar, can robots?
WO2017008742A1 (en) Method and device for determining indoor approachable area
CN110554700A (en) method for identifying room and door of mobile robot
US11561102B1 (en) Discovering and plotting the boundary of an enclosure
Nagla 2d hector slam of indoor mobile robot using 2d lidar
CN112051844A (en) Self-moving robot and control method thereof
WO2022111018A1 (en) Long-distance sensor-based environment boundary construction method and mobile robot
CN110307845A (en) A kind of method and robot of robot localization
WO2019183795A1 (en) Robot localization method and robot
WO2019183928A1 (en) Indoor robot positioning method and robot
CN111830969B (en) Fusion butt joint method based on reflecting plate and two-dimensional code
CN111759230A (en) Walking control method and device for mobile robot, floor washing machine and storage medium
CN117169848A (en) Method for filtering glass noise, laser radar and robot
Jung et al. Structured light 2D range finder for simultaneous localization and map-building (SLAM) in home environments
TWI687706B (en) Positioning system of mobile device
JP2021101372A (en) Position detection method, device, apparatus, and readable storage media
CN108120447B (en) Multi-laser equipment data fusion method

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18912882

Country of ref document: EP

Kind code of ref document: A1