3D model generation system, generation method, and program
The three-dimensional model generation system addresses the challenge of automatically setting coordinate axes by using a flexible gripping end effector and deformation sensor to determine gripping positions and adjust the reference coordinate system based on object symmetry, enabling efficient and accurate three-dimensional model creation.
Patent Information
- Application Number
- JP2022062507
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-04-04
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2042-04-04
AI Technical Summary
Existing methods for generating three-dimensional models face challenges in automatically setting coordinate axes, making it difficult to efficiently create models of various objects, especially when considering the symmetry of the objects.
A three-dimensional model generation system that utilizes an end effector with a flexible gripping part, a deformation sensor, and a calculation unit to determine a gripping position based on surface normal directions, allowing for the setting of a reference coordinate system that accounts for object symmetry, and includes a three-dimensional shape measuring device to scan and rotate the object for accurate model generation.
Enables efficient generation of three-dimensional models in an appropriate coordinate system by accurately determining gripping positions and adjusting the reference coordinate system based on object symmetry, facilitating stable and efficient scanning and measurement.
Smart Images

Figure 0007571760000003 
Figure 0007571760000004 
Figure 0007571760000005
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a three-dimensional model generation system, a generation method, and a program. [Background technology]
[0002] Patent Document 1 discloses an information processing device that calculates the position and orientation of an object. The information processing device of Patent Document 1 acquires a three-dimensional shape model (edge information, point cloud information) from distance point cloud information of the object, and determines rotational symmetry around a first axis. The information processing device then determines inversion symmetry around a second axis different from the first axis. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-85781 [Non-patent literature]
[0004] [Non-Patent Document 1] https: / / arxiv.org / abs / 1706.09911 Summary of the Invention [Problem to be solved by the invention]
[0005] In Patent Document 1, rotational symmetry around the first axis and inversion symmetry around the second axis are determined. Therefore, the coordinate axes must be set by a human, and it is difficult to set the coordinate axes automatically. Therefore, it is difficult to efficiently generate 3D models of various objects. In this way, a 3D model can be created in a reference coordinate system that takes into account the symmetry of the object.
[0006] In generating a 3D shape model, for example, by setting coordinate axes that take into account the symmetry of an object, it is possible to annotate appropriate information. Therefore, it is possible to generate learning data to which position and orientation information regarding the position and orientation of an object is added. It is possible to generate an object estimator by supervised learning using the object position and orientation information as the correct answer label (teaching data).
[0007] The present disclosure has been made to solve such problems, and provides a 3D model generation system, generation method, and program that can efficiently generate a 3D model in an appropriate coordinate system. [Means for solving the problem]
[0008] The three-dimensional model generation system in this embodiment includes an end effector having a flexible gripping portion for gripping an object, a deformation sensor for detecting the deformed shape of the gripping portion while gripping the object, a calculation unit for calculating the normal direction of the surface of the object from the surface shape data of the object, a determination unit for determining the gripping position of the object by the end effector based on the normal direction, and a coordinate system setting unit for setting a reference coordinate system in accordance with the deformed shape of the gripping portion.
[0009] The above-mentioned 3D model generation system may further include a 3D shape measuring instrument that measures the 3D shape of the object by scanning the object, and a drive control unit that drives the end effector so that the end effector places the object within the scanning range of the 3D shape measuring instrument.
[0010] In the above-mentioned 3D model generation system, the 3D shape measuring instrument may be equipped with a depth sensor that measures the distance to the object, and the orientation of the object relative to the depth sensor may be changed around an axis of the reference coordinate system.
[0011] In the above-mentioned 3D model generation system, the 3D shape measuring instrument may further include a table that rotates the object placed on it, and the end effector may place the object on the table so that the rotation axis of the table coincides with the axis of the reference coordinate system.
[0012] The above-mentioned 3D model generation system may further include a surface shape sensor that measures surface shape data of the object before the end effector grasps the object, and a point in the surface shape data where a cross section is most nearly circular may be selected as the grasping position of the end effector.
[0013] In the above three-dimensional model generating system, the symmetry of the object may be determined with respect to each axis of the reference coordinate system, and the axes of the reference coordinate system may be modified according to the result of the symmetry determination.
[0014] The method for generating a three-dimensional model in this embodiment calculates the normal direction of the surface of an object based on surface shape data of the object, sets a gripping position of the object based on the normal direction, an end effector having a flexible gripping portion grips the object at the gripping position, detects the deformed shape of the gripping portion when gripping the object, and sets a reference coordinate system based on the deformed shape of the gripping portion.
[0015] In the above-mentioned method for generating a three-dimensional model, the end effector may be driven to place the object within a scanning range of a three-dimensional shape measuring instrument, and the three-dimensional shape of the object may be measured by the three-dimensional shape measuring instrument scanning the object.
[0016] In the above-mentioned method for generating a 3D model, the 3D shape measuring instrument may be equipped with a depth sensor that measures the distance to the object, and the orientation of the object relative to the depth sensor may be changed around an axis of the reference coordinate system.
[0017] In the above-mentioned method for generating a three-dimensional model, the three-dimensional shape measuring instrument may further include a table for rotating the object placed on it, and the end effector may place the object on the table so that the rotation axis of the table coincides with the axis of the reference coordinate system.
[0018] In the above-mentioned method for generating a three-dimensional model, a surface shape sensor measures surface shape data of the object before the end effector grasps the object, A location in the surface shape data where a cross section is most similar to a circle may be selected as the gripping position of the end effector.
[0019] In the above three-dimensional model generating method, symmetry of the object with respect to each axis of the reference coordinate system may be determined, and the axes may be modified in accordance with the result of the determination of the symmetry.
[0020] The program in this embodiment causes a computer to execute the steps of: calculating a normal direction of the surface of an object in accordance with surface shape data of the object; setting a gripping position of the object based on the normal direction; controlling an end effector having a flexible gripping portion so that the end effector grips the object at the gripping position; acquiring deformed shape data that detects the deformed shape of the gripping portion when the object is gripped; and setting a reference coordinate system in accordance with the deformed shape data of the gripping portion.
[0021] The present disclosure makes it possible to provide a 3D model generation system, generation method, and program that can efficiently generate a 3D model in an appropriate coordinate system. [Brief description of the drawings]
[0022] [Figure 1] FIG. 1 is a schematic diagram showing a system configuration. [Diagram 2] FIG. 2 is a top view illustrating a schematic configuration of an end effector. [Diagram 3]FIG. 2 is a block diagram showing a configuration of a processing device. [Figure 4] 4 is a flowchart showing a method for generating a three-dimensional model according to the present embodiment. [Diagram 5] 4 is a flowchart showing a method for generating a three-dimensional model according to the present embodiment. [Figure 6] 13 is a flowchart showing a process for determining rotational symmetry. [Figure 7] 1 is a diagram for explaining the cross-sectional shape Sc and r(θ) of the convex hull of an object. [Figure 8] 1 is a graph showing r'(θ) and its Fourier transform. [Figure 9] 13 is a graph showing the difference between r(θ) and r(θ+ωmax). [Figure 10] 13 is a flowchart showing a process of determining plane symmetry. [Figure 11] 13 is a flowchart showing a process of determining plane symmetry. [Figure 12] 13A to 13C are diagrams showing cross-sectional shapes in a process of determining plane symmetry. [Figure 13] 13A and 13B are diagrams for explaining a process of correcting an axis in a process of determining plane symmetry. [Figure 14] 2 is a block diagram showing an example of a hardware configuration of a processing device 100. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] The present invention will be described below through embodiments of the invention, but the invention according to the claims is not limited to the following embodiments. Furthermore, not all of the configurations described in the embodiments are necessarily essential as means for solving the problems.
[0024] In recent years, machine learning models have been used as estimators for estimating the position and orientation of objects. In order to generate such estimators using machine learning, it is necessary to collect a large amount of training data. The training data may include not only images captured by a camera, but also synthetic images generated by simulation.
[0025] A renderer or simulator generates a synthetic image from a three-dimensional model (also called a three-dimensional shape model or 3D model) that shows the three-dimensional shape of an object. By using a simulator or similar, it is possible to easily generate a large number of synthetic images in which the position and orientation of an object are changed. Furthermore, a simulator or similar can annotate labels such as position and orientation on the synthetic images.
[0026] To create a 3D model, sensors such as a stereo camera and a depth sensor are used. Sensors The system measures point cloud data of an object. The point cloud data includes information on the position coordinates of each point in an XYZ three-dimensional Cartesian coordinate system, for example. In addition, a three-dimensional model can be formed by converting the point cloud data into edge data, mesh data, surface data, or the like.
[0027] A three-dimensional model generating system and method according to the present embodiment will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a system 1. The system 1 includes a processing device 100, a three-dimensional shape measuring device 200, an end effector 300, an arm mechanism 400, and a distance measuring sensor 500. The system 1 generates a three-dimensional model indicating the three-dimensional shape of an object O. The processing device 100 may also perform processing for determining the symmetry of the object O.
[0028] The end effector 300 is a gripping mechanism (robot hand) that grips an object. The end effector 300 can release the gripped object. The end effector 300 has a flexible gripping portion. Specifically, the portion of the end effector 300 that comes into contact with the object O is formed of a flexible elastic body or the like. The configuration of the end effector 300 will be described later. The end effector 300 is attached to the tip of an arm mechanism 400.
[0029] The arm mechanism 400 is a drive mechanism that drives the end effector 300. The arm mechanism 400 is a robot arm having multiple joints. The arm mechanism 400 can change the position and posture of the object O held by the end effector 300. For example, the arm mechanism 400 changes the position and posture of the object O by changing the position and posture of the end effector 300. The arm mechanism 400 can move the end effector 300 to a holding position of the object O. Furthermore, when the end effector 300 holds the object O, the arm mechanism 400 can move the object O to a desired position. The positional relationship between the arm mechanism 400 and a three-dimensional shape measuring instrument 200 described later is known.
[0030] For example, the arm mechanism 400 and the end effector 300 can place the object O on the table 210. After the end effector 300 grips the object O, the arm mechanism 400 moves the end effector 300. This causes the object O to move onto the table 210. With the object O in contact with the placement surface of the table 210, the end effector 300 releases its grip. This allows the arm mechanism 400 and the end effector 300 to move the object O onto the table 210.
[0031] The end effector 300 has a flexible gripping portion. When the end effector 300 grips an object O, the gripping portion is deformed. The end effector 300 has a built-in sensor for measuring the deformed shape of the gripping portion. As the end effector 300, for example, one described in Non-Patent Document 1 below can be used. https: / / arxiv.org / abs / 1706.09911
[0032] 2 is a schematic diagram showing an example of an end effector 300. The end effector 300 includes a main body 311, a base 313, a gripping portion 314, a claw portion 315, a deformation sensor 316, and an actuator 317.
[0033] A pair of claws 315 are rotatably provided on the main body 311. The claws 315 are a gripper mechanism that is driven to grip the object O. Here, the end effector 300 is a two-finger type having two claws 315. Of course, the end effector 300 may be provided with three or more fingers. The end effector 300 is not limited to a gripper mechanism having fingers.
[0034] A gripping portion 314 is attached to the tip of each of the two claws 315. The gripping portion 314 is fixed to the claws 315 via the base portion 313. The pair of gripping portions 314 are arranged to sandwich the object O from both sides. The object O is arranged between the two gripping portions 314. For example, in FIG. 2, one gripping portion 314 is arranged on the right side of the object O, and the other gripping portion 314 is arranged on the left side of the object O. The gripping portion 314 is formed of a resin film or sheet. Therefore, the gripping portion 314 deforms according to the shape of the object O at the gripping position. In other words, the gripping portion 314 deforms according to the shape of the object O at the contact point with the object O.
[0035] The main body 311 is attached to the arm mechanism 400 shown in FIG. 1. The main body 311 is provided with an actuator 317 for driving the two claws 315. The actuator 317 drives the claws 315 in the direction of the arrow so that the tip sides of the two claws 315 move closer to each other or away from each other. The actuator 317 grips the object O in a pinched state between the two claws 315. When the end effector 300 performs a gripping operation to grip the object O, the actuator 317 drives the claws 315 so that the pair of claws 315 moves closer to each other. This allows the gripping unit 314 to come into contact with the object O and pinch the object O. When a release operation to release the grip of the object O is performed, the actuator 317 drives the claws 315 so that the pair of claws 315 moves away from each other. This allows the gripping unit 314 to move away from the object O, thereby releasing the object O.
[0036] Further, a deformation sensor 316 is attached to the base portion 313. The deformation sensor 316 detects the deformed shape of the grip portion 314. The deformation sensor 316 is built in between the grip portion 314 and the base portion 313. For example, the grip portion 314 is formed of a flexible film. The grip portion 314 is attached to the base portion 313 across a space. The space between the base portion 313 and the grip portion 314 is hollow, and the deformation sensor 316 is provided in the hollow space.
[0037] Deformation sensor 316 is an optical sensor such as a camera. A pattern or the like that can be detected by deformation sensor 316 is provided on the surface of grip portion 314 facing base portion 313. For example, grip portion 314 has a point cloud pattern that is arranged two-dimensionally formed thereon.
[0038] Deformation sensor 316 captures an image of the point cloud pattern provided on gripping portion 314. The positional relationship of each point in the captured image changes due to deformation of gripping portion 314. That is, the position of each point in the captured image changes according to the amount of deformation of gripping portion 314. Therefore, by capturing an image of the point cloud pattern of gripping portion 314, the deformed shape of gripping portion 314 can be detected. Grip portion 314 detects the outer shape of the contact point where it is in contact with object O. Deformation sensor 316 can measure the shape of only the contact point of object O, that is, a partial shape.
[0039] Returning to the explanation of FIG. 1, the three-dimensional shape measuring instrument 200 is an instrument for measuring the three-dimensional shape of an object O. The three-dimensional shape measuring instrument 200 is, for example, a three-dimensional scanner. The three-dimensional shape measuring instrument 200 includes a table 210 and a depth sensor 220. The table 210 has a mounting surface that is parallel to a horizontal plane. A user or a robot places the object O to be measured on the table 210.
[0040] The depth sensor 220 measures the distance (depth) to the object O on the table 210. For example, the depth sensor 220 is a LiDAR, a stereo camera, or a depth camera, and captures a depth image. The table 210 rotates the object O around a rotation axis parallel to the vertical direction. Then, while the table 210 is rotating the object O, the depth sensor 220 measures the distance to the surface of the object O.
[0041] This allows the three-dimensional shape measuring instrument 200 to measure measurement data indicating the three-dimensional shape of the entire circumference of the object O. The measurement data includes multiple distance measurement data indicating the distance from the depth sensor 220 to the object O. Since the object O can be measured while the table 210 is rotating, it is possible to measure the distance to the surface of the object O from any direction. Furthermore, in order to measure the shape of the bottom surface or top surface of the object O, the orientation of the object O on the table 210 may be changed and the three-dimensional shape measuring instrument 200 may perform measurements.
[0042] Three-dimensional shape data of an object is obtained based on the detection result of the depth sensor 220. That is, the depth sensor 220 obtains the three-dimensional shape data by detecting the distance to the surface of the object. The three-dimensional shape data is a depth image showing the surface shape of the object O, that is, the boundary between the object O and space.
[0043] The measurement data measured by the three-dimensional shape measuring instrument 200 is, for example, point cloud data having a plurality of points. Each point includes information of three-dimensional coordinates in the sensor coordinate system of the three-dimensional shape measuring instrument 200. The measurement data may also be mesh data. The mesh data is composed of a triangular mesh (tri-mesh) connecting three adjacent points or a quadrangular mesh (quad-mesh) connecting four adjacent points. The three-dimensional shape measuring instrument 200 outputs the measurement data to the processing device 100.
[0044] The distance measuring sensor 500 measures the distance to the object O in order to measure the surface shape of the object O. The distance measuring sensor 500 is a lidar, a laser range finder, a depth camera, an ultrasonic sensor, a stereo camera, or the like. Data measured by the distance measuring sensor 500 is surface shape data. The distance measuring sensor 500 measures surface shape data indicating the surface shape of at least a portion of the object O. The surface shape data is not limited to data indicating the entire surface shape of the object O, but may be data indicating the surface shape of a portion. It is possible to measure the surface shape of the object O for which there is no CAD data, etc.
[0045] The processing device 100 is an information processing device of a personal computer. For example, the processing device 100 includes a memory, a processor, various interfaces, an input device, an output device, a monitor, and the like. The processor of the processing device 100 executes a program stored in the memory to perform processing described below. Furthermore, the processing device 100 is an information processing device capable of wireless or wired communication.
[0046] The processing device 100 acquires surface shape data from the distance measuring sensor 500. The processing device 100 acquires three-dimensional shape data from the three-dimensional shape measuring device 200. Then, the processing device 100 sets a coordinate system for the three-dimensional shape data and creates a three-dimensional model. Furthermore, the processing device 100 controls the arm mechanism 400 and the end effector 300.
[0047] The processing device 100 will be described in detail with reference to Fig. 3. Fig. 3 is a control block diagram showing the configuration of the processing device 100. The processing device 100 includes a surface shape data acquisition unit 101, a calculation unit 102, a gripping position setting unit 103, and a drive control unit 105. The processing device 100 further includes a measurement data acquisition unit 110, a coordinate system setting unit 120, a first determination unit 130, a second determination unit 140, a third determination unit 150, and a correction unit 160.
[0048] (Acquisition of 3D shape data) First, a process for acquiring three-dimensional shape data of an object O will be described. A surface shape data acquisition unit 101 acquires surface shape data measured by a distance measurement sensor 500. The surface shape data is data that indicates a partial shape of the object O. The surface shape data is acquired by the distance measurement sensor 500. 500 From object O The surface shape data includes data indicating distances to a plurality of points on the surface. The surface shape data is, for example, point cloud data or mesh data.
[0049] The calculation unit 102 calculates the normal direction of the surface of the object O from the surface shape data. Then, the calculation unit 102 obtains the distribution of the normal directions of the surface of the object O. That is, the calculation unit 102 calculates the normal at each point of the object O. The surface shape data is, for example, point cloud data or mesh data. The calculation unit 102 can obtain the normal direction from the point cloud data or mesh data. The normal is a direction perpendicular to the surface of the object O. The normal direction differs depending on the position of the object O.
[0050] The grip position setting unit 103 sets a grip position of the object O by the end effector 300 based on the normal direction. The grip position setting unit 103 searches for an optimal grip position based on the distribution of the normal directions.
[0051] The drive control unit 105 controls the end effector 300 and the arm mechanism 400 so that the end effector 300 grips the object O at the gripping position. The drive control unit 105 outputs command values and the like to each motor of the end effector 300 and the arm mechanism 400. In this manner, the end effector 300 can grip the object O at the gripping position set by the gripping position setting unit 103. At the gripping position of the object O, the claw portion 315 is driven and the gripping portion 314 pinches the object O.
[0052] For example, the gripping position setting unit 103 determines a cross section (also called a gripping cross section) that is the gripping position of the object O based on the distribution of the normal direction. The gripping position of the object O can be the position where the outer shape (outline) of the cross section of the object O is closest to a circle. In other words, the gripping position setting unit 103 or the object O sets the cross section that is closest to a circle as the gripping position (gripping cross section).
[0053] Specifically, as shown in Non-Patent Document 1, the grip position setting unit 103 searches for an antipodal point of the object O and outputs a candidate grip posture. The antipodal point is a point on the opposite side of the object O from a certain point on the object O, passing through the center of the object O. The grip position setting unit 103 pairs the object O with an arbitrary point and its antipodal point, and obtains their normal directions. For each candidate, a point cloud normal on a plane is calculated, and a point that can be best fitted to a circle is selected as the grip position and posture. When the cross section is circular, the normal directions of the two paired points are parallel. Therefore, by obtaining the amount of deviation of the normal directions of the two paired points, a cross section close to a circle can be searched for. The grip position setting unit 103 sets the grip position of the object O based on the surface shape data.
[0054] The drive control unit 115 drives the arm mechanism 400 so that the end effector 300 moves to the gripping position. For example, the drive control unit 115 outputs a control command value to a motor that drives each joint of the arm mechanism 400. As a result, the end effector 300 moves on a plane passing through the gripping cross section. In the gripping cross section, grippers 314 are disposed on both sides of the object O. Then, the drive control unit 105 drives the actuators 317 of the end effector. As a result, as shown in FIG. 2, the grippers 314 come into contact with the object O and grip the object O. The grippers 314 come into contact with the object O in the gripping cross section.
[0055] 2 pinches the object O with the cross section that is closest to a circle as the gripping position. The end effector 300 can stably grip the object O. The end effector 300 can grip the object O in a stable position and posture.
[0056] The coordinate system setting unit 120 sets an initial reference coordinate system for the three-dimensional model of the object O. The coordinate system setting unit 120 sets an XYZ three-dimensional orthogonal coordinate system as the initial reference coordinate system. The coordinate system setting unit 120 sets an origin and directions of the X-axis, Y-axis, and Z-axis for the three-dimensional model. The X-axis, Y-axis, and Z-axis are mutually orthogonal directions.
[0057] The coordinate system setting unit 120 sets an initial reference coordinate system based on the deformed shape data from the deformation sensor 316. One axis of the coordinate system is perpendicular to the grasping cross section. In the grasping cross section, the axis passes through the centers of the two grasping parts 314.
[0058] The shape of the object O in the gripped cross section is obtained from the deformed shape of the gripping unit 314. In the gripped cross section, the object O has a shape close to a circle. The coordinate system setting unit 120 sets an initial reference coordinate system so that the axis of the initial reference coordinate system passes through the center or center of gravity of the object O. In other words, the center (origin) of the initial reference coordinate system is made to coincide with the center (center of gravity) of the gripped cross section. For example, if the object O is rotationally symmetric, the axis of symmetry of the object O can be made to coincide with the axis of the initial reference coordinate system.
[0059] Then, the drive control unit 105 controls the arm mechanism 400 and the end effector 300 so as to place the object O in the scan range of the three-dimensional shape measuring instrument 200. Under the control of the drive control unit 105, the arm mechanism 400 and the end effector 300 place the object O on the table 210. Specifically, the arm mechanism 400 moves the object O so as to align the axis of the initial reference coordinate system with the center of the scan range. For example, as shown in FIG. 1, the axis of the initial reference coordinate system is a central axis passing through the center or center of gravity of the object O. Therefore, the drive control unit 105 controls the arm mechanism 400 and the end effector 300 so that the central axis coincides with the rotation axis of the table. Then, the three-dimensional shape measuring instrument 200 rotates the table 210 to measure the three-dimensional shape of the object O.
[0060] The center position of the object O can be aligned with the center of the scan range in a posture that is as close as possible to the posture when the object O is grasped. The number of times the object O needs to be repositioned for 3D scanning by the 3D shape measuring instrument 200 can be reduced. For example, it is possible to prevent a part of the object O from going out of the scan range at any scan angle (rotation angle) of the table 210. Furthermore, the 3D shape measuring instrument 200 can perform 3D measurement stably and efficiently. A 3D model in an appropriate coordinate system can be generated.
[0061] The measurement data acquisition unit 110 acquires the measurement data measured by the three-dimensional shape measuring instrument 200. As described above, the measurement data is point cloud data or mesh data indicating the three-dimensional shape of the object. That is, the processing device 100 acquires three-dimensional model data (three-dimensional data) indicating the three-dimensional shape. Furthermore, the measurement data is acquired in a coordinate system set by the coordinate system setting unit 120. That is, the measurement data is represented by position coordinates (XYZ coordinates) on the XYZ axes of the initial reference coordinate system set by the coordinate system setting unit 120.
[0062] In the following description, it is assumed that the measurement data acquisition unit 110 acquires a mesh model showing a three-dimensional shape. Of course, the measurement data acquisition unit 110 may acquire point cloud data from the three-dimensional shape measuring device 200, and the processing device 100 may generate mesh data from the point cloud data. The relative positional relationship between the three-dimensional shape measuring device 200 and the arrangement points is known. This makes it possible to associate the three-dimensional model of the object O with the axis derived from the end effector 300.
[0063] (Determining Symmetry) Furthermore, the processing device 100 may optionally determine the symmetry of the three-dimensional model. Specifically, the processing device 100 determines the symmetry with respect to each axis of the reference coordinate system. Then, the processing device 100 corrects the axis of the reference coordinate system according to the result of the symmetry determination.
[0064] Here, in a three-dimensional model showing the three-dimensional shape of an object, it is desirable to appropriately set the coordinate axes of the coordinate system. For example, if an object is rotationally symmetric, the position and orientation of the object can be appropriately changed by setting coordinate axes that coincide with the rotation axes. It is desirable to appropriately determine the symmetry of an object. In the method according to the present embodiment, the symmetry of an object can be appropriately determined. In this way, it becomes possible to set a coordinate system that is useful for estimating the six-axis position and orientation in an estimator. A configuration related to the determination of symmetry will be described below.
[0065] The first determination unit 130 determines the rotational symmetry of the object O. The first determination unit 130 determines whether or not the object O is rotationally symmetric about each of the three axes. For example, when the object O has a rotationally symmetric shape about the X axis, the X axis becomes the axis of rotational symmetry. Therefore, when the object is rotated by a certain angle around the X axis, the shape of the object matches.
[0066] The second determination unit 140 determines whether the object O is rotationally symmetric with an angular period. When there is a rotationally symmetric axis, the second determination unit 140 determines whether the rotational symmetry about the axis has an angular period. For example, when the X-axis is the rotationally symmetric axis, the second determination unit 140 determines whether the object O has a rotationally symmetric shape with an angular period about the X-axis.
[0067] An example of a rotationally symmetric shape with angular period is a regular polygon in a cross section perpendicular to an axis. Specifically, when the cross section is a regular square, the object has a four-fold rotationally symmetric shape. An example of a rotationally symmetric shape without angular period is a circle in a cross section perpendicular to an axis.
[0068] The third determination unit 150 determines plane symmetry. If the object shape has plane symmetry, the shape is inversion symmetric with respect to a plane. If the shape is inversion symmetric with respect to a plane that includes an axis, the third determination unit 150 determines that the object is plane symmetric.
[0069] The modification unit 160 modifies the reference coordinate system. If the second determination unit 140 determines that the coordinate system is rotationally symmetric with an angular period, the modification unit 160 modifies the reference coordinate system. This sets a reference coordinate system different from the initial reference coordinate system. Specifically, the modification unit 160 modifies the orientation of an axis that is not a rotationally symmetric axis. For example, if the X-axis is a rotationally symmetric axis, the modification unit 160 changes the orientation of the Y-axis and the Z-axis. The modification unit 160 rotates the Y-axis and the Z-axis around the X-axis.
[0070] Furthermore, when the third determination unit 150 determines that the object O has plane symmetry, the modification unit 160 modifies the reference coordinate system. That is, the axis directions of the reference coordinate system are changed so that the axes are included in the symmetrical plane. In this way, it is possible to set a reference coordinate system whose coordinate axes are two axes parallel to the symmetrical plane.
[0071] A method for generating a three-dimensional model according to this embodiment will be described with reference to Fig. 4. Fig. 4 is a flowchart showing the method for generating a three-dimensional model according to this embodiment.
[0072] First, the surface shape data acquisition unit 101 acquires surface shape data of the object O (S11). This allows the surface shape data measured by the distance measurement sensor 500 to be acquired. Here, the surface shape data is point cloud data or mesh data that indicates the surface of the object O. Here, mesh The following description will be given assuming that the data is correct.
[0073] Next, the calculation unit 102 calculates the normal direction of the surface of the object O based on the surface shape data (S12). As a result, the normal direction distribution of the surface of the object O is obtained. The grip position setting unit 103 sets the grip position based on the normal direction (S13). Here, the calculation unit 102 sets a cross section close to a circle as the grip position of the object O as described above.
[0074] The end effector 300 grips the object O at the gripping position (S14). That is, after the arm mechanism 400 moves the end effector 300 to the gripping position, the end effector 300 grips the object O.
[0075] Here, flexible gripper 314 grips object O. Therefore, gripper 314 deforms in accordance with the outer shape of object O. Then, deformation sensor 316 detects the deformed shape of gripper 314 (S15).
[0076] The coordinate system setting unit 120 sets an initial reference coordinate system according to the deformed shape of the gripping unit 314 (S16). As described above, the gripping unit 314 is made of a flexible material, and therefore deforms along the gripped object O. Therefore, the coordinate system setting unit 120 can set the axial direction of the initial reference coordinate system according to the deformed shape of the gripping unit 314.
[0077] The end effector 300 and the arm mechanism 400 place the object O on the table 210 (S17). Here, the arm mechanism 400 moves the object O so that the object O is placed within the scan range of the three-dimensional shape measuring device 200. More specifically, the object O is placed on the three-dimensional shape measuring device 200 so that the axial direction of the initial reference coordinate system coincides with the scan axis.
[0078] The three-dimensional shape measuring instrument 200 scans the object O (S18). The three-dimensional shape measuring instrument 200 scans the entire circumference of the object O to perform measurement. The measurement data acquiring unit 110 acquires measurement data in the initial reference coordinate system (S19). That is, a three-dimensional shape model of the object O in an XYZ three-dimensional orthogonal coordinate system set according to the deformed shape of the gripping unit 314 is obtained.
[0079] The process of determining the symmetry of a three-dimensional model will be described with reference to Fig. 5. Fig. 5 is a flowchart for explaining an example of the process of determining the symmetry. In the following description, the symmetry with respect to each axis of the initial reference coordinate system derived in step S15 is determined. As a result, the symmetry of the three-dimensional model corresponding to the measurement data measured in step S18 is determined.
[0080] The first determination unit 130 selects an axis (x, y, z) in the initial reference coordinate system (S103). That is, the first determination unit 130 selects one axis from the x-axis, y-axis, and z-axis. The first determination unit 130 determines whether the object 0 is rotationally symmetric about the selected axis (hereinafter also referred to as the selected axis) (S104). Rotational symmetry is a shape in which the shape when rotated around the selected axis matches the original shape.
[0081] If the object O is rotationally symmetric (YES in S104), the second judgment unit 140 judges whether or not the rotational symmetry has an angular period (S105). That is, the third judgment unit 150 judges whether or not the object O has a rotationally symmetric shape with an angular period. Rotational symmetry with an angular period is a shape in which the shape when rotated around a selected axis by a predetermined angle (an angle greater than 0° and less than 360°) matches the original shape. In other words, the shape when rotated around an axis by an angle other than the angle indicated by the angular period does not match the original shape.
[0082] If the rotational symmetry has an angular period (YES in S105), the modification unit 160 modifies the reference coordinate system (S106). The modification unit 160 changes the directions of two axes other than the selected axis in the initial reference coordinate system. This determines the directions of the two axes in a plane perpendicular to the selected axis. Then, the process proceeds to step S109. If the rotational symmetry does not have an angular period (NO in S105), the process proceeds to step S109.
[0083] If the object O is not rotationally symmetric (NO in S104), the third determination unit 150 determines whether the object O is plane symmetric (S107). Planar symmetry is a shape in which the shape of the object O when inverted on a plane including the selected axis matches the original shape. If the object O is plane symmetric (YES in S107), the correction unit 160 corrects the reference coordinate system (S108). The correction unit 160 changes the directions of two axes other than the selected axis in the initial reference coordinate system. Specifically, the correction unit 160 sets the direction of one axis other than the selected axis to be parallel to the symmetry plane (inverted plane). Then, the process proceeds to S109.
[0084] If the object O is not plane-symmetric (NO in S107), the process proceeds to S109. Then, the first judgment unit 130 judges whether or not the process has been completed for all axes (S109). If the process has not been completed for all axes (NO in S109), the process returns to step S103, where the first judgment unit 130 selects an axis. That is, the processing device 100 performs the above process for the axes for which symmetry has not been determined. For example, the processes of S104 to S108 are performed in the order of the z-axis, y-axis, and x-axis. When the process has been completed for all axes, did If so (YES in S109), the process ends.
[0085] 6 is a flowchart for explaining an example of the judgment process in the first judgment unit 130 and the second judgment unit 140. Here, the axis selected in step S103 in the figure is assumed to be a. That is, the axis a is any one of the x-axis, y-axis, and z-axis in the initial reference coordinate system. In the following explanation, the axis a is assumed to be the z-axis, and the plane P perpendicular to the axis a is assumed to be the xy plane.
[0086] The first determination unit 130 creates cross-sectional shapes So, Sc of an object model and its convex hull on a plane P perpendicular to the axis a (S301). The cross-sectional shape So and the cross-sectional shape Sc are found by the intersection of the plane P and the object model. The cross-sectional shape So of the object is a shape that indicates the contour of the object on the plane P. The convex hull is the smallest polygon that contains the object (i.e., the cross-sectional shape So) on the plane P. The first determination unit 130 changes the position on the axis a to generate the cross-sectional shapes So, Sc. Therefore, for one object O, the first determination unit 130 generates a plurality of cross-sectional shapes So and a plurality of cross-sectional shapes Sc.
[0087] The first determination unit 130 obtains the distance r between the origin Po and the outermost intersection point of the straight line l and the cross-sectional shape Sc (or So) on the plane P (S302). The cross-sectional shape Sc and its r will be described with reference to FIG. 7. FIG. 7 shows the plane P. Here, the straight line l is a straight line that is parallel to the plane P as shown in FIG. 7 and passes through the origin Po of the plane P. The straight line l also starts from the origin P0. The angle between the straight line l and the x-axis on the plane P is θ. On the straight line l, the distance r indicates the distance from the origin Po to the outer shape of the cross-sectional shape Sc. When there are two or more intersection points between the straight line l and the cross-sectional shape Sc, the distance between the outermost intersection point and the origin Po is set to r.
[0088] As described above, the first determination unit 130 may use the cross-sectional shape So of the object model instead of the cross-sectional shape Sc. Therefore, in the following flow, it is also possible to replace the cross-sectional shape Sc with the cross-sectional shape So. When the cross-sectional shape So is used, the distance from the origin Po to the outline of the cross-sectional shape So on the straight line l is set as the distance r. In the following explanation, an example of processing the cross-sectional shape Sc will be explained. For this reason, as shown in FIG. 7, the distance from the origin Po to the intersection point between the straight line l and the cross-sectional shape Sc will be explained as the distance r.
[0089] Furthermore, the first determination unit 130 changes θ to obtain the distance r. That is, the first determination unit 130 calculates r over the entire circumference of a circle centered on the origin Po on the plane P. For example, the first determination unit 130 changes θ to δ θ interval to obtain r. This enables the first determination unit 130 to obtain a discrete function r(θ). For example, θ takes on discrete values from 0° to 360°. r(θ) is a polar coordinate expression of the cross-sectional shape Sc. In other words, r(θ) corresponds to a function obtained by polar coordinate conversion of the cross-sectional shape Sc. Furthermore, the first determination unit 130 calculates r(θ) for each of a plurality of cross-sectional shapes Sc generated by changing the position on the axis a (here, the z position).
[0090] The first determination unit 130 normalizes r(θ) (S303). For example, the first determination unit 130 multiplies r(θ) by a constant coefficient so that the maximum value of r(θ) is 1. This makes r(θ) fall within the range of 0 to 1. The first determination unit 130 determines whether the value of r(θ) is constant (S304). That is, the first determination unit 130 determines whether the cross-sectional shape Sc is circular. More specifically, the first determination unit 130 determines whether the outer shape of the cross-sectional shape Sc is circular.
[0091] If r(θ) is constant (YES in S304), the first judgment unit 130 judges that the object is circular (rotationally symmetric) (S305). If it is judged to be circular, the processing of the first judgment unit 130 and the second judgment unit 140 ends. That is, in step S105 of FIG. 2, NO is judged. Examples of three-dimensional objects whose cross-sectional shape is circular include spheres, cylinders, cones, and rugby balls. In addition, there are bottles and the like whose diameter changes depending on the position of the axis a. These shapes are rotationally symmetric with respect to the central axis.
[0092] If r(θ) is not constant (NO in S304), the first determination unit 130 determines that the object is not circular (S306). Next, the second determination unit 140 determines whether the object has rotational symmetry with an angular period. That is, the determination process in step S105 in FIG. 2 is performed.
[0093] The second determination unit 140 performs a discrete Fourier transform on r'(θ) (S307). Here, r'(θ) is the average value r of r(θ) and r. ave Specifically, r'(θ)=r(θ)-r ave The average value r ave corresponds to the DC component of r. The Fourier series (amplitude spectrum) R(ω) obtained by the discrete Fourier transform is shown in Fig. 8. The graph on the left side of Fig. 8 shows r'(θ), and the graph on the right side shows R(ω). When the cross-sectional shape Sc is a regular hexagon as shown in Fig. 7, peaks exist every 60° in R(w) shown in Fig. 8. Also, since the Fourier transform is performed on a real function in Fig. 8, the positive and negative values are symmetrical.
[0094] The second determination unit 140 calculates the angle period ω at which the amplitude R is maximized from R(ω). max (S308). Here, ω max is between 0° and 180°. In FIG. 8, the maximum peak appears at R(60°), so ω max is 60° (=π / 3[rad]).
[0095] The second determination unit 140 calculates the difference (r(θ)−r(θ+ω) max The area E of the absolute value of r(θ) is calculated (S309). Here, the difference is the function r(θ) and the function r(θ) with an angular period ω max The function r(θ+ω max The absolute area E can be calculated using the following formula (1).
[0096]
number
[0097] The area E is found by integrating the absolute value with respect to θ in the range of 0° to 360°. In equation (1), since θ takes discrete values, the sum of the absolute values of θ in the range of 0° to 360° is the area E. The second determination unit 140 determines whether the area E is less than a threshold value (S310). That is, the third determination unit 150 compares the area E with a preset threshold value.
[0098] If it is less than the threshold value (YES in S310), the second determination unit 140 determines whether the angular period ω max In other words, it is determined that the shape has a rotational symmetry (line symmetry) with an angular period ω max Since the difference in the functions when shifted by only one is small, the second determination unit 140 determines that the shape is rotationally symmetric (line symmetric) with an angular period. If the difference is not less than the threshold value (NO in S310), the second determination unit 140 determines that the shape is not rotationally symmetric (line symmetric) with an angular period (S312).
[0099] Figure 9 shows the relationship between r(θ) and r(θ+ω max) is shown. In Fig. 9, the left side shows a graph of a shape that is not rotationally symmetric, and the right side shows a graph of a shape that is rotationally symmetric. In the case of a shape that is not rotationally symmetric, r(θ) and r(θ+ω max ) is not 0, the area E calculated by formula (1) is large. For a rotationally symmetric shape with an angular period, the difference between r(θ) and r(θ+ω max ) are almost the same function. Therefore, for any θ, r(θ) and r(θ+ω max ) is approximately 0, and the area E is approximately 0. Therefore, the second determination unit 140 can determine whether or not there is rotational symmetry with an angular period by comparing the area E with a preset threshold value.
[0100] Note that multiple cross-sectional shapes Sc are generated by changing the position on the axis a. The determination of rotational symmetry is performed for each cross-sectional shape Sc. Therefore, if the value of r(θ) is constant for all cross-sectional shapes Sc, they are determined to be rotationally symmetric without angular period. If the area E of one or more cross-sectional shapes Sc is not less than the threshold value, they are determined to not be rotationally symmetric. If the area E of some cross-sectional shapes Sc is less than the threshold value and r(θ) is constant for all remaining cross-sectional shapes, they are determined to be rotationally symmetric with angular period. In addition, for all cross-sectional shapes Sc, even if the area E is less than the threshold value, the angular period ω max In the case where the cross-sectional shapes Sc are different, the cross-sectional shape may not be rotationally symmetric with the angular period. max If the two are misaligned and do not overlap, the rotational symmetry with the angular period is not achieved. For example, in a certain cross-sectional shape, the angular period ω max is 60°, and in the remaining cross-sectional shapes, the angular period ω max is 72°, the cross-sectional shape does not have rotational symmetry with an angular period. max is 60°, and in the remaining cross-sectional shapes, the angular period ω max When the angle is 30°, the rotational symmetry has an angular period, i.e., 6-fold rotational symmetry.
[0101] If the object has rotational symmetry with an angular period (S311), the correction unit 160 corrects the initial reference coordinate system as in step S106 of FIG. 2. The correction unit 160 may correct the axis direction of the initial reference coordinate system based on the peak surface. For example, the angle θ at which r(θ) is maximized max The correction unit 160 sets the reference coordinate system so that the direction of θ max where ω max is greater than or equal to 0° and less than 360°.
[0102] r(θ max The position of the cross-sectional shape Sc or the cross-sectional shape So at which the angle θ max The line inclined by θ is the axis b. max is 0°. Axis b is a straight line passing through the origin and the peak position. The plane including the selected axis (axis a) and axis b is the peak plane. If there are multiple angles θ at which r(θ) is maximized, axis b can be set based on one of the peak positions.
[0103] After step S312, the third determination unit 150 determines whether or not there is plane symmetry, as in step S107. An example of determining whether or not there is plane symmetry will be described with reference to Figs. 10 to 12. Figs. 10 and 11 are flowcharts showing an example of the determination process. Fig. 12 is a diagram showing a plane-symmetric cross-sectional shape. In the following description, the process is performed for the cross-sectional shape Sc of the convex hull, but it is also possible to perform the process for the cross-sectional shape So of the object. Therefore, in the following flow, it is also possible to replace the cross-sectional shape Sc with the cross-sectional shape So.
[0104] The third determination unit 150 determines the origin P of the plane P. O A straight line L(φ) passing through the φ(S401). Thus, a number of straight lines L(φ) are set on the plane P. Here, as shown in FIG. 12, the straight lines L(φ) are straight lines that pass through the origin Po on the plane P and make an angle φ with the x-axis. In other words, the angle φ is the angle between the x-axis and the straight lines L(φ) on the plane P. Moreover, φ is in the range of 0° or more and less than 180°. The straight lines L(φ) are set so as to cross the cross-sectional shape Sc.
[0105] The third determination unit 150 takes sample points Qm at regular intervals δm on the straight line L(φ) (S402). This allows multiple points on the straight line (φ) to be sampled. The third determination unit 150 records the xy coordinates of each sample point Qm. FIG. 12 shows the straight line L(φ) and some of the sample points Qm on the straight line L(φ). Only three sample points placed on one straight line L(φ) are shown here. The third determination unit 150 also draws multiple straight lines L(φ) by changing the angle φ. The third determination unit 150 finds multiple sample points Qm on each straight line L(φ). In the following process, unless otherwise specified, the same process is performed for each cross-sectional shape.
[0106] The third determination unit 150 draws an orthogonal straight line K(Qm) that passes through Qm and is perpendicular to the straight line L(φ) for all sample points Qm (S403). The third determination unit 150 determines intersections Qmu and Qml between K(Qm) and the cross-sectional shape Sc (S404). As shown in FIG. 12, K(Qm) is a straight line that crosses the cross-sectional shape Sc of the convex hull, so K(Qm) intersects with the cross-sectional shape Sc at two points. Therefore, as shown in FIG. 11, the intersection point on the positive side between K(Qm) and the cross-sectional shape Sc is Qmu, and the intersection point on the negative side is Qml. In addition, when K(Qm) intersects with the cross-sectional shape Sc at three or more points, the outermost intersection point on the positive side is Qmu, and the outermost intersection point on the negative side is Qml.
[0107] The third determination unit 150 determines the distances du and dl from the sample point Qm to the intersections Qmu and Qml (S405). As shown in FIG. 12, the third determination unit 150 determines the distance between the sample point Qm and the intersection Qmu as du, and the distance between the sample point Qm and the intersection Qml as dl.
[0108] Next, the third determination unit 150 calculates the signed distance difference d=du-dl (S406). ave The third determination unit 150 calculates the average value d for multiple sample points Qm on one line L(φ) by calculating the sum of d and dividing the sum by the number of sample points. ave The third judgment unit 150 calculates d and d ave The sum of the absolute values of the differences d sum The sum d is calculated (S408). sum can be calculated using the following formula (2).
[0109]
number
[0110] The third determination unit 150 calculates the sum d sum The angle φ at which min As described above, the signed distance difference d and the average value d are calculated (S409). ave , the sum d sum are obtained for each angle φ. In other words, the third determination unit 150 performs the above process for each straight line L(φ) to obtain the signed distance difference d, the average value d ave , the sum d sum The third determination unit calculates the sum d sum Compare and find the minimum sum d sum Then, find the angle φ of the line L(φ). The angle φ at which the cross-sectional shape Sc is closest to line symmetry (inversion symmetry) with respect to the line L(φ) is the angle φ min is set as:
[0111] The third determination unit 150 determines the angle φ min The average value of the signed distance difference d when ave_min and the sum d sum_min The sum d is calculated (S410). sum_min The third determination unit 150 determines whether the sum d sum_min is compared with a preset threshold value.
[0112] Sum d sum_min is not less than the threshold value (NO in S411), the third determination unit 150 determines that the shape is not symmetrical (S412). That is, the cross-sectional shape Sc (or the cross-sectional shape So) is neither rotationally symmetrical nor plane symmetrical about the axis a. Therefore, the object has no symmetry about the axis a.
[0113] Sum d sum_min If is less than the threshold value (YES in S411), the correction unit 160 min and d ave_min Based on this, the axis b is set (S413). Specifically, the axis b has an inclination of an angle φ with respect to the x-axis and is d ave_min Figure 13 shows axis b in plane P perpendicular to the z-axis. Axis b is a straight line L (φmin) separated by d ave_min This corresponds to a straight line translated by a distance x. The position of the origin Po is also translated in the same way. The remaining axis c is a direction perpendicular to the axis b and perpendicular to the axis a. The third determination unit 150 determines that the object O is plane-symmetric with respect to a plane (inversion plane) including the axes a and b (S414). In this way, when the object O has plane symmetry, the modification unit 160 modifies the axial direction of the initial reference coordinate system so that the object O has an axis along the inversion plane.
[0114] The process of determining the plane symmetry shown in FIG. 10 and FIG. 11 is performed for each cross-sectional shape Sc. Then, for all cross-sectional shapes Sc, the sum d sum_min is less than the threshold value and the axis b is common, it is determined that they are plane symmetric. Note that the processes shown in Figs. 3 to 11 are examples of the determination process, and the present embodiment is not limited to the above processes.
[0115] System 1 performs the above judgment process for each of the three axes of the initial reference coordinate system. In other words, symmetry is judged for each of the three axes. If it is judged to be a rotationally symmetric shape without angular period on two or more axes, it is judged to be a spherical shape. If it is rotationally symmetric about one axis and plane symmetric about another axis, it becomes an object with two types of symmetry, such as a cylinder or a rugby ball shape. If it is rotationally symmetric about one axis, it can be determined whether it is symmetry with angular period (discrete symmetry) or symmetry with angular period. Examples of discretely symmetric cross-sectional shapes include regular polygons and star shapes. Various symmetries can be judged using the above algorithm.
[0116] In summary, the system 1 includes the end effector 300, the deformation sensor 316, the calculation unit 102, the grip position setting unit 103, and the coordinate system setting unit 120. The end effector 300 is O The end effector 300 has a flexible gripping unit 314 for gripping an object O. A deformation sensor 316 detects the deformed shape of the gripping unit when gripping an object. A calculation unit 102 calculates a normal direction of the surface of the object from the surface shape data of the object. A gripping position setting unit 103 determines a gripping position of the object O by the end effector 300 based on the normal direction. A coordinate system setting unit 120 sets a reference coordinate system according to the deformed shape of the gripping unit 314.
[0117] The method for generating a three-dimensional model involves the following steps. (A) The calculation unit 102 calculates the normal direction of the surface of the object in accordance with the surface shape data of the object. (B) The gripping position setting unit 103 sets the gripping position of the object O based on the normal direction. (C) An end effector 300 having a flexible gripper 314 grasps an object at a grasping position. (D) The deformation sensor 316 detects the deformed shape of the object when the object is grasped. (E) A reference coordinate system is set according to the deformed shape of the gripping portion 314.
[0118] In this way, a 3D model in an appropriate coordinate system can be easily generated.
[0119] Moreover, the processing device 100 may execute the following processes (1) to (6). (1) acquiring measurement data indicative of a three-dimensional shape of an object in a reference coordinate system; (2) selecting an axis of the initial reference coordinate system; (3) determining whether or not there is rotational symmetry about the axis; (4) determining whether or not the rotational symmetry has an angular period with respect to the axis; (5) if there is no rotational symmetry, determining plane symmetry about the axis; (6) By changing the axis selected in (2), the processes in (3) to (5) are performed for each of the three axes of the initial reference coordinate system.
[0120] In this way, an appropriate coordinate system can be set. Then, a 3D model of the object is expressed using the 3D coordinate system set as described above. That is, a 3D model showing the 3D shape of the object is expressed in an appropriate coordinate system. For example, the position coordinates of a point cloud or mesh showing a 3D model are shown in an appropriate coordinate system. Various pieces of information regarding symmetry can be annotated. A 3D shape model can be created with coordinate axes that take symmetry into consideration. Of course, the processes (1) to (6) may be omitted.
[0121] The processing device 100 derives initial reference coordinates from the three-dimensional model. The processing device 100 can efficiently perform calculations by sequentially searching for rotational symmetry and plane symmetry on each axis. Information on the coordinate system setting and symmetry for the three-dimensional shape model of the object can be annotated. A three-dimensional model in an appropriate coordinate system can be efficiently generated.
[0122] In the case of an object having symmetry, the axes of the coordinate system define the symmetry axis or symmetry plane (inversion plane). In the case of rotational symmetry having the above-mentioned angular period or plane symmetry, the correction unit 160 corrects the initial reference coordinate system. By using the axes of the corrected coordinate system, the position and orientation of the object can be appropriately changed. The learning data can be created simply and appropriately. Furthermore, the learning data can be appropriately and simply annotated with position and orientation information indicating the position and orientation. It is possible to set a coordinate system useful for estimating the six-axis position and orientation in the estimator.
[0123] The coordinate system setting unit 120 may derive the initial reference coordinates based on the direction of the normal to each mesh of the mesh model representing the three-dimensional shape. This makes it possible to easily determine an appropriate initial reference coordinate system.
[0124] The coordinate system setting unit 120 sets a rectangular parallelepiped containing the object O as a three-dimensional bounding box. The coordinate system setting unit 120 then derives an initial reference coordinate system with the center of the rectangular parallelepiped as the origin and the directions of each side of the rectangular parallelepiped as the x, y, and z axes.
[0125] When the object has plane symmetry, the correction unit 160 corrects the axial directions of the initial reference coordinate system so as to have axes along the inversion plane.
[0126] When the object has rotational symmetry with an angular period, the correction unit 160 corrects the axial directions of the initial reference coordinate system based on the peak surface.
[0127] The above processing method can be implemented by a computer program or hardware. That is, the processing device 100 executes a predetermined program to function as a generating device or a generating system. FIG. 14 shows an example of a hardware configuration of the processing device 100. The processing device 100 includes a processor 10, a memory 20, and an interface 30. The memory 20 stores programs, various parameters, measurement data, and the like. The processor 10 executes the programs stored in the memory 20. The interface 30 transmits data to the three-dimensional shape measuring device 200, the end effector 300, the arm mechanism 400, the distance measuring sensor 500, and the like. The interface 30 also receives data from the three-dimensional shape measuring device 200, the end effector 300, the arm mechanism 400, the distance measuring sensor 500, and the like.
[0128] The method according to the present embodiment can be executed by the processor 10 of the processing device 100 executing a program. The processing device 100 only needs to have at least one processor 10. The one or more processors 10 execute a program stored in a memory to perform the above-mentioned processing. The processing device 100 is not limited to being a single physical device, and may be distributed among multiple devices. In other words, the above-mentioned method may be executed by multiple devices performing distributed processing.
[0129] A part or all of the above processes may be executed by a computer program. That is, the control of the processing device 100 is executed by a control computer that configures the processing device 100 executing the program. The above-mentioned program includes a group of instructions (or software code) that causes the computer to perform one or more functions described in the embodiment when the program is loaded into the computer. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, the computer-readable medium or the tangible storage medium includes random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disc (DVD), Blu-ray (registered trademark) disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may be transmitted on a transitory computer-readable medium or a communication medium. By way of example and not limitation, the transitory computer-readable medium or the communication medium includes electrical, optical, acoustic, or other forms of propagating signals.
[0130] The invention made by the inventor has been specifically described above based on an embodiment, but it goes without saying that the present invention is not limited to the above embodiment and can be modified in various ways without departing from the gist of the invention. [Explanation of symbols]
[0131] 1 System 10 Processors 20 Memory 30 Interface 100 Processing equipment 101 Surface shape data acquisition unit 102 Calculation section 103 Gripping position setting section 105 Drive control unit 110 Measurement data acquisition unit 120 Coordinate system setting section 130 1st Judgment Section 140 Second Judgment Section 150 Third Judgment Section 160 Correction Department 200 3D shape measuring instrument 210 Table 220 Depth Sensor 300 End Effector 311 Main body 313 Base 314 Gripping part 315 Claw 316 Deformation Sensor 317 Actuator 400 Arm mechanism 500 Distance Sensor
Claims
1. an end effector having a flexible gripping portion for gripping an object; a calculation unit for calculating a normal direction of each point on a surface of the object from surface shape data of the object; a determination unit that determines a gripping position of the object by the end effector based on the distribution of the normal direction; a deformation sensor that detects a deformed shape of the gripping portion in a state where the object is gripped; A coordinate system setting unit that sets a reference coordinate system according to the deformed shape of the grip unit, A three-dimensional model generation system in which the reference coordinate system is set so that its axis is perpendicular to the grasping cross section which is the grasping position and passes through the center or center of gravity of the grasping cross section.
2. a three-dimensional shape measuring device that measures a three-dimensional shape of the object by scanning the object; The three-dimensional model generating system according to claim 1 , further comprising: a drive control unit that drives the end effector so that the end effector places the object within a scan range of the three-dimensional shape measuring device.
3. The three-dimensional shape measuring device includes a depth sensor that measures a distance to the object, The three-dimensional model generating system according to claim 2 , wherein the orientation of the object relative to the depth sensor is changed around an axis of the reference coordinate system.
4. The three-dimensional shape measuring instrument further includes a table for rotating the object placed thereon, The three-dimensional model generating system according to claim 3 , wherein the end effector places the object so that a rotation axis of the table coincides with an axis of the reference coordinate system.
5. a surface shape sensor configured to measure surface shape data of the object before the end effector grasps the object; The determination unit is searching for two points, an arbitrary point on the object and an antipodal point of the arbitrary point, from the surface shape data, and determining an amount of deviation between the two points in the normal direction, and setting a point where the cross section is most similar to a circle; 5. The three-dimensional model generating system according to claim 1, wherein a point whose cross section most closely resembles a circle is selected as the gripping position of the end effector.
6. determining symmetry of the object with respect to each axis of the reference coordinate system; 5. The three-dimensional model generating system according to claim 1, wherein the axes of the reference coordinate system are modified in accordance with the result of the symmetry determination.
7. Calculating a normal direction of each point on a surface of an object according to surface shape data of the object; setting a gripping position of the object based on the distribution of the normal directions; an end effector having a flexible gripper gripping an object at the gripping location; Detecting a deformed shape of the gripping portion when the object is gripped; A reference coordinate system is set according to the deformed shape of the gripping portion; A method for generating a three-dimensional model, in which the reference coordinate system is set so that its axis is perpendicular to the grasping cross section that is the grasping position and passes through the center or center of gravity of the grasping cross section.
8. Driving the end effector so that the end effector places the object within a scan range of a three-dimensional shape measuring device; The method for generating a three-dimensional model according to claim 7 , wherein the three-dimensional shape measuring device measures the three-dimensional shape of the object by scanning the object.
9. The three-dimensional shape measuring device includes a depth sensor that measures a distance to the object, The method for generating a three-dimensional model according to claim 8 , further comprising changing a posture of the object relative to the depth sensor around an axis of the reference coordinate system.
10. The three-dimensional shape measuring instrument further includes a table for rotating the object placed thereon, The method for generating a three-dimensional model according to claim 9 , wherein the end effector places the object so that a rotation axis of the table coincides with an axis of the reference coordinate system.
11. a surface shape sensor measures surface shape data of the object before the end effector grasps the object; searching for two points, an arbitrary point on the object and an antipodal point of the arbitrary point, from the surface shape data, and determining an amount of deviation between the two points in the normal direction, and setting a point where the cross section is most similar to a circle; The method for generating a three-dimensional model according to any one of claims 7 to 10, further comprising the step of selecting, as the gripping position of the end effector, a point in the surface shape data whose cross section most closely resembles a circle.
12. determining symmetry of the object with respect to each axis of the reference coordinate system; 11. The method for generating a three-dimensional model according to claim 7, further comprising the step of correcting the axis in accordance with a result of the determination of the symmetry.
13. For at least one computer, calculating a normal direction of each point on a surface of the object according to surface shape data of the object; setting a gripping position of the object based on the distribution of the normal directions; controlling an end effector having a flexible gripper such that the end effector grips an object at the gripping position; acquiring deformed shape data obtained by detecting a deformed shape of the gripping part when the gripping part grips the object; and setting a reference coordinate system according to the deformed shape of the gripping portion. The reference coordinate system is set so that the axis of the reference coordinate system is perpendicular to the gripping cross section which is the gripping position and passes through the center or center of gravity of the gripping cross section. program.
Citation Information
Patent Citations
Extractor for part
JP1985161085A
Action teaching system, and action teaching method
JP2009214212A
Three-dimensional curved surface recognition method and manipulation system
JP2011017611A
Robot simulation device for simulating workpiece unloading process
JP2015171745A
Portable three-dimensional scanner and method of generating three-dimensional scan result corresponding to object
JP2015210271A
