Summary of the invention
(1) goal of the invention
To overcome above-mentioned at least one defect of the existing technology, enable AGV that target is accurately positioned, and smoothly
Completion is moved to target point and then completes delivery/picking or other tasks, and the present invention provides following technical schemes.
(2) technical solution
As the first aspect of the present invention, the present invention provides a kind of object localization methods for AGV, comprising:
The coordinate for obtaining target point under AGV local Coordinate System is positioned based on laser point cloud, and mobile according to the coordinate
To target point;
The Y-axis coordinate of the AGV under world coordinate system is obtained based on TOF measurement positioning, so that AGV is from the mesh
The hatch door that punctuate is retracted into during loading cabin with the loading cabin is kept at a distance;
Acquire the image at the rear AGV in real time, and based on image recognition position to obtain the AGV and the loading cabin it
Between relative coordinate so that the AGV be based on the relative coordinate exit the loading cabin.
A specific embodiment as above-mentioned technical proposal, the AGV are generated by the laser radar itself being equipped with
Point cloud, coordinate of the target point under AGV local Coordinate System is obtained by described cloud of processing.
A specific embodiment as above-mentioned technical proposal, it is described to be existed by described cloud of processing to obtain target point
Coordinate under AGV local Coordinate System includes:
Described cloud is split by change threshold clustering algorithm, obtains satisfactory cloud;
Operation is carried out to the satisfactory cloud by RANSAC algorithm, the target point is obtained and is sat in AGV itself
Coordinate under mark system.
A specific embodiment as above-mentioned technical proposal, it is described by RANSAC algorithm to described satisfactory
Point cloud carries out operation
(1) multiple points are randomly selected in the satisfactory cloud;
(2) operation obtains and the multiple matched mathematical model of point;
(3) point unselected in the satisfactory cloud is substituted into the mathematical model, and therefrom chooses symbol
Close the point of the mathematical model;
(4) iteration executes (3) step until the first setting number, obtains and record the point for meeting the mathematical model;
(5) iteration executes above-mentioned (1)-(4) step until the second setting number, is repeatedly met the mathematical model
Point therefrom chooses the most primary points of quantity for meeting the point of the mathematical model, and then obtains the target point in AGV itself
Coordinate under coordinate system.
A specific embodiment as above-mentioned technical proposal, described according to the coordinate to be moved to target point specific
Are as follows: the AGV is controlled by pid control algorithm and is moved to target point.
A specific embodiment as above-mentioned technical proposal, the AGV obtain the AGV by TOF sensor and exist
Y-axis coordinate under world coordinate system.
A specific embodiment as above-mentioned technical proposal, loading cabin rear are preset with visual indicia object, institute
State position to obtain the relative coordinate between the AGV and the loading cabin based on image recognition include:
Identify visual indicia object described in described image;
The relative coordinate between the AGV and the loading cabin is determined based on the visual indicia object.
As a second aspect of the invention, the present invention provides a kind of object locating systems for AGV, comprising:
First locating module comprising the laser radar being set on front side of the AGV, first locating module pass through institute
It states laser radar and obtains coordinate of the target point under the AGV local Coordinate System, so that the AGV is moved to according to the coordinate
Target point;
Second locating module comprising be set to the TOF sensor of the side AGV, second locating module passes through
The TOF sensor obtains Y-axis coordinate of the AGV under world coordinate system, so that AGV is being retracted into load from the target point
Hatch door during cargo hold with the loading cabin is kept at a distance;
Third locating module comprising the camera being set on rear side of the AGV, the third locating module pass through described
Camera acquires the image at the rear AGV in real time;
First coordinate obtaining module obtains the phase between the AGV and the loading cabin for positioning based on image recognition
To coordinate, so that the AGV is based on the relative coordinate and exits the loading cabin.
A specific embodiment as above-mentioned technical proposal, first locating module further include: points cloud processing
Module, the point cloud obtained for handling the laser radar, and then obtain seat of the target point under AGV local Coordinate System
Mark.
A specific embodiment as above-mentioned technical proposal, the points cloud processing submodule include:
Point cloud segmentation unit obtains satisfactory cloud for being split by clustering algorithm to described cloud;
Second coordinate acquiring unit is obtained for carrying out operation to the satisfactory cloud by RANSAC algorithm
Coordinate of the target point under AGV local Coordinate System.
A specific embodiment as above-mentioned technical proposal, the second coordinate acquiring unit include:
First chooses subelement, for randomly selecting multiple points in the satisfactory cloud;
Operation subelement obtains and the multiple matched mathematical model of point for operation;
Second chooses subelement, for point unselected in the satisfactory cloud to be substituted into the mathematical model
In, and therefrom choose the point for meeting the mathematical model;
Subelement is recorded, setting number is chosen for making described second to choose subelement iteration, obtains and record to meet institute
State the point of mathematical model;
Coordinate obtains subelement and is repeatedly met for making aforementioned four subelement repeat the second setting number
The point of the mathematical model is therefrom chosen the most primary points of quantity for meeting the point of the mathematical model, and then is obtained described
Coordinate of the target point under AGV local Coordinate System.
A specific embodiment as above-mentioned technical proposal, loading cabin rear are preset with visual indicia object, institute
It states the first coordinate obtaining module and identifies visual indicia object described in described image, based on described in visual indicia object determination
Relative coordinate between AGV and the loading cabin.
(3) beneficial effect
Provided by the present invention for the object localization method and system of AGV, enable AGV that the institute of target point is accurately positioned
, and be smoothly moved at target point, and then delivery/picking or other tasks are completed at target point.
Specific embodiment
To keep the purposes, technical schemes and advantages of the invention implemented clearer, below in conjunction in the embodiment of the present invention
Attached drawing, technical solution in the embodiment of the present invention is further described in more detail.
It should be understood that in the accompanying drawings, from beginning to end same or similar label indicate same or similar element or
Element with the same or similar functions.Described embodiments are some of the embodiments of the present invention, rather than whole implementation
Example, in the absence of conflict, the features in the embodiments and the embodiments of the present application can be combined with each other.Based in the present invention
Embodiment, every other embodiment obtained by those of ordinary skill in the art without making creative efforts,
It shall fall within the protection scope of the present invention.
Herein, " first ", " second " etc. are only used for mutual differentiation, rather than indicate their significance level and sequence
Deng.
The division of module, unit or assembly herein is only a kind of division of logic function, in actual implementation may be used
To there is other division modes, such as multiple modules and/or unit can be combined or are integrated in another system.As separation
The module of part description, unit, component are also possible to indiscrete may be physically separated.It is shown as a unit
Component can be physical unit, may not be physical unit, it can is located at a specific place, may be distributed over grid
In unit.Therefore some or all of units can be selected to realize the scheme of embodiment according to actual needs.
Below with reference to the first embodiment for the object localization method for AGV that Fig. 1 detailed description of the present invention provides.This
Embodiment is mainly used in AGV, enables AGV that the place of target point is accurately positioned, and be smoothly moved at target point, in turn
Delivery/picking or other tasks are completed at target point.
Object localization method provided in this embodiment includes the following steps:
Step 100, AGV positions the coordinate for obtaining target point under AGV local Coordinate System based on laser point cloud, and according to seat
Mark is moved to target point.
By taking AGV delivery/picking as an example, before AGV does not determine target point, AGV first has to obtain target point in AGV itself
Coordinate under coordinate system, moving direction, moving distance required for target point etc. will be reached by obtaining itself, then according to target point
Coordinate it is mobile to target point, until reaching target point.
In one embodiment, for AGV equipped with laser radar, laser radar can generate point cloud data, and AGV passes through processing
The point cloud data that laser radar generates obtains coordinate of the target point under AGV local Coordinate System.
Laser radar is the radar system to emit the characteristic quantities such as the position of detecting laser beam target, speed.Its work is former
Reason is then to be compared the reflected signal of slave target received with transmitting signal to objective emission detectable signal,
After making proper treatment, so that it may obtain target for information about, such as target range, orientation, height, speed, posture, even shape
Parameter, to be detected and be identified to target.Real-time detection is carried out to ambient enviroment by laser radar, and is tied according to detection
Fruit determines the coordinate of target point.
It is waited in the holding fix of a certain setting it is understood that AGV can be, while being taken office in reception in advance
Be engaged in after signal or automatically voluntarily using the target point near laser radar real-time detection, and detect effective target point it
Afterwards, then it is mobile to coordinate where target point.It is also possible to AGV in advance along setting path loopy moving or reciprocating movement, while benefit
With in laser radar real-time detection environment, whether there is or not target points, and after detecting effective target point, coordinate is moved where to target point
It is dynamic.
Point cloud data, also referred to as point cloud, refer to that scanning data records in dots, each point includes three-dimensional coordinate,
Some may contain colouring information or Reflection intensity information.Laser radar is by generating point cloud data as in detection target point
The area of a room can make detection result more accurate full and accurate.
In one embodiment, target point is obtained under AGV local Coordinate System by processing laser radar point cloud
Coordinate the following steps are included:
Step 110, point cloud data is split by change threshold clustering algorithm, obtains satisfactory cloud.It is first
First point cloud data is split using clustering algorithm, i.e., point cloud data is first pre-processed, the not jljl in point cloud is extracted
Body, and according to attributes such as the geometries of target, some obvious undesirable set of point cloud datas are removed, are left relevant to target
Point cloud data, with wait be further processed, this is satisfactory point cloud data.
Step 120, operation is carried out to satisfactory cloud by RANSAC algorithm, obtains target point and is sat in AGV itself
Coordinate under mark system.Operation is carried out using RANSAC algorithm to the satisfactory point cloud data left, finally obtains target point
Coordinate under AGV local Coordinate System.RANSAC (Random Sample Consensus) is to include abnormal number according to one group
According to sample data set, calculate the mathematical model parameter of data, obtain the algorithm of effective sample data.
In one embodiment, step 120 by RANSAC algorithm carries out operation to satisfactory cloud, in turn
Obtain coordinate of the target point under AGV local Coordinate System the following steps are included:
Step 121, multiple points are randomly selected in satisfactory cloud, this multiple point is set as interior group.
Step 122, operation obtains and above-mentioned multiple matched mathematical models of point, the i.e. mathematical model of the suitable interior group of calculating.
Mathematical model can be a variety of simple geometric shapes such as line segment, circle, rectangle or combinations thereof.
Step 123, point unselected in satisfactory cloud is substituted into mathematical model, i.e., by the point other than interior group
It substitutes into the mathematical model established.Later, the point for meeting mathematical model is therefrom chosen.
Step 124, iteration executes step 123, until reach the first setting number, when each iteration can will all meet mathematics
The point of model is put into container, and from last iteration when do not meet mathematical model point in find out and meet the point of mathematical model and be put into
Container obtains up to iteration the first setting number and records the point for meeting mathematical model.
Step 125, iteration executes step 121- step 124 until the second setting number, i.e., repeatedly carry out random selecting point, meter
Calculation model substitutes into model, record point, finally obtains the several point sets of the second setting time, these point sets include meeting when secondary
The point for the mathematical model being calculated selects the most primary points of quantity for meeting the point of mathematical model from these point sets,
It is considered as that RANSAC algorithm operation result is optimal as a result, the point obtained by this time, finally obtains target point in AGV itself seat
Coordinate under mark system.
In one embodiment, during AGV is mobile to target point, it is mobile that AGV is controlled by pid control algorithm
To target point.
Step 200, after AGV is moved to target point, AGV needs to enter in loading cabin, has carried out delivery/picking,
During AGV is entered in cabin from the hatch door in loading cabin, AGV is based on TOF measurement positioning and is obtained from world coordinate system
Under Y-axis coordinate, wherein Y-axis is the axis perpendicular to loading cabin length direction, and AGV is able to reflect AGV in the coordinate of Y-axis
At a distance from fallback procedures between hatch door and after entering loading cabin between bulkhead, the Y-axis by controlling AGV is sat
Mark guarantees that hatch door of AGV during being retracted into loading cabin from target point always with loading cabin is kept at a distance, with loading cabin two
It moves back under the parallel posture of side hatch door to loading cabin, prevents AGV and hatch door from bumping against, also can use the method and guarantee that AGV enters load
Certain distance is remained between bulkhead after cargo hold, prevents AGV and bulkhead from bumping against.
In one embodiment, AGV obtains Y-axis coordinate of the AGV under world coordinate system by TOF sensor.TOF
(Time of flight), i.e. flight time telemetry are a kind of turnaround times by detecting optical pulses to obtain mesh
The method for marking object distance.The equipment that TOF sensor is then that by above-mentioned measurement method.
Step 300, AGV acquires the image at itself rear in real time, and positions to obtain itself and loading cabin based on image recognition
Between relative coordinate so that AGV be based on relative coordinate exit loading cabin.
After AGV completes delivery/picking in loading cabin, AGV needs to exit loading cabin, when AGV is retreated to hatch door,
Due to not having two sides compartment wall, TOF sensor is not available, and AGV can acquire in real time the figure at the rear AGV in fallback procedures at this time
Picture guarantees itself to correct side based on itself relative coordinate between loading cabin is obtained from the content identified in image
It draws back, until exiting loading cabin completely and retreating to target point.
In one embodiment, the rear in loading cabin is preset with visual indicia object, and it is specific that visual indicia object can be certain
Shape, the mark of particular color can distinguish itself with background, and step 300 positions to obtain based on image recognition
Relative coordinate between AGV and loading cabin the following steps are included:
Step 310, visual indicia object in image is identified.
After AGV collects the image at rear, the place of visual indicia object is identified from image.
Step 320, view-based access control model marker determines the relative coordinate between AGV and loading cabin.
AGV determines itself relative coordinate between visual indicia object based on the visual indicia object recognized, so that
AGV is fed back in fallback procedures, guarantees that AGV is finally retreated to target point.
Below with reference to the second embodiment for the object locating system for AGV that Fig. 2 detailed description of the present invention provides.This
The object locating system that embodiment provides is used to implement the object localization method in first embodiment.Target provided in this embodiment
Positioning system includes that the first locating module being electrically connected with AGV, the second locating module, third locating module and the first coordinate obtain
Modulus block.
First locating module includes the laser radar being set on front side of AGV, by laser radar obtain target point AGV from
Coordinate under body coordinate system, so that AGV is moved to target point according to coordinate.
Second locating module includes the TOF sensor for being set to the side AGV, obtains AGV by TOF sensor and sits in the world
Y-axis coordinate under mark system, so that AGV keeps at a distance during being retracted into loading cabin from target point with the hatch door in loading cabin.
Third locating module includes the camera being set on rear side of AGV, acquires the figure at the rear AGV in real time by camera
Picture.
First coordinate obtaining module is used to obtain the image at the rear AGV, and positions to obtain AGV and loading based on image recognition
Relative coordinate between cabin, so that AGV is based on relative coordinate and exits loading cabin.
In one embodiment, the first locating module further includes using with points cloud processing submodule, points cloud processing submodule
In the point cloud data that processing laser radar obtains, and then coordinate of the target point under AGV local Coordinate System is obtained, AGV is according to this
Coordinate is moved to target point.
In one embodiment, points cloud processing submodule includes that point cloud data cutting unit and the second coordinate obtain list
Member.
Point cloud data cutting unit is obtained for being split by the point cloud data that clustering algorithm obtains laser radar
Satisfactory point cloud data.
Second coordinate acquiring unit is satisfactory for being obtained by RANSAC algorithm to point cloud data cutting unit
Point cloud data carries out operation, obtains coordinate of the target point under AGV local Coordinate System.
In one embodiment, the second coordinate acquiring unit includes the first selection subelement, operation subelement, the second choosing
Subelement, record subelement and coordinate is taken to obtain subelement.
First selection subelement for selecting at random in the satisfactory point cloud data that point cloud data cutting unit obtains
Take multiple points.
Operation subelement is electrically connected with the first selection subelement, chooses subelement selection with first for obtaining by operation
The mathematical model that matches of multiple points.
Second selection subelement is electrically connected with operation subelement, for choosing the satisfactory of subelement selection for first
Unselected point substitutes into the mathematical model that operation subelement is established in point cloud data, and therefrom chooses and meet mathematical model
Point.
Record subelement is electrically connected with the second selection subelement, chooses setting for making described second to choose subelement iteration
Number obtains and records the point for meeting the mathematical model;
Coordinate obtains subelement and is electrically connected with the first selection subelement and record subelement, for keeping aforementioned four son single
Member repeats the second setting number, is repeatedly met the point of mathematical model, therefrom chooses the number for meeting the point of mathematical model
The at most primary point of amount, and then obtain coordinate of the target point under AGV local Coordinate System.
In one embodiment, loading cabin rear is preset with visual indicia object, and the first coordinate obtaining module identifies figure
The visual indicia object as in, view-based access control model marker determine the relative coordinate between AGV and loading cabin.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be with the scope of protection of the claims
It is quasi-.