CN116185039A - AGV following method based on radar inter-frame difference maximum line area - Google Patents
AGV following method based on radar inter-frame difference maximum line area Download PDFInfo
- Publication number
- CN116185039A CN116185039A CN202310249312.5A CN202310249312A CN116185039A CN 116185039 A CN116185039 A CN 116185039A CN 202310249312 A CN202310249312 A CN 202310249312A CN 116185039 A CN116185039 A CN 116185039A
- Authority
- CN
- China
- Prior art keywords
- target
- following
- point cloud
- point
- cloud data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000009825 accumulation Methods 0.000 claims description 12
- 125000004122 cyclic group Chemical group 0.000 claims description 9
- 230000009466 transformation Effects 0.000 claims description 8
- 230000007613 environmental effect Effects 0.000 claims description 7
- 238000013459 approach Methods 0.000 claims description 3
- 230000000717 retained effect Effects 0.000 claims description 3
- 230000001131 transforming effect Effects 0.000 claims description 3
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 5
- 229910052782 aluminium Inorganic materials 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 239000003638 chemical reducing agent Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0231—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
- G05D1/0238—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using obstacle or wall sensors
- G05D1/024—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using obstacle or wall sensors in combination with a laser
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0214—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0221—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0255—Control of position or course in two dimensions specially adapted to land vehicles using acoustic signals, e.g. ultra-sonic singals
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Aviation & Aerospace Engineering (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Optics & Photonics (AREA)
- Electromagnetism (AREA)
- Acoustics & Sound (AREA)
- Optical Radar Systems And Details Thereof (AREA)
Abstract
The invention discloses an AGV following method based on a radar inter-frame difference maximum line area, which comprises the following steps: controlling the laser radar to scan to obtain a point cloud data array of a previous frame, storing the point cloud data array into a point cloud data buffer area, and continuing scanning to obtain a point cloud data array of a current frame; the current frame point cloud data array and the previous frame point cloud data array are subjected to differential processing; calculating and judging the maximum line area of continuous 1 in the differential result as a calibration following target; determining the polar diameter and the polar angle of a target following point, and comparing the polar diameter and the polar angle with a preset target following distance threshold value and a preset polar angle threshold value to realize target following; after confirming that the AGV trolley reaches a target following position, clearing the point cloud data buffer area, and acquiring a frame of complete Lei Dadian cloud data as the point cloud data of the previous frame identified by the next calibration following target; the invention reduces the requirements of the AGV trolley on the operation speed and the memory of the processor at any time, and improves the following instantaneity, stability and accuracy when the target moving speed is high and the size is large.
Description
Technical Field
The invention relates to the technical field of intelligent control of AGVs, robots, industrial mechanical arms and automatic driving automobiles, in particular to an AGV following method based on a radar inter-frame difference maximum line area.
Background
In industries such as manufacturing industry, commodity circulation, etc., the AGV dolly based on radar follows method has played important effect in the transport link, has solved the transportation difficult problems such as the labour demand is big, inefficiency and easy repetition.
However, at present, the application of the radar following technology in a real scene has some problems, in a scene of multiple obstacles, most of the existing radar target recognition methods are used for extracting characteristic data of different targets to construct a characteristic database by a clustering method, then the characteristic database is classified in a classifier, and finally a specific target is recognized, so that the characteristic database needs to be built, the algorithm is complex, the operation speed and the memory requirement on a processor are high, and the following instantaneity is weak; the object is easy to lose when the high-speed moving object is identified, and the accuracy of identifying the high-speed moving object is low.
In view of this, there is a need to develop a following method to solve the above-mentioned technical problems, reduce the requirements of the AGV trolley on the processor operation speed and the memory, and improve the instantaneity, stability and accuracy when following the fast and bulky targets in the multi-obstacle scene.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides an AGV following method based on the maximum line area of the difference between radar frames, which is used for reducing the operation speed and the memory requirement of an AGV trolley on a processor and enhancing the instantaneity, the stability and the accuracy of the AGV trolley when following a target with high speed and large volume in a multi-obstacle scene.
The technical scheme adopted by the invention is as follows:
an AGV following method based on radar inter-frame difference maximum line area comprises the following steps:
s1, controlling a laser radar to perform continuous scanning to obtain environmental point cloud data, wherein the environmental point cloud data comprise polar angle and distance information of an obstacle under a radar polar coordinate system, and the scanned point cloud data array of the previous frame is obtainedStoring the point cloud data buffer area, and continuously scanning by the laser radar until a complete current frame point cloud data array +.>;
S2, the current frame point cloud data arrayAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>;
S3, analyzing and calculating the differential discrimination bit groupMaximum line area of the middle continuous "1->Judging the maximum line area of the continuous' 1 +.>The corresponding point cloud is a calibration following target;
s4, taking the central scanning point of the calibration following target as a target following pointFollowing the target with the pointIs->And polar angle->A preset target following distance threshold +.>And polar angle threshold>Comparing to realize target following;
and S5, after the AGV trolley is confirmed to reach the target following position, the point cloud data buffer area is cleared, and a frame of complete radar point cloud data is obtained and used as the point cloud data of the previous frame identified by the next calibration following target.
Further, in the step S1, the lidar is a single-line lidar; the origin of the radar polar coordinate system is the origin of the AGV trolley coordinate system, the polar axis is the ordinate axis of the AGV trolley coordinate system, the positive direction of the polar angle is the anticlockwise direction, the scanning distance from the laser radar to the obstacle is taken as the polar diameter, and the polar diameter is inf when the obstacle exceeds the radar measuring range; the memory size of the point cloud data buffer area is the size of one frame of point cloud data.
Further, in step S2, the current frame point cloud data array is setAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>The method specifically comprises the following steps:
the formula of the difference judgment algorithm is as follows:
wherein the method comprises the steps ofFor the current frame point cloud data array +.>At address->Data in->For the previous frame point cloud data array +.>At address->Data in->Determining a threshold for the target;
if it isIn the differential discrimination bit array +.>The address t of (1) is assigned to>Preliminarily judging the target following point;
if it isIn the differential discrimination bit array +.>The address t of (1) is assigned 0 +.>Judging that the target following point is not the target following point;
Further, the target determination threshold valueMultiplying the speed of the following target for the desired calibration by a factor +.>And the time difference between the current frame and the previous frame +.>。
Further, in step S3, the differential discrimination bit set is analyzed and calculatedMaximum line area of the middle continuous "1->Judging the maximum line area of the continuous' 1 +.>The corresponding point cloud is a calibration following target, and specifically comprises the following steps:
(1) The differential discrimination bit group is adopted in a cyclic traversal and pointer modeGrouping and summing according to the principle of continuous identical elements, comparing the sizes of the groups in turn, and preliminarily determining the maximum line area of the continuous' 1 +.>Following a target for the calibration;
(2) Setting a calibration following target line area thresholdFor preventing misrecognition, if->Then the maximum line area of the succession "1" is determined +.>The corresponding point cloud is the calibration following target; if->And judging that the target is misidentified, namely that the target is not identified at this time, and carrying out next calibration following target identification again.
Further, the differential discrimination bit group is adopted in a circulating traversing and pointer modeThe method comprises the steps of carrying out grouping summation according to the principle of continuous identical elements, and comparing the sizes of all groups in sequence, and specifically comprises the following steps:
(2) From the differential number of discrimination bitsStarting to perform loop judgment accumulation if judging address +.>Element in->And the latter address->Element in->If the element is equal to 1, element accumulation is carried out, and the element accumulation is stopped until the element is 0, so that the previous continuous 1-line area +.>;
(3) Continuing to judge until the element is 1, and then carrying out the cyclic judgment accumulation again to obtain the current continuous 1-line areaAnd is continuous 1 line area +.>Size comparison is performed, larger values are retained and assigned to +.>While the address of the first element of the packet corresponding to said larger value is reserved and assigned +.>;
(4) Continuing the cycle comparison until the cycle is completed, and finally obtaining the maximum line area of the continuous' 1And the maximum line area of the consecutive "1->The address of the first element in the corresponding group is +.>。/>
Further, in step S4, the center scanning point of the calibration following target is taken as the target following pointThe target following point +.>Is->And polar angle->A preset target following distance threshold +.>And polar angle threshold>The comparison is carried out to realize target following, and the method specifically comprises the following steps:
(1) Calculating a center scanning point from the calibration following target as a target following pointDetermining the target following point +.>Is +.>And polar angle->:
Calculating the target following pointAddress->Obtaining the point cloud data array of the current frame +.>Is->Data in->And the previous frame point cloud data array +.>Is->Data in->;
The target following pointPolar angle +.>Follow the point for the object>Address->Multiplying by radar angular resolution;
(2) Setting the target following distance thresholdAnd the polar angle threshold +.>And follow the point with the target +.>Is->And polar angle->And comparing to realize the motion control of the AGV trolley:
if it isAnd->The system determines that the AGV trolley needs to be controlled to rotate anticlockwise or left;
If it isAnd->The system judges that the AGV trolley needs to be controlled to rotate clockwise or right;
If it isAnd->The system judges that the AGV trolley needs to be controlled to rotate clockwise or right;
If it isAnd->The system determines that the AGV trolley needs to be controlled to rotate anticlockwise or left;
If it isThe system determines that the AGV needs to approach the target following point +.>Controlling the AGV trolley to be directed to the target following point +.>Is +.>;
If it isThe system determines that the AGV needs to be far away from the target following point +.>Controlling the AGV trolley to be directed to the target following point +.>Is shifted in the opposite direction +.>。
Further, in step S5, the step of confirming that the AGV trolley reaches the target following position specifically includes the steps of:
estimating the position of a current radar polar coordinate system relative to an initial radar polar coordinate system through an AGV trolley positioning method, and carrying out coordinate transformation to obtain real-time transformation coordinates of the current radar polar coordinate system relative to the initial radar polar coordinate systemAnd continuously transforming coordinates with the target +.>Comparing, and continuing to control the movement of the AGV untilAnd->It is determined that the AGV trolley has reached the target following position.
Furthermore, the AGV following method based on the radar inter-frame difference maximum line area is not only suitable for target following of an AGV trolley, but also suitable for target following of robots, industrial mechanical arms and automatic driving automobiles.
The invention has the following beneficial effects:
(1) According to the AGV following method based on the radar inter-frame difference maximum line area, the maximum line area of the continuous 1' is obtained through a series of processes such as difference, threshold comparison and cyclic traversal on two adjacent frames of point cloud data to serve as a calibration following target;
(2) When the method identifies the targets with higher speed and larger volume, the largest line area of the continuous 1 is larger, so that the targets with high speed and large volume can be accurately identified in a multi-obstacle scene and are not easy to lose;
(3) The invention sets the polar angle threshold valueThe invention is not only suitable for the target following of the AGV trolley, but also suitable for the target following of robots, industrial mechanical arms and automatic driving automobiles.
The invention is described in further detail below with reference to the drawings and examples.
Drawings
For a clearer description of the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the related art of the embodiments will be briefly described, it will be apparent that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person of ordinary skill in the art, in which:
FIG. 1 is a schematic flow chart of an AGV following method based on a radar inter-frame difference maximum line area according to an embodiment of the present invention;
FIG. 2 is a schematic structural view of a Mecanum wheel AGV provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a driving integrated module structure of a mecanum wheel type AGV trolley according to an embodiment of the present invention;
fig. 4 is a schematic diagram of radar inter-frame difference determination of a mecanum-type AGV trolley according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a post-target-identification rotation control of a Mecanum wheel AGV provided by an embodiment of the present invention;
in the figure: 1. an aluminum profile frame; 2. STM32 control box; 3. a drive integration module; 4. an inertial sensor; 5. an industrial personal computer; 6. a motor driver; 7. an ultrasonic module; 8. a laser radar; 9. a servo motor; 10. a speed reducer; 11. an L-shaped connecting plate; 12. a coupling; 13. a bearing seat; 14. mecanum wheel; 15. and a module mounting plate.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples, it being understood that the examples described herein are for the purpose of illustrating the present application only and are not intended to limit the present application.
Referring to fig. 2 and 3, an embodiment of the present invention provides a mecanum-type AGV trolley, comprising a vehicle body, a laser radar 8 arranged at the center of the top of the vehicle body, a control system arranged inside the vehicle body and connected with the laser radar 8, and an auxiliary sensing system arranged inside and around the vehicle body;
the vehicle body comprises an aluminum profile frame 1 and a driving integrated module 3;
the aluminum section frame is formed by connecting and fastening aluminum sections and aluminum corner brackets through T-shaped bolts;
the driving integrated module comprises a servo motor 9, a speed reducer 10, an L-shaped connecting plate 11, a coupler 12, a bearing seat 13, a Mecanum wheel 14 and a module mounting plate 15;
the laser radar 8 is an N10 TOF single-line laser radar, the radar scanning frequency is 10HZ, the radius of the radar measuring range is 0.5-11m, and the radar angular resolution is 0.5 degrees;
the control system is used for target identification and controlling the Mecanum wheel type AGV trolley to move along with a target and stop when encountering an obstacle during self-following;
the control system comprises an STM32 control box 2, an industrial personal computer 5 and a motor driver 6;
the chip in the STM32 control box 2 is STM32F103ZET6;
the industrial personal computer 5 runs an ROS system;
the auxiliary sensing system comprises an inertial sensor 4 and an ultrasonic module 7.
Referring to fig. 1, 2, 3, 4 and 5, the method for following an AGV based on a radar inter-frame difference maximum line area provided by the present invention is implemented in a mecanum wheel type AGV trolley provided in the present embodiment, and includes the steps of:
s101: controlling the laser radar 8 to perform continuous scanning to obtain environmental point cloud data, wherein the environmental point cloud data comprises polar angle and distance information of an obstacle under a radar polar coordinate system, and the scanned previous frame point cloud data arrayStoring the point cloud data buffer area, and continuing scanning by the laser radar 8 until a complete current frame point cloud data array is acquired +.>;
S102: setting the current frame point cloud data arrayAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>;
S103: analyzing and calculating the differential discrimination bit arrayMaximum line area of the middle continuous "1->Judging the maximum line area of the continuous' 1 +.>The corresponding point cloud is a calibration following target;
s104: taking the central scanning point of the calibration following target as a target following pointFollowing the target with the pointIs->And polar angle->A preset target following distance threshold +.>And polar angle threshold>Comparing to realize target following;
s105: after confirming that the Mecanum wheel type AGV reaches a target following position, clearing the point cloud data buffer area, and obtaining a complete frame of radar point cloud data as the point cloud data of the previous frame identified by the next calibration following target.
In this embodiment, the laser radar 8 is mounted at the center of the top of the vehicle body of the mecanum type AGV trolley, so that the origin and polar axis x of the radar polar coordinate system coincide with the origin and ordinate axis Y of the mecanum type AGV trolley coordinate system, the positive direction of the polar angle of the radar polar coordinate system is a counterclockwise direction, the scanning distance from the laser radar to the obstacle is a polar path, and the polar path is inf when the obstacle exceeds the radar measurement range.
In this embodiment, the industrial personal computer 5 controls the laser radar 8 to perform continuous scanning to obtain the environmental point cloud data, and in order to reduce the memory requirement, the point cloud data buffer area only needs to be set to the memory size of one frame of point cloud data.
In this embodiment, the industrial personal computer 5 sets the current frame point cloud data arrayAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>The method specifically comprises the following steps:
the formula of the difference judgment algorithm is as follows:
wherein the method comprises the steps ofFor the current frame point cloud data array +.>At address->Data in->For the previous frame point cloud data array +.>At address->Data in->Determining a threshold for the target; />
If it isIn the differential discrimination bit array +.>The address t of (1) is assigned to>Preliminarily judging the target following point;
if it isIn the differential discrimination bit array +.>The address t of (1) is assigned 0 +.>Judging that the target following point is not the target following point;
In this embodiment, the industrial personal computer 5 analyzes and calculates the differential discrimination bit setMaximum line area of the middle continuous "1->Judging said succession'Maximum line area of 1->The corresponding point cloud is a calibration following target, and specifically comprises the following steps:
(1) The differential discrimination bit group is adopted in a cyclic traversal and pointer modeGrouping and summing according to the principle of continuous identical elements, comparing the sizes of the groups in turn, and preliminarily determining the maximum line area of the continuous' 1 +.>Following a target for the calibration;
(2) Setting a calibration following target line area thresholdFor preventing misrecognition, if->Then the maximum line area of the succession "1" is determined +.>The corresponding point cloud is the calibration following target; if->And judging that the target is misidentified, namely that the target is not identified at this time, and carrying out next calibration following target identification again.
In this example, the differential discrimination bit group is formed by adopting a cyclic traversal and pointer modeThe method comprises the steps of carrying out grouping summation according to the principle of continuous identical elements, and comparing the sizes of all groups in sequence, and specifically comprises the following steps:
(2) From the differential number of discrimination bitsStarting to perform loop judgment accumulation if judging address +.>Element in->And the latter address->Element in->If the element is equal to 1, element accumulation is carried out, and the element accumulation is stopped until the element is 0, so that the previous continuous 1-line area +.>;
(3) Continuing to judge until the element is 1, and then carrying out the cyclic judgment accumulation again to obtain the current continuous 1-line areaAnd is continuous 1 line area +.>Size comparison is performed, larger values are retained and assigned to +.>While the address of the first element of the packet corresponding to said larger value is reserved and assigned +.>;
(4) Continuing the cycle comparison until the cycle is completed, and finally obtaining the maximum line area of the continuous' 1And the maximum line area of the consecutive "1->The address of the first element in the corresponding group is +.>。
As shown in fig. 4, in the present embodiment, the specific principle of identifying the desired calibration following target by radar inter-frame difference determination includes:
the target determination threshold valueFollowing the speed of the target for the desired calibration +.>Multiplying by a coefficient->And the time difference between the current frame and the previous frame +.>I.e. < ->Wherein the coefficient->According to the radar scan frequency being 10HZ, the time difference is therefore +.>;
In the previous frame, the lidar 8 scans onto the desired targetAnd->and Distance +.>In the current frame, the lidar 8 scans onto the desired targetAnd->And +.sup.f with a distance of inf>Wherein inf represents that the distance of the scanning point is infinity;
due toAnd->Is of a distance inf such that the desired calibration follows the non-overlapping region of the target before and after movementAnd->Differential distance between inner front and rear frames +.>And->Greater than the target determination threshold +.>The non-overlapping region is similarly +.>And->The difference distance between all the front and rear frames is larger than the target judgment threshold value +.>At the same time due to the coefficientThe appropriate said coefficient can be set>Ensuring that the desired calibration follows the overlapping area before and after the target movement +.>The differential distance of all the preceding and following frames includes +.>Are all greater than the target determination threshold +.>Finally, according to the differential decision algorithm formula, the non-overlapping area is +>And->Said overlap region->All of the inner is determined to be "1", so the faster the desired calibration follows the target, the larger the volume, and the larger the continuous "1" line area of the desired calibration follows the target.
In this embodiment, the industrial personal computer 5 selects the center scan point of the calibration following target as the target following pointCalculating the target following point +.>Is->And polar angle->The method specifically comprises the following steps:
calculating the target following pointAddress->Obtaining the point cloud data array of the current frame +.>Is->Data in->And the previous frame point cloud data array +.>Is->Data in->;
The target following pointPolar angle +.>Follow the point for the object>Address->Multiplying by the radar angular resolution, i.e. +.>;
And inf is the polar diameter of the obstacle exceeding the radar measurement range, and the radar angular resolution is 0.5 degrees.
In the present embodiment, as shown in FIG. 5, the target following distance threshold is setAnd the polar angle threshold +.>And follow the point with the target +.>Is->And polar angle->And comparing to realize the rotation control and the translation control of the Mecanum wheel type AGV:
if it isAnd->The system judges that the Mecanum wheel type AGV trolley needs to be controlled to rotate anticlockwise>At a polar angle threshold +.>And target following Point->For example, a->And->The Mecanum wheel type AGV trolley needs to rotate anticlockwiseTurn->;
If it isAnd->The system judges that the Mecanum wheel AGV needs to be controlled to rotate clockwise +.>At a polar angle threshold +.>And target following Point->For example, a->And->The Mecanum wheel AGV needs to rotate clockwise>;
If it isAnd->The system judges that the Mecanum wheel AGV needs to be controlled to rotate clockwise +.>At a polar angle threshold +.>And target following Point->For example, a->And->The Mecanum wheel AGV needs to rotate clockwise>;
If it isAnd->The system judges that the Mecanum wheel type AGV trolley needs to be controlled to rotate anticlockwise>At a polar angle threshold +.>And target following Point->For example, a->And is also provided withThe Mecanum wheel AGV needs to rotate anticlockwise +>;/>
If it isThe system determines that the Mecanum wheel AGV needs to approach the target following point +.>Controlling the microphoneThe trolley of the multi-wheeled AGV is +.>Is +.>;
If it isThe system determines that the Mecanum wheel AGV needs to be far away from the target following point +.>Controlling the Mecanum wheel type AGV trolley to be directed to the target following point +.>Is shifted in the opposite direction +.>。
In the present embodiment, the rotation control is to maintain the target following pointThe polar angle under the Mecanum wheel type AGV trolley radar polar coordinate system is the polar angle threshold +.>The method comprises the steps of carrying out a first treatment on the surface of the The translational control can be decomposed into control in both directions of the abscissa and ordinate axes Y-axis in the mecanum-type AGV carriage coordinate system in order to maintain the target following point +.>The distance between the AGV and the origin of the radar polar coordinate system of the Mecanum wheel type AGV is the target following distance threshold value。
In this embodiment, the target following point is selectedAfter that, the Mecanum wheel AGV needs to reach the target following position, and the specific steps include:
(1) According to the target following pointPolar angle +.>Said target transformation coordinates +.>The industrial personal computer 5 calculates a transverse speed value +.A transverse speed value of the Mecanum wheel type AGV trolley on an abscissa axis of an initial Mecanum wheel type AGV trolley coordinate system>Longitudinal speed value of Y-axis of the ordinate axis +.>Angular velocity value about the vertical axis +.>Wherein n is the time required by the Mecanum wheel AGV to reach the target following position;
(2) The industrial personal computer 5 establishes communication with the STM32F103ZET6 of the STM32 control box 2, and the STM32F103ZET6 receives the transverse speed value sent by the industrial personal computer 5Said longitudinal speed value->And the angular velocity value +.>Data information;
(3) The STM32F103ZET6 calculates an inverse kinematics equation of the Mecanum wheel type AGV trolley, obtains speed information required by the servo motor 9 and sends the speed information to the motor driver 6, so that the movement control of the Mecanum wheel type AGV trolley is realized;
(4) The industrial personal computer 5 determines that the Mecanum wheel type AGV trolley reaches the target following position:
estimating the position of the current radar polar coordinate system of the Mecanum wheel AGV relative to the initial radar polar coordinate system through a fusion positioning algorithm of the IMU and the wheel type odometer, and carrying out coordinate transformation to obtain real-time transformation coordinates of the current radar polar coordinate system relative to the initial radar polar coordinate systemThe information of the IMU is measured by the inertial sensor 4, the information of the wheel type odometer is fed back by the motor driver 6, and the industrial personal computer 5 adopts a PID control strategy, and the real-time transformation coordinates +_ are continuously compared>Transforming coordinates with the object>Thereby continuing to control the movement of the Mecanum wheel AGV until +.>And->And determining that the Mecanum wheel AGV has reached the target following position.
In this embodiment, if the mecanum wheel type AGV trolley reaches the target following position, the point cloud data buffer area is cleared, and a frame of complete radar point cloud data is obtained as the point cloud data of the previous frame identified by the next calibration following target; if the Mecanum wheel type AGV trolley encounters an obstacle before reaching the target following position, the ultrasonic module 7 is used for detecting the linear distance between the Mecanum wheel type AGV trolley and the surrounding obstacle, and when the linear distance is smaller than the set safety distance, the Mecanum wheel type AGV trolley is controlled to stop so as to ensure safety.
In summary, the embodiment of the invention provides a Mecanum wheel type AGV trolley, which is used for realizing an AGV following method based on the maximum line area of radar inter-frame difference, and the Mecanum wheel type AGV trolley can accurately follow a fast and large target in a multi-obstacle scene, can realize 360-degree omnibearing gesture following, is not easy to lose the target in the following process, and has strong real-time performance and high safety.
The foregoing description of the embodiments of the present disclosure is not intended to limit the disclosure to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and principles of the disclosure.
Claims (9)
1. The AGV following method based on the radar inter-frame difference maximum line area is characterized by comprising the following steps:
s1, controlling a laser radar to perform continuous scanning to obtain environmental point cloud data, wherein the environmental point cloud data comprise polar angle and distance information of an obstacle under a radar polar coordinate system, and the scanned point cloud data array of the previous frame is obtainedStoring the point cloud data buffer area, and continuously scanning by the laser radar until a complete current frame point cloud data array +.>;
S2, the current frame point cloud data arrayAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>;
S3, analyzing and calculating the differential discrimination bit groupMaximum line area of the middle continuous "1->Judging the maximum line area of the continuous' 1 +.>The corresponding point cloud is a calibration following target;
s4, taking the central scanning point of the calibration following target as a target following pointThe target following point +.>Is of the polar diameter of (2)And polar angle->A preset target following distance threshold +.>And polar angle threshold>Comparing to realize target following;
and S5, after the AGV trolley is confirmed to reach the target following position, the point cloud data buffer area is cleared, and a frame of complete radar point cloud data is obtained and used as the point cloud data of the previous frame identified by the next calibration following target.
2. The AGV following method based on the radar inter-frame difference maximum line area according to claim 1, wherein in step S1, the lidar is a single-line lidar; the origin of the radar polar coordinate system is the origin of the AGV trolley coordinate system, the polar axis is the ordinate axis of the AGV trolley coordinate system, the positive direction of the polar angle is the anticlockwise direction, the scanning distance from the laser radar to the obstacle is taken as the polar diameter, and the polar diameter is inf when the obstacle exceeds the radar measuring range; the memory size of the point cloud data buffer area is the size of one frame of point cloud data.
3. The AGV following method based on the radar inter-frame difference maximum line area according to claim 1, wherein in step S2, the current frame point cloud data array is setAnd the previous frame point cloud data array +.>Differential and with target decision threshold +.>Comparing to obtain differential discrimination bit array +.>The method specifically comprises the following steps:
the formula of the difference judgment algorithm is as follows:
wherein the method comprises the steps ofFor the current frame point cloud data array +.>At address->Data in->For the previous frame point cloud data array +.>At address->Data in->Determining a threshold for the target;
if it isIn the differential discrimination bit array +.>The address t of (1) is assigned to>Preliminarily judging the target following point;
if it isIn the differential discrimination bit array +.>The address t of (1) is assigned 0 +.>Judging that the target following point is not the target following point;
4. The AGV following method based on the radar inter-frame difference maximum line area according to claim 3, wherein the target determination threshold valueMultiplying the speed of the following target for the desired calibration by a factor +.>And the time difference between the current frame and the previous frame。
5. The AGV following method based on the radar inter-frame difference maximum line area according to claim 1, wherein in step S3, the difference discrimination bit group is analyzed and calculatedMaximum line area of the middle continuous "1->Judging the maximum line area of the continuous' 1 +.>The corresponding point cloud is a calibration following target, and specifically comprises the following steps:
(1) The differential discrimination bit group is adopted in a cyclic traversal and pointer modeGrouping and summing according to the principle of continuous identical elements, comparing the sizes of the groups in turn, and preliminarily determining the maximum line area of the continuous' 1 +.>Following a target for the calibration;
(2) Setting a calibration following target line area thresholdFor preventing misrecognition, if->Then the maximum line area of the succession "1" is determined +.>The corresponding point cloud is the calibration following target; if->And judging that the target is misidentified, namely that the target is not identified at this time, and carrying out next calibration following target identification again.
6. The AGV following method based on the radar inter-frame difference maximum line area according to claim 5, wherein the difference discrimination bit group is formed by adopting a cyclic traversal and pointer modeThe method comprises the steps of carrying out grouping summation according to the principle of continuous identical elements, and comparing the sizes of all groups in sequence, and specifically comprises the following steps:
(2) From the differential number of discrimination bitsStarting to perform loop judgment accumulation if judging address +.>Elements inAnd the latter address->Element in->If the element is equal to 1, element accumulation is carried out, and the element accumulation is stopped until the element is 0, so that the previous continuous 1-line area +.>;
(3) Continuing to judge until the element is 1, and then carrying out the cyclic judgment accumulation again to obtain the current continuous 1-line areaAnd is continuous 1 line area +.>Size comparison is performed, larger values are retained and assigned to +.>While the address of the first element of the packet corresponding to said larger value is reserved and assigned +.>;
7. The AGV following method based on the radar inter-frame difference maximum line area according to claim 1, wherein in step S4, the center scanning point of the calibration following target is used as a target following pointThe target following point +.>Is->And polar angle->A preset target following distance threshold +.>And polar angle threshold>The comparison is carried out to realize target following, and the method specifically comprises the following steps:
(1) Calculating a center scanning point from the calibration following target as a target following pointDetermining the target following pointIs +.>And polar angle->:
Calculating the target following pointAddress->Obtaining the point cloud data array of the current frame +.>Is->Data in->And the previous frame point cloud data array +.>Is->Data in->;
The target following pointPolar angle +.>Follow the point for the object>Address->Multiplying by radar angular resolution;
(2) Setting the target following distance thresholdAnd the polar angle threshold +.>And follow the point with the target +.>Is->And polar angle->And comparing to realize the motion control of the AGV trolley:
if it isAnd->The system determines that the AGV needs to be controlled to rotate anticlockwise or left +>;/>
If it isAnd->The system judges that the AGV trolley needs to be controlled to rotate clockwise or right;
If it isAnd->The system determines that the AGV trolley needs to be controlled to rotate anticlockwise or left;
If it isThe system determines that the AGV needs to approach the target following point +.>Controlling the AGV trolley to follow the target following pointIs +.>;
8. The method for following the AGV based on the radar inter-frame difference maximum line area according to claim 1, wherein in the step S5, the step of confirming that the AGV trolley reaches the target following position specifically comprises the steps of:
estimating the position of a current radar polar coordinate system relative to an initial radar polar coordinate system through an AGV trolley positioning method, and carrying out coordinate transformation to obtain real-time transformation coordinates of the current radar polar coordinate system relative to the initial radar polar coordinate systemAnd continuously transforming coordinates with the target +.>Comparing, and continuing to control the movement of the AGV untilAnd->It is determined that the AGV trolley has reached the target following position.
9. The AGV following method based on the radar inter-frame difference maximum line area according to claim 1 is not only suitable for target following of an AGV trolley, but also suitable for target following of a robot, an industrial mechanical arm and an automatic driving automobile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310249312.5A CN116185039A (en) | 2023-03-15 | 2023-03-15 | AGV following method based on radar inter-frame difference maximum line area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310249312.5A CN116185039A (en) | 2023-03-15 | 2023-03-15 | AGV following method based on radar inter-frame difference maximum line area |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116185039A true CN116185039A (en) | 2023-05-30 |
Family
ID=86446343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310249312.5A Pending CN116185039A (en) | 2023-03-15 | 2023-03-15 | AGV following method based on radar inter-frame difference maximum line area |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116185039A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116360378A (en) * | 2023-06-02 | 2023-06-30 | 北京中鼎昊硕科技有限责任公司 | AGV trolley safety scheduling method based on data analysis |
CN116594431A (en) * | 2023-07-17 | 2023-08-15 | 湖南尖山智能科技有限责任公司 | Hydraulic engineering robot following method, device and system and hydraulic engineering robot |
CN117368876A (en) * | 2023-10-18 | 2024-01-09 | 广州易而达科技股份有限公司 | Human body detection method, device, equipment and storage medium |
-
2023
- 2023-03-15 CN CN202310249312.5A patent/CN116185039A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116360378A (en) * | 2023-06-02 | 2023-06-30 | 北京中鼎昊硕科技有限责任公司 | AGV trolley safety scheduling method based on data analysis |
CN116360378B (en) * | 2023-06-02 | 2023-09-19 | 北京中鼎昊硕科技有限责任公司 | AGV trolley safety scheduling method based on data analysis |
CN116594431A (en) * | 2023-07-17 | 2023-08-15 | 湖南尖山智能科技有限责任公司 | Hydraulic engineering robot following method, device and system and hydraulic engineering robot |
CN117368876A (en) * | 2023-10-18 | 2024-01-09 | 广州易而达科技股份有限公司 | Human body detection method, device, equipment and storage medium |
CN117368876B (en) * | 2023-10-18 | 2024-03-29 | 广州易而达科技股份有限公司 | Human body detection method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116185039A (en) | AGV following method based on radar inter-frame difference maximum line area | |
CN111337941B (en) | Dynamic obstacle tracking method based on sparse laser radar data | |
CN110745140B (en) | Vehicle lane change early warning method based on continuous image constraint pose estimation | |
Wang et al. | Automatic parking of vehicles: A review of literatures | |
CN106462968B (en) | Method and device for calibrating a camera system of a motor vehicle | |
CN110243380B (en) | Map matching method based on multi-sensor data and angle feature recognition | |
CN108398672B (en) | Forward-tilting 2D laser radar mobile scanning-based pavement and obstacle detection method | |
CN108415413B (en) | Intelligent forklift local obstacle avoidance path planning method based on circular useful domain | |
CN108759829B (en) | Local obstacle avoidance path planning method for intelligent forklift | |
CN106569225A (en) | Range-finding sensor based real-time obstacle avoidance method of driveless car | |
CN105300390B (en) | The determination method and device of obstructing objects movement locus | |
CN112278891B (en) | Carriage internal attitude detection method | |
CN113701780A (en) | Real-time obstacle avoidance planning method based on A-star algorithm | |
CN111402328A (en) | Pose calculation method and device based on laser odometer | |
CN115144849A (en) | Sensor fusion for object avoidance detection | |
Li et al. | An end-to-end fully automatic bay parking approach for autonomous vehicles | |
CN114137984A (en) | Modular transmission platform and control method and path planning method thereof | |
Clarembaux et al. | Perception and control strategies for autonomous docking for electric freight vehicles | |
CN111290396A (en) | Automatic control method for unmanned ship for pipeline detection | |
CN114578817B (en) | Control method of intelligent carrier based on multi-sensor detection and multi-data fusion | |
CN115525054A (en) | Large-scale industrial park unmanned sweeper edge path tracking control method and system | |
Surendharan et al. | Environment conscious automated vehicle navigation system using pid controller | |
CN111474940A (en) | Water drop sequencing algorithm for determining effective driving area of intelligent driving vehicle based on vehicle body posture | |
CN117036505B (en) | On-line calibration method and system for vehicle-mounted camera | |
CN112415516A (en) | Method and device for sensing obstacle area in front of vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |