WO2023179491A1 - Battery grabbing and positioning method, apparatus and device - Google Patents

Battery grabbing and positioning method, apparatus and device Download PDF

Info

Publication number
WO2023179491A1
WO2023179491A1 PCT/CN2023/082206 CN2023082206W WO2023179491A1 WO 2023179491 A1 WO2023179491 A1 WO 2023179491A1 CN 2023082206 W CN2023082206 W CN 2023082206W WO 2023179491 A1 WO2023179491 A1 WO 2023179491A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
gripper
hole
distance value
sensor
Prior art date
Application number
PCT/CN2023/082206
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 WO2023179491A1 publication Critical patent/WO2023179491A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1669Programme controls characterised by programming, planning systems for manipulators characterised by special application, e.g. multi-arm co-operation, assembly, grasping
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1694Programme controls characterised by use of sensors other than normal servo-feedback from position, speed or acceleration sensors, perception control, multi-sensor controlled systems, sensor fusion

Definitions

  • the present invention relates to the technical field of battery replacement, and in particular to a battery grabbing and positioning method, device and equipment.
  • Electric working machines use power batteries as the power source.
  • the working time in pure electric working mode is affected by the battery capacity. If the charging method is used, it generally cannot meet the customer's continuous working time requirements for electric working machines.
  • electric working machinery can adopt a battery replacement solution, that is, by replacing the vehicle-mounted power battery to achieve continuous operation.
  • a special power swap station is set up to replace the power battery loaded on the electric working machine. When the electric working machine enters the power swap station, the power swap station determines the location of the power battery through image recognition, specifically by using The laser scanning method determines the exact position of the top of the battery from top to bottom, thereby realizing the capture of the battery.
  • Embodiments of the present invention provide a battery grabbing and positioning method, device and equipment to solve the problem of low battery grabbing efficiency in the prior art of battery swapping stations, and achieve precise identification of the position of the gripper relative to the gripping hole, and When the gripper reaches into the gripping hole, the angle of the gripper is adjusted in real time to achieve precise gripping of the battery.
  • Embodiments of the present invention provide a battery grabbing and positioning method, which is applied to a gripper control system, including:
  • the battery gripper hole is provided on the battery.
  • the battery gripper hole matches the gripper.
  • the gripper is used to extend into the battery. Grab the battery inside the grab hole;
  • the gripper is controlled to extend into the battery gripping hole to The battery is captured.
  • determining the initial relative position of the gripper relative to the battery grabbing hole includes:
  • the initial relative position of the gripper relative to the battery gripping hole is determined.
  • adjusting the initial relative position of the gripper relative to the battery grabbing hole includes:
  • the gripper is controlled to translate from a position where the frame corresponding to the opening of the battery gripping hole is not detected to a direction where the frame corresponding to the opening of the battery gripping hole is detected.
  • the side of the gripper facing the battery grabbing hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a third a short side and a second short side;
  • the first long side is provided with a first sensor and a second sensor
  • the second long side is provided with a third sensor and a fourth sensor
  • the first short side is provided with a fifth sensor
  • the second short side is provided with a fifth sensor.
  • a sixth sensor is provided.
  • the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
  • the gripper is controlled to rotate.
  • the control of the gripper to rotate includes:
  • the rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  • the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
  • the gripper is controlled to rotate.
  • controlling the gripper to rotate includes: :
  • the rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  • the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
  • the gripper is controlled to rotate.
  • the controlling the grasper to extend into the battery grasping hole to grasp the battery includes:
  • the angle and depth of the gripper extending into the gripping hole are adjusted to complete gripping of the battery.
  • the gripper is further provided with a seventh sensor, an eighth sensor and a ninth sensor;
  • the collection of distance values between the gripper and each side wall inside the gripping hole includes:
  • the seventh sensor is used to collect a seventh distance value between the center point of the side of the gripper facing the battery gripping hole and the center point of the first side wall inside the battery frame.
  • the first side wall It is the side wall perpendicular to the direction in which the gripper extends;
  • the eighth sensor is used to collect an eighth distance value between the gripper and the second side wall, and the second side wall is a side wall perpendicular to the first side wall;
  • the ninth sensor is used to collect a ninth distance value between the gripper and a third side wall, which is a side adjacent to the second side wall and perpendicular to the first side wall. wall.
  • adjusting the angle and depth of the gripper extending into the gripping hole according to the distance value of each side wall includes:
  • the gripper is controlled to move in a direction in which the ninth distance value decreases.
  • An embodiment of the present invention also provides a battery grabbing and positioning device, including:
  • Determining module used to determine the initial relative position of the gripper relative to the battery gripper hole.
  • the battery gripper hole is provided on the battery.
  • the battery gripper hole matches the gripper.
  • the gripper is used to Reach into the battery grabbing hole to grab the battery;
  • an adjustment module used to adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position
  • a control module configured to control the gripper to extend into the battery gripper hole when the relative position indicates that the side of the gripper facing the battery gripper hole coincides with the opening of the battery gripper hole. Internal capture of said battery.
  • An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the above is implemented. Battery grabbing and positioning method.
  • Embodiments of the present invention also provide a non-transitory computer-readable storage medium on which a computer program is stored.
  • the computer program When executed by a processor, it implements any of the above battery grabbing and positioning methods.
  • An embodiment of the present invention also provides a computer program product, which includes a computer program.
  • the computer program When the computer program is executed by a processor, the computer program implements any one of the above battery grabbing and positioning methods.
  • Embodiments of the present invention provide a battery grabbing and positioning method, device and equipment.
  • the method determines the initial relative position of the gripper relative to the battery grabbing hole.
  • the battery grabbing hole is provided on the battery.
  • the battery grabbing hole is connected to the battery grabbing hole.
  • the hands are matched, and the gripper is used to reach into the battery gripping hole to grip the battery; adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position; when the adjusted relative position represents the grasp
  • control the gripper to extend into the battery grabbing hole to grab the battery.
  • Figure 1 is a schematic flow chart of a battery grabbing and positioning method provided by an embodiment of the present invention
  • Figure 2 is a schematic structural diagram of a battery provided by an embodiment of the present invention.
  • Figure 3 is a schematic structural diagram of a gripper provided by an embodiment of the present invention.
  • Figure 4 is a schematic diagram of the initial position of the gripper relative to the battery gripping hole provided by the embodiment of the present invention.
  • Figure 5 is a schematic diagram of the principle of adjusting the relative position of the gripper and the battery gripping hole
  • Figure 6 is a schematic diagram of the calculation principle of the gripper rotation angle provided by the embodiment of the present invention.
  • Figure 7 is a schematic diagram of the principle of successful positioning of the battery grabbing hole provided by the embodiment of the present invention.
  • Figure 8 is a schematic flow chart of battery grab hole positioning provided by an embodiment of the present invention.
  • Figure 9 is a schematic cross-sectional view of the gripper extending into the battery gripping hole according to the embodiment of the present invention.
  • Figure 10 is a schematic structural diagram of a battery grabbing and positioning device provided by an embodiment of the present invention.
  • Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • Figure 1 is a schematic flowchart of a battery grabbing and positioning method provided by an embodiment of the present invention.
  • Figure 2 is a schematic structural diagram of a battery provided by an embodiment of the present invention.
  • Figure 3 is a schematic structural diagram of a gripper provided by an embodiment of the present invention.
  • an embodiment of the present invention provides a battery grabbing and positioning method.
  • the execution subject may be a gripper control system, which mainly includes the following steps:
  • the battery gripping hole is set on the battery.
  • the battery gripping hole matches the gripper.
  • the gripper is used to reach into the battery gripping hole to grip the battery. Pick.
  • the gripper and the battery gripping hole match each other.
  • the battery gripping hole is set on the battery.
  • the gripper is controlled to extend into the battery gripping hole. Grabbing the battery.
  • Figure 2 is a schematic structural diagram of the battery 200
  • Figure 3 is a schematic structural diagram of the gripper 300. It can be seen from Figures 2 and 3 that the gripper 300 and the battery gripper hole 210 match each other, wherein, in Figure 2 The arrow points to the position of the battery grabbing hole 210. The arrow in Figure 3 points to the moving direction of the gripper extending into the battery grabbing hole.
  • the relative position of the gripper 300 and the battery grabbing hole 210 can be accurately determined, which can better This ensures that the gripper 300 extends into the battery gripping hole 210, thereby completing the gripping of the battery 200.
  • Determining the relative position of the gripper relative to the battery gripping hole can be achieved by controlling the driving and parking position of the vehicle to achieve rough positioning of the gripper relative to the battery gripping hole, as long as the relative position of the gripper relative to the battery gripping hole can be initially obtained. Just take the initial relative position of the hole. Normally, the initial relative position is when the side of the gripper facing the battery gripping hole intersects with the cross section of the battery gripping hole, that is, the gripper does not completely face the battery gripping hole. If the gripper directly moves the gripper according to the current position, When the gripper extends into the battery gripping hole, the gripper will collide with the side wall frame of the battery gripping hole, making it impossible to extend the gripper into the battery gripping hole.
  • the specific way to adjust the initial relative position of the gripper relative to the battery gripping hole may be to first determine where the gripper is located in the battery gripping hole. For example, if the gripper is located relative to the battery gripping hole, to the upper right, the gripper is controlled to move to the lower left.
  • the specific method of movement may be a straight line movement from the upper right to the lower left, or it may first move downward and then move to the left. The specific method of movement is not clearly limited. The ultimate goal is to control the gripper to move to the position directly opposite the battery gripping hole.
  • the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole.
  • the position of the gripper is completed. precise adjustment.
  • the gripper is controlled to move so that the gripper extends into the battery gripping hole, and finally the battery is gripped.
  • the specific method of controlling the movement of the gripper is no clear limit on the specific method of controlling the movement of the gripper, as long as the gripper can be moved into the battery gripping hole.
  • This embodiment provides a battery grabbing and positioning method.
  • the battery gripping hole is set on the battery, the battery gripping hole matches the gripper, and the gripper is used Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position indicates that the gripper is facing the battery grabbing hole.
  • the gripper By directly locating the relative position of the gripper and the battery grabbing hole, the gripper can be better ensured. Reach into the battery grabbing hole and adjust the movement of the gripper in real time to more accurately grasp the battery and improve the battery grabbing efficiency of the gripper.
  • the initial relative position of the gripper relative to the battery gripping hole is determined. Specifically, it may be to collect multiple positions of the frame of the gripper and multiple groups of battery gripping holes. The distance value determines the initial relative position of the gripper relative to the battery gripping hole based on the relationship between multiple sets of distance values. It can also be understood as whether each frame at the opening of the battery grab hole can be detected.
  • the frame of the gripper can be evenly provided with multiple sensors.
  • the sensors detect the distance information between different positions of the frame and the battery gripping hole, and then determine whether the battery gripping hole is detected, or based on the size of each different distance value. relationship to determine the initial relative position of the gripper relative to the battery gripping hole.
  • the side of the gripper facing the battery gripping hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a first short side and a second short side; the first long side is provided with a first sensor and a second sensor, the second long side is provided with a third sensor and a fourth sensor, the first short side is provided with a fifth sensor, and the second short side is provided with a sixth sensor.
  • the first sensor and the second sensor collect the distance value between the first long side of the rectangular frame and the battery gripping hole
  • the third sensor and the fourth sensor are used to collect the distance between the second long side of the rectangular frame and the battery gripping hole.
  • the fifth sensor is used to collect the distance value between the first short side of the rectangular frame and the battery grabbing hole
  • the sixth sensor is used to collect the distance value between the second short side of the rectangular frame and the battery grabbing hole. Then the degree of overlap between the gripper and the battery gripping hole can be determined based on different distance values, thereby determining the initial relative position of the gripper and the battery gripping hole.
  • FIG. 4 is a schematic diagram illustrating the initial position of the gripper relative to the battery gripping hole provided by the embodiment of the present invention. As shown in Figure 4, it is a cross-sectional view of the gripper facing the battery gripping hole and a cross-sectional schematic diagram of the battery gripping hole.
  • the dotted line frame is a cross-sectional schematic diagram of the gripper, and the solid line frame is a cross-sectional schematic diagram of the battery gripping hole.
  • S1, S2, S3, S4, S5 and S6 shown in the figure are schematic diagrams of the principles of the first sensor, the second sensor, the third sensor, the fourth sensor, the fifth sensor and the sixth sensor provided on the gripper.
  • the six sensors in Figure 4 are all used to collect distance information between the gripper and the battery gripping hole.
  • S3, S4 and S5 are able to detect the distance value between the gripper and the battery gripping hole, and Reasonable distance values cannot be detected for S1, S2 and S6, so it can be shown that the position of the gripper at this time is offset relative to the battery gripping hole, and the direction of the offset is towards S1, S2 and S6 The direction has shifted. That is to say, the direction of the battery grabbing hole cannot be detected by detecting the direction of the battery grabbing hole. As shown in Figure 4, the gripper has shifted to the upper right.
  • the offset direction of each position of the gripper relative to the battery gripping hole can be accurately determined based on the magnitude of each measured value in S1, S2, S3, S4, S5 and S6. Putting it into the X and Y coordinates, it means that the X and Y values of the gripper have increased, causing the gripper position to shift.
  • adjusting the initial relative position of the gripper relative to the battery gripping hole in this embodiment may include: determining whether the gripper detects the battery gripping hole based on multiple sets of distance values. The frame corresponding to the opening; the gripper is controlled to translate from the position where the frame corresponding to the opening of the battery grabbing hole is not detected to the direction where the frame corresponding to the opening of the battery grabbing hole is detected.
  • the initial relative position of the gripper relative to the battery gripping hole is determined, and the offset direction of the gripper can be determined. Therefore, the position of the gripper needs to be adjusted.
  • the direction of adjustment is to reduce the X value and Y value corresponding to the position of the gripper, that is, move the gripper toward the front of the car. Move toward the bottom of the car corresponding to the roof.
  • the final result of the movement is to overlap the dotted line with the solid line, that is, the gripper faces the battery gripping hole.
  • Figure 5 is a schematic diagram of the principle of adjusting the relative position of the gripper and the battery gripping hole.
  • the gripper is controlled from the position of the frame corresponding to the battery gripping hole opening to the position where the battery gripping hole opening is detected.
  • Translation in the direction of the corresponding frame means moving the gripper toward the front of the car along the X-axis and toward the bottom of the car in the opposite direction along the Y-axis, so that S1, S2, S3, S4, S5 and S6 can all detect the distance. information, and then stop the movement of the gripper in the X-axis and Y-axis directions.
  • the gripper since the first sensor and the second sensor are both disposed on the first long side of the side of the gripper facing the battery gripping hole, the third sensor and the fourth sensor are both disposed on the side of the gripper facing the battery gripping hole. on the second long side of If the first distance value collected by the sensor is different from the second distance value collected by the second sensor, and/or the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, the gripper is controlled to rotate. .
  • the gripper is controlled to Rotation may include: determining the difference between the first distance value and the second distance value, or the difference between the third distance value and the fourth distance value; taking the difference between the first distance value and the second distance value as an example
  • Figure 6 is a schematic diagram of the calculation principle of the rotation angle of the gripper provided by the embodiment of the present invention. As shown in Figure 6, it is a schematic diagram of the determination principle of the rotation angle. According to the schematic diagram, it can be seen that the calculation formula of the rotation angle of the gripper can be as follows: formula (1 ) as shown:
  • ⁇ L represents the difference between the distance values measured by the first sensor and the second sensor
  • L1 represents the installation distance between S1 and S2.
  • FIG. 7 is a schematic diagram of the principle of successful positioning of the battery gripping hole provided by the embodiment of the present invention. That is, the schematic diagram of the principle shown in Figure 7 shows that the battery gripping hole is successfully positioned at this time. The positioning of the grab hole also moves the grabber to the position directly opposite the battery grab hole, so that the grabber completely coincides with the battery grab hole in the X-axis and Y-axis directions.
  • FIG. 8 is a schematic flowchart of battery grab hole positioning provided by an embodiment of the present invention.
  • step 801 is first performed: obtaining an initial relative position.
  • Step 802 S1, S2 and S6 are outside the battery grabbing hole. Specifically, after obtaining the initial relative position, it is determined whether S1, S2 and S6 are outside the battery grabbing hole. For example, referring to Figure 4, S1, S2 and S6 at this time are all outside the solid line frame.
  • Step 803 Move in X and Y directions. Specifically, the gripper needs to be moved in the X and Y directions.
  • Step 804: S1, S2, S3, S4 and S5 can all detect the edge of the battery frame.
  • Step 805 Rotation angle. Specifically, the distance value between S1 and S2 is obtained, and the gripper is rotated at a certain angle according to the distance value.
  • Step 806 Alignment in X and Y directions. Specifically, after the rotation angle is completed, both the X direction and the Y direction are aligned.
  • step 807 S1, S2, S3, S4, S5 and S6 all enter the battery grabbing hole.
  • step 808 is executed: the positioning of the battery grabbing hole is completed, that is, the positioning of the battery grabbing hole is completed.
  • controlling the gripper to extend into the battery gripping hole to grip the battery may include: collecting the distance value between the gripper and each side wall inside the gripping hole; according to The distance value of each side wall can be adjusted to adjust the angle and depth of the gripper extending into the gripping hole to complete the gripping of the battery.
  • a seventh sensor, an eighth sensor and a ninth sensor are also provided on the gripper; therefore, collecting the distance value between the gripper and each side wall inside the gripper hole can include: the seventh sensor is used to collect the correct position of the gripper.
  • the first side wall is a side wall perpendicular to the direction in which the gripper extends; the eighth sensor is used to collect the gripping The eighth distance value between the hand and the second side wall, the second side wall is a side wall perpendicular to the first side wall; the ninth sensor is used to collect the ninth distance value between the gripper and the third side wall, the third side wall It is a side wall adjacent to the second side wall and perpendicular to the first side wall.
  • the core principle is that after moving the gripper in the X and Y directions, it needs to be controlled to extend into the battery gripping hole, and during the process of controlling the gripper to enter the battery gripping hole, real-time Detect the distance information between each side wall of the gripper and each side wall inside the battery gripping hole.
  • the direction in which the gripper moves along the battery gripping hole as the Z-axis direction, that is, during the movement of the gripper on the Z-axis, It is necessary to maintain relative stability on the X-axis and Y-axis to ensure that the gripper does not touch the battery when not moving to the target position to achieve precise positioning matching.
  • Figure 9 is a schematic cross-sectional view of the gripper extending into the battery gripping hole according to an embodiment of the present invention.
  • the function of the seventh sensor is to detect the distance of the gripper extending into the battery gripping hole.
  • the gripper extends into the appropriate position of the battery gripping hole to prevent the gripper from extending too deep or too shallowly.
  • the eighth sensor and the ninth sensor respectively detect the distance between the two adjacent side walls of the gripper and the inner side wall of the battery gripping hole. distance to ensure that the gripper will not touch the inner wall of the battery gripping hole when extending into the battery gripping hole, thereby improving the efficiency of battery gripping.
  • S7, S8 and S9 shown in Figure 9 are the seventh sensors respectively.
  • the angle and depth of the gripper extending into the gripping hole are adjusted, including: if the seventh distance value is greater than the first preset threshold, controlling the gripper to extend into the gripping hole. Movement, the seventh distance value determines the depth of movement of the gripper on the Z axis. The seventh distance value can better ensure that the gripper moves to the appropriate position. If the eighth distance value is greater than the second preset threshold, the gripper is controlled to move in a direction in which the eighth distance value decreases; if the ninth distance value is greater than the third preset threshold, the gripper is controlled to move in a direction in which the ninth distance value decreases.
  • the eighth distance value and the ninth distance value indicate the distance value between the side wall of the gripper and the side wall of the battery gripping hole to ensure that the gripper will not be affected by the inner wall of the gripping hole during the extension process.
  • embodiments of the present invention also protect a battery grabbing and positioning device.
  • the battery grabbing and positioning device provided by the embodiment of the invention is described below.
  • the battery grabbing and positioning device described below is the same as the battery grabbing and positioning device described above.
  • the battery grabbing and positioning methods can be referenced correspondingly.
  • Figure 10 is a schematic structural diagram of a battery grabbing and positioning device provided by an embodiment of the present invention.
  • a battery grabbing and positioning device provided by an embodiment of the present invention includes:
  • Determination module 1001 is used to determine the initial relative position of the gripper relative to the battery gripper hole.
  • the battery gripper hole is set on the battery.
  • the battery gripper hole matches the gripper.
  • the gripper is used to extend into the battery gripper hole. Grab the battery;
  • the adjustment module 1002 is used to adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position
  • the control module 1003 is used to control the gripper to extend into the battery gripping hole to grip the battery when the relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole.
  • This embodiment provides a battery grabbing and positioning device.
  • the battery gripping hole is provided on the battery.
  • the battery gripping hole matches the gripper.
  • the gripper is used to Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position indicates that the gripper is facing the battery grabbing hole.
  • the gripper can be better ensured. Reach into the battery grabbing hole and adjust the movement of the gripper in real time to more accurately grasp the battery and improve the battery grabbing efficiency of the gripper.
  • the determination module 1001 in this embodiment is specifically used to:
  • the initial relative position of the gripper relative to the battery gripping hole is determined.
  • adjustment module 1002 in this embodiment is specifically used for:
  • the gripper is controlled to translate from a position where the frame corresponding to the opening of the battery gripping hole is not detected to a direction where the frame corresponding to the opening of the battery gripping hole is detected.
  • the side of the gripper facing the battery gripping hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a first short side and a second short side;
  • the first long side is provided with a first sensor and a second sensor
  • the second long side is provided with a third sensor and a fourth sensor
  • the first short side is provided with a fifth sensor
  • the second short side is provided with a fifth sensor.
  • a sixth sensor is provided.
  • this embodiment also includes a rotation module for:
  • the gripper is controlled to rotate.
  • the rotation module is specifically used to:
  • the rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  • this embodiment also includes a rotation module for:
  • the gripper is controlled to rotate.
  • the rotation module is specifically used to:
  • the rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  • this embodiment also includes a rotation module for:
  • the gripper is controlled to rotate.
  • control module 1003 in this embodiment is specifically used for:
  • the angle and depth of the gripper extending into the gripping hole are adjusted to complete gripping of the battery.
  • the gripper is also provided with a seventh sensor, an eighth sensor and a ninth sensor;
  • control module 1003 in this embodiment is also specifically used for:
  • the seventh sensor is used to collect a seventh distance value between the center point of the side of the gripper facing the battery gripping hole and the center point of the first side wall inside the battery frame.
  • the first side wall It is the side wall perpendicular to the direction in which the gripper extends;
  • the eighth sensor is used to collect an eighth distance value between the gripper and the second side wall, and the second side wall is a side wall perpendicular to the first side wall;
  • the ninth sensor is used to collect a ninth distance value between the gripper and a third side wall, which is a side adjacent to the second side wall and perpendicular to the first side wall. wall.
  • control module 1003 in this embodiment is also specifically used for:
  • the gripper is controlled to move in a direction in which the ninth distance value decreases.
  • Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device may include: a processor (processor) 1110, a communication interface (Communications Interface) 1120, a memory (memory) 1130, and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 pass The communication bus 1140 completes mutual communication.
  • the processor 1110 can call the logic instructions in the memory 1130 to execute the battery grabbing and positioning method.
  • the method includes: determining the initial relative position of the gripper relative to the battery grabbing hole, and the battery grabbing hole is provided on the battery, so The battery grab hole matches the grab hand, and the grab hand is used to extend into the battery grab hole to grab the battery; adjust the initial relative position of the grab hand with respect to the battery grab hole. position to obtain the adjusted relative position; when the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend Go inside the battery grabbing hole to grab the battery.
  • the above-mentioned logical instructions in the memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the technical solution of the embodiments of the present invention is essentially or contributes to the existing technology or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes.
  • inventions of the present invention also provide a computer program product.
  • the computer program product includes a computer program.
  • the computer program can be stored on a non-transitory computer-readable storage medium.
  • the computer program can execute the battery grabbing and positioning method provided by the above methods.
  • the method includes: determining the initial relative position of the gripper relative to the battery grabbing hole, the battery grabbing hole is provided on the battery, the battery grabbing The hole matches the gripper, and the gripper is used to extend into the battery gripping hole to grip the battery; adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjustment When the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery Grab the battery inside the grab hole.
  • embodiments of the present invention also provide a non-transitory computer-readable storage medium on which a computer program is stored.
  • the computer program is implemented when executed by the processor to execute the battery grabbing and positioning method provided by each of the above methods.
  • the method includes: determining the initial relative position of the gripper relative to the battery gripper hole, the battery gripper hole is provided on the battery, the battery gripper hole matches the gripper, and the gripper is used for Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position represents the desired When the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery gripping hole to grip the battery.
  • the device embodiments described above are only illustrative.
  • the units described as separate components may or may not be physically separated.
  • the components shown as units may or may not be physical units, that is, they may be located in One location, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.
  • each embodiment can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware.
  • the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Secondary Cells (AREA)
  • Manipulator (AREA)

