1. Field of the Invention
The present invention relates to an apparatus capable of autonomously moving according to a movement plan, for example.
2. Description of the Related Art
As the functionality of robots is enhanced, robots have had more opportunities to carry a burden or induce a person to a destination, for example, and thus, there is an increasing demand for a technique that allows robots to move by avoiding contact with people around them. There has been proposed a technique that allows a robot to move by avoiding contact with a plurality of objects (obstacles) around it by taking into account the movement velocities of the objects (see “Planning and navigation by a mobile robot in the presence of multiple moving obstacles and their velocities”, Journal of the Robotics Society of Japan, Vol. 12, No. 7, pp. 1029-1037, 1994). According to this technique, in order to plan an optimum path for reaching a destination while avoiding contact between a robot and objects, prediction of the movement of each object and planning of a path that involves no contact between the robot and the objects based on the prediction are repeated in short cycles.
However, if a robot immediately changes the behavior in response to a change in the behavior of a person around it, such as a change of the movement velocity (including the direction) of the person, the change in the behavior of the robot can induce a change in the behavior of the person or another person, thereby increasing the possibility of contact between the robot and the people. For example, if the robot immediately moves to the left in response to a person facing the robot moving toward the right of the robot, the person or another person can change the movement direction in response to this to thereby increase the possibility of contact between them. In this case, it is difficult for the robot and the people around it to move in harmony.
Thus, an object of the present invention is to provide a mobile apparatus or the like that is capable of moving or acting by avoiding contact with an object, such as a person, while suppressing the possibility that the movement or action of the mobile apparatus induces a change in the behavior of the object.
According to a first aspect of the present invention, there is provided a mobile apparatus that has a control system, moves according to a first action plan element under the control of the control system, and adjusts a posture according to a second action plan element, in which said control system comprises: a first processing section which recognizes a current image of said mobile apparatus, a current image of an object, and an intermittent or continuous future image of the object, which is determined according to the behavior of the object and has a larger size than the current image thereof, as a reference spatial element, a first spatial element and a second spatial element having a larger size than the first spatial element, respectively, on a discriminant plane including at least a part of a representative point trajectory of said mobile apparatus determined based on said second action plan element; a second processing section which determines, based on the result of the recognition by the first processing section, whether or not there is a first spatial element that satisfies a contact condition that there is a possibility of contact with the reference spatial element on the discriminant plane; and a third processing section which assumes a second action plan element involving changing the representative point trajectory and makes the first processing section recognize the reference spatial element, the first spatial element and the second spatial element on a new discriminant plane including at least a part of the changed representative point trajectory and determine whether or not there is a first spatial element that satisfies the contact condition on the new discriminant plane under the assumption when the second processing section determines that there is a first spatial element that satisfies the contact condition on the discriminant plane, and sets a route that allows the reference spatial element to avoid contact with the second spatial element as the first action plan element on the discriminant plane including at least a part of the representative point trajectory not changed based on the result of the recognition by the first processing section when the second processing section determines that there is still a first spatial element that satisfies the contact condition on the new discriminant plane, and sets the assumed second action plan element as a new second action plan element when the second processing section determines that there is no first spatial element that satisfies the contact condition on the new discriminant plane.
The mobile apparatus according to the first aspect of the present invention recognizes a current image of the mobile apparatus, a current image of an object, and an intermittent or continuous future image of the object, which is determined according to the behavior of the object, as a “reference spatial element”, a “first spatial element” and a “second spatial element” on a discriminant plane, respectively. Since the intermittent or continuous future image of the object has a larger size than the current image of the object, the second spatial element is recognized on the discriminant plane as a spatial element having a larger size than the first spatial element. In other words, the first spatial element is recognized on the discriminant plane as a spatial element having a smaller size than the second spatial element. Here, the “discriminant plane” is a flat surface or a curved surface defined to two-dimensionally recognize the position, the shape and the size of the mobile apparatus or the like in the real space. “A discriminant plane” means “one discriminant plane” or “each discriminant plane of a group of discriminant planes”. The discriminant plane includes at least part of the representative point trajectory of the mobile apparatus determined based on the “second action plan element”. A “spatial element” on the discriminant plane is defined as a point, a segment, a region, a closed curve (a contour or a region) or the like on the discriminant plane. If an object is attached to the mobile apparatus and moves together with the mobile apparatus, for example, the mobile apparatus and the object are collectively recognized as the first spatial element on each discriminant plane.
Then, it is determined whether or not there is a first spatial element that satisfies the “contact condition” that there is a possibility of contact with the reference spatial element on the discriminant plane. If it is determined that there is a first spatial element that satisfies the contact condition, a second action plan element that involves changing the representative point trajectory is assumed. The reference spatial element, the first spatial element and the second spatial element are recognized again on a new discriminant plane including at least part of the representative point trajectory changed under the assumption. Furthermore, it is determined whether or not there is a first spatial element that satisfies the contact condition on the new discriminant plane.
If it is determined that there is still a first spatial element that satisfies the contact condition on the new discriminant plane, a route that allows the reference spatial element to avoid contact with the second spatial element on the discriminant plane including at least part of the representative point trajectory not changed is set as the “first action plan element”. Thus, in a situation where the mobile apparatus cannot avoid contact with the object by changing the posture, the route, which is the first action plan element, is changed. By following the route, which is the first action plan element, the mobile apparatus can continue to move while avoiding contact with the object.
On the other hand, if it is determined that there is no first spatial element that satisfies the contact condition on the new discriminant plane, the assumed new “second action plan element” is set. By changing the posture based on the second action plan element, the mobile apparatus can continue to move while avoiding contact with the object without changing the route, which is the first action plan element.
The frequency of changes of the route, which is the first action plan element, is reduced not only because the posture of the mobile apparatus can be changed to avoid contact with the object but also for the reason described below. That is, it is a requirement for changing the route that at least one of first spatial elements having relatively smaller sizes on the discriminant plane satisfies the contact condition. As a result, compared with a case where it is determined whether or not a spatial element having a larger size than the first spatial element, such as the second spatial element, satisfies the contact condition, the frequency of changes of the route, which is the first action plan element and, therefore, the frequency of changes in the movement direction or the like of the mobile apparatus are reduced. Therefore, the possibility that a change in the behavior of the mobile apparatus induces a change in the behavior of the object can also be reduced.
In particular, if each spatial element is recognized on each of a plurality of discriminant planes, and it is a requirement for changing the first action plan element that there is a first spatial element that satisfies the contact condition on any of the plurality of discriminant planes, the route can be changed at an appropriate frequency taking into account the three-dimensional shape and size of the mobile apparatus and the object. In general, the mobile apparatus and the object each have contour characteristics in which the shape and the size thereof vary with the position, such as the height from the floor surface. Thus, the shapes and the sizes of the mobile apparatus and the object at different positions can be reflected in the shape and the size (including the relative size of one spatial element with respect to the other spatial element) of the reference spatial element and the first spatial element recognized on the respective discriminant planes. Therefore, to prevent the mobile apparatus recognized as the reference spatial element from coming into contact with the object recognized as the first spatial element, the route as the first action plan element can be changed at an appropriate frequency taking into account the three-dimensional contour characteristics and the behavior, such as the position and the velocity, of the mobile apparatus and the object.
Furthermore, a route appropriate for preventing the mobile apparatus from coming into contact with the object with reliability is set for the reason described below. When setting a new route, a route that allows the reference spatial element to avoid contact with the second spatial element having a relatively large size on the discriminant plane is set as the new route. Therefore, compared with a case where the new route is set with reference to a spatial element having a smaller size than the second spatial element, such as the first spatial element, a route that allows the mobile apparatus to avoid contact with the object with reliability is set.
In particular, if each spatial element is recognized on each of a plurality of discriminant planes, and a route that allows the reference spatial element to avoid contact with the second spatial element on all of the plurality of discriminant planes is set as the first action plan element, a route appropriate for preventing the mobile apparatus and the object from coming into contact with each other can be set by taking into account the three-dimensional shapes and the sizes thereof.
In this specification, the expression that a constituent spatial element “recognizes” information means that the constituent spatial element performs any processing for preparing information for a required information processing, such as reading information from a storage device, such as a memory, retrieving information from a database, receiving information using a communication feature, performing measurement, estimation, calculation, setting, prediction or the like of required information from basic information retrieved or otherwise obtained, and storing information measured or otherwise obtained in a memory.
According to a second aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, said first processing section recognizes said reference spatial element, said first spatial element and said second spatial element on a first discriminant plane, which is a discriminant plane including at least a part of an upper end trajectory of a first part of said mobile apparatus, which is a representative point trajectory, said second processing section determines whether or not there is a first spatial element that satisfies the contact condition on the first discriminant plane based on the result of the recognition by the first processing section, and said third processing section assumes lowering of the upper end trajectory of the first part as the second action plan element when the second processing section determines that there is a first spatial element that satisfies the contact condition on the first discriminant plane.
According to a third aspect of the present invention, the mobile apparatus according to the second aspect of the present invention has, as said first part, a head on top of a base body capable of being inclined with respect to the vertical direction, and said third processing section sets, as the second action plan element, lowering of the upper end trajectory of the head by increasing the angle of inclination of the base body with respect to the vertical direction when the second processing section determines that there is a first spatial element that satisfies the contact condition on the first discriminant plane.
According to a fourth aspect of the present invention, the mobile apparatus according to the second aspect of the present invention has an arm extending from a base body as the first part, and said third processing section sets, as the second action plan element, lowering of the upper end trajectory of the arm by changing the posture of the arm when the second processing section determines that there is a first spatial element that satisfies the contact condition on the first discriminant plane.
According to the second to fourth aspects of the present invention, in the case where there is a possibility that the first part of the mobile apparatus comes into contact with an object, it is determined whether or not the mobile apparatus can avoid contact with the object by lowering the upper end trajectory of the first part (which may be a head (according to the third aspect) or an arm (according to the fourth aspect)). Specifically, when it is determined that there is a first spatial element that satisfies the contact condition on the discriminant plane including at least part of the upper end trajectory of the first part, a change of the second action plan element involving lowering of the upper end trajectory of the first part is assumed, and it is determined whether or not the contact condition is satisfied on the discriminant plane including at least part of the changed upper end trajectory of the first part.
If the result of the determination is negative, the route, which is the first action plan element, is changed as described above, and the second action plan element is not changed. The mobile apparatus can move to the target position while avoiding contact with the object by following the changed route, which is the first action plan element.
On the other hand, if the result of the determination is positive, the route, which is the first action plan element, is not changed, and the second action plan element is changed based on the assumption. The mobile apparatus can move to the target position while avoiding contact with the object by changing the posture according to the second action plan element while following the route, which is the first action plan element. Thus, the frequency of changes in the movement direction of the mobile apparatus can be reduced, and the possibility that a change in the movement direction of the mobile apparatus induces an unexpected change in the behavior of the object can be reduced.
According to a fifth aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, said first processing section recognizes said reference spatial element, said first spatial element and said second spatial element on a second discriminant plane, which is a discriminant plane including at least a part of a lower end trajectory of a second part of said mobile apparatus, which is a representative point trajectory, said second processing section determines whether or not there is a first spatial element that satisfies the contact condition on the second discriminant plane based on the result of the recognition by the first processing section, and said third processing section assumes raising of the lower end trajectory of the second part as the second action plan element when the second processing section determines that there is a first spatial element that satisfies the contact condition on the second discriminant plane.
According to a sixth aspect of the present invention, the mobile apparatus according to the fifth aspect of the present invention has, as said second part, a plurality of legs that extend from a base body and are repeatedly lifted up from and put down on a floor, and said third processing section sets, as the second action plan element, raising of the lower end trajectory of a leg of the plurality of legs that is lifted up from the floor when the second processing section determines that there is a first spatial element that satisfies the contact condition on the second discriminant plane.
According to a seventh aspect of the present invention, the mobile apparatus according to the fifth aspect of the present invention has an arm extending from a base body as the second part, and said third processing section sets, as the second action plan element, raising of the lower end trajectory of the arm by changing the posture of the arm when the second processing section determines that there is a first spatial element that satisfies the contact condition on the second discriminant plane.
According to the fifth to seventh aspects of the present invention, in the case where there is a possibility that the second part (which may be a plurality of legs (according to the sixth aspect) or an arm (according to the seventh aspect)) of the mobile apparatus comes into contact with an object, it is determined whether or not the mobile apparatus can avoid contact with the object by raising the lower end trajectory of the second part. Specifically, when it is determined that there is a first spatial element that satisfies the contact condition on the discriminant plane including at least part of the lower end trajectory of the second part, a change of the second action plan element involving raising of the lower end trajectory of the second part is assumed, and it is determined whether or not the contact condition is satisfied on the discriminant plane including at least part of the changed lower end trajectory of the second part.
If the result of the determination is negative, the route, which is the first action plan element, is changed as described above, and the second action plan element is not changed. The mobile apparatus can move to the target position while avoiding contact with the object by following the changed route, which is the first action plan element.
On the other hand, if the result of the determination is positive, the route, which is the first action plan element, is not changed, and the second action plan element is changed based on the assumption. The mobile apparatus can move to the target position while avoiding contact with the object by changing the posture according to the second action plan element while following the route, which is the first action plan element. Thus, the frequency of changes in the movement direction of the mobile apparatus can be reduced, and the possibility that a change in the movement direction of the mobile apparatus induces an unexpected change in the behavior of the object can be reduced.
According to an eighth aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, said first processing section recognizes said reference spatial element, said first spatial element and said second spatial element on a third discriminant plane, which is a discriminant plane including at least a part of a left or right end trajectory of a third part of said mobile apparatus, which is a representative point trajectory, said second processing section determines whether or not there is a first spatial element that satisfies the contact condition on the third discriminant plane based on the result of the recognition by the first processing section, and said third processing section assumes rightward or leftward shift of the left or right end trajectory of the third part as the second action plan element when the second processing section determines that there is the first spatial element that satisfies the contact condition on the third discriminant plane.
According to a ninth aspect of the present invention, the mobile apparatus according to the eighth aspect of the present invention has an arm extending from a base body as said third part, and said third processing section sets, as the second action plan element, rightward or leftward shift of the left or right end trajectory of the arm by changing the posture of the arm when the second processing section determines that there is a first spatial element that satisfies the contact condition on the third discriminant plane.
According to a tenth aspect of the present invention, the mobile apparatus according to the eighth aspect of the present invention has, as said third part, a plurality of legs that extend from a base body and are repeatedly lifted up from and put down on a floor, and said third processing section sets, as the second action plan element, rightward or leftward shift of the left or right end trajectory of the plurality of legs when the second processing section determines that there is a first spatial element that satisfies the contact condition on the third discriminant plane.
According to the eighth to tenth aspects of the present invention, in the case where there is a possibility that the third part (which may be an arm (according to the ninth aspect) or a plurality of legs (according to the tenth aspect)) of the mobile apparatus comes into contact with an object, it is determined whether or not the mobile apparatus can avoid contact with the object by shifting rightward or leftward the left or right end trajectory of the third part. Specifically, when it is determined that there is a first spatial element that satisfies the contact condition on the third discriminant plane including at least part of the left or right end trajectory of the third part, a change of the second action plan element involving rightward or leftward shift of the left or right end trajectory of the third part is assumed, and it is determined whether or not the contact condition is satisfied on the third discriminant plane including at least part of the changed left or right end trajectory of the third part.
If the result of the determination is negative, the route, which is the first action plan element, is changed as described above. The mobile apparatus can move to the target position while avoiding contact with the object by following the changed route, which is the first action plan element.
On the other hand, if the result of the determination is positive, the route, which is the first action plan element, is not changed, and the second action plan element is changed based on the assumption. The mobile apparatus can move to the target position while avoiding contact with the object by changing the posture according to the second action plan element while following the route, which is the first action plan element. Thus, the frequency of changes in the movement direction of the mobile apparatus can be reduced, and the possibility that a change in the movement direction of the mobile apparatus induces an unexpected change in the behavior of the object can be reduced.
According to an eleventh aspect of the present invention, in the mobile apparatus according to any one of the first to tenth aspects of the present invention, the first processing section recognizes the behavior of the object by some or all of the position, the velocity and the acceleration of the first spatial element on the discriminant plane and recognizes the first spatial element intermittently or continuously extended according to the result of the recognition so that the first spatial element does not include the reference spatial element as the second spatial element.
According to the eleventh aspect of the present invention, the size of the second spatial element on the discriminant plane is determined according to at least one of the position, the velocity and the acceleration of the first spatial element on the discriminant plane determined according to the behavior of the object. Therefore, the mobile apparatus can move or act so that the mobile apparatus does not come into contact with a superimposed future image of the object predicted based on the position or the like of the object.
According to a twelfth aspect of the present invention, in the mobile apparatus according to the eleventh aspect of the present invention, the first processing section recognizes the behavior of the object by the velocity of the first spatial element and the relative position and the relative velocity of the first spatial element with respect to the reference spatial element on the discriminant plane and recognizes the first spatial element intermittently or continuously extended according to the result of the recognition as the second spatial element.
According to the twelfth aspect of the present invention, the size of the second spatial element on the discriminant plane is determined according to the velocity of the first spatial element and the relative position and the relative velocity of the first spatial element with respect to the reference spatial element on the discriminant plane determined according to the behavior of the object. Therefore, the mobile apparatus can move or act so that the mobile apparatus does not come into contact with a superimposed future image of the object predicted based on the velocity of the object, and the relative position and the relative velocity of the object with respect to the mobile apparatus.
According to a thirteenth aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, the first processing section recognizes a region determined according to the contour characteristics of the object extended according to the contour characteristics of the mobile apparatus as the first spatial element on the discriminant plane.
According to the thirteenth aspect of the present invention, the contour characteristics of the mobile apparatus and the object can be collectively reflected in the contour characteristics of the first spatial element on the discriminant plane. Therefore, the precision of the determination of whether there is a possibility of contact between the reference spatial element and a first spatial element can be improved or maintained while simplifying the handling of the reference spatial element on the discriminant plane and therefore the determination process, for example.
According to a fourteenth aspect of the present invention, in the mobile apparatus according to the thirteenth aspect of the present invention, the first processing section recognizes a Minkowski sum of two regions determined according to the contour characteristics of the mobile apparatus and the object as the first spatial element on the discriminant plane.
According to the fourteenth aspect of the present invention, the contour characteristics of the mobile apparatus and the object can be collectively reflected in the contour characteristics of the first spatial element, which is a Minkowski sum, on the discriminant plane. Therefore, the precision of the determination of whether there is a possibility of contact between the reference spatial element and a first spatial element can be improved or maintained while simplifying the handling of the reference spatial element as a dot or a small region on the discriminant plane and therefore the determination process, for example.
According to a fifteenth aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, the second processing section determines, based on the result of the recognition by the first processing section, whether or not there is a first spatial element that satisfies a first contact condition, as the contact condition, concerning a movement cost of the reference spatial element on the discriminant plane.
According to the fifteenth aspect of the present invention, only when it is determined that there is a first spatial element that satisfies the second contact condition concerning the movement cost of the reference spatial element, it is determined that there is a possibility of contact between the reference spatial element and a first spatial element. The “movement cost” is evaluated to be higher as the time required for the movement is longer, or the distance from the mobile apparatus is longer, for example. As described above, when it is determined that there is a first spatial element that can come into contact with the reference spatial element, the first action plan element is changed. Therefore, the mobile apparatus can move by avoiding contact with the object while reducing the frequency of change in the behavior of the mobile apparatus that induces a change in the behavior of the object, such as a person. For a first spatial element corresponding to an object for which the movement cost of the mobile apparatus is high, and the possibility of contact with the mobile apparatus is currently low, the processing of changing the action plan element or the like based on the result of determination of the possibility of contact between the first spatial element and the reference spatial element is omitted, and the information processing load is reduced accordingly.
According to a sixteenth aspect of the present invention, in the mobile apparatus according to the fifteenth aspect of the present invention, the second processing section determines whether or not there is a first spatial element that satisfies the first contact condition that the movement cost falls within a prescribed range or is at a predetermined rank or lower.
According to the sixteenth aspect of the present invention, only when the movement cost of the mobile apparatus to the object is low, and it is determined that the two can come into contact with each other, action plan elements can be changed in order to avoid contact between the mobile apparatus and the object. Therefore, the mobile apparatus can move by avoiding contact with the object while reducing the frequency of change in the behavior of the mobile apparatus that induces a change in the behavior of the object, such as a person.
According to a seventeenth aspect of the present invention, in the mobile apparatus according to the sixteenth aspect of the present invention, the second processing section determines whether or not there is the first spatial element that satisfies the first contact condition that the movement cost falls within the prescribed range having a positive lower limit.
According to the seventeenth aspect of the present invention, the action plan element is not changed when the object is located near the mobile apparatus, and therefore, a change in the behavior of the mobile apparatus can induce an unexpected change in the behavior of the object to thereby increase the possibility of contact therebetween.
According to an eighteenth aspect of the present invention, in the mobile apparatus according to the first aspect of the present invention, the second processing section determines whether or not there is a first spatial element that satisfies a second contact condition, as the contact condition, concerning the positional relationship between the first spatial element and the route as the first action plan element.
According to the eighteenth aspect of the present invention, only when there is a first spatial element that satisfies the “second contact condition” concerning the positional relationship between the reference spatial element and the route, it can be determined that there is a possibility of contact between the reference spatial element and the first spatial element. As described above, when it is determined that there is a first spatial element that can come into contact, the first action plan element is changed. Therefore, the mobile apparatus can move by avoiding contact with the object while reducing the frequency of change in the behavior of the mobile apparatus that induces a change in the behavior of the object, such as a person. In addition, when it is determined, from the positional relationship between the route of the reference spatial element and the first spatial element, that there is no possibility of contact between the mobile apparatus and all the objects around the mobile apparatus, the processing of changing the action plan element based on the result of determination of the possibility of contact between the reference spatial element and the first spatial element is omitted, and the information processing load is reduced accordingly.
According to a nineteenth aspect of the present invention, in the mobile apparatus according to the eighteenth aspect of the present invention, the second processing section determines whether or not there is a first spatial element that satisfies the second contact condition that there is an intersection or contact between the first spatial element and the reference spatial element moving along the route as the first action plan element.
According to the nineteenth aspect of the present invention, only when it is determined that, if the mobile apparatus moves along the route as the first action plan element, and the possibility of contact with the object is high, the action plan element can be changed to avoid contact with the object. Therefore, the mobile apparatus can move by avoiding contact with the object while reducing the frequency of change in the behavior of the mobile apparatus that induces a change in the behavior of the object, such as a person.
According to a twentieth aspect of the present invention, there is provided a method of controlling the operation of a mobile apparatus that moves according to a first action plan element and adjusts the posture according to a second action plan element, the method comprising: first processing of recognizing a current image of said mobile apparatus, a current image of an object, and an intermittent or continuous future image of the object, which is determined according to the behavior of the object and has a larger size than the current image thereof, as a reference spatial element, a first spatial element and a second spatial element having a larger size than the first spatial element, respectively, on a discriminant plane including at least a part of a representative point trajectory of said mobile apparatus determined based on said second action plan element; second processing of determining, based on a result of the recognition in the first processing, whether or not there is a first spatial element that satisfies a contact condition that there is a possibility of contact with the reference spatial element on the discriminant plane; and third processing of assuming a second action plan element involving changing the representative point trajectory and making the first processing recognize the reference spatial element, the first spatial element and the second spatial element on a new discriminant plane including at least a part of the changed representative point trajectory and determine whether or not there is the first spatial element that satisfies the contact condition on the new discriminant plane under the assumption when the second processing determines that there is a first spatial element that satisfies the contact condition on the discriminant plane, and setting a route that allows the reference spatial element to avoid contact with the second spatial element as the first action plan element on the discriminant plane including at least a part of the representative point trajectory not changed based on the result of the recognition in the first processing when the second processing determines that there is still a first spatial element that satisfies the contact condition on the new discriminant plane, and setting the assumed second action plan element as a new second action plan element when the second processing determines that there is no first spatial element that satisfies the contact condition on the new discriminant plane.
According to the twentieth aspect of the present invention, operation of the mobile apparatus can be controlled so that the mobile apparatus moves while avoiding contact with an object while reducing the frequency of changes of the route and, therefore, the frequency of inducing a change in the behavior of an object, such as a person, by changing the posture or the like thereof.
According to a twenty-first aspect of the present invention, there is provided a control program that makes a computer installed in the mobile apparatus according to the first aspect of the present invention function as the control system.
According to the twenty-first aspect of the present invention, the computer installed in the mobile apparatus can be made to function as a system for controlling the mobile apparatus so that the mobile apparatus moves by avoiding contact with an object while reducing the frequency of changes of the route and, therefore, the frequency of inducing a change in the behavior of an object, such as a person, by changing the posture or the like thereof.
According to a twenty-second aspect of the present invention, there is provided a supervisory system that distributes or broadcasts at least a part of the program according to the twenty-first aspect of the present invention to the computer installed in the mobile apparatus.
According to the twenty-second aspect of the present invention, a mobile apparatus capable of moving by avoiding contact with an object while reducing the frequency of changes of the route and, therefore, the frequency of inducing a change in the behavior of an object, such as a person, by changing the posture or the like thereof can be provided at any point in time by distributing a program to a computer installed in the mobile apparatus, for example.
A mobile apparatus or the like according to an embodiment of the present invention will be described with reference to the drawings.
First, a configuration of a robot, which is an embodiment of the present invention, will be described with reference to
A robot 1 comprises a base body (trunk) 10, a head 11 disposed on top of the base body 10, left and right arms 12 extending from upper parts of the left and right sides of the base body 10, and left and right legs 13 extending downwardly from the bottom of the base body 10. Suffixes “L” and “R” indicate left and right, respectively. As disclosed in the domestic re-publications of PCT international publication for patent application Nos. 03/090978 and 03/090979, the robot 1 can bend the arms 12 and the legs 13 at a plurality of joint parts corresponding to a plurality of human joints including the shoulder joint, the elbow joint, the wrist joint, the hip joint, the knee joint and the ankle joint by force transmitted from an unillustrated actuator. The robot 1 can autonomously move by the movement of the left and right legs 13 involving lifting off and landing on the floor. The height of the head 11 can be adjusted by adjusting the angle of inclination of the base body 10 with respect to the vertical direction. The head 11 incorporates a pair of left and right CCD cameras 21 facing forward of the robot 1. The image pickup range of the CCD cameras 21 can be adjusted by rotation, inclination, or the like of the head 11 with respect to the base body 10 by means of an actuator.
The robot 1 further comprises a control system 100 for controlling the walking or running operation thereof. The control system 100 comprises an ECU or a computer (composed of a CPU, a ROM, a RAM and an I/O, for example) as hardware and a “control program” according to the present invention as software. The control program may be previously stored in a memory of the computer, or distributed or broadcasted from a server in a “supervisory system” according to the present invention to the computer via a network or an artificial satellite in response to a request signal transmitted from the robot 1 to the server and stored in the memory of the computer.
The control system 100 comprises a first processing section 110, a second processing section 120, and a third processing section 130.
The first processing section 110 recognizes the robot 1 and the position and the velocity thereof (the term “velocity” means the velocity vector defined by direction and length hereinafter) as a reference spatial element Q0, a reference position O and a reference velocity v0 on a discriminant plane, respectively. Furthermore, the first processing section 110 recognizes an object, such as a person, and the position and the velocity thereof as a first spatial element Q1, an object position p and an object velocity v on the discriminant plane, respectively. Furthermore, the first processing section 110 recognizes, as a second spatial element Q2, the first spatial element Q1 intermittently or continuously extended based on the relative position of the object position p with respect to the reference position O and the relative velocity of the object velocity v with respect to the reference velocity v0. The shape and the size of the reference spatial element Q0 on the discriminant plane are read from a memory (not shown) and recognized.
Based on the result of recognition by the first processing section 110, the second processing section 120 determines whether or not there is a first spatial element Q1 that satisfies a “contact condition” that there is a possibility of contact with the reference spatial element Q0 on the discriminant plane.
If the second processing section 120 determines that there is a first spatial element Q1 that satisfies the contact condition on the discriminant plane, the third processing section 130 determines a route that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 on the discriminant plane, which is referred to as “first action plan element”, based on the result of recognition by the first processing section 110.
Now, functions of the robot configured as described above will be described with reference to
For example, the robot 1 is walking or running along a route Rk as the first action plan element, which is set previously or set by the third processing section 130 as described later, as shown by the alternate long and short dash line in
The first processing section 110 performs a “first processing” (S110 in
The first processing section 110 recognizes the robot 1 and the position and the velocity thereof as the reference spatial element Q0 on the discriminant plane, and the reference position O and the reference velocity v0 in a robot coordinate system, respectively (S112 in
In addition, the first processing section 110 recognizes an object, such as a person, and the position and the velocity thereof as the first spatial element Q1, the object position p and the object velocity v on the discriminant plane, respectively (S114 in
The shape and the size of the reference spatial element Q0 on the discriminant plane can be read from a memory (which stores the shape and the size of the robot 1) and recognized. Furthermore, the shape and the size of the first spatial element Q1 on the discriminant plane can be recognized by recognizing the type (a human being, a dog (a small animal) or the like) of the object x based on the image obtained by the CCD cameras 21 and then inquiring of the memory or database (which stores or manages the types, the shapes and the sizes of objects associated with each other) about the result of the recognition. The shape and the size of the first spatial element Q1 on the discriminant plane may be recognized by performing an arithmetic operation on the image data obtained by an image pickup device, such as the CCD cameras 21, according to an algorithm or the like that converts the (two-dimensional) image into a (three-dimensional) real space. Furthermore, the position of the object x may be measured or recognized based on a signal indicating the latitude and longitude thereof received from a communication device or the like on the object x. Furthermore, the velocity of the object x may be measured as a time variation of the position of the object x. While the discriminant plane can be defined as a flat surface or curved surface in which any point can be specified by the latitude and longitude thereof, the discriminant plane may be appropriately defined based on the angle of inclination of the floor around the robot 1 or the condition of the floor, such as the presence or absence of steps or irregularities, which are recognized based on the image obtained by the CCD cameras 21.
In the case where another object, such as a box and a device, moves integrally with the robot 1, for example, in the case where the robot 1 holds a box with the arms 12, or in the case where an optional device for adding a function to the robot 1 is attached to the base body 10, the composite shape and the composite size of the robot 1 and the object moving integrally can be recognized as the shape and the size of the robot 1.
A region determined according to the contour characteristics (shape and size) of the object x on the discriminant plane that is extended according to the contour characteristics of the robot 1 is recognized as the first spatial element Q1. More specifically, a Minkowski sum of two regions on the discriminant plate that have contour characteristics determined according to the contour characteristics of the robot 1 and the object x is recognized as the first spatial element Q1. For example, in the case where the robot 1 and the object x are defined on the discriminant plane as a circular robot region qrobot and a rectangular object region qobject as shown in
Furthermore, the first processing section 110 recognizes the first spatial element Q1 extended according to the reference position O, the object position p, the reference velocity v0 and the object velocity v as the second spatial element Q2 (S116 in
(amount of extension)=|p|·|v|/|v−v0| (1)
Similarly, as a result of the first spatial element Q1 shown in the left part of
Then, the second processing section 120 performs a “second processing” to determine whether or not there is a possibility of contact between the reference spatial element Q0 and the first spatial element Q1 on the discriminant plane recognized by the first processing section 110, that is, whether or not there is a possibility of contact between the robot 1 and each object (S120 in
The second processing section 120 determines whether or not there is a first spatial element Q1 that satisfies a “first contact condition” concerning the movement cost of the reference spatial element Q0 on the discriminant plane (S122 in
The movement cost is evaluated by the third processing section 130 as a function of either or both of the time required for the reference spatial element to come into contact with the first spatial element on the discriminant plane and the distance at which the reference spatial element moves until the reference spatial element comes into contact with the first spatial element on the discriminant plane. As the movement cost, the linear distance or distance d along the route (shown by the alternate long and short dash line) from the reference spatial element Q0 to each of the first spatial elements Q11 to Q14 shown in
For example, consider a case where a first contact condition that the movement cost falls within a prescribed range {0, εt (>0)} is used, and the route RK shown by the alternate long and short dash line in
If the second processing section 120 determines that there is a first spatial element Q1 that satisfies the first contact condition (YES in S122 in
For example, consider a case where a second contact condition that there is an intersection or contact between the route RK and the first spatial element Q1 is used, and the route RK shown by the alternate long and short dash line in
If there is a first spatial element Q1 that satisfies both the first contact condition and the second contact condition as described above (if YES in S122 and S124 in
If the second processing section 120 determines that there is a first spatial element Q1 that satisfies the second contact condition (YES in S124 in
As described above, in the example shown in
Furthermore, the third processing section 130 determines whether or not the distance |O−pd| between the reference position O and the target position pd of the reference spatial element Q0 on the discriminant plane is equal to or less than a threshold value δ, or in other words, whether or not the robot 1 has reached the target position (S132 in
If the result of the determination is negative (if NO in S132 in
The robot 1 capable of serving the functions described above is reduced in the frequency of change of the route Rk as the first action plan element for the reasons described below.
The determination of whether the second contact condition is satisfied or not is made only for a first spatial element Q1 that satisfies the first contact condition concerning the movement cost on the discriminant plane (see S122 (YES) and S124 in
In addition, it is a requirement for changing the route Rk that at least one of the first spatial elements Q1 that satisfy the first contact condition on the discriminant plane satisfies the second contact condition concerning the positional relationship between the first spatial element Q1 and the current route (see S124 (YES) and S130 in
Furthermore, the shape and the size of the first spatial element Q1 on the discriminant plane can be recognized by inquiry of the database or the like. Therefore, an object x can be prevented from being recognized as a first spatial element Q1 having a size larger than the actual size of the object x on the discriminant plane because of the limit of the precision of measurement of the size (or the shape and the size) of the object x by the CCD cameras 21 or the like. As a result, the frequency of change of the route as the first action plan element, and accordingly, the frequency of change in the movement direction or the like of the robot 1 are reduced. In other words, frequent changes of the route of the robot 1 due to the limit of the recognition of the contour characteristics of the object x by the CCD cameras 21 or the like can be avoided.
The frequency of change of the route Rk as the first action plan element is reduced as described above, and accordingly, the frequency of change in the behavior of the robot 1, such as change in the movement direction of the robot 1, is reduced. As a result, it is possible to prevent a change in the behavior of the robot 1 from inducing a change in the behavior of the object x, such as a person, and increasing the possibility of contact between the robot 1 and the object x. Furthermore, since the frequency of change of the route Rk as the first action plan element is reduced, the information processing load involved with the route change can be reduced accordingly.
For the reasons described below, an appropriate route Rk+1 is set to avoid the contact between the robot 1 and the object x with reliability. As described above, in the case where there is at least one first spatial element Q1 that satisfies both the first contact condition and the second contact condition on the discriminant plane, a new route Rk+1 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 is set (see S122 (YES), S124 (YES) and S130 in
Furthermore, the shape and the size of the first spatial element Q1 on the discriminant plane are recognized by inquiry of the database or the like, and the shape and the size of the second spatial element Q2 are determined based on the shape and the size of the first spatial element Q1. Therefore, the object x can be prevented from being recognized as a second spatial element Q2 having a size larger than the actual size thereof on the discriminant plane because of the limit of the precision of measurement of the size of the object x by the CCD cameras 21 or the like. In addition, the route as the first action plan is prevented from being excessively frequently changed in order to avoid contact with the object x.
Now, there will be described an embodiment in which each of the spatial elements Q0, Q1 and Q2 is recognized on each of a plurality of discriminant planes, rather than on one discriminant plane, and it is necessary for changing the first action plan element that there is a first spatial element Q1 that satisfies the first and the second contact condition in any of the plurality of discriminant planes.
For example, there will be discussed a situation shown in
In this situation, if the first object x1 and the second object x2 are recognized on only one discriminant plane P, the reference spatial element Q0 and the first spatial elements Q11 and Q12 shown in
On the other hand, since the reference spatial element Q0 or the like is recognized on each of the plurality of discriminant planes, the route can be changed at an appropriate frequency in view of the three-dimensional contour characteristics of the robot 1 and each object x, and an appropriate route can be set to avoid contact between the robot 1 and each object x with reliability.
For example, consider a case where the reference spatial element Q0 or the like is recognized on each of a discriminant plane P(h1) at a height of h1 and a discriminant plane P(h2) at a height of h2 (>h1) from a floor face in the situation described above. In this case, on the discriminant plane P(h1), the first object x1 and the second object x2 are recognized as the first spatial elements Q11 and Q12, respectively, as shown in
On the discriminant plane P(h2), the first object x1 is not recognized. This is because the height of the first object x1 is lower than the height h2.
In addition, the second object x2 is recognized as a relatively large first spatial element Q12 on the discriminant plane P(h2), while the second object x2 is recognized as a relatively small first spatial element Q12 on the discriminant plane P(h1). This is because the upper body of the robot 1 is larger than the lower body because of the presence of the arms 12 and the like (see
Thus, the route Rk can be changed at an appropriate frequency in view of the three-dimensional shape and the size of the robot 1 and the objects x. In general, the robot 1 and the objects x each have contour characteristics that the shape and the size vary with the position thereof, such as the height from the floor surface. Therefore, the shape and the size of the robot 1 and the objects x at different positions (heights) can be reflected in the shape and the size of the first spatial element Q1 recognized on each of the plurality of discriminant planes. Thus, a route Rk as the first action plan element can be changed at an appropriate frequency to avoid contact between the robot 1 recognized as the reference spatial element Q0 and the object x recognized as the first spatial element Q1 in view of the three-dimensional contour characteristics and the behavior, such as the position and the velocity, of the robot 1 and the object x.
Furthermore, a route Rk+1 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 on all of the plurality of discriminant planes is set as the first action plan element. Therefore, an appropriate route Rk+1 for avoiding contact between the robot 1 and the object can be set in view of the three-dimensional shape and the size of the robot 1 and the object.
Therefore, the robot 1 can continue moving by avoiding contact with an object x, such as a person, while reducing the possibility that the movement of the robot 1 induces a change in the behavior of the object x.
Furthermore, the Minkowski sum (q0+q) of the two regions q0 and q determined according to the contour characteristics of the robot 1 and the object x is recognized as the first spatial element Q1. Therefore, the size and the shape of the robot 1 and the object x can be collectively reflected in the size and the shape of the first spatial element Q1 on each discriminant plane. Thus, the precision of the determination of whether there is a first spatial element Q1 that can come into contact with the reference spatial element Q0 or not can be improved or maintained while simplifying the handling of the reference spatial element Q0 on the discriminant plane as a dot or a small region and therefore the determination process, for example.
The control method described above can be applied not only to the robot that moves by the movement of a pair of left and right legs, such as the robot 1, but also to any mobile apparatus, such as a robot that moves by the movement of three or more legs and a wheeled mobile robot (automobile).
If the lower limit of the prescribed range of the movement cost is set at a positive value rather than 0, when the movement cost is lower than the lower limit, the first contact condition is not satisfied, and the route Rk as a new first action plan element is not changed (see S122 (NO) in
Now, a mobile apparatus according to another embodiment of the present invention will be described with reference to
A first processing section 110 recognizes a reference spatial element Q0, a first spatial element Q1 and a second spatial element Q2 on a discriminant plane including at least part of a representative point trajectory tr of the robot 1, which is determined based on the second action plan element.
A second processing section 120 determines whether or not there is a first spatial element Q1 that satisfies the first and second contact conditions from the result of the recognition by the first processing section 110.
When the second processing section 120 determines that there is a first spatial element Q1 that satisfies the contact conditions, a third processing section 130 assumes a change of the second action plan element involving a change of the representative point trajectory tr. That is, this embodiment differs from the embodiment described above in that the third processing section 130 does not change the route, which is the first action plan element, immediately after the second processing section 120 determines that there is a first spatial element Q1 that satisfies the contact conditions as described above.
On the assumption that the posture of the robot 1 is controlled based on the changed second action plan element assumed by the third processing section 130, the first processing section 110 recognizes the reference spatial element Q0, the first spatial element Q1 and the second spatial element Q2 again on the discriminant plane including at least part of the representative point trajectory tr.
Based on the result of the recognition by the first processing section 110 under the assumption, the second processing section 120 determines whether or not there is a first spatial element Q1 that satisfies the contact conditions on the discriminant plane.
When the second processing section 120 determines, under the assumption, that there is a first spatial element Q1 that satisfies the contact conditions, the third processing section 130 sets a route Rk+1 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 on the discriminant plane as a first action plan element based on the result of the recognition by the first processing section 110. On the other hand, when the second processing section 120 determines, under the assumption, that there is no first spatial element Q1 that satisfies the contact conditions, the third processing section 130 sets the assumed second action plan element.
Now, functions of the robot 1 configured as described above will be described with reference to
First, there will be discussed a case where a wave-like upper end trajectory tr1 (not changed) of a head (first part) 11 is defined as the second action plan element as shown in
Referring to
In response to the positive result of the determination by the second processing section 120, the third processing section 130 assumes a second action plan element for lowering the upper end trajectory tr1 (not changed) of the head 11. Thus, as the second action plan element, there is assumed an upper end trajectory tr1 (changed) of the head 11 that makes the robot 1 move in a forward leaning posture with the head 11 lowered by increasing the angle of inclination of a base body 10 with respect to the vertical direction at least in a section from a point s01 to a point s02 shown in
Then, under the assumption, the first processing section 110 recognizes the reference spatial element Q0 or the like on the wave-like first discriminant plane P1 (changed) including the wave-like upper end trajectory tr1 (changed) of the head 11 (see S110 in
The upper end trajectory tr1 (changed) of the head 11 shown in
Based on the result of the determination by the second processing section 120, the third processing section 130 sets the assumed second action plan element. Thus, as the second action plan element, there is set the upper end trajectory tr1 (changed) of the head 11 that makes the robot 1 move in a forward leaning posture with the head 11 lowered by increasing the angle of inclination of the base body 10 with respect to the vertical direction as shown in
On the other hand, when the second processing section 120 determines that there is a first spatial element Q1 that satisfies the first and second contact conditions on the first discriminant plane P1 (changed), the third processing section 130 sets a route Rk+1 for the reference spatial element Q0 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 as a new first action plan element as described above (see S130 in
Furthermore, there will be discussed a case where a wave-like lower end trajectory tr2 (not changed) of a right leg (second part) 13R moving vertically is set as the second action plan element as shown in
Referring to
In response to the positive result of the determination by the second processing section 120, the third processing section 130 assumes a second action plan element for raising the lower end trajectory tr2 (not changed) of the right leg 13R. Thus, as the second action plan element, there is assumed a lower end trajectory tr2 (changed) of the right leg 13R that makes the robot 1 move by striding over the object x by lifting the right leg 13R being away from the floor so as to be higher than normal at least in a section from a point s01 to a point s02 shown in
Then, under the assumption, the first processing section 110 recognizes the reference spatial element Q0 or the like on the wave-like second discriminant plane P2 (changed) including the wave-like lower end trajectory tr2 (changed) of the right leg 13R (see S110 in
The lower end trajectory tr2 (changed) of the right leg 13R shown in
In response to the negative result of the determination by the second processing section 120, the third processing section 130 sets the assumed second action plan element. Thus, the lower end trajectory tr2 (changed) of the right leg 13R shown in
On the other hand, when the second processing section 120 determines that there is a first spatial element Q1 that satisfies the first and second contact conditions on the second discriminant plane P2 (changed), the third processing section 130 sets a route Rk+1 for the reference spatial element Q0 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 as a new first action plan element as described above (see S130 in
Furthermore, there will be discussed a case where a wave-like right end trajectory tr3 (not changed) of a right arm (third part) 12R is set as the second action plan element as shown in
Referring to
In response to the positive result of the determination by the second processing section 120, the third processing section 130 assumes a second action plan element for shifting leftward the right end trajectory tr3 (not changed) of the right arm 12R. Thus, as the second action plan element, there is assumed a right end trajectory tr3 (changed) of the right arm 12R that makes the robot 1 move the right arm 12R leftward at least in a section from a point s01 to a point s02 shown in
Then, under the assumption, the first processing section 110 recognizes the reference spatial element Q0 or the like on the wave-like third discriminant plane P3 (changed) including the wave-like right end trajectory tr3 (changed) of the right arm 12R (see S110 in
The right end trajectory tr3 (changed) of the right arm 12R shown in
In response to the negative result of the determination by the second processing section 120, the third processing section 130 sets the assumed second action plan element. Thus, the right end trajectory tr3 (changed) of the right arm 12R shown in
On the other hand, when the second processing section 120 determines that there is a first spatial element Q1 that satisfies the first and second contact conditions on the third discriminant plane P3 (changed), the third processing section 130 sets a route Rk+1 for the reference spatial element Q0 that allows the reference spatial element Q0 to avoid contact with the second spatial element Q2 as a new first action plan element as described above (see S130 in
Determination of whether there is a first spatial element Q1 that satisfies the contact condition on a discriminant plane arbitrarily selected from among one or more first discriminant planes P1, one or more second discriminant planes P2 and one or more third discriminant planes P3 and change of the first or second action plan element based on the result of the determination can be performed in an arbitrary combination. In this case, the robot 1 can move while maintaining a stable posture and avoiding contact with the object x by controlling the posture in various ways, such as assuming a forward leaning posture with the head 11 lowered and lifting the leg 13 being away from the floor so as to be higher than normal.
Furthermore, a condition that the rate of change of either or both of the direction and the magnitude of the velocity of the reference spatial element Q0, that is, the robot 1, is equal to or lower than a threshold value can be set as a (additional) first action plan element. In this case, an excessive change of the velocity of the robot 1 caused by a change of the first action plan element and a change in the behavior of the robot 1 caused thereby can be suppressed. In addition, the possibility can be avoided that the behavior of the robot 1 induces an unexpected change in the behavior of the object x to increase the possibility of contact between the robot 1 and the object x. Furthermore, the possibility can be avoided that the robot 1 is forced to change the velocity and, therefore, the behavior beyond the capacity thereof.
Furthermore, the first action plan element can also be set in such a manner that a higher priority is given to changing the magnitude of the velocity of the reference spatial element Q0, that is, the robot 1 than changing the direction thereof. In this case, a higher priority is given to changing the magnitude of the velocity (speed) of the robot 1 than changing the direction thereof because a change of the direction of the velocity (movement direction) of the robot 1 is more likely to induce a change in the behavior of the object. Thus, the possibility that a change in the behavior of the robot 1 induces a change in the behavior of the object x is reduced.
Furthermore, the third processing section 130 can prepare an announcement of the movement direction of the robot 1 as a “third action plan element”, and the control system 100 can control the operation of the equipment on the robot 1 according to the third action plan. For example, the operation of actuators installed in the robot 1 can be controlled to previously announce the movement direction of the robot 1 in the form of the movement of the movable parts corresponding to parts of a human body, such as the base body 10, the head 11, the arms 12 and the legs 13, according to the third action plan element. In this case, the person (object x) can naturally clearly recognize the movement direction of the robot 1 from a familiar action, such as changing the direction of the front (face) of the head 11, changing the posture of the arms 12, and twisting the upper part of the base body 10 with respect to the lower part. As a result, the possibility can be reduced that a movement of the robot 1 induces a movement of the object x, such as a change in the movement direction, to cause contact between the robot 1 and the object x. Alternatively, the robot 1 can be equipped with a direction indicator, a light emitting device, a sound outputting device or the like, and the operation of the direction indicator, the light emission of the light emitting device or the sound output of the sound outputting device can be controlled according to the third action plan element to announce the movement direction of the robot 1.
Number | Date | Country | Kind |
---|---|---|---|
2006-342638 | Dec 2006 | JP | national |