WO2023025028A1 - Charging method, charging apparatus, and robot - Google Patents

Charging method, charging apparatus, and robot Download PDF

Info

Publication number
WO2023025028A1
WO2023025028A1 PCT/CN2022/113273 CN2022113273W WO2023025028A1 WO 2023025028 A1 WO2023025028 A1 WO 2023025028A1 CN 2022113273 W CN2022113273 W CN 2022113273W WO 2023025028 A1 WO2023025028 A1 WO 2023025028A1
Authority
WO
WIPO (PCT)
Prior art keywords
robot
point cloud
cloud data
pose
charging stand
Prior art date
Application number
PCT/CN2022/113273
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 WO2023025028A1 publication Critical patent/WO2023025028A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4002Installations of electric equipment
    • A47L11/4005Arrangements of batteries or cells; Electric power supply arrangements
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4011Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits

Definitions

  • the present invention relates to the communication field, in particular, to a charging method, a charging device and a robot.
  • the second is to set a specific concave-convex structure for the charging stand, or add reflective stickers of different intensities, use the detection sensor to scan the above structure, and then perform data matching between the scanned structure and the preset structure.
  • This method can improve the recognition accuracy, but this method is harmful to The structural requirements are high, and the concave-convex structure may cause dirt residue, and the consumables of the reflective stickers are vulnerable to weaken the features.
  • the autonomous recharging method in the related art has the problems of relatively low accuracy in identifying the charging stand and the identification method is not universal.
  • Embodiments of the present invention provide a charging method, a charging device, and a robot, so as to at least solve the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
  • a charging method including: when it is determined that the target position relationship is satisfied between the robot and the charging stand, acquiring point cloud data obtained by scanning the target area by the robot; The point cloud data calculates the relative pose of the robot relative to the charging stand; determines the second global pose of the charging stand based on the first global pose of the robot and the relative pose; The second global pose controls the robot to drive into the entrance of the charging stand, so that the charging stand charges the robot.
  • calculating the relative pose of the robot relative to the charging stand based on the point cloud data includes: based on the information of each sampling point included in the point cloud data and the predetermined The structural information of the charging stand determines the contour bitmap of the charging stand; taking the target point on the charging stand as the origin and determining the template point cloud of the charging stand based on the contour bitmap; from the point cloud Select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the data, and frame the target frame point cloud data of the predetermined number to obtain the frame point cloud; based on the template point cloud and the The frame point cloud determines the relative pose of the robot relative to the charging stand; wherein, the point cloud data includes the multi-frame point cloud collected by the robot during the rotation of the third angle data.
  • selecting a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data includes: Finally, the predetermined number of frame point cloud data is determined as the target frame point cloud data; the target frame point cloud data is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval.
  • framing the predetermined number of target frame point cloud data to obtain the frame point cloud includes: taking the last frame of point cloud data included in the target frame point cloud data as a reference Frame point cloud data, using the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data as a priori, using the nearest neighbor iterative algorithm for matching operations, to obtain the Describe the mosaic frame point cloud.
  • determining the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud includes: using the nearest neighbor iterative algorithm to calculate the frame point cloud and The relative position of the template point cloud; determining the relative position of the mosaic point cloud and the template point cloud as the relative pose of the robot and the charging stand.
  • controlling the robot to drive to the location of the charging base based on the second global pose includes: determining a first pose point of the robot based on the first global pose, And, determine a second pose point of the charging stand based on the second global pose; determine a first distance between the first pose point and the median perpendicular of the charging stand, and indicate the A second distance of the length of the line between the first pose point and the second pose point; based on the first distance and the second distance, the robot is controlled to travel to the location of the charging stand.
  • controlling the robot to travel to the location of the charging base based on the first distance and the second distance includes: determining a first length of the first distance; When the length exceeds the first length threshold, repeat the following operations until the first length is less than or equal to the first length threshold, and then execute the target processing so that the robot travels to the location of the charging stand Place: control the robot to turn in the direction of the first pose point and the vertical point of the median perpendicular line and walk the first length, and then turn in the direction of the second pose point; after determining the If the first length is less than or equal to the first length threshold, the target processing is executed so that the robot travels to the location of the charging stand.
  • the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold; control the robot to rotate a fourth angle, and adjust the angular velocity of the robot in real time based on the included angle until the robot includes until the predetermined part touches the charging stand.
  • a charging device including: an acquisition module, configured to acquire the information obtained by scanning the target area by the robot when it is determined that the target position relationship is satisfied between the robot and the charging stand. Point cloud data; a calculation module, used to calculate the relative pose of the robot relative to the charging base based on the point cloud data; a first determination module, used to calculate the relative pose of the robot based on the first global pose of the robot and the Determine the second global pose of the charging stand relative to the pose; a control module, configured to control the robot to drive into the entrance where the charging stand is located based on the second global pose, so that the charging The dock charges the robot.
  • a robot including: a scanning component, used to scan the target area to obtain point cloud data; a control component, including the above-mentioned charging device; a charging component, used for The robot is charged.
  • the global pose of the charging stand can be determined in combination with the point cloud data, and then the robot is controlled to perform the recharging operation based on the global pose of the charging stand.
  • the point cloud data can represent accurate spatial data, it is possible to realize point-based
  • the cloud data obtains the accurate global pose of the charging stand.
  • the robot can accurately drive to the entrance where the charging stand is located, effectively improving the universality of recharging. It solves the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
  • Fig. 1 is a hardware structural block diagram of a mobile robot of a charging method according to an embodiment of the present invention
  • Fig. 2 is a first schematic diagram of the relative positions of the charging stand and the robot according to the embodiment of the present invention
  • Fig. 3 is a second schematic diagram of the relative positions of the charging stand and the robot according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a charging method according to an embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of a charging stand according to an embodiment of the present invention.
  • Fig. 6 is a schematic diagram of docking according to an embodiment of the present invention.
  • Fig. 7 is a structural block diagram of a charging device according to an embodiment of the present invention.
  • FIG. 1 is a block diagram of a hardware structure of a mobile robot according to a charging method according to an embodiment of the present invention.
  • the mobile robot can include one or more (only one is shown in Figure 1) processor 102 (the processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data.
  • the above-mentioned mobile robot may also include a transmission device 106 and an input and output device 108 for communication functions.
  • a transmission device 106 and an input and output device 108 for communication functions.
  • the mobile robot may also include more or fewer components than those shown in FIG. 1 , or have a different configuration that is functionally equivalent to or more functionally than that shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the cleaning method of the mobile robot in the embodiment of the present invention, the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and data processing is to realize the above-mentioned method.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile robot through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or transmit data via a network.
  • a specific example of the above-mentioned network may include a wireless network provided by a mobile robot's communication provider.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • the sweeping robot is currently a typical representative of smart home, it can perform automatic cleaning operations, and this operation requires a certain amount of energy support
  • the energy source of the sweeping robot is the built-in battery
  • the battery is the sweeping robot
  • the core control ensures all the operation actions of the sweeping robot. If the battery is insufficient, the sweeping robot will not work normally.
  • the following explains how the sweeping robot is charged: the sweeping robot and the charging stand are equipped with a charging sheet, the charging sheet can be set on the side, top, etc. of the robot, and the charging sheet can be embedded in a certain surface of the robot.
  • the charging sheet set on the sweeping robot and the charging sheet set on the charging stand are set correspondingly.
  • the sweeping robot can be charged; in addition, the sweeping robot can also be charged by wireless charging.
  • the electromagnetic induction principle of electric magnetism and magnetic electricity generation can be used to wirelessly charge the sweeping robot.
  • the sweeping robot needs to drive to the location of the charging stand for charging, but in practical applications, the areas where the sweeping robot and the charging stand are located may not be the same area, as shown in Figure 2, the sweeping robot is in room A, and the charging The seat is in room B. It can be seen that the robot is far away from the charging stand. In this case, the sweeping robot needs to walk near the charging stand based on the map of the charging stand location saved in itself, or by means of infrared.
  • a charging method is provided in this embodiment, as shown in Figure 4, the method includes the following steps:
  • the execution subject of the above operations may be an intelligent robot (for example, a sweeper), or a processor provided in the intelligent robot, or other devices with similar processing capabilities.
  • the above-mentioned target area is the area where the robot and the charging stand are located.
  • the target area can be indoor places such as bedrooms, living rooms, study rooms, restaurants, and offices.
  • the above-mentioned target area can also be part of the outdoor area, such as a fitness square.
  • satisfying the target positional relationship between the robot and the charging base may include many situations.
  • the target positional relationship may be that the distance between the robot and the charging base is less than a certain distance, or it may be that the robot travels to The area corresponding to the location of the charging stand (for example, when the charging stand is set in the bedroom, the robot travels to the entrance of the bedroom; when the charging stand is set in the living room, the robot travels to the living room Sofa position, etc.), or, it may be that the robot has driven to the front of the charging stand and so on.
  • the point cloud data can be obtained by sensing the surrounding environment through the ranging sensor of the robot.
  • the ranging sensor includes a two-dimensional laser ranging unit, and a three-dimensional ranging unit based on tof or structured light.
  • Point cloud data includes the angle, distance and spatial height information of each sampling point.
  • the robot when sensing the surrounding environment, the robot can be controlled to continuously scan the point cloud data during the movement, so as to obtain more complete information, such as the robot rotating 360° (or 180°, 270°, 200°, etc. , of course, in practical applications, the robot can also be rotated non-in situ) to collect multi-frame point cloud data, reduce the impact of the supporting pillars of the protective cover of the ranging unit, and provide more constraint information.
  • the global pose of the charging stand can be determined in combination with the point cloud data, and then the robot can be controlled to perform the recharging operation based on the global pose of the robot and the charging stand. Since the point cloud data can represent accurate spatial data, it is sufficient Realize the accurate global pose of the charging stand based on the point cloud data.
  • the robot can accurately drive to the entrance of the charging stand, effectively improving the versatility of recharging and success rate, which solves the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
  • the method before determining the point cloud data obtained by the robot scanning the target area, the method further includes: controlling the robot to rotate by a first angle from the initial position, and determining In the process, each signal receiving head provided on the robot receives the starting angle and the ending angle of the first signal, wherein, the starting angle and the ending angle are determined based on the initial position
  • the first signal is a signal sent by the charging stand; the target orientation of the charging stand is determined based on the initial angle and the end angle; the robot is controlled to move towards the target orientation until The robot and the charging base satisfy a target positional relationship.
  • the first angle can be an angle that can be set flexibly, for example, it can be 360°, 270°, 180°, etc., and it can also be an angle that can be flexibly adjusted according to the environment where the robot is located, for example, when in a bedroom , due to the occlusion of the bed, the charging stand can only be set at a specific corner of the wall. Therefore, the first angle in this scene can be set to 180°; in an open area, due to fewer occlusions, charging The position of the seat may not be fixed, therefore, the first angle in this scene may be set to 360°, and the above-mentioned signal receiving head may be an infrared receiving head.
  • the target orientation of the charging stand determined based on the initial angle and the end angle is only an approximate method, not an accurate one. After determining the approximate orientation, it is necessary to continue to determine the exact orientation , the subsequent embodiments will describe how to continue to determine the correct way.
  • controlling the robot to move toward the target orientation until the robot and the charging base meet a target positional relationship includes: controlling the robot to move toward the target orientation until the robot
  • the predetermined number of the signal receiving heads provided on the battery can all receive the second signal sent by the charging stand.
  • the second signal sent by the charging stand may be a field signal, or called a guide signal
  • the guide signal may be an invisible light signal, for example, a specific pulse infrared signal.
  • the robot after determining the above-mentioned target orientation for indicating the approximate orientation, the robot can be controlled to turn to the target orientation, and rely on the signal received by the infrared receiving head of the machine head to guide and recharge until the field signal is seen If there is an obstacle or a collision during driving, it will try to go around or navigate through the obstacle to continue recharging.
  • the method further includes: after determining that the predetermined number of signal receiving heads provided on the robot cannot all receive the charging In the case of the second signal sent by the charging stand, repeat the following operations until the predetermined number of signal receiving heads set on the robot can receive the second signal sent by the charging stand: control the The robot rotates in a first direction by a second angle; the robot is controlled to travel a first distance; the robot is controlled to rotate in a second direction by a second angle, wherein the first direction and the second direction are opposite direction.
  • the robot can receive the field signal, it can be judged whether it has walked to the position directly in front of the charging stand according to the infrared signals received by the two receiving heads (or 3 receiving heads, or 4 receiving heads, etc.) directly in front of the machine.
  • both receiving heads receive the centering signal (a modulated signal)
  • the machine needs to rotate a certain angle to the center line of the charging stand (that is, the second angle mentioned above, For example, 45 degrees, 90 degrees, 120 degrees, etc.)
  • drive a certain distance for example, walk a straight line or arc, etc., then turn to the direction of the charging stand, and then repeatedly judge the two receiving heads (or 3 receiving heads) directly in front of the robot , or 4 receiving heads, etc.) whether the infrared signal is received.
  • the robot can also walk a certain distance (for example, 5cm, 10cm, 20cm, etc.)
  • the head can face the charging stand.
  • determining and calculating the first global pose of the robot and the relative pose of the robot relative to the charging stand based on the point cloud data includes: The information of each sampling point and the predetermined structural information of the charging stand determine the first global pose of the robot and the contour bitmap of the charging stand; take the target point on the charging stand as the origin and based on The contour bitmap determines the template point cloud of the charging stand, that is, the point cloud used to indicate the complete contour of the charging stand; select a predetermined number of targets from the multi-frame point cloud data included in the point cloud data Frame point cloud data, frame the predetermined number of target frame point cloud data to obtain a frame point cloud; relative pose; wherein, the point cloud data includes the multi-frame point cloud data collected by the robot during the rotation of the third angle.
  • the point cloud data is a set of points obtained after obtaining the spatial coordinates of the sampling points on the surface of the object, wherein each point cloud data contains information such as the coordinates of the sampling points, that is, the above-mentioned sampling points
  • the information includes coordinate information of sampling points.
  • the predetermined structural information of the charging stand can be the contour information inside the charging stand.
  • the structural information can also be the external contour information of the charging stand, or it can also be the contour information of a part of the charging stand.
  • the target point on the charging stand can be the center point of the charging stand port, or the center point of the front end of the charging stand, or the center point of the rear side of the charging stand, or the center of gravity of the charging stand, or other types of points.
  • the structural diagram of the charging stand can be referred to in Fig. 5 .
  • selecting a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data includes: Finally, the predetermined number of frame point cloud data is determined as the target frame point cloud data; the target frame point cloud data is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval.
  • the actually scanned point cloud data may be multi-frame point cloud data, and only part of the frame point cloud data may be used during application, wherein the part of the frame point cloud data may be selected in a specific way , for example, select the last few frames of point cloud data (for example, the last 4 frames, the last 5 frames, etc.), or you can select the middle frames of point cloud data, or you can select several frames of point cloud data according to a certain interval (for example, you can interval Select one frame out of 4 frames, that is, select the last frame out of every 5 frames), or use other selection methods for selection.
  • the isolated noise removal processing before selecting the point cloud data of the target frame, the isolated noise removal processing can be performed on the multi-frame point cloud data respectively, so as to remove the obviously problematic point cloud.
  • the range can also be set to 10cm, 20cm, etc.) a single point without adjacent points.
  • framing the predetermined number of target frame point cloud data to obtain the frame point cloud includes: taking the last frame of point cloud data included in the target frame point cloud data as a reference Frame point cloud data, using the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data as a priori, using the nearest neighbor iterative algorithm for matching operations, to obtain the Describe the mosaic frame point cloud.
  • determining the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud includes: using the nearest neighbor iterative algorithm to calculate the frame point cloud and The relative position of the template point cloud; determining the relative position of the mosaic point cloud and the template point cloud as the relative pose of the robot and the charging stand.
  • controlling the robot to drive to the location of the charging base based on the second global pose includes: determining a first pose point of the robot based on the first global pose (
  • the first pose point is actually the coordinate origin of the robot, for example, it can be a point on the robot that is close to the forward direction, a point close to the backward direction, a robot center point, etc.), and, based on the second global pose, determine the A second pose point of the charging stand; determining a first distance between the first pose point and the perpendicular line of the charging stand, and indicating the first pose point and the second pose point The second distance of the length of the connecting line; controlling the robot to travel to the location of the charging base based on the first distance and the second distance.
  • controlling the robot to travel to the location of the charging base based on the first distance and the second distance includes: determining a first length of the first distance; When the length exceeds a first length threshold (for example, 3cm, 5cm, etc.), repeat the following operations until the first length is less than or equal to the first length threshold, and then perform target processing so that the robot Traveling to the location of the charging stand: controlling the robot to turn in the direction of the vertical point between the first pose point and the mid-perpendicular line and walk the first length, and then to the second pose Rotate in the direction of the point; if it is determined that the first length is less than or equal to the first length threshold, execute the target processing so that the robot travels to the location of the charging stand.
  • a first length threshold for example, 3cm, 5cm, etc.
  • the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold (for example, 2cm, 4cm, etc.); control the robot to rotate a fourth angle (for example, 120°, 180°, 200°, etc.) , and adjust the angular velocity of the robot in real time based on the included angle until a predetermined component included in the robot touches the charging base.
  • the pose point can be located at a specific position on the charging stand, or an artificially specified point) and sweeping
  • the machine can calculate a vertical line L1 of the charging stand, and A line segment L2 connecting p1 and p2 (corresponding to the aforementioned second distance).
  • a perpendicular line is drawn from the point p2 to the straight line L1 to obtain a line segment L3 (corresponding to the aforementioned first distance). Calculate the length of L3 as d1, and the angle between L1 and L2 as ⁇ .
  • the compensation action is: the machine turns to the direction of point p3, walks a distance of d1, and then turns to the direction of p1.
  • the machine determines the distance from the center of the machine according to the weighted value of the included angle ⁇ and d1, and calculates the angular velocity in real time based on the weighted value to correct the machine pose; and calculates the L2 distance d2 in real time during the process.
  • d2 is less than a preset threshold, it is determined that the machine has walked to a position close enough to the charging stand, and at this time the machine rotates 180 degrees (or other angles, such as 160 degrees, 150 degrees, 100 degrees, etc.), and according to the clip Angle ⁇ to adjust its own angular velocity in real time to ensure accurate docking until the charging pad of the machine touches the charging stand.
  • the posture of the charging seat can be accurately identified, and the recharging success rate can be improved.
  • a charging device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • Fig. 7 is a structural block diagram of a charging device according to an embodiment of the present invention. As shown in Fig. 7, the device includes:
  • An acquisition module 72 configured to acquire point cloud data obtained by scanning the target area by the robot when it is determined that the target position relationship is satisfied between the robot and the charging stand;
  • a calculation module 74 configured to calculate the relative pose of the robot relative to the charging stand based on the point cloud data
  • a first determining module 76 configured to determine a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
  • the control module 78 is configured to control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand can charge the robot.
  • the above-mentioned device also includes:
  • the second determination module is used to determine the point cloud data obtained by scanning the target area by the robot, the method also includes: controlling the robot to rotate the first angle from the initial position, and determining Each signal receiving head provided on the robot receives the start angle and end angle of the first signal, wherein, the start angle and the end angle are determined based on the initial position , the first signal is a signal sent by the charging stand;
  • a third determination module configured to determine the target orientation of the charging stand based on the initial angle and the end angle
  • control module 78 is also used to control the robot to move towards the target orientation until the robot and the charging stand meet the target positional relationship.
  • control module 78 may control the robot to move toward the target orientation in the following manner until the robot and the charging stand satisfy the target position relationship: control the robot to move toward the target The azimuth is moved until the predetermined number of signal receiving heads provided on the robot can all receive the second signal sent by the charging stand.
  • the device is further configured to: after controlling the robot to move toward the target orientation: after determining that the predetermined number of signal receiving heads provided on the robot cannot all receive the charging In the case of the second signal sent by the charging stand, repeat the following operations until the predetermined number of signal receiving heads set on the robot can receive the second signal sent by the charging stand: control the The robot rotates in a first direction by a second angle; controlling the robot to travel a first distance; controlling the robot to rotate in a second direction by a second angle, wherein the first direction and the second direction are opposite direction.
  • the calculation module 74 can determine the first global pose of the robot and the relative pose of the robot relative to the charging stand in the following manner: based on the point cloud data including The information of each sampling point and the predetermined structural information of the charging stand determine the first global pose of the robot and the contour bitmap of the charging stand; take the target point on the charging stand as the origin and Determine the template point cloud of the charging stand based on the contour bitmap; select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data, and select a predetermined number of target frame point cloud data for the predetermined number of target frames
  • the point cloud data is framed to obtain a framed point cloud; based on the template point cloud and the framed point cloud, the relative pose of the robot relative to the charging stand is determined; wherein, in the point cloud data It includes the multi-frame point cloud data collected by the robot during the rotation of the third angle.
  • the device may select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data in the following manner: The last predetermined number of frame point cloud data in the frame point cloud data is determined as the target frame point cloud data; the target frame is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval point cloud data.
  • the device may frame the predetermined number of target frame point cloud data in the following manner to obtain the frame point cloud: the last frame included in the target frame point cloud data
  • the frame point cloud data is used as the reference frame point cloud data
  • the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data is used as a priori
  • the nearest neighbor iterative algorithm is used to perform matching operation to obtain the mosaic point cloud.
  • the device can determine the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud in the following manner: use the nearest neighbor iterative algorithm to calculate the The relative position of the mosaic point cloud and the template point cloud; the relative position of the mosaic point cloud and the template point cloud is determined as the relative pose of the robot and the charging stand.
  • control module 78 can control the robot to drive to the location of the charging base based on the second global pose in the following manner: determine the position of the robot based on the first global pose A first pose point, and, based on the second global pose, determine a second pose point of the charging stand; determine a first distance from the first pose point to a perpendicular line of the charging stand, and a second distance used to indicate the length of the connecting line between the first pose point and the second pose point; based on the first distance and the second distance, the robot is controlled to travel to the Where the charging stand is located.
  • control module 78 may control the robot to travel to the location of the charging stand based on the first distance and the second distance in the following manner: determine the first length of the first distance; When it is determined that the first length exceeds the first length threshold, the following operations are repeatedly performed until the first length is less than or equal to the first length threshold, and then target processing is performed so that the robot travels to Where the charging base is located: control the robot to turn in the direction of the vertical point of the first pose point and the median perpendicular line and walk the first length, and then move to the direction of the second pose point direction rotation; if it is determined that the first length is less than or equal to the first length threshold, execute the target processing so that the robot travels to the location of the charging stand.
  • the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold; control the robot to rotate a fourth angle, and adjust the angular velocity of the robot in real time based on the included angle until the robot includes until the predetermined part touches the charging stand.
  • a robot in an optional embodiment, includes: a scanning component, used to scan the target area to obtain point cloud data; a control component, including the charging device described in any one of the above embodiments means; a charging assembly for charging said robot.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

