WO2018077164A1 - Method and system for enabling robot to automatically return for charging - Google Patents

Method and system for enabling robot to automatically return for charging Download PDF

Info

Publication number
WO2018077164A1
WO2018077164A1 PCT/CN2017/107498 CN2017107498W WO2018077164A1 WO 2018077164 A1 WO2018077164 A1 WO 2018077164A1 CN 2017107498 W CN2017107498 W CN 2017107498W WO 2018077164 A1 WO2018077164 A1 WO 2018077164A1
Authority
WO
WIPO (PCT)
Prior art keywords
robot
target system
image
coordinate system
black
Prior art date
Application number
PCT/CN2017/107498
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 北京进化者机器人科技有限公司
Publication of WO2018077164A1 publication Critical patent/WO2018077164A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means

Definitions

  • the present invention relates to the field of automation technology, and in particular to a robot automatic return charging method and system.
  • the charging of the robot is an important part to ensure that the robot is in a state of sufficient power for effective use and work.
  • the robot charging and returning technology mainly includes: infrared positioning, ultrasonic positioning and Bluetooth technology.
  • infrared rays cannot penetrate objects, can only be positioned within the line of sight, and are easily interfered by indoor fluorescent lamps during transmission, so there is a case where the robot cannot find the charging base; ultrasonic ranging is affected by multipath and non-viewing. The distance propagation has a great influence; the Bluetooth positioning establishes a slow connection speed, low precision, and poor anti-interference ability.
  • the object of the present invention is to provide a robot automatic return charging method and system, to save equipment cost of robot obstacle avoidance navigation, and to improve the stability, accuracy and practicability of the robot walking state.
  • an embodiment of the present invention provides a robot automatic return charging method, which includes:
  • the robot acquires current view information
  • the robot After the robot moves to the preset correction point, the robot sends a driving instruction to the target system, so that the target system feeds back a pulse signal to the robot according to the driving instruction;
  • the robot performs alignment with the target system and sends a sensor command to the target system to cause the target system to calculate a alignment time required by the robot;
  • the robot re-aligns with the target system and re-sends sensor commands to the target system to make the target system Calculate the alignment time required for the robot.
  • the embodiment of the present invention provides the first possible implementation manner of the first aspect, wherein the determining, according to the current view information, whether the target system is within the current view information includes:
  • the navigation obstacle avoidance is performed according to the A* algorithm until the target system is within the current view information range.
  • the embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein the processing the first image to obtain a black and white image comprises:
  • the normalized image is binarized to obtain a black and white image.
  • the embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the first image is normalized to obtain a normalization Image includes:
  • the second image is normalized to obtain the normalized image.
  • the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the normalized image is binarized to obtain black and white.
  • the image includes:
  • the pixel value is set to a first value
  • the pixel value is set to a second value
  • the black and white image is acquired by binarization processing.
  • the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the establishing a Cartesian coordinate system according to the black and white image comprises:
  • the Cartesian coordinate system is established with the center point as an origin.
  • the embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the controlling the movement of the robot to a preset correction point according to the Cartesian coordinate system comprises:
  • the embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the performing, by the robot, the alignment with the target object includes:
  • an embodiment of the present invention further provides a robot automatic return charging system, including a robot (100) and a target system, wherein the robot (100) includes a central controller (120), a camera (110), and a motion unit ( 130), the target system includes a charging pile (200), the charging pile (200) is provided with an MCU (210) and a sensor (220);
  • the camera (110) is configured to acquire current view information by the robot (100), determine, according to the current view information, whether the target system is within the current view information range, if the target system is in the current view information Within the scope, the target system is photographed to obtain a first image;
  • the central controller (120) is configured to process the first image, acquire a black and white image, establish a Cartesian coordinate system according to the black and white image, and after the robot (100) moves to a preset correction point, The robot (100) Sending a drive command to the target system while controlling the robot (100) to perform alignment with the target system and transmitting a sensor command to the target system;
  • the motion unit (130) is configured to control the movement of the robot (100) to a preset correction point according to the Cartesian coordinate system;
  • the MCU (210) is configured to receive the driving instruction, and control the sensor (220) according to the driving instruction, receive the sensor instruction at the same time, and calculate a alignment time required by the robot (100) If the alignment time of the robot (100) is within a preset time threshold, charging the robot (100) begins;
  • the sensor (220) is configured to feed back a pulse signal to the robot (100) according to the driving instruction.
  • the embodiment of the present invention provides a first possible implementation manner of the second aspect, wherein the central controller (120) is further configured to draw a minimum of splicing a white area in the black and white image. Rectangularly, the minimum rectangle is framed in the red light region in the first channel image, and the optical center of the red light region is determined, and the LED point light source (230) in the target system is obtained in the camera coordinates by using the binocular ranging principle.
  • the coordinates of the system are called, the coordinates of the camera coordinate system are called, the coordinates of the LED point light source (230) in the robot coordinate system are obtained, and the center point is obtained according to the coordinates in the robot coordinate system, and the center point is obtained.
  • the Cartesian coordinate system is established.
  • the invention provides a robot automatic return charging method and system, which acquires current field of view information by a robot, determines whether the target system is within the current field of view information according to current field of view information, and photographs the target system if the target system is within the current field of view information range.
  • the robot thereby acquiring a first image, processing the first image, acquiring a black and white image, establishing a Cartesian coordinate system according to the black and white image, and controlling the robot motion to a preset correction point according to the Cartesian coordinate system, when the robot moves to a preset After the correction point, the driving command is sent to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction, and the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the required operation of the robot.
  • the alignment time if the robot's alignment time is within a preset time threshold, the robot starts charging, and if the robot's alignment time is not within the preset time threshold, the robot re-aligns with the target system, Resend sensor finger to target system .
  • the invention can save the equipment cost of the obstacle avoidance navigation of the robot, quickly and accurately identify the target system, improve the stability of the motion state, and has stronger practicability.
  • FIG. 1 is a flowchart of a method for automatic return charging of a robot according to Embodiment 1 of the present invention
  • step S140 is a flowchart of step S140 in the automatic return charging method of the robot according to the first embodiment of the present invention
  • FIG. 3 is a flowchart of a method for acquiring a normalized image according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of a method for acquiring a black and white image according to Embodiment 1 of the present invention
  • FIG. 5 is a flowchart of a method for establishing a Cartesian coordinate system according to a black and white image according to Embodiment 1 of the present invention
  • FIG. 6 is a flowchart of a method for controlling a robot to move to a preset correction point according to a Cartesian coordinate system according to Embodiment 1 of the present invention
  • FIG. 7 is a flowchart of a method for correcting a robot according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic diagram of a robot automatic return charging system according to Embodiment 2 of the present invention.
  • the robot charging and returning technology mainly includes: infrared positioning, ultrasonic positioning and Bluetooth technology.
  • infrared rays cannot penetrate objects, can only be positioned within the line of sight, and are easily interfered by indoor fluorescent lamps during transmission, so there is a case where the robot cannot find the charging base; ultrasonic ranging is affected by multipath effects and non- The line-of-sight propagation has a great influence; the Bluetooth connection establishes a slow connection speed, low precision, and poor anti-interference ability.
  • the automatic returning charging method and system for the robot provided by the embodiment of the invention can save the equipment cost of the obstacle avoidance navigation of the robot, quickly and accurately identify the target system, improve the stability of the motion state, and have greater practicability.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart of a method for automatic return charging of a robot according to Embodiment 1 of the present invention.
  • the method includes the following steps:
  • Step S110 the robot acquires current view information
  • the robot enables binoculars, relies on the principle of visual measurement to detect an unknown environment, and effectively obtains current field of view information, and the current field of view information includes information of unknown obstacles, including the actual shape, size, size, and orientation of the obstacle.
  • the charging pile is recognized and returned to the charging pile for charging, which greatly saves the equipment cost of the robot for obstacle avoidance navigation.
  • step S120 it is determined whether the target system is within the current field of view information according to the current field of view information; if the target system is within the current field of view information, step S131 is performed; if the target system is not within the current field of view information, step S132 is performed;
  • the target system is a charging pile.
  • the robot When the robot has insufficient power, the robot automatically recognizes the charging pile and returns to the charging pile to charge, which greatly saves the equipment cost of the robot obstacle avoidance navigation; the robot determines whether the binocular vision can be in the current field of view. The existence of the charging pile is directly seen in the information range. If the target system is within the current field of view information, step S131 is performed; if the target system is not within the current field of view information, step S132 is performed.
  • Step S131 taking a picture of the target system, thereby acquiring the first image
  • the robot enables binoculars, looks for four blue LED point sources provided on the head of the charging pile, and takes photos of the four blue LED point sources to obtain a first image.
  • Step S132 performing navigation avoidance according to the A* algorithm until the target system is within the current field of view information range
  • the A*(A-Star) algorithm is the most effective direct search method for solving the shortest path in a static road network. It is also an effective algorithm for solving many search problems. The closer the distance estimate is to the actual value, the final. The faster the search speed is; the obstacle avoidance is performed according to the A* algorithm until the position of the charging pile can be directly seen, and step S131 can be started.
  • Step S140 processing the first image to obtain a black and white image
  • the first image is subjected to normalization processing and binarization processing to obtain a black and white image.
  • Step S150 establishing a Cartesian coordinate system according to the black and white image, and controlling the robot to move to a preset correction point according to the Cartesian coordinate system;
  • the visual measurement is more accurate, thereby ensuring the stability and accuracy of the walking state of the robot; the robot sets the starting point and the ending point of the movement in the XOY coordinate system, and sets Three correction points with different distances to the end point are used to adjust the moving angle and distance of the three correction points to accurately locate the charging pile, which is quite accurate and practical.
  • Step S160 after the robot moves to the preset correction point, the robot sends a driving instruction to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction;
  • the robot After three times of correcting motion, after positioning the position of the charging pile, the robot goes to the MCU on the charging pile.
  • MCU Microcontroller Unit, Micro Control Unit
  • Step S170 the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the alignment time required by the robot;
  • the robot is accurately positioned again, and is aligned according to the feedback pulse signal, and sends a sensor command to the MCU of the charging post. After receiving the sensor command, the MCU starts to calculate the alignment time of the robot.
  • the sensor command according to the present invention may be, but not limited to, an infrared sensor command of an infrared type.
  • Step S180 it is determined whether the alignment time is within a preset time threshold; if yes, step S190 is performed; otherwise, step S170 is re-executed;
  • step S190 the robot starts charging.
  • the time threshold may be 30 seconds; if the alignment time exceeds 30 seconds, the infrared sensor is turned off, and the process returns to step S170 to restart the alignment; if the alignment time is within 30 seconds, after the alignment is completed, The robot starts charging; the four blue LED point lights on the charging post are used to display the charging power. One LED point light is on to indicate charging 25%, two are 50%, three are 75%, and four are fully charged. %; After charging, the charging post is automatically powered off.
  • step S140 can be implemented by the following steps, including:
  • Step S210 normalizing the first image to obtain a normalized image
  • step S220 the normalized image is binarized to obtain a black and white image.
  • step S210 can be implemented by the following steps:
  • Step S310 performing channel separation on the first image to obtain a first channel, a second channel, and a third channel, respectively;
  • the first channel, the second channel, and the third channel include: the first image includes four blue LED point light sources, and the first image is r (red, red), g (green, green), b (blue, Blue) three-channel separation, respectively obtaining r channel, g channel and b channel;
  • Step S320 acquiring a second image according to the value of the first channel, the value of the second channel, and the value of the third channel;
  • Step S330 normalizing the second image to obtain a normalized image.
  • the second image is normalized, so that the image with the highest value of the pure blue region in the b channel and the lowest value of the region without the blue color is obtained, and the r channel and the g channel are avoided. interference.
  • step S220 can be implemented by the following steps:
  • Step S410 determining whether the pixel value of any pixel in the normalized image is lower than a preset pixel threshold; if lower, Step S421 is performed; if not, step S422 is performed;
  • Step S421 setting the pixel value to the first value
  • Step S422 setting the pixel value to the second value
  • Step S430 obtaining a black and white image by binarization processing.
  • the preset pixel threshold is 100, the first value is 0, and the second value is 255; each pixel of the normalized image is decomposed, and if the pixel value of a certain pixel is lower than 100, the pixel value is changed to 0; if the pixel value of a certain pixel is higher than 100, the pixel value is set to a maximum of 255; after the binarization process, a black and white image is obtained.
  • the method for establishing a Cartesian coordinate system according to a black and white image in step S150 includes:
  • Step S510 drawing a minimum rectangle that circumscribes the white area in the black and white image, so that the smallest rectangle frames the red light area in the first channel image;
  • the red light area is picture information of the LED point light source in the r channel obtained by separating the first picture by three channels.
  • the white area in the black and white image is framed by the minimum circumscribed rectangle, and the position of the rectangle is recorded, at which the four circular red areas in the separated r channel image are framed.
  • Step S520 determining the optical center of the red light region, and obtaining the coordinates of the LED point light source in the camera coordinate system in the target system by using the binocular ranging principle;
  • the optical centers of the four red light regions are determined, and the optical centers of the four red light regions in the left camera image are respectively matched with the optical centers of the four red light regions of the right camera image, and the binocular test is used.
  • the distance principle obtains four coordinates corresponding to the four blue LED point sources in the camera coordinate system.
  • Step S530 calling coordinates in the camera coordinate system to obtain coordinates of the LED point light source in the robot coordinate system;
  • the coordinates of the four blue LED point sources in the robot coordinate system are: upper left (x1, y1), upper right (x2, y2), lower left (x3, y3), and lower right (x4, Y4).
  • Step S540 obtaining a center point according to coordinates in a robot coordinate system
  • step S550 a Cartesian coordinate system is established with the center point as the origin.
  • the center point (x 0 , y 0 ) is taken as the origin, and the left reference point points to the right reference point as the x positive axis, and the Cartesian coordinate system XOY coordinate system is established.
  • the method for controlling the movement of the robot to the preset correction point according to the Cartesian coordinate system in step S150 includes:
  • Step S610 calculating a distance and an angle of the robot relative to the first correction point, and controlling the movement of the robot to the first correction point;
  • the coordinates of the robot in the XOY coordinate system are set to (xr, yr); the distance d1 and the angle ⁇ 1 of the robot relative to the first correction point (0, -1200) in the XOY coordinate system are calculated, by the formula (2) And formula (3) shows:
  • Step S620 calculating a distance and an angle of the robot relative to the second correction point, and controlling the movement of the robot to the second correction point;
  • the robot is at the first correction point, and calculates the distance d2 and the angle ⁇ 2 of the robot relative to the second correction point (0, -800) in the XOY coordinate system, by formula (4) and formula (5). It can be known that:
  • Step S630 calculating the distance and angle of the robot relative to the third correction point, controlling the movement of the robot to the third correction point, and ending the visual alignment.
  • the robot is at the second correction point, and calculates the distance d3 and the angle ⁇ 3 of the robot relative to the third correction point (0, -400) in the XOY coordinate system, by formula (6) and formula (7). It can be known that:
  • the robot is controlled to move to the third correction point; the robot reaches the third correction point from the second correction point, and the robot is at a distance of 30 cm from the charging pile, and is in the visual alignment end state.
  • the method for the robot to perform alignment with the target system in step S170 includes:
  • Step S710 performing voltage detection by using an infrared receiving tube
  • the infrared receiving tube is mounted on the robot, the number is three, at the same horizontal line, and the spacing is the same.
  • Step S720 detecting a high-low relationship between voltages of the infrared receiving tubes
  • Step S730 if the voltage of the infrared receiving tube on the right side is lower, the robot moves to the right;
  • Step S740 if the voltage of the infrared receiving tube on the left side is lower, the robot moves to the left;
  • step S750 if the voltages of the infrared receiving tubes on the left and right sides are the same, and the voltage of the receiving tube in the middle is large, the robot goes straight.
  • the voltage is simultaneously detected by the three infrared receiving tubes that are provided, and the closer the output voltage is, the more the left and right movement is moved until the charging is under the self.
  • the piece is completely against the charging contact under the charging post and begins to charge.
  • the invention provides a robot automatic return charging method, which acquires current field of view information by the robot, determines whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information, photographs the target system.
  • the robot sends a driving instruction to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction, and the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the alignment time of the robot.
  • the robot If the alignment time of the robot is within a preset time threshold, the robot starts charging, and if the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system and re-sends to the target system. Sensor instruction.
  • the invention can quickly and accurately identify the target system, save the equipment cost of the obstacle avoidance navigation of the robot, and improve the stability of the motion state, and has stronger practicability.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 8 is a schematic diagram of a robot automatic return charging system according to Embodiment 2 of the present invention.
  • the robot automatic return charging system includes a robot 100 and a target system, wherein the robot 100 includes a central controller 120, a camera 110 and a motion unit 130.
  • the target system includes a charging post 200, and the charging post 200 includes an MCU 210, a sensor 220, and LED point light source 230;
  • the camera 110 is configured to acquire current field of view information by the robot 100, determine whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information, take a picture of the target system to obtain the first image;
  • the number of cameras 110 is two and is at the same horizontal line.
  • the camera 110 looks for the LED point light source 230 provided at the head of the charging post 200, and takes a picture of the LED point light source 230 to acquire a first image.
  • the LED point light source 230 is four blue LED point light sources arranged in a rectangular shape, and the charging post 200 charges the battery of the robot 100.
  • the central controller 120 is configured to process the first image, obtain a black and white image, and establish a Cartesian according to the black and white image. a coordinate system, and after the robot 100 moves to a preset correction point, the robot 100 sends a drive command to the target system, while controlling the robot 100 to perform alignment with the target system, and transmitting a sensor command to the target system;
  • the central controller 120 is further configured to control the motion unit 130 to perform navigation avoidance according to the A* algorithm until the charging station 200 is within the current visual field information range;
  • the central controller 120 obtains a normalized image by normalizing the first image; performing binarization processing on the normalized image to obtain a black and white image;
  • the central controller 120 controls the robot 100 to finally move to the third correction point by calculating the distance and angle of the robot 100 with respect to the first correction point, the second correction point, and the third correction point, respectively, and ends the visual pair. Positive; then, the central controller 120 sends a drive command to the MCU 210;
  • the central controller 120 performs voltage detection by using an infrared receiving tube; detects the relationship between the voltage of the infrared receiving tube; if the voltage of the infrared receiving tube on the right side is lower, the robot 100 moves to the right; if the infrared receiving tube on the left side When the voltage is low, the robot 100 moves to the left; if the voltages of the infrared receiving tubes on the left and right sides are the same, and the intermediate receiving tube voltage is large, the robot 100 goes straight; at this time, the pair of the robot 100 and the charging pile 200 is completed. Positive, central controller 120 sends sensor commands to MCU 210.
  • a motion unit 130 configured to control the robot 100 to move to a preset correction point according to a Cartesian coordinate system
  • the motion unit 130 is controlled by the control of the central controller 120; the motion unit 130 sequentially moves to three preset correction points according to the Cartesian coordinate system to end the visual alignment; the motion unit 130 completes the 180° of the robot 100. After the rotation, the left and right movement is performed according to the relationship between the detection voltages, so that the charging contact under the robot 100 is completely close to the charging contact under the charging post 200 to start charging.
  • the MCU 210 is configured to receive a driving instruction, and control the sensor 220 according to the driving instruction, receive the sensor instruction, and calculate a matching time required by the robot 100. If the alignment time of the robot 100 is within a preset time threshold, the robot is 100 starts charging;
  • the MCU 210 is disposed inside the charging post 200, receives a driving command from the central controller 120, and controls the sensor 220 to feed back the pulse signal to the robot 100 according to the driving instruction. After receiving the sensor command, the MCU 210 starts to calculate the alignment time of the robot 100. When the alignment time is within the preset time threshold, the charging post 200 starts charging the robot 100; the alignment time is not at the preset time threshold. In the case of the inside, the central controller 120 re-aligns the robot 100 with the charging post 200, and the MCU 210 receives the sensor command from the central controller 120 again.
  • the sensor command according to the present invention may be, but not limited to, an infrared sensor command of an infrared type.
  • the sensor 220 is configured to feed back a pulse signal to the robot 100 according to the driving instruction.
  • the senor 220 is controlled by the MCU 210 to emit a pulse having a fixed frequency of 5 kHz, and the feedback signal is sent to the robot 100.
  • the central controller 120 is further configured to draw a minimum of the white area in the black and white image. Rectangular, so that the smallest rectangle frames the red light region in the first channel image, determines the optical center of the red light region, and uses the binocular ranging principle to obtain the coordinates of the LED point light source 230 in the camera coordinate system in the target system, and call the camera coordinates. Based on the coordinates, the coordinates of the LED point source 230 in the robot coordinate system are obtained, the center point is obtained according to the coordinates in the robot coordinate system, and the Cartesian coordinate system is established with the center point as the origin.
  • the invention provides a robot automatic return charging system, comprising a robot and a target system, acquiring current field of view information by the robot, determining whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information,
  • the target system takes a picture to obtain a first image, processes the first image to obtain a black and white image, establishes a Cartesian coordinate system according to the black and white image, and controls the robot to move to a preset correction point according to the Cartesian coordinate system, and the robot moves to After the preset correction point, the robot sends a drive command to the target system, so that the target system feeds back the pulse signal to the robot according to the drive command, and the robot performs alignment with the target system, and sends a sensor command to the target system to calculate the target system.
  • the alignment time of the robot if the alignment time of the robot is within a preset time threshold, the robot starts charging, and if the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system, Re-targeting system Feed sensor instruction.
  • the invention can quickly and accurately identify the target system, save the equipment cost of the obstacle avoidance navigation of the robot, and improve the stability of the motion state, and has stronger practicability.
  • a computer program product for a robot automatic return charging method and system comprising a computer readable storage medium storing program code, the program code comprising instructions for performing the method described in the foregoing method embodiment
  • program code comprising instructions for performing the method described in the foregoing method embodiment
  • the terms “installation”, “connected”, and “connected” are to be understood broadly, and may be a fixed connection or a detachable connection, unless otherwise explicitly defined and defined. , or connected integrally; may be mechanical connection or electrical connection; may be directly connected, or may be indirectly connected through an intermediate medium, and may be internal communication between the two elements.
  • installation may be a fixed connection or a detachable connection, unless otherwise explicitly defined and defined.
  • connected integrally may be mechanical connection or electrical connection; may be directly connected, or may be indirectly connected through an intermediate medium, and may be internal communication between the two elements.
  • the specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used 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. medium.
  • connection In the description of the present invention, it should be noted that the terms “installation”, “connected”, and “connected” are to be understood broadly, and may be fixed or detachable, for example, unless otherwise explicitly defined and defined. Connected, or integrally connected; can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components.
  • Connected, or integrally connected can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components.
  • the specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Multimedia (AREA)
  • Electromagnetism (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Manipulator (AREA)

Abstract

A method and system for enabling a robot (100) to automatically return for charging, relating to the technical field of automation. The method comprises: obtain current visual field information by means of a robot (100) (S110); accordingly determine whether a target system is within the range of the current visual field information (S120); if the target system is within the range of current visual field information, photograph the target system, so as to obtain a first image (S131); process the first image to obtain a black-white image (S140); establish a Cartesian coordinate system according to the black-white image, and control, according to the Cartesian coordinate system, the robot (100) to move to a preset correction point (S150); then the robot (100) sends a drive instruction to the target system, so that the target system feeds back a pulse signal to the robot (100) according to the drive instruction (S160); the robot (100) aligns with the target system; after the alignment ends, start charging the robot (100) (S190). In the present invention, the equipment costs of the obstacle avoidance and navigation of the robot (100) can be reduced, and the stability, accuracy and practicability of the walking state of the robot (100) can be improved.

Description

机器人自动回位充电方法和系统Robot automatic return charging method and system
相关申请的交叉引用Cross-reference to related applications
本申请要求于2016年10月28日提交中国专利局的申请号为CN201610971722.0、名称为“机器人自动回位充电方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. CN201610971722.0, entitled "Robot Automatic Return Charging Method and System", filed on October 28, 2016, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及自动化技术领域,尤其是涉及机器人自动回位充电方法和系统。The present invention relates to the field of automation technology, and in particular to a robot automatic return charging method and system.
背景技术Background technique
近年来,机器人技术作为高新科技,已经逐步地渗透进我们生活的方方面面,从生产车间到医院,机器人所发挥的作用不可估量。传统的工业机器人适用于结构化环境,完成重复性作业任务,而现代机器人则希望同人类一起在相同的非结构化空间和环境中协同作业,实时在线完成非确定性的任务,当代机器人研究的领域已经从结构环境下的定点作业中走出来,向航空航天、星际探索、军事侦察攻击、水下地下管道、疾病检查治疗、抢险救灾等非结构环境下的自主作业方面发展;传统机器人属于多输入和单末端输出系统,而现代机器人则属于多输入和多末端输出系统;传统机器人在灵巧作业、在线感知、对人的行为和抽象命令的理解、认知与决策能力等诸多方面远逊于人,无法与人实现高效的沟通和交流。In recent years, as a high-tech technology, robotics has gradually penetrated into every aspect of our lives. From the production workshop to the hospital, the role played by robots is immeasurable. Traditional industrial robots are suitable for structured environments and perform repetitive tasks. Modern robots hope to work together with humans in the same unstructured space and environment to perform non-deterministic tasks online in real time. The field has emerged from the fixed-point operations in the structural environment, and has developed into autonomous operations in aerospace, interstellar exploration, military reconnaissance attacks, underwater underground pipelines, disease inspection and treatment, disaster relief and other non-structural environments; Input and single-ended output systems, while modern robots are multi-input and multi-end output systems; traditional robots are far less than in smart homework, online perception, understanding of human behavior and abstract commands, cognitive and decision-making capabilities, etc. People can't communicate and communicate effectively with people.
机器人的充电是重要的环节,能够保证机器人处在电量充足的状态,实现有效的使用和工作。目前在用的机器人充电回位技术主要包括:红外线定位、超声波定位和蓝牙技术。但是红外线无法穿透物体,只能够在视距范围内定位,且在传输过程中容易受到室内荧光灯干扰,所以会出现机器人无法找到充电基座的情况发生;超声波测距受多径效应和非视距传播影响很大;蓝牙定位的建立连接速度较慢,精度低,抗干扰能力差。The charging of the robot is an important part to ensure that the robot is in a state of sufficient power for effective use and work. At present, the robot charging and returning technology mainly includes: infrared positioning, ultrasonic positioning and Bluetooth technology. However, infrared rays cannot penetrate objects, can only be positioned within the line of sight, and are easily interfered by indoor fluorescent lamps during transmission, so there is a case where the robot cannot find the charging base; ultrasonic ranging is affected by multipath and non-viewing. The distance propagation has a great influence; the Bluetooth positioning establishes a slow connection speed, low precision, and poor anti-interference ability.
发明内容Summary of the invention
有鉴于此,本发明的目的在于提供机器人自动回位充电方法和系统,以节约机器人避障导航的设备成本,并提高机器人行走状态的稳定性、准确性和实用性。In view of this, the object of the present invention is to provide a robot automatic return charging method and system, to save equipment cost of robot obstacle avoidance navigation, and to improve the stability, accuracy and practicability of the robot walking state.
第一方面,本发明实施例提供了机器人自动回位充电方法,其中,包括:In a first aspect, an embodiment of the present invention provides a robot automatic return charging method, which includes:
机器人获取当前视野信息;The robot acquires current view information;
根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内;Determining, according to the current view information, whether the target system is within the current view information range;
如果所述目标系统在所述当前视野信息范围内,则对所述目标系统进行拍照,从而获取第一图像; If the target system is within the current field of view information, taking a picture of the target system to obtain a first image;
对所述第一图像进行处理,获取黑白图像;Processing the first image to obtain a black and white image;
根据所述黑白图像建立笛卡尔坐标系,并根据所述笛卡尔坐标系控制所述机器人运动到预设的矫正点;Establishing a Cartesian coordinate system according to the black and white image, and controlling the robot to move to a preset correction point according to the Cartesian coordinate system;
当所述机器人运动到所述预设的矫正点后,所述机器人向所述目标系统发送驱动指令,以使所述目标系统根据所述驱动指令反馈脉冲信号给所述机器人;After the robot moves to the preset correction point, the robot sends a driving instruction to the target system, so that the target system feeds back a pulse signal to the robot according to the driving instruction;
所述机器人进行与所述目标系统的对正,并向所述目标系统发送传感器指令,以使所述目标系统计算所述机器人所需的对正时间;The robot performs alignment with the target system and sends a sensor command to the target system to cause the target system to calculate a alignment time required by the robot;
判断所述对正时间是否在预设的时间阈值内;Determining whether the alignment time is within a preset time threshold;
如果所述机器人的对正时间在所述预设的时间阈值内,则对所述机器人开始充电;If the alignment time of the robot is within the preset time threshold, charging the robot to start;
如果所述机器人的对正时间不在所述预设的时间阈值内,则所述机器人重新进行与所述目标系统的对正,并重新向所述目标系统发送传感器指令,以使所述目标系统计算所述机器人所需的对正时间。If the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system and re-sends sensor commands to the target system to make the target system Calculate the alignment time required for the robot.
结合第一方面,本发明实施例提供了第一方面的第一种可能的实施方式,其中,所述根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内包括:With reference to the first aspect, the embodiment of the present invention provides the first possible implementation manner of the first aspect, wherein the determining, according to the current view information, whether the target system is within the current view information includes:
如果所述目标系统不在所述当前视野信息范围内,则根据A*算法进行导航避障,直到所述目标系统在所述当前视野信息范围内为止。If the target system is not within the current view information range, the navigation obstacle avoidance is performed according to the A* algorithm until the target system is within the current view information range.
结合第一方面,本发明实施例提供了第一方面的第二种可能的实施方式,其中,所述对所述第一图像进行处理,获取黑白图像包括:With reference to the first aspect, the embodiment of the present invention provides a second possible implementation manner of the first aspect, wherein the processing the first image to obtain a black and white image comprises:
将所述第一图像进行归一化处理,获取归一化图像;Normalizing the first image to obtain a normalized image;
将所述归一化图像进行二值化处理,获取黑白图像。The normalized image is binarized to obtain a black and white image.
结合第一方面的第二种可能的实施方式,本发明实施例提供了第一方面的第三种可能的实施方式,其中,所述将所述第一图像进行归一化处理,获取归一化图像包括:In conjunction with the second possible implementation of the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the first image is normalized to obtain a normalization Image includes:
将所述第一图像进行通道分离,分别得到第一通道、第二通道和第三通道;Performing channel separation on the first image to obtain a first channel, a second channel, and a third channel, respectively;
根据所述第一通道的值、所述第二通道的值和所述第三通道的值获取第二图像;Obtaining a second image according to the value of the first channel, the value of the second channel, and the value of the third channel;
将所述第二图像进行归一化处理,获取所述归一化图像。The second image is normalized to obtain the normalized image.
结合第一方面的第二种可能的实施方式,本发明实施例提供了第一方面的第四种可能的实施方式,其中,所述将所述归一化图像进行二值化处理,获取黑白图像包括:With reference to the second possible implementation manner of the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the normalized image is binarized to obtain black and white. The image includes:
判断所述归一化图像中任一像素的像素值是否低于预设的像素阈值;Determining whether a pixel value of any pixel in the normalized image is lower than a preset pixel threshold;
如果低于,则将所述像素值设定为第一数值;If it is lower, the pixel value is set to a first value;
如果高于,则将所述像素值设定为第二数值;If it is higher, the pixel value is set to a second value;
通过二值化处理获取所述黑白图像。 The black and white image is acquired by binarization processing.
结合第一方面,本发明实施例提供了第一方面的第五种可能的实施方式,其中,所述根据所述黑白图像建立笛卡尔坐标系包括:With reference to the first aspect, the embodiment of the present invention provides a fifth possible implementation manner of the first aspect, wherein the establishing a Cartesian coordinate system according to the black and white image comprises:
绘制将所述黑白图像中的白色区域外接的最小矩形,使所述最小矩形框住第一通道图像中的红光区;Draw a minimum rectangle circumscribing the white area in the black and white image, so that the minimum rectangle frames the red light area in the first channel image;
确定所述红光区的光心,利用双目测距原理获得所述目标系统中LED点光源在摄像头坐标系下的坐标;Determining an optical center of the red light region, and obtaining a coordinate of the LED point light source in the camera coordinate system in the target system by using a binocular ranging principle;
调用所述摄像头坐标系下的坐标,获得所述LED点光源在机器人坐标系下的坐标;Calling coordinates of the camera coordinate system to obtain coordinates of the LED point source in the robot coordinate system;
根据所述机器人坐标系下的坐标获得中心点;Obtaining a center point according to coordinates in the robot coordinate system;
以所述中心点为原点,建立所述笛卡尔坐标系。The Cartesian coordinate system is established with the center point as an origin.
结合第一方面,本发明实施例提供了第一方面的第六种可能的实施方式,其中,所述并根据所述笛卡尔坐标系控制所述机器人运动到预设的矫正点包括:With reference to the first aspect, the embodiment of the present invention provides a sixth possible implementation manner of the first aspect, wherein the controlling the movement of the robot to a preset correction point according to the Cartesian coordinate system comprises:
计算所述机器人相对第一个矫正点的距离和角度,控制机器人运动到第一个矫正点处;Calculating the distance and angle of the robot relative to the first correction point, and controlling the movement of the robot to the first correction point;
计算所述机器人相对第二个矫正点的距离和角度,控制机器人运动到第二个矫正点处;Calculating a distance and an angle of the robot relative to the second correction point, and controlling the movement of the robot to the second correction point;
计算所述机器人相对第三个矫正点的距离和角度,控制机器人运动到第三个矫正点处,并结束视觉对正。Calculate the distance and angle of the robot relative to the third correction point, control the robot movement to the third correction point, and end the visual alignment.
结合第一方面,本发明实施例提供了第一方面的第七种可能的实施方式,其中,所述机器人进行与所述目标对象的对正包括:With reference to the first aspect, the embodiment of the present invention provides a seventh possible implementation manner of the first aspect, wherein the performing, by the robot, the alignment with the target object includes:
利用红外接收管进行电压检测;Using an infrared receiving tube for voltage detection;
检测所述红外接收管的电压的高低关系;Detecting a relationship between a voltage of the infrared receiving tube;
如果右侧的所述红外接收管的电压较低,则所述机器人向右移动;If the voltage of the infrared receiving tube on the right side is lower, the robot moves to the right;
如果左侧的所述红外接收管的电压较低,则所述机器人向左移动;If the voltage of the infrared receiving tube on the left side is low, the robot moves to the left;
如果左右两侧的所述红外接收管的电压一样,且中间的所述接收管电压较大时,则所述机器人直行。If the voltages of the infrared receiving tubes on the left and right sides are the same, and the voltage of the receiving tube in the middle is large, the robot goes straight.
第二方面,本发明实施例还提供机器人自动回位充电系统,包括机器人(100)和目标系统,其中,所述机器人(100)包括中央控制器(120)、摄像头(110)和运动单元(130),所述目标系统包括充电桩(200),所述充电桩(200)设有MCU(210)和传感器(220);In a second aspect, an embodiment of the present invention further provides a robot automatic return charging system, including a robot (100) and a target system, wherein the robot (100) includes a central controller (120), a camera (110), and a motion unit ( 130), the target system includes a charging pile (200), the charging pile (200) is provided with an MCU (210) and a sensor (220);
所述摄像头(110),用于所述机器人(100)获取当前视野信息,根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内,如果所述目标系统在所述当前视野信息范围内,则对所述目标系统进行拍照,从而获取第一图像;The camera (110) is configured to acquire current view information by the robot (100), determine, according to the current view information, whether the target system is within the current view information range, if the target system is in the current view information Within the scope, the target system is photographed to obtain a first image;
所述中央控制器(120),用于对所述第一图像进行处理,获取黑白图像,根据黑白图像建立笛卡尔坐标系,并且在所述机器人(100)运动到预设的矫正点后,所述机器人(100) 向所述目标系统发送驱动指令,同时控制所述机器人(100)进行与所述目标系统的对正,并向所述目标系统发送传感器指令;The central controller (120) is configured to process the first image, acquire a black and white image, establish a Cartesian coordinate system according to the black and white image, and after the robot (100) moves to a preset correction point, The robot (100) Sending a drive command to the target system while controlling the robot (100) to perform alignment with the target system and transmitting a sensor command to the target system;
所述运动单元(130),用于根据所述笛卡尔坐标系控制所述机器人(100)运动到预设的矫正点;The motion unit (130) is configured to control the movement of the robot (100) to a preset correction point according to the Cartesian coordinate system;
所述MCU(210),用于接收所述驱动指令,并根据所述驱动指令控制所述传感器(220),同时接收所述传感器指令,并计算所述机器人(100)所需的对正时间,如果所述机器人(100)的对正时间在预设的时间阈值内,则对所述机器人(100)开始充电;The MCU (210) is configured to receive the driving instruction, and control the sensor (220) according to the driving instruction, receive the sensor instruction at the same time, and calculate a alignment time required by the robot (100) If the alignment time of the robot (100) is within a preset time threshold, charging the robot (100) begins;
所述传感器(220),用于根据所述驱动指令反馈脉冲信号给所述机器人(100)。The sensor (220) is configured to feed back a pulse signal to the robot (100) according to the driving instruction.
结合第二方面,本发明实施例提供了第二方面的第一种可能的实施方式,其中,所述中央控制器(120),还用于绘制将所述黑白图像中的白色区域外接的最小矩形,使所述最小矩形框住第一通道图像中的红光区,确定所述红光区的光心,利用双目测距原理获得所述目标系统中LED点光源(230)在摄像头坐标系下的坐标,调用所述摄像头坐标系下的坐标,获得所述LED点光源(230)在机器人坐标系下的坐标,根据所述机器人坐标系下的坐标获得中心点,以所述中心点为原点,建立所述笛卡尔坐标系。With reference to the second aspect, the embodiment of the present invention provides a first possible implementation manner of the second aspect, wherein the central controller (120) is further configured to draw a minimum of splicing a white area in the black and white image. Rectangularly, the minimum rectangle is framed in the red light region in the first channel image, and the optical center of the red light region is determined, and the LED point light source (230) in the target system is obtained in the camera coordinates by using the binocular ranging principle. The coordinates of the system are called, the coordinates of the camera coordinate system are called, the coordinates of the LED point light source (230) in the robot coordinate system are obtained, and the center point is obtained according to the coordinates in the robot coordinate system, and the center point is obtained. For the origin, the Cartesian coordinate system is established.
本发明提供机器人自动回位充电方法和系统,通过机器人获取当前视野信息,根据当前视野信息判断目标系统是否在当前视野信息范围内,如果目标系统在当前视野信息范围内,则对目标系统进行拍照,从而获取第一图像,将第一图像进行处理,获取黑白图像,根据黑白图像建立笛卡尔坐标系,并根据笛卡尔坐标系控制机器人运动到预设的矫正点,当机器人运动到预设的矫正点后,则向目标系统发送驱动指令,以使目标系统根据驱动指令反馈脉冲信号给机器人,机器人进行与目标系统的对正,并向目标系统发送传感器指令,以使目标系统计算机器人所需的对正时间,如果机器人的对正时间在预设的时间阈值内,则对机器人开始充电,如果机器人的对正时间不在预设的时间阈值内,则机器人重新进行与目标系统的对正,重新向目标系统发送传感器指令。本发明可以节约机器人避障导航的设备成本,快速精准的识别目标系统,提高运动状态的稳定性,具有更强的实用性。The invention provides a robot automatic return charging method and system, which acquires current field of view information by a robot, determines whether the target system is within the current field of view information according to current field of view information, and photographs the target system if the target system is within the current field of view information range. , thereby acquiring a first image, processing the first image, acquiring a black and white image, establishing a Cartesian coordinate system according to the black and white image, and controlling the robot motion to a preset correction point according to the Cartesian coordinate system, when the robot moves to a preset After the correction point, the driving command is sent to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction, and the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the required operation of the robot. The alignment time, if the robot's alignment time is within a preset time threshold, the robot starts charging, and if the robot's alignment time is not within the preset time threshold, the robot re-aligns with the target system, Resend sensor finger to target system . The invention can save the equipment cost of the obstacle avoidance navigation of the robot, quickly and accurately identify the target system, improve the stability of the motion state, and has stronger practicability.
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the invention will be set forth in the description which follows, and The objectives and other advantages of the invention are realized and attained by the invention particularly pointed in
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features and advantages of the present invention will become more apparent from the aspects of the appended claims.
附图说明DRAWINGS
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施 方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will be specifically implemented. BRIEF DESCRIPTION OF THE DRAWINGS The drawings, which are required to be used in the description of the prior art, are briefly described. It is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art will not be creatively labored. Further drawings can also be obtained from these drawings.
图1为本发明实施例一提供的机器人自动回位充电方法流程图;1 is a flowchart of a method for automatic return charging of a robot according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的机器人自动回位充电方法中步骤S140的流程图;2 is a flowchart of step S140 in the automatic return charging method of the robot according to the first embodiment of the present invention;
图3为本发明实施例一提供的获取归一化图像的方法流程图;3 is a flowchart of a method for acquiring a normalized image according to Embodiment 1 of the present invention;
图4为本发明实施例一提供的获取黑白图像的方法流程图;4 is a flowchart of a method for acquiring a black and white image according to Embodiment 1 of the present invention;
图5为本发明实施例一提供的根据黑白图像建立笛卡尔坐标系的方法流程图;FIG. 5 is a flowchart of a method for establishing a Cartesian coordinate system according to a black and white image according to Embodiment 1 of the present invention; FIG.
图6为本发明实施例一提供的根据笛卡尔坐标系控制机器人运动到预设的矫正点的方法流程图;6 is a flowchart of a method for controlling a robot to move to a preset correction point according to a Cartesian coordinate system according to Embodiment 1 of the present invention;
图7为本发明实施例一提供的机器人对正的方法流程图;FIG. 7 is a flowchart of a method for correcting a robot according to Embodiment 1 of the present invention; FIG.
图8为本发明实施例二提供的机器人自动回位充电系统的示意图。FIG. 8 is a schematic diagram of a robot automatic return charging system according to Embodiment 2 of the present invention.
图标:icon:
100-机器人;110-摄像头;120-中央控制器;130-运动单元;200-充电桩;210-MCU;220-传感器;230-LED点光源。100-robot; 110-camera; 120-central controller; 130-motion unit; 200-charging pile; 210-MCU; 220-sensor; 230-LED point source.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The embodiments of the present invention will be clearly and completely described in detail with reference to the accompanying drawings. An embodiment. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
目前机器人技术作为高新科技,已经逐步地渗透进我们生活的方方面面,机器人的充电是重要的环节,能够保证机器人处在电量充足的状态,实现有效的使用和工作。目前在用的机器人充电回位技术主要包括:红外线定位、超声波定位和蓝牙技术。但是,红外线无法穿透物体,只能够在视距范围内定位,且在传输过程中容易受到室内荧光灯干扰,所以会出现机器人无法找到充电基座的情况发生;超声波测距受多径效应和非视距传播影响很大;蓝牙定位的建立连接速度较慢,精度低,抗干扰能力差。基于此,本发明实施例提供的机器人自动回位充电方法和系统,可以节约机器人避障导航的设备成本,快速精准的识别目标系统,提高运动状态的稳定性,具有更强的实用性。At present, as a high-tech technology, robot technology has gradually penetrated into all aspects of our life. The charging of robots is an important link to ensure that the robot is in a state of sufficient power to achieve effective use and work. At present, the robot charging and returning technology mainly includes: infrared positioning, ultrasonic positioning and Bluetooth technology. However, infrared rays cannot penetrate objects, can only be positioned within the line of sight, and are easily interfered by indoor fluorescent lamps during transmission, so there is a case where the robot cannot find the charging base; ultrasonic ranging is affected by multipath effects and non- The line-of-sight propagation has a great influence; the Bluetooth connection establishes a slow connection speed, low precision, and poor anti-interference ability. Based on this, the automatic returning charging method and system for the robot provided by the embodiment of the invention can save the equipment cost of the obstacle avoidance navigation of the robot, quickly and accurately identify the target system, improve the stability of the motion state, and have greater practicability.
为便于对本实施例进行理解,首先对本发明实施例所公开的机器人自动回位充电方法进行详细介绍。In order to facilitate the understanding of the embodiment, the robot automatic return charging method disclosed in the embodiment of the present invention is first introduced in detail.
实施例一:Embodiment 1:
图1为本发明实施例一提供的机器人自动回位充电方法流程图。 FIG. 1 is a flowchart of a method for automatic return charging of a robot according to Embodiment 1 of the present invention.
参照图1,该方法包括以下步骤:Referring to Figure 1, the method includes the following steps:
步骤S110,机器人获取当前视野信息;Step S110, the robot acquires current view information;
具体的,机器人启用双目,依靠视觉测量原理对未知的环境进行探测,有效的获取当前视野信息,当前视野信息包括不明障碍物的信息,包括障碍物的实际形状、大小、尺寸和方位等。在自身电量不足时,识别充电桩,回到充电桩充电,极大的节约了机器人避障导航的设备成本。Specifically, the robot enables binoculars, relies on the principle of visual measurement to detect an unknown environment, and effectively obtains current field of view information, and the current field of view information includes information of unknown obstacles, including the actual shape, size, size, and orientation of the obstacle. When the battery is insufficient, the charging pile is recognized and returned to the charging pile for charging, which greatly saves the equipment cost of the robot for obstacle avoidance navigation.
步骤S120,根据当前视野信息判断目标系统是否在当前视野信息范围内;如果目标系统在当前视野信息范围内,则执行步骤S131;如果目标系统不在当前视野信息范围内,则执行步骤S132;In step S120, it is determined whether the target system is within the current field of view information according to the current field of view information; if the target system is within the current field of view information, step S131 is performed; if the target system is not within the current field of view information, step S132 is performed;
具体的,目标系统为充电桩,机器人在自身电量不足时,自动识别充电桩,回到充电桩充电,极大的节约了机器人避障导航的设备成本;机器人判断双目视觉能否在当前视野信息范围内直接看到充电桩的存在,如果目标系统在当前视野信息范围内,则执行步骤S131;如果目标系统不在当前视野信息范围内,则执行步骤S132。Specifically, the target system is a charging pile. When the robot has insufficient power, the robot automatically recognizes the charging pile and returns to the charging pile to charge, which greatly saves the equipment cost of the robot obstacle avoidance navigation; the robot determines whether the binocular vision can be in the current field of view. The existence of the charging pile is directly seen in the information range. If the target system is within the current field of view information, step S131 is performed; if the target system is not within the current field of view information, step S132 is performed.
步骤S131,对目标系统进行拍照,从而获取第一图像;Step S131, taking a picture of the target system, thereby acquiring the first image;
具体的,机器人启用双目,寻找充电桩头部设有的四个蓝色的LED点光源,并对该四个蓝色的LED点光源进行拍照从而获取第一图像。Specifically, the robot enables binoculars, looks for four blue LED point sources provided on the head of the charging pile, and takes photos of the four blue LED point sources to obtain a first image.
步骤S132,根据A*算法进行导航避障,直到目标系统在当前视野信息范围内为止;Step S132, performing navigation avoidance according to the A* algorithm until the target system is within the current field of view information range;
具体的,A*(A-Star)算法是一种静态路网中求解最短路径最有效的直接搜索方法,也是解决许多搜索问题的有效算法,算法中的距离估算值与实际值越接近,最终搜索速度越快;根据A*算法进行导航避障,直到可以直接看到充电桩的位置,便可以开始执行步骤S131。Specifically, the A*(A-Star) algorithm is the most effective direct search method for solving the shortest path in a static road network. It is also an effective algorithm for solving many search problems. The closer the distance estimate is to the actual value, the final. The faster the search speed is; the obstacle avoidance is performed according to the A* algorithm until the position of the charging pile can be directly seen, and step S131 can be started.
步骤S140,对第一图像进行处理,获取黑白图像;Step S140, processing the first image to obtain a black and white image;
具体的,将第一图像进行归一化处理和二值化处理,获取黑白图像。Specifically, the first image is subjected to normalization processing and binarization processing to obtain a black and white image.
步骤S150,根据黑白图像建立笛卡尔坐标系,并根据笛卡尔坐标系控制机器人运动到预设的矫正点;Step S150, establishing a Cartesian coordinate system according to the black and white image, and controlling the robot to move to a preset correction point according to the Cartesian coordinate system;
具体的,在笛卡尔坐标系,即XOY坐标系中,视觉测量更为精准,进而能保证机器人行走状态的稳定性和准确性;机器人在XOY坐标系中设定移动的起点和终点,并设置了3个到终点距离不同的矫正点,通过三个矫正点来调整自身的移动角度和距离,精确定位充电桩位置,具备相当的准确性和实用性。Specifically, in the Cartesian coordinate system, that is, the XOY coordinate system, the visual measurement is more accurate, thereby ensuring the stability and accuracy of the walking state of the robot; the robot sets the starting point and the ending point of the movement in the XOY coordinate system, and sets Three correction points with different distances to the end point are used to adjust the moving angle and distance of the three correction points to accurately locate the charging pile, which is quite accurate and practical.
步骤S160,当机器人运动到预设的矫正点后,机器人向目标系统发送驱动指令,以使目标系统根据驱动指令反馈脉冲信号给机器人;Step S160, after the robot moves to the preset correction point, the robot sends a driving instruction to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction;
具体的,通过三次矫正运动,定位到充电桩的位置后,机器人向充电桩上的MCU (Microcontroller Unit,微控制单元)发送驱动指令,以驱动传感器进行工作,发出固定频率为5KHz的脉冲,给机器人上传反馈脉冲信号。Specifically, after three times of correcting motion, after positioning the position of the charging pile, the robot goes to the MCU on the charging pile. (Microcontroller Unit, Micro Control Unit) sends a drive command to drive the sensor to work, sends a pulse with a fixed frequency of 5KHz, and sends a feedback pulse signal to the robot.
步骤S170,机器人进行与目标系统的对正,并向目标系统发送传感器指令,以使目标系统计算机器人所需的对正时间;Step S170, the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the alignment time required by the robot;
具体的,机器人再次精确定位,根据反馈脉冲信号进行对正,并向充电桩的MCU发送传感器指令,MCU接收到传感器指令之后,开始计算机器人的对正时间。本发明所涉及的传感器指令可以是但不限于红外线方式的红外传感器指令。Specifically, the robot is accurately positioned again, and is aligned according to the feedback pulse signal, and sends a sensor command to the MCU of the charging post. After receiving the sensor command, the MCU starts to calculate the alignment time of the robot. The sensor command according to the present invention may be, but not limited to, an infrared sensor command of an infrared type.
步骤S180,判断对正时间是否在预设的时间阈值内;是则执行步骤S190;否则重新执行步骤S170;Step S180, it is determined whether the alignment time is within a preset time threshold; if yes, step S190 is performed; otherwise, step S170 is re-executed;
步骤S190,对机器人开始充电。In step S190, the robot starts charging.
具体的,时间阈值可以为30秒;如果对正时间超过30秒,则关闭红外传感器,并回到步骤S170,重新开始进行对正;如果对正时间在30秒内,则完成对正后,机器人开始充电;充电桩上的四个蓝色的LED点光源用来显示充电电量,一个LED点光源亮表示充电25%,两个表示50%,三个表示75%,四个表示充满电100%;充满电之后,充电桩自动断电。Specifically, the time threshold may be 30 seconds; if the alignment time exceeds 30 seconds, the infrared sensor is turned off, and the process returns to step S170 to restart the alignment; if the alignment time is within 30 seconds, after the alignment is completed, The robot starts charging; the four blue LED point lights on the charging post are used to display the charging power. One LED point light is on to indicate charging 25%, two are 50%, three are 75%, and four are fully charged. %; After charging, the charging post is automatically powered off.
根据本发明实施例,如图2所示,上述实施例机器人自动回位充电方法中,步骤S140可采用如下步骤实现,包括:According to the embodiment of the present invention, as shown in FIG. 2, in the automatic return charging method of the robot in the above embodiment, step S140 can be implemented by the following steps, including:
步骤S210,将第一图像进行归一化处理,获取归一化图像;Step S210, normalizing the first image to obtain a normalized image;
步骤S220,将归一化图像进行二值化处理,获取黑白图像。In step S220, the normalized image is binarized to obtain a black and white image.
具体的,参照图3,步骤S210可采用如下步骤实现:Specifically, referring to FIG. 3, step S210 can be implemented by the following steps:
步骤S310,将第一图像进行通道分离,分别得到第一通道、第二通道和第三通道;Step S310, performing channel separation on the first image to obtain a first channel, a second channel, and a third channel, respectively;
其中,第一通道、第二通道和第三通道包括:第一图像包含四个蓝色LED点光源,将第一图像进行r(red,红色)、g(green,绿色)、b(blue,蓝色)三通道分离,分别得到r通道、g通道和b通道;The first channel, the second channel, and the third channel include: the first image includes four blue LED point light sources, and the first image is r (red, red), g (green, green), b (blue, Blue) three-channel separation, respectively obtaining r channel, g channel and b channel;
步骤S320,根据第一通道的值、第二通道的值和第三通道的值获取第二图像;Step S320, acquiring a second image according to the value of the first channel, the value of the second channel, and the value of the third channel;
其中,分离之后,对图像的每一个像素,用b通道的值减去r通道的值,再减去g通道的值,获取第二图像;After separating, for each pixel of the image, subtract the value of the r channel from the value of the b channel, and subtract the value of the g channel to obtain the second image;
步骤S330,将第二图像进行归一化处理,获取归一化图像。Step S330, normalizing the second image to obtain a normalized image.
其中,将第二图像进行归一化处理,这样,就得到了b通道中的纯蓝色区域的值最高,完全没有蓝色的区域的值最低的图像,同时避免了r通道和g通道的干扰。Wherein, the second image is normalized, so that the image with the highest value of the pure blue region in the b channel and the lowest value of the region without the blue color is obtained, and the r channel and the g channel are avoided. interference.
参照图4,步骤S220可采用如下步骤实现:Referring to FIG. 4, step S220 can be implemented by the following steps:
步骤S410,判断归一化图像中任一像素的像素值是否低于预设的像素阈值;如果低于, 则执行步骤S421;如果不低于,则执行步骤S422;Step S410, determining whether the pixel value of any pixel in the normalized image is lower than a preset pixel threshold; if lower, Step S421 is performed; if not, step S422 is performed;
步骤S421,将像素值设定为第一数值;Step S421, setting the pixel value to the first value;
步骤S422,将像素值设定为第二数值;Step S422, setting the pixel value to the second value;
步骤S430,通过二值化处理获取黑白图像。Step S430, obtaining a black and white image by binarization processing.
其中,预设的像素阈值为100,第一数值为0,第二数值为255;分解归一化图像的每个像素,如果某一像素的像素值低于100,则将其像素值变为0;如果某一像素的像素值高于100,则将其像素值设定为最高255;二值化处理后获取黑白图像。The preset pixel threshold is 100, the first value is 0, and the second value is 255; each pixel of the normalized image is decomposed, and if the pixel value of a certain pixel is lower than 100, the pixel value is changed to 0; if the pixel value of a certain pixel is higher than 100, the pixel value is set to a maximum of 255; after the binarization process, a black and white image is obtained.
根据本发明实施例,如图5所示,步骤S150中根据黑白图像建立笛卡尔坐标系的方法包括:According to an embodiment of the present invention, as shown in FIG. 5, the method for establishing a Cartesian coordinate system according to a black and white image in step S150 includes:
步骤S510,绘制将黑白图像中的白色区域外接的最小矩形,使最小矩形框住第一通道图像中的红光区;Step S510, drawing a minimum rectangle that circumscribes the white area in the black and white image, so that the smallest rectangle frames the red light area in the first channel image;
具体的,红光区为,将第一图片进行三通道分离后得到的r通道中的LED点光源的图片信息。将黑白图像中的白色区域用最小外接矩形框住,记下矩形的位置,在该位置框住分离出来的r通道图像中的四个圆形的红光区。Specifically, the red light area is picture information of the LED point light source in the r channel obtained by separating the first picture by three channels. The white area in the black and white image is framed by the minimum circumscribed rectangle, and the position of the rectangle is recorded, at which the four circular red areas in the separated r channel image are framed.
步骤S520,确定红光区的光心,利用双目测距原理获得目标系统中LED点光源在摄像头坐标系下的坐标;Step S520, determining the optical center of the red light region, and obtaining the coordinates of the LED point light source in the camera coordinate system in the target system by using the binocular ranging principle;
具体的,确定四个红光区的光心,将左摄像头图像里的四个红光区的光心分别与右摄像头图像的四个红光区的光心一一对应匹配,利用双目测距原理获得四个蓝色的LED点光源在摄像头坐标系下分别对应的四个坐标。Specifically, the optical centers of the four red light regions are determined, and the optical centers of the four red light regions in the left camera image are respectively matched with the optical centers of the four red light regions of the right camera image, and the binocular test is used. The distance principle obtains four coordinates corresponding to the four blue LED point sources in the camera coordinate system.
步骤S530,调用摄像头坐标系下的坐标,获得LED点光源在机器人坐标系下的坐标;Step S530, calling coordinates in the camera coordinate system to obtain coordinates of the LED point light source in the robot coordinate system;
具体的,设定四个蓝色的LED点光源在在机器人坐标系下的坐标分别为:左上(x1,y1)、右上(x2,y2)、左下(x3,y3)和右下(x4,y4)。Specifically, the coordinates of the four blue LED point sources in the robot coordinate system are: upper left (x1, y1), upper right (x2, y2), lower left (x3, y3), and lower right (x4, Y4).
步骤S540,根据机器人坐标系下的坐标获得中心点;Step S540, obtaining a center point according to coordinates in a robot coordinate system;
具体的,根据上一步获得的左参考点
Figure PCTCN2017107498-appb-000001
右参考点
Figure PCTCN2017107498-appb-000002
和中心点(x0,y0),由公式(1)可知:
Specifically, according to the left reference point obtained in the previous step
Figure PCTCN2017107498-appb-000001
Right reference point
Figure PCTCN2017107498-appb-000002
And the center point (x 0 , y 0 ), which is known by the formula (1):
Figure PCTCN2017107498-appb-000003
Figure PCTCN2017107498-appb-000003
步骤S550,以中心点为原点,建立笛卡尔坐标系。In step S550, a Cartesian coordinate system is established with the center point as the origin.
具体的,以中心点(x0,y0)为原点,左参考点指向右参考点为x正轴,建立笛卡尔坐标 系XOY坐标系。Specifically, the center point (x 0 , y 0 ) is taken as the origin, and the left reference point points to the right reference point as the x positive axis, and the Cartesian coordinate system XOY coordinate system is established.
根据本发明实施例,如图6所示,步骤S150中根据笛卡尔坐标系控制机器人运动到预设的矫正点的方法包括:According to an embodiment of the present invention, as shown in FIG. 6, the method for controlling the movement of the robot to the preset correction point according to the Cartesian coordinate system in step S150 includes:
步骤S610,计算机器人相对第一个矫正点的距离和角度,控制机器人运动到第一个矫正点处;Step S610, calculating a distance and an angle of the robot relative to the first correction point, and controlling the movement of the robot to the first correction point;
具体的,设定机器人在XOY坐标系下的坐标为(xr,yr);计算在XOY坐标系下机器人相对第一个矫正点(0,-1200)的距离d1和角度θ1,由公式(2)和公式(3)可知:Specifically, the coordinates of the robot in the XOY coordinate system are set to (xr, yr); the distance d1 and the angle θ1 of the robot relative to the first correction point (0, -1200) in the XOY coordinate system are calculated, by the formula (2) And formula (3) shows:
Figure PCTCN2017107498-appb-000004
Figure PCTCN2017107498-appb-000004
Figure PCTCN2017107498-appb-000005
Figure PCTCN2017107498-appb-000005
控制机器人运动到第一个矫正点处。Control the robot to move to the first correction point.
步骤S620,计算机器人相对第二个矫正点的距离和角度,控制机器人运动到第二个矫正点处;Step S620, calculating a distance and an angle of the robot relative to the second correction point, and controlling the movement of the robot to the second correction point;
具体的,此时机器人在第一矫正点处,,计算在XOY坐标系下机器人相对第二个矫正点(0,-800)的距离d2和角度θ2,由公式(4)和公式(5)可知:Specifically, at this time, the robot is at the first correction point, and calculates the distance d2 and the angle θ2 of the robot relative to the second correction point (0, -800) in the XOY coordinate system, by formula (4) and formula (5). It can be known that:
Figure PCTCN2017107498-appb-000006
Figure PCTCN2017107498-appb-000006
Figure PCTCN2017107498-appb-000007
Figure PCTCN2017107498-appb-000007
控制机器人运动到第二个矫正点处。Control the robot to move to the second correction point.
步骤S630,计算机器人相对第三个矫正点的距离和角度,控制机器人运动到第三个矫正点处,并结束视觉对正。Step S630, calculating the distance and angle of the robot relative to the third correction point, controlling the movement of the robot to the third correction point, and ending the visual alignment.
具体的,此时机器人在第二矫正点处,,计算在XOY坐标系下机器人相对第三个矫正点(0,-400)的距离d3和角度θ3,由公式(6)和公式(7)可知:Specifically, at this time, the robot is at the second correction point, and calculates the distance d3 and the angle θ3 of the robot relative to the third correction point (0, -400) in the XOY coordinate system, by formula (6) and formula (7). It can be known that:
Figure PCTCN2017107498-appb-000008
Figure PCTCN2017107498-appb-000008
Figure PCTCN2017107498-appb-000009
Figure PCTCN2017107498-appb-000009
控制机器人运动到第三个矫正点处;机器人从第二矫正点到达第三矫正点,机器人与充电桩处于相距30cm的距离,并处于视觉对正结束状态。The robot is controlled to move to the third correction point; the robot reaches the third correction point from the second correction point, and the robot is at a distance of 30 cm from the charging pile, and is in the visual alignment end state.
根据本发明实施例,如图7所示,步骤S170中机器人进行与目标系统的对正的方法包括:According to an embodiment of the present invention, as shown in FIG. 7, the method for the robot to perform alignment with the target system in step S170 includes:
步骤S710,利用红外接收管进行电压检测; Step S710, performing voltage detection by using an infrared receiving tube;
具体的,红外接收管安装在机器人上,数量为3个,处于同一水平线,并且间距相同。Specifically, the infrared receiving tube is mounted on the robot, the number is three, at the same horizontal line, and the spacing is the same.
步骤S720,检测红外接收管的电压的高低关系;Step S720, detecting a high-low relationship between voltages of the infrared receiving tubes;
步骤S730,如果右侧的红外接收管的电压较低,则机器人向右移动;Step S730, if the voltage of the infrared receiving tube on the right side is lower, the robot moves to the right;
步骤S740,如果左侧的红外接收管的电压较低,则机器人向左移动;Step S740, if the voltage of the infrared receiving tube on the left side is lower, the robot moves to the left;
步骤S750,如果左右两侧的红外接收管的电压一样,且中间的接收管电压较大时,则机器人直行。In step S750, if the voltages of the infrared receiving tubes on the left and right sides are the same, and the voltage of the receiving tube in the middle is large, the robot goes straight.
具体的,通过红外传感器进行再次精确定位后,机器人自转180°再退后,通过自带的3个红外接收管同时检测电压,根据距离越近输出电压越大进行左右移动,直到自身下方充电触片完全与充电桩下方充电触片靠紧,并开始充电。Specifically, after accurate positioning by the infrared sensor again, after the robot rotates 180° and retreats, the voltage is simultaneously detected by the three infrared receiving tubes that are provided, and the closer the output voltage is, the more the left and right movement is moved until the charging is under the self. The piece is completely against the charging contact under the charging post and begins to charge.
本发明提供了机器人自动回位充电方法,通过机器人获取当前视野信息,根据当前视野信息判断目标系统是否在当前视野信息范围内,如果目标系统在当前视野信息范围内,则对目标系统进行拍照,从而获取第一图像,将第一图像进行处理获取黑白图像,根据黑白图像建立笛卡尔坐标系,并根据笛卡尔坐标系控制机器人运动到预设的矫正点,在机器人运动到预设的矫正点后,机器人向目标系统发送驱动指令,以使目标系统根据驱动指令反馈脉冲信号给机器人,机器人进行与目标系统的对正,并向目标系统发送传感器指令,以使目标系统计算机器人的对正时间,如果机器人的对正时间在预设的时间阈值内,则机器人开始充电,如果机器人的对正时间不在预设的时间阈值内,则机器人重新进行与目标系统的对正,重新向目标系统发送传感器指令。本发明可以快速精准的识别目标系统,节约机器人避障导航的设备成本,并提高运动状态的稳定性,具有更强的实用性。The invention provides a robot automatic return charging method, which acquires current field of view information by the robot, determines whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information, photographs the target system. Thereby acquiring the first image, processing the first image to obtain a black and white image, establishing a Cartesian coordinate system according to the black and white image, and controlling the motion of the robot to the preset correction point according to the Cartesian coordinate system, and moving the robot to the preset correction point Afterwards, the robot sends a driving instruction to the target system, so that the target system feeds back the pulse signal to the robot according to the driving instruction, and the robot performs alignment with the target system, and sends a sensor instruction to the target system, so that the target system calculates the alignment time of the robot. If the alignment time of the robot is within a preset time threshold, the robot starts charging, and if the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system and re-sends to the target system. Sensor instruction. The invention can quickly and accurately identify the target system, save the equipment cost of the obstacle avoidance navigation of the robot, and improve the stability of the motion state, and has stronger practicability.
实施例二:Embodiment 2:
图8为本发明实施例二提供的机器人自动回位充电系统示意图。FIG. 8 is a schematic diagram of a robot automatic return charging system according to Embodiment 2 of the present invention.
参照图8,机器人自动回位充电系统包括机器人100和目标系统,其中,机器人100包括中央控制器120、摄像头110和运动单元130,目标系统包括充电桩200,充电桩200包括MCU210、传感器220和LED点光源230;Referring to FIG. 8 , the robot automatic return charging system includes a robot 100 and a target system, wherein the robot 100 includes a central controller 120, a camera 110 and a motion unit 130. The target system includes a charging post 200, and the charging post 200 includes an MCU 210, a sensor 220, and LED point light source 230;
摄像头110,用于机器人100获取当前视野信息,根据当前视野信息判断目标系统是否在当前视野信息范围内,如果目标系统在当前视野信息范围内,则对目标系统进行拍照,从而获取第一图像;The camera 110 is configured to acquire current field of view information by the robot 100, determine whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information, take a picture of the target system to obtain the first image;
具体的,摄像头110的数量为2个,且处在同一水平线。摄像头110作为机器人100的双目,寻找充电桩200头部设有的LED点光源230,并对LED点光源230进行拍照从而获取第一图像。另外,LED点光源230是4个呈矩形排列的蓝色的LED点光源,充电桩200为机器人100的电池进行充电。Specifically, the number of cameras 110 is two and is at the same horizontal line. As the binocular of the robot 100, the camera 110 looks for the LED point light source 230 provided at the head of the charging post 200, and takes a picture of the LED point light source 230 to acquire a first image. Further, the LED point light source 230 is four blue LED point light sources arranged in a rectangular shape, and the charging post 200 charges the battery of the robot 100.
中央控制器120,用于对第一图像进行处理,获取黑白图像,根据黑白图像建立笛卡尔 坐标系,并且在机器人100运动到预设的矫正点后,机器人100向目标系统发送驱动指令,同时控制机器人100进行与目标系统的对正,并向目标系统发送传感器指令;The central controller 120 is configured to process the first image, obtain a black and white image, and establish a Cartesian according to the black and white image. a coordinate system, and after the robot 100 moves to a preset correction point, the robot 100 sends a drive command to the target system, while controlling the robot 100 to perform alignment with the target system, and transmitting a sensor command to the target system;
具体的,在目标系统不在当前视野信息范围内的情况下,中央控制器120,还用于控制运动单元130按照A*算法进行导航避障,直到充电桩200在当前视野信息范围内为止;Specifically, the central controller 120 is further configured to control the motion unit 130 to perform navigation avoidance according to the A* algorithm until the charging station 200 is within the current visual field information range;
中央控制器120,通过将第一图像进行归一化处理,获取归一化图像;将归一化图像进行二值化处理,获取黑白图像;The central controller 120 obtains a normalized image by normalizing the first image; performing binarization processing on the normalized image to obtain a black and white image;
中央控制器120,通过分别计算机器人100相对第一个矫正点、第二个矫正点和第三个矫正点的距离和角度,控制机器人100最终运动到第三个矫正点处,并结束视觉对正;然后,中央控制器120向MCU210发送驱动指令;The central controller 120 controls the robot 100 to finally move to the third correction point by calculating the distance and angle of the robot 100 with respect to the first correction point, the second correction point, and the third correction point, respectively, and ends the visual pair. Positive; then, the central controller 120 sends a drive command to the MCU 210;
中央控制器120,通过利用红外接收管进行电压检测;检测红外接收管的电压的高低关系;如果右侧的红外接收管的电压较低,则机器人100向右移动;如果左侧的红外接收管的电压较低,则机器人100向左移动;如果左右两侧的红外接收管的电压一样,且中间的接收管电压较大时,则机器人100直行;此时完成机器人100与充电桩200的对正,中央控制器120向MCU210发送传感器指令。The central controller 120 performs voltage detection by using an infrared receiving tube; detects the relationship between the voltage of the infrared receiving tube; if the voltage of the infrared receiving tube on the right side is lower, the robot 100 moves to the right; if the infrared receiving tube on the left side When the voltage is low, the robot 100 moves to the left; if the voltages of the infrared receiving tubes on the left and right sides are the same, and the intermediate receiving tube voltage is large, the robot 100 goes straight; at this time, the pair of the robot 100 and the charging pile 200 is completed. Positive, central controller 120 sends sensor commands to MCU 210.
运动单元130,用于根据笛卡尔坐标系控制机器人100运动到预设的矫正点;a motion unit 130, configured to control the robot 100 to move to a preset correction point according to a Cartesian coordinate system;
具体的,运动单元130受中央控制器120的控制进行运动;运动单元130根据笛卡尔坐标系,依次运动到三个预设的矫正点,结束视觉对正;运动单元130完成机器人100的180°自转后,根据检测电压的高低关系进行左右移动,实现机器人100下方充电触片完全与充电桩200下方充电触片靠紧以开始充电。Specifically, the motion unit 130 is controlled by the control of the central controller 120; the motion unit 130 sequentially moves to three preset correction points according to the Cartesian coordinate system to end the visual alignment; the motion unit 130 completes the 180° of the robot 100. After the rotation, the left and right movement is performed according to the relationship between the detection voltages, so that the charging contact under the robot 100 is completely close to the charging contact under the charging post 200 to start charging.
MCU210,用于接收驱动指令,并根据驱动指令控制传感器220,同时接收传感器指令,并计算机器人100所需的对正时间,如果机器人100的对正时间在预设的时间阈值内,则对机器人100开始充电;The MCU 210 is configured to receive a driving instruction, and control the sensor 220 according to the driving instruction, receive the sensor instruction, and calculate a matching time required by the robot 100. If the alignment time of the robot 100 is within a preset time threshold, the robot is 100 starts charging;
具体的,MCU210设置于充电桩200内部,接收来自中央控制器120的驱动指令,并根据驱动指令控制传感器220给机器人100反馈脉冲信号。MCU210接收到传感器指令之后,开始计算机器人100的对正时间,在对正时间在预设的时间阈值内的情况下,充电桩200对机器人100开始充电;在对正时间不在预设的时间阈值内的情况下,中央控制器120重新进行机器人100与充电桩200的对正,MCU210重新接收来自中央控制器120的传感器指令。本发明所涉及的传感器指令可以是但不限于红外线方式的红外传感器指令。Specifically, the MCU 210 is disposed inside the charging post 200, receives a driving command from the central controller 120, and controls the sensor 220 to feed back the pulse signal to the robot 100 according to the driving instruction. After receiving the sensor command, the MCU 210 starts to calculate the alignment time of the robot 100. When the alignment time is within the preset time threshold, the charging post 200 starts charging the robot 100; the alignment time is not at the preset time threshold. In the case of the inside, the central controller 120 re-aligns the robot 100 with the charging post 200, and the MCU 210 receives the sensor command from the central controller 120 again. The sensor command according to the present invention may be, but not limited to, an infrared sensor command of an infrared type.
传感器220,用于根据驱动指令反馈脉冲信号给机器人100。The sensor 220 is configured to feed back a pulse signal to the robot 100 according to the driving instruction.
具体的,传感器220受MCU210控制,发出固定频率为5KHz的脉冲,给机器人100上传反馈脉冲信号。Specifically, the sensor 220 is controlled by the MCU 210 to emit a pulse having a fixed frequency of 5 kHz, and the feedback signal is sent to the robot 100.
根据本发明实施例,中央控制器120,还用于绘制将黑白图像中的白色区域外接的最小 矩形,使最小矩形框住第一通道图像中的红光区,确定红光区的光心,利用双目测距原理获得目标系统中LED点光源230在摄像头坐标系下的坐标,调用摄像头坐标系下的坐标,获得LED点光源230在机器人坐标系下的坐标,根据机器人坐标系下的坐标获得中心点,以中心点为原点,建立笛卡尔坐标系。According to an embodiment of the invention, the central controller 120 is further configured to draw a minimum of the white area in the black and white image. Rectangular, so that the smallest rectangle frames the red light region in the first channel image, determines the optical center of the red light region, and uses the binocular ranging principle to obtain the coordinates of the LED point light source 230 in the camera coordinate system in the target system, and call the camera coordinates. Based on the coordinates, the coordinates of the LED point source 230 in the robot coordinate system are obtained, the center point is obtained according to the coordinates in the robot coordinate system, and the Cartesian coordinate system is established with the center point as the origin.
本发明提供机器人自动回位充电系统,包括机器人和目标系统,通过机器人获取当前视野信息,根据当前视野信息判断目标系统是否在当前视野信息范围内,如果目标系统在当前视野信息范围内,则对目标系统进行拍照,从而获取第一图像,将第一图像进行处理获取黑白图像,根据黑白图像建立笛卡尔坐标系,并根据笛卡尔坐标系控制机器人运动到预设的矫正点,在机器人运动到预设的矫正点后,机器人向目标系统发送驱动指令,以使目标系统根据驱动指令反馈脉冲信号给机器人,机器人进行与目标系统的对正,并向目标系统发送传感器指令,以使目标系统计算机器人的对正时间,如果机器人的对正时间在预设的时间阈值内,则机器人开始充电,如果机器人的对正时间不在预设的时间阈值内,则机器人重新进行与目标系统的对正,重新向目标系统发送传感器指令。本发明可以快速精准的识别目标系统,节约机器人避障导航的设备成本,并提高运动状态的稳定性,具有更强的实用性。The invention provides a robot automatic return charging system, comprising a robot and a target system, acquiring current field of view information by the robot, determining whether the target system is within the current field of view information according to the current field of view information, and if the target system is within the current field of view information, The target system takes a picture to obtain a first image, processes the first image to obtain a black and white image, establishes a Cartesian coordinate system according to the black and white image, and controls the robot to move to a preset correction point according to the Cartesian coordinate system, and the robot moves to After the preset correction point, the robot sends a drive command to the target system, so that the target system feeds back the pulse signal to the robot according to the drive command, and the robot performs alignment with the target system, and sends a sensor command to the target system to calculate the target system. The alignment time of the robot, if the alignment time of the robot is within a preset time threshold, the robot starts charging, and if the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system, Re-targeting system Feed sensor instruction. The invention can quickly and accurately identify the target system, save the equipment cost of the obstacle avoidance navigation of the robot, and improve the stability of the motion state, and has stronger practicability.
本发明实施例所提供的机器人自动回位充电方法和系统的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。A computer program product for a robot automatic return charging method and system according to an embodiment of the present invention, comprising a computer readable storage medium storing program code, the program code comprising instructions for performing the method described in the foregoing method embodiment For the specific implementation, refer to the method embodiment, and details are not described herein again.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system and the device described above can refer to the corresponding process in the foregoing method embodiments, and details are not described herein again.
另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, the terms "installation", "connected", and "connected" are to be understood broadly, and may be a fixed connection or a detachable connection, unless otherwise explicitly defined and defined. , or connected integrally; may be mechanical connection or electrical connection; may be directly connected, or may be indirectly connected through an intermediate medium, and may be internal communication between the two elements. The specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的 介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used 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. medium.
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it is to be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. The orientation or positional relationship of the indications is based on the orientation or positional relationship shown in the drawings, and is merely for the convenience of the description of the invention and the simplified description, rather than indicating or implying that the device or component referred to has a specific orientation, in a specific orientation. The construction and operation are therefore not to be construed as limiting the invention. Moreover, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that the terms "installation", "connected", and "connected" are to be understood broadly, and may be fixed or detachable, for example, unless otherwise explicitly defined and defined. Connected, or integrally connected; can be mechanical or electrical; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of the two components. The specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 Finally, it should be noted that the above-mentioned embodiments are merely specific embodiments of the present invention, and are used to explain the technical solutions of the present invention, and are not limited thereto, and the scope of protection of the present invention is not limited thereto, although reference is made to the foregoing. The present invention has been described in detail, and those skilled in the art should understand that any one skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present invention. The changes may be easily conceived, or equivalents may be substituted for some of the technical features. The modifications, variations, or substitutions of the present invention are not intended to depart from the spirit and scope of the technical solutions of the embodiments of the present invention. Within the scope of protection. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (10)

  1. 一种机器人自动回位充电方法,其特征在于,包括:A robot automatic return charging method, characterized in that it comprises:
    机器人获取当前视野信息;The robot acquires current view information;
    根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内;Determining, according to the current view information, whether the target system is within the current view information range;
    如果所述目标系统在所述当前视野信息范围内,则对所述目标系统进行拍照,从而获取第一图像;If the target system is within the current field of view information, taking a picture of the target system to obtain a first image;
    对所述第一图像进行处理,获取黑白图像;Processing the first image to obtain a black and white image;
    根据所述黑白图像建立笛卡尔坐标系,并根据所述笛卡尔坐标系控制所述机器人运动到预设的矫正点;Establishing a Cartesian coordinate system according to the black and white image, and controlling the robot to move to a preset correction point according to the Cartesian coordinate system;
    当所述机器人运动到所述预设的矫正点后,所述机器人向所述目标系统发送驱动指令,以使所述目标系统根据所述驱动指令反馈脉冲信号给所述机器人;After the robot moves to the preset correction point, the robot sends a driving instruction to the target system, so that the target system feeds back a pulse signal to the robot according to the driving instruction;
    所述机器人进行与所述目标系统的对正,并向所述目标系统发送传感器指令,以使所述目标系统计算所述机器人所需的对正时间;The robot performs alignment with the target system and sends a sensor command to the target system to cause the target system to calculate a alignment time required by the robot;
    判断所述对正时间是否在预设的时间阈值内;Determining whether the alignment time is within a preset time threshold;
    如果所述机器人的对正时间在所述预设的时间阈值内,则对所述机器人开始充电;If the alignment time of the robot is within the preset time threshold, charging the robot to start;
    如果所述机器人的对正时间不在所述预设的时间阈值内,则所述机器人重新进行与所述目标系统的对正,并重新向所述目标系统发送传感器指令,以使所述目标系统计算所述机器人所需的对正时间。If the alignment time of the robot is not within the preset time threshold, the robot re-aligns with the target system and re-sends sensor commands to the target system to make the target system Calculate the alignment time required for the robot.
  2. 根据权利要求1所述的机器人自动回位充电方法,其特征在于,所述根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内包括:The robot automatic return charging method according to claim 1, wherein the determining, according to the current view information, whether the target system is within the current view information range comprises:
    如果所述目标系统不在所述当前视野信息范围内,则根据A*算法进行导航避障,直到所述目标系统在所述当前视野信息范围内为止。If the target system is not within the current view information range, the navigation obstacle avoidance is performed according to the A* algorithm until the target system is within the current view information range.
  3. 根据权利要求1所述的机器人自动回位充电方法,其特征在于,所述对所述第一图像进行处理,获取黑白图像包括:The automatic return charging method of the robot according to claim 1, wherein the processing the first image to obtain a black and white image comprises:
    将所述第一图像进行归一化处理,获取归一化图像;Normalizing the first image to obtain a normalized image;
    将所述归一化图像进行二值化处理,获取黑白图像。The normalized image is binarized to obtain a black and white image.
  4. 根据权利要求3所述的机器人自动回位充电方法,其特征在于,所述将所述第一图像进行归一化处理,获取归一化图像包括:The robot automatic return charging method according to claim 3, wherein the normalizing the first image to obtain a normalized image comprises:
    将所述第一图像进行通道分离,分别得到第一通道、第二通道和第三通道;Performing channel separation on the first image to obtain a first channel, a second channel, and a third channel, respectively;
    根据所述第一通道的值、所述第二通道的值和所述第三通道的值获取第二图像; Obtaining a second image according to the value of the first channel, the value of the second channel, and the value of the third channel;
    将所述第二图像进行归一化处理,获取所述归一化图像。The second image is normalized to obtain the normalized image.
  5. 根据权利要求3所述的机器人自动回位充电方法,其特征在于,所述将所述归一化图像进行二值化处理,获取黑白图像包括:The robot automatic return charging method according to claim 3, wherein the performing the binarization processing on the normalized image to obtain a black and white image comprises:
    判断所述归一化图像中任一像素的像素值是否低于预设的像素阈值;Determining whether a pixel value of any pixel in the normalized image is lower than a preset pixel threshold;
    如果低于,则将所述像素值设定为第一数值;If it is lower, the pixel value is set to a first value;
    如果高于,则将所述像素值设定为第二数值;If it is higher, the pixel value is set to a second value;
    通过二值化处理获取所述黑白图像。The black and white image is acquired by binarization processing.
  6. 根据权利要求1所述的机器人自动回位充电方法,其特征在于,所述根据所述黑白图像建立笛卡尔坐标系包括:The robot automatic return charging method according to claim 1, wherein the establishing a Cartesian coordinate system according to the black and white image comprises:
    绘制将所述黑白图像中的白色区域外接的最小矩形,使所述最小矩形框住第一通道图像中的红光区;Draw a minimum rectangle circumscribing the white area in the black and white image, so that the minimum rectangle frames the red light area in the first channel image;
    确定所述红光区的光心,利用双目测距原理获得所述目标系统中LED点光源在摄像头坐标系下的坐标;Determining an optical center of the red light region, and obtaining a coordinate of the LED point light source in the camera coordinate system in the target system by using a binocular ranging principle;
    调用所述摄像头坐标系下的坐标,获得所述LED点光源在机器人坐标系下的坐标;Calling coordinates of the camera coordinate system to obtain coordinates of the LED point source in the robot coordinate system;
    根据所述机器人坐标系下的坐标获得中心点;Obtaining a center point according to coordinates in the robot coordinate system;
    以所述中心点为原点,建立所述笛卡尔坐标系。The Cartesian coordinate system is established with the center point as an origin.
  7. 根据权利要求1所述的机器人自动回位充电方法,其特征在于,所述并根据所述笛卡尔坐标系控制所述机器人运动到预设的矫正点包括:The robot automatic return charging method according to claim 1, wherein the controlling the movement of the robot to a preset correction point according to the Cartesian coordinate system comprises:
    计算所述机器人相对第一个矫正点的距离和角度,控制机器人运动到第一个矫正点处;Calculating the distance and angle of the robot relative to the first correction point, and controlling the movement of the robot to the first correction point;
    计算所述机器人相对第二个矫正点的距离和角度,控制机器人运动到第二个矫正点处;Calculating a distance and an angle of the robot relative to the second correction point, and controlling the movement of the robot to the second correction point;
    计算所述机器人相对第三个矫正点的距离和角度,控制机器人运动到第三个矫正点处,并结束视觉对正。Calculate the distance and angle of the robot relative to the third correction point, control the robot movement to the third correction point, and end the visual alignment.
  8. 根据权利要求1所述的机器人自动回位充电方法,其特征在于,所述机器人进行与所述目标系统的对正包括:The robot automatic return charging method according to claim 1, wherein the robot performs alignment with the target system, including:
    利用红外接收管进行电压检测;Using an infrared receiving tube for voltage detection;
    检测所述红外接收管的电压的高低关系;Detecting a relationship between a voltage of the infrared receiving tube;
    如果右侧的所述红外接收管的电压较低,则所述机器人向右移动;If the voltage of the infrared receiving tube on the right side is lower, the robot moves to the right;
    如果左侧的所述红外接收管的电压较低,则所述机器人向左移动; If the voltage of the infrared receiving tube on the left side is low, the robot moves to the left;
    如果左右两侧的所述红外接收管的电压一样,且中间的所述接收管电压较大时,则所述机器人直行。If the voltages of the infrared receiving tubes on the left and right sides are the same, and the voltage of the receiving tube in the middle is large, the robot goes straight.
  9. 一种机器人自动回位充电系统,其特征在于,包括机器人(100)和目标系统,其中,所述机器人(100)包括中央控制器(120)、摄像头(110)和运动单元(130),所述目标系统包括充电桩(200),所述充电桩(200)设有MCU(210)和传感器(220);A robot automatic return charging system, comprising: a robot (100) and a target system, wherein the robot (100) comprises a central controller (120), a camera (110) and a motion unit (130), The target system includes a charging pile (200), and the charging pile (200) is provided with an MCU (210) and a sensor (220);
    所述摄像头(110),被配置成所述机器人(100)获取当前视野信息,根据所述当前视野信息判断目标系统是否在所述当前视野信息范围内,如果所述目标系统在所述当前视野信息范围内,则对所述目标系统进行拍照,从而获取第一图像;The camera (110) is configured to acquire the current visual field information by the robot (100), determine, according to the current visual field information, whether the target system is within the current visual field information range, if the target system is in the current visual field Within the scope of the information, the target system is photographed to obtain the first image;
    所述中央控制器(120),被配置成对所述第一图像进行处理,获取黑白图像,根据黑白图像建立笛卡尔坐标系,并且在所述机器人(100)运动到预设的矫正点后,所述机器人(100)向所述目标系统发送驱动指令,同时控制所述机器人(100)进行与所述目标系统的对正,并向所述目标系统发送传感器指令;The central controller (120) is configured to process the first image, acquire a black and white image, establish a Cartesian coordinate system according to the black and white image, and after the robot (100) moves to a preset correction point The robot (100) sends a drive command to the target system while controlling the robot (100) to perform alignment with the target system and send a sensor command to the target system;
    所述运动单元(130),被配置成根据所述笛卡尔坐标系控制所述机器人(100)运动到预设的矫正点;The motion unit (130) is configured to control the movement of the robot (100) to a preset correction point according to the Cartesian coordinate system;
    所述MCU(210),被配置成接收所述驱动指令,并根据所述驱动指令控制所述传感器(220),同时接收所述传感器指令,并计算所述机器人(100)所需的对正时间,如果所述机器人(100)的对正时间在预设的时间阈值内,则对所述机器人(100)开始充电;The MCU (210) is configured to receive the driving instruction, and control the sensor (220) according to the driving instruction, simultaneously receive the sensor instruction, and calculate a required alignment of the robot (100) Time, if the alignment time of the robot (100) is within a preset time threshold, charging the robot (100) begins;
    所述传感器(220),被配置成根据所述驱动指令反馈脉冲信号给所述机器人(100)。The sensor (220) is configured to feed back a pulse signal to the robot (100) in accordance with the drive command.
  10. 根据权利要求9所述的机器人自动回位充电系统,其特征在于,所述中央控制器(120),还被配置成绘制将所述黑白图像中的白色区域外接的最小矩形,使所述最小矩形框住第一通道图像中的红光区,确定所述红光区的光心,利用双目测距原理获得所述目标系统中LED点光源(230)在摄像头坐标系下的坐标,调用所述摄像头坐标系下的坐标,获得所述LED点光源(230)在机器人坐标系下的坐标,根据所述机器人坐标系下的坐标获得中心点,以所述中心点为原点,建立所述笛卡尔坐标系。 The robot automatic return charging system according to claim 9, wherein said central controller (120) is further configured to draw a minimum rectangle circumscribing a white area in said black and white image to minimize said minimum Rectangularly framing the red light region in the image of the first channel, determining the optical center of the red light region, using the binocular ranging principle to obtain the coordinates of the LED point light source (230) in the target system in the camera coordinate system, calling a coordinate of the camera coordinate system, obtaining coordinates of the LED point light source (230) in a robot coordinate system, obtaining a center point according to coordinates in the robot coordinate system, and establishing the center point with the center point as an origin Cartesian coordinate system.
PCT/CN2017/107498 2016-10-28 2017-10-24 Method and system for enabling robot to automatically return for charging WO2018077164A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610971722.0 2016-10-28
CN201610971722.0A CN106444777B (en) 2016-10-28 2016-10-28 Automatic returning and charging method and system for robot

Publications (1)

Publication Number Publication Date
WO2018077164A1 true WO2018077164A1 (en) 2018-05-03

Family

ID=58180897

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107498 WO2018077164A1 (en) 2016-10-28 2017-10-24 Method and system for enabling robot to automatically return for charging

Country Status (2)

Country Link
CN (1) CN106444777B (en)
WO (1) WO2018077164A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221602A (en) * 2019-05-06 2019-09-10 上海秒针网络科技有限公司 Target object method for catching and device, storage medium and electronic device
CN110716204A (en) * 2019-09-29 2020-01-21 北京京东乾石科技有限公司 Charging pile structure identification method and device
CN110768331A (en) * 2019-10-24 2020-02-07 浙江大华机器人技术有限公司 Robot charging method and related equipment
CN110865645A (en) * 2019-11-29 2020-03-06 小狗电器互联网科技(北京)股份有限公司 Robot and recharging system
CN111784655A (en) * 2020-06-24 2020-10-16 江苏科技大学 Underwater robot recovery positioning method
CN112147994A (en) * 2019-06-28 2020-12-29 深圳市优必选科技股份有限公司 Robot and recharging control method and device thereof
CN112241944A (en) * 2019-07-16 2021-01-19 杭州海康机器人技术有限公司 AGV dispatching system, material pose correction method and material pose correction device
CN112486155A (en) * 2019-09-10 2021-03-12 深圳拓邦股份有限公司 Automatic recharging method and system
CN112540604A (en) * 2019-12-28 2021-03-23 深圳优地科技有限公司 Robot charging system and method and terminal equipment
CN112821519A (en) * 2020-12-22 2021-05-18 广州赛特智能科技有限公司 Automatic pile charging system and method for robot
CN113220379A (en) * 2021-05-11 2021-08-06 中电金信软件有限公司 Task processing method and device, electronic equipment and readable storage medium
CN113359777A (en) * 2021-07-20 2021-09-07 山东新一代信息产业技术研究院有限公司 Automatic pile returning and charging method and system for robot
CN113703456A (en) * 2021-08-30 2021-11-26 山东新一代信息产业技术研究院有限公司 Automatic pile returning and charging method of robot based on multiple sensors

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444777B (en) * 2016-10-28 2019-12-17 北京进化者机器人科技有限公司 Automatic returning and charging method and system for robot
CN109991969A (en) * 2017-12-29 2019-07-09 周秦娜 A kind of control method and device that the robot based on depth transducer makes a return voyage automatically
CN108177163A (en) * 2018-01-15 2018-06-19 湖州丽瀑能源工程技术有限公司 Can automatic charging intelligent robot and its charging method
CN109031205B (en) * 2018-07-18 2020-11-03 北京进化者机器人科技有限公司 Robot positioning device, method and robot
CN110838144B (en) * 2018-08-15 2022-09-30 杭州萤石软件有限公司 Charging equipment identification method, mobile robot and charging equipment identification system
CN110893085B (en) * 2018-09-11 2021-12-31 原相科技股份有限公司 Cleaning robot and charging path determining method thereof
CN112783146A (en) * 2019-11-11 2021-05-11 苏州宝时得电动工具有限公司 Self-moving equipment guiding method and device and self-moving equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003285288A (en) * 2002-03-27 2003-10-07 Sony Corp Charging system, charge control method, robot, charger, and charge control program and recording medium
KR20080050232A (en) * 2006-12-02 2008-06-05 한국전자통신연구원 Apparatus and method for automatic robot recharging with a camera and non-visible light sensors
CN102545284A (en) * 2010-12-20 2012-07-04 苏州宝时得电动工具有限公司 Docking system
CN105242670A (en) * 2015-10-26 2016-01-13 深圳拓邦股份有限公司 Robot having function of automatic return charging, system and corresponding method
CN105717928A (en) * 2016-04-26 2016-06-29 北京进化者机器人科技有限公司 Vision-based robot navigation door-passing method
CN106444777A (en) * 2016-10-28 2017-02-22 北京进化者机器人科技有限公司 Robot automatic return charging method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635730B (en) * 2013-11-13 2017-07-28 沈阳新松机器人自动化股份有限公司 A kind of robot autonomous charging method
KR101607671B1 (en) * 2015-01-14 2016-03-31 (주)바램시스템 Mobile robot and method for docking with charge station of mobile robot
CN105739501B (en) * 2016-04-01 2017-09-26 北京云迹科技有限公司 A kind of method of intelligent robot automatic charging
CN106026288A (en) * 2016-07-18 2016-10-12 旗瀚科技有限公司 Robot automatic charging system and charging method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003285288A (en) * 2002-03-27 2003-10-07 Sony Corp Charging system, charge control method, robot, charger, and charge control program and recording medium
KR20080050232A (en) * 2006-12-02 2008-06-05 한국전자통신연구원 Apparatus and method for automatic robot recharging with a camera and non-visible light sensors
CN102545284A (en) * 2010-12-20 2012-07-04 苏州宝时得电动工具有限公司 Docking system
CN105242670A (en) * 2015-10-26 2016-01-13 深圳拓邦股份有限公司 Robot having function of automatic return charging, system and corresponding method
CN105717928A (en) * 2016-04-26 2016-06-29 北京进化者机器人科技有限公司 Vision-based robot navigation door-passing method
CN106444777A (en) * 2016-10-28 2017-02-22 北京进化者机器人科技有限公司 Robot automatic return charging method and system

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221602B (en) * 2019-05-06 2022-04-26 上海秒针网络科技有限公司 Target object capturing method and device, storage medium and electronic device
CN110221602A (en) * 2019-05-06 2019-09-10 上海秒针网络科技有限公司 Target object method for catching and device, storage medium and electronic device
CN112147994A (en) * 2019-06-28 2020-12-29 深圳市优必选科技股份有限公司 Robot and recharging control method and device thereof
CN112241944B (en) * 2019-07-16 2024-03-29 杭州海康机器人股份有限公司 AGV scheduling system, material pose correction method and material pose correction device
CN112241944A (en) * 2019-07-16 2021-01-19 杭州海康机器人技术有限公司 AGV dispatching system, material pose correction method and material pose correction device
CN112486155A (en) * 2019-09-10 2021-03-12 深圳拓邦股份有限公司 Automatic recharging method and system
CN112486155B (en) * 2019-09-10 2024-04-02 深圳拓邦股份有限公司 Automatic recharging method and system
CN110716204B (en) * 2019-09-29 2024-04-12 北京京东乾石科技有限公司 Charging pile structure identification method and device
CN110716204A (en) * 2019-09-29 2020-01-21 北京京东乾石科技有限公司 Charging pile structure identification method and device
CN110768331A (en) * 2019-10-24 2020-02-07 浙江大华机器人技术有限公司 Robot charging method and related equipment
CN110865645A (en) * 2019-11-29 2020-03-06 小狗电器互联网科技(北京)股份有限公司 Robot and recharging system
CN110865645B (en) * 2019-11-29 2023-08-11 小狗电器互联网科技(北京)股份有限公司 Robot and recharging system
CN112540604A (en) * 2019-12-28 2021-03-23 深圳优地科技有限公司 Robot charging system and method and terminal equipment
CN111784655A (en) * 2020-06-24 2020-10-16 江苏科技大学 Underwater robot recovery positioning method
CN111784655B (en) * 2020-06-24 2023-11-24 江苏科技大学 Underwater robot recycling and positioning method
CN112821519A (en) * 2020-12-22 2021-05-18 广州赛特智能科技有限公司 Automatic pile charging system and method for robot
CN113220379A (en) * 2021-05-11 2021-08-06 中电金信软件有限公司 Task processing method and device, electronic equipment and readable storage medium
CN113359777A (en) * 2021-07-20 2021-09-07 山东新一代信息产业技术研究院有限公司 Automatic pile returning and charging method and system for robot
CN113703456A (en) * 2021-08-30 2021-11-26 山东新一代信息产业技术研究院有限公司 Automatic pile returning and charging method of robot based on multiple sensors

Also Published As

Publication number Publication date
CN106444777A (en) 2017-02-22
CN106444777B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
WO2018077164A1 (en) Method and system for enabling robot to automatically return for charging
JP6626954B2 (en) Imaging device and focus control method
US10427304B2 (en) Robotic charger alignment
US11810376B2 (en) Method, apparatus and storage medium for detecting small obstacles
CN106708048B (en) Ceiling image positioning method and system for robot
US20220161430A1 (en) Recharging Control Method of Desktop Robot
US11537696B2 (en) Method and apparatus for turning on screen, mobile terminal and storage medium
WO2018121617A1 (en) Detection method for positioning accuracy, electronic device and computer storage medium
EP3171334A1 (en) Pose estimation apparatus and vacuum cleaner system
US10917628B2 (en) IR pattern characteristics for active stereo matching
CN105242670A (en) Robot having function of automatic return charging, system and corresponding method
EP3703387A1 (en) Collection device, sound collection method, and sound source tracking system and method therefor
EP3127586B1 (en) Interactive system, remote controller and operating method thereof
US20230057965A1 (en) Robot and control method therefor
CN110238838B (en) Autonomous moving apparatus, autonomous moving method, and storage medium
US10771766B2 (en) Method and apparatus for active stereo vision
Caldini et al. Smartphone-based obstacle detection for the visually impaired
KR20230065978A (en) Systems, methods and media for directly repairing planar surfaces in a scene using structured light
Rasch et al. Tidy up my room: Multi-agent cooperation for service tasks in smart environments
US8301305B2 (en) Moving devices and controlling methods therefor
TWI734092B (en) Method and apparatus of depth fusion
CN106204516B (en) Automatic charging method and device for robot
CN110444102B (en) Map construction method and device and unmanned equipment
Tripathi et al. Analysis of obstruction avoidance assistants to enhance the mobility of visually impaired person: A systematic review
EP4163675B1 (en) Illuminating an environment for localisation

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17864810

Country of ref document: EP

Kind code of ref document: A1