Trajectory generating device, multi-link system and trajectory generating method

By combining information acquisition, end position estimation and limiting search unit methods, machine learning models are used to estimate the trajectory of the multi-link mechanism, which solves the problems of insufficient trajectory generation efficiency and optimization in the existing technology, and achieves a short time Generate efficient, fully optimized trajectories.

CN113290553BActive Publication Date: 2024-09-03DENSO CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110142172.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-05
Filing Date
2021-02-02
Publication Date
2024-09-03
Estimated Expiration
2041-02-02

AI Technical Summary

Technical Problem

Existing multi-link mechanism trajectory generation methods are difficult to generate appropriate and completely optimized trajectories in a short time, learning-based methods are difficult to learn appropriate trajectories, and search-based methods are difficult to quickly generate trajectories without completeness and optimality of solutions. Incompatible.

Method used

By combining the information acquisition unit, the end position estimation unit and the restriction search unit, a machine learning model is used to estimate the end position of the multi-link mechanism, and based on this, a search for interference-free joint states is performed to reduce the number of states processed, Improve learning convergence and search efficiency.

Benefits of technology

It achieves the generation of the trajectory of the multi-link mechanism in a shorter time, ensures the integrity and optimal compatibility of the solution, and improves the efficiency and accuracy of trajectory generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113290553B_ABST
    Figure CN113290553B_ABST
Patent Text Reader

Abstract

The invention relates to a trajectory generating device, a multi-link system and a trajectory generating method. A trajectory generating device comprises an information acquiring unit (100), a hand position estimating unit (110) and a restriction searching unit (130). The information acquiring unit is configured to acquire the position coordinates of an obstacle existing in the motion space of a robot arm. The hand position estimating unit is configured to estimate the hand position at a second time which is the next time of the first time by using a learning result of machine learning based on the following information: the position coordinates of the obstacle acquired by the information acquiring unit, the object joint state of the robot arm at the first time and the target joint state of the robot arm. The restriction searching unit is configured to search for a non-interference joint state of the robot arm where the obstacle does not interfere with the robot arm at the second time by using the hand position estimated by the hand position estimating unit as a restriction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a trajectory generating device, a multi-link system and a trajectory generating method for generating a multi-link mechanism. Background Art

[0002] A technology for generating a trajectory of a multi-link mechanism such as a robot arm is known. Patent document 1 discloses a technology for learning a behavior sequence of a robot's hand (end effector) to reach a target position while avoiding obstacles by learning a deep neural network (hereinafter, referred to as DNN). Hereinafter, a method of generating a trajectory of a multi-link mechanism using the learning results of machine learning will be referred to as a learning-based method. In addition, as a technology for generating a trajectory of a multi-link mechanism, a technology such as RRT (Rapidly Exploring Random Trees) is also known, which randomly searches and generates trajectories while considering the motion restrictions of the multi-link mechanism. Below, a method of randomly searching for trajectories and generating trajectories while considering the motion restrictions of the multi-link mechanism will be referred to as a search-based method.

[0003] Patent Document 1: JP 2019-5834 A Summary of the invention

[0004] In the search-based method, a more appropriate trajectory can be generated by spending time on the search, but it is difficult to generate an appropriate trajectory in a short time. On the other hand, the learning-based method can generate a more appropriate trajectory in a short time, but it is difficult to learn a learning result that can generate an appropriate trajectory. The reason is as follows. That is, the behavior output of the multi-link mechanism is a continuous value, and the multi-link mechanism has multiple axes. Therefore, it is necessary to process a multi-dimensional state space. Such a background greatly increases the number of motion patterns to be learned.

[0005] Here, by stratifying a complex problem into multiple sub-problems, the number of states processed in learning can be reduced. However, in stratification or hierarchization, if the granularity of the problem division is larger in the upper hierarchy, necessary information is removed, and problems that damage the completeness and optimality of the solution may arise. For example, as a problem of the completeness of the solution, there may be a problem that the target generated in the upper layer is unreachable in the lower hierarchy due to the structure of the joints with multi-link functions. In addition, as a problem of the optimality of the solution, it is taken into account that: due to the structure of the joints with multi-link functions, the target generated in the upper layer requires a large amount of detours relative to the shortest route in the lower layer.

[0006] An object of the present disclosure is to provide a trajectory generating device, a multi-link system, and a trajectory generating method, which enable generating the trajectory of a multi-link mechanism more easily and in a shorter time while achieving both completeness and optimality of the solution.

[0007] According to a first example of the present disclosure, a trajectory generating device is provided for generating a trajectory of a multi-link mechanism in a motion space. The multi-link mechanism is a machine mechanism in which a plurality of links are connected by joints as movable parts.

[0008] The trajectory generation device includes an information acquisition unit, an end position estimation unit, and a restriction search unit. The information acquisition unit is configured to acquire obstacle information about the position of an obstacle existing in the motion space of a multi-link mechanism. The end position estimation unit is configured to estimate the next end position of the end position at the second time as the next time of the first time based on the following information by using a learning result of machine learning, the end position being the position of the end effector of the multi-link mechanism: (i) the subject joint state of the multi-link mechanism at the first time, (ii) the target joint state of the multi-link mechanism, and (iii) the obstacle information acquired by the information acquisition unit; in the machine learning, the starting joint state of the multi-link mechanism, the target joint state of the multi-link mechanism, and the obstacle information are input, and the end position as the position of the end effector of the multi-link mechanism is output. The restriction search unit is configured to search for a non-interference joint state of the multi-link mechanism, in which the obstacle and the multi-link mechanism do not interfere with each other at the second time, while treating the next end position estimated by the end position estimation unit as a restriction.

[0009] According to a second example of the present disclosure, a trajectory generation method is provided, wherein at least one processor executes a computer-implemented trajectory generation method to generate a trajectory of a multi-link mechanism in a motion space. The multi-link mechanism is a machine mechanism in which a plurality of links are connected by joints as movable parts. The trajectory generation method includes: a position information acquisition step, an end position estimation step, and a restriction search step. The position information acquisition step acquires obstacle information related to the position of an obstacle existing in the action space of the multi-link mechanism. The end position estimation step estimates the next end position of the end position at a second time as the next time of the first time based on the following information by using a learning result of machine learning, the end position being the position of the end actuator of the multi-link mechanism: (i) the object joint state of the multi-link mechanism at the first time, (ii) the target joint state of the multi-link mechanism, and (iii) the obstacle information; in the machine learning, the starting joint state of the multi-link mechanism, the target joint state of the multi-link mechanism, and the obstacle information are input, and the end position as the position of the end actuator of the multi-link mechanism is output. The limit searching step searches for a non-interference joint state of the multi-link mechanism in which the obstacle and the multi-link mechanism do not interfere with each other at the second time while regarding the next end position as a limit.

[0010] According to the above configuration, machine learning inputs the starting joint state of the multi-link mechanism, the target joint state of the multi-link mechanism, and the obstacle information, and outputs the end position as the position of the end actuator of the multi-link mechanism. Such machine learning outputs an end position with a state number less than the state number of the joint state of the multi-link mechanism. Therefore, the hierarchicalization in which the end position is set to an intermediate state is applied to the case of outputting the joint state of the multi-link mechanism. Therefore, it is easier to make the learning converge than the case where the joint state of the multi-link mechanism is output without hierarchicalization. Since the result of such machine learning is used, it is easier to achieve learning than the result of machine learning using the joint state of the output multi-link mechanism. In addition, the learning result of machine learning enables estimation until the next end position; the next end position is used as a limit for searching the joint state at the next time. Therefore, it becomes possible to generate the next end position and the joint state as the trajectory of the multi-link mechanism. In addition, the learning result of machine learning enables estimation until the next end position. Therefore, it becomes possible to generate a trajectory that is easier to meet optimality in a shorter time than the case where the trajectory is generated only by searching without using machine learning.