Abstract

Provided in the embodiments of the present invention are a charging method, a charging apparatus, and a robot. The charging method comprises: when it is determined that a robot and a charging base satisfy a target positional relationship, acquiring point cloud data obtained by means of the robot scanning a target area; on the basis of the point cloud data, calculating a relative pose of the robot relative to the charging base; on the basis of a first global pose of the robot and the relative pose, determining a second global pose of the charging base; and on the basis of the second global pose, controlling the robot to travel into an entrance of the charging base, such that the charging base charges the robot. By means of the solution, the problems in the relevant art of the accuracy of recognizing a charging base being relatively low and a recognition mode being not universal are solved.

Description

充电方法、充电装置及机器人Charging method, charging device and robot
本公开要求如下专利申请的优先权:于2021年08月23日提交中国专利局、申请号为202110969837.7、发明名称为“充电方法、充电装置及机器人”的中国专利申请;上述专利申请的全部内容通过引用结合在本公开中。This disclosure claims the priority of the following patent application: a Chinese patent application submitted to the China Patent Office on August 23, 2021, with the application number 202110969837.7, and the title of the invention is "Charging method, charging device and robot"; the entire content of the above patent application Incorporated by reference in this disclosure.
技术领域technical field
本发明涉及通信领域,具体而言,涉及一种充电方法、充电装置及机器人。The present invention relates to the communication field, in particular, to a charging method, a charging device and a robot.
背景技术Background technique
随着科技的发展,各种智能家居层出不穷,用户的生活质量随着智能家居的出现不断提高,一些具备自主行驶能力的智能机器人(例如,扫地机)也应运而生,智能机器人的出现,极大地解放了用户的双手,提高了用户的生活质量。With the development of science and technology, various smart homes emerge in endlessly, and the quality of life of users continues to improve with the emergence of smart homes. Some intelligent robots (such as sweepers) with autonomous driving capabilities have also emerged at the historic moment. The emergence of intelligent robots is extremely Dadi liberates the user's hands and improves the quality of life of the user.
目前,智能机器人具备自主回充能力,在相关技术中,机器人的自主回充主要有如下两种实现方式:At present, intelligent robots have the ability to recharge autonomously. In related technologies, there are mainly two ways to realize the autonomous recharge of robots as follows:
一是在充电座上安装红外发射管,在机器人机身上安装红外接收管,通过红外引导回充,但是该方法容易受室内荧光灯、接收管窗口的灰尘影响,可能会导致机器人无法找到基站;One is to install an infrared emitting tube on the charging stand, install an infrared receiving tube on the robot body, and recharge through infrared guidance. However, this method is easily affected by indoor fluorescent lights and dust on the receiving tube window, which may cause the robot to be unable to find the base station;
二是为充电座设置特定的凹凸结构,或增加不同强度的反光贴,使用探测传感器扫描上述结构,进而进行扫描结构和预设结构的数据匹配,该方法可提高识别准确度,但是该方法对结构要求较高,且凹凸结构可能会导致污垢残留,反光贴耗材易损导致特征弱化等缺点。The second is to set a specific concave-convex structure for the charging stand, or add reflective stickers of different intensities, use the detection sensor to scan the above structure, and then perform data matching between the scanned structure and the preset structure. This method can improve the recognition accuracy, but this method is harmful to The structural requirements are high, and the concave-convex structure may cause dirt residue, and the consumables of the reflective stickers are vulnerable to weaken the features.
由此可知,相关技术中的自主回充方式会存在识别充电座的精度比较低且识别方式不通用的问题。It can be seen from this that the autonomous recharging method in the related art has the problems of relatively low accuracy in identifying the charging stand and the identification method is not universal.
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。Aiming at the above-mentioned problems existing in related technologies, no effective solution has been proposed yet.
发明内容Contents of the invention
本发明实施例提供了一种充电方法、充电装置及机器人,以至少解决相关技术中存在的识别充电座的精度比较低且识别方式不通用的问题。Embodiments of the present invention provide a charging method, a charging device, and a robot, so as to at least solve the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
根据本发明的一个实施例,提供了一种充电方法,包括:在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;基于所述第二全局位姿控制所述机器人 行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。According to an embodiment of the present invention, a charging method is provided, including: when it is determined that the target position relationship is satisfied between the robot and the charging stand, acquiring point cloud data obtained by scanning the target area by the robot; The point cloud data calculates the relative pose of the robot relative to the charging stand; determines the second global pose of the charging stand based on the first global pose of the robot and the relative pose; The second global pose controls the robot to drive into the entrance of the charging stand, so that the charging stand charges the robot.
在一个示例性实施例中,基于所述点云数据计算所述机器人相对于所述充电座的相对位姿包括:基于所述点云数据中包括的各采样点的信息以及预先确定的所述充电座的结构信息确定所述充电座的轮廓点阵图;以所述充电座上的目标点为原点并基于所述轮廓点阵图确定所述充电座的模板点云;从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云;基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿;其中,所述点云数据中包括所述机器人在旋转第三角度的过程中所采集到的所述多帧点云数据。In an exemplary embodiment, calculating the relative pose of the robot relative to the charging stand based on the point cloud data includes: based on the information of each sampling point included in the point cloud data and the predetermined The structural information of the charging stand determines the contour bitmap of the charging stand; taking the target point on the charging stand as the origin and determining the template point cloud of the charging stand based on the contour bitmap; from the point cloud Select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the data, and frame the target frame point cloud data of the predetermined number to obtain the frame point cloud; based on the template point cloud and the The frame point cloud determines the relative pose of the robot relative to the charging stand; wherein, the point cloud data includes the multi-frame point cloud collected by the robot during the rotation of the third angle data.
在一个示例性实施例中,从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据包括:将所述点云数据中包括的多帧点云数据中的最后所述预定数量的帧点云数据确定为所述目标帧点云数据;按照预定选取间隔从所述点云数据中包括的多帧点云数据中选取所述目标帧点云数据。In an exemplary embodiment, selecting a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data includes: Finally, the predetermined number of frame point cloud data is determined as the target frame point cloud data; the target frame point cloud data is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval.
在一个示例性实施例中,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云包括:以所述目标帧点云数据中包括的最后一帧点云数据作为基准帧点云数据,将所述目标帧点云数据中包括的其他帧点云数据与所述基准帧点云数据的全局位姿差作为先验,使用最近邻迭代算法进行匹配操作,以得到所述拼帧点云。In an exemplary embodiment, framing the predetermined number of target frame point cloud data to obtain the frame point cloud includes: taking the last frame of point cloud data included in the target frame point cloud data as a reference Frame point cloud data, using the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data as a priori, using the nearest neighbor iterative algorithm for matching operations, to obtain the Describe the mosaic frame point cloud.
在一个示例性实施例中,基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿包括:使用最近邻迭代算法计算所述拼帧点云和所述模板点云的相对位置;将所述拼帧点云和所述模板点云的相对位置确定为所述机器人和所述充电座的相对位姿。In an exemplary embodiment, determining the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud includes: using the nearest neighbor iterative algorithm to calculate the frame point cloud and The relative position of the template point cloud; determining the relative position of the mosaic point cloud and the template point cloud as the relative pose of the robot and the charging stand.
在一个示例性实施例中,基于所述第二全局位姿控制所述机器人行驶至所述充电座所在位置处包括:基于所述第一全局位姿确定所述机器人的第一位姿点,以及,基于所述第二全局位姿确定所述充电座的第二位姿点;确定所述第一位姿点距离所述充电座的中垂线的第一距离,以及用于指示所述第一位姿点和所述第二位姿点之间连线的长度的第二距离;基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处。In an exemplary embodiment, controlling the robot to drive to the location of the charging base based on the second global pose includes: determining a first pose point of the robot based on the first global pose, And, determine a second pose point of the charging stand based on the second global pose; determine a first distance between the first pose point and the median perpendicular of the charging stand, and indicate the A second distance of the length of the line between the first pose point and the second pose point; based on the first distance and the second distance, the robot is controlled to travel to the location of the charging stand.
在一个示例性实施例中,基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处包括:确定第一距离的第一长度;在确定所述第一长度超过第一长度阈值的情况下,重复执行如下操作,直到所述第一长度小于或等于所述第一长度阈值为止,然后执行目标处理,以使所述机器人行驶至所述充电座所在位置处:控制所述机器人向所述第一位姿点与所述中垂线的垂点的方向转动并行走所述第一长度,再向所述第二位姿点的方向转动;在确定所述第一长度小于或等于所述第一长度阈值的情况下,执行所述目标处理,以使所述机器人行驶至所述充电座所在位置处。In an exemplary embodiment, controlling the robot to travel to the location of the charging base based on the first distance and the second distance includes: determining a first length of the first distance; When the length exceeds the first length threshold, repeat the following operations until the first length is less than or equal to the first length threshold, and then execute the target processing so that the robot travels to the location of the charging stand Place: control the robot to turn in the direction of the first pose point and the vertical point of the median perpendicular line and walk the first length, and then turn in the direction of the second pose point; after determining the If the first length is less than or equal to the first length threshold, the target processing is executed so that the robot travels to the location of the charging stand.
在一个示例性实施例中,所述目标处理包括:确定所述第一位姿点和所述第二位姿点之间连线与所述中垂线的夹角;基于所述夹角和所述第一长度的加权值确定所述机器人偏离所述中垂线的距离,并基于所述机器人偏离所述中垂线的距离持续修正所述机器人的位姿直至所述第一位姿点和所述第二位姿点之间连线的长度小于第二长度阈值为止;控制所述机器人旋转第四角度,并基于所述夹角实时调整所述机器人的角速度,直至所述机器人包括的预定部件接触到所述充电座为止。In an exemplary embodiment, the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold; control the robot to rotate a fourth angle, and adjust the angular velocity of the robot in real time based on the included angle until the robot includes until the predetermined part touches the charging stand.
根据本发明的一个实施例,提供了一种充电装置,包括:获取模块,用于在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;计算模块,用于基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;第一确定模块,用于基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;控制模块,用于基于所述第二全局位姿控制所述机器人行驶至所述充电座所在位置处的入口内,以使所述充电座为所述机器人充电。According to an embodiment of the present invention, a charging device is provided, including: an acquisition module, configured to acquire the information obtained by scanning the target area by the robot when it is determined that the target position relationship is satisfied between the robot and the charging stand. Point cloud data; a calculation module, used to calculate the relative pose of the robot relative to the charging base based on the point cloud data; a first determination module, used to calculate the relative pose of the robot based on the first global pose of the robot and the Determine the second global pose of the charging stand relative to the pose; a control module, configured to control the robot to drive into the entrance where the charging stand is located based on the second global pose, so that the charging The dock charges the robot.
根据本发明的一个实施例,提供了一种机器人,包括:扫描组件,用于对目标区域进行扫描以得到点云数据;控制组件,包括上述所述的充电装置;充电组件,用于为所述机器人充电。According to one embodiment of the present invention, a robot is provided, including: a scanning component, used to scan the target area to obtain point cloud data; a control component, including the above-mentioned charging device; a charging component, used for The robot is charged.
通过本发明,可以结合点云数据确定充电座的全局位姿,进而基于充电座的全局位姿来控制机器人执行回充操作,由于点云数据能够表示精准的空间数据,进而是够实现基于点云数据得到准确的充电座的全局位姿,在得到了充电座的精准的全局位姿的情况下,能够使得机器人准确的行驶到充电座所在的位置处的入口内,有效提高回充的通用性和成功率,解决了相关技术中存在的识别充电座的精度比较低且识别方式不通用的问题。Through the present invention, the global pose of the charging stand can be determined in combination with the point cloud data, and then the robot is controlled to perform the recharging operation based on the global pose of the charging stand. Since the point cloud data can represent accurate spatial data, it is possible to realize point-based The cloud data obtains the accurate global pose of the charging stand. After obtaining the accurate global pose of the charging stand, the robot can accurately drive to the entrance where the charging stand is located, effectively improving the universality of recharging. It solves the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是本发明实施例的一种充电方法的移动机器人的硬件结构框图;Fig. 1 is a hardware structural block diagram of a mobile robot of a charging method according to an embodiment of the present invention;
图2是本发明实施例的充电座和机器人的相对位置示意图一;Fig. 2 is a first schematic diagram of the relative positions of the charging stand and the robot according to the embodiment of the present invention;
图3是根据本发明实施例的充电座和机器人的相对位置示意图二;Fig. 3 is a second schematic diagram of the relative positions of the charging stand and the robot according to an embodiment of the present invention;
图4是根据本发明实施例的充电方法的流程图;4 is a flowchart of a charging method according to an embodiment of the present invention;
图5是根据本发明实施例的充电座结构示意图;Fig. 5 is a schematic structural diagram of a charging stand according to an embodiment of the present invention;
图6是根据本发明实施例的对接示意图;Fig. 6 is a schematic diagram of docking according to an embodiment of the present invention;
图7是根据本发明实施例的充电装置的结构框图。Fig. 7 is a structural block diagram of a charging device according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例所提供的方法实施例可以在移动机器人,或者类似的运算装置中执行。以运行在移动机器人上为例,图1是本发明实施例的一种充电方法的移动机器人的硬件结构框图。如图1所示,移动机器人可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述移动机器人还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动机器人的结构造成限定。例如,移动机器人还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a mobile robot or a similar computing device. Taking running on a mobile robot as an example, FIG. 1 is a block diagram of a hardware structure of a mobile robot according to a charging method according to an embodiment of the present invention. As shown in Figure 1, the mobile robot can include one or more (only one is shown in Figure 1) processor 102 (the processor 102 can include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned mobile robot may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above-mentioned mobile robot. For example, the mobile robot may also include more or fewer components than those shown in FIG. 1 , or have a different configuration that is functionally equivalent to or more functionally than that shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的移动机器人的清洁方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动机器人。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the cleaning method of the mobile robot in the embodiment of the present invention, the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and data processing is to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the mobile robot through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动机器人的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. A specific example of the above-mentioned network may include a wireless network provided by a mobile robot's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
本说明书提供一个场景示例。下面对本发明的所涉及到的技术以及应用场景(如下以扫地机器人为例进行说明)进行说明:This manual provides an example scenario. The technologies and application scenarios involved in the present invention are described below (taking the sweeping robot as an example below):
首先对相关技术进行说明:扫地机器人目前是智能家居的典型代表,其可以执行自动清扫卫生的操作,而该操作是需要一定的能源支持的,扫地机器人能量来源就是内置的电池,电池是扫地机器人的核心控件,保证着扫地机器人的全部的操作动作,如果电量不足,扫地 机器人就无法正常工作。下面对扫地机器人是如何进行充电的进行说明:扫地机器人和充电座上设置有充电片,充电片可以设置在机器人的侧面、上面等,且充电片可以内嵌于机器人的某个面内,还可以直接设置在机器人的某个表面,其中,扫地机器人上设置的充电片和充电座上设置的充电片是相对应设置的,该情况下,当扫地机器人上设置的充电片和充电座上设置的充电片相贴合时,即可为扫地机器人充电;另外,还可以通过无线充电的方式为扫地机器人充电,在该情况下,扫地机器人和充电座上会分别设置有线圈,在扫地机器人与充电座相对距离小于预定阈值的情况下,可以利用电生磁以及磁生电的电磁感应原理来为扫地机器人进行无线充电。First of all, explain the related technologies: the sweeping robot is currently a typical representative of smart home, it can perform automatic cleaning operations, and this operation requires a certain amount of energy support, the energy source of the sweeping robot is the built-in battery, and the battery is the sweeping robot The core control ensures all the operation actions of the sweeping robot. If the battery is insufficient, the sweeping robot will not work normally. The following explains how the sweeping robot is charged: the sweeping robot and the charging stand are equipped with a charging sheet, the charging sheet can be set on the side, top, etc. of the robot, and the charging sheet can be embedded in a certain surface of the robot. It can also be directly set on a certain surface of the robot, wherein the charging sheet set on the sweeping robot and the charging sheet set on the charging stand are set correspondingly. In this case, when the charging sheet set on the sweeping robot and the charging stand are set When the set charging sheets fit together, the sweeping robot can be charged; in addition, the sweeping robot can also be charged by wireless charging. When the relative distance from the charging stand is less than a predetermined threshold, the electromagnetic induction principle of electric magnetism and magnetic electricity generation can be used to wirelessly charge the sweeping robot.
下面对扫地机器人的需要充电的场景进行介绍,例如,当扫地机器人在电量低于阈值或者接收到用户触发的充电指令或者扫地机器人在完成了一次清扫后会触发充电操作,在该情况下,扫地机器人需要行驶至充电座所在的位置处,以进行充电,但是在实际应用中扫地机器人和充电座所在的区域可能不是同一个区域,如图2所示,扫地机器人在房间A中,而充电座在房间B中,由此可知,机器人距离充电座有一个较远的距离,该情况下,扫地机器人需要基于自身中保存的充电座位置的地图、或通过红外的方式行走至充电座附近,如图3所示,在距离充电座的某一预设的位置后,原地(也可以非原地)旋转一定的角度,通过测距传感器获取周围的点云数据,根据点云数据获取充电座与机器人的相对位姿,再根据机器人的全局位姿(可以根据激光雷达、视觉摄像头等确定的机器人的全局位姿)来计算充电座的全局位姿,然后执行本发明实施例中所涉及到的方法步骤,例如,执行图4所示步骤。The following is an introduction to the scene where the sweeping robot needs to be charged. For example, when the sweeping robot is below the threshold or receives a charging command triggered by the user, or the sweeping robot will trigger a charging operation after completing a cleaning, in this case, The sweeping robot needs to drive to the location of the charging stand for charging, but in practical applications, the areas where the sweeping robot and the charging stand are located may not be the same area, as shown in Figure 2, the sweeping robot is in room A, and the charging The seat is in room B. It can be seen that the robot is far away from the charging stand. In this case, the sweeping robot needs to walk near the charging stand based on the map of the charging stand location saved in itself, or by means of infrared. As shown in Figure 3, after a certain preset position away from the charging stand, rotate a certain angle in situ (or not in situ), obtain the surrounding point cloud data through the ranging sensor, and obtain the charging station according to the point cloud data. The relative pose of the seat and the robot, and then calculate the global pose of the charging stand according to the global pose of the robot (the global pose of the robot that can be determined according to the laser radar, visual camera, etc.), and then perform the steps involved in the embodiment of the present invention. To the method steps, for example, execute the steps shown in FIG. 4 .
在本实施例中提供了一种充电方法,如图4所示,该方法包括如下步骤:A charging method is provided in this embodiment, as shown in Figure 4, the method includes the following steps:
S402,在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;S402, when it is determined that the target position relationship is satisfied between the robot and the charging stand, acquire point cloud data obtained by scanning the target area by the robot;
S404,基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;S404. Calculate the relative pose of the robot relative to the charging stand based on the point cloud data;
S406,基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;S406. Determine a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
S408,基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。S408. Control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand charges the robot.
其中,上述操作的执行主体可以是智能机器人(例如,扫地机),或者是智能机器人内设置的处理器,或者其他的具备类似处理能力的设备。上述目标区域是机器人和充电座所处的区域,该目标区域可以是卧室、客厅、书房、餐厅、办公室等室内场所,此外,上述目标区域还可以是室外的部分区域,例如,健身广场等。Wherein, the execution subject of the above operations may be an intelligent robot (for example, a sweeper), or a processor provided in the intelligent robot, or other devices with similar processing capabilities. The above-mentioned target area is the area where the robot and the charging stand are located. The target area can be indoor places such as bedrooms, living rooms, study rooms, restaurants, and offices. In addition, the above-mentioned target area can also be part of the outdoor area, such as a fitness square.
在上述实施例中,机器人和充电座之间满足目标位置关系可以包括多种情况,例如,该目标位置关系可以是机器人和充电座之间的距离小于一定的距离,或者,可以是机器人行驶到了与充电座所在位置相对应的区域(例如,在充电座设置于卧室内的情况下,机器人行驶到了该卧室的入室门口处;在充电座设置于客厅内的情况下,机器人行驶到了该客厅的沙发所在位置处等等),或者,可以是机器人行驶到了行驶到了充电座的正前方等等。In the above embodiments, satisfying the target positional relationship between the robot and the charging base may include many situations. For example, the target positional relationship may be that the distance between the robot and the charging base is less than a certain distance, or it may be that the robot travels to The area corresponding to the location of the charging stand (for example, when the charging stand is set in the bedroom, the robot travels to the entrance of the bedroom; when the charging stand is set in the living room, the robot travels to the living room Sofa position, etc.), or, it may be that the robot has driven to the front of the charging stand and so on.
在上述实施例中,可以通过机器人的测距传感器感知周边环境,获得点云数据。其中,测距传感器包括二维激光测距单元,基于tof或结构光的三维测距单元。点云数据包括各采样点的角度、距离和空间高度信息。此外,在感知周围环境时,可以控制机器人在移动的过程中来持续扫描点云数据,从而获取更为完整的信息,如机器人原地旋转360°(或者180°、270°、200°等角度,当然,在实际应用中,机器人也可以是非原地旋转的)采集多帧点云数据,减少测距单元保护盖的支撑柱子的影响,进而提供更多的约束信息。In the above-mentioned embodiments, the point cloud data can be obtained by sensing the surrounding environment through the ranging sensor of the robot. Among them, the ranging sensor includes a two-dimensional laser ranging unit, and a three-dimensional ranging unit based on tof or structured light. Point cloud data includes the angle, distance and spatial height information of each sampling point. In addition, when sensing the surrounding environment, the robot can be controlled to continuously scan the point cloud data during the movement, so as to obtain more complete information, such as the robot rotating 360° (or 180°, 270°, 200°, etc. , of course, in practical applications, the robot can also be rotated non-in situ) to collect multi-frame point cloud data, reduce the impact of the supporting pillars of the protective cover of the ranging unit, and provide more constraint information.
通过上述实施例,可以结合点云数据确定充电座的全局位姿,进而基于机器人和充电座的全局位姿来控制机器人执行回充操作,由于点云数据能够表示精准的空间数据,进而是够实现基于点云数据得到准确的充电座的全局位姿,在得到了充电座的精准的全局位姿的情况下,能够使得机器人准确的行驶到充电座的入口内,有效提高回充的通用性和成功率,解决了相关技术中存在的识别充电座的精度比较低且识别方式不通用的问题。Through the above embodiments, the global pose of the charging stand can be determined in combination with the point cloud data, and then the robot can be controlled to perform the recharging operation based on the global pose of the robot and the charging stand. Since the point cloud data can represent accurate spatial data, it is sufficient Realize the accurate global pose of the charging stand based on the point cloud data. When the accurate global pose of the charging stand is obtained, the robot can accurately drive to the entrance of the charging stand, effectively improving the versatility of recharging and success rate, which solves the problems in the related art that the accuracy of identifying the charging stand is relatively low and the identification method is not universal.
在一个示例性实施例中,在确定所述机器人对目标区域进行扫描所得到的点云数据之前,所述方法还包括:控制所述机器人由初始位置开始转动第一角度,并确定出在转动过程中所述机器人上设置的每个信号接收头接收到第一信号的起始角度和结束角度,其中,所述起始角度和所述结束角度均是以所述初始位置为基准所确定出的,所述第一信号为所述充电座所发出的信号;基于所述初始角度和所述结束角度确定出所述充电座所在的目标方位;控制所述机器人朝向所述目标方位移动,直至所述机器人与所述充电座满足目标位置关系。在本实施例中,第一角度可以是灵活设置的角度,例如,可以是360°、270°、180°等等,还可以是根据机器人所处环境灵活调整的角度,例如,在卧室内时,由于有床的遮挡,充电座只可能设置在特定的某面墙角处,因此,可以将该场景下的第一角度设置为180°;在空旷的区域内时,由于遮挡物较少,充电座所在的位置可能是不固定的,因此,可以将该场景下的第一角度设置为360°,上述信号接收头可以是红外接收头。在本实施例中,基于初始角度和结束角度确定出的所述充电座所在的目标方位只是一个大概的方式,并不是准确的方式,在确定出该大概的方位后,需要继续判断准确的方位,后续实施例会对如何继续判断准确的方式进行说明。In an exemplary embodiment, before determining the point cloud data obtained by the robot scanning the target area, the method further includes: controlling the robot to rotate by a first angle from the initial position, and determining In the process, each signal receiving head provided on the robot receives the starting angle and the ending angle of the first signal, wherein, the starting angle and the ending angle are determined based on the initial position The first signal is a signal sent by the charging stand; the target orientation of the charging stand is determined based on the initial angle and the end angle; the robot is controlled to move towards the target orientation until The robot and the charging base satisfy a target positional relationship. In this embodiment, the first angle can be an angle that can be set flexibly, for example, it can be 360°, 270°, 180°, etc., and it can also be an angle that can be flexibly adjusted according to the environment where the robot is located, for example, when in a bedroom , due to the occlusion of the bed, the charging stand can only be set at a specific corner of the wall. Therefore, the first angle in this scene can be set to 180°; in an open area, due to fewer occlusions, charging The position of the seat may not be fixed, therefore, the first angle in this scene may be set to 360°, and the above-mentioned signal receiving head may be an infrared receiving head. In this embodiment, the target orientation of the charging stand determined based on the initial angle and the end angle is only an approximate method, not an accurate one. After determining the approximate orientation, it is necessary to continue to determine the exact orientation , the subsequent embodiments will describe how to continue to determine the correct way.
在一个示例性实施例中,控制所述机器人朝向所述目标方位移动,直至所述机器人与所 述充电座满足目标位置关系为止包括:控制所述机器人朝向所述目标方位移动,直至所述机器人上设置的预定数量的所述信号接收头均能接收到所述充电座所发出的第二信号为止。在本实施例中,充电座发出的第二信号可以是场信号,或者称为引导信号,该引导信号可以是不可见的光信号,例如,特定脉冲的红外信号。在本实施例中,在确定出上述的用于指示大概方位的目标方位之后,可以控制机器人转向该目标方位,并依靠机器头部红外接收头收到的信号进行引导回充,直到看到场信号为止;如果在行驶的过程中遇到障碍物或者产生碰撞的情况下,会尝试绕行或导航穿过障碍物继续回充。In an exemplary embodiment, controlling the robot to move toward the target orientation until the robot and the charging base meet a target positional relationship includes: controlling the robot to move toward the target orientation until the robot The predetermined number of the signal receiving heads provided on the battery can all receive the second signal sent by the charging stand. In this embodiment, the second signal sent by the charging stand may be a field signal, or called a guide signal, and the guide signal may be an invisible light signal, for example, a specific pulse infrared signal. In this embodiment, after determining the above-mentioned target orientation for indicating the approximate orientation, the robot can be controlled to turn to the target orientation, and rely on the signal received by the infrared receiving head of the machine head to guide and recharge until the field signal is seen If there is an obstacle or a collision during driving, it will try to go around or navigate through the obstacle to continue recharging.
在一个示例性实施例中,在控制所述机器人朝向所述目标方位移动之后,所述方法还包括:在确定所述机器人上设置的预定数量的所述信号接收头不能均接收到所述充电座所发出的第二信号的情况下,重复执行如下操作,直至所述机器人上设置的预定数量的所述信号接收头均能接收到所述充电座所发出的第二信号为止:控制所述机器人朝第一方向旋转第二角度;控制所述机器人行驶第一距离;控制所述机器人超第二方向旋转所述第二角度,其中,所述第一方向和所述第二方向为相反的方向。例如,在确定机器人能够接收到场信号之后,可以根据机器正前方两个接收头(或者3个接收头,或者4个接收头等等)收到的红外信号来判断是否走到充电座正前方位置,如果两个接收头都收到对中信号(一种调制的信号),则判定机器人走到了充电座的正前方;否则机器需要向充电座中线方向旋转一定角度(即,上述的第二角度,例如,45度、90度、120度等),然后行驶一段距离,例如,走一段直线或者弧线等,再转向充电座方向,然后重复判断机器人正前方两个接收头(或者3个接收头,或者4个接收头等等)是否收到红外信号。在本实施例中,在确定机器人已经走到充电座正前方位置的情况下,机器人还可以根据实际需求再根据红外信号引导再行走一定距离(例如,5cm、10cm、20cm等),以确保机器人的头部能够朝向充电座。In an exemplary embodiment, after controlling the robot to move toward the target orientation, the method further includes: after determining that the predetermined number of signal receiving heads provided on the robot cannot all receive the charging In the case of the second signal sent by the charging stand, repeat the following operations until the predetermined number of signal receiving heads set on the robot can receive the second signal sent by the charging stand: control the The robot rotates in a first direction by a second angle; the robot is controlled to travel a first distance; the robot is controlled to rotate in a second direction by a second angle, wherein the first direction and the second direction are opposite direction. For example, after it is determined that the robot can receive the field signal, it can be judged whether it has walked to the position directly in front of the charging stand according to the infrared signals received by the two receiving heads (or 3 receiving heads, or 4 receiving heads, etc.) directly in front of the machine. If both receiving heads receive the centering signal (a modulated signal), it is determined that the robot has walked directly in front of the charging stand; otherwise, the machine needs to rotate a certain angle to the center line of the charging stand (that is, the second angle mentioned above, For example, 45 degrees, 90 degrees, 120 degrees, etc.), then drive a certain distance, for example, walk a straight line or arc, etc., then turn to the direction of the charging stand, and then repeatedly judge the two receiving heads (or 3 receiving heads) directly in front of the robot , or 4 receiving heads, etc.) whether the infrared signal is received. In this embodiment, when it is determined that the robot has walked to the position directly in front of the charging stand, the robot can also walk a certain distance (for example, 5cm, 10cm, 20cm, etc.) The head can face the charging stand.
在一个示例性实施例中,基于所述点云数据确定计算所述机器人的第一全局位姿以及所述机器人相对于所述充电座的相对位姿包括:基于所述点云数据中包括的各采样点的信息以及预先确定的所述充电座的结构信息确定所述机器人的第一全局位姿以及所述充电座的轮廓点阵图;以所述充电座上的目标点为原点并基于所述轮廓点阵图确定所述充电座的模板点云,即,用于指示充电座的完整轮廓的点云;从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云;基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿;其中,所述点云数据中包括所述机器人在旋转第三角度的过程中所采集到的所述多帧点云数据。在本实施例中,点云数据是获取物体表面的采样点的空间坐标后所得到的点的集合,其中,各点云数据中包含有采样点的坐标等信息,即,上述的采样点的信息包括采样点的坐标信息。预 先确定的充电座的结构信息可以是充电座内部的轮廓信息,当然,在实际应用中,该结构信息也可以是充电座的外部轮廓信息,或者还可以是充电座的一部分的轮廓信息,另外,充电座上的目标点可以是充电座口的中心点,或者是充电座前端的中心点,或者充电座后侧的中心点,或者是充电座的重心,或者是其他类型的点。在本实施例中,充电座的结构示意图可以参见附图5。In an exemplary embodiment, determining and calculating the first global pose of the robot and the relative pose of the robot relative to the charging stand based on the point cloud data includes: The information of each sampling point and the predetermined structural information of the charging stand determine the first global pose of the robot and the contour bitmap of the charging stand; take the target point on the charging stand as the origin and based on The contour bitmap determines the template point cloud of the charging stand, that is, the point cloud used to indicate the complete contour of the charging stand; select a predetermined number of targets from the multi-frame point cloud data included in the point cloud data Frame point cloud data, frame the predetermined number of target frame point cloud data to obtain a frame point cloud; relative pose; wherein, the point cloud data includes the multi-frame point cloud data collected by the robot during the rotation of the third angle. In this embodiment, the point cloud data is a set of points obtained after obtaining the spatial coordinates of the sampling points on the surface of the object, wherein each point cloud data contains information such as the coordinates of the sampling points, that is, the above-mentioned sampling points The information includes coordinate information of sampling points. The predetermined structural information of the charging stand can be the contour information inside the charging stand. Of course, in practical applications, the structural information can also be the external contour information of the charging stand, or it can also be the contour information of a part of the charging stand. In addition , the target point on the charging stand can be the center point of the charging stand port, or the center point of the front end of the charging stand, or the center point of the rear side of the charging stand, or the center of gravity of the charging stand, or other types of points. In this embodiment, the structural diagram of the charging stand can be referred to in Fig. 5 .
在一个示例性实施例中,从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据包括:将所述点云数据中包括的多帧点云数据中的最后所述预定数量的帧点云数据确定为所述目标帧点云数据;按照预定选取间隔从所述点云数据中包括的多帧点云数据中选取所述目标帧点云数据。在本实施例中,实际扫描到点云数据可以是多帧点云数据,在应用时,可以只使用部分帧点云数据,其中,该部分帧点云数据可以是通过特定的方式选取出来的,例如,选取最后几帧点云数据(例如,最后4帧、最后5帧等),或者可以选择中间几帧点云数据,或者可以按照一定的间隔选取几帧点云数据(例如,可以间隔4帧选一帧,即,每5帧中选取最后一帧),或者采用其他的选取方式进行选取。在本实施例中,在选取目标帧点云数据之前,可以先对多帧点云数据分别进行孤立噪点去除处理,以去除明显有问题的点云,例如,可以去除15cm范围内(该范围仅是一个可选的实施例,在实际应用中,还可以将该范围设置成10cm、20cm等)没有相邻点的单独点。In an exemplary embodiment, selecting a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data includes: Finally, the predetermined number of frame point cloud data is determined as the target frame point cloud data; the target frame point cloud data is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval. In this embodiment, the actually scanned point cloud data may be multi-frame point cloud data, and only part of the frame point cloud data may be used during application, wherein the part of the frame point cloud data may be selected in a specific way , for example, select the last few frames of point cloud data (for example, the last 4 frames, the last 5 frames, etc.), or you can select the middle frames of point cloud data, or you can select several frames of point cloud data according to a certain interval (for example, you can interval Select one frame out of 4 frames, that is, select the last frame out of every 5 frames), or use other selection methods for selection. In this embodiment, before selecting the point cloud data of the target frame, the isolated noise removal processing can be performed on the multi-frame point cloud data respectively, so as to remove the obviously problematic point cloud. is an optional embodiment, in practical applications, the range can also be set to 10cm, 20cm, etc.) a single point without adjacent points.
在一个示例性实施例中,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云包括:以所述目标帧点云数据中包括的最后一帧点云数据作为基准帧点云数据,将所述目标帧点云数据中包括的其他帧点云数据与所述基准帧点云数据的全局位姿差作为先验,使用最近邻迭代算法进行匹配操作,以得到所述拼帧点云。在一个示例性实施例中,基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿包括:使用最近邻迭代算法计算所述拼帧点云和所述模板点云的相对位置;将所述拼帧点云和所述模板点云的相对位置确定为所述机器人和所述充电座的相对位姿。In an exemplary embodiment, framing the predetermined number of target frame point cloud data to obtain the frame point cloud includes: taking the last frame of point cloud data included in the target frame point cloud data as a reference Frame point cloud data, using the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data as a priori, using the nearest neighbor iterative algorithm for matching operations, to obtain the Describe the mosaic frame point cloud. In an exemplary embodiment, determining the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud includes: using the nearest neighbor iterative algorithm to calculate the frame point cloud and The relative position of the template point cloud; determining the relative position of the mosaic point cloud and the template point cloud as the relative pose of the robot and the charging stand.
在一个示例性实施例中,基于所述第二全局位姿控制所述机器人行驶至所述充电座所在位置处包括:基于所述第一全局位姿确定所述机器人的第一位姿点(该第一位姿点实际上机器人的坐标原点,例如,可以是机器人上靠近前进方向的点,靠近后退方向的点,机器人中心点等),以及,基于所述第二全局位姿确定所述充电座的第二位姿点;确定所述第一位姿点距离所述充电座的中垂线的第一距离,以及用于指示所述第一位姿点和所述第二位姿点之间连线的长度的第二距离;基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处。在一个示例性实施例中,基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处包括:确定第一距离的第一长度;在确定所述第一长度超过 第一长度阈值(例如,3cm、5cm等)的情况下,重复执行如下操作,直到所述第一长度小于或等于所述第一长度阈值为止,然后执行目标处理,以使所述机器人行驶至所述充电座所在位置处:控制所述机器人向所述第一位姿点与所述中垂线的垂点的方向转动并行走所述第一长度,再向所述第二位姿点的方向转动;在确定所述第一长度小于或等于所述第一长度阈值的情况下,执行所述目标处理,以使所述机器人行驶至所述充电座所在位置处。在一个示例性实施例中,所述目标处理包括:确定所述第一位姿点和所述第二位姿点之间连线与所述中垂线的夹角;基于所述夹角和所述第一长度的加权值确定所述机器人偏离所述中垂线的距离,并基于所述机器人偏离所述中垂线的距离持续修正所述机器人的位姿直至所述第一位姿点和所述第二位姿点之间连线的长度小于第二长度阈值(例如,2cm、4cm等)为止;控制所述机器人旋转第四角度(例如,120°、180°、200°等),并基于所述夹角实时调整所述机器人的角速度,直至所述机器人包括的预定部件接触到所述充电座为止。下面结合具体实施例对如何进行精准回充进行说明:In an exemplary embodiment, controlling the robot to drive to the location of the charging base based on the second global pose includes: determining a first pose point of the robot based on the first global pose ( The first pose point is actually the coordinate origin of the robot, for example, it can be a point on the robot that is close to the forward direction, a point close to the backward direction, a robot center point, etc.), and, based on the second global pose, determine the A second pose point of the charging stand; determining a first distance between the first pose point and the perpendicular line of the charging stand, and indicating the first pose point and the second pose point The second distance of the length of the connecting line; controlling the robot to travel to the location of the charging base based on the first distance and the second distance. In an exemplary embodiment, controlling the robot to travel to the location of the charging base based on the first distance and the second distance includes: determining a first length of the first distance; When the length exceeds a first length threshold (for example, 3cm, 5cm, etc.), repeat the following operations until the first length is less than or equal to the first length threshold, and then perform target processing so that the robot Traveling to the location of the charging stand: controlling the robot to turn in the direction of the vertical point between the first pose point and the mid-perpendicular line and walk the first length, and then to the second pose Rotate in the direction of the point; if it is determined that the first length is less than or equal to the first length threshold, execute the target processing so that the robot travels to the location of the charging stand. In an exemplary embodiment, the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold (for example, 2cm, 4cm, etc.); control the robot to rotate a fourth angle (for example, 120°, 180°, 200°, etc.) , and adjust the angular velocity of the robot in real time based on the included angle until a predetermined component included in the robot touches the charging base. The following describes how to perform precise recharging in combination with specific examples:
如图6所示,基于前述步骤反馈的充电座全局位姿p1(对应于前述的第二位姿点,该位姿点可以位于充电座的特定位置上,或者是人为规定的点)和扫地机全局位姿p2(对应于前述的第一位姿点,该位姿点可以位于扫地机的特定位置上,或者是人为规定的点),可以计算出一条充电座的中垂线L1,以及一条连接p1和p2的线段L2(对应于前述的第二距离)。由p2点向直线L1做垂线,可得线段L3(对应于前述的第一距离)。计算出L3的长度为d1,L1和L2的夹角为θ。As shown in Figure 6, based on the global pose p1 of the charging stand fed back from the previous steps (corresponding to the aforementioned second pose point, the pose point can be located at a specific position on the charging stand, or an artificially specified point) and sweeping The machine’s global pose p2 (corresponding to the aforementioned first pose point, which can be located at a specific position of the sweeper, or a man-made point), can calculate a vertical line L1 of the charging stand, and A line segment L2 connecting p1 and p2 (corresponding to the aforementioned second distance). A perpendicular line is drawn from the point p2 to the straight line L1 to obtain a line segment L3 (corresponding to the aforementioned first distance). Calculate the length of L3 as d1, and the angle between L1 and L2 as θ.
如果d1长度超过3cm,则判定机器需要做补偿动作,否则跳过当前步骤。补偿动作为:机器转向p3点方向,行走d1距离,再转向p1方向。If the length of d1 exceeds 3cm, it is determined that the machine needs to make compensation actions, otherwise skip the current step. The compensation action is: the machine turns to the direction of point p3, walks a distance of d1, and then turns to the direction of p1.
机器依照夹角θ和d1的加权值来判定机器偏离中心的距离,并由此加权值实时计算角速度来修正机器位姿;并且在过程中实时计算L2距离d2。The machine determines the distance from the center of the machine according to the weighted value of the included angle θ and d1, and calculates the angular velocity in real time based on the weighted value to correct the machine pose; and calculates the L2 distance d2 in real time during the process.
如果d2小于一预设阈值,则判定机器已行走至离充电座前足够近的位置,此时机器旋转180度(或其他角度,例如,160度,150度,100度等),并按照夹角θ来实时调整自身角速度确保对接准确,直到机器充电垫片接触到充电座为止。If d2 is less than a preset threshold, it is determined that the machine has walked to a position close enough to the charging stand, and at this time the machine rotates 180 degrees (or other angles, such as 160 degrees, 150 degrees, 100 degrees, etc.), and according to the clip Angle θ to adjust its own angular velocity in real time to ensure accurate docking until the charging pad of the machine touches the charging stand.
通过上述实施例,可以准确识别充电座位姿,提高回充成功率。Through the above embodiments, the posture of the charging seat can be accurately identified, and the recharging success rate can be improved.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机, 服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
在本实施例中还提供了一种充电装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a charging device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图7是根据本发明实施例的充电装置的结构框图,如图7所示,该装置包括:Fig. 7 is a structural block diagram of a charging device according to an embodiment of the present invention. As shown in Fig. 7, the device includes:
获取模块72,用于在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;An acquisition module 72, configured to acquire point cloud data obtained by scanning the target area by the robot when it is determined that the target position relationship is satisfied between the robot and the charging stand;
计算模块74,用于基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;A calculation module 74, configured to calculate the relative pose of the robot relative to the charging stand based on the point cloud data;
第一确定模块76,用于基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;A first determining module 76, configured to determine a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
控制模块78,用于基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。The control module 78 is configured to control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand can charge the robot.
在一个示例性实施例中,上述装置还包括:In an exemplary embodiment, the above-mentioned device also includes:
第二确定模块,用于在确定所述机器人对目标区域进行扫描所得到的点云数据之前,所述方法还包括:控制所述机器人由初始位置开始转动第一角度,并确定出在转动过程中所述机器人上设置的每个信号接收头接收到第一信号的起始角度和结束角度,其中,所述起始角度和所述结束角度均是以所述初始位置为基准所确定出的,所述第一信号为所述充电座所发出的信号;The second determination module is used to determine the point cloud data obtained by scanning the target area by the robot, the method also includes: controlling the robot to rotate the first angle from the initial position, and determining Each signal receiving head provided on the robot receives the start angle and end angle of the first signal, wherein, the start angle and the end angle are determined based on the initial position , the first signal is a signal sent by the charging stand;
第三确定模块,用于基于所述初始角度和所述结束角度确定出所述充电座所在的目标方位;A third determination module, configured to determine the target orientation of the charging stand based on the initial angle and the end angle;
上述控制模块78,还用于控制所述机器人朝向所述目标方位移动,直至所述机器人与所述充电座满足目标位置关系。The above-mentioned control module 78 is also used to control the robot to move towards the target orientation until the robot and the charging stand meet the target positional relationship.
在一个示例性实施例中,上述控制模块78可以通过如下方式控制所述机器人朝向所述目标方位移动,直至所述机器人与所述充电座满足目标位置关系为止:控制所述机器人朝向所述目标方位移动,直至所述机器人上设置的预定数量的所述信号接收头均能接收到所述充电座所发出的第二信号为止。In an exemplary embodiment, the above-mentioned control module 78 may control the robot to move toward the target orientation in the following manner until the robot and the charging stand satisfy the target position relationship: control the robot to move toward the target The azimuth is moved until the predetermined number of signal receiving heads provided on the robot can all receive the second signal sent by the charging stand.
在一个示例性实施例中,所述装置还用于在控制所述机器人朝向所述目标方位移动之后:在确定所述机器人上设置的预定数量的所述信号接收头不能均接收到所述充电座所发出的第二信号的情况下,重复执行如下操作,直至所述机器人上设置的预定数量的所述信号接收头均能接收到所述充电座所发出的第二信号为止:控制所述机器人朝第一方向旋转第二角度; 控制所述机器人行驶第一距离;控制所述机器人超第二方向旋转所述第二角度,其中,所述第一方向和所述第二方向为相反的方向。In an exemplary embodiment, the device is further configured to: after controlling the robot to move toward the target orientation: after determining that the predetermined number of signal receiving heads provided on the robot cannot all receive the charging In the case of the second signal sent by the charging stand, repeat the following operations until the predetermined number of signal receiving heads set on the robot can receive the second signal sent by the charging stand: control the The robot rotates in a first direction by a second angle; controlling the robot to travel a first distance; controlling the robot to rotate in a second direction by a second angle, wherein the first direction and the second direction are opposite direction.
在一个示例性实施例中,所述计算模块74可以通过如下方式确定所述机器人的第一全局位姿以及所述机器人相对于所述充电座的相对位姿:基于所述点云数据中包括的各采样点的信息以及预先确定的所述充电座的结构信息确定所述机器人的第一全局位姿以及所述充电座的轮廓点阵图;以所述充电座上的目标点为原点并基于所述轮廓点阵图确定所述充电座的模板点云;从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云;基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿;其中,所述点云数据中包括所述机器人在旋转第三角度的过程中所采集到的所述多帧点云数据。In an exemplary embodiment, the calculation module 74 can determine the first global pose of the robot and the relative pose of the robot relative to the charging stand in the following manner: based on the point cloud data including The information of each sampling point and the predetermined structural information of the charging stand determine the first global pose of the robot and the contour bitmap of the charging stand; take the target point on the charging stand as the origin and Determine the template point cloud of the charging stand based on the contour bitmap; select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data, and select a predetermined number of target frame point cloud data for the predetermined number of target frames The point cloud data is framed to obtain a framed point cloud; based on the template point cloud and the framed point cloud, the relative pose of the robot relative to the charging stand is determined; wherein, in the point cloud data It includes the multi-frame point cloud data collected by the robot during the rotation of the third angle.
在一个示例性实施例中,所述装置可以通过如下方式从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据:将所述点云数据中包括的多帧点云数据中的最后所述预定数量的帧点云数据确定为所述目标帧点云数据;按照预定选取间隔从所述点云数据中包括的多帧点云数据中选取所述目标帧点云数据。In an exemplary embodiment, the device may select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data in the following manner: The last predetermined number of frame point cloud data in the frame point cloud data is determined as the target frame point cloud data; the target frame is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval point cloud data.
在一个示例性实施例中,所述装置可以通过如下方式对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云:以所述目标帧点云数据中包括的最后一帧点云数据作为基准帧点云数据,将所述目标帧点云数据中包括的其他帧点云数据与所述基准帧点云数据的全局位姿差作为先验,使用最近邻迭代算法进行匹配操作,以得到所述拼帧点云。In an exemplary embodiment, the device may frame the predetermined number of target frame point cloud data in the following manner to obtain the frame point cloud: the last frame included in the target frame point cloud data The frame point cloud data is used as the reference frame point cloud data, and the global pose difference between other frame point cloud data included in the target frame point cloud data and the reference frame point cloud data is used as a priori, and the nearest neighbor iterative algorithm is used to perform matching operation to obtain the mosaic point cloud.
在一个示例性实施例中,所述装置可以通过如下方式基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿:使用最近邻迭代算法计算所述拼帧点云和所述模板点云的相对位置;将所述拼帧点云和所述模板点云的相对位置确定为所述机器人和所述充电座的相对位姿。In an exemplary embodiment, the device can determine the relative pose of the robot relative to the charging stand based on the template point cloud and the frame point cloud in the following manner: use the nearest neighbor iterative algorithm to calculate the The relative position of the mosaic point cloud and the template point cloud; the relative position of the mosaic point cloud and the template point cloud is determined as the relative pose of the robot and the charging stand.
在一个示例性实施例中,控制模块78可以通过如下方式基于所述第二全局位姿控制所述机器人行驶至所述充电座所在位置处:基于所述第一全局位姿确定所述机器人的第一位姿点,以及,基于所述第二全局位姿确定所述充电座的第二位姿点;确定所述第一位姿点距离所述充电座的中垂线的第一距离,以及用于指示所述第一位姿点和所述第二位姿点之间连线的长度的第二距离;基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处。In an exemplary embodiment, the control module 78 can control the robot to drive to the location of the charging base based on the second global pose in the following manner: determine the position of the robot based on the first global pose A first pose point, and, based on the second global pose, determine a second pose point of the charging stand; determine a first distance from the first pose point to a perpendicular line of the charging stand, and a second distance used to indicate the length of the connecting line between the first pose point and the second pose point; based on the first distance and the second distance, the robot is controlled to travel to the Where the charging stand is located.
在一个示例性实施例中,控制模块78可以通过如下方式基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处:确定第一距离的第一长度;在确定所述第一长度超过第一长度阈值的情况下,重复执行如下操作,直到所述第一长度小于或等于所 述第一长度阈值为止,然后执行目标处理,以使所述机器人行驶至所述充电座所在位置处:控制所述机器人向所述第一位姿点与所述中垂线的垂点的方向转动并行走所述第一长度,再向所述第二位姿点的方向转动;在确定所述第一长度小于或等于所述第一长度阈值的情况下,执行所述目标处理,以使所述机器人行驶至所述充电座所在位置处。In an exemplary embodiment, the control module 78 may control the robot to travel to the location of the charging stand based on the first distance and the second distance in the following manner: determine the first length of the first distance; When it is determined that the first length exceeds the first length threshold, the following operations are repeatedly performed until the first length is less than or equal to the first length threshold, and then target processing is performed so that the robot travels to Where the charging base is located: control the robot to turn in the direction of the vertical point of the first pose point and the median perpendicular line and walk the first length, and then move to the direction of the second pose point direction rotation; if it is determined that the first length is less than or equal to the first length threshold, execute the target processing so that the robot travels to the location of the charging stand.
在一个示例性实施例中,所述目标处理包括:确定所述第一位姿点和所述第二位姿点之间连线与所述中垂线的夹角;基于所述夹角和所述第一长度的加权值确定所述机器人偏离所述中垂线的距离,并基于所述机器人偏离所述中垂线的距离持续修正所述机器人的位姿直至所述第一位姿点和所述第二位姿点之间连线的长度小于第二长度阈值为止;控制所述机器人旋转第四角度,并基于所述夹角实时调整所述机器人的角速度,直至所述机器人包括的预定部件接触到所述充电座为止。In an exemplary embodiment, the target processing includes: determining an included angle between a line connecting the first pose point and the second pose point and the median perpendicular; based on the included angle and The weighted value of the first length determines the distance that the robot deviates from the mid-perpendicular line, and based on the distance that the robot deviates from the mid-perpendicular line, continuously corrects the pose of the robot until the first pose point and the length of the line between the second pose point is less than the second length threshold; control the robot to rotate a fourth angle, and adjust the angular velocity of the robot in real time based on the included angle until the robot includes until the predetermined part touches the charging stand.
在一个可选的实施例中,还提供了一种机器人,该机器人包括:扫描组件,用于对目标区域进行扫描以得到点云数据;控制组件,包括上述任一项实施例所述的充电装置;充电组件,用于为所述机器人充电。In an optional embodiment, a robot is also provided, the robot includes: a scanning component, used to scan the target area to obtain point cloud data; a control component, including the charging device described in any one of the above embodiments means; a charging assembly for charging said robot.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.
在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的计算机程序:In this embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for performing the following steps:
S11,在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;S11, when it is determined that the target position relationship is satisfied between the robot and the charging stand, acquire point cloud data obtained by scanning the target area by the robot;
S12,基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;S12, calculating the relative pose of the robot relative to the charging stand based on the point cloud data;
S13,基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;S13. Determine a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
S14,基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。S14. Control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand charges the robot.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
在一个示例性实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S11,在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;S11, when it is determined that the target position relationship is satisfied between the robot and the charging stand, acquire point cloud data obtained by scanning the target area by the robot;
S12,基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;S12, calculating the relative pose of the robot relative to the charging stand based on the point cloud data;
S13,基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;S13. Determine a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
S14,基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。S14. Control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand charges the robot.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (11)

  1. 一种充电方法,其特征在于,包括:A charging method, characterized in that, comprising:
    在确定机器人与充电座之间满足目标位置关系的情况下,获取对目标区域进行扫描所得到的点云数据;When it is determined that the target position relationship between the robot and the charging stand is satisfied, the point cloud data obtained by scanning the target area is obtained;
    基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;calculating the relative pose of the robot relative to the charging stand based on the point cloud data;
    基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座的第二全局位姿;determining a second global pose of the charging stand based on the first global pose of the robot and the relative pose;
    基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。The robot is controlled to drive into the entrance of the charging stand based on the second global pose, so that the charging stand charges the robot.
  2. 根据权利要求1所述的方法,其特征在于,所述目标位置关系包括:所述机器人和所述充电座之间的距离小于预设距离,或所述机器人行驶至所述机器人所在位置相对应的区域。The method according to claim 1, wherein the target position relationship comprises: the distance between the robot and the charging stand is less than a preset distance, or the robot travels to a location corresponding to the location of the robot. Area.
  3. 根据权利要求1所述的方法,其特征在于,基于所述点云数据计算所述机器人相对于所述充电座的相对位姿包括:The method according to claim 1, wherein calculating the relative pose of the robot relative to the charging stand based on the point cloud data comprises:
    基于所述点云数据中包括的各采样点的信息以及预先确定的所述充电座的结构信息确定所述充电座的轮廓点阵图;determining the contour bitmap of the charging stand based on the information of each sampling point included in the point cloud data and the predetermined structural information of the charging stand;
    以所述充电座上的目标点为原点并基于所述轮廓点阵图确定所述充电座的模板点云;Taking the target point on the charging stand as the origin and determining the template point cloud of the charging stand based on the contour bitmap;
    从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云;Select a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data, and frame the predetermined number of target frame point cloud data to obtain a framed point cloud;
    基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿;Determining the relative pose of the robot relative to the charging stand based on the template point cloud and the mosaic point cloud;
    其中,所述点云数据中包括所述机器人在旋转第三角度的过程中所采集到的所述多帧点云数据。Wherein, the point cloud data includes the multi-frame point cloud data collected by the robot during the rotation of the third angle.
  4. 根据权利要求3所述的方法,其特征在于,从所述点云数据中包括的多帧点云数据中选取预定数量的目标帧点云数据包括:The method according to claim 3, wherein selecting a predetermined number of target frame point cloud data from the multi-frame point cloud data included in the point cloud data comprises:
    将所述点云数据中包括的多帧点云数据中的最后所述预定数量的帧点云数据确定为所述目标帧点云数据;determining the last predetermined number of frame point cloud data among the multi-frame point cloud data included in the point cloud data as the target frame point cloud data;
    按照预定选取间隔从所述点云数据中包括的多帧点云数据中选取所述目标帧点云数据。The target frame point cloud data is selected from the multi-frame point cloud data included in the point cloud data according to a predetermined selection interval.
  5. 根据权利要求4所述的方法,其特征在于,对所述预定数量的目标帧点云数据进行拼帧,以得到拼帧点云包括:The method according to claim 4, characterized in that framing the predetermined number of target frame point cloud data to obtain the frame point cloud comprises:
    以所述目标帧点云数据中包括的最后一帧点云数据作为基准帧点云数据,将所述目标帧点云数据中包括的其他帧点云数据与所述基准帧点云数据的全局位姿差作为先验,使用最近邻迭代算法进行匹配操作,以得到所述拼帧点云。Taking the last frame point cloud data included in the target frame point cloud data as the reference frame point cloud data, combining the other frame point cloud data included in the target frame point cloud data with the global frame of the reference frame point cloud data The pose difference is used as a priori, and the nearest neighbor iterative algorithm is used to perform a matching operation to obtain the framing point cloud.
  6. 根据权利要求3所述的方法,其特征在于,基于所述模板点云和所述拼帧点云确定所述机器人相对于所述充电座的相对位姿包括:The method according to claim 3, wherein determining the relative pose of the robot relative to the charging stand based on the template point cloud and the mosaic point cloud comprises:
    使用最近邻迭代算法计算所述拼帧点云和所述模板点云的相对位置;Using the nearest neighbor iterative algorithm to calculate the relative position of the mosaic point cloud and the template point cloud;
    将所述拼帧点云和所述模板点云的相对位置确定为所述机器人和所述充电座的相对位姿。The relative positions of the mosaic point cloud and the template point cloud are determined as the relative poses of the robot and the charging stand.
  7. 根据权利要求1所述的方法,其特征在于,基于所述第二全局位姿控制所述机器人行驶至所述充电座所在位置处包括:The method according to claim 1, wherein controlling the robot to travel to the location of the charging base based on the second global pose comprises:
    基于所述第一全局位姿确定所述机器人的第一位姿点,以及,基于所述第二全局位姿确定所述充电座的第二位姿点;determining a first pose point of the robot based on the first global pose, and determining a second pose point of the charging stand based on the second global pose;
    确定所述第一位姿点距离所述充电座的中垂线的第一距离,以及用于指示所述第一位姿点和所述第二位姿点之间连线的长度的第二距离;determining the first distance between the first pose point and the perpendicular line of the charging stand, and the second distance used to indicate the length of the connecting line between the first pose point and the second pose point distance;
    基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处。The robot is controlled to travel to the location of the charging base based on the first distance and the second distance.
  8. 根据权利要求7所述的方法,其特征在于,基于所述第一距离和所述第二距离控制所述机器人行驶至所述充电座所在位置处包括:The method according to claim 7, wherein controlling the robot to travel to the location of the charging base based on the first distance and the second distance comprises:
    确定第一距离的第一长度;determining a first length of the first distance;
    在确定所述第一长度超过第一长度阈值的情况下,重复执行如下操作,直到所述第一长度小于或等于所述第一长度阈值为止,然后执行目标处理,以使所述机器人行驶至所述充电座所在位置处:控制所述机器人向所述第一位姿点与所述中垂线的垂点的方向转动并行走所述第一长度,再向所述第二位姿点的方向转动;When it is determined that the first length exceeds the first length threshold, the following operations are repeatedly performed until the first length is less than or equal to the first length threshold, and then target processing is performed so that the robot travels to Where the charging base is located: control the robot to turn in the direction of the vertical point of the first pose point and the median perpendicular line and walk the first length, and then move to the direction of the second pose point direction rotation;
    在确定所述第一长度小于或等于所述第一长度阈值的情况下,执行所述目标处理,以使所述机器人行驶至所述充电座所在位置处。If it is determined that the first length is less than or equal to the first length threshold, the target processing is executed to make the robot travel to the location of the charging stand.
  9. 根据权利要求8所述的方法,其特征在于,所述目标处理包括:The method according to claim 8, wherein the target processing comprises:
    确定所述第一位姿点和所述第二位姿点之间连线与所述中垂线的夹角;determining the angle between the line connecting the first pose point and the second pose point and the perpendicular;
    基于所述夹角和所述第一长度的加权值确定所述机器人偏离所述中垂线的距离,并基于所述机器人偏离所述中垂线的距离持续修正所述机器人的位姿直至所述第一位姿点和所述第二位姿点之间连线的长度小于第二长度阈值为止;Determine the distance that the robot deviates from the mid-perpendicular based on the weighted value of the included angle and the first length, and continuously correct the pose of the robot based on the distance that the robot deviates from the mid-perpendicular until the until the length of the line between the first pose point and the second pose point is less than a second length threshold;
    控制所述机器人旋转第四角度,并基于所述夹角实时调整所述机器人的角速度,直至所述机器人包括的预定部件接触到所述充电座为止。Controlling the robot to rotate by a fourth angle, and adjusting the angular velocity of the robot in real time based on the included angle until a predetermined component included in the robot touches the charging base.
  10. 一种充电装置,其特征在于,包括:A charging device, characterized in that it comprises:
    获取模块,用于在确定机器人与充电座之间满足目标位置关系的情况下,获取所述机器人对目标区域进行扫描所得到的点云数据;An acquisition module, configured to acquire the point cloud data obtained by scanning the target area by the robot when it is determined that the target position relationship is satisfied between the robot and the charging stand;
    计算模块,用于基于所述点云数据计算所述机器人相对于所述充电座的相对位姿;a calculation module, configured to calculate the relative pose of the robot relative to the charging stand based on the point cloud data;
    第一确定模块,用于基于所述机器人的第一全局位姿以及所述相对位姿确定所述充电座 的第二全局位姿;The first determining module is used to determine the second global pose of the charging stand based on the first global pose of the robot and the relative pose;
    控制模块,用于基于所述第二全局位姿控制所述机器人行驶至所述充电座的入口内,以使所述充电座为所述机器人充电。A control module, configured to control the robot to drive into the entrance of the charging stand based on the second global pose, so that the charging stand can charge the robot.
  11. 一种机器人,其特征在于,包括:A robot, characterized in that it comprises:
    扫描组件,用于对目标区域进行扫描以得到点云数据;The scanning component is used to scan the target area to obtain point cloud data;
    控制组件,包括权利要求10所述的充电装置;a control assembly comprising the charging device of claim 10;
    充电组件,用于为所述机器人充电。The charging component is used for charging the robot.