Abstract

The present invention relates to the technical field of battery replacement, and provides a battery grabbing and positioning method, apparatus and device, which are applied to a gripper control system. The method comprises: determining an initial relative position of a gripper relative to a battery grabbing hole, wherein the battery grabbing hole is provided on a battery, the battery grabbing hole is matched with the gripper, and the gripper is used for extending into the battery grabbing hole to grab the battery; adjusting the initial relative position of the gripper relative to the battery grabbing hole to obtain an adjusted relative position; and when the adjusted relative position indicates that the gripper directly faces a side face of the battery grabbing hole and coincides with an opening of the battery grabbing hole, controlling the gripper to extend into the battery grabbing hole to grab the battery. The relative positions of the gripper and the battery grabbing hole are directly positioned, so that the gripper is able to better extend into the battery grabbing hole. Moreover, the grabbing of the battery is more accurately implemented by means of adjusting the movement of the gripper in real time, and the grabbing efficiency of the gripper on the battery is improved.

Description

电池抓取定位方法、装置及设备Battery grabbing and positioning methods, devices and equipment 技术领域Technical field
本发明涉及电池更换技术领域,尤其涉及一种电池抓取定位方法、装置及设备。The present invention relates to the technical field of battery replacement, and in particular to a battery grabbing and positioning method, device and equipment.
发明背景Background of the invention
电动作业机械采用动力电池作为动力来源,纯电工作模式下工作时长受电池容量影响,若采用充电方式,一般满足不了客户对电动作业机械的连续工作时长的要求。为解决动力电池工作时长问题,电动作业机械可以采用换电方案,即通过更换车载动力电池来实现持续工作。现有技术中通过设置专门的换电站对电动作业机械上装载的动力电池进行更换,当电动作业机械驶入换电站时,换电站通过图像识别的方式来确定动力电池的位置,具体为通过利用激光扫描的方式自上而下确定出电池顶部的准确位置,进而实现对电池的抓取。Electric working machines use power batteries as the power source. The working time in pure electric working mode is affected by the battery capacity. If the charging method is used, it generally cannot meet the customer's continuous working time requirements for electric working machines. In order to solve the problem of power battery working time, electric working machinery can adopt a battery replacement solution, that is, by replacing the vehicle-mounted power battery to achieve continuous operation. In the prior art, a special power swap station is set up to replace the power battery loaded on the electric working machine. When the electric working machine enters the power swap station, the power swap station determines the location of the power battery through image recognition, specifically by using The laser scanning method determines the exact position of the top of the battery from top to bottom, thereby realizing the capture of the battery.
但是,通过确定出电池顶部位置的方式,不能保证抓手在对电池进行抓取的过程中实现与电池抓取孔内部的精准匹配,从而导致抓手对电池的抓取效率相对较低。However, by determining the position of the top of the battery, there is no guarantee that the gripper will accurately match the inside of the battery gripping hole during the process of gripping the battery, resulting in a relatively low gripping efficiency for the battery.
发明内容Contents of the invention
本发明的实施例提供一种电池抓取定位方法、装置及设备,用以解决现有技术中换电站电池抓取效率低的缺陷,实现通过精准识别抓手相对于抓取孔的位置,并且在抓手伸入抓取孔时实时调整抓手角度,以实现对电池的精准抓取。Embodiments of the present invention provide a battery grabbing and positioning method, device and equipment to solve the problem of low battery grabbing efficiency in the prior art of battery swapping stations, and achieve precise identification of the position of the gripper relative to the gripping hole, and When the gripper reaches into the gripping hole, the angle of the gripper is adjusted in real time to achieve precise gripping of the battery.
本发明的实施例提供一种电池抓取定位方法,应用于抓手控制系统,包括:Embodiments of the present invention provide a battery grabbing and positioning method, which is applied to a gripper control system, including:
确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;Determine the initial relative position of the gripper relative to the battery gripper hole. The battery gripper hole is provided on the battery. The battery gripper hole matches the gripper. The gripper is used to extend into the battery. Grab the battery inside the grab hole;
调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置; Adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position;
当所述调整后的相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。When the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery gripping hole to The battery is captured.
根据本发明的实施例提供的一种电池抓取定位方法,所述确定抓手相对于电池抓取孔的初始相对位置,包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, determining the initial relative position of the gripper relative to the battery grabbing hole includes:
采集抓手的边框的多个位置与电池抓取孔的多组距离值;Collect multiple sets of distance values from multiple positions of the gripper frame and the battery gripping hole;
根据所述多组距离值的大小关系,确定抓手相对于电池抓取孔的初始相对位置。According to the magnitude relationship of the multiple sets of distance values, the initial relative position of the gripper relative to the battery gripping hole is determined.
根据本发明的实施例提供的一种电池抓取定位方法,所述调整所述抓手相对于所述电池抓取孔的初始相对位置,包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, adjusting the initial relative position of the gripper relative to the battery grabbing hole includes:
根据所述多组距离值,确定所述抓手是否检测到所述电池抓取孔开口处对应的边框;Determine whether the gripper detects the frame corresponding to the opening of the battery gripping hole according to the multiple sets of distance values;
控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移。The gripper is controlled to translate from a position where the frame corresponding to the opening of the battery gripping hole is not detected to a direction where the frame corresponding to the opening of the battery gripping hole is detected.
根据本发明的实施例提供的一种电池抓取定位方法,所述抓手正对所述电池抓取孔的侧面为矩形框,所述矩形框包括第一长边、第二长边、第一短边和第二短边;According to a battery grabbing and positioning method provided by an embodiment of the present invention, the side of the gripper facing the battery grabbing hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a third a short side and a second short side;
所述第一长边设置有第一传感器和第二传感器,所述第二长边设置有第三传感器和第四传感器,所述第一短边设置有第五传感器,所述第二短边设置有第六传感器。The first long side is provided with a first sensor and a second sensor, the second long side is provided with a third sensor and a fourth sensor, the first short side is provided with a fifth sensor, and the second short side is provided with a fifth sensor. A sixth sensor is provided.
根据本发明的实施例提供的一种电池抓取定位方法,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,则控制所述抓手进行旋转。If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, the gripper is controlled to rotate.
根据本发明的实施例提供的一种电池抓取定位方法,当满足所述第一距离值与所述第二距离值不同,和,所述第三距离值与所述第四距离值不同中的至少一项时,所述控制所述抓手进行旋转,包括: According to a battery grabbing and positioning method provided by an embodiment of the present invention, when the first distance value is different from the second distance value, and, the third distance value is different from the fourth distance value, When at least one of the above, the control of the gripper to rotate includes:
确定所述第一距离值与所述第二距离值的差值;Determine the difference between the first distance value and the second distance value;
根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
根据本发明的实施例提供的一种电池抓取定位方法,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
若所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。If the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, the gripper is controlled to rotate.
根据本发明的实施例提供的一种电池抓取定位方法,当满足所述第三距离值与所述第四距离值不同中的至少一项时,所述控制所述抓手进行旋转,包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, when at least one of the differences between the third distance value and the fourth distance value is met, controlling the gripper to rotate includes: :
确定所述第三距离值与所述第四距离值的差值;Determine the difference between the third distance value and the fourth distance value;
根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
根据本发明的实施例提供的一种电池抓取定位方法,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, the gripper is controlled from a position where a frame corresponding to the opening of the battery grabbing hole is not detected to a position where the opening of the battery grabbing hole is detected. After the direction of the corresponding border is translated, it also includes:
若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,以及所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, and the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, If different, the gripper is controlled to rotate.
根据本发明的实施例提供的一种电池抓取定位方法,所述控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取,包括:According to a battery grasping and positioning method provided by an embodiment of the present invention, the controlling the grasper to extend into the battery grasping hole to grasp the battery includes:
采集所述抓手与所述抓取孔内部各个侧壁的距离值;Collect the distance value between the gripper and each side wall inside the gripping hole;
根据所述各个侧壁的距离值,调整所述抓手伸入所述抓取孔内部的角度和深度,以完成对电池的抓取。According to the distance value of each side wall, the angle and depth of the gripper extending into the gripping hole are adjusted to complete gripping of the battery.
根据本发明的实施例提供的一种电池抓取定位方法,所述抓手上还设置有第七传感器、第八传感器和第九传感器;According to a battery grabbing and positioning method provided by an embodiment of the present invention, the gripper is further provided with a seventh sensor, an eighth sensor and a ninth sensor;
所述采集所述抓手与所述抓取孔内部各个侧壁的距离值,包括: The collection of distance values between the gripper and each side wall inside the gripping hole includes:
所述第七传感器用于采集所述抓手正对所述电池抓取孔的侧面的中心点与所述电池框内部的第一侧壁中心点的第七距离值,所述第一侧壁为与所述抓手伸入方向垂直的侧壁;The seventh sensor is used to collect a seventh distance value between the center point of the side of the gripper facing the battery gripping hole and the center point of the first side wall inside the battery frame. The first side wall It is the side wall perpendicular to the direction in which the gripper extends;
所述第八传感器用于采集所述抓手与第二侧壁的第八距离值,所述第二侧壁为与所述第一侧壁垂直的侧壁;The eighth sensor is used to collect an eighth distance value between the gripper and the second side wall, and the second side wall is a side wall perpendicular to the first side wall;
所述第九传感器用于采集所述抓手与第三侧壁的第九距离值,所述第三侧壁为与所述第二侧壁相邻且与所述第一侧壁垂直的侧壁。The ninth sensor is used to collect a ninth distance value between the gripper and a third side wall, which is a side adjacent to the second side wall and perpendicular to the first side wall. wall.
根据本发明的实施例提供的一种电池抓取定位方法,所述根据所述各个侧壁的距离值,调整所述抓手伸入所述抓取孔内部的角度和深度,包括:According to a battery grabbing and positioning method provided by an embodiment of the present invention, adjusting the angle and depth of the gripper extending into the gripping hole according to the distance value of each side wall includes:
若所述第七距离值大于第一预设阈值,则控制所述抓手向所述抓取孔内部移动;If the seventh distance value is greater than the first preset threshold, control the gripper to move inside the gripping hole;
若所述第八距离值大于第二预设阈值,则控制所述抓手向所述第八距离值减小的方向移动;If the eighth distance value is greater than the second preset threshold, control the gripper to move in the direction in which the eighth distance value decreases;
若所述第九距离值大于第三预设阈值,则控制所述抓手向所述第九距离值减小的方向移动。If the ninth distance value is greater than the third preset threshold, the gripper is controlled to move in a direction in which the ninth distance value decreases.
本发明的实施例还提供一种电池抓取定位装置,包括:An embodiment of the present invention also provides a battery grabbing and positioning device, including:
确定模块,用于确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;Determining module, used to determine the initial relative position of the gripper relative to the battery gripper hole. The battery gripper hole is provided on the battery. The battery gripper hole matches the gripper. The gripper is used to Reach into the battery grabbing hole to grab the battery;
调整模块,用于调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;an adjustment module, used to adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position;
控制模块,用于当所述相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。A control module configured to control the gripper to extend into the battery gripper hole when the relative position indicates that the side of the gripper facing the battery gripper hole coincides with the opening of the battery gripper hole. Internal capture of said battery.
本发明的实施例还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述电池抓取定位方法。 An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the above is implemented. Battery grabbing and positioning method.
本发明的实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述电池抓取定位方法。Embodiments of the present invention also provide a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements any of the above battery grabbing and positioning methods.
本发明的实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述电池抓取定位方法。An embodiment of the present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the computer program implements any one of the above battery grabbing and positioning methods.
本发明的实施例提供的一种电池抓取定位方法、装置及设备,方法通过确定抓手相对于电池抓取孔的初始相对位置,电池抓取孔设置于电池上,电池抓取孔与抓手相匹配,抓手用于伸入电池抓取孔内部对电池进行抓取;调整抓手相对于电池抓取孔的初始相对位置,得到调整后的相对位置;当调整后的相对位置表示抓手正对电池抓取孔的侧面与电池抓取孔的开口重合时,控制抓手伸入电池抓取孔内部对电池进行抓取,通过直接定位出抓手与电池抓取孔的相对位置,能够更好地保证抓手伸入电池抓取孔内,并通过实时调整抓手的移动,更精准的实现对电池的抓取,提高抓手对电池的抓取效率。Embodiments of the present invention provide a battery grabbing and positioning method, device and equipment. The method determines the initial relative position of the gripper relative to the battery grabbing hole. The battery grabbing hole is provided on the battery. The battery grabbing hole is connected to the battery grabbing hole. The hands are matched, and the gripper is used to reach into the battery gripping hole to grip the battery; adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position; when the adjusted relative position represents the grasp When the hand facing the side of the battery grabbing hole coincides with the opening of the battery grabbing hole, control the gripper to extend into the battery grabbing hole to grab the battery. By directly locating the relative position of the gripper and the battery grabbing hole, It can better ensure that the gripper reaches into the battery gripping hole, and by adjusting the movement of the gripper in real time, the battery can be captured more accurately and the battery gripping efficiency of the gripper can be improved.
附图简要说明Brief description of the drawings
为了更清楚地说明本发明的实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description The drawings illustrate some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本发明的实施例提供的电池抓取定位方法的流程示意图;Figure 1 is a schematic flow chart of a battery grabbing and positioning method provided by an embodiment of the present invention;
图2是本发明的实施例提供的电池的结构示意图;Figure 2 is a schematic structural diagram of a battery provided by an embodiment of the present invention;
图3是本发明的实施例提供的抓手的结构示意图;Figure 3 is a schematic structural diagram of a gripper provided by an embodiment of the present invention;
图4是本发明的实施例提供的抓手相对于电池抓取孔的初始位置的原理示意图;Figure 4 is a schematic diagram of the initial position of the gripper relative to the battery gripping hole provided by the embodiment of the present invention;
图5是调整抓手与电池抓取孔相对位置的原理示意图;Figure 5 is a schematic diagram of the principle of adjusting the relative position of the gripper and the battery gripping hole;
图6为本发明的实施例提供的抓手旋转角度的计算原理示意图;Figure 6 is a schematic diagram of the calculation principle of the gripper rotation angle provided by the embodiment of the present invention;
图7是本发明的实施例提供的电池抓取孔定位成功的原理示意图;Figure 7 is a schematic diagram of the principle of successful positioning of the battery grabbing hole provided by the embodiment of the present invention;
图8为本发明的实施例提供的电池抓取孔定位的流程示意图;Figure 8 is a schematic flow chart of battery grab hole positioning provided by an embodiment of the present invention;
图9为本发明的实施例提供的抓手伸入电池抓取孔内部的截面原理示意图; Figure 9 is a schematic cross-sectional view of the gripper extending into the battery gripping hole according to the embodiment of the present invention;
图10是本发明的实施例提供的电池抓取定位装置的结构示意图;Figure 10 is a schematic structural diagram of a battery grabbing and positioning device provided by an embodiment of the present invention;
图11是本发明的实施例提供的电子设备的结构示意图。Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
实施本发明的方式Ways to practice the invention
为使本发明的实施例的目的、技术方案和优点更加清楚,下面将结合本发明的实施例中的附图,对本发明的实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的实施例一部分实施例,而不是全部的实施例。基于本发明的实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明的实施例保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the description The embodiments are part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the embodiments of the present invention.
下面结合图1-图11描述本发明的实施例的一种电池抓取定位方法、装置及设备。A battery grabbing and positioning method, device and equipment according to an embodiment of the present invention will be described below with reference to Figures 1-11.
图1是本发明的实施例提供的电池抓取定位方法的流程示意图,图2是本发明的实施例提供的电池的结构示意图;图3是本发明的实施例提供的抓手的结构示意图。Figure 1 is a schematic flowchart of a battery grabbing and positioning method provided by an embodiment of the present invention. Figure 2 is a schematic structural diagram of a battery provided by an embodiment of the present invention. Figure 3 is a schematic structural diagram of a gripper provided by an embodiment of the present invention.
如图1所示,本发明的实施例提供的一种电池抓取定位方法,执行主体可以是抓手控制系统,主要包括以下步骤:As shown in Figure 1, an embodiment of the present invention provides a battery grabbing and positioning method. The execution subject may be a gripper control system, which mainly includes the following steps:
101、确定抓手相对于电池抓取孔的初始相对位置,电池抓取孔设置于电池上,电池抓取孔与抓手相匹配,抓手用于伸入电池抓取孔内部对电池进行抓取。101. Determine the initial relative position of the gripper relative to the battery gripping hole. The battery gripping hole is set on the battery. The battery gripping hole matches the gripper. The gripper is used to reach into the battery gripping hole to grip the battery. Pick.
在一个具体的实现过程中,抓手与电池抓取孔相互匹配,电池抓取孔设置于电池上,在对电池进行抓取的过程中,通过控制抓手伸入电池抓取孔的内部实现对电池的抓取。如图2所示为电池200的结构示意图,图3为抓手300的结构示意图,通过图2和图3可知,抓手300与电池抓取孔210是相互匹配的,其中,图2中的箭头指向为电池抓取孔210的位置,图3中的箭头指向为抓手伸入电池抓取孔的移动方向,准确的确定出抓手300与电池抓取孔210的相对位置,能够更好地保证抓手300伸入电池抓取孔210内部,从而完成对电池200的抓取。In a specific implementation process, the gripper and the battery gripping hole match each other. The battery gripping hole is set on the battery. During the process of gripping the battery, the gripper is controlled to extend into the battery gripping hole. Grabbing the battery. As shown in Figure 2 is a schematic structural diagram of the battery 200, and Figure 3 is a schematic structural diagram of the gripper 300. It can be seen from Figures 2 and 3 that the gripper 300 and the battery gripper hole 210 match each other, wherein, in Figure 2 The arrow points to the position of the battery grabbing hole 210. The arrow in Figure 3 points to the moving direction of the gripper extending into the battery grabbing hole. The relative position of the gripper 300 and the battery grabbing hole 210 can be accurately determined, which can better This ensures that the gripper 300 extends into the battery gripping hole 210, thereby completing the gripping of the battery 200.
其中,确定抓手相对于电池抓取孔的相对位置,可以是控制车辆的行驶停车位置,以实现对抓手相对于电池抓取孔的粗定位,只要能够初步获取到抓手相对于电池抓取孔的初始相对位置即可。通常情况下,初始相对位置是抓手与电池抓取孔正对的侧面与电池抓取孔的截面相互交叉,即抓手并没有完全正对电池抓取孔,若抓手按照当前位置直接将抓手伸入电池抓取孔内,抓手将与电池抓取孔的侧壁边框相碰撞,从而无法完成将抓手伸入至电池抓取孔内部。 Determining the relative position of the gripper relative to the battery gripping hole can be achieved by controlling the driving and parking position of the vehicle to achieve rough positioning of the gripper relative to the battery gripping hole, as long as the relative position of the gripper relative to the battery gripping hole can be initially obtained. Just take the initial relative position of the hole. Normally, the initial relative position is when the side of the gripper facing the battery gripping hole intersects with the cross section of the battery gripping hole, that is, the gripper does not completely face the battery gripping hole. If the gripper directly moves the gripper according to the current position, When the gripper extends into the battery gripping hole, the gripper will collide with the side wall frame of the battery gripping hole, making it impossible to extend the gripper into the battery gripping hole.
102、调整抓手相对于电池抓取孔的初始相对位置,得到调整后的相对位置。102. Adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position.
在准确地确定出抓手相对于电池抓取孔的初始相对位置之后,便需要开始对抓手进行移动,以保证抓手能够精确的伸入到电池抓取孔内部。调整抓手相对于电池抓取孔的初始相对位置的具体方式可以是,首先确定出抓手位于电池抓取孔的哪个方位,例如若是抓手相对于电池抓取孔,位于电池抓取孔的右上方,则控制抓手向左下方移动,其中,移动的具体方式可以是由右上方向左下方的直线移动,也可以是先向下移动再向左移动,具体的移动方式不进行明确限定。最终的目的便是控制抓手移动至电池抓取孔的正对位置。After the initial relative position of the gripper relative to the battery gripping hole is accurately determined, the gripper needs to be moved to ensure that the gripper can accurately extend into the battery gripping hole. The specific way to adjust the initial relative position of the gripper relative to the battery gripping hole may be to first determine where the gripper is located in the battery gripping hole. For example, if the gripper is located relative to the battery gripping hole, to the upper right, the gripper is controlled to move to the lower left. The specific method of movement may be a straight line movement from the upper right to the lower left, or it may first move downward and then move to the left. The specific method of movement is not clearly limited. The ultimate goal is to control the gripper to move to the position directly opposite the battery gripping hole.
103、当调整后的相对位置表示抓手正对电池抓取孔的侧面与电池抓取孔的开口重合时,控制抓手伸入电池抓取孔内部对电池进行抓取。103. When the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, control the gripper to extend into the battery gripping hole to grip the battery.
具体的,在对抓手与电池抓取孔的相对位置进行不断地调整之后,使得抓手正对电池抓取孔的侧面与电池抓取孔的开口重合,此时便完成了对抓手位置的精确调整。然后控制抓手进行移动,使得抓手伸入至电池抓取孔内部,最终完成对电池的抓取。关于具体的控制抓手移动的具体方式不进行明确的限定,只要能够实现将抓手移动至电池抓取孔内即可。Specifically, after continuously adjusting the relative position of the gripper and the battery gripping hole, the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole. At this time, the position of the gripper is completed. precise adjustment. Then the gripper is controlled to move so that the gripper extends into the battery gripping hole, and finally the battery is gripped. There is no clear limit on the specific method of controlling the movement of the gripper, as long as the gripper can be moved into the battery gripping hole.
本实施例提供的一种电池抓取定位方法,通过确定抓手相对于电池抓取孔的初始相对位置,电池抓取孔设置于电池上,电池抓取孔与抓手相匹配,抓手用于伸入电池抓取孔内部对电池进行抓取;调整抓手相对于电池抓取孔的初始相对位置,得到调整后的相对位置;当调整后的相对位置表示抓手正对电池抓取孔的侧面与电池抓取孔的开口重合时,控制抓手伸入电池抓取孔内部对电池进行抓取,通过直接定位出抓手与电池抓取孔的相对位置,能够更好地保证抓手伸入电池抓取孔内,并通过实时调整抓手的移动,更精准的实现对电池的抓取,提高抓手对电池的抓取效率。This embodiment provides a battery grabbing and positioning method. By determining the initial relative position of the gripper relative to the battery gripping hole, the battery gripping hole is set on the battery, the battery gripping hole matches the gripper, and the gripper is used Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position indicates that the gripper is facing the battery grabbing hole When the side of the battery coincides with the opening of the battery grabbing hole, control the gripper to extend into the battery grabbing hole to grab the battery. By directly locating the relative position of the gripper and the battery grabbing hole, the gripper can be better ensured. Reach into the battery grabbing hole and adjust the movement of the gripper in real time to more accurately grasp the battery and improve the battery grabbing efficiency of the gripper.
进一步的,在上述实施例的基础上,本实施例中确定抓手相对于电池抓取孔的初始相对位置,具体的可以是采集抓手的边框的多个位置与电池抓取孔的多组距离值,根据多组距离值的大小关系,确定抓手相对于电池抓取孔的初始相对位置。也可以理解为能否检测到电池抓取孔开口处各个边框。Furthermore, on the basis of the above embodiment, in this embodiment, the initial relative position of the gripper relative to the battery gripping hole is determined. Specifically, it may be to collect multiple positions of the frame of the gripper and multiple groups of battery gripping holes. The distance value determines the initial relative position of the gripper relative to the battery gripping hole based on the relationship between multiple sets of distance values. It can also be understood as whether each frame at the opening of the battery grab hole can be detected.
其中,抓手的边框可以均匀设置有多个传感器,通过传感器检测边框的不同位置与电池抓取孔的距离信息,然后再根据是否检测到电池抓取孔,或者是根据各个不同距离值的大小关系,确定抓手相对于电池抓取孔的初始相对位置。例 如,抓手正对电池抓取孔的侧面为矩形框,矩形框包括第一长边、第二长边、第一短边和第二短边;所述第一长边设置有第一传感器和第二传感器,所述第二长边设置有第三传感器和第四传感器,所述第一短边设置有第五传感器,所述第二短边设置有第六传感器。Among them, the frame of the gripper can be evenly provided with multiple sensors. The sensors detect the distance information between different positions of the frame and the battery gripping hole, and then determine whether the battery gripping hole is detected, or based on the size of each different distance value. relationship to determine the initial relative position of the gripper relative to the battery gripping hole. example For example, the side of the gripper facing the battery gripping hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a first short side and a second short side; the first long side is provided with a first sensor and a second sensor, the second long side is provided with a third sensor and a fourth sensor, the first short side is provided with a fifth sensor, and the second short side is provided with a sixth sensor.
具体的,第一传感器和第二传感器采集的均为矩形框的第一长边与电池抓取孔的距离值,第三传感器和第四传感器用于采集矩形框的第二长边与电池抓取孔的距离值,第五传感器用于采集矩形框的第一短边与电池抓取孔的距离值,第六传感器用于采集矩形框第二短边与电池抓取孔的距离值。然后根据不同的距离值便可以判断抓手与电池抓取孔的重合程度,从而确定出抓手与电池抓取孔的初始相对位置。Specifically, the first sensor and the second sensor collect the distance value between the first long side of the rectangular frame and the battery gripping hole, and the third sensor and the fourth sensor are used to collect the distance between the second long side of the rectangular frame and the battery gripping hole. To obtain the distance value of the hole, the fifth sensor is used to collect the distance value between the first short side of the rectangular frame and the battery grabbing hole, and the sixth sensor is used to collect the distance value between the second short side of the rectangular frame and the battery grabbing hole. Then the degree of overlap between the gripper and the battery gripping hole can be determined based on different distance values, thereby determining the initial relative position of the gripper and the battery gripping hole.
图4是本发明的实施例提供的抓手相对于电池抓取孔的初始位置的原理示意图。如图4所示,为抓手正对电池抓取孔的截面图和电池抓取孔的截面示意图,其中,虚线框为抓手的截面示意图,实线框为电池抓取孔的截面示意图,图中所示的S1、S2、S3、S4、S5和S6为抓手上设置的第一传感器、第二传感器、第三传感器、第四传感器、第五传感器和第六传感器的原理示意图。FIG. 4 is a schematic diagram illustrating the initial position of the gripper relative to the battery gripping hole provided by the embodiment of the present invention. As shown in Figure 4, it is a cross-sectional view of the gripper facing the battery gripping hole and a cross-sectional schematic diagram of the battery gripping hole. The dotted line frame is a cross-sectional schematic diagram of the gripper, and the solid line frame is a cross-sectional schematic diagram of the battery gripping hole. S1, S2, S3, S4, S5 and S6 shown in the figure are schematic diagrams of the principles of the first sensor, the second sensor, the third sensor, the fourth sensor, the fifth sensor and the sixth sensor provided on the gripper.
具体的,图4中的六个传感器均用于采集抓手与电池抓取孔的距离信息,其中S3、S4和S5是能够检测到抓手与电池抓取孔之间的距离值的,而S1、S2和S6是不能检测到合理的距离值的,因此便可以表明,此时的抓手相对于电池抓取孔发生了位置偏移,而偏移的方向便是向S1、S2和S6的方向发生了偏移。也就是由检测到电池抓取孔的方向不能检测到电池抓取孔的方向发生了偏移,在图4所示的便是抓手向右上方发生了偏移。因此,便可以根据S1、S2、S3、S4、S5和S6中每个测量得到的数值的大小准确地确定出抓手相对于电池抓取孔的各个位置的偏移方向。放到X和Y的坐标中来说,便是抓手的X和Y值均有所增大,导致了抓手位置的偏移。Specifically, the six sensors in Figure 4 are all used to collect distance information between the gripper and the battery gripping hole. Among them, S3, S4 and S5 are able to detect the distance value between the gripper and the battery gripping hole, and Reasonable distance values cannot be detected for S1, S2 and S6, so it can be shown that the position of the gripper at this time is offset relative to the battery gripping hole, and the direction of the offset is towards S1, S2 and S6 The direction has shifted. That is to say, the direction of the battery grabbing hole cannot be detected by detecting the direction of the battery grabbing hole. As shown in Figure 4, the gripper has shifted to the upper right. Therefore, the offset direction of each position of the gripper relative to the battery gripping hole can be accurately determined based on the magnitude of each measured value in S1, S2, S3, S4, S5 and S6. Putting it into the X and Y coordinates, it means that the X and Y values of the gripper have increased, causing the gripper position to shift.
进一步的,在上述实施例的基础上,本实施例中的调整抓手相对于电池抓取孔的初始相对位置,则可以包括:根据多组距离值,确定抓手是否检测到电池抓取孔开口处对应的边框;控制抓手由未检测到电池抓取孔开口处对应的边框的位置向检测到电池抓取孔开口处对应的边框的方向进行平移。Further, based on the above embodiment, adjusting the initial relative position of the gripper relative to the battery gripping hole in this embodiment may include: determining whether the gripper detects the battery gripping hole based on multiple sets of distance values. The frame corresponding to the opening; the gripper is controlled to translate from the position where the frame corresponding to the opening of the battery grabbing hole is not detected to the direction where the frame corresponding to the opening of the battery grabbing hole is detected.
具体的,如图4所示为确定得到的抓手相对于电池抓取孔的初始相对位置,并且能够确定出抓手的偏移方向,因此,便需要对抓手的位置进行调整。调整的方向便是将抓手的位置对应的X值和Y值均进行缩小,也就是将抓手向车头方 向和车顶对应的车底方向进行移动。而移动的最终结果便是将虚线与实线进行重合,即抓手正对电池抓取孔。Specifically, as shown in Figure 4, the initial relative position of the gripper relative to the battery gripping hole is determined, and the offset direction of the gripper can be determined. Therefore, the position of the gripper needs to be adjusted. The direction of adjustment is to reduce the X value and Y value corresponding to the position of the gripper, that is, move the gripper toward the front of the car. Move toward the bottom of the car corresponding to the roof. The final result of the movement is to overlap the dotted line with the solid line, that is, the gripper faces the battery gripping hole.
图5是调整抓手与电池抓取孔相对位置的原理示意图,如图5所示,控制抓手由未检测到电池抓取孔开口处对应的边框的位置向检测到电池抓取孔开口处对应的边框的方向进行平移,便是将抓手的沿X轴方向往车头移动,沿Y轴逆方向往车底移动,从而使得S1、S2、S3、S4、S5和S6均能检测到距离信息,然后停止抓手在X轴和Y轴方向的移动。Figure 5 is a schematic diagram of the principle of adjusting the relative position of the gripper and the battery gripping hole. As shown in Figure 5, the gripper is controlled from the position of the frame corresponding to the battery gripping hole opening to the position where the battery gripping hole opening is detected. Translation in the direction of the corresponding frame means moving the gripper toward the front of the car along the X-axis and toward the bottom of the car in the opposite direction along the Y-axis, so that S1, S2, S3, S4, S5 and S6 can all detect the distance. information, and then stop the movement of the gripper in the X-axis and Y-axis directions.
其中,由于第一传感器和第二传感器均设置于抓手正对电池抓取孔的侧面的第一长边上,第三传感器和第四传感器均设置于抓手正对电池抓取孔的侧面的第二长边上;因此控制抓手由未检测到电池抓取孔开口处对应的边框的位置向检测到电池抓取孔开口处对应的边框的方向进行平移之后,还包括:若第一传感器采集的第一距离值与第二传感器采集的第二距离值不同,和/或,第三传感器采集的第三距离值与第四传感器采集的第四距离值不同,则控制抓手进行旋转。Among them, since the first sensor and the second sensor are both disposed on the first long side of the side of the gripper facing the battery gripping hole, the third sensor and the fourth sensor are both disposed on the side of the gripper facing the battery gripping hole. on the second long side of If the first distance value collected by the sensor is different from the second distance value collected by the second sensor, and/or the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, the gripper is controlled to rotate. .
具体的,也就是抓手的X轴的最小值与电池抓取孔的X轴的最小值相同,但是随着X的不断增大,抓手的Y值逐渐的与电池抓取孔在同一X值的条件下不再相同,便表明此时的抓手相对于左下角部分发生了转动,使得不能更好地保证两者的完全重合,例如,若是抓手相对于图5的左下角发生了逆时针的转动,则可能会出现S1的测量值小于S2的测量值,即ΔL=S1-S2<0。同理,S3和S4也是同样的原理,不再进行详细说明。Specifically, that is, the minimum value of the X-axis of the gripper is the same as the minimum value of the X-axis of the battery gripping hole, but as X continues to increase, the Y value of the gripper gradually becomes at the same X-axis as the battery gripping hole. If the values are no longer the same, it means that the gripper has rotated relative to the lower left corner at this time, so that the complete coincidence of the two cannot be better guaranteed. For example, if the gripper rotates relative to the lower left corner of Figure 5 For counterclockwise rotation, the measured value of S1 may be smaller than the measured value of S2, that is, ΔL=S1-S2<0. Similarly, S3 and S4 have the same principle and will not be explained in detail.
由于S1、S2、S3和S4设置位置的关系,因此当满足第一距离值与第二距离值不同,和,第三距离值与第四距离值不同中的至少一项时,控制抓手进行旋转,可以包括:确定第一距离值与第二距离值的差值,或,第三距离值与第四距离值的差值;以第一距离值与第二距离值的差值为例进行说明便是,ΔL=S1-S2,然后再根据差值确定抓手的旋转角度,根据旋转角度控制抓手进行旋转。Due to the relationship between the setting positions of S1, S2, S3 and S4, when at least one of the first distance value and the second distance value is different, and the third distance value is different from the fourth distance value, the gripper is controlled to Rotation may include: determining the difference between the first distance value and the second distance value, or the difference between the third distance value and the fourth distance value; taking the difference between the first distance value and the second distance value as an example The explanation is, ΔL=S1-S2, and then determine the rotation angle of the gripper based on the difference, and control the gripper to rotate based on the rotation angle.
图6为本发明的实施例提供的抓手旋转角度的计算原理示意图,如图6所示,为旋转角度的确定原理示意图,根据原理图可知抓手的旋转角度计算公式便可以如公式(1)所示:
Figure 6 is a schematic diagram of the calculation principle of the rotation angle of the gripper provided by the embodiment of the present invention. As shown in Figure 6, it is a schematic diagram of the determination principle of the rotation angle. According to the schematic diagram, it can be seen that the calculation formula of the rotation angle of the gripper can be as follows: formula (1 ) as shown:
其中,表示旋转角度,ΔL表示第一传感器与第二传感器的测量得到的距离值的差值,L1表示S1和S2的安装间距。 in, represents the rotation angle, ΔL represents the difference between the distance values measured by the first sensor and the second sensor, and L1 represents the installation distance between S1 and S2.
由于L1为已知量,ΔL可计算得出,因此,便可以根据公式(1)准确地计算得出抓手沿车道方向的偏转角度。其中,控制抓手的移动方向便是当ΔL>0,便控制抓手逆时针旋转,当ΔL<0,便控制抓手顺时针旋转。最终使得将抓手的位置移动至目标位置,图7是本发明的实施例提供的电池抓取孔定位成功的原理示意图,即如图7所示的原理示意图,便表明此时完成了对电池抓取孔的定位,同时也将抓手移动至了电池抓取孔对应的正对位置,使得抓手相对于电池抓取孔在X轴和Y轴方向完全重合。Since L1 is a known quantity, ΔL can be calculated. Therefore, the deflection angle of the gripper along the lane direction can be accurately calculated according to formula (1). Among them, the movement direction of the gripper is controlled when ΔL>0, the gripper is controlled to rotate counterclockwise, and when ΔL<0, the gripper is controlled to rotate clockwise. Finally, the position of the gripper is moved to the target position. Figure 7 is a schematic diagram of the principle of successful positioning of the battery gripping hole provided by the embodiment of the present invention. That is, the schematic diagram of the principle shown in Figure 7 shows that the battery gripping hole is successfully positioned at this time. The positioning of the grab hole also moves the grabber to the position directly opposite the battery grab hole, so that the grabber completely coincides with the battery grab hole in the X-axis and Y-axis directions.
图8为本发明的实施例提供的电池抓取孔定位的流程示意图,如图8所示,首先执行步骤801:获取初始相对位置。步骤802:S1、S2和S6在电池抓取孔外。具体地,在获取到初始相对位置之后,判断S1、S2和S6是否在电池抓取孔外,例如参照图4,此时的S1、S2和S6均在实线框外。步骤803:X和Y方向移动。具体地,需要将抓手向X和Y方向进行移动。步骤804:S1、S2、S3、S4和S5均能检测到电池框边沿。具体地,移动至如图5所示,使得S1、S2、S3、S4和S5均能检测到电池框边沿,停止抓手向X方向和Y方向的移动。步骤805:旋转角度。具体地,获取S1和S2的距离值,根据距离值的大小对抓手进行一定角度的旋转。步骤806:X和Y方向找正。具体地,在旋转角度完成之后,将X方向和Y方向均找正。步骤807:S1、S2、S3、S4、S5和S6均进入电池抓取孔内部。最终,执行步骤808:电池抓取孔定位完成,即完成了对电池抓取孔的定位。FIG. 8 is a schematic flowchart of battery grab hole positioning provided by an embodiment of the present invention. As shown in FIG. 8 , step 801 is first performed: obtaining an initial relative position. Step 802: S1, S2 and S6 are outside the battery grabbing hole. Specifically, after obtaining the initial relative position, it is determined whether S1, S2 and S6 are outside the battery grabbing hole. For example, referring to Figure 4, S1, S2 and S6 at this time are all outside the solid line frame. Step 803: Move in X and Y directions. Specifically, the gripper needs to be moved in the X and Y directions. Step 804: S1, S2, S3, S4 and S5 can all detect the edge of the battery frame. Specifically, move as shown in Figure 5 so that S1, S2, S3, S4 and S5 can all detect the edge of the battery frame and stop the movement of the gripper in the X and Y directions. Step 805: Rotation angle. Specifically, the distance value between S1 and S2 is obtained, and the gripper is rotated at a certain angle according to the distance value. Step 806: Alignment in X and Y directions. Specifically, after the rotation angle is completed, both the X direction and the Y direction are aligned. Step 807: S1, S2, S3, S4, S5 and S6 all enter the battery grabbing hole. Finally, step 808 is executed: the positioning of the battery grabbing hole is completed, that is, the positioning of the battery grabbing hole is completed.
进一步的,在上述实施例的基础上,本实施例中控制抓手伸入电池抓取孔内部对电池进行抓取,可以包括:采集抓手与抓取孔内部各个侧壁的距离值;根据各个侧壁的距离值,调整抓手伸入抓取孔内部的角度和深度,以完成对电池的抓取。其中,在抓手上还设置有第七传感器、第八传感器和第九传感器;因此采集抓手与抓取孔内部各个侧壁的距离值,则可以包括:第七传感器用于采集抓手正对电池抓取孔的侧面的中心点与电池框内部的第一侧壁中心点的第七距离值,第一侧壁为与抓手伸入方向垂直的侧壁;第八传感器用于采集抓手与第二侧壁的第八距离值,第二侧壁为与第一侧壁垂直的侧壁;第九传感器用于采集抓手与第三侧壁的第九距离值,第三侧壁为与第二侧壁相邻且与第一侧壁垂直的侧壁。Further, based on the above embodiment, in this embodiment, controlling the gripper to extend into the battery gripping hole to grip the battery may include: collecting the distance value between the gripper and each side wall inside the gripping hole; according to The distance value of each side wall can be adjusted to adjust the angle and depth of the gripper extending into the gripping hole to complete the gripping of the battery. Among them, a seventh sensor, an eighth sensor and a ninth sensor are also provided on the gripper; therefore, collecting the distance value between the gripper and each side wall inside the gripper hole can include: the seventh sensor is used to collect the correct position of the gripper. The seventh distance value between the center point of the side of the battery grabbing hole and the center point of the first side wall inside the battery frame. The first side wall is a side wall perpendicular to the direction in which the gripper extends; the eighth sensor is used to collect the gripping The eighth distance value between the hand and the second side wall, the second side wall is a side wall perpendicular to the first side wall; the ninth sensor is used to collect the ninth distance value between the gripper and the third side wall, the third side wall It is a side wall adjacent to the second side wall and perpendicular to the first side wall.
具体的,核心原理为在X方向和Y方向上对抓手进行移动之后,便需要控制将其伸入至电池抓取孔内部,而控制抓手进入电池抓取孔内部的过程中,需要实时的检测抓手的各个侧壁与电池抓取孔内部各个侧壁的距离信息。定义抓手沿电池抓取孔进行移动的方向为Z轴方向,也就是抓手在Z轴上移动的过程中, 需要一直保持在X轴和Y轴上的相对稳定,从而保证在未移动至目标位置时抓手不会触碰到电池,以实现精准定位匹配。Specifically, the core principle is that after moving the gripper in the X and Y directions, it needs to be controlled to extend into the battery gripping hole, and during the process of controlling the gripper to enter the battery gripping hole, real-time Detect the distance information between each side wall of the gripper and each side wall inside the battery gripping hole. Define the direction in which the gripper moves along the battery gripping hole as the Z-axis direction, that is, during the movement of the gripper on the Z-axis, It is necessary to maintain relative stability on the X-axis and Y-axis to ensure that the gripper does not touch the battery when not moving to the target position to achieve precise positioning matching.
图9为本发明的实施例提供的抓手伸入电池抓取孔内部的截面原理示意图,如图9所示,第七传感器的作用是检测抓手伸入电池抓取孔内部的距离,将抓手伸入电池抓取孔的合适位置,避免抓手伸入过深或过浅,第八传感器和第九传感器则分别检测抓手的两个相邻侧壁距离电池抓取孔内部侧壁的距离,保证抓手在伸入电池抓取孔内部时不会触碰到电池抓取孔内壁,从而提高电池抓取的效率,如图9所示的S7、S8和S9分别为第七传感器、第八传感器和第九传感器的设置位置示意图,以保证准确的测量出抓手的各个位置的距离。如图9所示的传感器的设置数量和位置进行示例性说明,只要是采用本实施例的原理,通过检测抓手与电池抓取孔各个侧壁的距离控制抓手的伸入过程均属于本发明的实施例的保护范围。Figure 9 is a schematic cross-sectional view of the gripper extending into the battery gripping hole according to an embodiment of the present invention. As shown in Figure 9, the function of the seventh sensor is to detect the distance of the gripper extending into the battery gripping hole. The gripper extends into the appropriate position of the battery gripping hole to prevent the gripper from extending too deep or too shallowly. The eighth sensor and the ninth sensor respectively detect the distance between the two adjacent side walls of the gripper and the inner side wall of the battery gripping hole. distance to ensure that the gripper will not touch the inner wall of the battery gripping hole when extending into the battery gripping hole, thereby improving the efficiency of battery gripping. S7, S8 and S9 shown in Figure 9 are the seventh sensors respectively. , schematic diagram of the installation positions of the eighth sensor and the ninth sensor to ensure accurate measurement of the distance between each position of the gripper. The number and position of the sensors shown in Figure 9 are exemplified. As long as the principle of this embodiment is adopted, the process of controlling the extension of the gripper by detecting the distance between the gripper and each side wall of the battery gripping hole belongs to this invention. protection scope of the embodiments of the invention.
进一步的,具体的根据各个侧壁的距离值,调整抓手伸入抓取孔内部的角度和深度,包括:若第七距离值大于第一预设阈值,则控制抓手向抓取孔内部移动,第七距离值决定着抓手在Z轴上移动的深度大小,通过第七距离值更好地保证抓手移动至合适位置。若第八距离值大于第二预设阈值,则控制抓手向第八距离值减小的方向移动;若第九距离值大于第三预设阈值,则控制抓手向第九距离值减小的方向移动,第八距离值和第九距离值则是表明抓手的侧壁与电池抓取孔侧壁的距离值,保证抓手在伸入过程中不会受到抓取孔内壁的影响。Further, specifically according to the distance value of each side wall, the angle and depth of the gripper extending into the gripping hole are adjusted, including: if the seventh distance value is greater than the first preset threshold, controlling the gripper to extend into the gripping hole. Movement, the seventh distance value determines the depth of movement of the gripper on the Z axis. The seventh distance value can better ensure that the gripper moves to the appropriate position. If the eighth distance value is greater than the second preset threshold, the gripper is controlled to move in a direction in which the eighth distance value decreases; if the ninth distance value is greater than the third preset threshold, the gripper is controlled to move in a direction in which the ninth distance value decreases. The eighth distance value and the ninth distance value indicate the distance value between the side wall of the gripper and the side wall of the battery gripping hole to ensure that the gripper will not be affected by the inner wall of the gripping hole during the extension process.
基于同一总的发明构思,本发明的实施例还保护一种电池抓取定位装置,下面对本发明的实施例提供的电池抓取定位装置进行描述,下文描述的电池抓取定位装置与上文描述的电池抓取定位方法可相互对应参照。Based on the same general inventive concept, embodiments of the present invention also protect a battery grabbing and positioning device. The battery grabbing and positioning device provided by the embodiment of the invention is described below. The battery grabbing and positioning device described below is the same as the battery grabbing and positioning device described above. The battery grabbing and positioning methods can be referenced correspondingly.
图10是本发明的实施例提供的电池抓取定位装置的结构示意图。Figure 10 is a schematic structural diagram of a battery grabbing and positioning device provided by an embodiment of the present invention.
如图10所示,本发明的实施例提供的一种电池抓取定位装置,包括:As shown in Figure 10, a battery grabbing and positioning device provided by an embodiment of the present invention includes:
确定模块1001,用于确定抓手相对于电池抓取孔的初始相对位置,电池抓取孔设置于电池上,电池抓取孔与抓手相匹配,抓手用于伸入电池抓取孔内部对电池进行抓取;Determination module 1001 is used to determine the initial relative position of the gripper relative to the battery gripper hole. The battery gripper hole is set on the battery. The battery gripper hole matches the gripper. The gripper is used to extend into the battery gripper hole. Grab the battery;
调整模块1002,用于调整抓手相对于电池抓取孔的初始相对位置,得到调整后的相对位置; The adjustment module 1002 is used to adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position;
控制模块1003,用于当相对位置表示抓手正对电池抓取孔的侧面与电池抓取孔的开口重合时,控制抓手伸入电池抓取孔内部对电池进行抓取。The control module 1003 is used to control the gripper to extend into the battery gripping hole to grip the battery when the relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole.
本实施例提供的一种电池抓取定位装置,通过确定抓手相对于电池抓取孔的初始相对位置,电池抓取孔设置于电池上,电池抓取孔与抓手相匹配,抓手用于伸入电池抓取孔内部对电池进行抓取;调整抓手相对于电池抓取孔的初始相对位置,得到调整后的相对位置;当调整后的相对位置表示抓手正对电池抓取孔的侧面与电池抓取孔的开口重合时,控制抓手伸入电池抓取孔内部对电池进行抓取,通过直接定位出抓手与电池抓取孔的相对位置,能够更好地保证抓手伸入电池抓取孔内,并通过实时调整抓手的移动,更精准的实现对电池的抓取,提高抓手对电池的抓取效率。This embodiment provides a battery grabbing and positioning device. By determining the initial relative position of the gripper relative to the battery gripping hole, the battery gripping hole is provided on the battery. The battery gripping hole matches the gripper. The gripper is used to Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position indicates that the gripper is facing the battery grabbing hole When the side of the battery coincides with the opening of the battery grabbing hole, control the gripper to extend into the battery grabbing hole to grab the battery. By directly locating the relative position of the gripper and the battery grabbing hole, the gripper can be better ensured. Reach into the battery grabbing hole and adjust the movement of the gripper in real time to more accurately grasp the battery and improve the battery grabbing efficiency of the gripper.
进一步的,本实施例中的所述确定模块1001,具体用于:Further, the determination module 1001 in this embodiment is specifically used to:
采集抓手的边框的多个位置与电池抓取孔的多组距离值;Collect multiple sets of distance values from multiple positions of the gripper frame and the battery gripping hole;
根据所述多组距离值的大小关系,确定抓手相对于电池抓取孔的初始相对位置。According to the magnitude relationship of the multiple sets of distance values, the initial relative position of the gripper relative to the battery gripping hole is determined.
进一步的,本实施例中的调整模块1002,具体用于:Further, the adjustment module 1002 in this embodiment is specifically used for:
根据所述多组距离值,确定所述抓手是否检测到所述电池抓取孔开口处对应的边框;Determine whether the gripper detects the frame corresponding to the opening of the battery gripping hole according to the multiple sets of distance values;
控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移。The gripper is controlled to translate from a position where the frame corresponding to the opening of the battery gripping hole is not detected to a direction where the frame corresponding to the opening of the battery gripping hole is detected.
进一步的,本实施例中所述抓手正对所述电池抓取孔的侧面为矩形框,所述矩形框包括第一长边、第二长边、第一短边和第二短边;Further, in this embodiment, the side of the gripper facing the battery gripping hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, a first short side and a second short side;
所述第一长边设置有第一传感器和第二传感器,所述第二长边设置有第三传感器和第四传感器,所述第一短边设置有第五传感器,所述第二短边设置有第六传感器。The first long side is provided with a first sensor and a second sensor, the second long side is provided with a third sensor and a fourth sensor, the first short side is provided with a fifth sensor, and the second short side is provided with a fifth sensor. A sixth sensor is provided.
进一步的,本实施例中还包括旋转模块,用于:Furthermore, this embodiment also includes a rotation module for:
若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,则控制所述抓手进行旋转。 If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, the gripper is controlled to rotate.
进一步的,本实施例中当满足所述第一距离值与所述第二距离值不同时,所述旋转模块具体用于:Further, in this embodiment, when the first distance value and the second distance value are different, the rotation module is specifically used to:
确定所述第一距离值与所述第二距离值的差值;Determine the difference between the first distance value and the second distance value;
根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
进一步的,本实施例中还包括旋转模块,用于:Furthermore, this embodiment also includes a rotation module for:
若所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。If the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, the gripper is controlled to rotate.
进一步的,本实施例中当满足所述第三距离值与所述第四距离值不同时,所述旋转模块具体用于:Further, in this embodiment, when the third distance value and the fourth distance value are different, the rotation module is specifically used to:
确定所述第三距离值与所述第四距离值的差值;Determine the difference between the third distance value and the fourth distance value;
根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
进一步的,本实施例中还包括旋转模块,用于:Furthermore, this embodiment also includes a rotation module for:
若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,以及所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, and the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, If different, the gripper is controlled to rotate.
进一步的,本实施例中的控制模块1003,具体用于:Further, the control module 1003 in this embodiment is specifically used for:
采集所述抓手与所述抓取孔内部各个侧壁的距离值;Collect the distance value between the gripper and each side wall inside the gripping hole;
根据所述各个侧壁的距离值,调整所述抓手伸入所述抓取孔内部的角度和深度,以完成对电池的抓取。According to the distance value of each side wall, the angle and depth of the gripper extending into the gripping hole are adjusted to complete gripping of the battery.
进一步的,本实施例中所述抓手上还设置有第七传感器、第八传感器和第九传感器;Further, in this embodiment, the gripper is also provided with a seventh sensor, an eighth sensor and a ninth sensor;
进一步的,本实施例中的控制模块1003,具体还用于:Furthermore, the control module 1003 in this embodiment is also specifically used for:
所述第七传感器用于采集所述抓手正对所述电池抓取孔的侧面的中心点与所述电池框内部的第一侧壁中心点的第七距离值,所述第一侧壁为与所述抓手伸入方向垂直的侧壁; The seventh sensor is used to collect a seventh distance value between the center point of the side of the gripper facing the battery gripping hole and the center point of the first side wall inside the battery frame. The first side wall It is the side wall perpendicular to the direction in which the gripper extends;
所述第八传感器用于采集所述抓手与第二侧壁的第八距离值,所述第二侧壁为与所述第一侧壁垂直的侧壁;The eighth sensor is used to collect an eighth distance value between the gripper and the second side wall, and the second side wall is a side wall perpendicular to the first side wall;
所述第九传感器用于采集所述抓手与第三侧壁的第九距离值,所述第三侧壁为与所述第二侧壁相邻且与所述第一侧壁垂直的侧壁。The ninth sensor is used to collect a ninth distance value between the gripper and a third side wall, which is a side adjacent to the second side wall and perpendicular to the first side wall. wall.
进一步的,本实施例中的控制模块1003,具体还用于:Furthermore, the control module 1003 in this embodiment is also specifically used for:
若所述第七距离值大于第一预设阈值,则控制所述抓手向所述抓取孔内部移动;If the seventh distance value is greater than the first preset threshold, control the gripper to move inside the gripping hole;
若所述第八距离值大于第二预设阈值,则控制所述抓手向所述第八距离值减小的方向移动;If the eighth distance value is greater than the second preset threshold, control the gripper to move in the direction in which the eighth distance value decreases;
若所述第九距离值大于第三预设阈值,则控制所述抓手向所述第九距离值减小的方向移动。If the ninth distance value is greater than the third preset threshold, the gripper is controlled to move in a direction in which the ninth distance value decreases.
图11是本发明的实施例提供的电子设备的结构示意图。Figure 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
如图11所示,该电子设备可以包括:处理器(processor)1110、通信接口(Communications Interface)1120、存储器(memory)1130和通信总线1140,其中,处理器1110,通信接口1120,存储器1130通过通信总线1140完成相互间的通信。处理器1110可以调用存储器1130中的逻辑指令,以执行电池抓取定位方法,该方法包括:确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;当所述调整后的相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。As shown in Figure 11, the electronic device may include: a processor (processor) 1110, a communication interface (Communications Interface) 1120, a memory (memory) 1130, and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 pass The communication bus 1140 completes mutual communication. The processor 1110 can call the logic instructions in the memory 1130 to execute the battery grabbing and positioning method. The method includes: determining the initial relative position of the gripper relative to the battery grabbing hole, and the battery grabbing hole is provided on the battery, so The battery grab hole matches the grab hand, and the grab hand is used to extend into the battery grab hole to grab the battery; adjust the initial relative position of the grab hand with respect to the battery grab hole. position to obtain the adjusted relative position; when the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend Go inside the battery grabbing hole to grab the battery.
此外,上述的存储器1130中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明的实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器 (ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logical instructions in the memory 1130 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the embodiments of the present invention is essentially or contributes to the existing technology or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes.
另一方面,本发明的实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的电池抓取定位方法,该方法包括:确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;当所述调整后的相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。On the other hand, embodiments of the present invention also provide a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, , the computer can execute the battery grabbing and positioning method provided by the above methods. The method includes: determining the initial relative position of the gripper relative to the battery grabbing hole, the battery grabbing hole is provided on the battery, the battery grabbing The hole matches the gripper, and the gripper is used to extend into the battery gripping hole to grip the battery; adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjustment When the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery Grab the battery inside the grab hole.
又一方面,本发明的实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的电池抓取定位方法,该方法包括:确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;当所述调整后的相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。On the other hand, embodiments of the present invention also provide a non-transitory computer-readable storage medium on which a computer program is stored. The computer program is implemented when executed by the processor to execute the battery grabbing and positioning method provided by each of the above methods. , the method includes: determining the initial relative position of the gripper relative to the battery gripper hole, the battery gripper hole is provided on the battery, the battery gripper hole matches the gripper, and the gripper is used for Reach into the battery grabbing hole to grab the battery; adjust the initial relative position of the gripper relative to the battery grabbing hole to obtain the adjusted relative position; when the adjusted relative position represents the desired When the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery gripping hole to grip the battery.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in One location, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。 Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the part of the above technical solution that essentially contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的实施例的技术方案,而非对其限制;尽管参照前述实施例对本发明的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明的实施例各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, but not to limit them; although the embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art It should be understood that the technical solutions described in the foregoing embodiments can still be modified, or some of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the embodiments of the present invention. spirit and scope of the technical solution of the embodiment.

Claims (15)

  1. 一种电池抓取定位方法,其特征在于,应用于抓手控制系统,包括:A battery grabbing and positioning method, characterized in that it is applied to a gripper control system and includes:
    确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取;Determine the initial relative position of the gripper relative to the battery gripper hole. The battery gripper hole is provided on the battery. The battery gripper hole matches the gripper. The gripper is used to extend into the battery. Grab the battery inside the grab hole;
    调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;Adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position;
    当所述调整后的相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。When the adjusted relative position indicates that the side of the gripper facing the battery gripping hole coincides with the opening of the battery gripping hole, the gripper is controlled to extend into the battery gripping hole to The battery is captured.
  2. 根据权利要求1所述的方法,其特征在于,所述确定抓手相对于电池抓取孔的初始相对位置,包括:The method of claim 1, wherein determining the initial relative position of the gripper relative to the battery gripping hole includes:
    采集抓手的边框的多个位置与电池抓取孔的多组距离值;Collect multiple sets of distance values from multiple positions of the gripper frame and the battery gripping hole;
    根据所述多组距离值的大小关系,确定抓手相对于电池抓取孔的初始相对位置。According to the magnitude relationship of the multiple sets of distance values, the initial relative position of the gripper relative to the battery gripping hole is determined.
  3. 根据权利要求2所述的电池抓取定位方法,其特征在于,所述调整所述抓手相对于所述电池抓取孔的初始相对位置,包括:The battery grabbing and positioning method according to claim 2, wherein the adjusting the initial relative position of the gripper relative to the battery grabbing hole includes:
    根据所述多组距离值,确定所述抓手是否检测到所述电池抓取孔开口处对应的边框;Determine whether the gripper detects the frame corresponding to the opening of the battery gripping hole according to the multiple sets of distance values;
    控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移。The gripper is controlled to translate from a position where the frame corresponding to the opening of the battery gripping hole is not detected to a direction where the frame corresponding to the opening of the battery gripping hole is detected.
  4. 根据权利要求3所述的电池抓取定位方法,其特征在于,所述抓手正对所述电池抓取孔的侧面为矩形框,所述矩形框包括第一长边、第二长边、第一短边和第二短边;The battery grabbing and positioning method according to claim 3, characterized in that the side of the gripper facing the battery grabbing hole is a rectangular frame, and the rectangular frame includes a first long side, a second long side, the first short side and the second short side;
    所述第一长边设置有第一传感器和第二传感器,所述第二长边设置有第三传感器和第四传感器,所述第一短边设置有第五传感器,所述第二短边设置有第六传感器。 The first long side is provided with a first sensor and a second sensor, the second long side is provided with a third sensor and a fourth sensor, the first short side is provided with a fifth sensor, and the second short side is provided with a fifth sensor. A sixth sensor is provided.
  5. 根据权利要求4所述的电池抓取定位方法,其特征在于,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:The battery grasping and positioning method according to claim 4, characterized in that the control of the grasper is from a position where the frame corresponding to the opening of the battery grasping hole is not detected to a position where the battery grasping hole is detected. After the direction of the frame corresponding to the opening is translated, it also includes:
    若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,则控制所述抓手进行旋转。If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, the gripper is controlled to rotate.
  6. 根据权利要求5所述的电池抓取定位方法,其特征在于,当满足所述第一距离值与所述第二距离值不同时,所述控制所述抓手进行旋转,包括:The battery grabbing and positioning method according to claim 5, characterized in that, when the first distance value and the second distance value are different, the controlling the gripper to rotate includes:
    确定所述第一距离值与所述第二距离值的差值;Determine the difference between the first distance value and the second distance value;
    根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  7. 根据权利要求4所述的电池抓取定位方法,其特征在于,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:The battery grasping and positioning method according to claim 4, characterized in that the control of the grasper is from a position where the frame corresponding to the opening of the battery grasping hole is not detected to a position where the battery grasping hole is detected. After the direction of the frame corresponding to the opening is translated, it also includes:
    若所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。If the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, the gripper is controlled to rotate.
  8. 根据权利要求7所述的电池抓取定位方法,其特征在于,当满足所述第三距离值与所述第四距离值不同时,所述控制所述抓手进行旋转,包括:The battery grabbing and positioning method according to claim 7, characterized in that when the third distance value and the fourth distance value are different, the controlling the gripper to rotate includes:
    确定所述第三距离值与所述第四距离值的差值;Determine the difference between the third distance value and the fourth distance value;
    根据所述差值确定所述抓手的旋转角度,根据所述旋转角度控制所述抓手进行旋转。The rotation angle of the gripper is determined according to the difference value, and the gripper is controlled to rotate according to the rotation angle.
  9. 根据权利要求4所述的电池抓取定位方法,其特征在于,所述控制所述抓手由未检测到所述电池抓取孔开口处对应的边框的位置向检测到所述电池抓取孔开口处对应的边框的方向进行平移之后,还包括:The battery grasping and positioning method according to claim 4, characterized in that the control of the grasper is from a position where the frame corresponding to the opening of the battery grasping hole is not detected to a position where the battery grasping hole is detected. After the direction of the frame corresponding to the opening is translated, it also includes:
    若所述第一传感器采集的第一距离值与所述第二传感器采集的第二距离值不同,以及所述第三传感器采集的第三距离值与所述第四传感器采集的第四距离值不同,则控制所述抓手进行旋转。 If the first distance value collected by the first sensor is different from the second distance value collected by the second sensor, and the third distance value collected by the third sensor is different from the fourth distance value collected by the fourth sensor, If different, the gripper is controlled to rotate.
  10. 根据权利要求1至9中任一项所述的电池抓取定位方法,其特征在于,所述控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取,包括:The battery grabbing and positioning method according to any one of claims 1 to 9, characterized in that the controlling the gripper to extend into the battery grabbing hole to grab the battery includes:
    采集所述抓手与所述抓取孔内部各个侧壁的距离值;Collect the distance value between the gripper and each side wall inside the gripping hole;
    根据所述各个侧壁的距离值,调整所述抓手伸入所述抓取孔内部的角度和深度,以完成对电池的抓取。According to the distance value of each side wall, the angle and depth of the gripper extending into the gripping hole are adjusted to complete gripping of the battery.
  11. 根据权利要求10所述的电池抓取定位方法,其特征在于,所述抓手上还设置有第七传感器、第八传感器和第九传感器;The battery grabbing and positioning method according to claim 10, characterized in that the gripper is further provided with a seventh sensor, an eighth sensor and a ninth sensor;
    所述采集所述抓手与所述抓取孔内部各个侧壁的距离值,包括:The collection of distance values between the gripper and each side wall inside the gripping hole includes:
    所述第七传感器用于采集所述抓手正对所述电池抓取孔的侧面的中心点与所述电池框内部的第一侧壁中心点的第七距离值,所述第一侧壁为与所述抓手伸入方向垂直的侧壁;The seventh sensor is used to collect a seventh distance value between the center point of the side of the gripper facing the battery gripping hole and the center point of the first side wall inside the battery frame. The first side wall It is the side wall perpendicular to the direction in which the gripper extends;
    所述第八传感器用于采集所述抓手与第二侧壁的第八距离值,所述第二侧壁为与所述第一侧壁垂直的侧壁;The eighth sensor is used to collect an eighth distance value between the gripper and the second side wall, and the second side wall is a side wall perpendicular to the first side wall;
    所述第九传感器用于采集所述抓手与第三侧壁的第九距离值,所述第三侧壁为与所述第二侧壁相邻且与所述第一侧壁垂直的侧壁。The ninth sensor is used to collect a ninth distance value between the gripper and a third side wall, which is a side adjacent to the second side wall and perpendicular to the first side wall. wall.
  12. 根据权利要求11所述的电池抓取定位方法,其特征在于,所述根据所述各个侧壁的距离值,调整所述抓手伸入所述抓取孔内部的角度和深度,包括:The battery grabbing and positioning method according to claim 11, characterized in that adjusting the angle and depth of the gripper extending into the gripping hole according to the distance value of each side wall includes:
    若所述第七距离值大于第一预设阈值,则控制所述抓手向所述抓取孔内部移动;If the seventh distance value is greater than the first preset threshold, control the gripper to move inside the gripping hole;
    若所述第八距离值大于第二预设阈值,则控制所述抓手向所述第八距离值减小的方向移动;If the eighth distance value is greater than the second preset threshold, control the gripper to move in the direction in which the eighth distance value decreases;
    若所述第九距离值大于第三预设阈值,则控制所述抓手向所述第九距离值减小的方向移动。If the ninth distance value is greater than the third preset threshold, the gripper is controlled to move in a direction in which the ninth distance value decreases.
  13. 一种电池抓取定位装置,其特征在于,包括:A battery grabbing and positioning device, characterized by including:
    确定模块,用于确定抓手相对于电池抓取孔的初始相对位置,所述电池抓取孔设置于电池上,所述电池抓取孔与所述抓手相匹配,所述抓手用于伸入所述电池抓取孔内部对电池进行抓取; Determining module, used to determine the initial relative position of the gripper relative to the battery gripper hole. The battery gripper hole is provided on the battery. The battery gripper hole matches the gripper. The gripper is used to Reach into the battery grabbing hole to grab the battery;
    调整模块,用于调整所述抓手相对于所述电池抓取孔的初始相对位置,得到调整后的相对位置;an adjustment module, used to adjust the initial relative position of the gripper relative to the battery gripping hole to obtain the adjusted relative position;
    控制模块,用于当所述相对位置表示所述抓手正对所述电池抓取孔的侧面与所述电池抓取孔的开口重合时,控制所述抓手伸入所述电池抓取孔内部对所述电池进行抓取。A control module configured to control the gripper to extend into the battery gripper hole when the relative position indicates that the side of the gripper facing the battery gripper hole coincides with the opening of the battery gripper hole. Internal capture of said battery.
  14. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至12任一项所述电池抓取定位方法。An electronic device, including a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that when the processor executes the program, it implements claims 1 to 12 The battery grabbing and positioning method described in any one of the above.
  15. 一种非暂态计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序用于执行上述权利要求1至12任一项所述的电池抓取定位方法。 A non-transitory computer-readable storage medium, characterized in that the storage medium stores a computer program, and the computer program is used to execute the battery grabbing and positioning method described in any one of claims 1 to 12.
PCT/CN2023/082206 2022-03-21 2023-03-17 Battery grabbing and positioning method, apparatus and device WO2023179491A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210282196.2 2022-03-21
CN202210282196.2A CN114648573A (en) 2022-03-21 2022-03-21 Battery grabbing and positioning method, device and equipment

Publications (1)

Publication Number Publication Date
WO2023179491A1 true WO2023179491A1 (en) 2023-09-28

Family

ID=81995742

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/082206 WO2023179491A1 (en) 2022-03-21 2023-03-17 Battery grabbing and positioning method, apparatus and device

Country Status (2)

Country Link
CN (1) CN114648573A (en)
WO (1) WO2023179491A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114648573A (en) * 2022-03-21 2022-06-21 三一重工股份有限公司 Battery grabbing and positioning method, device and equipment
CN115683017A (en) * 2022-10-12 2023-02-03 三一锂能有限公司 Battery positioning method, device, equipment, storage medium and battery replacement station

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108372513A (en) * 2018-04-16 2018-08-07 上汽时代动力电池系统有限公司 A kind of battery modules automation grabbing device
US10096311B1 (en) * 2017-09-12 2018-10-09 Plantronics, Inc. Intelligent soundscape adaptation utilizing mobile devices
CN214753871U (en) * 2021-04-20 2021-11-16 无锡先导智能装备股份有限公司 Battery tray
CN113858193A (en) * 2021-09-13 2021-12-31 三一重工股份有限公司 Battery grabbing method and device
CN114648573A (en) * 2022-03-21 2022-06-21 三一重工股份有限公司 Battery grabbing and positioning method, device and equipment
CN115683017A (en) * 2022-10-12 2023-02-03 三一锂能有限公司 Battery positioning method, device, equipment, storage medium and battery replacement station

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10096311B1 (en) * 2017-09-12 2018-10-09 Plantronics, Inc. Intelligent soundscape adaptation utilizing mobile devices
CN108372513A (en) * 2018-04-16 2018-08-07 上汽时代动力电池系统有限公司 A kind of battery modules automation grabbing device
CN214753871U (en) * 2021-04-20 2021-11-16 无锡先导智能装备股份有限公司 Battery tray
CN113858193A (en) * 2021-09-13 2021-12-31 三一重工股份有限公司 Battery grabbing method and device
CN114648573A (en) * 2022-03-21 2022-06-21 三一重工股份有限公司 Battery grabbing and positioning method, device and equipment
CN115683017A (en) * 2022-10-12 2023-02-03 三一锂能有限公司 Battery positioning method, device, equipment, storage medium and battery replacement station

Also Published As

Publication number Publication date
CN114648573A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
WO2023179491A1 (en) Battery grabbing and positioning method, apparatus and device
CN101152720B (en) Workpiece picking apparatus
CN109797691A (en) Unmanned sweeper and its travelling-crane method
EP4375614A1 (en) Battery positioning method and apparatus, device, storage medium, and battery swap station
CN106494395A (en) A kind of automatic parking control method and device based on data fusion
CN107089458A (en) A kind of new intelligent environment protection rubbish automatic recovery system
CN110936846A (en) Battery replacing method, battery replacing robot and storage medium
CN106786938A (en) A kind of crusing robot localization method and automatic recharging method
CN111498525A (en) Automatic loading positioning system and method
CN113096433A (en) Autonomous parking method and device based on vehicle-road cooperation and storage medium
CN107203207A (en) Unmanned traveling Operation Van
CN110539299A (en) Robot working method, controller and robot system
CN113858193B (en) Battery grabbing method and device
CN118023629B (en) Battery cutting, positioning and placing system, method and device
CN113689509A (en) Binocular vision-based disordered grabbing method and system and storage medium
CN115414072A (en) Pharynx swab sampling method and device, sampling equipment and computer program product
CN117223115A (en) Method and device for detecting tab
CN111917157A (en) Automatic charging method, system, equipment and storage medium for inspection robot
CN114952871B (en) System and method for sorting object blocks
US20200347579A1 (en) Tip attachment discrimination device
CN116175542B (en) Method, device, electronic equipment and storage medium for determining clamp grabbing sequence
JP2002259966A (en) Periphery recognition device
CN111897337B (en) Obstacle avoidance control method and control system for robot during edgewise walking
CN116641532A (en) Intelligent control method and device for mechanical arm based on dynamic vision and brick laying robot
CN208971195U (en) A kind of charging system of hospital&#39;s Intelligent transfer robot

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

Country of ref document: EP

Kind code of ref document: A1