[0011] In addition, since the end position is affected by all the joints of the multi-link mechanism, it can be said that important information for generating the trajectory of the multi-link mechanism is compressed. Therefore, even if stratification or layering is performed when the end position is set to an intermediate state, information for satisfying the completeness and optimality of the solution is hardly excluded, and the completeness and optimality of the solution are easily satisfied. In addition, with the next end position as a restriction, a non-interfering joint state of the multi-link mechanism is searched, in which the multi-link mechanism and the obstacle do not interfere with each other at the second time. By doing so, the trajectory of the multi-link mechanism is generated so that the completeness of the solution can be satisfied by searching. As a result, the trajectory of the multi-link mechanism can be generated more easily and in a shorter time, and the completeness and optimality of the solution can be made more compatible with each other.

[0012] According to a third example of the present disclosure, a multi-link system is provided, which includes the trajectory generation device of the first example and a multi-link mechanism. The multi-link mechanism is a machine mechanism in which a plurality of links are connected by joints as movable parts, and the multi-link mechanism is controlled to move along the trajectory generated by the trajectory generation device.

[0013] According to this, since the above-mentioned trajectory generation device is included, the trajectory of the multi-link mechanism can be generated more easily and in a shorter time. Therefore, both the completeness and optimality of the solution can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The purpose, features and advantages of the present disclosure will become more apparent from the following detailed description made with reference to the accompanying drawings. In the accompanying drawings:

[0015] Figure 1 is a diagram showing an example of a schematic configuration of a robot arm system according to a first embodiment;

[0016] Figure 2 is a diagram showing an example of a schematic configuration of a trajectory generating device;

[0017] Figure 3 is a diagram showing an example of a schematic configuration of an information acquisition unit;

[0018] Figure 4 is a diagram showing an example of an equation for calculating a hand orientation αt+1 at a second time;

[0019] Figure 5 is a flowchart showing an example of a sequence of trajectory generation related processing in a trajectory generation device;

[0020] Figure 6 is a diagram for explaining an example of obtaining a joint state only by a machine learning model as a comparative example;

[0021] Figure 7 is a diagram for explaining an example of obtaining a joint state by combining a machine learning model and a search;

[0022] Figure 8 is a diagram showing an example of a schematic configuration of a trajectory generating device according to a second embodiment;

[0023] Fig. 9 is a flowchart showing an example of a sequence of trajectory generation related processing in the trajectory generation device according to the second embodiment; and

[0024] Fig.10 : is a diagram showing an example of a schematic configuration of a trajectory generating device according to a third embodiment. DETAILED DESCRIPTION

[0025] Several embodiments of the disclosure will be described with reference to the accompanying drawings. For ease of explanation, in a number of embodiments, parts having the same functions as those of parts shown in the accompanying drawings used in the specification are given the same reference numerals, and descriptions of the same parts may be omitted. With respect to these parts given the same reference numerals, reference may be made to the descriptions of other embodiments.

[0026] (First Embodiment)

[0027] <Schematic Configuration of Robot Arm System 1>

[0028] The present embodiment will now be described with reference to the accompanying drawings. Figure 1 A robot arm system 1 according to a first embodiment will be described. Figure 1 As shown, the robot arm system 1 includes a trajectory generating device 10 and a robot arm 20. The robot arm system 1 corresponds to a multi-link system.

[0029] The robot arm 20 is a machine mechanism in which a plurality of links are connected by joints as movable parts. The robot arm 20 is an object of trajectory generation by the trajectory generation device 10. The joint type of the robot arm 20 can be a rotary joint, a linear joint, a spherical joint, etc. In the present embodiment, the joint of the robot arm 20 will be described as an example in which the joint is a rotary joint.

