Pose estimation apparatus, pose estimation method, and program
The posture estimation device addresses self-occlusion and stability issues in conventional methods by using Eigen NeRF and occupancy maps to accurately estimate object and device orientations through differentiable rendering, enhancing efficiency and precision in in-hand operations.
Patent Information
- Application Number
- JP2023031054
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-03-01
Smart Images

Figure 2024123546000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a posture estimation device, a posture estimation method, and a program. [Background technology]
[0002] Methods for estimating the pose of an object include a classical method that detects the feature vector of the operation target and estimates the object pose as a PnP (Perspective-n-Point) problem, and an E2E (End-to-End) method that directly regresses the image and the object pose. In recent years, a method has been proposed for estimating the camera pose (camera coordinates and object coordinates can be expressed by an inverse matrix) using a NeRF representation such as iNeRF (see, for example, Non-Patent Document 1). [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Lin Yen-Chen1, Pete Florence, et al., “iNeRF: Inverting Neural Radiance Fields for Pose Estimation”, IROS 2021, 2021 Summary of the Invention [Problem to be solved by the invention]
[0004] However, conventional technology had issues with being vulnerable to self-occlusion by the robot hand, and outputting results when the pose estimation interferes with the hand. In addition, iNeRF only looks at the gradient of the camera pose and brightness difference, so learning is not stable (hyperparameter setting is complicated). In addition, in order to estimate the pose of a robot hand and multiple objects, it is necessary to obtain learning data for combinations of the robot hand and objects, making data collection difficult.
[0005] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a posture estimation device, posture estimation method, and program that are capable of estimating at least one of the posture of an object and the posture of a manipulation device that manipulates an object with high accuracy and efficiency, even in an environment in which self-occlusion occurs, such as in-hand manipulation. [Means for solving the problem]
[0006] (1) In order to achieve the above object, an attitude estimation device according to one embodiment of the present invention is a attitude estimation device that includes an attitude estimation unit that uses a differentiable renderer as a renderer used to sequentially estimate at least one of the attitude of a manipulation device and the attitude of a target object, which maintains consistency between actual data and data obtained in an operating environment, learns a neural three-dimensional representation of the manipulation device and a neural three-dimensional representation of each of the target objects, and inputs data obtained by combining the respective learning results by utilizing an occupied space into the renderer, thereby estimating at least one of the attitude of the target object and the attitude of the manipulation device.
[0007] (2) In the posture estimation device of (1), the object in the operating environment may be an object having a joint, and the differentiable renderer may be Eigen NeRF or NeRF.
[0008] (3) In the posture estimation device of (1) or (2), the posture estimation unit may acquire the posture of an external sensor, transform the coordinate system of each Ray, which is a straight line connecting an origin of the external sensor to a predetermined pixel, into the object coordinate system reference by an external sensor coordinate transformation matrix based on an object coordinate system, input the transformed coordinate system to the renderer, and render an image of the operation target object. The posture estimation unit may acquire joint angle information of the operation device based on the operation device coordinate system reference, input the transformed coordinate system to the renderer, and render an image of the operation device. The posture estimation unit may calculate a first loss function based on a brightness difference between the rendered image of the operation target object, the image of the operation device, and an observation image in the occupied space. The posture estimation unit may calculate a second loss function indicating whether the operation target object has entered the occupied space of the operation device, add the first loss function and the second loss function, and calculate the posture of the operation target object based on the robot coordinate system reference, which minimizes the related loss function.
[0009] (4) In the posture estimation device of any one of (1) to (3), the posture estimation unit may perform coordinate conversion of an occupancy map of the object to be operated based on a target object coordinate system and an occupancy map of the operation device based on a control device coordinate system, based on a world coordinate system.
[0010] (5) In the posture estimation device of any one of (1) to (4), the posture estimation unit may learn a neural three-dimensional representation of a background and input the learned neural three-dimensional representation of the background to the renderer, thereby estimating at least one of the posture of the object to be operated and the posture of the operation device.
[0011] (6) In the posture estimation device of (5), the posture estimation unit may perform coordinate transformation of a coordinate system of each Ray, which is a straight line connecting a predetermined pixel from an origin of an external sensor, into an external sensor coordinate system in a world coordinate system to render an image of the background, and calculate a first loss function based on a brightness difference between the rendered image of the object to be operated, the image of the operation device, the image of the background, and an observation image.
[0012] (7) In order to achieve the above object, an attitude estimation method according to one embodiment of the present invention is an attitude estimation method in which an attitude estimation unit uses a differentiable renderer as a renderer used to sequentially estimate at least one of the attitude of a manipulation device and the attitude of a target object, which maintains consistency between actual data and data obtained in an operating environment, learns a neural three-dimensional representation of the manipulation device and a neural three-dimensional representation of each of the target objects, and the attitude estimation unit estimates at least one of the attitude of the target object and the attitude of the manipulation device by inputting data combined with each of the learning results by utilizing an occupied space into the renderer.
[0013] (8) In order to achieve the above object, a program according to one embodiment of the present invention is a program that causes a computer of an attitude estimation device to use a differentiable renderer as a renderer used to sequentially estimate at least one of the attitude of a manipulation device and the attitude of a target object, which maintains consistency between actual data and data obtained in an operating environment, to learn a neural three-dimensional representation of the manipulation device and a neural three-dimensional representation of each of the target objects, and to input data obtained by combining the learning results by utilizing an occupied space to the renderer, thereby estimating at least one of the attitude of the target object and the attitude of the manipulation device. Effect of the Invention
[0014] According to (1) to (8), even in an environment where self-occlusion occurs, such as in-hand operation, it is possible to estimate at least one of the posture of an object and the posture of a control device that controls the object with high accuracy and efficiency. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a diagram for explaining an overview of an embodiment. [Diagram 2] FIG. 1 is a diagram for explaining an overview of NeRF. [Diagram 3] FIG. 1 is a schematic representation of P-NeRF. [Figure 4]A diagram showing an overview of scene representation and differentiable rendering using NeRF. [Diagram 5] FIG. 1 is a diagram illustrating an example of a P-NeRF network configuration. [Figure 6] 1 is a diagram illustrating an example of the configuration of a system according to a first embodiment and an overview of processing. [Figure 7] FIG. 2 is a diagram for explaining each coordinate system and transformation. [Figure 8] 1 is a diagram illustrating an example of the configuration of a posture estimation device according to a first embodiment. [Figure 9] 4 is a flowchart of a processing procedure for posture estimation according to the first embodiment. [Figure 10] 4 is a flowchart of a processing procedure for posture estimation according to the first embodiment. [Figure 11] 4 is a flowchart of a processing procedure for posture estimation according to the first embodiment. [Figure 12] 2 is a flowchart of a procedure for configuring an Occupancy Grid according to the first embodiment. [Figure 13] FIG. 2 is a diagram showing definitions of each coordinate system and a coordinate transformation matrix. [Figure 14] FIG. 11 is a diagram showing an overview of processing according to the second embodiment. [Figure 15] 13 is a flowchart of a processing procedure for posture estimation according to the second embodiment. [Figure 16] 13 is a flowchart of a processing procedure for posture estimation according to the second embodiment. [Figure 17] 13 is a flowchart of a procedure for configuring an Occupancy Grid according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the drawings used in the following description, the scale of each component is appropriately changed so that each component is of a recognizable size. In addition, in all the drawings for explaining the embodiments, the same reference numerals are used for the parts having the same functions, and the repeated explanation is omitted. In addition, "based on XX" in this application means "based on at least XX," and includes cases where it is based on other elements in addition to XX. Furthermore, "based on XX" is not limited to cases where XX is used directly, but also includes cases where it is based on XX that has been calculated or processed. "XX" is any element (for example, any information).
[0017] (Overview of the embodiment) FIG. 1 is a diagram for explaining an overview of the embodiment. In the example of FIG. 1, a robot rob grasps a target object obj in a work environment as an example of a task. The robot rob is, for example, a robot hand equipped with two or more fingers. In such a work environment, an environment stat (including background) also exists. In the embodiment, a Neural Radiance Fields (NeRF) representation is learned in advance for each of the environment, the robot hand, and the target object. Note that NeRF will be described later. In the embodiment, the NeRF representation is used for each of the environment stat, the robot rob, and the target object obj. Note that F θ* is an MLP (Multi Layer Perceptron).
[0018] It is assumed that the reference coordinates of the environment and the robot hand are the same or that the coordinate transformation matrix is known. The robot hand and the actual camera posture can be calculated, for example, by camera calibration or the detection value of the encoder equipped in the robot hand. In addition, Eigen NeRF, which will be described later, is used to represent the robot hand as a NeRF.
[0019] (Overview of NeRF) Next, we will explain the outline of NeRF. NeRF is a method proposed mainly to realize the task of generating an image from an arbitrary (new) viewpoint from images from multiple viewpoints (called novel view synthesis). Figure 2 is a diagram for explaining the outline of NeRF. NeRF uses a position vector x →=(x,y,z) and a direction vector d indicating the line of sight when observing the scene from that viewpoint. → When θ = (θ,φ) is specified, N sampling points are defined along the line of sight, and a color vector c → = (R,G,B) and color density σ. → represents a vector (shown in bold in diagrams and formulas). For example, x represents width in three-dimensional space, y represents depth, and z represents height. One of θ and φ represents the elevation angle, and the other of θ and φ represents the azimuth angle. R represents the color red, G represents the color green, and B represents the color blue.
[0020] Figure 3 shows an overview of scene representation and differentiable rendering using NeRF. θ ) receives five-dimensional input (position and line of sight) from the observed image g11, outputs RGB and color density σ, and synthesizes a rendering image g12 along the camera ray. The loss function L is the C(r → ) and C^(r → ) is the sum of the differences between C(r → ) is the color seen from the focus of ray r, and is the integral of the color and density over the ray. In NeRF, a 3D object is rendered as an image using volume rendering, and the resulting image is compared with images in the training data to calculate a loss function, which is then minimized (see Reference 1 for an example). Rendering is performed using a differentiable renderer.
[0021] Reference 1; Ben Mildenhall, Pratul P. Srinivasan, :NeRF : Representing Scenes as Neural Radiance Fields for View Synthesis”, 10.48550 / arXiv.2003.08934 , 2020.
[0022] (Overview of Eigen NeRF) Next, we will explain the outline of Eigen NeRF. Figure 4 is a diagram showing a schematic diagram of P-NeRF. As shown in Figure 4, for P-NeRF, a high-dimensional vector γ(x → ), γ(d → ), γ(e → ) is input. In response to this, the P-NeRF calculates the color vector c → and density σ. The color vector c output by P-NeRF → and the density σ, another viewpoint image data is generated.
[0023] FIG. 5 shows an example of a P-NeRF network configuration. A P-NeRF (NeRF conditioned by the posture of the joints of the end effector) includes multiple hidden layers, as shown in FIG. 5. The hidden layers are FC (Fully Connected) layers, which output density σ and a color vector c → For example, the number of dimensions of each hidden layer may be 256, and the activation function may be ReLU.
[0024] The eigenvalue representation e is a dimensionally compressed vector with a constant dimensionality. → The P-NeRF conditioned by is expressed by the following equation (1). In the embodiment, the unique grasp representation e → A P-NeRF conditioned by is called an "Eigen NeRF (Eigengrasp-conditioned NeRF)".
[0025]
number
[0026] Eigen NeRF is a function of γ(x → ), γ(d → ), γ(e → ) is input, the color vector c → and density σ. The color vector c output by Eigen NeRF → and density σ in the line of sight (direction vector d→ ) and the position vector x → The image data of the scene from a different viewpoint is generated, which is the same as what would be obtained when observed from the three-dimensional position indicated by . For example, as a volume rendering, the line of sight (direction vector d → ) according to density to determine the pixel value in the other viewpoint image.
[0027] At each sample point on the ray r traveling in the 3D space, the color vector c of each sample point determined by NeRF is → From the density σ, the pixel value in the image space is determined by volume rendering. We will formulate this series of rendering procedures. To determine the color C(r) in the image space along the ray r, in volume rendering, the ray r passing through the three-dimensional space in which the object OB is located is shot along a direction d that determines a point in the image space. This direction d is determined from the camera parameters. The density σ(r → (t)) and color c(r → (t),d → ) with respect to t, the color on the image plane can be determined. Note that the parameter t is the camera position as the origin, and any point r(t) on the light ray r is in the direction d from the camera origin. → is a parameter that indicates how far the
[0028] In addition, in Eigen NeRF, in addition to the camera position and orientation (x, y, z, θ, φ) mentioned above, the position, roll, and pitch (x, y, z, roll, pitch, yaw) of each joint of the robot hand are used as input to the MLP (see, for example, Patent Application No. 2022-148974).
[0029] First Embodiment In this embodiment, Eigen NeRF is used for the robot hand, and NeRF representation is used for the target object. In this embodiment, what is desired to be obtained is, for example, the posture of the object as seen by the robot.
[0030] FIG. 6 is a diagram showing an example of the configuration of the system according to this embodiment and an overview of the processing. The light direction r of the camera 60 is an element of the set of light direction R (double-lined character). The joint j of the robot hand 50 is an element of the set of joint J of the robot hand 50 (double-lined character). → is the light direction vector. The position x of the camera 60 → is [xyz] T (T stands for inversion). The ray r is (x → ,d → )=(x,y,z,θ,φ). → is (R → The origin of the camera coordinates is O camera The origin of the robot coordinate system is O robot The origin of the coordinates of the target object obj is O object It is.
[0031] F of the first MLP for the robot hand 50 θ_robot The inputs are the position and direction of the camera 60 and parameters for each joint of the robot hand 50 (i is the joint number and is an integer between 1 and P), and the output is (r, g, b, σ). F of the second MLP for the target object obj θ_object The input of is (γ(x → )(G → )),(γ(d → )(G → )) and the output is (r,g,b,σ).
[0032] The outputs of these two MLPs are weighted and added to generate the rendered pixel image. The color of the rendered pixel image, C^(r → ) and the color C(r → The MLP is trained by backpropagation to minimize the loss function with
[0033] (Coordinate systems and transformations) However, in this embodiment, when multiple NeRFs are used, the coordinate systems are different, and therefore, conversion of the coordinate system is necessary. Fig. 7 is a diagram for explaining each coordinate system and transformation. As shown in Fig. 7, the working space of the robot hand 50 includes a coordinate system of the sensor (camera 60) (hereinafter also referred to as the "coordinate system of the external sensor"), a world coordinate system, a robot coordinate system, and a coordinate system of the target object.
[0034] world T robot is the transformation from world coordinates to robot coordinates. world T sensor is the transformation from world coordinates to sensor coordinates. robot T object is the transformation from robot coordinates to the target object coordinates. robot T sensor is the transformation from sensor coordinates to robot coordinates. object T sensor is the transformation from the object coordinates to the sensor coordinates.
[0035] Here, the position of the sensor as viewed from the robot coordinate system is known because it can be obtained by using the value of the encoder equipped in the robot hand 50, by using the iNeRF method, or by calibrating the relationship between the camera 60 and the robot hand 50 in advance. world T robot and, robot T sensor is known. Transformation from world coordinates to sensor coordinates world T sensor As shown in Figure 7, world T robot and robot T sensor It is known because it can be found by multiplying
[0036] In contrast, the transformation from robot coordinates to the coordinates of the target object robot T object is unknown. Also, the transformation from the target object coordinates to the sensor coordinates object Tsensor teeth, robot T object) -1 · robot T sensor It is required by robot T object Because it is unknown, object T sensor is also unknown. In this embodiment, the amount of movement of the robot coordinate system as viewed from the world coordinate system is estimated using a self-localization algorithm. For example, sensor odometry is used as the self-localization algorithm. Alternatively, the self-localization may be performed simultaneously with MAP generation, such as an Adaptive Monte Carlo Localization method using a Lidar sensor or Visual SLAM. An arbitrary design value is used as the offset value of the robot coordinate system. The sensor coordinate system as viewed from the robot coordinate system is calculated by forward kinematics and sensor mounting position calibration. In this embodiment, these two coordinate transformations are treated as known.
[0037] (Occupancy Grid Map) Here, we will provide an overview of the Occupancy Grid map. In the method using the Occupancy Grid, the space is divided into a two-dimensional grid, and the probability that an object exists in each grid (cell) is calculated sequentially. The grid size and parameters are preset (for example, see Reference 2).
[0038] Reference 2; Payam Nikdel, Richard Vaughan, “Recognizing and Tracking High-Level, Human-Meaningful Navigation Features of Occupancy Grid Maps”, arXiv:1903.03669v1 [cs.RO], 2019
[0039] In the configuration of the Occupancy Grid described later, the coordinates of the occupancy map are converted to the world coordinate system using the following formula (2). A O B (A is object,world,robot,B is object,world,robot) represents the occupancy map. Note that the transformation from robot coordinates to the target object coordinates robot T object Since is unknown, it is represented by adding "~" above T. The subscript in the upper left corner indicates the reference coordinate system.
[0040]
number
[0041] In addition, object O object is the occupancy map of the object in the object coordinate system reference. robot O robot is the occupancy map of the robot in the robot coordinate system reference. world O world is the occupancy map of the background in world coordinate system. rorld O r bject is the occupancy map of the object in the robot coordinate system. world O object is the occupancy map of the object in the world coordinate system. world O robot is the occupancy map of the robot in the world coordinate system.
[0042] The loss function L in this occupancy space interupt (G) (the second loss function) can be calculated using the following formula (3). The meaning of this formula is that the overlapping degree of objects is used as a loss function using an occupancy map.
[0043]
number
[0044] In addition, Ωrobot is the occupancy map O in the Occupancy Grid in world coordinates. robot In addition, x is the set of regions in which the robot exists. obj voxels.
[0045] In addition, the coordinate transformation G from the coordinates of the target object to the sensor coordinates → Loss function L by photomethic (G) (first loss function) is expressed by the following equation (4).
[0046]
number
[0047] In addition, C(*r → ) is the pixel value in the observed image, and C^(*r → ) is the pixel value in the rendered image. *r represents r in the * coordinate system.
[0048] In this embodiment, the loss function L photomethic (G) and loss function L interupt (G) is weighted and added and used in backpropagation.
[0049] (Posture estimation device) Fig. 8 is a diagram showing a configuration example of a posture estimation device according to this embodiment. As shown in Fig. 8, the posture estimation device 1 includes, for example, an Eigen NeRF model storage unit 11, a NeRF model storage unit 12, an external sensor 13, a posture estimation unit 14, an intention estimation unit 15, a motion generation unit 16, an internal sensor 17, a control unit 18, a drive unit 19, an actuator 20, and a storage unit 21.
[0050] The operation device that operates the operation target may include, for example, an Eigen NeRF model storage unit 11, a NeRF model storage unit 12, an external sensor 13, an intention estimation unit 15, a motion generation unit 16, an internal sensor 17 (camera 60), a control unit 18, a driving unit 19, an actuator 20, and a memory unit 21. The operation device may include a posture estimation unit 14.
[0051] The posture estimation device 1 is, for example, a robot hand including an arm and a hand including multiple fingers, a robot, etc. Note that the robot or the robot hand may have all or a part of the functions of the posture estimation device 1.
[0052] The Eigen NeRF model storage unit 11 stores a trained Eigen NeRF model related to the robot.
[0053] The NeRF model storage unit 12 stores a NeRF model relating to each object.
[0054] The external sensor 13 is, for example, a camera installed in the environment where the robot works, or a camera provided on the robot. The external sensor 13 is, for example, an RGB (red-green-blue) imaging device, and outputs the captured RGB image to the posture estimation unit 14.
[0055] The posture estimation unit 14 receives an RGB image from the external sensor 13 and receives joint angle information of the robot from the internal sensor 17. The posture estimation unit 14 renders a robot image using an Eigen NeRF model. The posture estimation unit 14 renders an object image using a NeRF model. The posture estimation unit 14 uses a differentiable renderer as a renderer that sequentially estimates at least one of the posture of the operation device and the posture of the operation target object, which maintains consistency between the actual data and the data obtained in the operating environment. The posture estimation unit 14 learns a neural three-dimensional representation of the operation device and a neural three-dimensional representation of each operation target object. The posture estimation unit 14 inputs data that combines the learning results using the occupied space to the renderer, thereby estimating at least one of the posture of the operation target object and the posture of the operation target object. The target of the physical simulator is an object having joints, such as a robot or a robot hand. The differentiable renderer is Eigen NeRF or NeRF. The processing by the posture estimation unit 14 will be described in detail later.
[0056] The intention estimation unit 15 generates a hand target posture by estimating the intention of the worker regarding the work based on the operation input information input by the worker. The intention estimation unit 15 outputs the generated hand target posture to the motion generation unit 16. For example, the worker may wear a data glove on his / her hand and move his / her hand to input the operation. The intention estimation method will be described later.
[0057] The motion generation unit 16 generates a trajectory sequence for the robot using the object posture information output by the posture estimation unit 14 and the hand target posture output by the intention estimation unit 15.
[0058] The internal sensor 17 is a sensor attached to each joint. The internal sensor 17 is a six-axis sensor attached to the fingertip. The internal sensor 17 is an encoder attached to an actuator.
[0059] The control unit 18 obtains a trajectory sequence from the motion generation unit 16, and receives detection values from the internal sensor 17. Using the received trajectory sequence and detection values, the control unit 18 generates motion instructions for driving an actuator so as to achieve a hand target posture, such as gripping a target object with the tip of the robot hand.
[0060] The drive unit 19 drives the actuator 20 in response to an operation instruction output by the control unit 18 .
[0061] The actuator 20 operates in response to driving by the driving unit 19. The actuator 20 is attached to, for example, the finger joints, palm joints, wrist, arm, etc. of the robot hand.
[0062] The storage unit 21 stores initial values, coordinate transformation formulas, loss function formulas, parameters, and the like.
[0063] (Intention Presumption) Next, the intention estimation method will be described. The intention estimation unit 15 estimates a task, which is the work content, using the acquired operation input information. The task is, for example, grasping an object, grasping and moving an object, grasping an object and placing it after moving it, etc. The intention estimation unit 15 performs intention estimation using, for example, the method of Patent Application No. 2021-058952. The intention estimation unit 15 may be equipped with a trained model. In this case, the intention estimation unit 15 may also estimate the target object based on, for example, the position information of the worker's fingertip and the gaze information of the operator. In this case, the worker performs the work by wearing an HMD (head mounted display) equipped with a gaze detection means in addition to the data glove for the operation input. In addition, the estimated task is, for example, a classification (taxonomy (see Reference 3)) of the work that the worker is about to perform.
[0064] Reference 3; Thomas Feix, Javier Romero, et al., “The GRASP Taxonomy of Human GraspTypes” IEEE Transactions on Human-Machine Systems (Volume: 46, Issue: 1, Feb.2016), IEEE, p66-77
[0065] (Procedure for posture estimation) Next, an example of a procedure for estimating the posture of a target object will be described. 9 to 11 are flowcharts of the processing procedure for pose estimation according to this embodiment.
[0066] (Step S101 ) The posture estimation unit 14 acquires an observation image from the external sensor 13 .
[0067] (Step S102) The pose estimation unit 14 performs known image processing on the acquired observed image to extract objects, and assigns an object label to each extracted object. The pose estimation unit 14 divides the observed image into regions for each object label.
[0068] (Step S103) The posture estimation unit 14 determines whether or not a target object exists. Note that the number of target objects is not limited to one, and may be two or more. If a target object exists (Step S104; YES), the posture estimation unit 14 proceeds to the process of Step S104. If a target object does not exist (Step S104; NO), the posture estimation unit 14 ends the process.
[0069] (Step S104) The posture estimation unit 14 acquires the posture of the external sensor 13 based on the robot coordinate system. Note that the posture of the external sensor 13 (camera) is obtained by optimization as described later. Of the following processes, posture estimation section 14 performs processes of steps S105 to S109 and steps S110 to S112, for example, in parallel.
[0070] (Step S105) The posture estimation unit 14 acquires, from the NeRF model storage unit 12, a NeRF model associated with the object label.
[0071] (Step S106) The orientation estimation unit 14 initializes the object orientation value.
[0072] (Step S107) The posture estimation unit 14 calculates a coordinate transformation matrix obj T sensor is obtained from the storage unit 21.
[0073] (Step S108) The posture estimation unit 14 converts each Ray (a straight line connecting a pixel from the sensor origin) that is an input to the NeRF model into a coordinate transformation matrix object T sensor The coordinate transformation matrix from the robot coordinate system to the object coordinate system is used to transform the Ray. Since Ray is based on the external sensor coordinate system, the Ray seen from the object coordinate system can be obtained by multiplying the obtained coordinate transformation matrix from the left. The coordinate transformation matrix from the unknown robot coordinate system to the object coordinate system is robot T object The inverse matrix of the external sensor coordinate system seen from the known robot coordinate system is robot T sensor A coordinate transformation matrix to the external sensor coordinate system as seen from the object coordinate system is obtained by multiplying the coordinate transformation matrix to the object coordinate system as seen from the robot coordinate system from the left. Since the coordinate transformation matrix to the object coordinate system as seen from the robot coordinate system is unknown, in this embodiment, it is initialized with an appropriate initial value. This initial value is corrected by an optimization calculation described later. As a result, the object coordinates as seen from the robot coordinate system and the external sensor coordinates as seen from the robot coordinate system are given. The object coordinates as seen from the robot coordinate system are corrected by an optimization calculation after appropriately determining the initial value. The external sensor coordinates as seen from the robot coordinate system are calculated, for example, by solving FK (Forward Kinematics). Here, the external sensor coordinates as seen from the object coordinate system can be obtained by multiplying the inverse matrix of the object coordinates as seen from the robot coordinate system by the transformation matrix of the external sensor coordinates as seen from the robot coordinate system from the left.
[0074] (Step S109) The pose estimation unit 14 inputs the coordinate-transformed Ray-based information to the NeRF model and renders an image of the target object. After the process, the pose estimation unit 14 proceeds to the process of step S113.
[0075] (Step S110) The posture estimation unit 14 acquires an Eigen NeRF model from the Eigen NeRF model storage unit 11.
[0076] (Step S111) The posture estimation unit 14 acquires from the internal sensor 17, for example, joint angles of the fingers and arm of the robot hand.
[0077] (Step S112) The posture estimation unit 14 inputs the acquired joint angles and information based on the image acquired from the external sensor to the Eigen NeRF model, and renders an image of the robot. After the processing, the posture estimation unit 14 proceeds to the processing of step S113.
[0078] (Step S113) The posture estimation unit 14 adds the rendering image of the object created in step S109 and the rendering image of the robot created in step S112. Note that x and d input to each MLP mean the external sensor position and posture based on each coordinate system by coordinate transformation. Note that in FIG. 14, G input to x and d input to the MLP of the object means a coordinate transformation matrix. In this case, it means a coordinate transformation matrix between the external sensor coordinates based on the robot coordinate system and the object coordinates based on the robot coordinate system. Note that it is necessary to input a coordinate transformation matrix between the external sensor coordinates based on the robot coordinate system and the world coordinates based on the robot coordinate system to the MLP of the background described later. If the estimated posture is correct, it is sufficient to simply add them together, or it is sufficient to multiply them by a weight before adding them together. Note that the weight is used to normalize σ output from each MLP.
[0079] (Step S114) The posture estimation unit 14 calculates a loss function L photomethic Calculate (G).
[0080] (Step S115) The posture estimation unit 14 configures an occupancy grid. The method of configuring the occupancy grid will be described later.
[0081] (Step S116) The posture estimation unit 14 calculates the loss function L interupt Then, in the same manner as in step S404 (FIG. 17) described later, coordinate conversion is performed so that the coordinate systems of the occupancy maps are made the same.
[0082] (Step S117) The posture estimation unit 14 estimates the object posture that minimizes the loss function based on the robot coordinate system. interupt (G) and the loss function L photomethic (G) is weighted and added. Note that posture estimation unit 14 repeats the process so that the loss function is minimized, for example, until the residual becomes smaller than a threshold value, as in the condition of step S119 (FIG. 13) described later.
[0083] (Step S118) The posture estimation unit 14 determines whether or not the processing for all the detected target objects has been completed. If the processing for all the detected target objects has been completed (S118; YES), the posture estimation unit 14 ends the processing. If the processing for all the detected target objects has not been completed (S118; NO), the posture estimation unit 14 returns to the processing of step S107.
[0084] (How to configure the Occupancy Grid) Next, an example of the procedure for configuring the Occupancy Grid will be described. FIG. 12 is a flowchart of the procedure for configuring an Occupancy Grid according to this embodiment.
[0085] (Step S201) Pose estimation unit 14 obtains an occupancy map of the target object in the object coordinate system.
[0086] (Step S202) The posture estimation unit 14 acquires an occupancy map of the robot in the robot coordinate system.
[0087] (Step S203) The pose estimation unit 14 performs coordinate conversion between the object occupancy map and the robot occupancy map based on the world coordinate system. Since the robot coordinates and the object coordinates are unknown, the pose estimation unit 14 provides initial values. The initial values are set using, for example, another object pose estimation method. For example, the pose estimation unit 14 uses the DenseFusion method (for example, Chen Wang, Danfei Xu, et al, “DenseFusion: 6D Object Pose Estimation by Iterative Dense Fusion”, <https: / / sites.google.com / view / densefusion> In conventional vision-based methods, the accuracy deteriorates due to self-occlusion, so it is expected that the accuracy can be improved by using the DenseFusion method.
[0088] (Example of camera pose estimation processing) Next, an example of camera posture estimation processing will be described with reference to Fig. 13. Fig. 13 is a diagram showing the definitions of each coordinate system and a coordinate transformation matrix.
[0089] Here, r in the world coordinate system is world r → i = world T sensor · sensor r → i The r in the robot coordinate system can be converted as follows: robot r → i = robot T sensor · sensor r → i The r of the object can be converted as follows: obj r → i = obj T sensor · sensor r →i It can be converted with: In addition, sensor r → i is a vector of pixel values of the observed image captured by the external sensor 13.
[0090] In Fig. 13, the unknown coordinate transformation from the robot coordinate system to the object coordinate system is performed. robot T ~ obj In addition, the unknown coordinate transformation from the object coordinate system to the sensor coordinate system is obj T ~ sensor In FIG. 13, vector is used in the same sense as Ray.
[0091] In this embodiment, as described above, the amount of movement of the robot coordinate system as viewed from the world coordinate system is estimated using a self-position estimation algorithm. In this embodiment, an arbitrary design value is used for the offset value of the robot coordinate system. In this embodiment, the sensor coordinate system as viewed from the robot coordinate system is calculated by forward kinematics and sensor mounting position calibration. That is, in this embodiment, coordinate transformation to the sensor coordinate system as viewed from the world coordinate system is obtained by calculation. Also, as described above, in this embodiment, the coordinate transformation matrix to the object coordinate system as viewed from the robot coordinate system is robot T object The inverse matrix of the above is the coordinate transformation matrix from the robot coordinate system to the sensor coordinate system. robot T sensor A coordinate transformation matrix to transform the object coordinate system into the sensor coordinate system is obtained by multiplying the matrix from the object coordinate system by . In this embodiment, these two coordinate transformations are treated as known. As explained with reference to FIG. world T robot and, robot T sensor、 world T sensor is known. In contrast, robot T object , object T sensor Since is unknown, in this embodiment, it is initialized to an appropriate initial value. This initial value is corrected by optimization calculation.
[0092] As described above, in this embodiment, the Eigen NeRF representation of the robot hand and the NeRF representation of the object are combined. In this embodiment, since multiple NeRF representations are used, rendering is performed after performing coordinate transformation. In this embodiment, data is combined using the occupied space and input to the renderer.
[0093] As a result, this embodiment makes it possible to estimate the pose of an object with high accuracy, efficiency, and at high speed if rendering is fast, even in an environment where self-occlusion occurs, such as in-hand operation. In addition, this embodiment can handle various combinations of objects because the NeRF representations of the robot hand and the object are learned separately and then combined.
[0094] <Second embodiment> In this embodiment, Eigen NeRF is used for the robot hand, and NeRF representation is used for the target object and background, as shown in Fig. 14. Fig. 14 is a diagram showing an overview of the processing according to this embodiment. For background, NeRF has (γ(x → ), γ(d → )) is input and (r, g, b, σ) is output. Then, the output of the Eigen NeRF of the robot, the output of the NeRF of the object, and the output of the NeRF of the background are added together to generate a rendering image. The NeRF model of the background is stored in, for example, the NeRF model storage unit 12.
[0095] (Procedure for posture estimation) Next, an example of a procedure for estimating the posture of a target object will be described with reference to FIGS. 15 and 16 are flowcharts of the processing procedure of posture estimation according to this embodiment. Note that the same steps as in the first embodiment are designated by the same reference numerals and will not be described.
[0096] (Steps S101 to S104) Posture estimation unit 14 performs the processes of steps S101 to S104. Of the following processes, posture estimation section 14 performs processes of steps S105 to S109, steps S110 to S112, and steps S301 to S304, for example, in parallel.
[0097] (Steps S105 to S109) Posture estimation unit 14 performs the process of steps S105 to S109. After the process, posture estimation unit 14 proceeds to the process of step S113.
[0098] (Steps S110 to S112) Posture estimation unit 14 performs the process of steps S110 to S112. After the process, posture estimation unit 14 proceeds to the process of step S113.
[0099] (Step S301) Pose estimation unit 14 acquires a NeRF model of the background from NeRF model storage unit 12, for example.
[0100] (Step S302) The posture estimation unit 14 calculates a coordinate transformation matrix world T sensor is obtained from the storage unit 21.
[0101] (Step S303) The posture estimation unit 14 converts each Ray, which is an input to the NeRF model, into a coordinate transformation matrix world T sensor The coordinates are converted to the world coordinate system using
[0102] (Step S304) Pose estimation unit 14 inputs information based on the image of external sensor 13 to the NeRF model and renders the background image. After processing, posture estimation unit 14 proceeds to processing of step S113.
[0103] (Step S113) The posture estimation unit 14 synthesizes the rendering image of the object created in step S109, the rendering image of the robot created in step S112, and the rendering image of the background created in step S304.
[0104] (Steps S114 to S119) The posture estimation unit 14 performs the processes of steps S114 to S119 (FIG. 11).
[0105] If an accurate external sensor position and orientation were input to each MLP, an image equivalent to the observed image (without brightness difference) would be synthesized. In contrast, in this embodiment, the coordinate system at the rendering stage is different for each MLP. In this embodiment, the coordinate transformation is indirectly linked, so that the rendered image is based on the viewpoint from the external sensor coordinates. If the estimated object orientation deviates from the true value, the coordinate transformation matrix also deviates, and as a result, the rendering result also has a large brightness difference from the observed image. In this embodiment, the brightness difference and the interference of the occupancy map are utilized to estimate the optimal object orientation.
[0106] (How to configure the Occupancy Grid) Next, an example of the procedure for configuring the Occupancy Grid will be described. FIG. 18 is a flowchart of the procedure for configuring an Occupancy Grid according to this embodiment.
[0107] (Step S401) Pose estimation unit 14 obtains an occupancy map of the target object in the object coordinate system.
[0108] (Step S402) Pose estimation unit 14 acquires an occupancy map of the target object in the object coordinate system.
[0109] (Step S403) The posture estimation unit 14 acquires an occupancy map of the robot in the robot coordinate system.
[0110] (Step S404) The posture estimation unit 14 performs coordinate conversion of the background occupancy map, the object occupancy map, and the robot occupancy map based on the world coordinate system. As in step S203 described above, the posture estimation unit 14 provides initial values since the robot coordinates and the object coordinates are unknown. The initial values are set using, for example, another object posture estimation method.
[0111] As described above, in this embodiment, in addition to the first embodiment, background image information is used and input to the NeRF model. Also, in this embodiment, the NeRF of the background is used to generate a rendering image.
[0112] As a result, according to this embodiment, the posture of the object can be estimated with high accuracy while taking the background into consideration. Also, according to this embodiment, in a static environment, the estimated posture is restricted by using interference with the background (i.e., other than the robot and the object), so the amount of calculation can be reduced. Note that if the background is not included, a process of removing the background from the observed image is added.
[0113] <Modification> In each of the above-described embodiments, an example has been described in which the posture of an object is estimated. However, the posture estimation device 1 may be configured to estimate the posture of, for example, a robot. For example, the occupancy map of a robot changes every time the joint angle of the robot changes. If the robot is modeled as a NeRF, the occupancy map does not change. If something other than what is modeled appears, the occupancy map may be configured based on the detection value of the external sensor 13.
[0114] In addition, a program for realizing all or part of the functions of the posture estimation device 1 of the present invention may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to perform all or part of the processing performed by the posture estimation device 1. In addition, the term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer system" also includes a WWW system equipped with a homepage providing environment (or display environment). The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" also refers to a storage device that holds a program for a certain period of time, such as 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.
[0115] The above program may also be transmitted from a computer system in which the program is stored in a storage device or the like to another computer system via a transmission medium, or by transmission waves in the transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has the 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. The above program may also be for realizing part of the above-mentioned functions. Furthermore, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0116] The above describes the form for carrying out the present invention using an embodiment, but the present invention is not limited to such an embodiment, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]
[0117] 1 ... Posture estimation device, 11 ... Eigen NeRF model storage unit, 12 ... NeRF model storage unit, 13 ... external sensor, 14 ... posture estimation unit, 15 ... intention estimation unit, 16 ... motion generation unit, 17 ... internal sensor, 18 ... control unit, 19 ... drive unit, 20 ... actuator, 21 ... memory unit, 50 ... robot hand, 60 ... camera
Claims
1. a posture estimation unit that uses a differentiable renderer as a renderer used for sequentially estimating at least one of the posture of the operation device and the posture of the operation target object, which maintains consistency between actual data and data obtained in the operating environment, learns a neural three-dimensional representation of the operation device and a neural three-dimensional representation of each of the operation target objects, and inputs data obtained by combining the respective learning results using an occupied space to the renderer, thereby estimating at least one of the posture of the operation target object and the posture of the operation device; A posture estimation device comprising:
2. the object in the operating environment is an object having a joint; The differentiable renderer is Eigen NeRF or NeRF; The posture estimation apparatus according to claim 1 .
3. The posture estimation unit is Obtain the orientation of the external sensor, a coordinate transformation matrix of an external sensor based on an object coordinate system is used to transform the coordinate system of each ray, which is a straight line connecting the origin of the external sensor with a predetermined pixel, into the object coordinate system, and inputs the transformed coordinate system to the renderer to render an image of the object to be operated; acquiring joint angle information of the operation device based on an operation device coordinate system and inputting the joint angle information to the renderer to render an image of the operation device; calculating a first loss function based on a luminance difference between a rendered image of the operation target object, an image of the operation device, and an observed image; calculating a second loss function indicating whether the operation target object is entering the occupied space of the operation device; adding the first loss function and the second loss function, and calculating a posture of the target object with which the related loss function is minimized based on a robot coordinate system; The posture estimation device according to claim 1 or 2.
4. The posture estimation unit is coordinate-transforming an occupancy map of the object to be operated based on a coordinate system of the object to be operated and an occupancy map of the operation device based on a coordinate system of the operation device into a world coordinate system; The posture estimation device according to claim 1 or 2.
5. the pose estimation unit learns a neural three-dimensional representation of a background, and inputs the learned neural three-dimensional representation of the background to the renderer, thereby estimating at least one of the pose of the object to be operated and the pose of the operation device; The posture estimation device according to claim 1 or 2.
6. the posture estimation unit performs coordinate transformation of a coordinate system of each Ray, which is a straight line connecting a predetermined pixel from an origin of an external sensor, into an external sensor coordinate system in a world coordinate system to render the image of the background; calculating a first loss function based on a luminance difference between a rendered image of the operation target object, an image of the operation device, an image of the background, and an observation image; The posture estimation apparatus according to claim 5 .
7. a posture estimation unit uses a differentiable renderer as a renderer used for sequentially estimating at least one of a posture of the operation device and a posture of the operation target object, which maintains consistency between the actual data and the data obtained in the operating environment, and learns a neural three-dimensional representation of the operation device and a neural three-dimensional representation of each of the operation target objects, respectively; the posture estimation unit estimates at least one of the posture of the operation target object and the posture of the operation device by inputting data obtained by combining the respective learning results using an occupied space to the renderer; Pose estimation method.
8. The posture estimation device's computer a differentiable renderer is used as a renderer for sequentially estimating at least one of the orientation of the operation device and the orientation of the operation target object, which maintains consistency between the actual data and the data obtained in the operating environment, and the neural 3D representation of the operation device and the neural 3D representation of each of the operation target objects are trained; inputting data obtained by combining the respective learning results using an occupied space into the renderer, thereby estimating at least one of the orientation of the object to be operated and the orientation of the operation device; program.
Citation Information
Patent Citations
Information processing apparatus, information processing method, and program
JP2024043785A
Deformable neural radiance fields
WO2022104299A1
Cited By
Information processing method, information processing system, and information processing program
WO2026094702A1
