Device and method for detecting sample test tube
By integrating the robotic arm and laser ranging sensor on the sample carrier, and automatically adjusting the robotic arm operation using the measured distance data, the problem of complex and inefficient sample test tube grabbing is solved, and automated grabbing and multiple test tube types are realized. Adaptability improves detection efficiency.
Patent Information
- Application Number
- CN202310636042.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, the grabbing method of sample test tubes has problems such as complex structure and low working efficiency, especially when it is necessary to automatically process multiple types of test tubes.
Using a device including a sample carrier, a robotic arm and a laser ranging sensor, the actual distance data of the test tube position is detected through the laser ranging sensor, the robotic arm moves and grabs the test tube, and the controller is used to perform the preset distance and grab the parameters. Automate operations, simplify structure and improve work efficiency.
It realizes automatic capture of sample test tubes, simplifies the device structure, improves the working efficiency of sample detection, is compatible with multiple test tube types, and is suitable for automated processing of different types of test tubes.
Smart Images

Figure CN119057767A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medical machinery, and in particular to a device and method for detecting a sample tube. Background Art
[0002] In the field of medical device automation, during the research of biological samples, it is usually necessary to move the sample tubes containing the biological samples. In order to realize the automatic grabbing and movement of the sample tubes, the prior art usually loads the same type of sample tubes into a tube carrier to facilitate the subsequent automatic grabbing. However, this method requires a large number of tube carriers and also reduces the working efficiency of the entire system. Another way is to increase the hardware structure to realize the grabbing of different types of tubes in the same tube carrier. This method will lead to a more complex system. Therefore, the method of grabbing sample tubes used in the prior art has the problems of complex structure and low working efficiency. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a device and method for detecting a sample test tube, so as to solve the problems of complex structure and low working efficiency in the method of grabbing the sample test tube used in the prior art.
[0004] In order to achieve the above-mentioned object, the first aspect of the present application provides a device for detecting a sample test tube, the device comprising:
[0005] A sample carrier, wherein a plurality of test tube positions are provided on the sample carrier;
[0006] A robotic arm is disposed above the sample carrier, communicates with the controller, and is configured to grab a test tube to be grabbed in the sample carrier;
[0007] A laser distance measuring sensor is disposed on the mechanical arm, communicates with the controller, and is configured to detect the distance between the laser distance measuring sensor and the tube position to be tested in the sample carrier, and feed back the detected actual distance data to the controller;
[0008] The controller is configured to determine adjustment parameters of the robot arm according to the measured distance data, and control the movement and grasping of the robot arm according to the adjustment parameters.
[0009] In the embodiment of the present application, the controller is further configured to:
[0010] Control the movement of the mechanical arm so that the laser distance sensor moves to the zero position of the sample carrier, where the zero position is a set tube position for the laser distance sensor to collect actual distance data of different types of sample tubes;
[0011] Obtain measured distance data of different types of sample tubes collected by laser distance measuring sensors;
[0012] Obtain the grabbing parameters corresponding to different types of sample tubes;
[0013] The mapping relationship between the measured distance data and the corresponding grabbing parameters of different types of sample tubes is stored in the sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database;
[0014] The preset distance data is the actual distance data from the laser distance measuring sensor to the center position of the test tube cover of the sample test tube.
[0015] In the embodiment of the present application, the controller is further configured to:
[0016] Control the movement of the robotic arm so that the laser distance measuring sensor moves to the position just above the center of the pipe to be tested;
[0017] Obtain the actual distance data detected by the laser ranging sensor;
[0018] Compare the measured distance data with the preset loading distance to determine whether the test tube position to be tested is loaded with a test tube to be grabbed;
[0019] In the case where the test tube to be grabbed is loaded in the test tube position, the measured distance data is matched with the preset distance data in the sample type database;
[0020] In the case of successful matching, the preset grabbing parameters of the test tube to be grabbed are determined according to the matched preset distance data;
[0021] The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm.
[0022] In the embodiment of the present application, the controller is further configured to:
[0023] In case of a match failure, a prompt message is output; and
[0024] Determine the measured distance data as the preset distance data of the test tube to be grasped;
[0025] Obtaining preset grabbing parameters of the test tube to be grabbed;
[0026] The preset distance data and the preset grabbing parameter mapping of the test tube to be grabbed are stored in the sample type database to update the sample type database.
[0027] In the embodiment of the present application, the controller is further configured to:
[0028] When the measured distance data is less than the preset loading distance, it is determined that a test tube to be grabbed is loaded in the tube position to be tested;
[0029] When the measured distance data is greater than or equal to the preset loading distance, it is determined that the test tube position is not loaded with the test tube to be grabbed.
[0030] A second aspect of the present application provides a method for detecting a sample tube, which is applied to a controller, the controller communicates with a mechanical arm and a laser ranging sensor respectively, the laser ranging sensor is arranged on the mechanical arm, and the mechanical arm is arranged above the sample carrier, the method comprising:
[0031] Acquire the actual distance data fed back by the laser distance measuring sensor, where the actual distance data is the distance between the laser distance measuring sensor and the tube position to be tested in the sample carrier detected by the laser distance measuring sensor;
[0032] Determine the adjustment parameters of the robot arm according to the measured distance data;
[0033] Control the movement and grasping of the robot arm according to the adjustment parameters.
[0034] In an embodiment of the present application, the method further includes:
[0035] Control the movement of the mechanical arm so that the laser distance sensor moves to the zero position of the sample carrier, where the zero position is a set tube position for the laser distance sensor to collect actual distance data of different types of sample tubes;
[0036] Obtain measured distance data of different types of sample tubes collected by laser distance measuring sensors;
[0037] Obtain the grabbing parameters corresponding to different types of sample tubes;
[0038] The mapping relationship between the measured distance data and the corresponding grabbing parameters of different types of sample tubes is stored in the sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database;
[0039] The preset distance data is the actual distance data from the laser distance measuring sensor to the center position of the test tube cover of the sample test tube.
[0040] In the embodiment of the present application, determining the adjustment parameters of the robotic arm according to the measured distance data includes:
[0041] Control the movement of the robotic arm so that the laser distance measuring sensor moves to the position just above the center of the pipe to be tested;
[0042] Obtain the actual distance data detected by the laser ranging sensor;
[0043] Compare the measured distance data with the preset loading distance to determine whether the test tube position to be tested is loaded with a test tube to be grabbed;
[0044] In the case where the test tube to be grabbed is loaded in the test tube position, the measured distance data is matched with the preset distance data in the sample type database;
[0045] In the case of successful matching, the preset grabbing parameters of the test tube to be grabbed are determined according to the matched preset distance data;
[0046] The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm.
[0047] In an embodiment of the present application, the method further includes:
[0048] In case of a match failure, a prompt message is output; and
[0049] Determine the measured distance data as the preset distance data of the test tube to be grasped;
[0050] Obtaining preset grabbing parameters of the test tube to be grabbed;
[0051] The preset distance data and the preset grabbing parameters of the test tube to be grabbed are stored in the sample type database as sample data mapping to update the sample type database.
[0052] In the embodiment of the present application, comparing the measured distance data with the preset loading distance to determine whether the tube position to be tested is loaded with a test tube to be grabbed includes:
[0053] When the measured distance data is less than the preset loading distance, it is determined that a test tube to be grabbed is loaded in the tube position to be tested;
[0054] When the measured distance data is greater than or equal to the preset loading distance, it is determined that the test tube position is not loaded with the test tube to be grabbed.
[0055] Through the above technical scheme, a device for detecting sample test tubes is provided, the device comprising: a sample carrier, on which a plurality of test tube positions are arranged; a mechanical arm, arranged above the sample carrier, communicating with a controller, and configured to grab the test tubes to be grabbed in the sample carrier; a laser ranging sensor, arranged on the mechanical arm, communicating with a controller, and configured to detect the distance between the laser ranging sensor and the tube positions to be tested in the sample carrier, and to feed back the detected measured distance data to the controller; the controller is configured to determine the adjustment parameters of the mechanical arm according to the measured distance data, and to control the movement and grabbing of the mechanical arm according to the adjustment parameters. This application adds a laser ranging sensor, and the controller determines the adjustment parameters of the mechanical arm through the data collected by the laser ranging sensor to control the movement of the mechanical arm and the grabbing of the sample test tubes on the sample carrier. The structure is simple, and the automatic grabbing of the sample test tubes is realized, which is conducive to improving the working efficiency of sample detection.
[0056] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0058] Figure 1 A schematic diagram of the structure of a device for detecting a sample tube provided in an embodiment of the present application;
[0059] Figure 2 A schematic flow chart of a method for detecting a sample test tube is provided for an embodiment of the present application;
[0060] Figure 3 A flowchart of a method for constructing a sample type database provided in a specific embodiment of the present application;
[0061] Figure 4 A schematic flow chart of a method for detecting a sample tube provided in a specific embodiment of the present application.
[0062] Description of Reference Numerals
[0063] 100 Sample carrier 200 Robotic arm
[0064] 300 Laser distance sensor 400 Controller
[0065] 110 Test tube to be grasped 310 Electric gripper
[0066] 320 Y-axis stepper motor 330 Z-axis stepper motor DETAILED DESCRIPTION
[0067] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0068] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0069] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0070] Figure 1 This is a schematic diagram of a device for detecting a sample tube provided in an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a device for detecting a sample tube, which may include:
[0071] A sample carrier 100, on which a plurality of test tube positions are arranged;
[0072] The robot arm 200 is disposed above the sample carrier 100 , communicates with the controller 400 , and is configured to grab the test tube 110 to be grabbed in the sample carrier 100 ;
[0073] The laser distance sensor 300 is disposed on the robot arm 200 and communicates with the controller 400 , and is configured to detect the distance between the laser distance sensor 300 and the tube position to be tested in the sample carrier 100 , and feed back the detected actual distance data to the controller 400 ;
[0074] The controller 400 is configured to determine adjustment parameters of the robot arm 200 according to the measured distance data, and control the movement and grasping of the robot arm 200 according to the adjustment parameters.
[0075] In the embodiment of the present application, a sample carrier 100 can be compatible with multiple types of test tubes. The sample carrier 100 is provided with multiple test tube positions, which are mainly used to load sample test tubes so as to detect and grab the sample test tubes. The size of the test tube positions in the sample carrier 100 can be set according to actual needs. In one example, when the diameters of various types of sample test tubes are slightly different, the multiple test tube positions on the sample carrier 100 can all be set to the same size. In another example, when the diameters of different types of sample test tubes are greatly different, test tube positions of different sizes can be set on the sample carrier 100. In this way, by setting the size of the test tube positions on the sample carrier 100 according to actual needs, the need to load multiple different types of sample test tubes on one sample carrier 100 can be met, thereby expanding the scope of application of the device.
[0076] In the embodiment of the present application, in order to realize the grasping and transfer of the to-be-grabbed test tube 110 in the sample test tube, a mechanical arm 200 may be provided on the sample carrier 100, and the mechanical arm 200 may communicate with the controller 400. In one example, a stepper motor and an electric clamp 310 may be provided on the mechanical arm 200, and the controller 400 may control the movement of the electric clamp 310 and the opening and closing of the electric clamp 310 by controlling the movement of the stepper motor; wherein the stepper motor may include an X-axis stepper motor (not shown in the figure), a Y-axis stepper motor 320, and a Z-axis stepper motor 330, and the X-axis stepper motor and the Y-axis stepper motor 320 may control the electric clamp 310 to translate in the horizontal direction, and the Z-axis stepper motor 330 may control the electric clamp 310 to move up and down.
[0077] In the embodiment of the present application, since different types of sample test tubes have different heights, the test tube types can be distinguished according to the test tube heights, and then the corresponding grasping method can be determined. Specifically, the laser distance sensor 300 can detect the measured distance data from the end of the laser distance sensor 300 to the tube position to be tested in the sample carrier 100. The laser emission position of the laser distance sensor 300 is the center position of the test tube position. When the test tube position is loaded with a test tube 110 to be grasped, the measured distance data detected by the laser distance sensor 300 is the distance from the end of the laser distance sensor 300 to the center point of the test tube cover of the test tube 110 to be grasped. Since the heights of different types of sample test tubes are different, the size of the measured distance data is also different. Further, the measured distance data can be fed back to the controller 400, and the controller 400 determines the adjustment parameters of the mechanical arm 200 through the built-in program to control the mechanical arm 200 to move and grasp the test tube 110 to be grasped.
[0078] Through the above technical solution, a device for detecting sample test tubes is provided, the device comprising: a sample carrier 100, on which a plurality of test tube positions are arranged; a mechanical arm 200, which is arranged above the sample carrier 100, communicates with a controller 400, and is configured to grab a test tube 110 to be grabbed in the sample carrier 100; a laser distance measuring sensor 300, which is arranged on the mechanical arm 200, communicates with the controller 400, and is configured to detect the distance between the laser distance measuring sensor 300 and the tube position to be tested in the sample carrier 100, and feed back the detected measured distance data to the controller 400; the controller 400 is configured to determine the adjustment parameters of the mechanical arm 200 according to the measured distance data, and control the movement and grabbing of the mechanical arm 200 according to the adjustment parameters. The present application adds a laser ranging sensor 300. The controller 400 determines the adjustment parameters of the robot arm 200 through the data collected by the laser ranging sensor 300 to control the movement of the robot arm 200 and the grabbing of the sample test tubes on the sample carrier 100. The structure is simple and the automatic grabbing of the sample test tubes is realized, which is beneficial to improving the work efficiency of sample detection.
[0079] In the embodiment of the present application, the controller 400 may also be configured as:
[0080] Control the robot arm 200 to move so that the laser distance sensor 300 moves to the zero position of the sample carrier 100, where the zero position is a set tube position for the laser distance sensor 300 to collect measured distance data of different types of sample tubes;
[0081] Acquire the measured distance data of different types of sample tubes collected by the laser distance measuring sensor 300;
[0082] Obtain the grabbing parameters corresponding to different types of sample tubes;
[0083] The mapping relationship between the measured distance data and the corresponding grabbing parameters of different types of sample tubes is stored in the sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database;
[0084] The preset distance data is the actual distance data from the laser distance measuring sensor 300 to the center position of the tube cover of the sample tube.
[0085] In an embodiment of the present application, in order to improve the operating efficiency of the device, the device can be configured with preset parameters before the product is officially put into use. First, a variety of existing sample tubes are sampled, and the measured distance data of the various sample tubes are respectively collected by the laser ranging sensor 300, and the grasping parameters corresponding to the various sample tubes are respectively obtained, and then a database of the mapping relationship between the measured distance data of different sample tubes and the corresponding grasping parameters is constructed, and preset in the device for detecting sample tubes. In this way, the controller 400 can look up the table through the measured distance data sent by the received laser ranging sensor 300 to determine the corresponding grasping parameters.
[0086] Specifically, first, the X-axis stepper motor and the Y-axis stepper motor 320 of the mechanical arm 200 are controlled to move the laser distance sensor 300 to the zero position of the sample carrier 100, which is the set position for the laser distance sensor 300 to collect the measured distance data of different types of sample test tubes. In order to improve work efficiency and quickly build a sample type database, the zero position can be any fixed test tube position in the sample carrier 100. Through the cooperation of the technician and the detection device, the measured distance data of all different types of sample test tubes are collected in sequence, and the grasping parameters corresponding to the different types of sample test tubes are obtained. In one example, the grasping parameters corresponding to different types of sample test tubes can be entered into the system by means of a touch screen, and the grasping parameters can include but are not limited to test tube clamping parameters, test tube transfer parameters, test tube cover opening parameters and test tube cover closing parameters. Further, the mapping relationship between the measured distance data of different types of sample test tubes and the corresponding grasping parameters can be stored in the sample type database to obtain the preset distance data and preset grasping parameters in the sample type database, and the sample type database is configured in the controller 400. The preset distance data is the distance from the laser distance measuring sensor 300 to the center position of the test tube cover of the sample test tube. In this way, the preset distance data of the sample test tube is matched with the grasping parameters one by one, which is conducive to quickly determining the grasping parameters of the test tube 110 to be grasped by data matching, thereby improving the working efficiency of the system.
[0087] In the embodiment of the present application, the controller 400 may also be configured as:
[0088] Control the robot arm 200 to move so that the laser distance sensor 300 moves to the position just above the center of the tube to be tested;
[0089] Acquire the actual distance data detected by the laser ranging sensor 300;
[0090] Compare the measured distance data with the preset loading distance to determine whether the test tube position to be tested is loaded with a test tube 110 to be grabbed;
[0091] In the case where the test tube 110 to be grabbed is loaded in the tube position to be tested, the measured distance data is matched with the preset distance data in the sample type database;
[0092] In the case of successful matching, the preset grabbing parameters of the test tube 110 to be grabbed are determined according to the matched preset distance data;
[0093] The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm 200 .
[0094] In the embodiment of the present application, when grabbing a plurality of test tubes 110 to be grabbed loaded in the sample carrier 100 one by one, the controller 400 can control the laser distance sensor 300 to move to the center position of the test tube position to be tested through the X-axis stepper motor and the Y-axis stepper motor 320 of the mechanical arm 200, so that the probe of the laser distance sensor 300 is aligned with the center position of the test tube position to be tested. Further, the laser distance sensor 300 collects the measured distance data, and compares the measured distance data with the preset loading distance to determine whether the test tube position to be tested is loaded with the test tube 110 to be grabbed. Among them, the preset loading distance refers to the distance between the end of the laser distance sensor 300 and the edge of any test tube position in the sample carrier 100, that is, the difference between the distance from the end of the laser distance sensor 300 to the bottom of the test tube position and the depth of the test tube position. In one example, the preset loading distance can be a fixed value or a range value, and its specific value can be set according to actual needs. In this way, the preset grasping parameters of the test tube 110 to be grasped can be quickly determined according to the measured distance data monitored by the laser ranging sensor 300, and then the preset grasping parameters are determined as the adjustment parameters of the robot arm 200 to control the robot arm 200 to grasp the test tube 110 to be grasped.
[0095] In the embodiment of the present application, the controller 400 may also be configured as:
[0096] When the measured distance data is less than the preset loading distance, it is determined that the test tube 110 to be grabbed is loaded in the tube position to be tested;
[0097] When the measured distance data is greater than or equal to the preset loading distance, it is determined that the test tube position is not loaded with the test tube 110 to be grabbed.
[0098] Specifically, in order to ensure that each sample test tube can be stably loaded on the sample carrier 100 and is easy to grab, multiple experimental measurements are performed during the manufacturing process of the sample carrier 100 to determine the depth of the test tube position in the sample carrier 100. Usually, a test tube cover is provided on the sample test tube. Due to the limitation of the test tube cover, the height of all sample test tubes is greater than the depth of the test tube position. Therefore, the preset loading distance can be used as a basis for determining whether the test tube position to be tested is loaded with a test tube 110 to be grabbed. If the actual distance data detected by the laser distance measuring sensor 300 is less than the preset loading distance, it means that the test tube 110 to be grabbed is loaded in the test tube position, otherwise it means that the test tube 110 to be grabbed is not loaded in the test tube position.
[0099] Further, in the case where the test tube 110 to be grasped is loaded in the tube position to be tested, the controller 400 can match the detected measured distance data with the preset distance data in the sample type database. In the case of successful matching, it means that the preset grasping parameters corresponding to the test tube 110 to be grasped have been stored in the sample type database, and the preset grasping parameters of the test tube 110 to be grasped can be determined according to the mapping relationship between the preset distance data and the preset grasping parameters. Finally, the preset grasping parameters are determined as the adjustment parameters of the robot arm 200, and the controller 400 controls the stepping motor and the electric gripper 310 of the robot arm 200 according to the adjustment parameters, so that the electric gripper 310 moves to the corresponding position and grasps the test tube 110 to be grasped. In this way, whether the test tube 110 to be grasped is loaded in the tube position to be tested is quickly determined according to the measured distance data detected by the laser distance measuring sensor 300, and the grasping parameters corresponding to the test tube 110 to be grasped are determined, which is conducive to improving the working efficiency of the system.
[0100] In the embodiment of the present application, when the test tube position to be tested does not contain the test tube 110 to be grasped, the controller 400 can control the laser ranging sensor 300 to move to the top of the next adjacent test tube position to be tested through the X-axis stepper motor and the Y-axis stepper motor 320 of the robot arm 200 to start the next round of detection and grasping, thereby improving the working efficiency of the system.
[0101] In the embodiment of the present application, the controller 400 may also be configured as:
[0102] In case of a match failure, a prompt message is output; and
[0103] Determine the measured distance data as the preset distance data of the test tube 110 to be grasped;
[0104] Obtaining preset grabbing parameters of the test tube 110 to be grabbed;
[0105] The preset distance data and the preset grabbing parameters of the test tube 110 to be grabbed are stored in the sample type database as sample data mapping to update the sample type database.
[0106] In the embodiment of the present application, when a test tube 110 to be grabbed is loaded in the tube position to be tested, but the matching sample type database fails, it means that the test tube 110 to be grabbed is a newly added test tube type. At this time, the controller 400 can output a prompt message to enable the technician to process the newly added test tube type. In one example, the prompt message can be output through a display device or a signal light, so that the technician can process it in time to avoid affecting the subsequent work of the system. In the embodiment of the present application, for the newly added test tube type, its preset distance data and corresponding preset grabbing parameters can be added to the sample type database to update the sample type database and improve the data.
[0107] Through the above technical scheme, a device for detecting sample test tubes is provided, the device comprising: a sample carrier, on which a plurality of test tube positions are arranged; a mechanical arm, arranged above the sample carrier, communicating with a controller, and configured to grab the test tubes to be grabbed in the sample carrier; a laser ranging sensor, arranged on the mechanical arm, communicating with a controller, and configured to detect the distance between the laser ranging sensor and the tube positions to be tested in the sample carrier, and to feed back the detected measured distance data to the controller; the controller is configured to determine the adjustment parameters of the mechanical arm according to the measured distance data, and to control the movement and grabbing of the mechanical arm according to the adjustment parameters. This application adds a laser ranging sensor, and the controller determines the adjustment parameters of the mechanical arm through the data collected by the laser ranging sensor to control the movement of the mechanical arm and the grabbing of the sample test tubes on the sample carrier. The structure is simple, and the automatic grabbing of the sample test tubes is realized, which is conducive to improving the working efficiency of sample detection.
[0108] Figure 2 A schematic flow chart of a method for detecting a sample tube is provided for an embodiment of the present application. Figure 2 As shown, an embodiment of the present application provides a method for detecting a sample tube, which is applied to a controller, the controller communicates with a mechanical arm and a laser ranging sensor respectively, the laser ranging sensor is arranged on the mechanical arm, and the mechanical arm is arranged above the sample carrier. The method may include the following steps:
[0109] Step 201, obtaining actual distance data fed back by the laser distance measuring sensor; wherein the actual distance data is the distance between the laser distance measuring sensor and the tube position to be tested in the sample carrier detected by the laser distance measuring sensor;
[0110] Step 202: determining adjustment parameters of the robot arm according to the measured distance data;
[0111] Step 203: Control the movement and grasping of the robot arm according to the adjustment parameters.
[0112] In the embodiment of the present application, since different types of sample test tubes have different heights, the test tube types can be distinguished according to the test tube heights, and then the corresponding grasping method can be determined. Specifically, the laser distance sensor can be used to detect the measured distance data from the end of the laser distance sensor to the position of the tube to be tested in the sample carrier. The laser emission position of the laser distance sensor is the center position of the test tube position. When the test tube to be grasped is loaded in the test tube position, the measured distance data detected by the laser distance sensor is the distance from the end of the laser distance sensor to the center point of the test tube cover of the test tube to be grasped. Since the heights of different types of sample test tubes are different, the size of the measured distance data is also different. Further, the measured distance data can be fed back to the controller, and the controller determines the adjustment parameters of the robot arm through processing and judgment by the built-in program to control the movement of the robot arm and grasp the test tube to be grasped.
[0113] In an embodiment of the present application, the method may further include:
[0114] Control the movement of the mechanical arm so that the laser distance sensor moves to the zero position of the sample carrier, where the zero position is a set tube position for the laser distance sensor to collect actual distance data of different types of sample tubes;
[0115] Obtain measured distance data of different types of sample tubes collected by laser distance measuring sensors;
[0116] Obtain the grabbing parameters corresponding to different types of sample tubes;
[0117] The mapping relationship between the measured distance data and the corresponding grabbing parameters of different types of sample tubes is stored in the sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database;
[0118] The preset distance data is the actual distance data from the laser distance measuring sensor to the center position of the test tube cover of the sample test tube.
[0119] In an embodiment of the present application, in order to improve the operating efficiency of the device, preset parameter configuration can be performed before the product is officially put into use. First, samples are taken from the existing multiple sample test tubes, and the measured distance data of the multiple sample test tubes are collected respectively through the laser ranging sensor, and the grasping parameters corresponding to the multiple sample test tubes are obtained respectively. Then, a mapping relationship database of the measured distance data of different sample tubes and the corresponding grasping parameters is constructed, and preset in the device for detecting sample test tubes. In this way, the controller can look up the table through the measured distance data sent by the received laser ranging sensor to determine the corresponding grasping parameters.
[0120] Specifically, first, the X-axis stepper motor and the Y-axis stepper motor of the mechanical arm are controlled to move the laser distance sensor to the zero position of the sample carrier, which is the set position for the laser distance sensor to collect the measured distance data of different types of sample test tubes. In order to improve work efficiency and quickly build a sample type database, the zero position can be any fixed test tube position in the sample carrier. Through the cooperation of the technician and the detection device, the measured distance data of all different types of sample test tubes are collected in sequence, and the grasping parameters corresponding to the different types of sample test tubes are obtained. In one example, the grasping parameters corresponding to different types of sample test tubes can be entered into the system by means of a touch screen, and the grasping parameters can include but are not limited to test tube clamping parameters, test tube transfer parameters, test tube cover opening parameters and test tube cover closing parameters. Further, the mapping relationship between the measured distance data of different types of sample test tubes and the corresponding grasping parameters can be stored in the sample type database to obtain the preset distance data and preset grasping parameters in the sample type database. Among them, the preset distance data is the measured distance data from the laser distance sensor to the center position of the test tube cover of the sample test tube. In this way, the preset distance data of the sample test tube is matched one by one with the grasping parameters, which is conducive to the subsequent rapid determination of the grasping parameters of the test tube to be grasped by means of data matching, thereby improving the working efficiency of the system.
[0121] In the embodiment of the present application, step 201, determining the adjustment parameters of the robotic arm according to the measured distance data, may include:
[0122] Control the movement of the robotic arm so that the laser distance measuring sensor moves to the position just above the center of the pipe to be tested;
[0123] Obtain the actual distance data detected by the laser ranging sensor;
[0124] Compare the measured distance data with the preset loading distance to determine whether the test tube position to be tested is loaded with a test tube to be grabbed;
[0125] In the case where the test tube to be grabbed is loaded in the test tube position, the measured distance data is matched with the preset distance data in the sample type database;
[0126] In the case of successful matching, the preset grabbing parameters of the test tube to be grabbed are determined according to the matched preset distance data;
[0127] The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm.
[0128] In an embodiment of the present application, when grabbing multiple test tubes to be grabbed loaded in the sample carrier one by one, the controller can control the laser distance sensor to move to the center position of the test tube position to be tested through the X-axis stepper motor and the Y-axis stepper motor of the mechanical arm, so that the probe of the laser distance sensor is aligned with the center position of the test tube position to be tested. Further, the measured distance data is collected by the laser distance sensor, and the measured distance data is compared with the loading preset distance to determine whether the test tube position to be tested is loaded with a test tube to be grabbed. Among them, the loading preset distance refers to the distance between the end of the laser distance sensor and the edge of any test tube position in the sample carrier, that is, the difference between the distance from the end of the laser distance sensor to the bottom of the test tube position and the depth of the test tube position. In one example, the loading preset distance can be a fixed value or a range value, and its specific value can be set according to actual needs.
[0129] In the embodiment of the present application, comparing the measured distance data with the preset loading distance to determine whether the tube position to be tested is loaded with a test tube to be grabbed may include:
[0130] When the measured distance data is less than the preset loading distance, it is determined that a test tube to be grabbed is loaded in the tube position to be tested;
[0131] When the measured distance data is greater than or equal to the preset loading distance, it is determined that the test tube position is not loaded with the test tube to be grabbed.
[0132] Specifically, in order to ensure that each sample test tube can be stably loaded on the sample carrier and easy to grab, the depth of the test tube position in the sample carrier will be determined through multiple experimental measurements during the production process of the sample carrier. Usually, a test tube cover is provided on the sample test tube. Due to the limitation of the test tube cover, the height of all sample test tubes will be greater than the depth of the test tube position. Therefore, the preset loading distance can be used as a judgment basis to determine whether the test tube position to be tested is loaded with a test tube to be grabbed. If the actual distance data detected by the laser distance sensor is less than the preset loading distance, it means that the test tube to be grabbed is loaded in the test tube position, otherwise it means that the test tube to be grabbed is not loaded in the test tube position.
[0133] Furthermore, in the case where the test tube to be grasped is loaded in the tube position to be tested, the controller can match the detected measured distance data with the preset distance data in the sample type database. In the case of a successful match, it means that the grasping parameters corresponding to the test tube to be grasped have been stored in the sample type database, and the preset grasping parameters of the test tube to be grasped can be determined according to the mapping relationship between the preset distance data and the preset grasping parameters. Finally, the preset grasping parameters are determined as the adjustment parameters of the robotic arm, and the controller controls the stepping motor and the electric gripper of the robotic arm according to the adjustment parameters, so that the electric gripper moves to the corresponding position and grasps the test tube to be grasped. In this way, whether the test tube to be grasped is loaded in the tube position to be tested, and the grasping parameters corresponding to the test tube to be grasped can be quickly determined according to the measured distance data detected by the laser ranging sensor, which is conducive to improving the working efficiency of the system.
[0134] In the embodiment of the present application, when there is no test tube to be grabbed in the test tube position, the controller can control the laser distance sensor to move to the top of the next adjacent test tube position through the X-axis stepper motor and the Y-axis stepper motor of the robot arm to start the next round of detection and grabbing, thereby improving the working efficiency of the system.
[0135] In an embodiment of the present application, the method may further include:
[0136] In case of a match failure, a prompt message is output; and
[0137] Determine the measured distance data as the preset distance data of the test tube to be grasped;
[0138] Obtaining preset grabbing parameters of the test tube to be grabbed;
[0139] The preset distance data and the preset grabbing parameters of the test tube to be grabbed are stored in the sample type database as sample data mapping to update the sample type database.
[0140] In an embodiment of the present application, when a test tube to be grabbed is loaded in the tube position to be tested, but the matching sample type database fails, it means that the test tube to be grabbed is a newly added test tube type. At this time, the controller can output a prompt message to enable the technician to process the newly added test tube type. In one example, the prompt message can be output through a display device or a signal light, so that the technician can process it in time to avoid affecting the subsequent work of the system. In an embodiment of the present application, for the newly added test tube type, its preset distance data and corresponding preset grabbing parameters can be added to the sample type database to update the sample type database and improve the data.
[0141] Through the above technical solution, in the device for detecting sample test tubes, the controller communicates with the mechanical arm and the laser distance sensor respectively, the laser distance sensor is arranged on the mechanical arm, and the mechanical arm is arranged above the sample carrier; the controller first obtains the measured distance data fed back by the laser distance sensor, and then determines the adjustment parameters of the mechanical arm according to the measured distance data, and finally controls the movement and grasping of the mechanical arm according to the adjustment parameters. Among them, the measured distance data is the distance between the laser distance sensor and the position of the tube to be tested in the sample carrier detected by the laser distance sensor. In this way, on the basis of the newly added laser distance sensor, the controller determines the adjustment parameters of the mechanical arm through the data collected by the laser distance sensor to control the movement of the mechanical arm and the grasping of the sample test tube on the sample carrier. The structure is simple, and the automatic grasping of the sample test tube is realized, which is conducive to improving the working efficiency of sample detection.
[0142] Figure 3 A flowchart of a method for constructing a sample type database provided in a specific embodiment of the present application. Figure 3 As shown, a specific embodiment of the present application provides a method for constructing a sample type database, which may include the following steps:
[0143] Step 301, controlling the X-axis stepper motor and the Y-axis stepper motor to move the laser ranging sensor to the position just above the No. 1 test tube of the sample carrier;
[0144] Step 302, ensure that there is no test tube or other obstruction in test tube position No. 1, and place the test tube No. n to be tested into test tube position No. 1;
[0145] Step 303, turn on the probe of the laser distance measuring sensor, obtain the actual distance data currently fed back and save it; go to step 305;
[0146] Step 304, the system enters the grabbing parameters of the test tube No. n to be tested; and proceeds to step 305;
[0147] Step 305: Map and store the measured distance data and the grabbing parameters into the sample type database; proceed to step 301 until all the tubes to be tested have been entered.
[0148] Figure 4 A schematic diagram of a method for detecting a sample tube provided in a specific embodiment of the present application. Figure 4 As shown, a specific embodiment of the present application provides a method for detecting a sample test tube, which may include the following steps:
[0149] Step 401, controlling the X-axis stepper motor and the Y-axis stepper motor to move the laser ranging sensor to the position just above the target test tube in the sample carrier;
[0150] Step 402: Turn on the probe of the laser distance measuring sensor to obtain the actual distance data currently fed back;
[0151] Step 403, determining whether the measured distance data is less than the preset loading distance;
[0152] Step 404, determining whether the measured distance data is within the calibration height range of the target test tube n;
[0153] Step 405: Match the sample type database according to the measured distance data to obtain the capture parameters;
[0154] Step 406, controlling the Z-axis stepper motor to lower the electric gripper to a height corresponding to the test tube;
[0155] Step 407, controlling the electric gripper to grab the test tube n;
[0156] Step 408, transfer the test tube and wait for the transfer to be completed;
[0157] Step 409, move to the next test tube position; enter step 401, until all test tubes are clamped.
[0158] Through the above technical solution, when the device is running automatically, it only needs to obtain the detection height once to automatically map it to the grasping parameters corresponding to the test tube and then perform related operations such as grasping and transfer. In this way, a variety of different test tube types can be compatible in one test tube carrier, and its structure is simple, which can meet the needs of various experiments with various test tubes.
[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0164] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0165] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0166] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0167] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A device for testing a sample tube, It is characterized in that include: A sample carrier, wherein a plurality of test tube positions are provided on the sample carrier; A robotic arm, disposed above the sample carrier, communicating with the controller, and configured to grab the test tube to be grabbed in the sample carrier; A laser distance sensor is disposed on the mechanical arm, communicates with the controller, and is configured to detect the distance between the laser distance sensor and the tube position to be tested in the sample carrier, and feed back the detected actual distance data to the controller; The controller is configured to determine adjustment parameters of the robotic arm according to the measured distance data, and control the movement and grasping of the robotic arm according to the adjustment parameters.
2. The device according to claim 1, It is characterized in that The controller is also configured to: Controlling the movement of the mechanical arm to move the laser distance sensor to the zero position of the sample carrier, wherein the zero position is a set tube position for the laser distance sensor to collect measured distance data of different types of sample tubes; Acquiring the measured distance data of the different types of sample tubes collected by the laser distance measuring sensor; Obtaining grabbing parameters corresponding to the different types of sample test tubes; The mapping relationship between the measured distance data of the different types of sample tubes and the corresponding grabbing parameters is stored in a sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database; The preset distance data is the actual distance data from the laser distance measuring sensor to the center position of the test tube cover of the sample test tube.
3. The device according to claim 2, It is characterized in that The controller is also configured to: Controlling the movement of the mechanical arm to move the laser ranging sensor to be directly above the center position of the tube to be tested; Acquiring actual distance data detected by the laser ranging sensor; Compare the measured distance data with the preset loading distance to determine whether the tube position to be tested is loaded with a test tube to be grabbed; In the case where a test tube to be grabbed is loaded in the tube position to be tested, matching the measured distance data with the preset distance data in the sample type database; In the case of successful matching, determining the preset grabbing parameters of the test tube to be grabbed according to the matched preset distance data; The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm.
4. The device according to claim 3, It is characterized in that The controller is also configured to: In case of a match failure, a prompt message is output; and Determining the measured distance data as the preset distance data of the test tube to be grasped; Obtaining preset grabbing parameters of the test tube to be grabbed; The preset distance data of the test tube to be grasped and the preset grasping parameter mapping are stored in the sample type database to update the sample type database.
5. The device according to claim 3, It is characterized in that The controller is also configured to: When the measured distance data is less than the preset loading distance, it is determined that a test tube to be grabbed is loaded in the tube position to be tested; When the measured distance data is greater than or equal to the preset loading distance, it is determined that no test tube to be grabbed is loaded in the test tube position.
6. A method for testing a sample tube, It is characterized in that Applied to a controller, the controller communicates with a mechanical arm and a laser distance sensor respectively, the laser distance sensor is arranged on the mechanical arm, and the mechanical arm is arranged above the sample carrier, the method comprises: Acquire the measured distance data fed back by the laser distance measuring sensor, wherein the measured distance data is the distance between the laser distance measuring sensor and the tube position to be tested in the sample carrier detected by the laser distance measuring sensor; Determining adjustment parameters of the robotic arm according to the measured distance data; The movement and grasping of the robot arm are controlled according to the adjustment parameters.
7. The method according to claim 6, It is characterized in that The method further comprises: Controlling the movement of the mechanical arm to move the laser distance sensor to the zero position of the sample carrier, wherein the zero position is a set tube position for the laser distance sensor to collect measured distance data of different types of sample tubes; Acquiring the measured distance data of the different types of sample tubes collected by the laser distance measuring sensor; Obtaining grabbing parameters corresponding to the different types of sample test tubes; The mapping relationship between the measured distance data of the different types of sample tubes and the corresponding grabbing parameters is stored in a sample type database to obtain the preset distance data and the preset grabbing parameters in the sample type database; The preset distance data is the actual distance data from the laser distance measuring sensor to the center position of the test tube cover of the sample test tube.
8. The method according to claim 6, It is characterized in that Determining the adjustment parameters of the mechanical arm according to the measured distance data includes: Controlling the movement of the mechanical arm to move the laser ranging sensor to be directly above the center position of the tube to be tested; Acquiring actual distance data detected by the laser ranging sensor; Compare the measured distance data with the preset loading distance to determine whether the tube position to be tested is loaded with a test tube to be grabbed; In the case where a test tube to be grabbed is loaded in the tube position to be tested, matching the measured distance data with the preset distance data in the sample type database; In the case of successful matching, determining the preset grabbing parameters of the test tube to be grabbed according to the matched preset distance data; The preset grabbing parameters of the sample tube are determined as adjustment parameters of the robot arm.
9. The method according to claim 8, It is characterized in that The method further comprises: In case of a match failure, a prompt message is output; and Determining the measured distance data as the preset distance data of the test tube to be grasped; Obtaining preset grabbing parameters of the test tube to be grabbed; The preset distance data of the test tube to be grasped and the preset grasping parameters are stored in the sample type database as sample data mapping to update the sample type database.
10. The method according to claim 8, It is characterized in that The comparing the measured distance data with the preset loading distance to determine whether the tube position to be tested is loaded with a test tube to be grabbed comprises: When the measured distance data is less than the preset loading distance, it is determined that a test tube to be grabbed is loaded in the tube position to be tested; When the measured distance data is greater than or equal to the preset loading distance, it is determined that no test tube to be grabbed is loaded in the test tube position.