PCT/CN2022/113273 2021-08-23 2022-08-18 Charging method, charging apparatus, and robot WO2023025028A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110969837.7 2021-08-23
CN202110969837.7A CN113675923B (en) 2021-08-23 2021-08-23 Charging method, charging device and robot

Publications (1)

Publication Number Publication Date
WO2023025028A1 true WO2023025028A1 (en) 2023-03-02

Family

ID=78545358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/113273 WO2023025028A1 (en) 2021-08-23 2022-08-18 Charging method, charging apparatus, and robot

Country Status (2)

Country Link
CN (1) CN113675923B (en)
WO (1) WO2023025028A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113675923B (en) * 2021-08-23 2023-08-08 追觅创新科技(苏州)有限公司 Charging method, charging device and robot
CN114355889A (en) * 2021-12-08 2022-04-15 上海擎朗智能科技有限公司 Control method, robot charging stand, and computer-readable storage medium
CN114983273A (en) * 2022-06-01 2022-09-02 深圳市倍思科技有限公司 Recharging positioning method of cleaning device and cleaning system
CN116501070B (en) * 2023-06-30 2023-09-19 深圳市欢创科技有限公司 Recharging method, robot and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110632915A (en) * 2018-06-21 2019-12-31 科沃斯机器人股份有限公司 Robot recharging path planning method, robot and charging system
CN111625005A (en) * 2020-06-10 2020-09-04 浙江欣奕华智能科技有限公司 Robot charging method, robot charging control device and storage medium
CN112346453A (en) * 2020-10-14 2021-02-09 深圳市杉川机器人有限公司 Automatic robot recharging method and device, robot and storage medium
US20210060801A1 (en) * 2019-08-27 2021-03-04 Lg Electronics Inc. Method and system for charging robot
CN112792820A (en) * 2021-03-16 2021-05-14 千里眼(广州)人工智能科技有限公司 Automatic robot recharging method and device and robot system
CN112826377A (en) * 2021-02-23 2021-05-25 美智纵横科技有限责任公司 Recharging alignment method and device of sweeper and sweeper
CN113675923A (en) * 2021-08-23 2021-11-19 追觅创新科技(苏州)有限公司 Charging method, charging device and robot

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407073B (en) * 2017-08-15 2020-03-10 百度在线网络技术(北京)有限公司 Reflection value map construction method and device
CN108363386A (en) * 2017-12-30 2018-08-03 杭州南江机器人股份有限公司 Position Method for Indoor Robot, apparatus and system based on Quick Response Code and laser
CN111413721B (en) * 2020-01-14 2022-07-19 华为技术有限公司 Vehicle positioning method, device, controller, intelligent vehicle and system
CN112086010B (en) * 2020-09-03 2022-03-18 中国第一汽车股份有限公司 Map generation method, map generation device, map generation equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110632915A (en) * 2018-06-21 2019-12-31 科沃斯机器人股份有限公司 Robot recharging path planning method, robot and charging system
US20210060801A1 (en) * 2019-08-27 2021-03-04 Lg Electronics Inc. Method and system for charging robot
CN111625005A (en) * 2020-06-10 2020-09-04 浙江欣奕华智能科技有限公司 Robot charging method, robot charging control device and storage medium
CN112346453A (en) * 2020-10-14 2021-02-09 深圳市杉川机器人有限公司 Automatic robot recharging method and device, robot and storage medium
CN112826377A (en) * 2021-02-23 2021-05-25 美智纵横科技有限责任公司 Recharging alignment method and device of sweeper and sweeper
CN112792820A (en) * 2021-03-16 2021-05-14 千里眼(广州)人工智能科技有限公司 Automatic robot recharging method and device and robot system
CN113675923A (en) * 2021-08-23 2021-11-19 追觅创新科技(苏州)有限公司 Charging method, charging device and robot

