Method for grabbing garbage can by intelligent manipulator of garbage truck and manipulator
Technical Field
The invention relates to the field of environmental sanitation equipment, in particular to a method for grabbing a garbage can by an intelligent manipulator of a garbage truck and the manipulator.
Background
At present, the continuous development of intelligent equipment at any time has appeared and has used the manipulator to carry out the operation to the garbage bin and empty collection rubbish, and the manipulator is held up the garbage bin and is overturned the back, and the garbage bin lid is opened the back and is accomplished rubbish and empty the process under self gravity.
Through mass search, the scheme that the mechanical arm in the prior art grabs the garbage can is found to be a mechanical arm disclosed by the publication number CN109250369A, a garbage truck and a garbage truck loading method, the disclosed mechanical arm has six degrees of freedom, can reach a required position in any posture in a working range, is high in flexibility and simple and convenient to operate, the garbage truck with the mechanical arm can automatically dump the garbage can by using the loading method disclosed by the invention, and the labor intensity of workers is greatly reduced. Or as the garbage truck side feeding mechanism disclosed in the publication number CN103057883B, the mechanism is simple to operate, and only one person is needed to complete feeding. Or as the intelligent mechanical arm of the garbage truck disclosed in the publication number CN105600242B, the garbage can be positioned and captured by the mechanical arm without manually hanging the garbage can and putting down the garbage can; after the garbage bin is preliminarily positioned, follow-up actions are automatically and intelligently controlled, and safety and high efficiency are achieved.
To sum up, the scheme that the manipulator of prior art snatchs the garbage bin needs the manpower to hang the bucket or artifical location, and the manipulator that can not realize full automation intellectuality snatchs the garbage bin to, because garbage bin wall intensity is certain, manipulator clamping-force can not be too big, when rubbish is heavier in the bucket, probably not embrace shakiness or even not embrace the garbage bin. In addition, most positions of the existing mechanical arm operation garbage can are not fixed, the garbage can is placed randomly, the mechanical arm is difficult to hold the garbage can, even the garbage can cannot be held enough, and the operation efficiency of the mechanical arm is seriously influenced. The actual problems of the mechanical arm technology on the garbage truck requiring urgent treatment in practical application still have a lot of unreported specific solutions.
Disclosure of Invention
The invention provides a method for a garbage truck intelligent manipulator to grab a garbage can and a manipulator to solve the problems,
in order to achieve the purpose, the invention adopts the following technical scheme:
a method for grabbing a garbage can by an intelligent manipulator of a garbage truck comprises the following steps:
(1) acquiring characteristic information of a garbage can to be processed in an operation interval through an image acquisition device;
(2) acquiring position information of the manipulator relative to the trash can according to the characteristic information of the trash can to be processed;
(3) planning a motion track of the manipulator according to the position information of the garbage can to be processed in the operation interval relative to the manipulator;
(4) and controlling the manipulator to grab the garbage can to be treated in the operation interval according to the motion track.
Optionally, in the step (1), the step of obtaining the characteristic information of the to-be-processed trash can in the operation interval through the image acquisition device includes the following steps:
(1-1) object calibration: obtaining internal parameters and distortion parameters of an image acquisition device for correcting distortion of a shot image through calibration of the image acquisition device; obtaining a conversion relation between a pixel distance and an actual physical distance through pixel calibration, namely the millimeter length corresponding to a unit pixel;
(1-2) acquiring a digital image of the garbage can and carrying out distortion removal: capturing a digital image of the trash can through an image acquisition device, and then carrying out distortion correction on the digital image of the trash can according to a calibration result of the image acquisition device to obtain a corrected image of the trash can;
(1-3) graying and smoothing: graying the corrected image of the garbage can, and carrying out weighted average on the red, green and blue components of the corrected image by different weights; then, smoothing the detection area by using a Gaussian function to obtain a smooth single-channel gray image of the garbage can;
(1-4) laser ranging: measuring the distance from the image acquisition device to the ground by using a laser range finder, and establishing a mapping relation between an actual curve edge point and an imaging edge parameter and a mathematical conversion relation between a pixel and a detection target;
(1-5) edge detection: obtaining an edge image of the garbage can by using an algorithm for quickly defining a threshold value;
(1-6) calculating the maximum pixel width of the lug: using Hough transform based on secondary gray value processing to find and calculate circles tangent to two end points of the maximum outer diameter of the lug of the garbage can, and performing secondary gray threshold processing to reduce residual noise points;
(1-7) calculating the maximum outer diameter of the lug of the garbage can: and establishing a geometric model, and calculating to obtain the maximum outer diameter and the height of the lugs of the garbage can through physical parameter conversion.
Optionally, in the step (1-4), a mapping relation between an actual curve edge point and an imaging edge parameter is established, namely, a distance between a target and the ground and related parameters are measured by a laser range finder by using a geometric similarity principle, a relation between actual deformation and imaging parameters is established, and a measured shape error is reduced; the establishment of the mathematical conversion relation between the pixels and the detection target refers to finding out the number of the corresponding pixel points of a unit millimeter in an image, and calculating the actual parameters of the measurement object by reading the sum of the pixels with the corresponding lengths at the two ends of the image.
Optionally, in the step (1-7), the method for grabbing the trash can by the intelligent manipulator of the trash truck includes the following steps:
(1-7a) defining the ith circle as the circle tangent to the curve at the leftmost side of the lug contour of the garbage can, and setting the center abscissa of the ith circle as xiThe radius of the circle is riThe leftmost point of the circle tangency can be obtained and is also the point of the left maximum outer circle;
(1-7b) defining the jth circle as a circle tangent to the curve at the rightmost side of the lug outline of the garbage can, and setting the center abscissa of the jth circle as xjThe radius of the circle is rjThe rightmost point tangent to the circle can be obtained and is also the point of the rightmost excircle on the right;
(1-7c) the distance between the maximum edge tangent points of the j-th circle and the i-th circle on the x coordinate is the pixel width w of the largest outer diameter of the garbage can lug2And finally, the maximum outer diameter of the convex lug of the garbage can be obtained by combining the parameter relation of the geometric model:
wherein d is the maximum outer diameter of the lug of the garbage can, and l1Is the distance from the edge point of the maximum outer diameter to the optical center of the image acquisition device, l3Height at maximum outer diameter, /)4The projection distance from the optical center of the image acquisition device to the ground imaging is set, w is the set standard width, w1A standard pixel width is set for the image.
Optionally, in the step (1-7), the physical parameter conversion refers to converting the pixel distance parameter into a physical distance parameter according to a mapping relationship between the obtained actual curve edge point and the imaging edge parameter and a mathematical conversion relationship between the pixel and the detection target.
An intelligent mechanical arm of a garbage truck is used for detecting, positioning, moving, dumping and resetting a garbage can, and comprises a grabbing part and a rotary telescopic part which are sequentially connected, and an information acquisition device and a control device which are arranged in the intelligent mechanical arm of the garbage truck; wherein,
the grabbing part is used for clamping the garbage can or loosening the garbage can after clamping the garbage can;
the rotary telescopic part is used for driving the grabbing part to move, dump and reset the garbage can;
the image acquisition device is used for acquiring the characteristic information of the garbage can to be processed in the operation interval;
the control device is used for controlling the grabbing part and the rotary telescopic part according to the information acquired by the image acquisition device.
The beneficial technical effects obtained by the invention are as follows:
1. the method combines monocular vision and laser for detection, provides a detection means with high detection precision, low cost and convenient acquisition of the characteristic information of the garbage can, and can enable the manipulator to accurately grab the lugs of the garbage can and finish the action of dumping the garbage through the detection means.
2. The method effectively improves the flexibility and the accuracy of measurement.
3. The method can avoid manual operation for actions of grabbing the garbage can and the like of the garbage truck, reduce labor intensity and reduce the probability of injury of workers.
Drawings
The invention will be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the embodiments. Like reference numerals designate corresponding parts throughout the different views.
Fig. 1 is a schematic flow chart of a method for a garbage truck to grip a garbage can by an intelligent manipulator in one embodiment of the invention;
FIG. 2 is a schematic structural diagram of an intelligent manipulator of a garbage truck according to one embodiment of the present invention;
fig. 3 is a schematic flow chart of acquiring characteristic information of a trash can in a method for a trash truck intelligent manipulator to grab the trash can according to one embodiment of the invention;
FIG. 4 is a three-dimensional schematic diagram of the geometric relationship between the image capturing device and the trash can and various parameters according to one embodiment of the present invention;
FIG. 5 is a schematic top view of the image capturing device and the trash can according to one embodiment of the present invention;
fig. 6 is a diagram illustrating an improved hough circle detection effect in a method for a garbage truck intelligent manipulator to grab a garbage can according to one embodiment of the present invention;
fig. 7 is a diagram illustrating an improved hough circle detection effect in a method for a garbage truck intelligent manipulator to grab a garbage can according to one embodiment of the present invention;
fig. 8 is a schematic view of an application scenario of an intelligent manipulator of a garbage truck according to an embodiment of the present invention.
Description of reference numerals: 11-a grasping portion; 12-rotating the telescoping section.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is further described in detail below with reference to embodiments thereof; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Other systems, methods, and/or features of the present embodiments will become apparent to those skilled in the art upon review of the following detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the accompanying claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the detailed description below.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", etc. based on the orientation or positional relationship shown in the drawings, it is only for convenience of description and simplification of description, but it is not intended to indicate or imply that the device or component referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationship in the drawings are only for illustrative purposes and are not to be construed as limitations of the present patent, and specific meanings of the terms described above will be understood by those skilled in the art according to specific situations.
The invention relates to a method for a garbage truck intelligent manipulator to grab a garbage can and a manipulator, which explain the following embodiments according to the description of the attached drawings:
the first embodiment is as follows:
an intelligent mechanical arm of a garbage truck is used for detecting, positioning, moving, dumping and resetting a garbage can, and comprises a grabbing part 11 and a rotary telescopic part 12 which are sequentially connected, and an information acquisition device and a control device which are arranged in the intelligent mechanical arm of the garbage truck; the grabbing part 11 is used for clamping the garbage can or loosening the garbage can after clamping the garbage can; the rotary telescopic part 12 is used for driving the grabbing part to move, dump and reset the garbage can; the image acquisition device is used for acquiring the characteristic information of the garbage can to be processed in the operation interval; the control device is configured to control the grasping portion 11 and the rotating and telescoping portion 12 according to the information acquired by the image acquisition device. Specifically, the above-mentioned manipulator is a well-known technology for extensive research and application, and is not described herein in detail.
A method for grabbing a garbage can by an intelligent manipulator of a garbage truck comprises the following steps:
(1) acquiring characteristic information of a garbage can to be processed in an operation interval through an image acquisition device;
(2) acquiring position information of the manipulator relative to the trash can according to the characteristic information of the trash can to be processed;
(3) planning a motion track of the manipulator according to the position information of the garbage can to be processed in the operation interval relative to the manipulator;
(4) and controlling the manipulator to grab the garbage can to be treated in the operation interval according to the motion track.
Optionally, in the step (1), the step of obtaining the characteristic information of the to-be-processed trash can in the operation interval through the image acquisition device includes the following steps:
(1-1) object calibration: obtaining internal parameters and distortion parameters of an image acquisition device for correcting distortion of a shot image through calibration of the image acquisition device; obtaining a conversion relation between a pixel distance and an actual physical distance through pixel calibration, namely the millimeter length corresponding to a unit pixel;
(1-2) acquiring a digital image of the garbage can and carrying out distortion removal: capturing a digital image of the trash can through an image acquisition device, and then carrying out distortion correction on the digital image of the trash can according to a calibration result of the image acquisition device to obtain a corrected image of the trash can;
(1-3) graying and smoothing: graying the corrected image of the garbage can, and carrying out weighted average on the red, green and blue components of the corrected image by different weights; then, smoothing the detection area by using a Gaussian function to obtain a smooth single-channel gray image of the garbage can;
(1-4) laser ranging: measuring the distance from the image acquisition device to the ground by using a laser range finder, and establishing a mapping relation between an actual curve edge point and an imaging edge parameter and a mathematical conversion relation between a pixel and a detection target;
(1-5) edge detection: obtaining an edge image of the garbage can by using an algorithm for quickly defining a threshold value;
(1-6) calculating the maximum pixel width of the lug: using Hough transform based on secondary gray value processing to find and calculate circles tangent to two end points of the maximum outer diameter of the lug of the garbage can, and performing secondary gray threshold processing to reduce residual noise points;
(1-7) calculating the maximum outer diameter of the lug of the garbage can: and establishing a geometric model, and calculating to obtain the maximum outer diameter and the height of the lugs of the garbage can through physical parameter conversion.
Optionally, in the step (1-4), a mapping relation between an actual curve edge point and an imaging edge parameter is established, namely, a distance between a target and the ground and related parameters are measured by a laser range finder by using a geometric similarity principle, a relation between actual deformation and imaging parameters is established, and a measured shape error is reduced; the establishment of the mathematical conversion relation between the pixels and the detection target refers to finding out the number of the corresponding pixel points of a unit millimeter in an image, and calculating the actual parameters of the measurement object by reading the sum of the pixels with the corresponding lengths at the two ends of the image.
Optionally, in the step (1-7), the method for grabbing the trash can by the intelligent manipulator of the trash truck includes the following steps:
(1-7a) defining the ith circle as the circle tangent to the curve at the leftmost side of the lug contour of the garbage can, and setting the center abscissa of the ith circle as xiThe radius of the circle is riThe leftmost point of the circle tangency can be obtained and is also the point of the left maximum outer circle;
(1-7b) the jthThe circle is defined as a circle tangent to the curve at the rightmost side of the lug outline of the garbage can, and the abscissa of the circle center of the jth circle is set as xjThe radius of the circle is rjThe rightmost point tangent to the circle can be obtained and is also the point of the rightmost excircle on the right;
(1-7c) the distance between the maximum edge tangent points of the j-th circle and the i-th circle on the x coordinate is the pixel width w of the largest outer diameter of the garbage can lug2And finally, the maximum outer diameter of the convex lug of the garbage can be obtained by combining the parameter relation of the geometric model:
wherein 2r is the maximum outer diameter of the lug of the garbage can, l1Is the distance from the edge point of the maximum outer diameter to the optical center of the image acquisition device, l3Height at maximum outer diameter, /)4The projection distance from the optical center of the image acquisition device to the ground imaging is set, w is the set standard width, w1A standard pixel width is set for the image.
Optionally, in the step (1-7), the physical parameter conversion refers to converting the pixel distance parameter into a physical distance parameter according to a mapping relationship between the obtained actual curve edge point and the imaging edge parameter and a mathematical conversion relationship between the pixel and the detection target.
Example two:
(1) acquiring characteristic information of a garbage can to be processed in an operation interval through an image acquisition device;
(2) acquiring position information of the manipulator relative to the trash can according to the characteristic information of the trash can to be processed;
(3) planning a motion track of the manipulator according to the position information of the garbage can to be processed in the operation interval relative to the manipulator;
(4) and controlling the manipulator to grab the garbage can to be treated in the operation interval according to the motion track.
Optionally, in the step (1), the step of obtaining the characteristic information of the to-be-processed trash can in the operation interval through the image acquisition device includes the following steps:
(1-1) object calibration: obtaining internal parameters and distortion parameters of an image acquisition device for correcting distortion of a shot image through calibration of the image acquisition device; obtaining a conversion relation between a pixel distance and an actual physical distance through pixel calibration, namely the millimeter length corresponding to a unit pixel; specifically, a digital image of the irregular bulge is captured by a camera and stored in an electronic computer. Meanwhile, camera calibration and pixel calibration are carried out on the camera, camera internal parameters and distortion parameters for correcting distortion of a shot image are obtained through the camera calibration, and the conversion relation between the pixel distance and the actual physical distance can be obtained through the pixel calibration. And then, carrying out distortion correction on the acquired image according to the calibration result.
(1-2) acquiring a digital image of the garbage can and carrying out distortion removal: capturing a digital image of the trash can through an image acquisition device, and then carrying out distortion correction on the digital image of the trash can according to a calibration result of the image acquisition device to obtain a corrected image of the trash can;
(1-3) laser ranging: measuring the distance from the image acquisition device to the ground by using a laser range finder, and establishing a mapping relation between an actual curve edge point and an imaging edge parameter and a mathematical conversion relation between a pixel and a detection target; i.e. | in FIG. 44。
Let the standard width be w mm and the standard pixel width in the image be w1The width of the pixel at the maximum outer diameter is w2. Pixel height of maximum outer diameter is h1And (4) millimeter. From the geometric relationships of fig. 4 and 5, one can obtain:
wherein r1 and r, h1 and h have definite mapping relation, namely r1=f1(r),h1=f2(h) The following formula can be obtained by conversion:
through the above formula, the problem of finding the diameter 2r and the height h of the maximum outer diameter of the lug can be converted into the pixel width w of the maximum outer diameter position of the lug2And the pixel height h of the maximum outer diameter of the lug1To a problem of (a). w is a2And h2By the following steps, the monocular vision is solved.
(1-4) graying and smoothing: graying the corrected image of the garbage can, and carrying out weighted average on the red, green and blue components of the corrected image by different weights; then, smoothing the detection area by using a Gaussian function to obtain a smooth single-channel gray image of the garbage can; graying the digital image containing the garbage can lugs acquired by the camera in the step (1-2), and processing the detection area by using a Gaussian function in a Canny operator to achieve the purposes of smoothing and enhancing the garbage can and garbage can lug edge images.
(1-5) edge detection: obtaining an edge image of the garbage can by using an algorithm for quickly defining a threshold value; a variable instruction function of defining a threshold value for human-computer interaction is designed, when a related instruction is pressed, the threshold value of high and low threshold values in a Canny algorithm can be changed, the image is initially segmented, and the efficiency is improved. The improved Canny edge detection effect is shown in fig. 7.
(1-6) calculating the maximum pixel width of the lug: using Hough transform based on secondary gray value processing to find and calculate circles tangent to two end points of the maximum outer diameter of the lug of the garbage can, and performing secondary gray threshold processing to reduce residual noise points; specifically, using the curve detection of hough transform based on secondary gray-scale value processing proposed in this embodiment:
(1-6a) description and conversion of lug Curve parameters
The ledge edge requires primarily the maximum vertex coordinates and dimensions. Describing the problem as finding a tangent arc simplifies the problem. And finding and calculating the maximum outer diameter of the lug by using Hough circle transformation.
(1-6b) principle of detecting arc with tangent curve
(1-6b-1) drawing a circle on the parameter plane by using each pixel point on the image as the center of a circle and using the known radius r (or radius value range), accumulating the results and mapping the edge points on the image space into the parameter space.
(1-6b-2) to obtain an accumulation unit A (x, y, r).
(1-6b-3) finding out a peak point on the parameter plane, wherein the position corresponds to the center of a circle on the image.
(1-6b-4) size-sort the accumulation units A, i.e., size-sort the circles present in the image. If n pixel points exist in the image, n accumulation units are correspondingly arranged. The units are sorted and the accumulation unit with the maximum value is found. Comparing the first few larger summation units, the maximum point on the arc tangent to the lug can be found. The detection effect is shown in fig. 6.
(1-6c) secondary gray threshold processing.
Left and right contours (for example, straight lines) are detected by hough transform, and the gray values of all pixel points (including no edge point) in the region between the two contours are assigned to 0. I.e. all white dots in the interval become black, the remaining noise points can be reduced. The effect of the treatment is shown in figure 8.
(1-7) calculating the maximum outer diameter of the lug of the garbage can: establishing a geometric model, and calculating to obtain the maximum outer diameter and the height of a lug of the garbage can through physical parameter conversion; the method specifically comprises the following steps:
(1-7a) the center abscissa of the ith circle (the leftmost circle is tangent to the curve) is set as xiThe radius of the circle is riThe leftmost point of the circle's tangency, also the point of the left greatest bulge, is obtained, as shown by point A in FIG. 8iPosition shown.
(1-7b) setting the center abscissa of the jth circle (the rightmost edge is tangent to the curve) as xjThe radius of the circle is rjThe rightmost point of the circle, which is also the point at the right most bulge, is obtained, as shown by point Aj in fig. 8.
(1-7c) the distance between the maximum edge tangent points of the j-th circle and the i-th circle on the x coordinate is the pixel width w of the largest outer diameter of the garbage can lug2And finally, the maximum outer diameter of the convex lug of the garbage can be obtained by combining the parameter relation of the geometric model:
an intelligent mechanical arm of a garbage truck is used for detecting, positioning, moving, dumping and resetting a garbage can, and comprises a grabbing part 11 and a rotary telescopic part 12 which are sequentially connected, and an information acquisition device and a control device which are arranged in the intelligent mechanical arm of the garbage truck; wherein,
the grabbing part 11 is used for clamping the garbage can or loosening the garbage can after clamping the garbage can;
the rotary telescopic part 12 is used for driving the grabbing part 11 to move, dump and reset the garbage can;
the image acquisition device is used for acquiring the characteristic information of the garbage can to be processed in the operation interval;
the control device is configured to control the grasping portion 11 and the rotating and telescoping portion 12 according to the information acquired by the image acquisition device.
Specifically, the above-mentioned manipulator is a well-known technology for extensive research and application, and is not described herein in detail.
In conclusion, the invention provides a garbage truck intelligent manipulator garbage can grabbing method and a manipulator, the method combines monocular vision and laser for detection, provides a detection means with high detection precision, low cost and convenient garbage can characteristic information acquisition, can enable the manipulator to accurately grab the lugs of the garbage cans and finish garbage dumping actions through the detection means, and simultaneously can effectively improve the measurement flexibility and the measurement accuracy, and most importantly, the actions of grabbing the garbage cans and the like of the garbage truck can be free from manual operation, so that the labor intensity is reduced, and the probability of injury of workers is reduced.
Although the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the invention. That is, the methods, systems, and devices discussed above are examples. Various configurations may omit, substitute, or add various procedures or components as appropriate. For example, in alternative configurations, the methods may be performed in an order different than that described, and/or various components may be added, omitted, and/or combined. Moreover, features described with respect to certain configurations may be combined in various other configurations, as different aspects and elements of the configurations may be combined in a similar manner. Further, elements therein may be updated as technology evolves, i.e., many elements are examples and do not limit the scope of the disclosure or claims.
Specific details are set forth in the description in order to provide a thorough understanding of the exemplary configurations including implementations. However, configurations may be practiced without these specific details, e.g., well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary detail in order to avoid obscuring the configurations. This description provides example configurations only, and does not limit the scope, applicability, or configuration of the claims. Rather, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes may be made in the function and arrangement of elements without departing from the spirit or scope of the disclosure.
It is intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that it is the following claims, including all equivalents, that are intended to define the spirit and scope of this invention. The above examples are to be construed as merely illustrative and not limitative of the remainder of the disclosure. After reading the description of the invention, the skilled person can make various changes or modifications to the invention, and these equivalent changes and modifications also fall into the scope of the invention defined by the claims.