JP2018001333A - Calibration board, robot and detection method - Google Patents
Calibration board, robot and detection method Download PDFInfo
- Publication number
- JP2018001333A JP2018001333A JP2016130883A JP2016130883A JP2018001333A JP 2018001333 A JP2018001333 A JP 2018001333A JP 2016130883 A JP2016130883 A JP 2016130883A JP 2016130883 A JP2016130883 A JP 2016130883A JP 2018001333 A JP2018001333 A JP 2018001333A
- Authority
- JP
- Japan
- Prior art keywords
- marker
- markers
- robot
- pattern
- convex hull
- 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.)
- Withdrawn
Links
Images
Abstract
Description
この発明は、校正ボード、ロボット、及び検出方法に関する。 The present invention relates to a calibration board, a robot, and a detection method.
撮像部により対象物を撮像し、撮像した撮像画像に基づいてロボットに所定の作業を行わせる技術の研究や開発が行われている。このような技術では、ロボットの座標系であるロボット座標系における座標と、撮像部の座標系である撮像部座標系における座標との対応付けを行う校正が行われる場合がある。このような校正では、例えば、校正用のパターンを撮像部により撮像し、撮像した撮像画像に含まれる当該パターンに基づいて撮像部座標系における座標とロボット座標系における座標とが対応付けられる。 Research and development have been conducted on techniques for imaging an object by an imaging unit and causing a robot to perform a predetermined operation based on the captured image. In such a technique, there is a case where calibration is performed to associate the coordinates in the robot coordinate system, which is the coordinate system of the robot, with the coordinates in the imaging unit coordinate system, which is the coordinate system of the imaging unit. In such calibration, for example, a calibration pattern is captured by the imaging unit, and coordinates in the imaging unit coordinate system and coordinates in the robot coordinate system are associated with each other based on the pattern included in the captured image.
これに関し、直線状に並んだ3個以上の第1マーカーと、当該直線と直交した位置に配置された1個の第2マーカーを有する校正用パターンが知られている(特許文献1参照)。 In this regard, a calibration pattern having three or more first markers arranged in a straight line and one second marker arranged at a position orthogonal to the straight line is known (see Patent Document 1).
しかしながら、このような校正用パターンは、第2マーカーを誤検出させてしまう場合があった。その結果、第1マーカーと第2マーカーとの幾何学的な位置関係によって示される位置を検出する装置は、精度よく当該位置を検出することができない場合があった。 However, such a calibration pattern sometimes erroneously detects the second marker. As a result, an apparatus that detects the position indicated by the geometric positional relationship between the first marker and the second marker may not be able to detect the position with high accuracy.
上記課題の少なくとも一つを解決するために本発明の一態様は、4個以上のマーカーを備え、前記4個以上のマーカーのそれぞれは、回転対称性を有さない凸包の頂点に位置する、校正ボードである。
この構成により、校正ボードでは、4個以上のマーカーのそれぞれは、回転対称性を有さない凸包の頂点に位置する。これにより、校正ボードは、4個以上のマーカーに応じた位置を精度よく検出させることができる。
In order to solve at least one of the above problems, one embodiment of the present invention includes four or more markers, and each of the four or more markers is located at the apex of a convex hull that does not have rotational symmetry. A calibration board.
With this configuration, in the calibration board, each of the four or more markers is positioned at the apex of the convex hull that does not have rotational symmetry. Thereby, the calibration board can detect the position according to four or more markers accurately.
また、本発明の他の態様は、校正ボードにおいて、前記4個以上のマーカーのそれぞれは、図心マーカーである、構成が用いられてもよい。
この構成により、校正ボードでは、4個以上のマーカーのそれぞれは、図心マーカーである。これにより、校正ボードは、4個以上の図心マーカーに応じた位置を精度よく検出させることができる。
According to another aspect of the present invention, in the calibration board, each of the four or more markers may be a centroid marker.
With this configuration, in the calibration board, each of the four or more markers is a centroid marker. Thereby, the calibration board can detect the position according to four or more centroid markers accurately.
また、本発明の他の態様は、校正ボードにおいて、前記図心マーカーのそれぞれは、図心が3つ以上重なる図形を有する、構成が用いられてもよい。
この構成により、校正ボードでは、図心マーカーのそれぞれは、図心が3つ以上重なる図形を有する。これにより、校正ボードは、4個以上のマーカーであって図心が3つ以上重なる図形を有する図心マーカーを画像の中から誤りなく検出させることができる。
According to another aspect of the present invention, in the calibration board, each of the centroid markers may have a shape in which three or more centroids overlap each other.
With this configuration, in the calibration board, each centroid marker has a figure in which three or more centroids overlap. Thereby, the calibration board can detect the centroid marker which has a figure which is four or more markers and three or more centroids overlap from an image without an error.
また、本発明の他の態様は、校正ボードにおいて、前記凸包における第1マーカーを含む辺の長さは、前記凸包における他の辺の長さよりも長い、構成が用いられてもよい。
この構成により、校正ボードでは、凸包における第1マーカーを含む辺の長さは、凸包における他の辺の長さよりも長い。これにより、校正ボードは、4個以上のマーカーに応じた位置を、第1マーカーを基準とすることによって効率よく検出させることができる。
According to another aspect of the present invention, the calibration board may have a configuration in which the length of the side including the first marker in the convex hull is longer than the length of the other side in the convex hull.
With this configuration, in the calibration board, the length of the side including the first marker in the convex hull is longer than the length of the other side in the convex hull. As a result, the calibration board can efficiently detect positions corresponding to four or more markers by using the first marker as a reference.
また、本発明の他の態様は、校正ボードにおいて、前記凸包の内部に、原点を備える、構成が用いられてもよい。
この構成により、校正ボードは、凸包の内部に、原点を備える。これにより、校正ボードは、4個以上のマーカーに応じた位置を原点によって、より精密に表すことができる。
In another aspect of the present invention, the calibration board may have a configuration in which an origin is provided inside the convex hull.
With this configuration, the calibration board has an origin inside the convex hull. Thereby, the calibration board can express the position according to four or more markers more precisely by the origin.
また、本発明の他の態様は、校正ボードにおいて、前記凸包の外部に、第1基準部分と第2基準部分を備え、前記原点と前記第1基準部分とを通る直線と、前記原点と前記第2基準部分とを通る直線とは、直交する、構成が用いられてもよい。
この構成により、校正ボードでは、原点と第1基準部分とを通る直線と、原点と第2基準部分とを通る直線とは、直交する。これにより、校正ボードは、校正ボードの姿勢を第1基準部分と第2基準部分とによって、より精密に表すことができる。
According to another aspect of the present invention, the calibration board includes a first reference portion and a second reference portion outside the convex hull, a straight line passing through the origin and the first reference portion, and the origin. A configuration orthogonal to a straight line passing through the second reference portion may be used.
With this configuration, in the calibration board, the straight line passing through the origin and the first reference portion is orthogonal to the straight line passing through the origin and the second reference portion. Thus, the calibration board can more accurately represent the posture of the calibration board by the first reference portion and the second reference portion.
また、本発明の他の態様は、校正ボードにおいて、前記マーカーの数は5個である、構成が用いられてもよい。
この構成により、校正ボードでは、マーカーの数は5個である。これにより、校正ボードは、5個のマーカーに応じた位置を精度よく検出させることができる。
In another aspect of the present invention, a configuration in which the number of the markers is five in the calibration board may be used.
With this configuration, the calibration board has five markers. Thereby, the calibration board can detect the position according to the five markers with high accuracy.
また、本発明の他の態様は、可動部を備え、前記可動部は、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する、ロボットである。
この構成により、ロボットは、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、4個以上のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
According to another aspect of the present invention, a movable portion is provided, and the movable portion operates based on an image obtained by capturing an image of a pattern including four or more markers, each of which is located at the apex of the convex hull. Is a robot.
With this configuration, the robot operates based on an image in which a pattern including four or more markers each positioned at the apex of the convex hull is captured by the imaging unit. Thereby, the robot can perform a predetermined operation with high accuracy based on a position corresponding to four or more markers and detected from an image captured by the imaging unit.
また、本発明の他の態様は、ロボットにおいて、前記撮像部により前記パターンが撮像された画像に基づいて、前記ロボットの座標系と前記撮像部の座標系との校正が行われる、構成が用いられてもよい。
この構成により、ロボットは、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて、ロボットの座標系と撮像部の座標系との校正が行われる。これにより、ロボットは、撮像部の座標系における位置に応じた位置であってロボットの座標系における位置を精度よく算出することができる。
In another aspect of the present invention, the robot uses a configuration in which calibration of the coordinate system of the robot and the coordinate system of the imaging unit is performed based on an image obtained by imaging the pattern by the imaging unit. May be.
With this configuration, the robot can calibrate the coordinate system of the robot and the coordinate system of the imaging unit based on an image obtained by capturing an image of a pattern composed of four or more markers, each of which is located at the apex of the convex hull. Done. Thereby, the robot can accurately calculate the position in the coordinate system of the robot, which is a position corresponding to the position of the imaging unit in the coordinate system.
また、本発明の他の態様は、ロボットにおいて、前記4個以上のマーカーのそれぞれは、図心マーカーである、構成が用いられてもよい。
この構成により、ロボットは、それぞれが凸包の頂点に位置する4個以上の図心マーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、4個以上の図心マーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
In another aspect of the present invention, in the robot, a configuration in which each of the four or more markers is a centroid marker may be used.
With this configuration, the robot operates based on an image in which a pattern including four or more centroid markers each positioned at the apex of the convex hull is captured by the imaging unit. As a result, the robot can accurately perform a predetermined operation based on the position corresponding to the four or more centroid markers and the position detected from the image captured by the imaging unit.
また、本発明の他の態様は、ロボットにおいて、前記図心マーカーのそれぞれは、図心が3つ以上重なる図形を有する、構成が用いられてもよい。
この構成により、ロボットは、図心が3つ以上重なる図形を有する図心マーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、4個以上のマーカーであって図心が3つ以上重なる図形を有する図心マーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
According to another aspect of the present invention, in the robot, a configuration in which each of the centroid markers has a figure in which three or more centroids overlap each other may be used.
With this configuration, the robot operates based on an image in which a pattern of centroid markers each having a figure in which three or more centroids overlap is captured by the imaging unit. Thereby, the robot is predetermined based on the position detected from the image picked up by the image pickup unit at a position corresponding to the centroid mark marker having four or more markers and three or more centroids overlapping each other. Can be performed with high accuracy.
また、本発明の他の態様は、ロボットにおいて、前記凸包における第1マーカーを含む辺の長さは、前記凸包における他の辺の長さよりも長い、構成が用いられてもよい。
この構成により、ロボットは、凸包における第1マーカーを含む辺の長さが凸包における他の辺の長さよりも長い4つ以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、4個以上のマーカーに応じた位置を、撮像部により撮像された画像から第1マーカーを基準とすることによって効率よく検出し、検出した当該位置に基づいて所定の作業を精度よく行うことができる。
In another aspect of the present invention, the robot may have a configuration in which a length of the side including the first marker in the convex hull is longer than a length of the other side in the convex hull.
According to this configuration, the robot is based on an image in which a pattern including four or more markers whose side length including the first marker in the convex hull is longer than the length of the other side in the convex hull is captured by the imaging unit. Operate. Thus, the robot efficiently detects positions corresponding to the four or more markers from the image captured by the imaging unit using the first marker as a reference, and performs a predetermined operation based on the detected positions. It can be performed with high accuracy.
また、本発明の他の態様は、ロボットにおいて、前記凸包の内部に、原点を備える、構成が用いられてもよい。
この構成により、ロボットは、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンであって凸包の内部に原点を備えるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、凸包の内部に備えられた原点によって表された位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
Further, in another aspect of the present invention, in the robot, a configuration in which an origin is provided inside the convex hull may be used.
With this configuration, the robot operates based on an image captured by the imaging unit, which is a pattern composed of four or more markers each positioned at the apex of the convex hull and having an origin inside the convex hull. As a result, the robot can accurately perform a predetermined operation based on a position represented by the origin provided inside the convex hull and detected from the image captured by the imaging unit.
また、本発明の他の態様は、ロボットにおいて、前記凸包の外部に、第1基準部分と第2基準部分を備え、前記原点と前記第1基準部分とを通る直線と、前記原点と前記第2基準部分とを通る直線とは、直交する、構成が用いられてもよい。
この構成により、ロボットは、外部に第1基準部分及び第2基準部分を備えた凸包の頂点にそれぞれが位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、校正ボードの姿勢を精度よく検出し、検出した当該姿勢に基づいて所定の作業を行うことができる。
In another aspect of the present invention, the robot includes a first reference portion and a second reference portion outside the convex hull, a straight line passing through the origin and the first reference portion, the origin, and the A configuration orthogonal to the straight line passing through the second reference portion may be used.
With this configuration, the robot operates based on an image obtained by capturing an image of a pattern composed of four or more markers, each of which is located at the apex of a convex hull having a first reference portion and a second reference portion outside. To do. As a result, the robot can accurately detect the posture of the calibration board and perform a predetermined operation based on the detected posture.
また、本発明の他の態様は、ロボットにおいて、前記マーカーの数は5個である、構成が用いられてもよい。
この構成により、ロボットは、それぞれが凸包の頂点に位置する5個のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、5個のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
In another aspect of the present invention, the robot may have a configuration in which the number of the markers is five.
With this configuration, the robot operates based on an image in which a pattern including five markers each positioned at the apex of the convex hull is captured by the imaging unit. Thereby, the robot can accurately perform a predetermined operation based on the position corresponding to the five markers and detected from the image captured by the imaging unit.
また、本発明の他の態様は、撮像部により撮像された画像に含まれるマーカーの候補から、それぞれが回転対称性を有さない凸包の頂点に位置する4個以上である所定数のマーカーからなる基準パターンに整合する前記所定数の前記候補を検出する、検出方法である。
この構成により、検出方法は、撮像部により撮像された画像に含まれるマーカーの候補から、それぞれが回転対称性を有さない凸包の頂点に位置する4個以上である所定数のマーカーからなる基準パターンに整合する所定数の当該候補を検出する。これにより、検出方法は、4個以上のマーカーに応じた位置を精度よく検出することができる。
Further, according to another aspect of the present invention, a predetermined number of markers each including four or more markers located at the vertices of a convex hull that does not have rotational symmetry are selected from marker candidates included in an image captured by an imaging unit. And detecting the predetermined number of candidates that match a reference pattern consisting of:
With this configuration, the detection method includes a predetermined number of markers, each of which is four or more located at the vertices of the convex hull that does not have rotational symmetry, from candidate markers included in the image captured by the imaging unit. A predetermined number of the candidates that match the reference pattern are detected. Thereby, the detection method can detect the position according to four or more markers accurately.
また、本発明の他の態様は、検出方法において、撮像部により撮像された画像に含まれるマーカーの候補から選択された前記所定数の前記候補からなる第1パターンをホモグラフィー変換した結果と前記基準パターンとの整合性に基づいて、前記所定数の前記候補を検出する、構成が用いられてもよい。
この構成により、検出方法は、撮像部により撮像された画像に含まれるマーカーの候補から選択された所定数の当該候補からなる第1パターンをホモグラフィー変換した結果と基準パターンとの整合性に基づいて、所定数の当該候補を検出する。これにより、検出方法は、画像に含まれるマーカーの候補に間違ったマーカーが含まれる場合でも、4個以上のマーカーから構成されるパターンを正しく検出することができる。
According to another aspect of the present invention, in the detection method, the result of homography conversion of the first pattern including the predetermined number of the candidates selected from the marker candidates included in the image captured by the imaging unit, A configuration that detects the predetermined number of the candidates based on consistency with a reference pattern may be used.
With this configuration, the detection method is based on the consistency between the result of homography conversion of a predetermined number of first patterns selected from the marker candidates included in the image captured by the imaging unit and the reference pattern. Then, a predetermined number of the candidates are detected. As a result, the detection method can correctly detect a pattern composed of four or more markers even when an incorrect marker is included in the marker candidates included in the image.
また、本発明の他の態様は、検出方法において、前記整合性は、前記ホモグラフィー変換した結果と前記基準パターンとの差によって表される、構成が用いられてもよい。
この構成により、検出方法は、基準パターンとの整合性が、第1パターンをホモグラフィー変換した結果と基準パターンとの差によって表される。これにより、検出方法は、画像に含まれるマーカーの候補に間違ったマーカーが含まれる場合でも、第1パターンをホモグラフィー変換した結果と基準パターンとの差によって表される整合性に基づいて、4個以上のマーカーから構成されるパターンを正しく検出することができる。
According to another aspect of the present invention, in the detection method, a configuration may be used in which the consistency is represented by a difference between a result of the homography conversion and the reference pattern.
With this configuration, in the detection method, consistency with the reference pattern is expressed by a difference between the result of homography conversion of the first pattern and the reference pattern. As a result, even if the marker candidate included in the image includes an incorrect marker, the detection method is based on the consistency represented by the difference between the result of homography conversion of the first pattern and the reference pattern. A pattern composed of more than one marker can be detected correctly.
以上により、校正ボードでは、4個以上のマーカーのそれぞれは、回転対称性を有さない凸包の頂点に位置する。これにより、校正ボードは、4個以上のマーカーに応じた位置を精度よく検出させることができる。
また、ロボットは、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、4個以上のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
また、検出方法は、撮像部により撮像された画像に含まれるマーカーの候補から選択された所定数の当該候補からなる第1パターンをホモグラフィー変換した結果と基準パターンとの整合性に基づいて、所定数の当該候補を検出する。これにより、検出方法は、画像に含まれるマーカーの候補に間違ったマーカーが含まれる場合でも、4個以上のマーカーから構成されるパターンを正しく検出することができる。
As described above, in the calibration board, each of the four or more markers is positioned at the apex of the convex hull that does not have rotational symmetry. Thereby, the calibration board can detect the position according to four or more markers accurately.
Further, the robot operates based on an image obtained by capturing an image of a pattern including four or more markers, each of which is located at the apex of the convex hull. Thereby, the robot can perform a predetermined operation with high accuracy based on a position corresponding to four or more markers and detected from an image captured by the imaging unit.
In addition, the detection method is based on the consistency between the reference pattern and the result of homography conversion of the first pattern including a predetermined number of candidates selected from the marker candidates included in the image captured by the imaging unit. A predetermined number of the candidates are detected. As a result, the detection method can correctly detect a pattern composed of four or more markers even when an incorrect marker is included in the marker candidates included in the image.
<実施形態>
以下、本発明の実施形態について、図面を参照して説明する。
<Embodiment>
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<ロボットシステムの構成>
まず、ロボットシステム1の構成について説明する。
図1は、実施形態に係るロボットシステム1の構成の一例を示す図である。ロボットシステム1は、撮像部10と、ロボット20と、ロボット制御装置30を備える。
<Robot system configuration>
First, the configuration of the
FIG. 1 is a diagram illustrating an example of a configuration of a
撮像部10は、例えば、集光された光を電気信号に変換する撮像素子であるCCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)等を備えたカメラである。撮像部10は、作業台TBの上面に載置された校正ボードCBを含む範囲を撮像可能な位置に設置される。
The
作業台TBは、例えば、テーブル等の台である。なお、作業台TBは、テーブルに代えて、校正ボードCBを載置することが可能な台であれば、他の台であってもよい。校正ボードCBは、撮像部座標系CCとロボット座標系RCとの対応付けを行う校正に用いられる。より具体的には、当該校正では、撮像部座標系CCにおける座標と、ロボット座標系RCにおける座標との対応付けが行われる。撮像部座標系CCは、撮像部10により撮像された撮像画像上の位置を示す座標系である。ロボット座標系RCは、ロボット制御装置30がロボット20のTCP(Tool Center Point)をロボット20に移動させる際の基準となる座標系である。図1に示した校正ボードCBの形状は、板形状であるが、立方体形状、直方体形状、三角柱形状、三角錐形状、円柱形状、円錐形状等の他の形状であってもよい。校正ボードCBについては、後述する。
The work table TB is a table such as a table, for example. Note that the work table TB may be another table as long as it is a table on which the calibration board CB can be placed instead of the table. The calibration board CB is used for calibration for associating the imaging unit coordinate system CC with the robot coordinate system RC. More specifically, in the calibration, the coordinates in the imaging unit coordinate system CC and the coordinates in the robot coordinate system RC are associated. The imaging unit coordinate system CC is a coordinate system that indicates a position on a captured image captured by the
撮像部10は、ケーブルによってロボット制御装置30と通信可能に接続されている。なお、ケーブルを介した有線通信は、例えば、イーサネット(登録商標)やUSB(Universal Serial Bus)等の規格によって行われる。また、撮像部10は、Wi−Fi(登録商標)等の通信規格により行われる無線通信によってロボット制御装置30と接続される構成であってもよい。
The
ロボット20は、アームAと、アームAを支持する支持台Bを備える単腕ロボットである。単腕ロボットは、この一例におけるアームAのような1本のアーム(腕)を備えるロボットである。なお、ロボット20は、単腕ロボットに代えて、複腕ロボットであってもよい。複腕ロボットは、2本以上のアーム(例えば、2本以上のアームA)を備えるロボットである。なお、複腕ロボットのうち、2本のアームを備えるロボットは、双腕ロボットとも称される。すなわち、ロボット20は、2本のアームを備える双腕ロボットであってもよく、3本以上のアーム(例えば、3本以上のアームA)を備える複腕ロボットであってもよい。また、ロボット20は、スカラロボット、直交座標ロボット、円筒型ロボット等の他のロボットであってもよい。直交座標ロボットは、例えば、ガントリロボットである。
The
アームAは、エンドエフェクターEと、マニピュレーターMを備える。アームAは、可動部の一例である。
エンドエフェクターEは、この一例において、物体を把持可能な指部を備えるエンドエフェクターである。なお、エンドエフェクターEは、当該指部を備えるエンドエフェクターに代えて、空気の吸引や磁力、治具等によって物体を持ち上げることが可能なエンドエフェクターや、他のエンドエフェクターであってもよい。
The arm A includes an end effector E and a manipulator M. The arm A is an example of a movable part.
In this example, the end effector E is an end effector including a finger portion that can grip an object. The end effector E may be an end effector capable of lifting an object by air suction, a magnetic force, a jig or the like, or another end effector, instead of the end effector including the finger portion.
エンドエフェクターEは、ケーブルによってロボット制御装置30と通信可能に接続されている。これにより、エンドエフェクターEは、ロボット制御装置30から取得される制御信号に基づく動作を行う。なお、ケーブルを介した有線通信は、例えば、イーサネット(登録商標)やUSB等の規格によって行われる。また、エンドエフェクターEは、Wi−Fi(登録商標)等の通信規格により行われる無線通信によってロボット制御装置30と接続される構成であってもよい。
The end effector E is communicably connected to the
マニピュレーターMは、6つの関節を備える。また、当該6つの関節はそれぞれ、図示しないアクチュエーターを備える。すなわち、マニピュレーターMを備えるアームAは、6軸垂直多関節型のアームである。アームAは、支持台Bと、エンドエフェクターEと、マニピュレーターMと、マニピュレーターMが備える6つの関節それぞれのアクチュエーターとによる連携した動作によって6軸の自由度の動作を行う。なお、アームAは、5軸以下の自由度で動作する構成であってもよく、7軸以上の自由度で動作する構成であってもよい。 The manipulator M includes six joints. Each of the six joints includes an actuator (not shown). That is, the arm A including the manipulator M is a 6-axis vertical articulated arm. The arm A performs an operation with six degrees of freedom by a coordinated operation by the support base B, the end effector E, the manipulator M, and the actuators of each of the six joints included in the manipulator M. The arm A may be configured to operate with a degree of freedom of 5 axes or less, or may be configured to operate with a degree of freedom of 7 axes or more.
マニピュレーターMが備える6つの(関節に備えられた)アクチュエーターはそれぞれ、ケーブルによってロボット制御装置30と通信可能に接続されている。これにより、当該アクチュエーターは、ロボット制御装置30から取得される制御信号に基づいて、マニピュレーターMを動作させる。なお、ケーブルを介した有線通信は、例えば、イーサネット(登録商標)やUSB等の規格によって行われる。また、マニピュレーターMが備える6つのアクチュエーターのうちの一部又は全部は、Wi−Fi(登録商標)等の通信規格により行われる無線通信によってロボット制御装置30と接続される構成であってもよい。
Each of the six actuators (provided at the joints) included in the manipulator M is communicably connected to the
ロボット制御装置30は、この一例において、ロボットを制御する(動作させる)コントローラーである。ロボット制御装置30は、前述の校正ボードCBを含む範囲を撮像部10に撮像させる。そして、ロボット制御装置30は、撮像部10が撮像した撮像画像を撮像部10から取得する。ロボット制御装置30は、取得した撮像画像に基づいて、撮像部座標系CCとロボット座標系RCとを対応付ける校正を行う。具体的には、ロボット制御装置30は、当該撮像画像に基づいて、ロボット座標系RCと校正ボードCB上の位置を表す座標系である校正ボード座標系とを対応付ける校正を行う。ここで、校正ボード座標系とロボット座標系RCとを対応付ける校正が予めロボット制御装置30に対して行われていた場合、ロボット制御装置30は、これら2つの校正の結果に基づいて、撮像部座標系CCとロボット座標系RCとを対応付ける校正を行うことができる。校正ボード座標系とロボット座標系RCとを対応付ける校正をロボット制御装置30に対して行う方法は、ダイレクトティーチングのようなタッチアップ動作を含む方法等の既存の方法であってもよく、これから開発される新たな方法であってもよい。以下では、一例として、ロボット制御装置30には、校正ボード座標系とロボット座標系RCとを対応付ける校正が予め行われている場合について説明する。撮像部座標系CCとロボット座標系RCとを対応付ける校正が行われた後、ロボット制御装置30は、撮像部10により撮像された撮像画像に基づいてロボット20に所定の作業を行わせる。
In this example, the
<校正ボードの構成>
以下、校正ボードCBについて説明する。校正ボードCBには、4個以上のマーカーからなるパターンPNが設けられている。すなわち、パターンPNは、これら4個以上のマーカーを含む。パターンPNにおいて、4個以上のマーカーのそれぞれは、凸包の頂点に位置する。凸包は、与えられた点をすべて包含する最小の凸多角形のことである。これにより、パターンPNを構成する4個以上のマーカーの中から選択可能な3個のマーカーの組み合わせは、いずれも一直線上に並ぶことがない。また、この一例において、パターンPNでは、4個以上のマーカーのうちの1個のマーカーである第1マーカーは、他のマーカーと異なる特徴を有する。具体的には、パターンPNを構成する4個以上のマーカーのうちの第1マーカーを含む辺の長さは、当該4個以上のマーカーのそれぞれが頂点に位置する凸包における他の辺の長さよりも長い。なお、パターンPNに含まれる4個以上のマーカーには、当該特徴を有する第1マーカーが含まれない構成であってもよい。しかし、パターンPNに含まれる4個以上のマーカーに第1マーカーが含まれている場合、校正ボードCBは、パターンPNに含まれる4個以上のマーカーに第1マーカーが含まれていない場合と比較して、短時間で校正ボードCBを検出させることができる。
<Configuration of calibration board>
Hereinafter, the calibration board CB will be described. The calibration board CB is provided with a pattern PN composed of four or more markers. That is, the pattern PN includes these four or more markers. In the pattern PN, each of the four or more markers is located at the apex of the convex hull. A convex hull is the smallest convex polygon that encompasses all given points. Thereby, any combination of three markers that can be selected from four or more markers constituting the pattern PN is not aligned on a straight line. In this example, in the pattern PN, the first marker that is one of the four or more markers has characteristics different from those of other markers. Specifically, the length of the side including the first marker among the four or more markers constituting the pattern PN is the length of the other side in the convex hull where each of the four or more markers is located at the apex. Longer than that. Note that the four or more markers included in the pattern PN may not include the first marker having the characteristics. However, when the first marker is included in four or more markers included in the pattern PN, the calibration board CB is compared with the case where the first marker is not included in four or more markers included in the pattern PN. Thus, the calibration board CB can be detected in a short time.
以下では、一例として、パターンPNが、5個のマーカーであるマーカーMK1〜マーカーMK5を含む場合について説明する。当該5個は、所定数の一例である。また、以下では、マーカーMK1が第1マーカーである場合について説明する。また、以下では、マーカーMK1〜マーカーMK5の全部が互いに同じ形状のマーカーであり、当該全部が互いに同じ大きさのマーカーである場合について説明する。なお、第1マーカーは、マーカーMK1に代えて、マーカーMK2〜マーカーMK5のうちのいずれかであってもよい。また、マーカーMK1〜マーカーMK5の一部又は全部は、互いに異なる形状のマーカーであってもよく、互いに異なる大きさのマーカーであってもよい。 Hereinafter, as an example, the case where the pattern PN includes the markers MK1 to MK5 that are five markers will be described. The five are examples of a predetermined number. Hereinafter, a case where the marker MK1 is the first marker will be described. Hereinafter, a case will be described in which all of the markers MK1 to MK5 are markers having the same shape, and all of the markers are markers having the same size. The first marker may be any one of the markers MK2 to MK5 instead of the marker MK1. Further, some or all of the markers MK1 to MK5 may be markers having different shapes or may be markers having different sizes.
図2は、パターンPNの一例を示す図である。図2に示したように、パターンPNには、マーカーMK1〜マーカーMK5が含まれる。この一例において、マーカーMK1〜マーカーMK5のそれぞれは、図心マーカーである。なお、マーカーMK1〜マーカーMK5の一部又は全部は、図心マーカーに代えて、他のマーカーであってもよい。 FIG. 2 is a diagram illustrating an example of the pattern PN. As shown in FIG. 2, the pattern PN includes markers MK1 to MK5. In this example, each of the markers MK1 to MK5 is a centroid marker. Note that some or all of the markers MK1 to MK5 may be other markers instead of the centroid markers.
ここで、図心マーカーの図心について説明する。図3は、図心を説明するための図である。図3には、輪郭が曲線によって形成された図形F0と、図形F0を構成する各点の位置を表すための二次元座標系と、当該各点の位置を示すベクトルr_iとが示されている。ここで、図3では、ベクトルrを、rの上に矢印を付帯させることによって表している。また、図3では、ベクトルr_iの「_」の後に付された「i」を、rの下付き添え字iによって表している。また、添え字iは、図形F0を構成する各点(例えば、画素)を区別するためのラベルである。また、図3において、二次元座標系の原点から図形F0へ伸びる矢印は、ベクトルr_iの大きさ及び方向を表す矢印である。 Here, the centroid of the centroid marker will be described. FIG. 3 is a diagram for explaining the centroid. FIG. 3 shows a figure F0 whose contour is formed by a curve, a two-dimensional coordinate system for representing the position of each point constituting the figure F0, and a vector r_i indicating the position of each point. . Here, in FIG. 3, the vector r is represented by attaching an arrow on r. Further, in FIG. 3, “i” added after “_” of the vector r_i is represented by a subscript i of r. The subscript i is a label for distinguishing each point (for example, pixel) constituting the figure F0. In FIG. 3, an arrow extending from the origin of the two-dimensional coordinate system to the figure F0 is an arrow indicating the size and direction of the vector r_i.
図心は、云わば図形の中心である。図心は、1つの図形に対して1つのみ一意に決まる。図3に示した図形F0の図心の位置は、ベクトルr_iを用いて、以下に示した式(1)によって定義されるベクトルcにより表される。 The centroid is the center of the figure. Only one centroid is uniquely determined for one figure. The position of the centroid of the figure F0 shown in FIG. 3 is represented by the vector c defined by the following equation (1) using the vector r_i.
式(1)において、ベクトルcは、cの上に矢印を付帯させることによって表している。また、Nは、図形F0を構成する各点の数であり、1以上の整数である。すなわち、図3に示した図形F0の図心の位置は、図形F0を構成する各点の位置を表すベクトルの総和を、当該各点の数によって除したベクトル(N個のベクトルの平均)によって表される。なお、図3では、二次元の図形F0と、二次元の座標系と、二次元のベクトルとを用いて図心について説明したが、図心の位置は、三次元以上の図形に対しても上記の式(1)によって定義されるベクトルcによって表される。 In equation (1), the vector c is expressed by attaching an arrow on c. N is the number of points constituting the graphic F0 and is an integer of 1 or more. That is, the position of the centroid of the figure F0 shown in FIG. 3 is obtained by a vector (average of N vectors) obtained by dividing the sum of the vectors representing the positions of the points constituting the figure F0 by the number of each point. expressed. In FIG. 3, the centroid has been described using a two-dimensional figure F0, a two-dimensional coordinate system, and a two-dimensional vector. However, the position of the centroid is not limited to three-dimensional figures or more. It is represented by the vector c defined by the above equation (1).
図心マーカーは、3つ以上の図形の組み合わせによって構成されるマーカーである。つまり、図心マーカーを構成する当該3つ以上の図形それぞれの図心は、所定の範囲内に収まる(含まれる)。例えば、図形A0と、図形B0と、図形C0との組み合わせによって構成される図心マーカーでは、図形A0の図心A1と、図形B0の図心B1と、図形C0の図心C1とが所定の範囲内に収まる(含まれる)。所定の範囲は、例えば、半径が数画素程度の円形の範囲であるが、半径が1画素未満の円形の範囲であってもよく、半径が数画素以上の円形の範囲であってもよく、矩形等の円形とは異なる他の形状の範囲であってもよい。 The centroid marker is a marker constituted by a combination of three or more figures. That is, the centroid of each of the three or more figures constituting the centroid marker falls within (includes) a predetermined range. For example, in a centroid marker configured by a combination of the figure A0, the figure B0, and the figure C0, the centroid A1 of the figure A0, the centroid B1 of the figure B0, and the centroid C1 of the figure C0 are predetermined. Within (included) the range. The predetermined range is, for example, a circular range having a radius of about several pixels, but may be a circular range having a radius of less than one pixel, or may be a circular range having a radius of several pixels or more, It may be a range of another shape different from a circle such as a rectangle.
次に、図2に示したマーカーMK1〜マーカーMK5のうちマーカーMK1を例に挙げて図心マーカーについて説明する。図4は、図2に示したマーカーMK1を示す図である。図4に示した通り、マーカーMK1は、3つ以上の図形によって構成されている。具体的には、マーカーMK1を構成する3つ以上の図形のそれぞれは、二値化画像において白色又は黒色のみの部分領域として検出される。すなわち、マーカーMK1は、輪郭が円形状の黒色の部分領域によって表される図形M11と、輪郭がリング形状の白色の部分領域によって表される図形M12と、輪郭がリング形状の黒色の部分領域によって表される図形M13との3つの図形によって構成されている。また、マーカーMK1は、図形M11と、図形M12と、図形M13とのそれぞれの図心が、所定の範囲内に収まるように作られている。このため、図形M11と、図形M12と、図形M13との組み合わせによって構成されるマーカーMK1は、図心マーカーである。なお、マーカーMK1における図形M11〜図形M13は、それぞれの輪郭が同心円を構成し、図心が当該同心円の中心に位置する。なお、図心マーカーは、図心マーカーを構成する3つ以上の図形の組み合わせが同心円を構成しない組み合わせであってもよい。しかし、この場合であっても、図心マーカーは、図心マーカーを構成する3つ以上の図形それぞれの図心が、所定の範囲内に収まる。マーカーMK1〜マーカーMK5のそれぞれが図心マーカーである場合、偶発的に3つの図心が所定の範囲内に収まる可能性が低いため、校正ボードCBは、マーカーMK1〜マーカーMK5のそれぞれの誤検出を抑制し、マーカーMK1〜マーカーMK5のそれぞれを精度よく検出させることができる。 Next, the centroid marker will be described using the marker MK1 as an example among the markers MK1 to MK5 shown in FIG. FIG. 4 is a diagram showing the marker MK1 shown in FIG. As shown in FIG. 4, the marker MK1 is composed of three or more figures. Specifically, each of the three or more figures constituting the marker MK1 is detected as a partial region of only white or black in the binarized image. That is, the marker MK1 includes a figure M11 represented by a black partial area having a circular outline, a figure M12 represented by a white partial area having a ring shape, and a black partial area having a ring shape. It is comprised by three figures with the figure M13 represented. The marker MK1 is formed so that the centroids of the figure M11, the figure M12, and the figure M13 are within a predetermined range. For this reason, marker MK1 comprised by the combination of figure M11, figure M12, and figure M13 is a centroid marker. Note that the contours of the graphics M11 to M13 in the marker MK1 constitute concentric circles, and the centroid is located at the center of the concentric circles. The centroid marker may be a combination in which a combination of three or more figures constituting the centroid marker does not constitute a concentric circle. However, even in this case, the centroid of each of the three or more figures constituting the centroid marker falls within a predetermined range. When each of the markers MK1 to MK5 is a centroid marker, it is unlikely that the three centroids will accidentally fall within a predetermined range. Therefore, the calibration board CB detects the false detection of each of the markers MK1 to MK5. , And each of the markers MK1 to MK5 can be detected with high accuracy.
このような図心マーカーであるマーカーMK1〜マーカーMK5は、パターンPNにおいて、図5に示したように回転対称性を有さない凸包の頂点に位置する。図5は、パターンPNにおけるマーカーMK1〜マーカーMK5の幾何学的な位置関係の一例を示す図である。すなわち、マーカーMK1〜マーカーMK5のそれぞれは、パターンPNにおいて、回転対称性を有さない凸五角形である凸包の各頂点に配置される。図5に示した凸包CH1は、マーカーMK1〜マーカーMK5のそれぞれが頂点に位置する回転対称性を有さない凸包の一例である。このようなマーカーMK1〜マーカーMK5の幾何学的な位置関係により、マーカーMK1〜マーカーMK5の中から選択可能な3個のマーカーの組み合わせは、いずれも一直線上に並ぶことがない。また、前述した通り、凸包CH1における第1マーカーであるマーカーMK1を含む辺の長さは、凸包CH1における他の辺の長さよりも長い。 Markers MK1 to MK5 that are such centroid markers are located at the apexes of the convex hull that does not have rotational symmetry as shown in FIG. 5 in the pattern PN. FIG. 5 is a diagram illustrating an example of a geometric positional relationship between the markers MK1 to MK5 in the pattern PN. That is, each of the markers MK1 to MK5 is arranged at each vertex of a convex hull that is a convex pentagon having no rotational symmetry in the pattern PN. The convex hull CH1 shown in FIG. 5 is an example of a convex hull that does not have rotational symmetry in which each of the markers MK1 to MK5 is located at the apex. Due to the geometric positional relationship of the markers MK1 to MK5, any combination of three markers that can be selected from the markers MK1 to MK5 is not aligned. Further, as described above, the length of the side including the marker MK1 which is the first marker in the convex hull CH1 is longer than the length of the other side in the convex hull CH1.
図2に戻る。この一例におけるパターンPNには、n個の黒丸である黒丸BC1〜黒丸BCnと、マーカーOPと、マーカーXP1と、マーカーXP2と、マーカーYP1と、マーカーYP2が更に含まれる。ここで、nは、任意の整数である。なお、パターンPNには、n個の黒丸である黒丸BC1〜黒丸BCnと、マーカーOPと、マーカーXP1と、マーカーXP2と、マーカーYP1と、マーカーYP2との一部又は全部が含まれない構成であってもよい。また、マーカーXP1及びマーカーXP2の少なくとも一方は、第1基準部分の一例である。また、マーカーYP1及びマーカーYP2の少なくとも一方は、第2基準部分の一例である。 Returning to FIG. The pattern PN in this example further includes n black circles BC1 to BCn, a marker OP, a marker XP1, a marker XP2, a marker YP1, and a marker YP2. Here, n is an arbitrary integer. The pattern PN does not include some or all of the black circles BC1 to BCn, which are n black circles, the marker OP, the marker XP1, the marker XP2, the marker YP1, and the marker YP2. There may be. Further, at least one of the marker XP1 and the marker XP2 is an example of a first reference portion. Further, at least one of the marker YP1 and the marker YP2 is an example of a second reference portion.
黒丸BC1〜黒丸BCnのそれぞれは、パターンPN内の領域を正方格子状に区切った場合における各格子点に配置される。また、黒丸BC1〜黒丸BCnのうちのある黒丸がマーカーMK1〜マーカーMK5のいずれかのマーカーと重なる位置では、当該黒丸が削除され、当該マーカーが当該位置に配置される。このような黒丸BC1〜黒丸BCnは、例えば、校正ボードCBによって撮像部10の歪補正を行う際に用いられる。また、このような黒丸BC1〜黒丸BCnは、ロボット制御装置30が校正ボードCBの姿勢を検出する精度を向上させるために用いることも可能である。なお、黒丸BC1〜黒丸BCnのうちの一部又は全部は、他の形状であってもよく、他の大きさであってもよく、他の色であってもよい。この場合、当該一部又は全部は、マーカーMK1〜マーカーMK5、マーカーOP、マーカーXP1、マーカーXP2、マーカーYP1、マーカーYP2のいずれと比較しても識別可能でなければならない。
Each of the black circles BC1 to BCn is arranged at each lattice point when the region in the pattern PN is divided into a square lattice. Further, at a position where a black circle among the black circles BC1 to BCn overlaps any one of the markers MK1 to MK5, the black circle is deleted and the marker is arranged at the position. Such black circles BC1 to BCn are used, for example, when distortion correction of the
マーカーOPは、パターンPN上の位置を表す座標系の原点を示すマーカーである。図2に示したマーカーOPは、複数の黒丸BC1〜黒丸BCnのそれぞれよりも直径が大きな黒丸によって表されている。なお、マーカーOPは、当該黒丸に代えて、複数の黒丸BC1〜黒丸BCnのそれぞれよりも直径が小さな黒丸であってもよく、他の形状のマーカーであってもよく、他の色のマーカーであってもよい。マーカーOPは、マーカーMK1〜マーカーMK5のそれぞれが頂点に位置する凸包CH1の内部(内側)に位置する(図5参照)。この一例において、マーカーOPの位置は、マーカーMK1〜マーカーMK5のうち最も距離が離れた2つのマーカー間の中点の位置である。すなわち、マーカーOPは、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置を表す。ここで、マーカーOPが黒丸BC1〜黒丸BCnのうちのある黒丸と重なる位置では、当該黒丸が削除され、マーカーOPが当該位置に配置される。なお、マーカーOPは、パターンPNに含まれない構成であってもよい。ただし、マーカーOPがパターンPNに含まれることにより、校正ボードCBは、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置の誤検出を抑制し、当該位置を精度よく検出させることができる。また、マーカーOPは、マーカーMK1〜マーカーMK5の幾何学的な位置関係と無関係な位置を表す構成であってもよい。すなわち、マーカーOPの位置は、凸包CH1の内部であれば、如何なる位置であってもよい。 The marker OP is a marker indicating the origin of the coordinate system representing the position on the pattern PN. The marker OP shown in FIG. 2 is represented by a black circle having a larger diameter than each of the plurality of black circles BC1 to BCn. The marker OP may be a black circle having a smaller diameter than each of the plurality of black circles BC1 to BCn instead of the black circle, may be a marker of another shape, or may be a marker of another color. There may be. The marker OP is located inside (inside) the convex hull CH1 in which each of the markers MK1 to MK5 is located at the apex (see FIG. 5). In this example, the position of the marker OP is the position of the midpoint between two markers that are the farthest away from the markers MK1 to MK5. That is, the marker OP represents a position corresponding to the geometric positional relationship between the markers MK1 to MK5. Here, at a position where the marker OP overlaps a certain black circle among the black circles BC1 to BCn, the black circle is deleted, and the marker OP is arranged at the position. The marker OP may be configured not to be included in the pattern PN. However, when the marker OP is included in the pattern PN, the calibration board CB can suppress erroneous detection of positions according to the geometric positional relationship between the markers MK1 to MK5 and can detect the positions with high accuracy. it can. Further, the marker OP may be configured to represent a position unrelated to the geometric positional relationship between the markers MK1 to MK5. That is, the position of the marker OP may be any position as long as it is inside the convex hull CH1.
マーカーXP1及びマーカーXP2の形状及び大きさは、この一例において、マーカーOPの形状及び大きさと同じ形状及び大きさである。この一例において、マーカーXP1とマーカーXP2は、マーカーXP1とマーカーXP2を結ぶ直線上にマーカーOPが位置するように配置される。また、マーカーXP1とマーカーXP2とは、前述の正方格子が有する辺のうちの一辺と当該直線とが平行になるように配置される。すなわち、マーカーXP1とマーカーXP2とを結ぶ直線は、パターンPN上において原点となるマーカーOPを通るX軸を表している。ここで、マーカーXP1が黒丸BC1〜黒丸BCnのうちのある黒丸と重なる位置では、当該黒丸が削除され、マーカーXP1が当該位置に配置される。また、マーカーXP2の位置が黒丸BC1〜黒丸BCnのうちのある黒丸と重なる位置では、当該黒丸が削除され、マーカーXP2が当該位置に配置される。なお、マーカーXP1及びマーカーXP2は、パターンPNに含まれない構成であってもよい。ただし、マーカーXP1及びマーカーXP2がパターンPNに含まれることにより、校正ボードCBは、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じたX軸であって校正ボードCBの姿勢を表す座標系におけるX軸の誤検出を抑制し、当該X軸を精度よく検出させることができる。また、マーカーXP1とマーカーXP2とのいずれか一方又は両方は、他の形状であってもよく、他の大きさであってもよく、他の色であってもよい。 In this example, the shape and size of the marker XP1 and the marker XP2 are the same shape and size as the shape and size of the marker OP. In this example, the marker XP1 and the marker XP2 are arranged such that the marker OP is positioned on a straight line connecting the marker XP1 and the marker XP2. In addition, the marker XP1 and the marker XP2 are arranged so that one of the sides of the square lattice described above is parallel to the straight line. That is, the straight line connecting the marker XP1 and the marker XP2 represents the X axis passing through the marker OP which is the origin on the pattern PN. Here, at a position where the marker XP1 overlaps a certain black circle among the black circles BC1 to BCn, the black circle is deleted, and the marker XP1 is arranged at the position. Further, at the position where the position of the marker XP2 overlaps with a certain black circle among the black circles BC1 to BCn, the black circle is deleted, and the marker XP2 is arranged at the position. The marker XP1 and the marker XP2 may be configured not to be included in the pattern PN. However, since the marker XP1 and the marker XP2 are included in the pattern PN, the calibration board CB is an X axis corresponding to the geometric positional relationship between the markers MK1 to MK5 and represents a posture of the calibration board CB. This makes it possible to suppress erroneous detection of the X axis and to detect the X axis with high accuracy. Further, one or both of the marker XP1 and the marker XP2 may have other shapes, other sizes, or other colors.
マーカーYP1及びマーカーYP2の形状及び大きさは、この一例において、マーカーOPの形状及び大きさと同じ形状及び大きさである。この一例において、マーカーYP1とマーカーYP2は、マーカーYP1とマーカーYP2を結ぶ直線上にマーカーOPが位置するように配置される。また、マーカーYP1とマーカーYP2は、マーカーXP1とマーカーXP2とを結ぶ直線と、マーカーYP1とマーカーYP2とを結ぶ直線とが直交するように配置される。すなわち、マーカーYP1とマーカーYP2とを結ぶ直線は、パターンPN上において原点となるマーカーOPを通るY軸を表している。ここで、マーカーYP1が黒丸BC1〜黒丸BCnのうちのある黒丸と重なる位置では、当該黒丸が削除され、マーカーYP1が当該位置に配置される。また、マーカーYP2が黒丸BC1〜黒丸BCnのうちのある黒丸と重なる位置では、当該黒丸が削除され、マーカーYP2が当該位置に配置される。なお、マーカーYP1及びマーカーYP2は、パターンPNに含まれない構成であってもよい。ただし、マーカーYP1及びマーカーYP2がパターンPNに含まれることにより、校正ボードCBは、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じたY軸であって校正ボードCBの姿勢を表す座標系におけるY軸の誤検出を抑制し、当該Y軸を精度よく検出させることができる。また、マーカーYP1とマーカーYP2とのいずれか一方又は両方は、他の形状であってもよく、他の大きさであってもよく、他の色であってもよい。 In this example, the shape and size of the marker YP1 and the marker YP2 are the same shape and size as the shape and size of the marker OP. In this example, the marker YP1 and the marker YP2 are arranged so that the marker OP is positioned on a straight line connecting the marker YP1 and the marker YP2. The marker YP1 and the marker YP2 are arranged so that a straight line connecting the marker XP1 and the marker XP2 and a straight line connecting the marker YP1 and the marker YP2 are orthogonal to each other. That is, the straight line connecting the marker YP1 and the marker YP2 represents the Y axis passing through the marker OP that is the origin on the pattern PN. Here, at a position where the marker YP1 overlaps a certain black circle among the black circles BC1 to BCn, the black circle is deleted, and the marker YP1 is arranged at the position. Further, at a position where the marker YP2 overlaps a certain black circle among the black circles BC1 to BCn, the black circle is deleted, and the marker YP2 is arranged at the position. The marker YP1 and the marker YP2 may be configured not to be included in the pattern PN. However, since the marker YP1 and the marker YP2 are included in the pattern PN, the calibration board CB is a Y-axis corresponding to the geometric positional relationship between the markers MK1 to MK5 and represents a posture of the calibration board CB. In this way, it is possible to suppress erroneous detection of the Y axis and to detect the Y axis with high accuracy. Further, either one or both of the marker YP1 and the marker YP2 may have another shape, may have another size, or may have another color.
<ロボット制御装置のハードウェア構成>
以下、図6を参照し、ロボット制御装置30のハードウェア構成について説明する。図6は、ロボット制御装置30のハードウェア構成の一例を示す図である。
<Hardware configuration of robot controller>
Hereinafter, the hardware configuration of the
ロボット制御装置30は、例えば、CPU(Central Processing Unit)31と、記憶部32と、入力受付部33と、通信部34と、表示部35を備える。これらの構成要素は、バスBusを介して相互に通信可能に接続されている。また、ロボット制御装置30は、通信部34を介して撮像部10、ロボット20のそれぞれと通信を行う。
The
CPU31は、記憶部32に格納された各種プログラムを実行する。
記憶部32は、例えば、HDD(Hard Disk Drive)やSSD(Solid State Drive)、EEPROM(Electrically Erasable Programmable Read−Only Memory)、ROM(Read−Only Memory)、RAM(Random Access Memory)等を含む。なお、記憶部32は、ロボット制御装置30に内蔵されるものに代えて、USB等のデジタル入出力ポート等によって接続された外付け型の記憶装置であってもよい。記憶部32は、ロボット制御装置30が処理する各種情報、ロボット20を動作させる動作プログラムを含む各種プログラム、各種画像等を格納する。
The
The
入力受付部33は、例えば、表示部35と一体に構成されたタッチパネルである。なお、入力受付部33は、キーボードやマウス、タッチパッド、その他の入力装置であってもよい。
通信部34は、例えば、USB等のデジタル入出力ポートやイーサネット(登録商標)ポート等を含んで構成される。
表示部35は、例えば、液晶ディスプレイパネル、あるいは、有機EL(ElectroLuminescence)ディスプレイパネルである。
The input receiving unit 33 is, for example, a touch panel configured integrally with the
The
The
<ロボット制御装置の機能構成>
以下、図7を参照し、ロボット制御装置30の機能構成について説明する。図7は、ロボット制御装置30の機能構成の一例を示す図である。
<Functional configuration of robot controller>
Hereinafter, the functional configuration of the
ロボット制御装置30は、記憶部32と、制御部36を備える。
The
制御部36は、ロボット制御装置30の全体を制御する。制御部36は、撮像制御部41と、画像取得部43と、検出部45と、校正部47と、位置姿勢算出部49と、ロボット制御部51を備える。制御部36が備えるこれらの機能部は、例えば、CPU31が、記憶部32に記憶された各種プログラムを実行することにより実現される。また、当該機能部のうちの一部又は全部は、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)等のハードウェア機能部であってもよい。
The
撮像制御部41は、撮像部10が撮像可能な範囲を撮像部10に撮像させる。
画像取得部43は、撮像部10が撮像した撮像画像を撮像部10から取得する。
検出部45は、画像取得部43が取得した撮像画像に基づいて、撮像画像に含まれるマーカーMK1〜マーカーMK5それぞれの候補であるマーカー候補を検出する。検出部45は、検出したマーカー候補に基づいて、マーカーMK1〜マーカーMK5からなるパターンPNを検出する。また、検出部45は、画像取得部43が取得した撮像画像に基づいて、撮像画像に含まれるマーカーOPを検出する。また、検出部45は、画像取得部43が取得した撮像画像に基づいて、撮像画像に含まれるマーカーXP1及びマーカーXP2を検出する。また、検出部45は、画像取得部43が取得した撮像画像に基づいて、撮像画像に含まれるマーカーYP1及びマーカーYP2を検出する。
The
The
Based on the captured image acquired by the
校正部47は、検出部45が検出したパターンPNに基づいて、撮像部座標系CCとロボット座標系RCとを対応付ける校正を行う。
位置姿勢算出部49は、検出部45が検出したパターンPNに基づいて、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置及び姿勢を算出する。なお、位置姿勢算出部49は、検出部45が検出したパターンPNに基づいて、マーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置又は姿勢を算出する構成であってもよい。
ロボット制御部51は、位置姿勢算出部49が算出した位置及び姿勢に基づいて、ロボット20に所定の作業を行わせる。
The
The position /
The
<ロボット制御装置が校正を行う処理>
以下、図8を参照し、ロボット制御装置30が校正を行う処理について説明する。当該校正は、撮像部座標系CCとロボット座標系RCとの対応付けを行う校正である。図8は、ロボット制御装置30が校正を行う処理の流れの一例を示すフローチャートである。なお、前述した通り、以下では、ロボット制御装置30には、校正ボード座標系とロボット座標系RCとを対応付ける校正が予め行われている場合について説明する。
<Process where robot controller performs calibration>
Hereinafter, with reference to FIG. 8, a process in which the
検出部45は、記憶部32に予め記憶された基準パターンを記憶部32から読み出す(ステップS105)。ここで、ステップS105の処理について説明する。基準パターンは、撮像画像に含まれるマーカーMK1〜マーカーMK5を検出部45が検出するために用いる比較対象となる画像である。図9は、基準パターンの一例を示す図である。図9に示した基準パターンBPは、このような基準パターンの一例である。基準パターンBPには、マーカーMK1と、マーカーMK2と、マーカーMK3と、マーカーMK4と、マーカーMK5とが予め決められた所定の相対的な位置関係となるように配置される。当該位置関係は、パターンPNに含まれるマーカーMK1〜マーカーMK5のそれぞれの幾何学的な位置関係と同じ位置関係である。すなわち、マーカーMK1〜マーカーMK5のそれぞれは、前述の凸包CH1と同じ形状の凸包である凸包BCHの各頂点に位置する。
The
また、基準パターンBPには、基準パターンBPに含まれるマーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置及び姿勢を表す二次元座標系BCが対応付けられている。当該位置は、二次元座標系BCにおける原点のロボット座標系RCにおける位置によって表される。また、当該姿勢は、二次元座標系BCにおける各座標軸のロボット座標系RCにおける方向によって表される。なお、図9に示した二次元座標系BCの原点の位置は、凸包BCHの内側に位置しているが、凸包BCHの外側に位置する構成であってもよい。 In addition, the reference pattern BP is associated with a two-dimensional coordinate system BC that represents the position and orientation according to the geometric positional relationship between the markers MK1 to MK5 included in the reference pattern BP. The position is represented by the position of the origin in the robot coordinate system RC in the two-dimensional coordinate system BC. The posture is represented by the direction in the robot coordinate system RC of each coordinate axis in the two-dimensional coordinate system BC. In addition, although the position of the origin of the two-dimensional coordinate system BC shown in FIG. 9 is located inside the convex hull BCH, it may be configured to be located outside the convex hull BCH.
より具体的には、基準パターンBPを構成するマーカーMK1〜マーカーMK5のそれぞれは、図10に示した座標に基づいて基準パターンBP上に配置される。図10は、図9に示した二次元座標系BCにおけるマーカーMK1〜マーカーMK5それぞれのX座標及びY座標を示すテーブルである。図9及び図10に示した例では、二次元座標系BCにおけるX軸の正方向は、マーカーMK4からマーカーMK5に向かう方向と一致している。また、二次元座標系BCにおけるY軸の正方向は、マーカーMK3からマーカーMK2に向かう方向と一致している。なお、二次元座標系BCにおけるX軸の正方向及びY軸の正方向は、他の方向と一致している構成であってもよい。図10に示したX座標及びY座標の値は、マーカーMK1〜マーカーMK5のうち二次元座標系BCの原点に最も近いマーカーと二次元座標系BCの原点との相対的な距離を10として算出された値である。このため、図10に示したX座標及びY座標の値には、単位を示していない。 More specifically, each of the markers MK1 to MK5 constituting the reference pattern BP is arranged on the reference pattern BP based on the coordinates shown in FIG. FIG. 10 is a table showing the X and Y coordinates of the markers MK1 to MK5 in the two-dimensional coordinate system BC shown in FIG. In the example shown in FIGS. 9 and 10, the positive direction of the X axis in the two-dimensional coordinate system BC coincides with the direction from the marker MK4 to the marker MK5. Further, the positive direction of the Y axis in the two-dimensional coordinate system BC coincides with the direction from the marker MK3 toward the marker MK2. Note that the X-axis positive direction and the Y-axis positive direction in the two-dimensional coordinate system BC may coincide with other directions. The values of the X coordinate and the Y coordinate shown in FIG. 10 are calculated by setting the relative distance between the marker closest to the origin of the two-dimensional coordinate system BC among the markers MK1 to MK5 and the origin of the two-dimensional coordinate system BC as 10. Value. For this reason, the X coordinate and Y coordinate values shown in FIG. 10 do not indicate units.
ステップS105の処理が行われた後、撮像制御部41は、撮像部10が撮像可能な範囲を撮像部10に撮像させる(ステップS110)。次に、画像取得部43は、ステップS110において撮像部10が撮像した撮像画像を撮像部10から取得する(ステップS120)。次に、検出部45は、ステップS120において画像取得部43が取得した撮像画像に基づいて、撮像画像に含まれるマーカーMK1〜マーカーMK5のそれぞれの候補であるマーカー候補を検出する(ステップS130)。ここで、ステップS130の処理について説明する。
After the process of step S105 is performed, the
ステップS130において検出部45は、ステップS120において画像取得部43が取得した撮像画像に含まれる複数の図形の中から図3に示した図心マーカーであると判定可能な図形をマーカー候補として検出する。すなわち、検出部45は、当該複数の図形の中から、3つ以上の図心が所定の範囲内に収まっていると判定可能な図形の組み合わせをマーカー候補として検出する。当該組み合わせには、ノイズが含まれる。ノイズは、この一例において、図3に示した図心マーカーとして撮像画像の中から検出部45により誤検出される他のマーカー、図形、模様等である。以下では、一例として、検出部45が6個のマーカー候補であるマーカー候補DP1〜マーカー候補DP6のそれぞれを検出した場合について説明する。この場合、検出対象であるマーカーが5個のマーカーMK1〜マーカーMK5であるため、マーカー候補DP1〜マーカー候補DP6のうちのいずれか1個は、マーカー候補として誤検出されたノイズである。なお、検出部45は、当該撮像画像に含まれる複数の図形の中から、パターンマッチングによって当該図心マーカーであると判定可能な図形をマーカー候補として検出する構成であってもよい。この場合、検出部45は、予め記憶部32に記憶された図心マーカーのモデル画像を読み出し、読み出した当該モデル画像に基づいてマーカー候補を検出する。なお、検出部45は、マーカー候補を検出する際、マーカー候補の撮像部座標系CCにおける位置(X座標及びY座標)も検出する。
In step S130, the
図11に示したマーカー候補DP1〜マーカー候補DP6のそれぞれは、このようにして検出部45により検出されたマーカー候補である。図11は、画像取得部43が取得した撮像画像のうちの一部分の一例を示す図である。当該一部分は、当該撮像画像のうちマーカーMK1〜マーカーMK5のそれぞれが撮像されている部分である。図11に示した画像P1は、当該一部分の一例である。なお、図11に示した例では、マーカー候補DP5が、前述のマーカー候補として検出されたノイズである。このため、図11では、マーカー候補DP5を他のマーカー候補と区別するために点線によって表している。
Each of the marker candidates DP1 to DP6 shown in FIG. 11 is a marker candidate detected by the
ステップS130の処理が行われた後、検出部45は、ステップS130において検出された6個のマーカー候補の中から選択可能な5個のマーカー候補の組み合わせのそれぞれを第0組み合わせとして抽出する。そして、検出部45は、抽出した1以上の第0組み合わせの中から所定条件を満たす組み合わせを第1組み合わせとして抽出する(ステップS140)。所定条件は、この一例において、第1組み合わせに含まれる5個のマーカー候補のそれぞれが凸包の頂点に位置することである。ここで、ステップS140の処理について説明する。
After the process of step S130 is performed, the
検出部45は、抽出した第0組み合わせのそれぞれ毎に、第0組み合わせに含まれる5個のマーカー候補に基づく凸包を検出する。検出部45が、抽出した第0組み合わせのそれぞれ毎に当該凸包を検出する方法は、既存の方法であってもよく、これから開発される方法であってもよい。当該凸包を検出する方法が既存の方法である場合、検出部45は、例えば、第0組み合わせのそれぞれ毎に、第0組み合わせの中から所定の選択条件を満たすマーカー候補を1つ選択する。所定の選択条件は、以下に示す1)、2)の条件を両方満たすことである。
The detecting
1)ステップS120において画像取得部43が取得した撮像画像内において最も上(撮像部座標系CCにおけるY軸の座標が最も大きい位置)に位置しているマーカー候補であること
2)1)の条件を満たすマーカー候補が2個以上ある場合、当該2個以上のマーカー候補のうち最も右(撮像部座標系CCにおけるX軸の座標が最も大きい位置)に位置しているマーカー候補であること
1) The marker candidate located at the top of the captured image acquired by the
なお、所定の選択条件は、上記に示した1)、2)の条件に代えて、他の条件を満たすことであってもよい。また、所定の選択条件は、上記に示した1)、2)の条件に加えて、他の条件を満たすことであってもよい。また、所定の選択条件は、上記に示した1)の条件のみを満たすことであってもよい。 The predetermined selection condition may be to satisfy other conditions instead of the above conditions 1) and 2). Further, the predetermined selection condition may be to satisfy other conditions in addition to the above conditions 1) and 2). Further, the predetermined selection condition may satisfy only the condition 1) described above.
検出部45は、選択したマーカー候補である選択マーカー候補から、他のマーカー候補のそれぞれまでのベクトルを算出する。検出部45は、算出した各ベクトルを長さ1のベクトルに正則化する。ここで、これらの正則化したベクトルに含まれるあるベクトルCV1と、当該正則化したベクトルに含まれるあるベクトルCV2との外積「ベクトルCV1×ベクトルCV2」が負の場合、ベクトルCV1が示すマーカー候補は、ベクトルCV2が示すマーカー候補よりも撮像部座標系CCにおけるX軸の座標が小さい位置に位置している。そこで、検出部45は、当該正則化したベクトルのそれぞれ同士の外積を算出し、算出した外積の結果が負か否かを判定することによって、当該X軸の座標が最も小さいマーカー候補を特定する。検出部45は、特定したマーカー候補を次の選択マーカー候補として選択する。検出部45は、このような選択マーカー候補の選択を繰り返し、最初に選択した選択マーカー候補が再び選択マーカー候補として選択されるまで繰り返す。そして、検出部45は、最初に選択した選択マーカー候補から選択した順に選択マーカー候補として選択されたマーカー候補を直線で結んだ場合に形成される形状、すなわち凸包を検出する。検出部45は、このような凸包の検出を、第0組み合わせのそれぞれ毎に行う。なお、検出部45は、当該正則化したベクトルのそれぞれ同士の外積を算出し、算出した外積の結果が正か否かを判定することによって、当該X軸の座標が最も大きなマーカー候補を特定する構成であってもよい。
The
検出部45は、検出された凸包に基づいて、所定条件を満たす第0組み合わせのそれぞれを第1組み合わせとして抽出する。所定条件は、第0組み合わせに含まれるマーカー候補のそれぞれが、当該それぞれに基づいて検出された凸包の頂点に位置していることである。すなわち、検出部45は、検出された凸包のそれぞれから、凸包の頂点の数が4以下の凸包を除外する。そして、検出部45は、除外されずに残った凸包、すなわち頂点の数が5の凸包を特定する。検出部45は、特定した凸包のそれぞれ毎に、凸包を構成するマーカー候補の組み合わせを、所定条件を満たす第0組み合わせ、すなわち第1組み合わせとして抽出する。
Based on the detected convex hull, the
ここで、所定条件を満たす第0組み合わせについて、図12及び図13を例に挙げて説明する。図12は、所定条件を満たす組み合わせと判定される可能性のある第0組み合わせの一例を示す図である。図12に示した第0組み合わせは、マーカー候補DP3が検出された撮像部座標系CCにおける位置に応じて、所定条件を満たすか否かが変化する。例えば、マーカー候補DP3とマーカー候補DP2との外積が0又は正であった場合、検出部45は、図12に示した第0組み合わせに基づいて、マーカー候補DP2、マーカー候補DP4、マーカー候補DP5、マーカー候補DP6の4つのマーカー候補のそれぞれを頂点とする凸包を検出する。図12に示した凸包CH2は、このような凸包の一例である。この場合、当該凸包の頂点の数が4であるため、検出部45は、図12に示した第0組み合わせを、第1組み合わせとして抽出しない。一方、マーカー候補DP3とマーカー候補DP2との外積が負であった場合、検出部45は、マーカー候補DP2、マーカー候補DP3、マーカー候補DP4、マーカー候補DP5、マーカー候補DP6の5つのマーカー候補のそれぞれを頂点とする凸包を検出する。この場合、当該凸包の頂点の数が5であるため、検出部45は、図12に示した第0組み合わせを、第1組み合わせとして抽出する。
Here, the 0th combination that satisfies the predetermined condition will be described with reference to FIGS. FIG. 12 is a diagram illustrating an example of a 0th combination that may be determined to be a combination that satisfies a predetermined condition. In the 0th combination shown in FIG. 12, whether or not a predetermined condition is satisfied changes depending on the position in the imaging unit coordinate system CC where the marker candidate DP3 is detected. For example, when the outer product of the marker candidate DP3 and the marker candidate DP2 is 0 or positive, the
一方、図13は、所定条件を満たす組み合わせと判定される第0組み合わせの一例を示す図である。図13に示した例では、検出部45は、マーカー候補DP1〜マーカー候補DP4、及びマーカー候補DP5の組み合わせを第0組み合わせとして選択している。この場合、検出部45は、当該第0組み合わせに基づいて凸包CH3を検出する。図13に示したように、凸包CH3の頂点の数は、5である。このため、検出部45は、図13に示した第0組み合わせを、所定条件を満たす組み合わせであると判定し、当該第0組み合わせを第1組み合わせとして抽出する。
On the other hand, FIG. 13 is a diagram illustrating an example of a 0th combination that is determined to be a combination that satisfies a predetermined condition. In the example illustrated in FIG. 13, the
また、ステップS140において、検出部45は、抽出した第1組み合わせのそれぞれ毎に、第1組み合わせに含まれる各マーカー候補に順番を対応付ける。ここで、図13に示した第1組み合わせを例に挙げて、当該各マーカー候補に順番を対応付ける処理について説明する。検出部45は、当該第1組み合わせに含まれる各マーカー候補に対して、各マーカー候補が前述の選択マーカー候補として選択された順番を対応付ける。図13に示した例では、1番目に選択マーカー候補として選択されたマーカー候補は、マーカー候補DP1である。このため、検出部45は、マーカー候補DP1に対して1番目を表す番号として1を対応付ける。また、当該例では、2番目に選択マーカー候補として選択されたマーカー候補は、マーカー候補DP4である。このため、検出部45は、マーカー候補DP4に対して2番目を表す番号として2を対応付ける。これを繰り返し、検出部45は、マーカー候補DP3に3番目の順番を表す番号として3を対応付け、マーカー候補DP2に4番目の順番を表す番号として4を対応付け、マーカー候補DP6に5番目の順番を表す番号として5を対応付ける。
In step S140, the
ステップS140の処理が行われた後、検出部45は、ステップS140において抽出した1以上の第1組み合わせ毎に、ステップS155〜ステップS170の処理を繰り返し行う(ステップS150)。
After the process of step S140 is performed, the
検出部45は、ステップS150において選択した第1組み合わせに含まれるマーカー候補の中から1個ずつ第1マーカーの候補である第1マーカー候補を選択する。そして、検出部45は、選択した第1マーカー候補毎にステップS160〜ステップS170の処理を繰り返し行う(ステップS155)。より具体的には、検出部45は、ステップS155において選択した第1マーカー候補と、基準パターンBPに含まれる第1マーカー(この一例において、マーカーMK1)とが一致するように、ステップS150において選択した第1組み合わせに含まれる5個のマーカー候補のそれぞれを、基準パターンBPに含まれるマーカーMK1〜マーカーMK5のそれぞれに写像するホモグラフィー変換を行う。
The
次に、検出部45は、ステップS160において行ったホモグラフィー変換の結果と、基準パターンBPとを比較し、当該結果と基準パターンBPとの整合性を表す値として、当該結果と基準パターンBPとの残差を算出する(ステップS170)。残差の算出方法については、既知の方法であってもよく、これから開発される方法であってもよい。ここで、図14〜図16を参照し、ステップS160〜ステップS170の処理について説明する。なお、ここでは、図13に示した第0組み合わせがステップS150において選択された第1組み合わせである場合を例に挙げて説明する。
Next, the
図14は、ステップS130において検出部45によって検出されたX座標及びY座標であってマーカー候補DP1〜マーカー候補DP6それぞれの撮像部座標系CCにおけるX座標及びY座標の一例を示すテーブルである。
FIG. 14 is a table showing an example of the X coordinate and Y coordinate detected by the
図15は、ステップS160においてホモグラフィー変換が行われた後の第1組み合わせに含まれる各マーカー候補の二次元座標系BCにおける座標の一例を示す図である。図15に示した例では、検出部45は、マーカー候補DP1を第1マーカー候補として選択している。この場合、検出部45は、ステップS170において、図15に示したホモグラフィー変換の結果と基準パターンBPとの残差を3.26と算出する。
FIG. 15 is a diagram illustrating an example of coordinates in the two-dimensional coordinate system BC of each marker candidate included in the first combination after the homography conversion is performed in step S160. In the example illustrated in FIG. 15, the
一方、図16は、ステップS160においてホモグラフィー変換が行われた後の第1組み合わせに含まれる各マーカー候補の二次元座標系BCにおける座標の他の例を示す図である。図16に示した例では、検出部45は、マーカー候補DP6を第1マーカー候補として選択している。この場合、検出部45は、ステップS170において、図16に示したホモグラフィー変換の結果と基準パターンBPとの残差を0.0158と算出する。
On the other hand, FIG. 16 is a diagram illustrating another example of coordinates in the two-dimensional coordinate system BC of each marker candidate included in the first combination after the homography conversion is performed in step S160. In the example illustrated in FIG. 16, the
ステップS150〜ステップS170の繰り返し処理によって第1組み合わせと第1マーカー候補との組み合わせのそれぞれ毎に対応する残差が算出された後、検出部45は、最も小さい残差に対応する当該組み合わせを特定する。なお、検出部45は、このようなホモグラフィー変換に基づく当該組み合わせの特定により、図12に示すような基準パターンBPに整合しないパターンを構成する第1組み合わせを除外することができる。このため、検出部45は、ステップS140において、当該第1組み合わせが除外できなかった場合であっても、ステップS150〜ステップS170の繰り返し処理によって当該第1組み合わせを除外することができる。そして、検出部45は、特定した当該最も小さい残差に対応する組み合わせにおける第1組み合わせに含まれる5個のマーカー候補を、基準パターンBPに整合するパターンであるパターンPNを構成するマーカー候補として検出する(ステップS180)。
After the residual corresponding to each combination of the first combination and the first marker candidate is calculated by the repeated processing of step S150 to step S170, the
次に、検出部45は、ステップS180において検出したマーカー候補の組み合わせを含む第1組み合わせに対応する残差が所定閾値未満であるか否かを判定する(ステップS190)。当該残差が所定閾値未満ではないと判定した場合(ステップS190−NO)、検出部45は、ステップS120において画像取得部43が取得した撮像画像に基づいてパターンPNを検出することができなかったと判定する。そして、撮像制御部41は、ステップS110に遷移し、再び撮像部10が撮像可能な範囲を撮像部10に撮像させる。一方、当該残差が所定閾値未満であると判定した場合(ステップS190−YES)、検出部45は、ステップS180において検出した5個のマーカー候補をマーカーMK1〜マーカーMK5として検出(特定)する。すなわち、検出部45は、当該場合、当該マーカー候補からなるパターンPNを検出する(ステップS195)。
Next, the
次に、検出部45は、ステップS195において検出したパターンPNに含まれるマーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置であって撮像部座標系CCにおける位置を検出する(ステップS200)。具体的には、検出部45は、基準パターンBPに対応付けられた二次元座標系BCの原点の撮像部座標系CCにおける位置を、ホモグラフィー変換(ステップS160において行ったホモグラフィー変換に対する逆ホモグラフィー変換)によって算出する。なお、この一例において、パターンPNには、マーカーOPが含まれている。このため、検出部45は、マーカーOPの撮像部座標系CCにおける位置を、ステップS195において検出したパターンPNに含まれるマーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置として検出することもできる。この場合、検出部45は、パターンPNを構成するマーカーMK1〜マーカーMK5のそれぞれが頂点に位置する凸包CH1の内部に存在するマーカーOPを検出する。検出部45は、例えば、パターンマッチングによってマーカーOPを検出する。そして、検出部45は、検出したマーカーOPの撮像部座標系CCにおける位置を、ステップS195において検出したパターンPNに含まれるマーカーMK1〜マーカーMK5の幾何学的な位置関係に応じた位置として検出する。これにより、検出部45は、ホモグラフィー変換の精度に依らず、高い精度で当該位置を検出することができる。なお、検出部45は、パターンマッチングに代えて、他の方法によってマーカーOPを検出する構成であってもよい。
Next, the
次に、検出部45は、ステップS195において検出したパターンPN上のX軸及びY軸であって撮像部座標系CCにおける当該X軸及び当該Y軸のそれぞれを検出する(ステップS210)。具体的には、検出部45は、基準パターンBPに対応付けられた二次元座標系BCにおける各座標軸の撮像部座標系CCにおける方向を、ホモグラフィー変換(ステップS160において行ったホモグラフィー変換に対する逆ホモグラフィー変換)によって検出する。なお、この一例において、パターンPNには、マーカーXP1、マーカーXP2、マーカーYP1、マーカーYP2のそれぞれが含まれている。このため、検出部45は、マーカーXP1、マーカーXP2、マーカーYP1、マーカーYP2のそれぞれに基づいて、ステップS195において検出したパターンPN上のX軸及びY軸であって撮像部座標系CCにおける当該X軸及び当該Y軸のそれぞれを検出することもできる。この場合、検出部45は、パターンPNを構成するマーカーMK1〜マーカーMK5のそれぞれが頂点に位置する凸包CH1の外部に存在するマーカーXP1、マーカーXP2、マーカーYP1、マーカーYP2のそれぞれを検出する。検出部45は、例えば、パターンマッチングによってマーカーXP1、マーカーXP2、マーカーYP1、マーカーYP2のそれぞれを検出する。そして、検出部45は、検出したマーカーXP1とマーカーXP2との両方を通る直線を当該X軸として検出する。また、検出部45は、検出したマーカーYP1とマーカーYP2との両方を通る直線を当該Y軸として検出する。これにより、検出部45は、ホモグラフィー変換の精度に依らず、高い精度で当該X軸及び当該Y軸を検出することができる。
Next, the
次に、校正部47は、ステップS195において検出されたパターンPNと、ステップS200において検出された原点の位置と、ステップS210において検出されたX軸及びY軸とに基づいて、撮像部座標系CCとロボット座標系RCとの対応付けを行い(ステップS220)、処理を終了する。具体的には、校正部47は、当該パターンPNと、当該原点の位置と、当該X軸及び当該Y軸とに基づいて、ロボット座標系RCと校正ボードCB上の位置を表す座標系である校正ボード座標系(この一例において、二次元座標系BC)とを対応付ける校正を行う。校正部47は、この校正の結果と、ロボット座標系RCと校正ボード座標系との対応付けの結果とに基づいて、撮像部座標系CCとロボット座標系RCとの対応付けを行う。
Next, the
このように、ロボット制御装置30は、撮像部10により撮像された撮像画像に含まれるマーカー候補から、それぞれが凸包の頂点に位置する4個以上である所定数のマーカーからなる基準パターンBPに整合する所定数のマーカー候補を検出する。これにより、ロボット制御装置30は、4個以上のマーカーに応じた位置を精度よく検出することができる。
As described above, the
<ロボットに所定の作業を行わせる際にロボット制御装置が行う処理>
以下、図17及び図18を参照し、ロボット20に所定の作業を行わせる際にロボット制御装置30が行う処理について説明する。
<Processing performed by the robot controller when the robot performs a predetermined work>
Hereinafter, with reference to FIGS. 17 and 18, processing performed by the
図17は、ロボット20に所定の作業を行わせる際におけるロボットシステム1の構成の一例を示す図である。図17に示した構成は、図1に示した構成と作業台TBに載置された物体が異なる。図17に示した構成では、作業台TBの上面には、校正ボードCBに代えて、対象物Oが載置されている。対象物Oは、例えば、製品に組み付けるプレート、ネジ、ボルト等の産業用の部品や部材である。なお、対象物Oは、産業用の部品や部材に代えて、日用品や生体等の他の物体であってもよい。図1に示した例では、対象物Oは、立方体形状の物体として表している。なお、対象物Oの形状は、立方体形状に代えて、他の形状であってもよい。
FIG. 17 is a diagram illustrating an example of the configuration of the
対象物Oが有する面のうち作業台TBの上面に接面している面に対向している面には、パターンPN2が設けられている。パターンPN2は、パターンPNからn個の黒丸BC1〜BCnが省略されたパターンである。すなわち、パターンPN2には、マーカーMK1〜マーカーMK5のそれぞれと、マーカーOPと、マーカーXP1と、マーカーXP2と、マーカーYP1と、マーカーYP2とが含まれる。なお、パターンPN2は、パターンPNと同じパターンであってもよい。 A pattern PN2 is provided on the surface of the object O that faces the surface that is in contact with the upper surface of the work table TB. The pattern PN2 is a pattern in which n black circles BC1 to BCn are omitted from the pattern PN. That is, the pattern PN2 includes each of the markers MK1 to MK5, the marker OP, the marker XP1, the marker XP2, the marker YP1, and the marker YP2. The pattern PN2 may be the same pattern as the pattern PN.
図17に示した例では、ロボット制御装置30がロボット20に行わせる所定の作業は、対象物Oを把持し、把持した対象物Oを図示しない給材領域に給材する作業である。ここで、図18を参照し、ロボット制御装置30がロボット20に所定の作業を行わせる処理について説明する。図18は、ロボット制御装置30がロボット20に所定の作業を行わせる処理の流れの一例を示すフローチャートである。なお、図17に示したフローチャートのステップS105〜ステップS195の処理は、図8に示したフローチャートのステップS105〜ステップS195の処理と同様の処理であるため説明を省略する。
In the example illustrated in FIG. 17, the predetermined operation that the
位置姿勢算出部49は、ステップS195において検出したパターンPN上の位置を表す座標系の原点の位置であって撮像部座標系CCにおける位置を検出する。そして、位置姿勢算出部49は、検出した当該位置に基づいて対象物Oのロボット座標系RCにおける位置を算出する(ステップS310)。
The position /
次に、位置姿勢算出部49は、ステップS195において検出したパターンPN上のX軸及びY軸であって撮像部座標系CCにおける当該X軸及び当該Y軸のそれぞれを検出する。そして、位置姿勢算出部49は、検出した当該X軸の方向及び当該Y軸の方向それぞれのロボット座標系RCにおける方向を対象物Oの姿勢として算出する(ステップS320)。
Next, the position /
次に、ロボット制御部51は、ステップS310において算出されたロボット座標系RCにおける対象物Oの位置と、ステップS320において算出されたロボット座標系RCにおける対象物Oの姿勢とに基づいて、ロボット20に所定の作業を行わせ(ステップS330)、処理を終了する。
Next, the
このように、ロボット制御装置30は、図18に示したフローチャートの処理により、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンPNが撮像部10により撮像された撮像画像に基づいてロボット20を動作させる。これにより、ロボット制御装置30は、4個以上のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業をロボット20に精度よく行わせることができる。
As described above, the
<実施形態の変形例1>
以下、図19及び図20を参照し、実施形態の変形例1について説明する。実施形態の変形例1では、ロボット制御装置30は、図8に示したステップS155の処理に代えて、図19に示したステップS510の処理を行う。図19は、ロボット制御装置30が校正を行う処理の流れの他の例を示すフローチャートである。なお、図19に示したステップS105〜ステップS105の処理と、ステップS160〜ステップS220の処理とのそれぞれは、図8に示したステップS105〜ステップS105の処理と、ステップS160〜ステップS220の処理とのそれぞれと同じ処理であるため説明を省略する。
<
Hereinafter,
ステップS510において、検出部45は、ステップS150において選択した第1組み合わせに含まれるマーカー候補の中から第1マーカーを特定する(ステップS510)。ここで、ステップS510の処理について説明する。検出部45は、当該第1組み合わせに含まれるマーカー候補の中から選択可能な2個のマーカー候補の組み合わせをマーカー候補対として抽出する。検出部45は、抽出したマーカー候補対のそれぞれ毎に、マーカー候補対に含まれる2個のマーカー候補間の距離を算出する。
In step S510, the
図20は、各マーカー候補対に含まれるマーカー候補間の距離であって検出部45により算出された距離の一例を示す図である。検出部45は、マーカー候補対毎に算出した距離のうち最も長い距離に対応するマーカー候補対と、マーカー候補対毎に算出した距離のうち2番目に長い距離に対応するマーカー候補対とを特定する。そして、検出部45は、特定した2つのマーカー候補対の両方に共通して含まれるマーカー候補を第1マーカーとして特定する。図20に示した例では、マーカー候補DP6とマーカー候補DP1とを含むマーカー候補対に対応する距離が最も長く、マーカー候補DP2とマーカー候補DP6とを含むマーカー候補対に対応する距離が2番目に長い。そして、これらのマーカー候補対の両方に共通して含まれるマーカー候補は、マーカー候補DP6である。従って、検出部45は、図20に示した例において、マーカー候補DP6を第1マーカーとして特定する。
FIG. 20 is a diagram illustrating an example of a distance calculated between the marker candidates included in each marker candidate pair and calculated by the
このように、ロボット制御装置30は、ステップS510の処理によって第1マーカーを特定するため、ステップS155の繰り返し処理を行う必要がなくなり、撮像部座標系CCとロボット座標系RCとの対応付けを行う校正に要する時間を短縮することができる。そして、ロボット制御装置30は、実施形態と同様の効果を得ることができる。
Thus, since the
<実施形態の変形例2>
以下、図21を参照し、実施形態の変形例2について説明する。実施形態の変形例2において、校正ボードCBには、マーカーXP1とマーカーOPとを結ぶ直線上に2以上のマーカーXP1が第1基準部分XP11として並べて配置されている。また、校正ボードCBには、マーカーXP2とマーカーOPとを結ぶ直線上に2以上のマーカーXP2が第1基準部分XP12として並べて配置されている。また、校正ボードCBには、マーカーYP1とマーカーOPとを結ぶ直線上に2以上のマーカーYP1が第2基準部分YP21として並べて配置されている。また、校正ボードCBには、マーカーYP2とマーカーOPとを結ぶ直線上に2以上のマーカーYP2が第2基準部分YP22として並べて配置されている。
<Modification 2 of Embodiment>
Hereinafter, a second modification of the embodiment will be described with reference to FIG. In the second modification of the embodiment, on the calibration board CB, two or more markers XP1 are arranged side by side as the first reference portion XP11 on a straight line connecting the marker XP1 and the marker OP. In the calibration board CB, two or more markers XP2 are arranged side by side as a first reference portion XP12 on a straight line connecting the markers XP2 and the marker OP. In the calibration board CB, two or more markers YP1 are arranged side by side as a second reference portion YP21 on a straight line connecting the markers YP1 and OP. In the calibration board CB, two or more markers YP2 are arranged side by side as a second reference portion YP22 on a straight line connecting the markers YP2 and OP.
図21は、実施形態の変形例2に係る校正ボードCBの一例を示す図である。図21に示した例では、第1基準部分XP11には、13個のマーカーXP1が一直線上に並べて配置されている。また、第1基準部分XP12には、13個のマーカーXP2が一直線上に並べて配置されている。また、第2基準部分YP11には、13個のマーカーYP1が一直線上に並べて配置されている。また、第2基準部分YP22には、13個のマーカーYP2が一直線上に並べて配置されている。 FIG. 21 is a diagram illustrating an example of the calibration board CB according to the second modification of the embodiment. In the example shown in FIG. 21, in the first reference portion XP11, 13 markers XP1 are arranged on a straight line. In the first reference portion XP12, 13 markers XP2 are arranged in a straight line. In the second reference portion YP11, 13 markers YP1 are arranged on a straight line. In the second reference portion YP22, 13 markers YP2 are arranged on a straight line.
実施形態の変形例2に係る校正ボードCBを用いた場合、検出部45は、第1基準部分XP11においてマーカーXP1が並べられている方向と、第1基準部分XP12においてマーカーXP2が並べられている方向との少なくとも一方をパターンPN上のX軸方向として検出する。また、当該場合、検出部45は、第2基準部分YP21においてマーカーYP1が並べられている方向と、第2基準部分YP22においてマーカーYP2が並べられている方向との少なくとも一方をパターンPN上のY軸方向として検出する。
When the calibration board CB according to the second modification of the embodiment is used, the
また、校正ボードCBに第1基準部分XP11、第1基準部分XP12、第2基準部分YP11、第2基準部分YP12が含まれている場合、ロボット制御装置30は、撮像部10により撮像された撮像画像に校正ボードCBの一部のみが含まれていたとしても、当該一部に基づいて、撮像部10が撮像可能な範囲内に校正ボードCBが有するパターンPNの全体が含まれるように撮像部10の光軸の方向を変化させることができる。ただし、この場合、撮像部10の光軸の方向を変化させる機構部が撮像部10に備えられている、又は撮像部10を移動させることが可能な移動部(例えば、ロボット20が備えるアームA)に撮像部10が備えられている必要がある。以下では、一例として、撮像部10の光軸の方向を変化させる機構部が撮像部10に備えられている場合について説明する。
When the calibration board CB includes the first reference portion XP11, the first reference portion XP12, the second reference portion YP11, and the second reference portion YP12, the
例えば、校正ボードCBのうちのマーカーMK1〜マーカーMK5の全部を含む範囲が撮像部10により撮像された撮像画像に含まれておらず、校正ボードCBのうちの第1基準部分XP11を含む範囲のみが当該撮像画像に含まれていた場合、ロボット制御装置30は、当該撮像画像から第1基準部分XP11を検出する。そして、ロボット制御装置30は、検出した第1基準部分XP11に含まれるマーカーXP1が並べられた方向に沿って撮像部10の光軸の方向を移動させる。この際、ロボット制御装置30は、当該光軸の移動量が所定の移動量になる毎に、撮像部10が撮像可能な範囲を撮像部10に撮像させる。ロボット制御装置30は、撮像部10が撮像した撮像画像に、校正ボードCBのうちのマーカーMK1〜マーカーMK5の全部を含む範囲が含まれた状態となるまで、このような当該光軸の移動を繰り返す。これにより、ロボット制御装置30は、撮像部10により撮像された撮像画像に校正ボードCBの一部のみが含まれていたとしても、当該一部に基づいて、撮像部10が撮像可能な範囲内に校正ボードCBが有するパターンPNの全体が含まれるように撮像部10の光軸の方向を変化させることができる。
For example, the range including all of the markers MK1 to MK5 in the calibration board CB is not included in the captured image captured by the
このように校正ボードCBが第1基準部分XP11、第1基準部分XP12、第2基準部分YP21、第2基準部分YP22のそれぞれを含むことにより、ロボット制御装置30は、パターンPN上のX軸及びY軸の誤検出を抑制することができる。また、実施形態の変形例2に係る校正ボードCBを用いた場合であっても、ロボット制御装置30は、実施形態と同様の効果を得ることができる。
As described above, the calibration board CB includes the first reference portion XP11, the first reference portion XP12, the second reference portion YP21, and the second reference portion YP22. Y axis misdetection can be suppressed. Further, even when the calibration board CB according to the second modification of the embodiment is used, the
なお、上記において説明した実施形態において、第1マーカーの大きさは、他のマーカーと比べて大きい構成であってもよい。また、第1マーカーの形状は、他のマーカーと異なる形状である構成であってもよい。また、第1マーカーの色は、他のマーカーと異なる色である構成であってもよい。これらにより、ロボット制御装置30は、第1マーカーを容易に検出することができる。
In the embodiment described above, the first marker may be larger in size than other markers. Further, the first marker may have a shape different from that of other markers. Moreover, the structure which is a color different from another marker may be sufficient as the color of a 1st marker. Thus, the
以上のように、校正ボードCBでは、4個以上のマーカー(この一例において、マーカーMK1〜マーカーMK5)のそれぞれは、回転対称性を有さない凸包(この一例において、凸包CH1)の頂点に位置する。これにより、校正ボードCBは、4個以上のマーカーに応じた位置を精度よく検出させることができる。 As described above, in the calibration board CB, each of the four or more markers (in this example, the markers MK1 to MK5) is the vertex of the convex hull (in this example, the convex hull CH1) that does not have rotational symmetry. Located in. Thereby, the calibration board CB can accurately detect positions corresponding to four or more markers.
また、校正ボードCBでは、4個以上のマーカーのそれぞれは、図心マーカーである。これにより、校正ボードCBは、4個以上の図心マーカーに応じた位置を精度よく検出させることができる。 In the calibration board CB, each of the four or more markers is a centroid marker. As a result, the calibration board CB can accurately detect positions corresponding to four or more centroid markers.
また、校正ボードCBでは、図心マーカーのそれぞれは、図心が3つ以上重なる図形を有する。これにより、校正ボードCBは、4個以上のマーカーであって図心が3つ以上重なる図形を有する図心マーカーを画像の中から誤りなく検出させることができる。 In the calibration board CB, each centroid marker has a figure in which three or more centroids overlap. Thereby, the calibration board CB can detect the centroid marker which has a figure which is four or more markers and three or more centroids overlap from an image without an error.
また、校正ボードCBでは、凸包における第1マーカー(この一例において、マーカーMK1)を含む辺の長さは、凸包における他の辺の長さよりも長い。これにより、校正ボードCBは、4個以上のマーカーに応じた位置を、第1マーカーを基準とすることによって効率よく検出させることができる。 In the calibration board CB, the length of the side including the first marker (in this example, the marker MK1) in the convex hull is longer than the length of the other side in the convex hull. Thereby, the calibration board CB can efficiently detect positions corresponding to four or more markers by using the first marker as a reference.
また、校正ボードCBは、凸包の内部に、原点(この一例において、マーカーOP)を備える。これにより、校正ボードCBは、4個以上のマーカーに応じた位置を原点によって、より精密に表すことができる。 The calibration board CB includes an origin (in this example, a marker OP) inside the convex hull. As a result, the calibration board CB can more accurately represent the positions corresponding to the four or more markers by the origin.
また、校正ボードCBでは、原点と第1基準部分(この一例において、マーカーXP1、マーカーXP2、第1基準部分XP11、第1基準部分XP12)とを通る直線と、原点と第2基準部分(この一例において、マーカーYP1、マーカーYP2、第2基準部分YP21、第2基準部分YP22)とを通る直線とは、直交する。これにより、校正ボードCBは、校正ボードの姿勢を第1基準部分と第2基準部分とによって、より精密に表すことができる。 Further, in the calibration board CB, a straight line passing through the origin and the first reference portion (in this example, the marker XP1, the marker XP2, the first reference portion XP11, the first reference portion XP12), the origin and the second reference portion (this In one example, a straight line passing through the marker YP1, the marker YP2, the second reference portion YP21, and the second reference portion YP22) is orthogonal. Thus, the calibration board CB can more accurately represent the attitude of the calibration board by the first reference portion and the second reference portion.
また、校正ボードCBでは、マーカーの数は5個である。これにより、校正ボードCBは、5個のマーカーに応じた位置を精度よく検出させることができる。 In the calibration board CB, the number of markers is five. As a result, the calibration board CB can accurately detect the positions corresponding to the five markers.
また、ロボット20は、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターン(この一例において、パターンPN)が撮像部(この一例において、撮像部10)により撮像された画像(この一例において、撮像画像)に基づいて動作する。これにより、ロボット20は、4個以上のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
In addition, the
また、ロボット20は、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて、ロボットの座標系(この一例において、ロボット座標系RC)と撮像部の座標系(この一例において、撮像部座標系CC)との校正が行われる。これにより、ロボット20は、撮像部の座標系における位置に応じた位置であってロボットの座標系における位置を精度よく算出することができる。
In addition, the
また、ロボット20は、それぞれが凸包の頂点に位置する4個以上の図心マーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボット20は、4個以上の図心マーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
Further, the
また、ロボット20は、図心が3つ以上重なる図形を有する図心マーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボット20は、4個以上のマーカーであって図心が3つ以上重なる図形を有する図心マーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
In addition, the
また、ロボット20は、凸包における第1マーカーを含む辺の長さが凸包における他の辺の長さよりも長い4つ以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボット20は、4個以上のマーカーに応じた位置を、撮像部により撮像された画像から第1マーカーを基準とすることによって効率よく検出し、検出した当該位置に基づいて所定の作業を精度よく行うことができる。
In addition, the
また、ロボット20は、それぞれが凸包の頂点に位置する4個以上のマーカーからなるパターンであって凸包の内部に原点を備えるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボット20は、凸包の内部に備えられた原点によって表された位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
The
また、ロボット20は、外部に第1基準部分及び第2基準部分を備えた凸包の頂点にそれぞれが位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボットは、校正ボードの姿勢を精度よく検出し、検出した当該姿勢に基づいて所定の作業を行うことができる。
In addition, the
また、ロボット20は、それぞれが凸包の頂点に位置する5個のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する。これにより、ロボット20は、5個のマーカーに応じた位置であって撮像部により撮像された画像から検出された位置に基づいて所定の作業を精度よく行うことができる。
Further, the
また、検出方法は、撮像部により撮像された画像に含まれるマーカーの候補から、それぞれが回転対称性を有さない凸包の頂点に位置する4個以上である所定数のマーカーからなる基準パターンに整合する所定数の当該候補を検出する。これにより、検出方法は、4個以上のマーカーに応じた位置を精度よく検出することができる。 In addition, the detection method includes a reference pattern composed of a predetermined number of markers, each of which is four or more located at the vertices of a convex hull that does not have rotational symmetry, from candidate markers included in the image captured by the imaging unit. A predetermined number of the candidates that match the above are detected. Thereby, the detection method can detect the position according to four or more markers accurately.
また、検出方法は、撮像部により撮像された画像に含まれるマーカーの候補から選択された所定数の当該候補からなる第1パターンをホモグラフィー変換した結果と基準パターンとの整合性に基づいて、所定数の当該候補を検出する。これにより、検出方法は、画像に含まれるマーカーの候補に間違ったマーカーが含まれる場合でも、4個以上のマーカーから構成されるパターンを正しく検出することができる。 In addition, the detection method is based on the consistency between the reference pattern and the result of homography conversion of the first pattern including a predetermined number of candidates selected from the marker candidates included in the image captured by the imaging unit. A predetermined number of the candidates are detected. As a result, the detection method can correctly detect a pattern composed of four or more markers even when an incorrect marker is included in the marker candidates included in the image.
また、検出方法は、基準パターンとの整合性が、第1パターンをホモグラフィー変換した結果と基準パターンとの差によって表される。これにより、検出方法は、画像に含まれるマーカーの候補に間違ったマーカーが含まれる場合でも、第1パターンをホモグラフィー変換した結果と基準パターンとの差によって表される整合性に基づいて、4個以上のマーカーから構成されるパターンを正しく検出することができる。 In the detection method, the consistency with the reference pattern is expressed by the difference between the result of homography conversion of the first pattern and the reference pattern. As a result, even if the marker candidate included in the image includes an incorrect marker, the detection method is based on the consistency represented by the difference between the result of homography conversion of the first pattern and the reference pattern. A pattern composed of more than one marker can be detected correctly.
以上、この発明の実施形態を、図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない限り、変更、置換、削除等されてもよい。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and changes, substitutions, deletions, and the like are possible without departing from the gist of the present invention. May be.
また、以上に説明した装置(例えば、ロボット制御装置30)における任意の構成部の機能を実現するためのプログラムを、コンピューター読み取り可能な記録媒体に記録し、そのプログラムをコンピューターシステムに読み込ませて実行するようにしてもよい。なお、ここでいう「コンピューターシステム」とは、OS(Operating System)や周辺機器等のハードウェアを含むものとする。また、「コンピューター読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD(Compact Disk)−ROM等の可搬媒体、コンピューターシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピューター読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバーやクライアントとなるコンピューターシステム内部の揮発性メモリー(RAM)のように、一定時間プログラムを保持しているものも含むものとする。 Further, a program for realizing the function of an arbitrary component in the above-described apparatus (for example, robot control apparatus 30) is recorded on a computer-readable recording medium, and the program is read into a computer system and executed. You may make it do. Here, the “computer system” includes hardware such as an OS (Operating System) and peripheral devices. The “computer-readable recording medium” refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD (Compact Disk) -ROM, or a storage device such as a hard disk built in the computer system. . Furthermore, “computer-readable recording medium” means a volatile memory (RAM) inside a computer system that becomes a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In addition, those holding programs for a certain period of time are also included.
また、上記のプログラムは、このプログラムを記憶装置等に格納したコンピューターシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピューターシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記のプログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、上記のプログラムは、前述した機能をコンピューターシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。
In addition, the above program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
Further, the above program may be for realizing a part of the functions described above. Further, the program may be a so-called difference file (difference program) that can realize the above-described functions in combination with a program already recorded in the computer system.
1…ロボットシステム、10…撮像部、20…ロボット、30…ロボット制御装置、31…CPU、32…記憶部、33…入力受付部、34…通信部、35…表示部、36…制御部、41…撮像制御部、43…画像取得部、45…検出部、47…校正部、49…位置姿勢算出部、51…ロボット制御部
DESCRIPTION OF
Claims (18)
前記4個以上のマーカーのそれぞれは、回転対称性を有さない凸包の頂点に位置する、
校正ボード。 With four or more markers,
Each of the four or more markers is located at the apex of a convex hull that does not have rotational symmetry,
Calibration board.
請求項1に記載の校正ボード。 Each of the four or more markers is a centroid marker,
The calibration board according to claim 1.
請求項2に記載の校正ボード。 Each of the centroid markers has a figure in which three or more centroids overlap.
The calibration board according to claim 2.
請求項1から3のうちいずれか一項に記載の校正ボード。 The length of the side including the first marker in the convex hull is longer than the length of the other side in the convex hull.
The calibration board according to any one of claims 1 to 3.
請求項1から4のうちいずれか一項に記載の校正ボード。 An origin is provided inside the convex hull,
The calibration board according to any one of claims 1 to 4.
前記原点と前記第1基準部分とを通る直線と、前記原点と前記第2基準部分とを通る直線とは、直交する、
請求項5に記載の校正ボード。 A first reference portion and a second reference portion are provided outside the convex hull,
A straight line passing through the origin and the first reference portion is orthogonal to a straight line passing through the origin and the second reference portion.
The calibration board according to claim 5.
請求項1から6のうちいずれか一項に記載の校正ボード。 The number of the markers is five.
The calibration board according to any one of claims 1 to 6.
前記可動部は、それぞれが回転対称性を有さない凸包の頂点に位置する4個以上のマーカーからなるパターンが撮像部により撮像された画像に基づいて動作する、
ロボット。 With moving parts,
The movable part operates based on an image in which a pattern made of four or more markers each positioned at the apex of a convex hull that does not have rotational symmetry is imaged by the imaging unit.
robot.
請求項8に記載のロボット。 Based on the image obtained by imaging the pattern by the imaging unit, calibration of the coordinate system of the robot and the coordinate system of the imaging unit is performed.
The robot according to claim 8.
請求項9に記載のロボット。 Each of the four or more markers is a centroid marker,
The robot according to claim 9.
請求項10に記載のロボット。 Each of the centroid markers has a figure in which three or more centroids overlap.
The robot according to claim 10.
請求項8から11のうちいずれか一項に記載のロボット。 The length of the side including the first marker in the convex hull is longer than the length of the other side in the convex hull.
The robot according to any one of claims 8 to 11.
請求項8から12のうちいずれか一項に記載のロボット。 An origin is provided inside the convex hull,
The robot according to any one of claims 8 to 12.
前記原点と前記第1基準部分とを通る直線と、
前記原点と前記第2基準部分とを通る直線とは、直交する、
請求項13に記載のロボット。 A first reference portion and a second reference portion are provided outside the convex hull,
A straight line passing through the origin and the first reference portion;
A straight line passing through the origin and the second reference portion is orthogonal to
The robot according to claim 13.
請求項8から14のうちいずれか一項に記載のロボット。 The number of the markers is five.
The robot according to any one of claims 8 to 14.
検出方法。 The predetermined number that matches a reference pattern composed of a predetermined number of markers that are four or more positioned at the vertices of a convex hull that does not have rotational symmetry, from candidate markers included in the image captured by the imaging unit Detecting the candidate of
Detection method.
請求項16に記載の検出方法。 Based on the consistency between the reference pattern and the result of homography conversion of the first pattern of the predetermined number of candidates selected from the marker candidates included in the image captured by the imaging unit, the predetermined number of Detecting the candidate,
The detection method according to claim 16.
請求項17に記載の検出方法。 The consistency is represented by a difference between the result of the homography transformation and the reference pattern.
The detection method according to claim 17.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016130883A JP2018001333A (en) | 2016-06-30 | 2016-06-30 | Calibration board, robot and detection method |
US15/637,094 US10551821B2 (en) | 2016-06-30 | 2017-06-29 | Robot, robot control apparatus and robot system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016130883A JP2018001333A (en) | 2016-06-30 | 2016-06-30 | Calibration board, robot and detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018001333A true JP2018001333A (en) | 2018-01-11 |
JP2018001333A5 JP2018001333A5 (en) | 2019-05-23 |
Family
ID=60947126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016130883A Withdrawn JP2018001333A (en) | 2016-06-30 | 2016-06-30 | Calibration board, robot and detection method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018001333A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111890371A (en) * | 2019-03-29 | 2020-11-06 | 牧今科技 | Method for verifying and updating calibration information for robot control and control system |
US10906184B2 (en) | 2019-03-29 | 2021-02-02 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
JP2021066008A (en) * | 2019-10-18 | 2021-04-30 | 株式会社Mujin | Method and control system for verifying and updating calibration information for robot control |
US11014241B2 (en) | 2019-03-29 | 2021-05-25 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06175715A (en) * | 1992-12-03 | 1994-06-24 | Fanuc Ltd | Visual sensor coordinate system setting jig and setting method therefor |
JPH07254037A (en) * | 1994-03-14 | 1995-10-03 | Nippondenso Co Ltd | Two-dimensional code |
JP2004054530A (en) * | 2002-07-18 | 2004-02-19 | Sharp Corp | Device, method, and program for reading two-dimensional code and recording medium for this program |
-
2016
- 2016-06-30 JP JP2016130883A patent/JP2018001333A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06175715A (en) * | 1992-12-03 | 1994-06-24 | Fanuc Ltd | Visual sensor coordinate system setting jig and setting method therefor |
JPH07254037A (en) * | 1994-03-14 | 1995-10-03 | Nippondenso Co Ltd | Two-dimensional code |
JP2004054530A (en) * | 2002-07-18 | 2004-02-19 | Sharp Corp | Device, method, and program for reading two-dimensional code and recording medium for this program |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111890371A (en) * | 2019-03-29 | 2020-11-06 | 牧今科技 | Method for verifying and updating calibration information for robot control and control system |
US10906184B2 (en) | 2019-03-29 | 2021-02-02 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
CN111890371B (en) * | 2019-03-29 | 2021-05-04 | 牧今科技 | Method for verifying and updating calibration information for robot control and control system |
US11014241B2 (en) | 2019-03-29 | 2021-05-25 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
US11590656B2 (en) | 2019-03-29 | 2023-02-28 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
US11883964B2 (en) | 2019-03-29 | 2024-01-30 | Mujin, Inc. | Method and control system for verifying and updating camera calibration for robot control |
JP2021066008A (en) * | 2019-10-18 | 2021-04-30 | 株式会社Mujin | Method and control system for verifying and updating calibration information for robot control |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7284953B2 (en) | Robotic system with advanced scanning mechanism | |
US10551821B2 (en) | Robot, robot control apparatus and robot system | |
US9652660B2 (en) | Control system, robot system, and control method | |
JP2018001333A (en) | Calibration board, robot and detection method | |
JP2014013146A5 (en) | ||
US20170277167A1 (en) | Robot system, robot control device, and robot | |
JP6885856B2 (en) | Robot system and calibration method | |
WO2022061673A1 (en) | Calibration method and device for robot | |
JP2018136896A (en) | Information processor, system, information processing method, and manufacturing method of article | |
JP2016078195A (en) | Robot system, robot, control device and control method of robot | |
JP6699097B2 (en) | Robot and control device | |
JP6926906B2 (en) | Robot system, control device and robot control method | |
JP2018169660A (en) | Object attitude detection apparatus, control apparatus, robot and robot system | |
US20180215044A1 (en) | Image processing device, robot control device, and robot | |
JP6561757B2 (en) | Image processing apparatus, robot, and marker | |
CN110298879B (en) | Method and device for determining pose of object to be grabbed and electronic equipment | |
JP2018017653A (en) | Three-dimensional measuring device, robot, robot controlling device, and robot system | |
JP2015182212A (en) | Robot system, robot, control device, and control method | |
JP2018017610A (en) | Three-dimensional measuring device, robot, robot controlling device, and robot system | |
Fan et al. | An automatic robot unstacking system based on binocular stereo vision | |
JP2005028468A (en) | Method for identifying position and posture of robot in visual coordinate system, and method and apparatus for coordinate transformation | |
JP2017078877A (en) | Image processing device, robot, and robot system | |
CN112541936A (en) | Method and system for determining visual information of operating space of actuating mechanism | |
CN111947570B (en) | Monocular vision measurement method and device for attitude of mechanical arm and electronic equipment | |
WO2022124232A1 (en) | Image processing system and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20181026 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190410 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190410 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200324 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200407 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20200520 |