Also Published As

Publication number Publication date
CN113675923B (en) 2023-08-08
CN113675923A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
WO2023025028A1 (en) Charging method, charging apparatus, and robot
CN108247647B (en) Cleaning robot
CN109683605B (en) Robot and automatic recharging method and system thereof, electronic equipment and storage medium
KR102242713B1 (en) Moving robot and contorlling method and a terminal
CN109730590B (en) Cleaning robot and method for automatically returning and charging same
EP3603370B1 (en) Moving robot, method for controlling moving robot, and moving robot system
KR102403504B1 (en) Mobile Robot And Method Thereof
CA2428360C (en) Autonomous multi-platform robotic system
US9820433B2 (en) Auto mowing system
US7054716B2 (en) Sentry robot system
CN105700522B (en) A kind of robot charging method and its charging system
US20190254490A1 (en) Vacuum cleaner and travel control method thereof
CN109669457B (en) Robot recharging method and chip based on visual identification
US20020095239A1 (en) Autonomous multi-platform robot system
CN105119338A (en) Mobile robot charging control system and method
US20110046784A1 (en) Asymmetric stereo vision system
EP2296072A2 (en) Asymmetric stereo vision system
US20190220033A1 (en) Moving robot and controlling method for the moving robot
US11564348B2 (en) Moving robot and method of controlling the same
JP2002182742A (en) Mobile robot and its route correcting method
CN111067432B (en) Determination method for charging working area of charging pile of sweeper and sweeper
CN211022482U (en) Cleaning robot
CN205081492U (en) Mobile robot control system that charges
WO2018228254A1 (en) Mobile electronic device and method for use in mobile electronic device
US20200057449A1 (en) Vacuum cleaner

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE