CN108326850B - Method and system for robot to accurately move mechanical arm to reach specified position - Google Patents
Method and system for robot to accurately move mechanical arm to reach specified position Download PDFInfo
- Publication number
- CN108326850B CN108326850B CN201810023432.2A CN201810023432A CN108326850B CN 108326850 B CN108326850 B CN 108326850B CN 201810023432 A CN201810023432 A CN 201810023432A CN 108326850 B CN108326850 B CN 108326850B
- Authority
- CN
- China
- Prior art keywords
- image
- coordinate
- physical
- designated image
- circle
- 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.)
- Active
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1612—Programme controls characterised by the hand, wrist, grip control
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1656—Programme controls characterised by programming, planning systems for manipulators
- B25J9/1664—Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1694—Programme controls characterised by use of sensors other than normal servo-feedback from position, speed or acceleration sensors, perception control, multi-sensor controlled systems, sensor fusion
- B25J9/1697—Vision controlled systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Orthopedic Medicine & Surgery (AREA)
- Manipulator (AREA)
Abstract
The invention provides a method for a robot to accurately move a mechanical arm to a specified position, which comprises the steps of obtaining the coordinates of a plurality of specified positions of a first specified image and a second specified image of the robot moving mechanical arm to a preset calibration plate, and calculating the related physical parameters of the central points of the first specified image and the second specified image; acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises a first designated image and a second designated image, and performing data processing to determine relevant image parameters of center points of the first designated image and the second designated image; according to the related physical parameters and the related image parameters of the central points of the first and second designated images, establishing a mapping relation between the physical coordinates of the moving mechanical arm of the robot and the coordinates of the camera; and appointing a certain pixel point coordinate in an imaging picture of the fixed camera and converting to obtain a physical coordinate of the robot moving mechanical arm and drive the robot to arrive. By implementing the invention, the robot can accurately move the mechanical arm to the specified position by establishing the relation between the camera coordinate and the physical coordinate.
Description
Technical Field
The invention relates to the technical field of industrial robots, in particular to a method and a system for accurately moving a mechanical arm to a specified position by a robot.
Background
In the continuous development of modern industry, the automation and intellectualization of industrial production tend to be great, the application field of robots is wider and wider, a large amount of automatic equipment and assembly lines begin to be put into production, and the traditional production mode mainly based on manual manufacturing is gradually replaced. Industrial robots use a large number of machine vision techniques, requiring calibration of the coordinate systems of the robot and the industrial camera. Modern flexible manufacturing often requires that the relative position of the robot arm and the industrial camera change frequently, so that each change in relative position requires recalibration. The existing high-precision calibration method needs professional technicians to realize the calibration through complex steps, the efficiency is low, and common technicians cannot complete the calibration. Aiming at the current problem, the invention provides a calibration method which is high in accuracy, convenient and fast to operate, strong in robustness and low in cost, and is suitable for rapid and accurate calibration after the relative position of a robot arm and an industrial camera in an industrial field changes.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and a system for a robot to accurately move a mechanical arm to a specified position, so that the robot can accurately move the mechanical arm to the specified position by establishing a relationship between a camera coordinate and a physical coordinate.
In order to solve the above technical problem, an embodiment of the present invention provides a method for a robot to accurately move a robot arm to a specified position, where the method includes:
a, acquiring coordinates of a plurality of designated positions of a first designated image and a second designated image of a robot moving mechanical arm reaching a preset calibration plate, performing target calculation on the acquired coordinates of the first designated image and the second designated image, and determining related physical parameters of a center point of the first designated image and a center point of the second designated image;
b, acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, performing data processing on the acquired imaging picture shot by the fixed camera, and determining related image parameters of a central point of the first designated image and a central point of the second designated image;
c, establishing a mapping relation between the physical coordinates of the mobile mechanical arm of the robot and the coordinates of the camera according to the relevant physical parameters of the central points of the first designated image and the second designated image and the relevant image parameters of the central points of the first designated image and the second designated image;
and d, appointing a certain pixel point coordinate in the imaging picture of the fixed camera, and converting the appointed pixel point coordinate according to the established mapping relation to obtain the physical coordinate of the robot corresponding to the movable mechanical arm on the preset calibration plate and drive the robot to move the mechanical arm to accurately arrive.
Wherein, the step a specifically comprises:
setting a first designated image and a second designated image having the same figure on the predetermined calibration plate; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
acquiring four vertex physical coordinates of a square on the first instruction image and four vertex physical coordinates of a square on the second instruction image when the robot moving mechanical arm reaches the first instruction image, and calculating a physical coordinate of a circle center on the first instruction image and a physical coordinate of a circle center on the second instruction image according to the acquired four vertex physical coordinates of the quadrangles on the first instruction image and the second instruction image;
and fixing the physical coordinate of the center of the circle on the first instruction image, the physical coordinate of the center of the circle on the second instruction image and the radius of the circle to be half of the length of a quadrangle, and outputting the fixed physical coordinates and the radius of the circle as related physical parameters of the center point of the first appointed image and the center point of the second appointed image.
Wherein, the step b specifically comprises:
acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, and performing data processing on the acquired imaging picture shot by the fixed camera to obtain a pixel coordinate of the center of a circle on the first instruction image and a radius corresponding to the pixel coordinate of the center of a circle on the second instruction image;
and outputting the pixel coordinate of the center of the circle on the first instruction image and the radius corresponding to the pixel coordinate of the center of the circle on the second instruction image and the radius corresponding to the pixel coordinate of the center of the circle on the first instruction image as the related image parameters of the center point of the first appointed image and the center point of the second appointed image.
The embodiment of the invention also provides a system for accurately moving the mechanical arm to the specified position by the robot, which comprises:
the physical parameter determining unit is used for acquiring coordinates of a plurality of designated positions of a first designated image and a second designated image on a preset calibration plate when a robot moving mechanical arm reaches the preset calibration plate, performing target calculation on the acquired coordinates of the first designated image and the second designated image, and determining related physical parameters of a central point of the first designated image and a central point of the second designated image;
the image parameter determining unit is used for acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, performing data processing on the acquired imaging picture shot by the fixed camera, and determining related image parameters of a central point of the first designated image and a central point of the second designated image;
the coordinate mapping unit is used for establishing a mapping relation between the physical coordinates of the mobile mechanical arm of the robot and the camera coordinates according to the relevant physical parameters of the central points of the first designated image and the second designated image and the relevant image parameters of the central points of the first designated image and the second designated image;
and the conversion moving unit is used for appointing a certain pixel point coordinate in an imaging picture of the fixed camera, converting the appointed pixel point coordinate according to the established mapping relation, obtaining the physical coordinate of the robot corresponding to the moving mechanical arm on the preset calibration plate and driving the robot to move the mechanical arm to accurately arrive.
Wherein the physical parameter determination unit includes:
the image setting module is used for setting a first designated image and a second designated image with the same graph on the preset calibration plate; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
the physical coordinate calculation module is used for acquiring the physical coordinates of four vertexes of a square on the first instruction image and the physical coordinates of four vertexes of a square on the second instruction image when the robot moving mechanical arm reaches the first instruction image, and calculating the physical coordinates of the center of a circle on the first instruction image and the physical coordinates of the center of a circle on the second instruction image according to the acquired physical coordinates of the four vertexes of the quadrangle on the first instruction image and the second instruction image;
and the physical parameter output module is used for fixing the physical coordinates of the circle center on the first instruction image, the physical coordinates of the circle center on the second instruction image and the circle radius to be half of the length of a quadrangle and outputting the fixed physical coordinates and the fixed physical parameters as the related physical parameters of the center point of the first appointed image and the center point of the second appointed image.
Wherein the image parameter determination unit includes:
the image shooting and calculating module is used for acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, and performing data processing on the acquired imaging picture which is shot by the fixed camera to obtain a pixel coordinate of the circle center on the first instruction image and a radius corresponding to the pixel coordinate of the circle center on the second instruction image;
and the image parameter output module is used for outputting the pixel coordinate of the circle center on the first instruction image and the radius corresponding to the pixel coordinate of the circle center on the second instruction image and the radius corresponding to the pixel coordinate of the circle center on the first instruction image as the related image parameters of the center point of the first appointed image and the center point of the second appointed image.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, because the relation between the camera coordinate and the physical coordinate is established, the target point obtained by visual positioning is converted into the physical coordinate, and the mechanical arm is further driven to search the target point, the obtained final physical coordinate is accurate, the algorithm efficiency is high, the mechanical arm moves in the shortest path, and the finally moved coordinate meets the requirement; meanwhile, the embodiment of the invention has strong anti-interference performance on the interference of factors such as dust, particles, spots and the like in the camera image, and can accurately find the target point under the condition that a large number of interferents exist.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
Fig. 1 is a flowchart of a method for a robot to accurately move a mechanical arm to a specified position according to an embodiment of the present invention;
fig. 2 is a view of a corresponding scenario of the general coordinate transformation in step S3;
fig. 3 is a schematic structural diagram of a system for a robot to accurately move a mechanical arm to a specified position according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, in an embodiment of the present invention, a method for a robot to accurately move a robot arm to a specified position is provided, where the method includes:
step S1, acquiring coordinates of a plurality of designated positions of a first designated image and a second designated image when the robot moving mechanical arm reaches a preset calibration plate, performing target calculation on the acquired coordinates of the first designated image and the second designated image, and determining related physical parameters of a center point of the first designated image and a center point of the second designated image;
step S2, acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, performing data processing on the acquired imaging picture shot by the fixed camera, and determining related image parameters of a central point of the first designated image and a central point of the second designated image;
step S3, establishing a mapping relation between the physical coordinates of the mobile mechanical arm of the robot and the coordinates of the camera according to the relevant physical parameters of the central point of the first specified image and the central point of the second specified image and the relevant image parameters of the central point of the first specified image and the central point of the second specified image;
step S4, appointing a certain pixel point coordinate in the imaging picture of the fixed camera, and converting the appointed pixel point coordinate according to the established mapping relation to obtain the physical coordinate of the robot corresponding to the mobile mechanical arm on the preset calibration plate and drive the robot to move the mechanical arm to accurately arrive.
Specifically, in step S1, a first specific image and a second specific image having the same pattern are set on a predetermined calibration sheet; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
acquiring four vertex physical coordinates of a square on a first instruction image and four vertex physical coordinates of a square on a second instruction image when a robot moves a mechanical arm, and calculating a physical coordinate of a circle center on the first instruction image and a physical coordinate of a circle center on the second instruction image according to the acquired four vertex physical coordinates of respective quadrangles on the first instruction image and the second instruction image;
and fixing the physical coordinates of the center of the circle on the first instruction image, the physical coordinates of the center of the circle on the second instruction image and the radius of the circle to be half of the length of the quadrangle, and outputting the parameters as the relevant physical parameters of the center point of the first specified image and the center point of the second specified image.
As an example, the position of the arm of the industrial robot is moved multiple times and within the fixed camera field of view, so that all vertex parameters C of the square are obtained1~C8The position in the robot coordinate system and the physical coordinate M of the centers of two squares15And M16Radius R of the circle15. At this time, C1~C8The physical coordinates of (a) are: (61.249, 307.946), (61.149, 327.928), (41.323, 327.297), (41.323, 308.272), (41.215, 286.645), (40.707, 306.531), (21.298, 306.535), (21.015, 286.871). Circle center M15And M16The physical coordinates of (a) are: (51.261, 317.86075), (31.05875, 296.6455), radius of the circle R15=5000um。
In step S2, acquiring an imaging picture taken by the fixed camera and including both the first designated image and the second designated image, and performing data processing on the acquired imaging picture taken by the fixed camera to obtain a pixel coordinate of a center of a circle on the first instruction image and a radius corresponding to the pixel coordinate of the center of a circle on the second instruction image;
and outputting the pixel coordinate of the center of the circle on the first instruction image and the radius corresponding to the pixel coordinate of the center of the circle on the second instruction image and the radius corresponding to the pixel coordinate of the center of the circle on the first instruction image as the related image parameters of the center point of the first appointed image and the center point of the second appointed image.
As an example, a fixed camera (the position and lens are not changed, but a panorama of a predetermined calibration board can be taken) is used to process the captured image. The circle in the calibration plate can be detected by using Hough transformation. The target point, namely the circle center parameter C can be obtained9、C10Pixel coordinates in the camera coordinate system and a radius parameter R11、R12. At this time, the center C9、C10The pixel coordinates are: (208, 1435), (1622, 498); radius of circle R11=R12=229。
In step S3, as shown in fig. 2, the general coordinates are converted to two coordinates of find OXY and O ' X ' Y '; the coordinate of O' in the OXY coordinate is (x)0,y0) The angle from the x-axis to x' is t, and therefore the coordinate conversion formula x ═ x is obtained0-(x′cost+y′sint),y=y0+(x′sint+y′cost)。
In the conversion of the physical coordinate and the pixel coordinate, t is a deflection angle parameter theta, and a pixel ratio parameter lambda is required to be introduced, so that the physical coordinate and the pixel coordinate are obtainedStandard conversion formula x ═ x0-(x′cosθ+y′sinθ)* λ,y=y0+(x′sinθ+y′cosθ)*λ。
The physical parameter M obtained in the step S1 is utilized15、M16And R15And the image parameter C obtained in step S29、C10And R11Can calculate and obtain a camera coordinate system deflection angle parameter theta13And a pixel ratio parameter λ14. At this time, the deflection angle parameter θ13=arctan((yc9-yc10)/(xc9-xc10))-arctan((ym15-ym16)/(xm15-xm16) ); pixel ratio parameter lambda14=R15/R11(ii) a Wherein x isc9And yc9Are respectively C9Pixel coordinate values on the X-axis and Y-axis; x is the number ofc10And yc10Are respectively C10Pixel coordinate values on the X-axis and Y-axis; x is the number ofm15And ym15Are respectively M15Physical coordinate values on the X-axis and Y-axis; x is the number ofm16And ym16Are respectively M16Physical coordinate values on the X-axis and Y-axis. Thus, θ is calculated130.224 radian, λ14=21.834。
In step S4, coordinates of a certain pixel point in the imaging picture of the fixed camera are randomly designated and coordinate conversion is performed to obtain physical coordinates of the robot corresponding to the moving arm on the preset calibration board and to drive the robot to move the arm to accurately arrive.
As an example, specify C on a picture9(corresponding to M in physical coordinates15) The position on the preset calibration plate is the accurate arrival position of the robot mobile mechanical arm according to x0=M16.x+(xc10*cosθ13+ yc10*sinθ13)*λ14,y0=M16.y-(xc10*sin(-θ13)+yc10*cosθ13)*λ14,x=x0-(xc9*cosθ13+ yc9*sinθ13)*λ14And y ═ y0+(xc9*sin(-θ13)+yc9*cosθ13)*λ14,C9The coordinate substitution calculation results in the coordinates of the robot coordinate system being (51.3535,317.8452). And M15The coordinate error is less than 0.1mm, and the actual use requirement is met.
As shown in fig. 3, in an embodiment of the present invention, a system for a robot to accurately move a robot arm to a specified position is provided, where the system includes:
a physical parameter determining unit 210, configured to obtain coordinates of a plurality of specified positions where a robot moving mechanical arm reaches a first specified image and a second specified image on a preset calibration plate, perform target calculation on the obtained coordinates of the first specified image and the second specified image, and determine a relevant physical parameter of a center point of the first specified image and a relevant physical parameter of a center point of the second specified image;
an image parameter determining unit 220, configured to acquire an imaging picture that is taken by a fixed camera and includes the first designated image and the second designated image at the same time, perform data processing on the acquired imaging picture that is taken by the fixed camera, and determine related image parameters of a center point of the first designated image and a center point of the second designated image;
a coordinate mapping unit 230, configured to establish a mapping relationship between physical coordinates of a robot moving arm and coordinates of a camera according to relevant physical parameters of a center point of the first specified image and a center point of the second specified image and relevant image parameters of the center point of the first specified image and the center point of the second specified image;
and the conversion moving unit 240 is used for designating a certain pixel point coordinate in the imaging picture of the fixed camera, and converting the designated pixel point coordinate according to the established mapping relation to obtain a physical coordinate of the robot corresponding to the moving mechanical arm on the preset calibration plate and drive the robot to move the mechanical arm to accurately arrive.
Wherein the physical parameter determination unit 210 includes:
an image setting module 2101 configured to set a first designated image and a second designated image having the same graphic on the predetermined calibration plate; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
a physical coordinate calculation module 2102, configured to obtain physical coordinates of four vertices of a square on the first instruction image and physical coordinates of four vertices of a square on the second instruction image when the robot moves the mechanical arm to reach the first instruction image, and calculate, according to the obtained physical coordinates of the four vertices of each quadrilateral on the first instruction image and the second instruction image, a physical coordinate of a circle center on the first instruction image and a physical coordinate of a circle center on the second instruction image;
and the physical parameter output module 2103 is configured to fix the physical coordinate of the center of the circle on the first instruction image, the physical coordinate of the center of the circle on the second instruction image, and the radius of the circle to be half of the length of the quadrangle, and output the fixed physical coordinates as the related physical parameters of the center point of the first specified image and the center point of the second specified image.
Wherein the image parameter determination unit 220 includes:
an image capturing and calculating module 2201, configured to obtain an imaging picture captured by a fixed camera and including the first specified image and the second specified image at the same time, and perform data processing on the obtained imaging picture captured by the fixed camera to obtain a pixel coordinate of a center of a circle on the first instruction image and a radius corresponding to the pixel coordinate of the center of a circle on the second instruction image;
an image parameter output module 2202, configured to output, as related image parameters of a center point of the first specified image and a center point of the second specified image, the pixel coordinate of the center of the circle on the first instruction image and the radius corresponding to the pixel coordinate of the center of the circle on the second instruction image.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, because the relation between the camera coordinate and the physical coordinate is established, the target point obtained by visual positioning is converted into the physical coordinate, and the mechanical arm is further driven to search the target point, the obtained final physical coordinate is accurate, the algorithm efficiency is high, the mechanical arm moves in the shortest path, and the finally moved coordinate meets the requirement; meanwhile, the embodiment of the invention has strong anti-interference performance on the interference of factors such as dust, particles, spots and the like in the camera image, and can accurately find the target point under the condition that a large number of interferents exist.
It should be noted that, in the foregoing system embodiment, each included system unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (2)
1. A method for a robot to accurately move a mechanical arm to a specified position is characterized by comprising the following steps:
a, acquiring coordinates of a plurality of designated positions of a first designated image and a second designated image of a robot moving mechanical arm reaching a preset calibration plate, performing target calculation on the acquired coordinates of the first designated image and the second designated image, and determining related physical parameters of a center point of the first designated image and a center point of the second designated image;
b, acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, performing data processing on the acquired imaging picture shot by the fixed camera, and determining related image parameters of a central point of the first designated image and a central point of the second designated image;
c, establishing a mapping relation between the physical coordinates of the mobile mechanical arm of the robot and the coordinates of the camera according to the relevant physical parameters of the central points of the first designated image and the second designated image and the relevant image parameters of the central points of the first designated image and the second designated image;
step d, appointing a certain pixel point coordinate in the imaging picture of the fixed camera, and converting the appointed pixel point coordinate according to the established mapping relation to obtain the physical coordinate of the robot corresponding to the mobile mechanical arm on the preset calibration plate and drive the robot to move the mechanical arm to accurately arrive;
the coordinate transformation is to set two coordinate systems of OXY and O ' X ' Y '; the coordinate of O' in the XY coordinate system is (x)0,y0) The angle from the x-axis to the x' axis is t, and therefore the coordinate conversion formula x is obtained as x0-(x′cost+y′sint),y=y0+(x′sint+y′cost);
In the conversion of the physical coordinate and the pixel coordinate, t is a deflection angle parameter theta, and a pixel ratio parameter lambda is required to be introduced, so that the conversion formula x of the physical coordinate and the pixel coordinate is obtained0-(x′cosθ+y′sinθ)*λ,y=y0+(x′sinθ+y′cosθ)*λ;
The step a specifically comprises the following steps: setting a first designated image and a second designated image with the same pattern on the preset calibration plate; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
acquiring four vertex physical coordinates of a square on the first appointed image and four vertex physical coordinates of a square on the second appointed image when the robot moves a mechanical arm to reach the first appointed image, and calculating a physical coordinate of a circle center on the first appointed image and a physical coordinate of a circle center on the second appointed image according to the acquired four vertex physical coordinates of respective quadrangles on the first appointed image and the second appointed image;
fixing the physical coordinates of the circle center on the first designated image, the physical coordinates of the circle center on the second designated image and the radius of the circle to be half of the length of the quadrangle, and outputting the fixed physical coordinates and the radius of the circle as related physical parameters of the center point of the first designated image and the center point of the second designated image;
the step b specifically comprises the following steps:
acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, and performing data processing on the acquired imaging picture shot by the fixed camera to obtain a pixel coordinate of the center of a circle on the first designated image and a radius corresponding to the pixel coordinate of the center of a circle on the second designated image;
outputting the pixel coordinate of the center of the circle on the first designated image and the radius corresponding to the pixel coordinate of the center of the circle on the second designated image and the radius corresponding to the pixel coordinate of the center of the circle on the first designated image as the related image parameters of the center point of the first designated image and the center point of the second designated image;
moving the position of the industrial robot arm a number of times and within the fixed camera field of view, so as to obtain all the vertex parameters C of the square1~C8The position in the robot coordinate system and the physical coordinate M of the centers of two squares15And M16Radius R of the circle15The panorama of presetting the calibration board is shot to adoption fixed camera, handles the image of gathering, utilizes the Hough transform to detect out the circle in the calibration board, obtains the target point: circle center parameter C9、C10Pixel coordinates in the camera coordinate system and a radius parameter R11、R12Using the physical parameter M obtained in step a15、M16And R15And the image parameter C obtained in step b9、C10And R11To obtain a camera coordinate system deflection angle parameter theta13And a pixel ratio parameter λ14At this timeAngle of deflection parameter θ13=arctan((yc9-yc10)/(xc9-xc10))-arctan((ym15-ym16)/(xm15-xm16) ); pixel ratio parameter lambda14=R15/R11(ii) a Wherein x isc9And yc9Are respectively C9Pixel coordinate values on the X-axis and Y-axis; x is the number ofc10And yc10Are respectively C10Pixel coordinate values on the X-axis and Y-axis; x is the number ofm15And ym15Are respectively M15Physical coordinate values on the X-axis and Y-axis; x is the number ofm16And ym16Are respectively M16Physical coordinate values on the X and Y axes, designating C on the picture9The position on the preset calibration plate is the accurate arrival position of the robot mobile mechanical arm according to x0=M16.x+(xc10*cosθ13+yc10*sinθ13)*λ14,y0=M16.y-(xc10*sin(-θ13)+yc10*cosθ13)*λ14,x=x0-(xc9*cosθ13+yc9*sinθ13)*λ14And y ═ y0+(xc9*sin(-θ13)+yc9*cosθ13)*λ14,C9And substituting the coordinates to calculate the coordinates of the robot in the robot coordinate system.
2. A system for a robot to accurately move a robot arm to a specified position, the system comprising:
the physical parameter determining unit is used for acquiring coordinates of a plurality of designated positions of a first designated image and a second designated image on a preset calibration plate when a robot moving mechanical arm reaches the preset calibration plate, performing target calculation on the acquired coordinates of the first designated image and the second designated image, and determining related physical parameters of a central point of the first designated image and a central point of the second designated image;
the image parameter determining unit is used for acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, performing data processing on the acquired imaging picture shot by the fixed camera, and determining related image parameters of a central point of the first designated image and a central point of the second designated image;
the coordinate mapping unit is used for establishing a mapping relation between the physical coordinates of the mobile mechanical arm of the robot and the camera coordinates according to the relevant physical parameters of the central points of the first designated image and the second designated image and the relevant image parameters of the central points of the first designated image and the second designated image;
the conversion moving unit is used for appointing a certain pixel point coordinate in an imaging picture of the fixed camera, and converting the appointed pixel point coordinate according to the established mapping relation to obtain a physical coordinate of the robot corresponding to the moving mechanical arm on the preset calibration plate and drive the robot to move the mechanical arm to accurately arrive;
the physical parameter determination unit includes:
the image setting module is used for setting a first designated image and a second designated image with the same graph on the preset calibration plate; the first designated image and the second designated image respectively comprise a square and a circle which takes the center point of the square as the center of the circle and has a radius of half the length of the square;
the physical coordinate calculation module is used for acquiring the physical coordinates of four vertexes of a square on the first appointed image and the physical coordinates of four vertexes of a square on the second appointed image when the robot moves to the four vertexes of the square on the first appointed image, and calculating the physical coordinates of the center of a circle on the first appointed image and the physical coordinates of the center of a circle on the second appointed image according to the acquired physical coordinates of the four vertexes of the quadrangle on the first appointed image and the second appointed image;
the physical parameter output module is used for fixing the physical coordinates of the circle center on the first appointed image, the physical coordinates of the circle center on the second appointed image and the circle radius to be half of the length of a quadrangle and outputting the relevant physical parameters of the center point of the first appointed image and the center point of the second appointed image;
the image parameter determination unit includes:
the image shooting and calculating module is used for acquiring an imaging picture which is shot by a fixed camera and simultaneously comprises the first designated image and the second designated image, and carrying out data processing on the acquired imaging picture which is shot by the fixed camera to obtain a pixel coordinate of the center of a circle on the first designated image and a radius corresponding to the pixel coordinate of the center of a circle on the second designated image and a radius corresponding to the pixel coordinate of the center of a circle on the first designated image;
the image parameter output module is used for outputting the pixel coordinate of the circle center on the first appointed image and the corresponding radius thereof as well as the pixel coordinate of the circle center on the second appointed image and the corresponding radius thereof as related image parameters of the center point of the first appointed image and the center point of the second appointed image;
the coordinate transformation is to set two coordinate systems of OXY and O ' X ' Y '; the coordinate of O' in the XY coordinate system is (x)0,y0) The angle from the x-axis to the x' axis is t, and therefore the coordinate conversion formula x is obtained as x0-(x′cost+y′sint),y=y0+(x′sint+y′cost);
In the conversion of the physical coordinate and the pixel coordinate, t is a deflection angle parameter theta, and a pixel ratio parameter lambda is required to be introduced, so that the conversion formula x of the physical coordinate and the pixel coordinate is obtained0-(x′cosθ+y′sinθ)*λ,y=y0+(x′sinθ+y′cosθ)*λ;
Moving the position of the industrial robot arm a number of times and within the fixed camera field of view, so as to obtain all the vertex parameters C of the square1~C8The position in the robot coordinate system and the physical coordinate M of the centers of two squares15And M16Radius R of the circle15The panorama of presetting the calibration board is shot to adoption fixed camera, handles the image of gathering, utilizes the Hough transform to detect out the circle in the calibration board, obtains the target point: circle center parameter C9、C10Pixel coordinates in the camera coordinate system and a radius parameter R11、R12Determination of the result of the unit by means of physical parametersPhysical parameter M15、M16And R15And an image parameter C obtained by the image parameter determining unit9、C10And R11To obtain a camera coordinate system deflection angle parameter theta13And a pixel ratio parameter λ14At this time, the deflection angle parameter θ13=arctan((yc9-yc10)/(xc9-xc10))-arctan((ym15-ym16)/(xm15-xm16) ); pixel ratio parameter lambda14=R15/R11(ii) a Wherein x isc9And yc9Are respectively C9Pixel coordinate values on the X-axis and Y-axis; x is the number ofc10And yc10Are respectively C10Pixel coordinate values on the X-axis and Y-axis; x is the number ofm15And ym15Are respectively M15Physical coordinate values on the X-axis and Y-axis; x is the number ofm16And ym16Are respectively M16Physical coordinate values on the X and Y axes, designating C on the picture9The position on the preset calibration plate is the accurate arrival position of the robot mobile mechanical arm according to x0=M16.x+(xc10*cosθ13+yc10*sinθ13)*λ14,y0=M16.y-(xc10*sin(-θ13)+yc10*cosθ13)*λ14,x=x0-(xc9*cosθ13+yc9*sinθ13)*λ14And y ═ y0+(xc9*sin(-θ13)+yc9*cosθ13)*λ14,C9And substituting the coordinates to calculate the coordinates of the robot in the robot coordinate system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023432.2A CN108326850B (en) | 2018-01-10 | 2018-01-10 | Method and system for robot to accurately move mechanical arm to reach specified position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023432.2A CN108326850B (en) | 2018-01-10 | 2018-01-10 | Method and system for robot to accurately move mechanical arm to reach specified position |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108326850A CN108326850A (en) | 2018-07-27 |
CN108326850B true CN108326850B (en) | 2021-07-06 |
Family
ID=62923479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810023432.2A Active CN108326850B (en) | 2018-01-10 | 2018-01-10 | Method and system for robot to accurately move mechanical arm to reach specified position |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108326850B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109230120B (en) * | 2018-08-01 | 2021-01-15 | 吉林大学珠海学院 | Mechanical palm control method based on image recognition and book taking and placing device |
CN110815203A (en) * | 2018-08-14 | 2020-02-21 | 广东若铂智能机器人有限公司 | Method for correcting end effector of robot arm |
CN109636783B (en) * | 2018-12-04 | 2020-11-27 | 广东拓斯达科技股份有限公司 | Method and device for determining arm length of robot, computer equipment and storage medium |
CN109615658B (en) * | 2018-12-04 | 2021-06-01 | 广东拓斯达科技股份有限公司 | Method and device for taking articles by robot, computer equipment and storage medium |
CN109366472B (en) * | 2018-12-04 | 2020-11-27 | 广东拓斯达科技股份有限公司 | Method and device for placing articles by robot, computer equipment and storage medium |
CN109648568B (en) * | 2019-01-30 | 2022-01-04 | 深圳镁伽科技有限公司 | Robot control method, system and storage medium |
CN110148175B (en) * | 2019-05-29 | 2021-06-29 | 山东大学 | Fermentation pit automatic positioning and boundary detection system and method based on two-dimensional label |
CN110230981B (en) * | 2019-06-21 | 2020-08-07 | 湖南大学 | Dimension detection system and dimension detection method for large-size piece |
CN111347426B (en) * | 2020-03-26 | 2021-06-04 | 季华实验室 | Mechanical arm accurate placement track planning method based on 3D vision |
CN112077841B (en) * | 2020-08-10 | 2022-02-11 | 北京大学 | Multi-joint linkage method and system for manipulator precision of elevator robot arm |
CN116985143B (en) * | 2023-09-26 | 2024-01-09 | 山东省智能机器人应用技术研究院 | Polishing track generation system of polishing robot |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104180753A (en) * | 2014-07-31 | 2014-12-03 | 东莞市奥普特自动化科技有限公司 | Rapid calibration method of robot visual system |
CN104260112A (en) * | 2014-09-18 | 2015-01-07 | 西安航天精密机电研究所 | Robot hand and eye locating method |
CN105234943A (en) * | 2015-09-09 | 2016-01-13 | 大族激光科技产业集团股份有限公司 | Industrial robot demonstration device and method based on visual recognition |
CN106767393A (en) * | 2015-11-20 | 2017-05-31 | 沈阳新松机器人自动化股份有限公司 | The hand and eye calibrating apparatus and method of robot |
JP2017100240A (en) * | 2015-12-01 | 2017-06-08 | セイコーエプソン株式会社 | Control device, robot and robot system |
-
2018
- 2018-01-10 CN CN201810023432.2A patent/CN108326850B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104180753A (en) * | 2014-07-31 | 2014-12-03 | 东莞市奥普特自动化科技有限公司 | Rapid calibration method of robot visual system |
CN104260112A (en) * | 2014-09-18 | 2015-01-07 | 西安航天精密机电研究所 | Robot hand and eye locating method |
CN105234943A (en) * | 2015-09-09 | 2016-01-13 | 大族激光科技产业集团股份有限公司 | Industrial robot demonstration device and method based on visual recognition |
CN106767393A (en) * | 2015-11-20 | 2017-05-31 | 沈阳新松机器人自动化股份有限公司 | The hand and eye calibrating apparatus and method of robot |
JP2017100240A (en) * | 2015-12-01 | 2017-06-08 | セイコーエプソン株式会社 | Control device, robot and robot system |
Non-Patent Citations (1)
Title |
---|
基于视觉检测技术的一种标定方法研究;王彦平;《中国优秀硕士学位论文全文数据库 信息科技辑》;20080215;第9-20页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108326850A (en) | 2018-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108326850B (en) | Method and system for robot to accurately move mechanical arm to reach specified position | |
CN111775146B (en) | Visual alignment method under industrial mechanical arm multi-station operation | |
JP6966582B2 (en) | Systems and methods for automatic hand-eye calibration of vision systems for robot motion | |
CN111801198B (en) | Hand-eye calibration method, system and computer storage medium | |
CN107014312B (en) | A kind of integral calibrating method of mirror-vibrating line laser structured light three-dimension measuring system | |
CN110238849B (en) | Robot hand-eye calibration method and device | |
JP7027299B2 (en) | Calibration and operation of vision-based operation system | |
CN110148187B (en) | High-precision Hand-Eye calibration method and system for SCARA manipulator Eye-in-Hand | |
CN111415391B (en) | External azimuth parameter calibration method for multi-camera by adopting mutual shooting method | |
CN112894823B (en) | Robot high-precision assembling method based on visual servo | |
US20090019916A1 (en) | Method for calibrating a measuring system | |
JP2016185572A (en) | Robot, robot control device, and robot system | |
WO2020252632A1 (en) | Coordinate system calibration method, device, and computer readable medium | |
CN113379849A (en) | Robot autonomous recognition intelligent grabbing method and system based on depth camera | |
JP2020080105A (en) | Camera calibration device and camera calibration method | |
CN114714356A (en) | Method for accurately detecting calibration error of hand eye of industrial robot based on binocular vision | |
CN111390901A (en) | Automatic calibration method and calibration device for mechanical arm | |
CN110695982A (en) | Mechanical arm hand-eye calibration method and device based on three-dimensional vision | |
CN112958960B (en) | Robot hand-eye calibration device based on optical target | |
CN112907683A (en) | Camera calibration method and device for dispensing platform and related equipment | |
WO2012127714A1 (en) | Three-dimensional position/posture recognition device, three-dimensional position/posture recognition method, and three-dimensional position/posture recognition program | |
CN115972192A (en) | 3D computer vision system with variable spatial resolution | |
CN115187612A (en) | Plane area measuring method, device and system based on machine vision | |
WO2022124232A1 (en) | Image processing system and image processing method | |
US11418771B1 (en) | Method for calibrating 3D camera by employing calibrated 2D camera |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |