1. Field of the Invention
The present invention relates to a trajectory planning method, a trajectory planning system and a trajectory planning and control system in which a sequence of states of an object up to the goal state is generated.
2. Background Art
For example, assume that goal states of arms of a robot are realized by controlling torques around joints of the arms based on a trajectory planning. When positions and angles alone of the arms are handled in the trajectory planning, torques around the joints cannot be controlled. In order to control torques around the joints, a trajectory planning of a state space (phase space) which includes angles and angular velocities of the arms has to be generated.
As a method for handling state transitions in the phase space, there is a method using Rapidly-Exploring Random Tree (RET) (S. M. LaValle and J. J. Kuffner: “Randomized Kinodynamic Planning,” Journal of Robotics Research, Vol. 20, No. 5, pp. 378-400, (2001)). However, since RRT is a stochastic method, minimum-cost motion cannot necessarily be realized. Further, there is a method which has been proposed by Tazaki and in which quantization of the state space is utilized (Y. Tazaki and J. Imura: “Approximately Bisimilar Discrete Abstractions of Nonlinear Systems Using Variable-resolution Quantizers,” American Control Conference, pp. 1015-1020, (2010)). However, this method does not handle transitions in a continuous manner and the assumption of high linearity is required. Accordingly, applications of the method are limited to certain types of machines alone.
Under the situation, a motion planning method which uses division of the phase space and merging of branches of the search tree and by which quasi-minimum-cost motion can be planned through continuous search has been proposed by some of the inventors (C. H. Kim, H. Tsujino and S. Sugano: “Rapid Short-Time Path Planning for Phase Space,” Journal of Robotics and Mechatronics, Vol. 23, No. 2, (2011)). By the method, quasi-minimum-cost motion from a given initial state to a set of goal states under constraints can be planned in a short time period through continuous search. However, in this method, the phase space is divided uniformly along each axis and a size of cell is determined individually by the designer. Further, an effective method of division by which motion costs are minimized has not been realized.
Thus, a trajectory planning method, a trajectory planning system and a trajectory planning and control system by which the state space can be divided such that motion costs are minimized and quasi-minimum-cost motion can be planned with a higher accuracy have not been developed.
Accordingly, there is a need for a trajectory planning method, a trajectory planning system and a trajectory planning and control system by which the state space can be divided such that motion costs are minimized and quasi-minimum-cost motion can be planned with a higher accuracy.
A trajectory planning method according to the first aspect of the present invention is a trajectory planning method for obtaining a trajectory for controlling a state of an object toward a goal state by a trajectory planning system. The method includes the steps of dividing, by a cell generating section for dividing a state space of the object into cells, the state space into cells in such a way that approximation error due to discretization is minimized for a predetermined number of cells; generating, by a search tree generating section, a search tree which corresponds to state transition of the object in such a way that each cell does not contain more than one of nodes of branches of the search tree, the nodes corresponding to states of the object; and determining, by a trajectory generating section, a path from the current state to the goal state of the object using the search tree.
In trajectory planning method according to the first aspect of the present invention, the state space is divided into cells in such a way that approximation error due to discretization is minimized for a predetermined number of cells. Accordingly, cost of motion is minimized and a quasi-minimum-cost trajectory can be planned with a higher accuracy.
In a trajectory planning method according to an embodiment of the present invention, in the step of dividing the phase space into cells, an approximation error of a cell is represented as an average of a distance between a state to which any point in the cell transfers when an input is given and a state to which the center of the cell transfers when the input is given and the approximation error due to discretization is minimized by minimizing a sum of approximation errors of the cells in the phase space.
According to the present embodiment, the approximation error due to discretization can be minimized with facility.
In a trajectory planning method according to another embodiment of the present invention, the step of dividing the phase space into cells includes a step of dividing the phase space into uniform basic cells, a step of dividing all the basic cells in such a direction as minimizes the approximation error of the cell, and a step of dividing and merging cells repeatedly to reduce a sum of approximation errors of the cells.
According to the present embodiment, the basic cells are divided in such a way that the approximation error of each basic cell is minimized and then cells are repeatedly divided and merged in order to globally reduce averaged approximation error of cells. Accordingly, the approximation error due to discretization can be minimized effectively.
A trajectory planning system according to the second aspect of the present invention is a trajectory planning system for obtaining a trajectory for controlling a state of an object toward a goal state. The trajectory planning system includes a cell generating section for dividing a state space of the object into cells in such a way that approximation error due to discretization is minimized; a search tree generating section for generating a search tree which corresponds to state transition of the object in such a way that each cell does not contain more than one of nodes of branches of the search tree, the nodes corresponding to states of the object; and a trajectory generating section for determining a path from the current state to the goal state of the object using the search tree.
In the trajectory planning system according to the second aspect of the present invention, the state space is divided into cells in such a way that approximation error due to discretization is minimized for a predetermined number of cells. Accordingly, cost of motion is minimized and a quasi-minimum-cost trajectory can be planned with a higher accuracy.
A trajectory planning and control system according to the third aspect of the present invention includes the trajectory planning system according to the second aspect of the present invention and a trajectory control section for realizing a trajectory determined by the trajectory planning system.
According to the trajectory planning and control system according to the third aspect of the present invention, a quasi-minimum-cost trajectory which is planned with a high accuracy by the trajectory planning system according to the second aspect of the present invention can be realized.
when the number of states (the final number of cells) is set to 204;
Motion of the double inverted pendulums 200 is determined by torques imposed on the first joint 205 and the second joint 207 and is represented by an angle of the first link 205 with respect to x axis θ1, an angle of the second link 211 with respect the first link 205 θ2 and angular velocities of them {dot over (θ)}1 and {dot over (θ)}2. Under the circumstances, a phase space as described below is adopted as the state space.
(θ1,θ2,{dot over (θ)}1,{dot over (θ)}2)
In step S005 in
In step S010 in
In step S020 in
In step S030 in
In step S040 of
The search tree generating section 101 determines to which cell in the phase space, each of the next states which have been derived belongs. Then, the search tree generating section 101 determines whether or not any state which belongs to the cell has already been registered as a node of a branch. If any state has not been registered, the process goes to step S045. If at least one state has already been registered, the process goes to step S060.
In step S045 of
In step S050 of
In step S060 of
In step S070 of
In step S080 of
In the above-described embodiment, the search tree generating section 101 regards the current state as the root of the search tree to be generated. In another embodiment, the search tree generating section 101 can regard the goal state as the root of the search tree to be generated.
In the trajectory planning method according to the present invention described in the present text of specification, the object is represented as double inverted pendulums 200 to simplify the description. However, the idea of merging branches using cells can be applied to a trajectory planning method in a state space of any object.
Operation of the cell generating section 103 will be described below. The cell generating section 103 generates cells by dividing the state space (phase space) in such a way that approximation error due to discretization is minimized for a predetermined number of cells. Discretization means merging of states using cells.
At first, approximation error will be described. Merging of states in step S040 in
x′=x(t+Δt)=F(x(t),u(t)) (1)
When a sequence obtained by search from a certain state (a point in the phase space) in a cell is approximated by a sequence obtained by search from the center xμ of the cell, a distance between state x(t+Δt) to which the certain state transfers after Δt when input u is given and state xμ(t+Δt) to which the center of the cell transfers after Δt when the same input u is given can be used for a scale of approximation error of the cell. A scale of approximation error of the cell for input u(t) can be represented by an average of a distance between a state to which any state in the cell transfers and a state to which the center xμ of the cell transfers, for the whole area within the cell χcell. A scale of approximation error of the cell can be represented as an average of the above-described scale of approximation error of the cell for input u(t), for a set U of all possible inputs as below.
In order to calculate the approximation error by Expression (2), F(x, u) is calculated for typical points in the cell and then the average is obtained in the present embodiment. As shown in
A method by which the cell generating section 103 generates cells by dividing the phase space using the approximation error of the cell obtained as described above will be described.
In step S1010 of
In step S1020 of
In step S1210 of
In step S1220 of
In step S1230 of
In step S1240 of
In step S1250 of
In step S1260 of
As described above, in step S1020 of
In step S1030 of
In step S1410 of
In step S1420 of
Δ
The first term on the right side of the equation represents the approximation error of the parent cell, while the second and third terms on the right side of the equation represent the approximation errors of the child cells. Suffix “i” represents that the division is performed in the direction of axis i.
In step S1430 of
In step S1440 of
In step S1450 of
In step S1460 of
In step S1470 of
As described above, in step S1030 of
In step S1020 of
Vcell
in the volume of the whole space.
Vspace
Then, a way of division is adjusted in such a way that a sum of the approximation errors in the whole space which is weighted by the above-described significance is minimized. To be precise, in the process, the sum of the approximation errors converges on a local solution.
Simulation experiments of the double inverted pendulums 200, which were carried out to check effects of the trajectory planning system of the present embodiment will be described below. A length and a mass of the first link 205 of the double inverted pendulums 200 are h and m1, respectively. The center of gravity 203 is positioned at the center of the link. A length and a mass of the second link 211 of the double inverted pendulums 200 are l2 and m2, respectively. The center of gravity 209 is positioned at the center of the link. Further, acceleration of gravity is represented as g.
Table 1 shows parameters of the double inverted pendulums 200.
The equations of motion of the double inverted pendulums 200 are represented as below.
(α+γ+2β cos θ2){umlaut over (θ)}1+(γ+β cos θ2){umlaut over (θ)}2−β(2{dot over (θ)}1+{dot over (θ)}2){dot over (θ)}2 sin θ2+k1 cos θ1+k2 cos(θ1+θ2)=τ1
(γ+2β cos θ2){umlaut over (θ)}{umlaut over (θ1)}+γ{umlaut over (θ)}2+γ{umlaut over (θ)}2+β{dot over (θ)}12 sin θ2+k2 cos(θ1+θ2)=τ2
α=I1+¼m1l12+m2l12
k1=(½m1l1+m2l1)g
β=½l1m2l2
k2=½m2l2g
γ=I2+¼m2l22
The coordinates are changed as shown below in order to facilitate the understanding of a relationship between joint angle and gravity.
Table 2 shows parameters of the trajectory planning system of the present embodiment.
In the simulator, the increment of time Δt is set to 50 milliseconds and the maximum time period of motion is set to 10 seconds. Assuming that cost of motion is time period of motion, quasi-minimum-time-period motion was obtained under various boundary conditions. Further, as a function representing distance, the following equation is defined.
wpi and wvi are weighting factors for respective axes. In the present simulation, for each joint wpi and wvi were set to 1.0 and 0.2, respectively.
In the present simulation, a first initial state in which both the first link 205 and the second link 211 are hanging and at rest and a second initial state in which both the first link 205 and the second link 211 are inverted and at rest are defined.
(q1,{dot over (q)}1)=(−π,0)
(q2,{dot over (q)}2)=(0,0)
(q1,{dot over (q)}1)=(0,0)
(q2,{dot over (q)}2)=(0,0)
In the present simulation, motions from the first and second initial states to a goal state which is sampled at random were planned and costs of motions, that is time periods of motions were obtained. Sample data including 100000 goal states were prepared and averaged time periods to the goal states were compared to one another under various conditions of division.
Further, length of cells was uniformly fixed in the attitude space and cells were non-uniformly divided in the velocity directions alone in the manner described above. The reason is that obstacles are represented as constraints in the attitude space and an influence on setting of distance parameters should be reduced. As length in each axial direction of the basic cells, the same value is set.
when the number of states (the final number of cells) is set to 204.
Thus, by the trajectory planning system and trajectory planning method according to the present invention, a motion with a smaller cost than any motion under the same number of states can be found with a higher accuracy. Further, the trajectory planning and control system according to the present invention including the trajectory planning system according to the present invention can realize a motion with a smaller cost by realizing a trajectory generated by the trajectory planning system according to the present invention, using feedback control or the like. The essence of the present invention can be generally used for states of machines handled in the phase space, and therefore is applicable to a wide variety of fields, including of robots, automobiles, aircrafts, rockets and the like.
Number | Date | Country | Kind |
---|---|---|---|
2011-100919 | Apr 2011 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4829219 | Penkar | May 1989 | A |
5808887 | Dorst et al. | Sep 1998 | A |
5835684 | Bourne et al. | Nov 1998 | A |
5889926 | Bourne et al. | Mar 1999 | A |
6493607 | Bourne et al. | Dec 2002 | B1 |
6697707 | Peters, II | Feb 2004 | B2 |
8116908 | Ng-Thow-Hing et al. | Feb 2012 | B2 |
8185265 | Nagano | May 2012 | B2 |
8458715 | Khosla et al. | Jun 2013 | B1 |
20050149227 | Peters, II | Jul 2005 | A1 |
20080250875 | Khosla et al. | Oct 2008 | A1 |
20110172818 | Kim et al. | Jul 2011 | A1 |
20110231016 | Goulding | Sep 2011 | A1 |
Number | Date | Country |
---|---|---|
2006-031523 | Feb 2006 | JP |
2008-152600 | Jul 2008 | JP |
2009-211571 | Sep 2009 | JP |
2009-301455 | Dec 2009 | JP |
2010-155328 | Jul 2010 | JP |
WO 2007111252 | Oct 2007 | WO |
Entry |
---|
Steven M. LaValle et al., “Randomized Kinodynamic Planning”, The International Journal of Robotics Research 2001, vol. 20, No. 5, http://ijr.sagepub.com/content/20/5/378, May 1, 2001, pp. 378-400. |
Yuichi Tazaki et al., “Approximately Bisimilar Discrete Abstractions of Nonlinear Systems Using Variable-Resolution Quantizers,” 2010 American Control Conference, WdB07.3, Jun. 30-Jul. 2, 2010, pp. 1015-1020. |
Chyon Hae Kim et al., “Rapid Short-Time Path Planning for Phase Space,” Journal of Robotics and Mechatronics, vol. 23, No. 2, Feb. 7, 2011, pp. 271-280. |
Number | Date | Country | |
---|---|---|---|
20120277907 A1 | Nov 2012 | US |