[0030] The robot arm 20 includes four joints ( Figure 1 The joints of the robot arm 20 can be moved by actuators such as motors provided for each joint. The robot arm 20 includes three links ( Figure 1, Li1, Li2, Li3 in FIG. 2 ). The connecting rod may also be referred to as an axis. The connecting rod of the robot arm 20 may be a rigid body. The robot arm 20 includes a hand 201. The hand 201 may also be referred to as an end effector. As described above, the robot arm 20 is a multi-link mechanism including a plurality of joints and connecting rods. Figure 1 The robot arm 20 shown is only an example. As long as the robot arm 20 has a multi-link mechanism, the number of joints and links may be the same as that of the robot arm 20. Figure 1 The example shown is different. For example, the robot arm 20 can be a six-axis vertical multi-jointed robot arm.

[0031] The base of the robot arm 20 is connected to the link Li1 through the joint Jo1. The link Li1 and the link Li2 are connected through the joint Jo2. The link Li2 and the link Li3 are connected through the joint Jo3. The link Li3 and the hand 201 are connected through the joint Jo4. The robot arm 20 changes the position and orientation of the hand 201 by moving each joint, thereby changing the joint angle.

[0032] The joint angle of joint Jo1 is the angle of link Li1 relative to the base part. The joint angle of joint Jo2 is the angle of link Lin2 relative to link Lin1. The joint angle of joint Jo3 is the angle of link Lin3 relative to link Lin2. The joint angle of joint Jo4 is the angle of hand 201 relative to link Lin3. The angle of hand 201 relative to link Lin3 corresponds to the orientation of hand 201. Hereinafter, the joint angles of joints Jo1 to Jo4 will be collectively referred to as joint states. The trajectory of the robot arm may be a series of joint states. Note that the trajectory of the robot arm may be different from a series of joint states as long as it is a physical quantity representing the motion trajectory of the robot arm that can be specified based on the joint states. For example, the trajectory of the robot arm may be a series of output values ​​of an actuator set in each joint.

[0033] The trajectory generation device 10 includes a CPU, a memory, an I / O, and a bus connecting them, and various processes are performed by the CPU executing a control program stored in the memory. The memory mentioned above is a non-transitory tangible storage medium that stores non-transitory computer-readable programs and data. The non-transitory tangible storage medium is implemented by a semiconductor memory, a magnetic disk, etc.

[0034] The trajectory generation device 10 performs processing related to the generation of the trajectory of the robot arm 20 (hereinafter, referred to as trajectory generation related processing). The trajectory generation device 10 generates a trajectory from the joint state of the robot arm 20 to the robot arm 20 for grasping an obstacle existing in the motion space ( Figure 1Then, the trajectory generating device 10 causes the robot arm 20 to move or operate along the generated trajectory. The details of the trajectory generating device 10 will be described below. The motion space refers to the space in which the robot arm 20 works.

[0035] <Schematic Configuration of Trajectory Generating Device 10>

[0036] Then, refer to Figure 2 10 is used to describe the schematic configuration of the trajectory generating device 10. Figure 2 As shown, the trajectory generation device 10 includes an information acquisition unit 100, a hand position estimation unit 110, a random number generation unit 120, a restriction search unit 130, and a movement command unit 140 as functional blocks. Note that the information acquisition unit 100, the hand position estimation unit 110, the random number generation unit 120, the restriction search unit 130, and the movement command unit 140 can also be set to be included in the controller. Note that the individual functions of the units 110, 120, 130, and 140 can be implemented by the following operations: (i) by configuring a CPU together with a memory including computer-readable instructions of the program as described above, or (ii) by configuring as a hardware circuit by one or more ICs, etc. alone without any CPU together with the memory, or (iii) by configuring as a combination of (a) a CPU together with a memory including computer-readable instructions in the program and (b) a hardware circuit by one or more ICs, etc. In the trajectory generation device 10, a trajectory can be generated by using a 3D model of an obstacle and a robot arm 20 instead of an actual obstacle and a robot arm 20 as an object.

[0037] The information acquisition unit 100 acquires information about obstacles and joint states of the robot arm 20. Figure 3 As shown, the information acquiring unit 100 includes a position information acquiring unit 101 , a joint state acquiring unit 104 and a dimension converting unit 105 .

[0038] The position information acquisition unit 101 acquires obstacle information about the position of an obstacle existing in the motion space of the robot arm 20. Hereinafter, an obstacle existing in the motion space of the robot arm 20 will be referred to simply as an obstacle. Figure 3 As shown, the location information acquisition unit 101 includes an environment information acquisition unit 102 and an abstraction unit 103 .

[0039] The environment information acquisition unit 102 acquires the position coordinates indicating the position of the obstacle in the three-dimensional space as obstacle information. That is, the environment information acquisition unit 102 acquires the position coordinates represented by the orthogonal coordinate system in the three-dimensional space as information about the position of the obstacle. For example, the origin of the orthogonal coordinate system may be a fixed point of the base portion of the robot arm 20. The environment information acquisition unit 102 may acquire the position coordinates of the obstacle by detecting the obstacle of a real object using a sensor such as a camera, or acquire the position coordinates of the obstacle in a simulation of the obstacle using a 3D model. The environment information acquisition unit 102 may be configured to acquire the position coordinates of the obstacle in the form of three-dimensional point cloud data (i.e., point group data).

[0040] The abstraction unit 103 converts the position coordinates of the obstacle in the form of 3D point cloud data acquired by the environment information acquisition unit 102 into 3D mesh data with less information. Specifically, the amount of information is reduced by collecting the position coordinates of the obstacle in the form of 3D point cloud data into one point per unit interval, and the unit interval has a position larger than the minimum position of the position coordinate.

[0041] The joint state acquisition unit 104 acquires the joint state of the robot arm 20. The joint state acquisition unit 104 can acquire the joint angles of the joints Jo1 to Jo4. The joint state acquisition unit 104 acquires the joint state of the robot arm 20 at each time (hereinafter, the object joint state). For example, when the time exists, the object joint state can be specified according to the current driving state of the actuator that moves the joint. The joint state acquisition unit 104 can acquire the joint state of the actual robot arm 20, or can acquire the joint state in the simulation using the 3D model robot arm 20. If the time is a future time after the current time, the joint state for the future time searched by the restricted search unit 130 described later can be acquired as the object joint state. The joint state acquisition unit 104 also acquires the final target joint state of the robot arm 20. The target joint state can be given by input by an operator or the like.

[0042] The dimension conversion unit 105 converts the joint state of the robot arm 20 acquired by the joint state acquisition unit 104 into three-dimensional mesh data in the same format as the three-dimensional mesh data converted by the abstraction unit 103. The dimension conversion unit 105 can convert the joint state of the robot arm 20 acquired by the joint state acquisition unit 104 into the three-dimensional mesh data by using the learning result of machine learning such as DNN (deep neural network). As a result, the position coordinates of the obstacle and the joint state of the robot arm 20 are unified into the same three-dimensional mesh data format. The dimension conversion unit 105 can use the learning result of machine learning, in which the joint state of the robot arm 20 is input and the three-dimensional mesh data is output. In machine learning, learning is performed on multiple different samples. The same applies to subsequent machine learning. The learning result is a machine learning model on which learning has been performed. For example, the learning result can be a discriminator on which learning has been performed. The same applies to subsequent.

[0043] The information acquisition unit 100 outputs (i) the three-dimensional mesh data of the position coordinates of the obstacle converted by the abstraction unit 103 and (ii) the three-dimensional mesh data of the joint state of the robot arm 20 converted by the dimension conversion unit 105 to the hand position estimation unit 110 to be described later. That is, the position coordinates of the obstacle and the joint state of the robot arm 20 are unified into a three-dimensional mesh data format and output to the hand position estimation unit 110.

[0044] Back to Figure 2 , the hand position estimation unit 110 estimates the position of the hand 201 of the robot arm 20 (hereinafter referred to as the hand position). The hand position corresponds to the end position. The hand position estimation unit 110 corresponds to an end position estimation unit. The hand position estimation unit 110 estimates the hand position at the next time (hereinafter referred to as the second time) by using a learning result of machine learning such as DNN, based on the position coordinates of the obstacle input from the information acquisition unit 100, the object joint state at a specific time (hereinafter referred to as the first time), and the target joint state. The time corresponding to the first time and the second time changes as the time as the object advances. When the first time is t, the hand position at time t+1 is estimated as the hand position at the second time. When the first time is t+1, the hand position at time t+2 is estimated as the hand position at the second time. The hand position at the second time corresponds to the next end position.

[0045] The hand position estimation unit 110 can use the learning result of machine learning in which the position coordinates of the obstacle, the starting joint state of the robot arm 20 (i.e., the starting joint state), and the joint state of the target of the robot arm 20 (i.e., the target joint state) are input, and the hand position of the robot arm 20 is output. An example of such machine learning can prepare different starts and targets for each of thousands of different layouts for dozens of environments. The layout can be such that several cubes of the same size are randomly arranged in the motion space so as not to overlap with the robot arm 20. For the start and the target, a joint state that can take a posture without interference with the obstacle can be randomly generated.

[0046] The position coordinates of the obstacle used for the machine learning, the starting joint state of the robot arm 20, and the target joint state of the robot arm 20 are unified into the same three-dimensional mesh data format. In a multi-link mechanism, the obstacle and the multi-link mechanism may have different coordinate systems. This situation may lead to a problem in which it is necessary to learn a difficult coordinate conversion rule from a three-dimensional orthogonal coordinate system (which is the coordinate system of the obstacle) to a joint coordinate system (which is the coordinate system of the robot arm 20). This problem makes it difficult for learning to converge. On the other hand, according to the above configuration, the learning convergence can be improved by unifying the coordinate system compared to the case where the coordinate systems are different. In addition, by adopting a mesh data format, the amount of data to be processed can be suppressed and the learning convergence can be improved.

[0047] In addition, the learning result of the machine learning used by the hand position estimation unit 110 can preferably be a learning result of supervised learning (i.e., learning with a teacher). The supervised learning is machine learning performed using the search results of a search that can reach a target joint state without interfering with an obstacle as teacher data. Interference refers to contact between an obstacle and the robot arm 20. The search can be performed using a path planning method such as RRT (Rapidly Exploring Random Trees). For example, the teacher data can use the obstacle position and the joint state at each time step of the trajectory of the robot arm 20, which has reached the target joint state without interfering with the obstacle.

[0048] The above configuration enables machine learning to implicitly learn the joint states of the robot arm 20 that satisfy (i) reaching and (ii) contact avoidance. Therefore, compared with the case of outputting the joint states of the robot arm 20, it is easier to satisfy the completeness of the solution while performing hierarchicalization with the hand position set to an intermediate state.

[0049] The random number generation unit 120 adds a random number as noise to at least one of the position coordinates of the obstacle, the object joint state, and the target joint state used by the hand position estimation unit 110 to estimate the hand position. That is, the noise is added to the input of the hand position estimation unit 110. For example, the random number can be a normally distributed random number. According to the above configuration, the influence of the randomness of adding the noise to the input of the hand position estimation unit 110 makes it possible to depart from the local solution earlier in the hand position estimation using the learning result. As a result, the processing time required for the hand position estimation unit 110 to estimate the hand position can be further shortened.

[0050] Note that the random number generation unit 120 is not limited to having a configuration in which noise is added to the input of the hand position estimation unit 110, but may have a configuration in which noise is added to the output of the hand position estimation unit 110. In this case, the random number generation unit 120 may be configured to add a random number as noise to the hand position estimated by the hand position estimation unit 110. Accordingly, the influence of the randomness by adding noise to the output of the hand position estimation unit 110 enables to depart from a local solution earlier in the hand position estimation using the learning result. As a result, the processing time required for the hand position estimation unit 110 to estimate the hand position can be further shortened.

[0051] The restriction search unit 130 searches for the interference-free joint state at the second time using the hand position estimated by the hand position estimation unit 110 as a restriction. The interference-free joint state is a joint state of the robot arm 20 in which the robot arm 20 and the obstacle do not interfere with each other. Note that the hand position estimated by the hand position estimation unit 110 is a hand position to which noise is added when the random number generation unit 120 adopts a configuration in which noise is added to the output of the hand position estimation unit 110. The same applies to the subsequent. As Figure 2 As shown, the restricted search unit 130 includes a hand orientation generation unit 131, an inverse kinematics calculation unit 132, an interference determination unit 133, a target arrival determination unit 134, a storage / correction unit 135 and a search suspension determination unit 136.

[0052] The hand orientation generation unit 131 generates an orientation at a second time (hereinafter, hand orientation) for the hand 201 taking the end position estimated by the hand position estimation unit 110. The hand orientation corresponds to the end orientation. The hand orientation generation unit 131 corresponds to the end orientation generation unit. The hand orientation generation unit 131 may preferably generate an orientation in which a change in the orientation is within a predetermined range based on the hand orientation at a first time that is a previous time of the second time, as the hand orientation for taking the hand position estimated by the hand position estimation unit 110 at the second time. As an example, when the hand orientation at the first time is αt, by Figure 4The equation shown calculates the hand orientation at the second time αt+1 and generates the hand orientation at the second time. Here, it is assumed that Figure 4 θ in is a random number satisfying -β<θ<β. β is a value that can be optionally set. This can impose restrictions on the continuity of the motion of the robot arm 20; therefore, the range for searching for the interference-free joint state can be limited to a realistic search range.

[0053] Note that the hand orientation generation unit 131 is not limited to having a configuration in which an orientation in which a change in orientation is within a predetermined range is generated as the hand orientation at the second time based on the hand orientation at the first time. For example, any one of the hand orientations that can be selected as the hand orientation may be randomly selected to generate the hand orientation at the second time.

[0054] According to the hand position estimated by the hand position estimation unit 110 and the hand orientation generated by the hand orientation generation unit 131, the inverse kinematics calculation unit 132 obtains the joint state of the robot arm 20 that satisfies the hand position and the hand orientation through inverse kinematics calculation. That is, through inverse kinematics calculation, the joint of the robot arm at the second time that satisfies the hand position at the second time estimated by the hand position estimation unit 110 and the hand orientation at the second time generated by the hand orientation generation unit 131 is obtained. As an example, a method using a Jacobian matrix may be used as the inverse kinematics calculation. The inverse kinematics calculation unit 132 corresponds to a joint state obtaining unit.

[0055] The interference determination unit 133 determines whether there is interference between the robot arm 20 having the joint state obtained by the inverse kinematics calculation unit 132 and the obstacle. The interference determination unit 133 may determine whether the robot arm 20 interferes with the obstacle, for example, by determining whether the robot arm 20 and the obstacle contact each other in simulation.

[0056] When the interference determination unit 133 determines that there is interference and the number of times the hand orientation is regenerated at the same time (hereinafter, the number of searches) is equal to or less than the specified number U, the hand orientation generation unit 131 regenerates the hand orientation. In this case, the inverse kinematics calculation unit 132 obtains the joint state of the robot arm 20 that satisfies the hand position and hand orientation through inverse kinematics calculation based on the hand position estimated by the hand position estimation unit 110 and the hand orientation regenerated by the hand orientation generation unit 131. Then, the interference determination unit 133 re-determines whether there is interference between the obstacle and the robot arm 20 having the joint state obtained by the inverse kinematics calculation unit 132. That is, the search for the interference-free joint state continues. In this case, the hand orientation generation unit 131 can change the value of the above θ within the range of satisfying -β<θ<β, and recalculate the hand orientation αt+1 at the second time to regenerate the hand orientation at the second time. The limit search unit 130 can count the number of searches. The number of searches corresponds to the counted number of end position generation. In this article, the specified number U is a value that can be set optionally.

[0057] When the interference determination unit 133 determines that there is no interference, the target arrival determination unit 134 determines whether the interference-free joint state searched by the restricted search unit 130 has reached the target joint state. When the joint state determined by the interference determination unit 133 as having no interference matches the target joint state, the target arrival determination unit 134 can determine that the interference-free joint state has reached the target joint state. On the other hand, when the joint state determined by the interference determination unit 133 as having no interference does not match the target joint state, it can be determined that the interference-free joint state has not reached the target joint state.

[0058] When the interference determination unit 133 determines that there is no interference, the storage / correction unit 135 stores the joint state determined by the interference determination unit 133 as having no interference as trajectory information in the memory of the trajectory generation device 10. In addition, the storage / correction unit 135 can store trajectory information from the initial joint state of the robot arm 20 corresponding to the start to the target joint state corresponding to the target. In this case, it is preferred to add trajectory correction as needed, such as a shortcut to replace the joint state each time from the start to the target. The term "shortcut" in this article means shortening the route from the start to the target. This makes it possible to further improve the optimality of the solution.

[0059] When the interference determination unit 133 determines that there is interference and the number of searches exceeds the specified number U, the search termination determination unit 136 terminates the search for the interference-free joint state. In this case, the hand position estimation unit 110 re-estimates the hand position at the second time as a different hand position, and then searches for the interference-free joint state again. When the hand position estimation unit 110 re-estimates the hand position at the second time, the hand position can be re-estimated until a different hand position is estimated based on the learning result of the machine learning with the same input. In addition, the random number generation unit 120 can change the noise added to the input or output, and the hand position estimation unit 110 can re-estimate the hand position at the second time as a different hand position. Accordingly, even if the search for the interference-free joint state is not completed no matter how many times the hand orientation is regenerated, the search can be terminated when the number of searches exceeds the specified number U. This can prevent the situation where the search for the interference-free joint state is not completed no matter how many times the hand orientation is regenerated.

[0060] As described above, when the interference determination unit 133 determines that there is no interference, the restricted search unit 130 ends the search for the interference-free joint state. In addition, when the interference determination unit 133 determines that there is interference, the number of searches, which is the number of regenerations of the hand orientation in the hand orientation generation unit 131, may be less than the specified number U. In this case, in the restricted search unit 130, the hand orientation generation unit 131 regenerates the hand orientation into a different hand orientation, and continues the search for the interference-free joint state. On the other hand, in the restricted search unit 130, when the number of searches exceeds the specified number U, the search for the interference-free joint state is terminated, the hand position estimation unit 110 re-estimates it as a different hand position, and then the search for the interference-free joint state is re-performed. Each search and storage of the interference-free joint state by the restricted search unit 130 corresponds to the generation of the trajectory of the robot arm 20.

[0061] To achieve movement of the robot arm 20 along the trajectory generated by the limit search unit 130, the movement command unit 140 sends a motion control signal to the actuators provided on the joints Jo1 to Jo4 of the robot arm 20. As a result, the robot arm 20 is controlled to move along the trajectory generated by the trajectory generation device 10.

[0062] <Trajectory Generation Related Processing in Trajectory Generation Device 10>

[0063] Next, we will use Figure 5 The flowchart of FIG. 1 is used to describe an example of a sequence of trajectory generation related processing in the trajectory generation device 10. The steps included in the trajectory generation related processing executed by the processor correspond to the execution of the trajectory generation method. For example, Figure 5 The flowchart may be configured to start when an operator or the like performs an operation input for starting trajectory generation.

[0064] First, in step S1, the information acquisition unit 100 acquires the position coordinates of the obstacle, the object joint state at the first time, and the target joint state. Step S1 corresponds to the position information acquisition step. In step S2, the hand position estimation unit 110 estimates the hand position at the second time as the next time by using the learning result of machine learning based on the following information: (i) the position coordinates of the obstacle acquired in S1, (ii) the object joint state at the first time, and (iii) the target joint state. Step S2 corresponds to the end position estimation step.

[0065] In S1 and S2, the time as the object is increased each time the sequence is repeated to return to S1. For example, when the first time is t1 and the second time is t+1, the first time is advanced to t+1 and the second time is advanced to t+2. Note that in S1, a configuration in which information on changes over time such as the state of the object joint at the first time is acquired again each time the sequence is repeated to return to S1 can also be adopted. In addition, in S1, the random number generation unit 120 adds noise to the input or output of the hand position estimation unit 110.

[0066] In step S3, the hand orientation generation unit 131 generates the hand orientation at the second time. In step S4, the inverse kinematics calculation unit 132 obtains the joint state of the robot arm 20 that satisfies the hand position and hand orientation through inverse kinematics calculation based on the hand position estimated in S2 and the hand orientation generated in S3.

[0067] In step S5, the interference determination unit 133 determines whether there is interference between the robot arm 20 having the joint state obtained in S4 and the obstacle. In step S6, when the interference determination unit 133 determines that there is no interference ("No" in step S6), the process proceeds to step S9. On the other hand, when the interference determination unit 133 determines that there is interference ("Yes" in S6), the process proceeds to step S7.

[0068] In step S7, when the number of searches, which is the number of times the hand orientation is regenerated at the same time, exceeds the specified number U ("Yes" in S7), the processing proceeds to step S8. On the other hand, when the number of searches is equal to or less than the specified number U ("No" in S7), the processing returns to S3. Thus, the hand orientation is regenerated as a different hand orientation, and the search for the non-interference joint state is continued. In step S8, the search termination determination unit 136 terminates the search for the non-interference joint state. Then, return to S1, re-estimate the hand position as a different hand position, and perform the search for the non-interference joint state again.

[0069] In step S9, the storage / correction unit 135 stores the joint state determined as non-interference in S5 as trajectory information in the memory of the trajectory generation device 10. The joint state determined as non-interference in S5 corresponds to the non-interference joint state that can be searched by the restriction search unit 130. In step S10, the target arrival determination unit 134 determines whether the non-interference joint state searched by the restriction search unit 130 has reached the target joint state.

[0070] In step S11, when the target arrival determination unit 134 determines that the interference-free joint state has reached the target joint state ("Yes" in S11), the trajectory generation related processing ends. When it is determined that the interference-free joint state has reached the target joint state, the storage / correction unit 135 can add trajectory corrections as needed, such as shortcuts to be replaced. Such shortcuts are used to replace the stored joint state each time from the initial joint state of the robot arm 20 to the target joint state. On the other hand, when the target arrival determination unit 134 determines that the interference-free joint state has not reached the target joint state ("No" in S11), the processing proceeds to step S12. In step S12, the time advances to the next time, and the processing returns to S1 to repeat the processing. For example, when the time is t, the time advances to t+1, and the processing returns to S1 to repeat the processing. At least a portion of the steps in S3 to S12 correspond to a restricted search step.

[0071] <Overview of First Embodiment>

[0072] Will refer to Figure 6 and Figure 7 The effects of the configuration of the first embodiment are described. Figure 6 is a diagram for explaining an example of obtaining joint states only through a machine learning model. Figure 7 is a diagram for illustrating an example of obtaining a joint state by combining a machine learning model and search.

[0073] Figure 6 The example of is an example of obtaining the joint state of the robot arm 20 by only inputting the target joint state and the joint state at the first time and outputting the joint state at the second time. If the machine learning model can make learning converge, it becomes possible to generate a more appropriate trajectory in a short time. However, in Figure 6 In the machine learning model shown, both the input and the output are the joint states of the robot arm 20 which is a multi-link mechanism. Therefore, the motion pattern to be learned becomes huge, and it is difficult to make the learning converge.

[0074] On the other hand, in the configuration of the first embodiment, as Figure 7As shown, in the upper layer, the hand position of the robot arm 20 is obtained instead of the joint state through the machine learning model; in the lower layer, the remaining joint states are searched with the hand position as a restriction. According to the configuration of the first embodiment, the upper layer uses a machine learning model that inputs the target joint state and the joint state at a first time and outputs the hand position at a second time. That is, compared with the case of outputting the joint state of the robot arm 20, stratification is performed with the hand position as an intermediate state. In the configuration of the first embodiment, by outputting the hand position having a state number less than the joint state, learning can be converged more easily than when the joint state is output. In the configuration of the first embodiment, since such a machine learning model is used, it is easier to converge learning than when using a machine learning model such as Figure 6 Such a machine learning model can be implemented more easily than the machine learning model of the output joint states shown.

[0075] According to the configuration of the first embodiment, the hand position until the second time is estimated at least by machine learning. Therefore, compared with the case where the trajectory of the robot arm 20 is generated only by searching without using machine learning, it becomes possible to generate a trajectory that is more likely to satisfy optimality in a shorter time.

[0076] In addition, since the position of the hand is affected by all the joints of the robot arm 20, it can be said that important information for generating the trajectory of the robot arm 20 is compressed. Therefore, even if stratification or hierarchization is performed with the hand position as an intermediate state, information for satisfying the completeness and optimality of the solution is hardly excluded, and the completeness and optimality of the solution can be easily satisfied.

[0077] The learning of the lower layer that needs to consider the entire joint state of the robot arm 20 is more difficult than the learning of the upper layer that only needs to store the relative relationship with the hand position with compressed information. On the other hand, in the configuration of the first embodiment, the joint state in the lower layer with high learning difficulty is obtained by searching with the hand position obtained in the upper layer as a restriction. In this search, the trajectory of the robot arm 20 is generated by searching for the non-interference joint state of the robot arm 20 at the second time where the robot arm 20 and the obstacle do not interfere with each other. Therefore, the search can satisfy the completeness of the solution. As a result, the trajectory of the robot arm 20 can be generated more easily and in a shorter time, and the completeness and optimality of the solution can be made more compatible with each other.

[0078] (Second Embodiment)

[0079] Although the first embodiment has shown a configuration in which only the final target joint state is used as the target joint state, it is not necessary to be limited to this. For example, such a configuration (hereinafter, the second embodiment) can be provided: in this configuration, the target joint state is a target joint state that serves as a sub-target before reaching the final target joint state (hereinafter, the sub-target state). For example, the sub-target state divides the joint state sequentially from the initial joint state to the final target joint state, and the last divided sub-target state can be the final target joint state. Note that the final target joint state can be configured to be distinguished from the sub-target state. However, the present embodiment will describe an example in which the final target joint state and the sub-target state are not distinguished.

[0080] Hereinafter, an example of the second embodiment will be described with reference to the drawings. The robot arm system 1 of the second embodiment is the same as the robot arm system 1 of the first embodiment except that it includes a trajectory generating device 10a instead of the trajectory generating device 10. The robot arm system 1 of the second embodiment also corresponds to a multi-link system.

[0081] Here, we will refer to Figure 8 An example of a schematic configuration of the trajectory generating device 10a is described below. Figure 8 As shown, the trajectory generating device 10a includes, as functional blocks, an information acquiring unit 100a, a hand position estimating unit 110, a random number generating unit 120, a restriction searching unit 130a, a movement command unit 140, and a sub-target estimating unit 150. The trajectory generating device 10a is the same as the trajectory generating device 10 of the first embodiment, except that the information acquiring unit 100a and the restriction searching unit 130a replace the information acquiring unit 100 and the restriction searching unit 130 and the sub-target estimating unit 150 is included.

[0082] The sub-goal estimation unit 150 obtains the probability distribution of the joint state of the robot arm 20 at the optional time based on the following information by using the learning result of machine learning: the position coordinates of the obstacle acquired by the information acquisition unit 100a, the initial joint state of the robot arm 20, and the final target joint state of the robot arm 20; in machine learning, the starting joint state of the robot arm 20, the target joint state of the robot arm, and the position coordinates of the obstacle are input, and the probability distribution of the joint state of the robot arm 20 at the optional time is output. As an example, here, CVAE (ConditionalVariational AutoEncoder) can be used as machine learning. In addition, in order to output the probability distribution, a normally distributed random number (0 to 1) can be added to the input.

[0083] In addition, the sub-goal estimation unit 150 performs clustering on the probability distribution of the joint state of the robot arm 20 at the optional time obtained. For example, the K-means method can be used as the clustering. Then, the sub-goal estimation unit 150 estimates the sub-goal state through the clustering, which is the target joint state as the sub-goal before reaching the final target joint state of the robot arm 20.

[0084] The information acquisition unit 100a acquires the sub-target state estimated by the sub-target estimation unit 150 as the target joint state. The hand position estimation unit 110 estimates the hand position at the second time using the sub-target state as the target joint state. Note that whenever the target arrival determination unit 134a described later determines that the sub-target state has been reached, the hand position estimation unit 110 can estimate the hand position at the second time by switching the sub-target state used for estimation to the next sub-target state. Here, the next sub-target state is the next sub-target state in the sequence of sub-target states arranged in order from the initial joint state of the robot arm 20 to the sub-target state of the final target joint state. The final target joint state is the sub-target state at the end of the sequence.

[0085] like Figure 8 As shown, the restriction search unit 130a includes a hand orientation generation unit 131, an inverse kinematics calculation unit 132, an interference determination unit 133, a target arrival determination unit 134a, a storage / correction unit 135, and a search suspension determination unit 136. The restriction search unit 130a is similar to the restriction search unit 130 of the first embodiment, except that the target arrival determination unit 134a is provided instead of the target arrival determination unit 134. When the interference determination unit 133 determines that there is no interference, the target arrival determination unit 134a determines whether the interference-free joint state searched by the restriction search unit 130a has reached a sub-target state.

[0086] In the trajectory generating device 10a, by sequentially switching the sub-target states until the final target joint state is reached, and the sub-target state estimated by the sub-target estimating unit 150 is the target joint state as the object, a series of processing of hand position estimation by the hand position estimating unit 110 and searching for interference-free joint states by the restricted search unit 130a is performed.

[0087] Here, we will use Fig. 9 An example of a sequence of trajectory generation related processing in the trajectory generation device 10a is described with reference to a flowchart of FIG. Execution of the steps included in this trajectory generation related processing by a processor also corresponds to execution of the trajectory generation method. Fig. 9 The flowchart may also be configured to start when an operation input for starting trajectory generation is made by an operator or the like.

[0088] First, in step S21, the information acquisition unit 100a acquires the position coordinates of the obstacle, the object joint state at the first time, and the target joint state. S21 also corresponds to the position information acquisition step. In step S22, similar to S2, the hand position estimation unit 110 estimates the hand position at the second time as the next time by using the learning result of machine learning based on the following information: the position coordinates of the obstacle acquired in S21, the target joint state St at the first time, and the target joint state. S22 also corresponds to the end position estimation step.

[0089] In S21 to S22, the time as the object is increased each time the sequence is repeated to return to S21. In S21, each time the sequence is repeated to return to S21, it can be configured so that information that changes with time, such as the object joint state St at the first time, is acquired again. In addition, in S21, the following configuration can be provided: this configuration makes it possible to reacquire the next sub-target state as the target joint state each time the interference-free joint state searched reaches a sub-target state other than the sub-target state as the final target joint state and returns to S21. Also in S21, preferably, the random number generation unit 120 adds noise to the input or output of the hand position estimation unit 110.

[0090] In steps S23 to S29, the same steps as S3 to S9 are performed. In step S30, the target arrival determination unit 134a determines whether the non-interference joint state searched by the restriction search unit 130a has reached the sub-target state.

[0091] In step S31, when the target arrival determination unit 134a determines that the interference-free joint state has reached the sub-target state ("Yes" in S31), the processing proceeds to step S33. On the other hand, when the target arrival determination unit 134a determines that the interference-free joint state has not reached the sub-target state ("No" in S31), the processing proceeds to step S32. In step S32, the time advances to the next time, and the processing returns to step S21 to repeat the processing.

[0092] In step S33, if it is determined that the sub-target state of the searched non-interference joint state is the final target joint state ("Yes" in S33), the trajectory generation related processing is terminated. On the other hand, when it is determined that the sub-target state of the searched non-interference joint state is not the final target joint state ("No" in S33), the processing proceeds to step S34. In step S34, the sub-target state as the target joint state is changed to the next target state of the sub-target state in which the search is completed, and the processing returns to S21 to repeat the processing. At least a part of the steps of S23 to S34 corresponds to the restricted search step.

[0093] The configuration of the second embodiment is the same as that of the first embodiment except that the target joint state is divided into a plurality of sub-targets for processing. Therefore, as in the first embodiment, the trajectory of the robot arm 20 can be generated more easily and in a shorter time, and the completeness and optimality of the solution can be made more compatible with each other.

[0094] In addition, according to the configuration of the second embodiment, the inverse kinematics calculations that take up several tens of percent of the processing time for generating the trajectory of the robot arm 20 are approximated by the learning results of machine learning. This can reduce the processing time. As a result, it becomes easier to generate the trajectory in a more realistic time.

[0095] According to the above configuration, the target joint state is divided into a plurality of sub-goals and processed. This makes it possible to further reduce the processing time required to generate the trajectory of the robot arm 20 while further improving the optimality of the solution. In particular, this effect is significant when the distance from the initial target state to the final target state of the robot arm 20 is long.

[0096] (Third Embodiment)

[0097] In the first embodiment, a configuration is described in which the joint state of the robot arm 20 satisfying the hand position and the hand orientation is obtained by inverse kinematics calculation based on the hand position estimated by the hand position estimation unit 110 and the hand orientation generated by the hand orientation generation unit 131. However, it is not necessary to be limited to this. For example, a configuration (hereinafter, a third embodiment) may be provided in which the learning result of machine learning that approximates the inverse kinematics calculation is used instead of the inverse kinematics calculation.

[0098] Hereinafter, an example of a third embodiment will be described with reference to the accompanying drawings. The robot arm system 1 according to the third embodiment is the same as the robot arm system 1 according to the first embodiment except that it includes a trajectory generating device 10b instead of the trajectory generating device 10. The robot arm system 1 of the third embodiment also corresponds to a multi-link system.

[0099] Here, we will refer to Fig.10 An example of a schematic configuration of the trajectory generating device 10b is described below. Fig.10 As shown, the trajectory generating device 10b includes, as functional blocks, an information acquiring unit 100, a hand position estimating unit 110, a random number generating unit 120, a restriction searching unit 130b, and a movement commanding unit 140. The trajectory generating device 10b is the same as the trajectory generating device 10 of the first embodiment, except that the restriction searching unit 130 is replaced by the restriction searching unit 130a.

[0100] like Fig.10As shown, the restricted search unit 130b includes a hand orientation generation unit 131, an inverse kinematics calculation approximation unit 132b, an interference determination unit 133, a target arrival determination unit 134, a storage / correction unit 135, and a search suspension determination unit 136. The restricted search unit 130b is the same as the restricted search unit 130 of the first embodiment, except that the inverse kinematics calculation approximation unit 132b replaces the inverse kinematics calculation unit 132.

[0101] The inverse kinematics calculation approximation unit 132b obtains the joint state of the robot arm 20 that satisfies the hand position and hand orientation by using the learning result of machine learning, according to the hand position at the second time estimated by the hand position estimation unit 110 and the hand orientation at the second time generated by the hand orientation generation unit 131; in machine learning, the combination of the hand position and hand orientation taken by the hand 201 is input, and the joint state of the robot arm 20 is output. The machine learning here can be configured using DNN, etc. The inverse kinematics calculation approximation unit 132b also corresponds to a joint state acquisition unit. The interference determination unit 133 determines whether there is interference between an obstacle and the robot arm 20 having the joint state determined by the inverse kinematics calculation approximation unit 132b.

[0102] The configuration of the third embodiment is the same as that of the first embodiment except that the learning result of machine learning that approximates the inverse kinematics calculation is used instead of the inverse kinematics calculation. Therefore, as in the first embodiment, the trajectory of the robot arm 20 can be generated more easily and in a shorter time, and the completeness and optimality of the solution can be made more compatible with each other.

[0103] In addition, according to the configuration of the third embodiment, the inverse kinematics calculations that take up several tens of percent of the processing time for generating the trajectory of the robot arm 20 are approximated by the learning results of machine learning. This can reduce the processing time. As a result, it becomes easier to generate the trajectory of the robot arm 20 in a more realistic time.

[0104] (Fourth Embodiment)

[0105] The above embodiment describes a configuration in which the random number generation unit 120 adds noise to the input or output of the hand position estimation unit 110. It is not necessarily limited to this. For example, the trajectory generation devices 10, 10a, and 10b may not include the random number generation unit 120, and may not add noise to the input or output of the hand position estimation unit 110.

[0106] (Fifth Embodiment)

[0107] The above embodiment has described the following configuration: in this configuration, when the number of searches, which is the number of times the hand orientation is regenerated at the same time, exceeds the specified number U, the search termination determination unit 136 terminates the search for the non-interference joint state. However, it is not necessary to be limited to this. For example, the trajectory generation device 10, 10a, 10b may not include the search termination determination unit 136, and may be configured not to terminate the search for the non-interference joint state based on the number of searches. In this case, the limit search unit 130, 130a, 130b may be configured not to count the number of searches.

[0108] (Sixth Embodiment)

[0109] The above-mentioned embodiment has described the following configuration: in this configuration, the position coordinates of the obstacle in the coordinate system and the joint state of the coordinate system of the robot arm 20 are unified into the same three-dimensional mesh data format. However, it is not necessary to be limited to this. For example, the position coordinates of the obstacle and the joint state of the robot arm 20 may not be unified in the same three-dimensional mesh data format. In this case, the information acquisition unit 100 may not include the abstraction unit 103 and the dimension conversion unit 105. Even if the position coordinates of the obstacle and the joint state of the robot arm 20 are not unified into the same three-dimensional mesh data format, the coordinate conversion rules from the obstacle coordinate system to the robot arm 20 coordinate system are learned. Therefore, the hand position estimation unit 110 can estimate the hand end position.

[0110] (Seventh Embodiment)

[0111] The above embodiment has described the following configuration: in this configuration, the trajectory generating device 10, 10a, 10b is provided with the movement command unit 140. However, it is not necessary to be limited to this. For example, the trajectory generating device 10, 10a, 10b may not include the movement command unit 140. In this case, a device different from the trajectory generating device 10, 10a and 10b may have the function of the movement command unit 140.

[0112] (Eighth Embodiment)

[0113] The above embodiment has described the following configuration: in this configuration, the trajectory generation device 10, 10a, 10b generates the trajectory of the robot arm 20. However, it is not necessarily limited to this. For example, the trajectory generation device 10, 10a, 10b may also be configured to generate the trajectory of a multi-link mechanism other than the robot arm 20.

[0114] Note that the present disclosure is not limited to the above-mentioned embodiments, and various modifications can be made within the scope of the present disclosure. The embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present disclosure. The controller and method described in the present disclosure in the above-mentioned embodiments can be implemented by one or more special-purpose computers. Such a computer can be created by the following operations: (i) by configuring a memory and a processor programmed to perform one or more specific functions presented in a computer program, or (ii) by configuring a processor provided by one or more special-purpose hardware logic circuits without a CPU, or (iii) by configuring (a) a memory and a processor programmed to perform one or more specific functions presented in a computer program and (b) a combination of a processor provided by one or more hardware logic circuits. The computer program can be stored in a tangible non-transitory computer-readable storage medium as an instruction to be executed by a computer.

Claims

1. A trajectory generating device configured to generate a trajectory of a multi-link mechanism in a motion space, wherein the multi-link mechanism is a machine mechanism in which a plurality of links are connected by joints as movable parts, The trajectory generating device comprises: an information acquisition unit (100) configured to acquire obstacle information regarding a position of an obstacle existing in the motion space of the multi-link mechanism; An end position estimating unit (110) is configured to estimate a next end position of an end position at a second time which is a next time to the first time, the end position being a position of an end effector of the multi-link mechanism, by using a learning result of machine learning based on the following information: the object joint state of the multi-link mechanism at the first time, the target joint state of the multi-link mechanism, and the obstacle information acquired by the information acquisition unit, In the machine learning: Inputting the starting joint state of the multi-link mechanism, the target joint state of the multi-link mechanism and obstacle information, and outputting the end position as the position of the end effector of the multi-link mechanism; as well as a restriction search unit (130, 130a, 130b) configured to search for a non-interference joint state of the multi-link mechanism in which the obstacle and the multi-link mechanism do not interfere with each other at the second time while regarding the next end position estimated by the end position estimation unit as a restriction, Wherein, the restricted search unit is configured to include: an end orientation generating unit configured to generate an end orientation, the end orientation being an orientation of the end effector to assume the next end position estimated by the end position estimating unit; a joint state obtaining unit configured to obtain a joint state of the multi-link mechanism satisfying the next end position estimated by the end position estimating unit and the end orientation generated by the end orientation generating unit; and an interference determination unit (133) configured to determine whether there is interference between the obstacle and the multi-link mechanism taking the joint state obtained by the joint state obtaining unit, in: In response to the interference determination unit determining that the interference does not exist, the restricted search unit is configured to end the search for the interference-free joint state; and In response to the interference determination unit determining that the interference exists, the restricted search unit is configured to determine whether a count number of end orientation generation is less than or equal to a specified number, the count number of end orientation generation being the count number of the end orientation regenerated by the end orientation generation unit, in: In a case where the number of counts generated by determining that the end orientation is less than or equal to the specified number in response to the interference determination unit determining that the interference exists, The end orientation is regenerated into a different end orientation by the restriction search unit using the end orientation generation unit, and the search for the non-interference joint state is continued by the restriction search unit, and In a case where the number of counts generated by determining that the end orientation is greater than the specified number in response to the interference determination unit determining that the interference exists, searching for the interference-free joint state while the limit search unit stops considering the next end position as a limit, the next end position is re-estimated by the end position estimating unit as a different next end position, and Then, the limit search unit restarts searching for the interference-free joint state while considering the different next end position as a limit.

2. The trajectory generating device according to claim 1, further comprising: a target arrival determination unit (134, 134a) configured to determine whether the interference-free joint state searched by the restricted search unit has reached the target joint state, in: While time is sequentially advanced, a series of processes of estimating the next end position by the end position estimation unit and searching for the interference-free joint state by the restriction search unit are repeated until the target arrival determination unit determines that the interference-free joint state searched by the restriction search unit has reached the target joint state.

3. The trajectory generating device according to claim 1, wherein: The end orientation generation unit is configured to generate the end orientation at the second time for taking the next end position estimated by the end position estimation unit, so that the change of the end position at the second time according to the orientation of the end actuator at the first time is within a predetermined range.

4. The trajectory generating device according to claim 1 or claim 3, further comprising: A random number generating unit (120) is configured to add a random number as noise to at least one of the three based on which the end position estimating unit estimates the next end position, the first of which is the obstacle information, the second of which is the object joint state, the third of which is the target joint state, or the next end position estimated by the end position estimating unit.

5. The trajectory generating device according to claim 1 or claim 3, wherein: The joint state obtaining unit is configured to obtain a joint state of the multi-link mechanism satisfying the next end position estimated by the end position estimating unit and the end orientation generated by the end orientation generating unit by using inverse kinematics calculation.

6. The trajectory generating device according to claim 1 or claim 3, wherein: the joint state obtaining unit being configured to obtain the joint state of the multi-link mechanism satisfying the next end position estimated by the end position estimating unit and the end orientation generated by the end orientation generating unit by using a learning result of machine learning, In the machine learning, A combination of positions and orientations that the end effector is allowed to assume is allowed as input, and The joint states of the multi-link mechanism are output.

7. The trajectory generating device according to any one of claims 1 to 3, further comprising: A sub-goal estimation unit (150) is configured to estimate the sub-goal state as the target joint state as a sub-goal by the following operations until the final target joint state of the multi-link mechanism is reached: using a learning result of machine learning and a probability distribution of joint states of the multi-link mechanism at a selectable time, in which a starting joint state of the multi-link mechanism, a target joint state of the multi-link mechanism, and obstacle information of the obstacle are input, and clustering the probability distribution of the joint states of the multi-link mechanism at the optional time, the probability distribution being obtained based on the initial joint states of the multi-link mechanism, the final target joint states of the multi-link mechanism, and the obstacle information acquired by the information acquisition unit, in: By sequentially switching the sub-target states until the final target joint state is reached, and at the same time regarding the sub-target state estimated by the sub-target estimation unit as the target joint state, a series of processes are performed in which the end position estimation unit estimates the next end position and the restriction search unit (130a) searches for the interference-free joint state.

8. The trajectory generating device according to any one of claims 1 to 3, wherein: The information acquisition unit is configured to include: A position information acquisition unit (101) configured to acquire three-dimensional mesh data of the obstacle information by converting the position coordinates of the obstacle into a format of three-dimensional mesh data; and a dimensional conversion unit (105) configured to provide three-dimensional mesh data of the joint state of the multi-link mechanism by converting the joint state into a format of the three-dimensional mesh data, in: The end position estimating unit is configured to estimate the next end position based on the following information by using a learning result of machine learning: the three-dimensional mesh data of the obstacle information, the three-dimensional mesh data of the object joint state at the first time, and the three-dimensional mesh data of the target joint state, In the machine learning, inputting the three-dimensional mesh data of the obstacle information, the three-dimensional mesh data of the target joint state of the multi-link mechanism, and the three-dimensional mesh data of the start joint state of the multi-link mechanism in a unified format of the three-dimensional mesh data, and An end position is output as the position of the end effector of the multi-link mechanism.

9. A multi-link system comprising: The trajectory generating device (10, 10a, 10b) according to any one of claims 1 to 8; as well as A multi-link mechanism is a mechanical mechanism in which a plurality of links are connected by joints as movable parts, and is controlled to move along the trajectory generated by the trajectory generating device.

10. A computer-implemented trajectory generation method, the trajectory generation method being executed by at least one processor to generate a trajectory of a multi-link mechanism in a motion space, the multi-link mechanism being a machine mechanism in which a plurality of links are connected by joints as movable parts, The trajectory generation method comprises: Obtaining obstacle information related to a position of an obstacle existing in a motion space of the multi-link mechanism; estimating a next end position of an end position at a second time that is a next time to the first time based on the following information by using a learning result of machine learning, the end position being a position of an end effector of the multi-link mechanism: an object joint state of the multi-link mechanism at the first time, a target joint state of the multi-link mechanism, and the obstacle information; In the machine learning, a starting joint state of the multi-link mechanism, a target joint state of the multi-link mechanism, and the obstacle information are input, and the end position as the position of an end effector of the multi-link mechanism is output; searching for a non-interference joint state of the multi-link mechanism in which the obstacle and the multi-link mechanism do not interfere with each other at the second time while considering the next end position as a limit; generating an end orientation, the end orientation being an orientation of the end effector to assume the next end position; Obtaining a joint state of the multi-link mechanism that satisfies the next end position and the end orientation; as well as determining whether there is interference between the obstacle and the multi-link mechanism taking the joint state, in: In response to determining that the interference does not exist, ending the search for the interference-free joint state; and In response to determining that the interference exists, determining whether a count number of end orientation generation is less than or equal to a specified number, the count number of end orientation generation being the count number of regenerated end orientations, in: In the case where the number of counts generated by determining that the end orientation is less than or equal to the specified number in response to determining that the interference exists, regenerating the end orientation to a different end orientation and continuing the search for the non-interfering joint state, and In the case where it is determined that the number of counts generated by the end orientation is greater than the specified number in response to determining that the interference exists, searching for the interference-free joint state while ceasing to regard the next end position as a limit, The next end position is re-estimated as a different next end position, and Then, the search for the interference-free joint state is restarted while considering the different next end position as a limit.