Position/force controlling apparatus for working machine with multiple of degrees of freedom

Abstract: A position/force control apparatus for use with a multi-freedom-degree working machine having at least two degrees of freedom such as a robot, a machine tool or the like. The apparatus is composed of the following components: first setting device for setting a position command and/or a posture command for commanding the position and/or the posture of a working tool on the machine; first detection device for detecting the instant position and/or the instant posture of the working tool; second setting device for setting a force command and/or a moment command for commanding the force and/or the moment to be applied to the working tool; second detection device for detecting the instant force and/or the instant moment acting on the working tool; first computing device for determining, from the position command and/or the posture command set by the first setting device and the instant position and/or the instant posture detected by the first detection device, the position and/or posture offset in terms of the coordinate values of a spontaneous coordinate system; second computing device for determining, from the force command and/or the moment command set by the second setting device and the instant force and/or the instant moment detected by the second detection device, force and/or moment offset in terms of the coordinate values of the spontaneous coordinate system; third computing device for executing position/force computation for the control of the position of and the force on the working tool by making use of the position and/or posture offset in terms of the coordinate values of the spontaneous coordinate system as obtained through conversion performed by the first computing device and the force and/or moment offset in terms of the coordinate values of the spontaneous coordinate system as obtained through conversion performed by the second computing device, thereby determining the amount of control to be effected on the working machine; and fourth computing device for converting the control amount in terms of the coordinate values of the spontaneous coordinate system determined by the third computing device into the operation command of the driving system for driving the working machine.

Description: The present invention relates to a position force controlling apparatus according to the preamble of claim 1. Such an apparatus is known from EP-A-0.129.245. Most of current industrial robots and automatic machine tools are designed to operate only in a position control mode in which the position of a specific portion of the robot or the tool is controlled in accordance with position information. On the other hand, there are works which require the control of the manner in which force is applied. Such a control essentially requires that both the position and the force be controlled delicately, and various studies have been made to develop systems which will meet such a demand. A typical example of such systems known as "hybrid control method" is capable of operating both in a position control mode and a force control mode while conducting change-over between these two modes for each of the coordinate axes. In another control method referred to as "compliance control method", control is executed by setting a certain "spring" relation between position and force. In recent years, a system referred to as "virtual compliance control method" has been proposed as disclosed, for example, in "Papers of Society of Measuring and Automatic Control Engineering", vol 22, No. 3 (1986) pp 343-350, and Japanese Patent Unexamined Publication Nos. 60-3010 and 61-7905. This control method is to imaginarily realize a dynamic system model composed of a spring factor, a mass factor and a damper factor. More specifically, this system relies upon the following formula of dynamic system: In operation, suitable values are set as the values of m, c and k and the operation is simulated on a software, and the control is effected such as to realize the movement. In order to execute this control on a system having a multiple degree of freedom, values for the factors m, c and k can be varied for each axis of a coordinate system, so that the operation characteristic can be determined independently for each of the coordinate axes. If the factor K is set as being 0 (zero), position feedback function is eliminated so that the control is effected only in the force control mode. Conversely, increase in the values of the factors k and c reduces the force feedback so that the control is performed only in position control mode. It will be seen that this method realizes the hy-brid control method. Thus, the virtual compliance control method is a control method which is a combination of the hy-brid control method and the compliance control method. Unfortunately, however, no specific consideration is given to the method of setting coordinate system for the control computation in known systems which make use of the virtual compliance control method, with the result that the desired accuracy and efficiency of the operation are not attained depending on the type of the operation. For instance, such problems are encountered by an industrial robot which is designed to be controlled both in position control mode and force control mode, e.g., a profiling control for the purpose of polishing or deburring of a curved surface. In such a case, the end effector of the robot is controlled to move along the work surface, i.e., to profile the work surface. The levels of force and moment applied to the end effector are detected by a force sensor. It is assumed here that the end effector is moved in X-axis direction, while the axis of the end effector extends in Z-axis direction. The operation will be explained on the basis of a two-dimensional plane defined by X-Z axes. For instance, values of the factors k and c are increased to stiffen the system and a position control is effected to feed the end effector at a velocity of VX, while the factor k is set to 0 (zero) in the Z-axis direction, whereby the end effector is controlled in the force control mode so as to be pressed at a command force fr. The force level detected by the sensor in this state is represented by f. In this case, the end effector moves in the Z-axis direction in such a manner as to simulate the following formula: m v z + cvz = f - fr In the steady condition in which there is no change in the velocity, a condition of ( cvz = f - fr ) is met. It is understood that a force error Δf = f - fr has to be given in order to generate the velocity vz at which the end effector profiles a curved surface. If the velocity vx of feed in the X-axis direction is constant, the force error Δf changes in proportion to the gradient of the curved surface, so that the velocity vz also varies in proportion to the gradient of the curved surface. In consequence, the pressing force -f varies according to the gradient of the curved surface. Representing the force error allowed in the profiling operation by Δf0, the gradient which can be followed in steady condition is derived from the following condition. An increase in the factor (1/c) increases the upper limit of the gradient of curved surface which can be followed up by the end effector. The factor (1/c), however, is a gain of the velocity to the force, i.e., the condition of ( v = 1/c·f ) is met, so that an increase in this factor causes hunting of operation in the control system. From this point of view, it is necessary that the factor (1/c) takes a small value. This means that the feed velocity vx has to be decreased for a curved surface of a large gradient, resulting in an impractically low efficiency of operation. Thus, a practical limit exists in controlling end effector in such a way as to profile any desired curved surface, with the conventional method of setting the coordinate system. In another known method, the profile of a curved surface is described in terms of command values, and the values of the factors k and c are so determined as to provide an imaginary spring which absorbs any error in the description (instruction), error attributable to wear of tool and the error due to dimensional fluctuation of works. In such a case, it is necessary that an imaginary spring be provided to act not only in the Z-axis direction but also in the X-axis direction, in order to absorb the above-mentioned errors on the curved surface. In this method, therefore, a certain influence of the spring is caused in the direction of feed, with the result that the offset between the command position and the actual position is increased to hamper the operation. In particular, in the region where the curvature of the surface varies largely, the direction of feed is changed while the offset of the position is large, often resulting in troubles such as excessive cutting. Accordingly, an object of the present invention is to provide a position/force control apparatus according to the preamble of claim 1, improved in such a way as to allow setting of any desired coordinate system so as to attain high , thereby overcoming the above-described problems of the prior art. SUMMARY OF THE INVENTION To this end the apparatus according to the present invention is characterized by the characterizing part of claim 1 In the apparatus of the described construction, the third computing means is capable of conducting position/force control computation by making use of the position/posture error and force/moment error in terms of the coordinate values of the operation coordinate system thus determining the amount of control to be effected on the working machine. Thus, the operation of the working machine is controlled on the basis of the control amount expressed in terms of the coordinate values of the operation coordinate system. By setting an optimum operation coordinate system according to the content of the operation to be performed, it is possible to conduct the required work adequately with a high degree of efficiency. When a curved surface profiling operation is to be conducted, for example, a work surface coordinate system, which has its origin set on the end of the working tool contacting the work surface and having coordinate axes of the same directions as the lines normal and tangential to a, or parallel to a surface of said object, is used as the operation coordinate system, and the normal line direction is always set as a z-axis, while setting the tangential direction, i.e., the direction of movement, as an x-axis. When the third computing means is designed to conduct an virtual compliance control such as to effect the position control in the x-axis direction while conducting a force control in the z-axis direction, the gradient of the curved work surface is reduced to a small value which corresponds only to small error incurred during the setting of the coordinate system, so that the force error in the x-axis direction is made sufficiently small while the moving speed in the x-axis direction, i.e., the feed velocity vx, can be increased significantly. The above-mentioned small error can be absorbed by an imaginary spring set in the system. Since the x-axis direction is tangential to the work surface, no restraint is effected in this direction so that it is not necessary to employ the imaginary spring which would act in this direction. Thus, the feed can be effected by ordinary position control without causing any undesirable increase in the position offset in the direction of the feed. A specific form of the apparatus explained above is characterized by the characterizing part of claim 2 In this case, it is preferred that the first computing means further includes fifth means for converting the instant position and/or instant posture detected by the first detection means into coordinate values of a base coordinate system which is fixed to the space in which the working machine is situated, before determining the position and/or posture error by the first means, that the second computing means further includes sixth means for converting the instant force and/or moment detected by the second detection means into coordinate values of a reference coordinate system which have three orthogonal coordinate axes of the same directions as the base coordinate system and having the same origin as that of a hand coordinate system fixed to the working tool,before converting the same into the coordinate values of the operation coordinate system by the third means, and that the fourth computing means includes seventh means for converting the control amount determined by the third computing means into the coordinate values of the base coordinate system and eighth means for converting the control amount in terms of the coordinate values of the base coordinate system into operation command for the system for driving the working machine. By effecting a conversion to and from the operation coordinate system via the base coordinate system, it is possible to describe the coordinate conversion in terms of the rotation from the base coordinate system. This conversion is executed easily because the base coordinate system is always computed. In a different form of the invention, the first computing means includes ninth means for converting the instant position and/or instant posture detected by the first detection means into coordinate values of the operation coordinate system using the coordinate conversion data, and tenth means for determining position and/or posture error between the instant position and/or instant posture in terms of the coordinate values of the operation coordinate system as obtained by the ninth means and the position command and/or posture command set by the first setting means, while the second computing means includes eleventh means for converting the instant force and/of instant posture detected by the second detection means into coordinate values of the operation coordinate system, using the coordinate conversion data and twelfth means for determining force and/or moment error between the instant force and/or moment converted into the coordinate values of the operation coordinate system by the eleventh means and the force command and/or moment command set by the second setting means. In this case also, for the same reason as that explained before, it is preferred that the first computing means further includes thirteenth means for converting the instant position and/or instant posture detected by the first detection means into coordinate values of a base coordinate system which is fixed to the space in which the working machine is situated, before converting the same by the ninth means into the coordinate values of the operation coordinate system, that the second computing means further includes fourteenth means for converting the instant force and/or instant moment detected by the second detection means into coordinate values of a reference coordinate system which have three orthogonal coordinate axes of the same directions as the base coordinate system and having the origin which is the same as that of a hand coordinate system fixed to the working tool,before the conversion into the coordinate values of the operation coordinate system by the eleventh means, and that the fourth computing means includes fifteenth means for converting the control amount determined by the third computing means into the coordinate values of the of the base coordinate system and sixteenth means for converting the control amount in terms of the coordinate values of the base coordinate system into operation instructions for the system for driving the working machine. In a different form of the invention, the apparatus further comprises: fifth computing means for computing the moving direction vector corresponding to the direction of movement of the working tool from the instant position detected by the first detection means;sixth computing means for computing reactional force vector representing the reactional force vector received by the working tool from the instant force detected by the second detection means; and seventh computing means for computing orthogonal unit vectors , and from the reactional force vector computed by the sixth computing means and the moving direction vector computed by the fifth computing means; wherein the first,second or fourth computing means executes, by making use of the unit vectors , and , a coordinate conversion computation by using the cartesian coordinate system ( , , ) formed by the unit vectors as the operation coordinate system. According to this arrangement, the operation coordinate system for the control of the position and force can be automatically computed and given. Therefore, when the work surface coordinate system is used as the operation coordinate system, it is possible to set the work surface coordinate system even if the work surface has such a complicated curved configuration that would never be described by manual work. In addition, this arrangement enables on-line generation of the coordinate system which is essentially required in automatic profiling machining. In a specific form of the invention, the seventh computing means is capable of computing a unit vector from the reactional force vector computed by the sixth computing means, and computing, from the unit vector and the moving direction vector computed by the fifth computing means, a unit vector orthogonal both to the unit vectors , , as well as a unit vector which is orthogonal to the unit vector and contained in the plane defined by the unit vectors and . With this arrangement, it is possible to easily determine the unit vectors , and by computing the unit vector from the reactional force vector which is computed by the sixth computing means. The determination of the unit vector of the work surface coordinate system can be executed by computing the normal direction vector on the work surface from the reactional force vector determined by the sixth computing means and then computing the normal direction unit vector from the normal direction vector . In another specific form of the invention, the seventh computing means is capable of computing, from the moving direction vector computed by the fifth computing means, a unit vector of the direction of movement of the working tool, and further computing, from the unit vector and the reactional force vector computed by the first computing means, a unit vector orthogonal to the vectors and ,as well as a unit vector which is orthogonal to the unit vector and which is contained in the plane defined by the unit vectors and . With this arrangement, the seventh computing means computes the unit vector of the direction of movement of the working tool from the moving direction vector computed by the fifth computing means. Namely, the unit vector in the normal direction is not directly determined from the reactional force data. Therefore, the unit vectors , and of the work surface coordinate system can be determined precisely without being affected by any offset of the direction of the reactional force from the normal direction due to, for example, friction. The apparatus of the invention can further comprise memory means for storing the unit vectors , and computed by the seventh computing means, together with other instruction data; and play-back means for playing-back the stored data during play-back operation. This enables the work surface coordinate system to be given as instruction data with which the operation of the multi-freedom-degree working machine can be controlled easily. This arrangement also enables the apparatus to be used for other purposes such as shape recognition. According to a different form of the invention, the apparatus further comprises:third setting means for pre-setting a plane which intersects the work surface; eighth computing means for computing a reactional force vector representing the reactional force received by the working tool, from the force detected by the second detection means; ninth computing means for computing a normal direction vector of the direction normal to the work surface, from at least the reactional force vector computed by the eighth computing means; and tenth computing means for computing, from the normal direction vector computed by the ninth computing means, the unit vector of the normal direction vector, and for computing, from the normal direction vector and the plane pre-set by the third setting means, the unit vector in the direction of line of intersection between a tangential plane of the work surface and the pre-set plane, as well as the unit vector which is orthogonal both to the unit vectors and ; wherein the first, second or fourth computing means executes, by making use of the unit vectors , and computed by the tenth means, a coordinate conversion computation by using the cartesian coordinate system ( , , ) formed by the unit vectors as the operation coordinate system. By setting the unit vector of one of the coordinate axes on the pre-set plane, it is possible to set the moving direction in parallel with the set plane,whereby the error is reduced in the direction of movement. In a specific form of the invention, the apparatus further comprises eleventh computing means for computing a moving direction vector representing the direction of movement of the working tool, from the instant position detected by the first detection means; wherein the ninth computing means is capable of computing a vector orthogonal both to the reactional force vector f computed by the eighth computing means and the moving direction vector computed by the eleventh computing means, and further computing a unit vector orthogonal both to the moving direction vector and the vector as the normal direction vector normal to the work surface. The frictional force generated between the working tool and the work surface acts in the direction opposite to the moving direction , and the reactional force is inclined in the direction of action of the frictional force. The reactional force, however,is in the plane which is defined by the normal line to the work surface and the moving direction . In addition, the moving direction coincides with the direction tangential to the work surface. It is therefore possible to determine the normal direction vector without influence of frictional force and,hence, to accurately compute the work surface coordinate system, by virtue of the ninth computing means for computing the direction orthogonal to the moving direction vector within the plane defined by the reactional force vector and the moving direction vector . In a different form of the present invention, the operation coordinate system is a work surface coordinate system which has its origin on the end of the working tool contacting the work surface and having three orthogonal axes one of which is directed in the direction of the normal to the work surface, wherein the first setting means includes two-dimensional input means for setting the direction of movement of the working tool,wherein the second setting means includes force setting means for setting the level of the force to be applied to the working tool, and wherein the third computing means conducts a computation for indicating the level of the force set by the force setting means for one of the three orthogonal axes of the work surface coordinate system, while conducting computation for indicating the direction of movement set by the two-dimensional setting means on the remainder two of the three orthogonal axes. In this arrangement, the third computing means conducts a computation for indicating the level of the force set by the force setting means for one of the three orthogonal axes of the work surface coordinate system, while conducting computation for indicating the direction of movement set by the two-dimensional setting means on the remainder two of the three orthogonal axes. The operator therefore can enable the working tool to move along the curved work surface merely by manual operating the two-dimensional input means, once the force is set at a desired level by the force setting means. In addition, since the control is performed on the work surface coordinate system, it is possible to restrict the direction of movement of the working tool only to the plane tangential to the curved surface. Since the moving direction varies along the curved surface, the operator can easily grasp the moving distance and velocity as a matter of sense. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a first embodiment of the position/force control system in accordance with the present invention; Fig. 2 is a schematic illustration showing a curved surface profiling operation of a robot; Fig. 3 is an illustration of a curved surface profiling operation in accordance with a conventional control method which relies upon a constant pressing force; Fig. 4 is an illustration of a curved surface profiling operation in accordance with a conventional control method which makes use of an imaginary spring; Fig. 5 is an illustration of a curved surface profiling operation performed by the control apparatus of Fig. 1 in a constant pressing force control mode; Fig. 6 is an illustration of a curved surface profiling operation performed by the control apparatus of Fig. 1 by means of an imaginary spring; Fig. 7 is a block diagram of a second embodiment of the position/force control apparatus in accordance with the present invention; Fig. 8 is a block diagram of a third embodiment of the position/force control apparatus in accordance with the present invention; Fig. 9 is a block diagram of a work surface coordinate system computing section of a fourth embodiment of the position/fore control apparatus in accordance with the present invention; Fig. 10 is a flow chart illustrating the process of computation of coordinate axes performed by the work surface coordinate system computing section; Figs. 11(a) and 11(b) are illustrations of the manner for setting coordinate axes; Fig. 12 is a block diagram of a work surface coordinate system in a first modification of the fourth embodiment of the present invention; Fig. 13 is a block diagram of a work surface coordinate system computing section in a fifth embodiment of the present invention; Fig. 14 is a flow chart showing the process of computation of the coordinate axes in a work surface coordinate system computing section of the fifth embodiment; Fig. 15 is a block diagram of a work surface system coordinate computing section in accordance with a first modification of the fifth embodiment; Fig. 16 is a block diagram of a work surface coordinate system computing section of a sixth embodiment of the position/force control apparatus in accordance with the present invention; Fig. 17 is a flow chart showing the process of computation of the coordinate axes performed by the work surface coordinate system computing section in the sixth embodiment; Fig. 18 is an illustration of the manner of setting the coordinate axes; Fig. 19 is an illustration of the relationship between reactional force, frictional force, moving direction and a normal; Fig. 20 is a block diagram of a work surface coordinate system computing section of a first modification of the sixth embodiment; Fig. 21 is a schematic illustration of the entire portion of a curved surface profiling control apparatus for a working machine of a multiple freedom working machine in accordance with a seventh embodiment of the present invention; Fig. 22 is a control block diagram showing the content of the control performed by the control apparatus of Fig. 21; Fig. 23 is a schematic illustration of the hardware of the control apparatus of Fig. 21; Fig. 24 is a control block diagram showing the content of the control for the work surface coordinate system computation performed in this control apparatus of Fig. 21; Fig.25 is an illustration of a curved surface profiling operation performed by the control apparatus of Fig. 21; and Figs. 26(a) and 26(b) are sectional views taken along the lines A-A and B-B of Fig. 25, respectively. DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described with reference to the accompanying drawings. First Embodiment Fig. 1 illustrates the entire portion of a first embodiment of the position/force control apparatus in accordance with the present invention. An articulated industrial robot 1 has a hand 2 to which is secured a force sensor 3. The force sensor 3 is capable of detecting force and moment acting on the hand effect or 4. The robot 1 also has driving motors (not shown) capable of effecting driving around the respective articulates,so that the position and posture of the end effector 4 is controlled by controlling these driving motors. An angle meter such as an encoder denoted by a numeral 5 is provided on each driving motor so that the amount of driving of each driving motor, i.e., the axis angle data of each articulate, is detected by the encoder 5. The control system for controlling the robot 1, generally denoted by 6, is composed of a force sensor 3 and the angle meter 5. The control system 6 has a force command setting section 7 for setting a command fr of the force and moment applied to the end effector 4, and a position command setting section 8 for setting position and posture commands for the end effector 4. The force command setting section 7 is capable of setting force and moment commands in the form of coordinate values of a spontaneous coordinate system, while the position command setting section 8 is capable of setting the position and posture commands in the form of coordinate values of a later-mentioned base coordinate system. A force command setting portion 7 is capable of using,for example, instruction data,while the position command setting section 8 is capable of using,for example, values obtained through interpolation of the instruction data. The force and moment as detected by the force sensor 3 is sent to a force computing section 9 which conducts conversion from the sensor coordinate system into hand coordinate system, while effecting gravity compensation by subtracting the force corresponding to the force of gravity, i.e., the weight of the hand effect or 4. The force and the moment expressed by the hand coordinate system are converted into coordinate values of a later-mentioned reference coordinate system which makes use of a base coordinate system, by means of a coordinate conversion section 10. The conversion into the values of the reference coordinate system is effected only for the direction component (rotational conversion). The force and the moment (referred to as "force/moment" hereinafter) expressed in terms of the coordinate values of the reference coordinate system are then converted into coordinate values of spontaneous coordinate system. The force/moment after the conversion are expressed in terms of a vector . This conversion also is a rotational conversion which consists solely of the conversion of direction. The force/moment f after conversion by the coordinate conversion section 11 is compared by a force offset computing section 12 with the command r of the force/moment set by the force command setting section 7, so that an offset Δ is determined, namely, computation of is executed. On the other hand, an encoder 5 connected to the motor of the robot 1 delivers an axis angle data to an angle computing section 13 which computes the angle of articulate. The articulate angle is then delivered to a position computing section 14 which determines the position and posture (referred to as "position/posture" hereinafter) '. The position/posture ' computed by the position computing section 14 is compared by a position offset computing section 15 with a position/posture command 'r which has been set by a position command setting section 8, whereby an offset Δ ' is determined. The position/posture offset Δ ' as expressed in terms of the position/posture offset Δ ' is converted by a coordinate conversion section 16 into coordinate values of a spontaneous coordinate system, so that an offset Δ is determined. This conversion is a rotational conversion consisting solely of conversion of direction executed by means of a conversion matrix as in the case of the conversion performed by the coordinate conversion section 11. The force/moment offset Δ on the spontaneous coordinate system computed by the force offset computing section 12 and the position/posture offset Δ on the spontaneous coordinate system computing by the coordinate conversion section 16 are input to a position/force control computing section 17. The position/force control computing section 17 executes control computation of position and force on the spontaneous coordinate system in accordance with the offsets Δ and Δ , thereby determining a command velocity on this coordinate system. In this embodiment, the position/force control computing section 17 employs a control computation in accordance with the imaginary compliance control. The position/force control computing section 17 is practically composed of an insensitive zone computing section 18, a spring constant multiplication section 19, a subtraction section 20, and a characteristic compensation computing section 21. The insensitive zone computing section 18 computes the value Δ ' by setting an insensitive zone on the force offset Δ computed by the force offset computing section 12. The setting of the insensitive zone may be effected in such a manner as to eliminate any influence of minute force such as those produced by noises or disturbance. The width of the insensitive zone may be varied freely. Thus, the insensitive zone width may be zero or, alternatively, increased so as to maintain the level of the output Δ ' always at zero. In such a case, feedback of the force component is reduced to zero so that the position control is executed solely. A spring constant multiplication section 19 multiplies the position offset Δ with an imaginary spring constant matrix K set for each coordinate axis, thereby determining KΔ . The matrix K is a diagonal matrix having components Ki which are imaginary spring constants which are freely set on the respective coordinate axes. If the components Ki are set zero, feed back of the position component is eliminated so that the force/moment is controlled. The subtracting section 20 subtracts the value KΔ produced by multiplying the position offset Δ with the imaginary spring constant matrix K from the value Δ ' produced as a result of the insensitive zone computation on the force offset Δ . The characteristic compensation computing section 21 effects a characteristic compensating computation on the output Δ ' - KΔ of the subtracting section 21, thereby determining the velocity command . In the imaginary compliance control, the velocity command is computed by employing an imaginary mass matrix M and an imaginary viscosity coefficient matrix C,such that the robot hand moves to follow the condition of the following formula (1). The velocity command computed by a position/force control computing section 17 is expressed in terms of coordinate values of a spontaneous coordinate system. These values are converted by a coordinate conversion section 22 into velocity ' in terms of the base coordinate system. The velocity command ' of the base coordinate system is input to an angular velocity computing section 23 which computes angular velocity command of each articulate. The angular velocity command is input to a motor speed computing section 24 which computes a speed command for each driving motor. The thus computed motor speed command is input to a servo amplifier 25 which operates to control each driving motor of the robot 1 in accordance with the motor speed command. During the control, motor speed is fed back through the tacho-generator connected to the motor. The operation of the control apparatus having the described construction will be explained in detail on an assumption that the apparatus is used on a multi-articulated robot 1 having 6 (six) degrees of freedom. When the robot 1 is made to conduct a curved surface profiling operation for the purpose of.for example, surface polishing or deburring, the hand effect or 4 attached to the robot 1 receives force/moment as a result of reaction. The force/moment is detected by the force sensor 3, as coordinate values of a sensor coordinate system which has an origin at the center of deformation of the sensor. These coordinate values are then converted by a force computing section 9 into coordinate values of a hand coordinate system which has an origin at a suitable portion on the end effector and which is fixed to the end effector so as to move together with the end effector. The origin of this coordinate system is usually set at a point near the force application point where the force is applied. The conversion from the sensor coordinate system to the hand coordinate system is conducted by means of a constant matrix. The force computing section 9also executes subtraction of a gravity component corresponding to the force of gravity acting on the end effector 4, thereby eliminating any influence of the weight of the end effector 4 which varies depending on the posture of the hand. The force/moment after conversion into coordinate values of the hand coordinate system are then converted into coordinate values of a spontaneous coordinate system by means of the coordinate conversion sections 10 and 11. The spontaneous coordinate system has an origin which is set on the same point as the hand coordinate system and the directions of the coordinate axes of this coordinate system can be set spontaneously. When a profiling operation is to be executed, the coordinate axes are preferably set in the directions of lines which are normal and tangential to the work surface. From a view point of easiness of the computation, therefore, the conversion into the spontaneous coordinate system is preferably described in the form of rotation from a reference coordinate system which is fixed in the same space as the work. The reference coordinate system can be determined by making use of a base coordinate system which is fixed in a space in which the robot is situated. More specifically, a coordinate system whose three orthogonal axes are directed in the same directions as the base coordinate system and which has the same position of origin as the hand coordinate system is determined as the reference coordinate system, and the conversion into the spontaneous coordinate system is described as a rotational conversion from the reference coordinate system (base coordinate system). This rotational conversion is performed by the coordinate conversion section 11. This coordinate conversion necessitates a conversion from the hand coordinate system to the reference coordinate system. This conversion is executed by the coordinate conversion section 10. Thus, the coordinate conversion section 10 operates to convert only the directions into the base coordinate system. This coordinate conversion is given by the orientation of the hand coordinate system with respect to the base coordinate system, as is the case of a later-mentioned matrix which represents the posture of the hand. The orientation, therefore,is always computed so that the conversion is effected without difficulty. The force on the spontaneous coordinate thus computed is compared with a command force r which is set by the force command setting section 7, whereby the force offset Δ is computed by the force offset computing section 12. In regard to the position/posture, each articulate angle is computed by the angle computing section 13 on the basis of the value output from the encoder connected to each motor of the robot 1. Using the articulate angle thus computed, the position computing section 14 computes the position/posture ' of the hand in terms of the coordinate values of the base coordinate system. The position/posture ' of the hand on the base coordinate system is viewed on the basis of the position of the origin and the directions of the coordinate axes of the hand coordinate system. Fig. 1 shows the position/posture on the base coordinate system in terms of a six-dimensional vector '. The three-dimensional vector in the six-dimensional vector representing the posture is a vector which represents the angle of rotation of the hand coordinate system with respect to the base coordinate system, i.e., a vector the direction of which represents the direction of rotation of the hand coordinate system with respect to the base coordinate system and a value or size which represents the angle of rotation of the hand coordinate system. In the actual computation, the posture is not represented in the above-described manner but is expressed in terms of 3 x 3 matrix ( h, h and h) composed of unit vectors in the directions of the respective coordinate axes of the hand coordinate system expressed in terms of the coordinate values of the base coordinate system. The position/posture computed by the position computing section 14 is compared with the command position/posture 'r which is set by the command position setting section 8 and the position/posture offset Δ ' is computed by the position offset computing section 15. The posture offset can be expressed by a vector which represents the angle of rotation between the command posture and the actual posture. Representing the matrix of the command hand coordinate system by ( hr, hr, hr), the posture offset is given by Ψ , where represents the unit vector of the axis of rotation, while Ψ is a rotation angle about the axis. The position/posture offset Δ ' thus determined is expressed in terms of the coordinate values of the base coordinate system. These coordinate values are then converted by a coordinate conversion section 16 into a spontaneous coordinate system such as a later-mentioned work surface coordinate system. This conversion is a rotational conversion as is the case of the conversion performed by the coordinate conversion section 11. A control computation is executed by a position/force control computing section 17 by making use of the force offset Δ and the position offset Δ on the spontaneous coordinate system determined in the manner as described above. In this embodiment, this computation is executed as imaginary compliance control by means of the elements 18 to 21 as explained before. More specifically, in an insensitive zone computing section 18, insensitive zone is computed for each coordinate axis of the force offset Δ so as to determine the force offset Δ '. A spring constant multiplication section 19 multiplies the position offset Δ with the imaginary spring constant matrix K set for each coordinate axis, thereby determining KΔ . A subtracting section 20 subtracts the thus determined KΔ from the force offset Δ ' obtained through the insensitive zone computation. A characteristic compensation computing section 21 effects a control characteristic compensating computation in the output Δ ' - KΔ of the subtracting section. Then, in the imaginary compliance control, a velocity command is computed in accordance with an imaginary mass matrix M and the imaginary viscosity coefficient matrix C in such a manner that the hand moves to simulate the condition of the aforementioned formula (1). This computation can be executed in the form of the following formula (2) which is obtained through transformation of the formula (1) into a discrete system: where, Δt represents a sampling period, n represents the n-th sampling cycle, represents a six-dimensional vector showing the translational movement and the rotation speed, Δ ' represents a six-dimensional vector representing the force/moment offset, Δ represents a six-dimensional vector representing the position/posture offset, and M,C and K are 6 x 6 matrixes. Diagonal matrixes are used as the matrixes M, C and K. The parameters K.M and C of each element,as well as the width of the insensitive zone, are given on the spontaneous coordinate system, and the position/force control computation is executed on this spontaneous coordinate system. The velocity command computed by the position/force computing section 17 is a command for operating the robot 1. The velocity command is expressed in terms of the coordinate values of the spontaneous coordinate system. These coordinate values are therefore converted by a coordinate conversion section 22 into the value ' on the base coordinate system and is then converted into angular velocity of each articulate of the robot by means of an angular velocity computing section 23. The command angular velocity is then converted by a motor speed computing section 24 into the speed of each driving motor, so that the robot is controlled through the servo amplifier 25 so as to move in accordance with the velocity command. A detailed description will be given of the rotational conversions performed by the coordinate conversion sections 11, 16 and 22. Unit vectors on the coordinate axes of the spontaneous coordinate system as viewed from the base coordinate system are expressed by a, a and a. In this case, the three-dimensional vector is expressed as a on the spontaneous coordinate system as follows. where, T represents a a transposition matrix. Namely, the coordinate conversion matrix can be expressed as ( a, a, a) T in the case where the conversion is a mere rotational conversion which does not include any movement of the point of origin. The matrixes used in the coordinate conversion sections 11 and 16 are 6 x 6 matrixes. This conversion is executed by using the following matrix for each of the translational movement and rotation. On the other hand, the coordinate conversion section 22 performs conversion from the spontaneous coordinate system into the base coordinate system, so that the abovbementioned formula is transformed into and further into Thus, the conversion matrix used in the coordinate conversion section 22 is given as follows: As will be understood from the foregoing description, the coordinate conversion performed by each of the coordinate conversion sections 11, 16 and 22 are given by unit vectors a, a and a of the coordinate axes of the spontaneous coordinate system. When the robot 1 is used for profiling operation, a work surface coordinate system. which has an origin on the end of the working tool and having axes coinciding with the directions of lines normal and tangential to the work surface is preferably used as the spontaneous coordinate system. In this case, unit vectors of the coordinate axes of the work surface coordinate system are used as the conversion matrix,and the values of the unit vectors are beforehand stored in the coordinate conversion sections 11, 16 and 22 along the curved surface to be followed by the hand. The embodiment described hereinbefore offers the following advantage when used in a profiling operation. Fig. 2 schematically illustrates the manner in which a curved surface profiling operation is being executed by the robot 1. The robot 1 is controlled such that the hand effector 4 follows the work surface 52. The force/moment acting on the hand effector 4 is sensed by the force sensor 3. In a conventional control system, this type of profiling operation is executed, for example, in a manner shown in Fig. 3 by an imaginary compliance control so as to simulate the following condition of dynamic system: Fig. 3 shows the conversion operation using the x-z plane for the purpose of simplification of explanation. In this embodiment, values of K and C are increased in the X-axis direction so as to provide a greater stiffness in the X-axis direction, while the hand effector 4 is fed at a velocity vx under the position control. The value K is set to be zero in the z-axis direction so as to dismiss any position restraint in the z-axis direction, and the hand effector 4 is pressed against the work surface with the force command fr under the force control. Representing the force detected by the force sensor 3 by f, the hand effector 4 moves in the z-axis direction in such a manner as to simulate the condition of: m v z + cvz = f - fr In the steady condition in which there is no change in the velocity, the condition of cvz = f - fr is met so that a force offset Δf = f - fr is required in order to generate the velocity vz necessary for the hand effector 4 to follow the curved surface. Assuming here that the feed velocity vx in the direction of the x-axis is constant, the force offset Δf varies in proportion to a change in the gradient of the curved surface. In consequence, the velocity vz and, hence, the pressing force f are proportional to the gradient of the curved surface. Representing the force offset allowed by the profiling operation by Δf0, the gradient of the curved surface which can be followed in the steady condition is given as follows: The followable gradient can be increased by increasing the factor 1/C but such a measure is not preferred because an increase in the factor 1/C, which is the gain of the velocity to the force ( v = 1/C·f ), causes a hunting in the control system. In order to obviate such inconvenience, it is not allowed to increase the value of the factor 1/C. In consequence, the curved surface of a large gradient is followed by the hand effector only when the feed velocity vx has a very small value, with the result that the efficiency of the profiling operation is impractically hampered. It will be seen that a practical limit exists when the profiling of a curved surface is effected by the method shown in Fig. 3. Fig. 4 illustrates a control system in which command values of the curved surface are described and the values of the factors K and C are determined such that any error such as the description (instruction) error, error due to wear of the tool and fluctuation in the work size are absorbed by an imaginary spring. In this case, it is necessary that the imaginary spring is incorporated not only in the z-axis direction but also in the x-axis direction so that above-mentioned errors occurring on a curved surface are absorbed. In this case, therefore, the influence of the spring appears also in the direction of feed of the hand, so that the position offset between the command position and the actual position is increased to hamper the operation. In particular, a defect such as excessive cutting tends to be caused at the portion of the curved surface where the curvature varies largely,because the feeding direction is changed while the position offset or error is large. In contrast to the conventional method explained in connection with Fig. 3, the described embodiment of the present invention makes use of the work surface coordinate system as the spontaneous coordinate system as shown in Fig. 5, so that the z-axis and the x-axis of the spontaneous coordinate system can always align with the directions of the lines normal and tangential to the work surface, respectively. Therefore, when the position control and the force control are performed in the x-axis direction and the z-axis direction, respectively, by the position/force control computing section 17, the error component of the gradient of the curved surface includes only the error incurred during setting of the coordinate. Thus, the profiling velocity vz is much smaller than that produced in the conventional method of Fig. 3 so that the force offset can be decreased. It is therefore possible to increase the moving speed in the x-axis direction, i.e., the feed velocity vx, without being restricted by the gradient of the curved surface. Fig. 6 shows a method which incorporates an imaginary spring so as to absorb the error, in correspondence with the conventional method shown in Fig. 4. In this case, since the x-axis is aligned with the tangential line, the hand is not restrained in this direction so that it is not necessary to incorporate the imaginary spring in the direction of the x-axis for the purpose of softening the imaginary spring. It is therefore possible to feed the hand in the x-axis direction by the ordinary position control, so that any inconvenience attributable to an increase in the position offset in the direction of feed can be eliminated. As has been described, according to the present invention, the required operation can be performed adequately and efficiently by virtue of the fact that a specific consideration is given to the method of setting the coordinate system for the control computation. Second Embodiment A second embodiment of the present invention will be described with reference to Fig. 7. The first embodiment described before is applied to the control of a robot having 6 (six) degrees of freedom. The invention, however, is basically applicable to various working machines having two or more degrees of freedom. The embodiment shown in Fig. 7 is applied to a machine tool having three axes. In this Figure, the same reference numerals are used to denote the same parts or members as those appearing in Fig. 1. Referring to Fig. 7, a machine tool denoted by 30 is provided with an x-y table 31 and a z-axis driving mechanism 32. The x-y table is a table which is movable in two orthogonal directions x and y. A work to be machined is set on this x-y table. The z-axis driving mechanism 32 is capable of operating in the z-axis direction which is in this case a vertical direction, and a hand effector 4 is secured to the end of the z-axis driving mechanism 32. The z-axis driving mechanism 32 is stationed against the movement of the x-y table 31. The position/force control apparatus used in combination with this machine tool employs a force computing section 33, a position computing section 34 and a motor speed computing section 35 which perform computations different from those of the corresponding sections in the first embodiment. As a result of the computations performed by the force computing section 33, position computing section 34 and the motor speed computing section 35, sections or means corresponding to the coordinate conversion section 10, angle computing section 13 and the angular velocity computing section 23 used in the first embodiment are dispensed with in the second embodiment shown in Fig. 7. More specifically, the force computing section 33 is capable of converting the force detected by a force sensor 4 from a sensor coordinate system into a hand coordinate system,thereby computing the level of the force applied to the hand. In this embodiment, computation of moment is unnecessary because the machine tool has a three-dimensional arrangement. In addition, the gravity compensation can be effected simply by subtracting a constant bias value because the posture of the hand effector 4 is not changed. Vectors handled by the force computing section 33 and other sections are all three dimensional translational vectors. The base coordinate system can be set on the x-y table which moves so that the hand coordinate system and the base coordinate system are the same with respect to the direction of movement of the x-y table, so that the force converted into the hand coordinate system by the force computing section 33 can be read on the reference coordinate system. The position computing section 34 computes the position of the hand by making use of values derived from encoders or linear scales. The hand position in this case is given as the position on the base coordinate system which is fixed to the x-y table 31. The motor speed computing section 35 directly computes the speed command for each driving motor from the speed command expressed in terms of the coordinate values of the base coordinate system. As will be seen from the foregoing description, in this embodiment of the present invention, the x-y-z coordinate system can directly be computed without necessitating the computation of articulate angles, unlike the embodiment shown in Fig. 1. In addition, the computation of posture and the computation of the moment which are necessary in the first embodiment are omitted in this second embodiment because the posture of the end effector 4 is not changed. Consequently, vectors such as , and appearing in Fig. 7 are three-dimensional vectors, while the factors such as K, M and C,as well as the coordinate conversion matrixes,are 3 x 3 matrixes, so that the computation is remarkably simplified as compared with the embodiment shown in Fig. 1. The operation of this embodiment is basically the same as that of the embodiment shown in Fig. 1 except that end effector 4 does not have degrees of freedom for changing its posture, so that the profiling control is executed a substantially in the same manner as that explained before in connection with Figs. 5 and 6. Third Embodiment A third embodiment of the present invention will be described with reference to Fig. 8. In the embodiment shown in Fig. 1, the position/posture offset Δ ' determined on the base coordinate system is converted into values of a spontaneous coordinate system, e.g.,a work surface coordinate system, by the coordinate conversion section 16, and the offset Δ of force and the offset Δ of position determined on this work coordinate system are input to the position/force control computing section 17. In this embodiment, the position command set by the position command setting section 8 is expressed in terms of the coordinate values of the base coordinate system. Therefore, when the work surface is slanted, the moving velocity given by this position command coincides with the set speed in the direction of the movement of, for example, the x-axis direction, but the moving velocity in the direction of the work surface varies according to the gradient of the work surface, with the result that the operation becomes unstable. The third embodiment is intended for obviating this problem by using a coordinate conversion section 16A disposed between the position computing section 14 and the position offset computing section 15. The coordinate conversion section 16A thus provided enables that the position command is set by the position command setting section 8 in terms of the coordinate values of the work surface coordinate system, so that the values set by the position command setting section 8 determines the moving velocity along the work surface. Therefore, the moving velocity along the work surface is not changed by the gradient of the work surface, so that the control is performed in a stable manner. Advantages Offered by First to Third Embodiments To sum up, the first to third embodiments as described offer the following advantages. (1) The directions of axes of the coordinate system on which the position and force are controlled can be set in any desired directions so that the control is performed with the coordinate system which is optimum for the task to be performed, whereby the control is conducted in an adequate manner with a high level of efficiency. (2) In case of the profiling control operation, the work surface coordinate system can be used as the spontaneous coordinate system, so that it is possible to press the end effector in the direction of the line normal to the work or to set an imaginary spring which acts in this direction,while effecting a feed in the tangential direction independently of the pressing or incorporation of the imaginary spring in the normal direction, thus enabling the control to be performed adequately and efficiently. (3) The use of the work surface coordinate system is not exclusive. For instance, by determining the restraining coordinate system in accordance with the reactional force produced as a result of the restraint and the direction of movement, it is possible to effect a complicated operation such as a three-dimensional cranking. (4) The conversion matrix for conversion into the spontaneous coordinate system is given as the posture conversion matrix from the reference coordinate system, so that the conversion matrix can be described in the form of unit vectors of the coordinate axes of the spontaneous coordinate system, whereby the handling is facilitated. Fourth Embodiment A fourth embodiment of the present invention will be described hereinunder with reference to Figs. 9 to 11. In this embodiment, the work surface coordinate system is used as the spontaneous coordinate system on the basis of which the position/force computing section performs the computation, and a function is incorporated by which the data of the work surface coordinate system used for the coordinate conversion by the coordinate conversion sections 11, 16 and 22 are automatically computed. More specifically, referring to Fig. 9, the fourth embodiment of the apparatus in accordance with the present invention employs a work coordinate system computing section which includes, in addition to the components employed in the embodiment of Fig. 1, a normal direction computing section 60 which determines, from the force data converted into the reference (base) coordinate system by the coordinate conversion section 10 (see Fig. 1), the vector in the direction of the normal to the work surface, a memory section 61 which successively stores position data concerning positions of the hand determined by the position computing section 14 (see Fig. 1) in accordance with the movement of the hand, a moving direction computing section 62 which determines the vector in the direction of movement on the basis of the data stored in the memory section 61, and a coordinate axis computing section 63 which computes the coordinate axes , and of the work surface coordinate system in accordance with a procedure shown in Fig. 10 from the normal direction vector and the moving direction vector . The number of the position data to be stored in the memory section 61 may be selected within a range which is to be employed in the computation performed by the moving direction computing section 62. The coordinate axes , and of the work surface coordinate as computed by the coordinate axis computing section 63 are the coordinate conversion matrix data of the coordinate conversion sections 11, 16 and 22 shown in Fig. 1. A description will be given of the operation of the work coordinate system computing section,with specific reference to Figs. 10 and 11. Fig. 11 is an illustration of the manner in which the work surface coordinate system is given. The work surface coordinate system has coordinate axes which are aligned with a line normal to the work surface and a line tangential to the work surface. The direction of the tangential line,however, is not definitely determined. In this embodiment, therefore, , and are set as the coordinate axes with one of these axes determined to coincide with the direction of movement of the hand. More specifically, represents the unit vector in the direction of the tangential line which is in the direction of movement, represents the unit vector in the direction of the normal line, and is a unit vector which is vertical both to the vectors and . Thus, the coordinate system ( , , ) constitutes a right-hand system. Fig. 11(b) illustrates the ( , ) plane of the coordinate system ( , , ). The reactional force which is applied to the hand effector 4 of the robot 1 from the work surface and the vector of the moving direction of the hand are in this plane, so that the vectors , and are determined by making use of the reactional force and the moving direction vector . The work coordinate system computing section computes the coordinate axes of the work coordinate system in accordance with the above-described principle. Namely, the force detected by the force sensor 3 is converted by the force computing section 9 and the coordinate conversion section 10 into the force applied to the hand effector 4 in terms of the coordinate values of the reference (base) coordinate system. This force corresponds to the reactional force shown in Fig. 11(b). The normal direction computing section 60 then computes the vector of the normal to the work from the thus determined reactional force. This computation is executed in such a manner as to eliminate any influence of friction which is encountered with thin control. The most accurate control is effected when the end effector 4 itself is made of a friction-less probe. In such a case, the detected reactional force acts in the direction of the normal. Namely, the direction of the reactional force and the direction of the normal direction vector coincide with each other in Fig. 11(b). If there is any unavoidable frictional resistance, a predetermined kinetic coefficient of friction is supposed. Such a constant kinetic coefficient of friction maintains a constant angle between the reactional force and the normal direction vector in Fig. 11(b), thus enabling determination of the normal direction vector . This embodiment may be carried out such as to detect also the moment in addition to the force. In such a case, the line of action of force is determined so that the point of contact between the end effector 4 and the work surface can also be determined if the outer configuration of the hand effector 4 is known, so that the normal direction can be determined regardless of a change in the coefficient of friction. As explained before, the position of the end effector 4 can be computed by the angle computing section 13 and the position computing section 14. The memory section 61 stores a required number of such position data and the moving direction computing section 62 computes the moving direction in accordance with the stored position data. The moving direction vector is the same as the moving speed but the magnitude of this vector need not be the same as the velocity because in which case the vector is used only for the purpose of shoeing the direction. The simplest form of computation of this direction is to calculate the difference between the difference between the instant value and the immediately preceding value or one of the preceding values. Other known methods such as use of a weight mean over several points for the purpose of eliminating the error factors such as noises can be used suitably. It is thus possible to determine the unit vectors , and of the coordinate axes by means of the work surface coordinate axes computing section 63 by making use of the normal direction vector determined by the normal direction computing section 60 and the moving direction vector determined by the moving direction computing section 62. The directions of the unit vectors theoretically coincide with the directions of the vectors and as will be seen from Fig. 1(b). This, however, does not actually take place because of reasons such as inclusion of measuring errors and noises. Namely, the vectors and may fail to cross each other orthogonally. This embodiment, therefore, is based upon an assumption that the level of the force can be measured with a high level of accuracy, and the normal direction vector is set in the direction of the vector , while the vector is determined such that it is perpendicular to the vector within a plane which contains the vectors and . The vector is orthogonal to the vectors and . Fig. 10 illustrates the process for determining these unit vectors , and of the coordinate axes. In Step 70, the normal vector is normalized by being divided by its magnitude | | thus forming a unit vector of a length l. In Step 71, outer product x is computed in order to determine a direction orthogonal to and . In Step 72, a unit vector is determined by normalizing the outer product x . In Step 73, a vector is determined as the outer product x , whereby the unit vector orthogonal to the vector in a plane including and is determined. The Step 71 may be modified such that an outer product x is determined in place of the outer product x . In such a case, the normalization of the vector may be executed after execution of Step 71. The coordinate axes , and of the work surface thus determined are delivered to the coordinate conversion sections 11, 16 and 22 of the control system of Fig. 1 so as to be used in the coordinate conversion between the work surface coordinate system and the base coordinate system. As has been described, in this embodiment, the work surface coordinate system on which the position/force control is to be done is automatically computed. If the work surface coordinate system has to be momentarily input along the work surface, a laborious work is required for the operator to successively input different coordinate systems particularly when the work has a complicated curved surface. In this embodiment, such a laborious operation is not necessary because the work surface coordinate system can be determined automatically. In addition, since the computation of the coordinate system is executed momentarily in accordance with the operation of the robot, this embodiment can be applied also to automatic profiling control which requires an on-line generation of the work surface coordinate system. Modification of Fourth Embodiment In the embodiments described hereinbefore, the coordinate axes , and are momentarily executed by the work surface coordinate system computing section in accordance with the operation of the robot. The arrangement maybe such that the results of the computation are stored as instruction data and used as coordinate conversion data during playing back. Fig. 12 shows an embodiment having such a function. The embodiment shown in this Figure has, in addition to the components shown in Fig. 9, a memory section 80 capable of storing, as instruction data, the vectors , and computed by the work surface coordinate axes computing section 63, together with the position/posture of the hand computed by the position computing section 14. The embodiment also has a play-back section 81 for playing back the stored data , and during the play-back operation and for delivering these data to the coordinate conversion sections 11, 16 and 22 as coordinate conversion data through, for example, interpolation. The embodiment further has a play-back section 82 for playing back the stored position/posture during play-back operation and delivering the same to a position command setting section 8 as the position/posture command after, for example, interpolation. According to this embodiment, the work surface coordinate system can be given as instruction data together with the position/posture and a working machine having a multiple degrees of freedom can be controlled by making use of the instruction data. Furthermore, the instruction data can be used for the purpose of, for example, form recognition. Fifth Embodiment A fifth embodiment which employs a different type of work coordinate system computing section will be described with reference to Figs. 13 and 14. In these Figures, the same reference numerals are used to denote the same parts as those in Fig. 9. In the embodiment shown in Fig. 9, the vector in the direction of the normal to the work surface is computed from the force vector as determined by the coordinate conversion section 10,and the unit vectors of the coordinate axes are determined from the normal direction vector and the moving direction vector . In the embodiment of Fig. 9, the vector cannot be determined precisely unless any influence of the frictional resistance is removed. In consequence, the directions of the vectors and do not precisely coincide with the directions of the vectors and . On the other hand, the moving direction vector can be determined comparatively precisely, so that the influence of friction can materially be eliminated if the vectors , and are determined on the basis of the moving direction vector . Such a method of determining the vectors , and is adopted in the embodiment shown in Fig. 13. Thus, the embodiment shown in Fig. 13 is devoid of the normal direction computing section 60 used in the embodiment shown in Fig. 9 and the reactional force vector converted by the coordinate conversion section 10 into coordinate values of the base coordinate system is directly fed to a work surface coordinate axes computing section 90 which computes the coordinate axes , and of the work surface coordinate system from the force vector and the moving direction vector . Namely, the direction of the vector is set to coincide with the direction of the moving direction vector , while the vector is determined to be orthogonal to the vector within a plane containing and . The vector is determined to be orthogonal to the vectors and . Fig. 14 is a flow chart illustrating the process of the computation performed by the coordinate axis computing section 90. In Step 91, the moving direction vector is normalized by being divided its magnitude or size | | whereby a unit vector having a length l is obtained. In Step 92, an outer product x is computed in order to determine the direction perpendicular to the reactional vectors and . In Step 93, the outer product is normalized so that a unit vector is formed. In Step 94, the outer product x is determined as , whereby the unit vector perpendicular to and existing in a plane containing and can be obtained. Step 92 for determining the outer product x may be modified such as to determine the outer product x . In such a case, the normalization of may be executed after completion of Step 92. As is the case of the modification of Fig. 12 on the embodiment shown in Fig. 9, the embodiment shown in Fig. 13 maybe modified such that the coordinate axis data , and determined through computation are used as instruction data. Such a modification is disclosed in Fig. 15. In Fig. 15,the same reference numerals are used to denote the same parts as those appearing in Fig. 12. It will be clear to those skilled in the art that this embodiment provides the same advantage as that offered by the embodiment of Fig. 12. Sixth Embodiment A description will be given of a sixth embodiment which employs a different form of the work coordinate system computing section, with specific reference to Figs. 16 to 19. In these Figures, the same reference numerals are used to denote the same parts as those appearing in Fig. 9. Referring to Fig. 16, the work coordinate system computing section has a normal direction computing section 60 for determining the normal direction vector in the direction of normal to the work surface, from the force data which has been converted into the reference (base) coordinate system by the coordinate conversion section 10 (see Fig. 1), a plane setting portion 100 for pre-setting a spontaneous plane P (see Fig. 18) in terms of coordinate axes vectors of a coordinate system which has two axes contained by this plane, and a coordinate axis computing section 63 which computes the coordinate axes , and of the work surface coordinate in accordance with a process shown in Fig. 17, from the normal direction vector n as determined by the normal direction computing section 60 and the coordinate axes vectors which represent the pre-set plane P pre-set by the plane setting section 100. In the case of a working machine in which the direction of feed is beforehand determined as in the case of automatic profiling, the plane set by the plane setting section 100 should contain the direction of the feed. The coordinate axes , and computed by the coordinate axes computing section 63 is used as data for the coordinate conversion matrix used in the coordinate conversion sections 11, 16 and 22 shown in Fig. 1. The operation of the work coordinate system computing section used in this embodiment will be described with reference to Figs. 17 to 19. Fig. 18 illustrates the manner for setting the work surface coordinate system. The work surface coordinate system has coordinate axes which coincide with the lines normal and tangential to the work surface, respectively. The tangential line, however, cannot be determined definitely. In this embodiment, the line at which the work intersects the plane P pre-set by the plane setting section 100 is used as the coordinate axis of the tangential direction. Thus, the work surface coordinate system in this case employs coordinate axes , and . The vector is a unit vector in the direction of line of intersection between the pre-set plane P and the tangential plane, the vector is a unit vector in the direction of the normal, and the vector is a unit vector which is perpendicular to the vectors and . Thus, the coordinate system ( , , k) provides a right-hand system. The reason why the line of intersection between the pre-set plane P and the tangential plane is selected as one of the coordinate axes is that the feed is effected in this direction when the system is applied to an automatic profiling. The feed in the direction of the vector i ensures that the hand effector is fed on this plane because the direction of the vector is in this plane P. Namely, the hand can be fed along the line of intersection between the plane P and the work as shown by a broken line in Fig. 18. The work coordinate system computing section of this embodiment computes the coordinate axes of the work coordinate system in accordance with the above-described principle. Namely, the force detected by the force sensor 3 is converted into the force acting on the end effector 4 in terms of the coordinate values of the reference (base) coordinate system by the force computing section 9 and the coordinate conversion section 10 as described before. This force corresponds to the reactional force shown in Fig. 19. The normal direction vector in the direction of normal to the work surface is computed by the normal direction computing section 50 from the thus determined force . This computation is executed in such a manner as to eliminate any influence of frictional force r because the control is significantly influenced by the frictional force. In order to attain the highest accuracy of the control, it is advisable that the end effector 4 itself is made from a friction-less probe. In such a case, the reactional force detected as described above acts in the direction of the normal to the work surface. i.e., the direction of the reactional force vector coincides with the direction of the normal direction vector . When frictional force is inevitable, a constant kinetic coefficient of friction is employed so as to provide a constant angle formed between the vectors and in Fig. 19, so that the normal direction vector can be determined. Furthermore, detection of moment in addition to the detection of the force enables determination of the line of action of the force and the point of contact can be determined if the outer configuration of the end effector 4 is determined,whereby the direction of the normal can be always determined regardless of a change in the coefficient of friction. The plane setting section 100 expresses the plane P in terms of a coordinate system two axes of which are included in this plane P. In this case, a coordinate system having an x-z plane coinciding with the plane P is expressed in terms of unit vectors x, y and z. Thus, the unit vectors , and of the coordinate system are determined by the work surface coordinate axis computing section 63 by making use of the normal direction vector determined by the normal direction computing section 60 and the plane which is pre-set by the plane setting section 100. The direction of the unit vector coincides with the direction of line of intersection between the plane P set by the plane setting section and the tangential pane,. The direction of the unit vector coincides with the direction of the normal direction vector . The vector is orthogonal to both the unit vectors and . In order to compute the direction of the line of intersection between the pre-set plane P and the work 52, the normal vector is projected on the pre-set plane P and the projection is rotated through 90° within the pre-set pane P to determine the direction of the line of intersection. This computation is most simply executed by employing an intermediate step for conversion into a coordinate system two axes of which are included in the pre-set plane P. To this end, in Step 110, the normal direction vector is converted into a coordinate system two axes of which are included in the pre-set plane. The normal direction vector on this coordinate system is expressed as where T represents a transposition of matrix. In this case, T indicates that the vector is a column vector. This coordinate conversion can be effected by making use of the unit vectors x, y and z representing the coordinate axe set by the plane setting section: namely, using ( x, y, z)T as the coordinate conversion matrix so as to determine In Step 111, the vector ' is projected onto the x-z plane and rotated through 90°. The projection of the vector ' onto the x-z plane is determined by the x-axis component and the z-axis component of the vector ' and,therefore, is given by (n'x, 0, n'z) T . In order to rotate this projection through 90° in the x-z plane, n'z is changed into the x-axis component and -n'x is changed into the z-axis component. Thus, the vector after the 90° rotation is given by (n'z, 0, -n'x) T . Therefore, the vector (n'z, 0, -n'x) T can easily be computed from the vector ' as determined in Step 110. The vector (n'z, 0, n'x) T in the direction of the line of intersection is thus determined. Since this vector is expressed in terms of the coordinate values of the coordinate system which is set by the plane setting section, it is necessary to effect a coordinate conversion so as to express the vector in terms of the original coordinate system. This can be achieved by executing a process which is reverse to that of the coordinate conversion explained above. Namely, the conversion is effected by using an inverse matrix which is represented by ( x, y, z). Thus,the vector in the direction of line of intersection is determined by ( x, y, z) (n'z, 0, -n'x) T . This vector is then normalized by being divided by the length of the vector so that a vector of a length l is obtained as the unit vector . This operation is executed in Step 112. In Step 113, the normal direction vector is normalized so that the unit vector is determined. In Step 114, the outer product x is computed to determine the unit vector which is normal to the vectors and . The coordinate axes , and of the work surface coordinate system are thus determined. These vectors , and are delivered to the coordinate conversion sections 11,16 and 22 of the control system shown in Fig. 1 so as to be used for the purpose of coordinate conversion between the work surface coordinate system and the base coordinate system. In the embodiments described hereinbefore, the pre-set plane P can be determined freely. However, the computation will be much facilitated if the pre-set plane P is determined as a plane which contains two axes of the base coordinate system. For instance, if the x-z plane of the base coordinate system is used as the plane P, the coordinate conversion operations executed in Steps 110and 112 in Fig.17 can be dispensed with, so that the computation is very much facilitated. In this case, the plane setting section 100 shown in Fig. 16 is not required to perform any computation. As is the case of the fourth embodiment described before, the sixth embodiment enables an easy setting of the work surface coordinate system even in case of a complicated curved surface which otherwise would require a laborious manual input of successive coordinate systems. In case of automatic profiling, it is necessary that the work surface coordinate systems are generated successively in an on-line manner. It will be seen that the sixth embodiment well copes with such a demand. In the sixth embodiment described hereinabove, the vector in the direction tangent to the work surface is determined by using both the detected value of the force and a pre-set plane, so that the unit vector of one of the coordinate axes is set on the pre-set plane. Therefore, the hand effector can always be fed in a direction parallel to the set plane by operating the position command setting section 8 (see Fig. 1) such as to effect the feed in the direction,whereby the error in the direction of movement can be decreased. Modification of Sixth Embodiment A modification of the sixth embodiment will be described with specific reference to Fig. 20. In the sixth embodiment, the end effector 4 itself is made of a friction-less probe in order to eliminate any influence of the frictional force r in the computation of the normal direction vector or,alternatively,a predetermined value of kinetic coefficient of friction is assumed. This modification employs another method of eliminating the influence of the frictional force r. Namely, in this modification, the influence of the frictional force r is eliminated by using the moving direction vector . The moving direction vector can be determined comparatively precisely from informations such as the velocity information and the position information. This moving direction vector therefore is used as the direction tangent to the work. On the other hand, the reactional force vector is inclined towards the frictional force vector r but is in the plane formed by the normal direction vector and the moving direction vector . The normal direction vector therefore can be determined as a vector of a direction which is orthogonal to the vector and which is contained in the plane orthogonal to the vector . Actually, a vector orthogonal to the vectors and are determined by computing the outer product Then, the normal direction vector which is orthogonal to the vectors and is determined by computing the outer product The moving direction can be determined from the velocity information or the position information. The modification shown in Fig. 20 makes use of the position information for this purpose. Referring to Fig. 20, the position of the hand effector 4 is computed by the angle computing section 13 and the position computing section 14. A required number of positions thus computed are stored in the memory section 61 and the moving direction vector is computed by the moving direction computing section 62. The normal direction computing section 60A computes the normal direction vector in accordance with the above-described method from the thus computed moving direction and the force vector obtained through conversion performed by the coordinate conversion section 10. According to this embodiment, the normal direction vector can be determined without influence of frictional force so that the work surface coordinate system can be determined accurately by making use of the position information which has already been detected in the force/position control. In the fourth to sixth embodiments described before, the moving direction vector which represents the moving direction of the end effector 4 and which is used for the purpose of computation of the coordinate axes of the work surface coordinate system is computed from the axis angle data which is derived from the angle meter 5 capable of detecting the angle of the hand effector. This, however, is not exclusive and the moving direction vector can be computed from the velocity data derived from a velocity meter capable of detecting the moving velocity of the hand effector 4. Advantages of Fourth to Sixth Embodiments To sum up, the fourth to sixth embodiments offer the following advantages. (1) The coordinate axes used in the computations for the control of position and force are automatically computed from the detected value of the force and the moving direction or a pre-set plane, so that the coordinate system is always optimized fro the content of the operation, whereby the required operation is performed optimumly and efficiently. (2) In case of the curved surface profiling operation, the control is executed through computation of coordinate axes of the work surface coordinate system, so that it is possible to press the hand effector in the direction normal to the work surface or to set an imaginary spring in this direction, while the feed in the tangential direction can be effected independently of the operation in the normal direction, whereby the operation can be achieved appropriately and efficiently. In addition,it is easy to effect a profiling operation in which the surface of an unknown object is followed through continuous computation of the work surface coordinate system. (3) In case of a curved surface profiling operation, the vector in the direction tangent to the work surface is effected by making use of a detected value of the force and a previously set plane, and the unit vector of one of the axes is set on the pre-set plane. By setting the position command such as to effect the feed in the direction of this unit vector,therefore, it is possible to set the moving direction in parallel to this pre-set plane, whereby th error in the moving direction can be decreased. 4) Since the work surface coordinate system can be computed, it is easy to add such a function as to maintain a constant posture of the tool with respect to the work. (5) The coordinate axis data obtained through computation can be stored in a memory for play-back, so that the instructions converting the coordinate system can be given easily,thus enabling the coordinate system to be used freely. In addition, since the instruction data is stored, it is easy to know the direction of the object surface, thus enabling the control system to be used for other purposed such as, for example, shape recognition. Seventh Embodiment A seventh embodiment of the present invention will be described with reference to Figs. 21 to 26. In these Figures, the same reference numerals are used to denote the same parts as those appearing in Fig. 1. Referring to Fig. 21, a robot 1 is provided with a working tool 4 which is provided on en end of a hand 2 and which is movable to any desired position to profile the curved surface of a work 52. Basically, the robot 1 has two or more degrees of freedom. In this embodiment, however, it is assumed that the robot has three degrees of freedom, for the purpose of simplification of explanation. The control system for the robot 1 has a force setting device 120 capable of generating one type of signal and setting the magnitude of the force to be applied to the working tool 4, a two-dimensional input device 121 capable of generating two independent signals and determining the direction of movement of the working tool 4, a force sensor 3 connected between the hand 2 and the working tool 4 and capable of detecting the level of the force applied to the working tool 4, angle meters 5 for detecting axis angles around the respective articulates of the robot 1, and a controller 122 for delivering a control signal to the robot 1 in accordance with the informations given from the force setting device 120, two-dimensional input device 121, force sensor 3 and the angle meters 5. The force setting device 120 may be an analog input device such as a potentiometer. Alternatively, a digital input device such as a ten-key device may be used as the force setting device. The two-dimensional input device 121 may be a device such as a joy stick device. The force sensor 3 is capable of measuring forces in the direction of the three orthogonal axes,corresponding to three degrees of freedom possessed by the robot 1. A potentiometer or an encoder connected to the driving motor for causing movement about each articulate axis maybe used as the angle meter 5. Generally,the controller 12 determines the orthogonal coordinate system which defines the space in which the working tool 4 moves. The controller 122 performs a control computation for producing an instruction concerning the level of the force set by the force setting device 120 for one of three orthogonal axes. In this embodiment, a work surface coordinate system, which has the origin on the end of the working tool 4 contacting the work surface and one axis which is normal to the work surface, is used as the orthogonal coordinate system. Using this orthogonal coordinate system, control computation for position and force is executed by imaginary compliance control. Fig. 22 illustrates the control blocks in the controller 122. The force detected by the force sensor 3 is converted into the value of the work surface coordinate system, through the operations of the force computing section 9 and the coordinate conversion sections 10 and 11. The value is compared by the comparator 12 with the force command r (force Fr exists only in z-axis direction while force components in other axis directions are zero) input by the force setting device 120, whereby an offset Δ is determined. On the other hand, the axis angle data from the angle meter 5, e.g., an encoder, capable of detecting the angle about the axis of each articulate is converted into value ' on the base coordinate system by means of the angle computing section 13 and the position computing section 14. The two-dimensional input device 121 capable of setting the direction of movement of the working tool 4 is designed to compute, at a predetermined period or interval, the position increment Δ (i) which is composed of an x-axis component ΔP(i)x and a y-axis component ΔP(i)y. The increment is converted by the coordinate conversion section 123 into the coordinate values of the base coordinate system and is added by the position command computing section 124 to the instant position command 'r(i), whereby a new position command 'r(i+1) is created. Thus, the position command computing section 124 performs the following computation. The value 'r(i + 1) computed by the position command setting section 1 24 is output as a new position command 'r and is compared by the comparator 15 with the position value ' derived from the position computing section 19,whereby an offset Δ ' is computed. The value Δ ' is converted by the coordinate conversion section 16 into coordinate value Δ of the work surface coordinate system. The offsets Δ and Δ is input to the force control computing section 17 which performs a computation for imaginary compliance control. The value obtained as a result of the computation is converted into coordinate values of the base coordinate system by means of the coordinate conversion section 22 and is delivered through the angular velocity computing section 23 and the motor speed computing section 24 into the servo amplifier, there controlling the movement of the robot 1. Fig. 23 shows the hardware of the controller 122. The controller 122 has a CPU 130 which is capable of controlling the control computation in accordance with control block diagram as shown in Fig. 22. The program for executing this process is beforehand input to a ROM 131. A RAM 132 is used for storing results of computations performed in intermediate steps of the process. Analog signals from the force setting device 120, two-dimensional input device 121, force sensor 3 and the angle meter 5 are digitized and processed by an A/D converter 133. When a keyboard 134 is used as the force setting device 120, the digital outputs from the keyboard 134 are directly input to the system. The result of the final computing process is changed into analog signal by means of a D/A converter 135,and the robot 1 is operated in accordance with this analog signal through the servo amplifier 25. Each of the coordinate conversion sections 11, 16,22 and 123 is required to compute the work surface coordinate system which is to be used as the data for coordinate conversion matrix which is used in the conversion rom the base (reference) coordinate system to the work coordinate system or vice versa. Fig. 24 illustrates control blocks required for such a computation of the work surface coordinate system. When the working tool 4is held in contact with the work surface, a reactional force is applied in the direction normal to the tangential plane,an this reactional force is detected by the force sensor 3. The thus detected reactional force is converted by the coordinate conversion section 10 into values of the base coordinate system. The reactional force converted into the values of the base coordinate system is used in the computation for determining the work surface coordinate system. This computation may be executed by a method which is a simplified form of the method explained before in connection with Fig. 6. In this embodiment, the coordinate axes , and of the aforementioned work surface coordinate system are represented as x i , y i and z i axes. Namely, the reactional force is converted into values of the base coordinate system by means of the normal direction computing section 60, and the direction of the thus converted reactional force is determined as the direction of the normal to the work surface. Then, a coordinate axis computing section 140 for the work surface coordinate system determines, as the direction of the z i axis of the work surface coordinate system, the direction of the normal which coincides with the direction of the reactional force after the conversion into the base coordinate system. The coordinate axis computing section 140 beforehand stores data Ob (xb, yb, zb) (see Fig. 25) of the base coordinate system. The coordinate axis computing section 140 therefore can determine the x i axis as the axis which is in the xb-zb plane of the base coordinate system and which is orthogonal to the z i axis. Then, the y i axis is determined to be orthogonal both to the z and x axes such that the axes z i , x i and y i provide a right-hand system. It is thus possible to define the work surface coordinate system which has the origin located on the end of the working tool 4 contacting the work surface. The data of the work surface coordinate system are then delivered to the coordinate conversion sections 11, 16, 22 and 123 each of which computes the conversion matrix for coordinate conversion between the work coordinate system and the base (reference) coordinate system, thereby executing the respective coordinate conversion operations. An example of the curved surface profiling operation in accordance with this embodiment will be explained in connection with Figs. 25 and 26. In these Figures, the base coordinate system is represented by Ob-xb, yb, zb. An assumption is made here that the working tool 4 is first held in contact with the work 52 at a certain instant at a position (i) and is then moved in the next instant to a position (i+1) while keeping a contact with the surface of the work 52. For enabling the robot to perform such a task, the operator inputs the level of the force Fr in the z-axis direction of the work surface coordinate system, by means of the force setting device 120. This value is input to the aforesaid comparator 12 so as to be used as the force command r. On the other hand, the working tool 4 is held in contact with the work surface so that the reactional force is detected by the force sensor 3. Then, as described before, the data on the work surface coordinate system are delivered to the coordinate conversion sections 11, 16, 22 and 123. The force command Fr from the force setting device 120 is then compared by the comparator 12 with the force value converted into the values of the work surface coordinate system. Then, the imaginary compliance control computing section 17 performs a force control for generating the force Fr in the direction of the z-axis of the work surface coordinate system. Inconsequence,the working tool 4 is pressed onto the work surface in the direction normal thereto with the pressing force Fr. In this state, the operator manually operates the two-dimensional input device 121 so as to tilt the lever in the direction (i+1). The two-dimensional input device 121 decompose the moving direction into the components of the x i axis and Y i axis of the work surface coordinate system, so that two types of signal corresponding to these components are input to the coordinate conversion section 123 and the command position computing section 124. The new position command 'r(i+1) as computed by the position command computing section 124 is input to the comparator 15 and the imaginary compliance control computing section 17 performs the position control in accordance with the result of the comparison. Inconsequence, the working tool 4 is moved to reach the position (i + 1) while being pressed with the force Fr onto the work surface in the direction normal to the work surface. As will be understood from the foregoing description, this embodiment of the present invention enables the working tool 4 to be moved to a desired position on the work surface by profiling the curved surface of the work while keeping the working tool in contact with the work surface with a constant pressing force, simply by a manual operation of the two-dimensional input device 121,once the desired pressing force level is set through the force setting device 120. The work surface coordinate system (i) -xi yi zi is momentarily renewed in accordance with the direction of the reactional force detected a teach moment,so that the profiling operation can be performed easily while eliminating any risk for the moving direction to be set erroneously. To sum up, this embodiment offers the following advantages. (1) The manipulation is simplified to reduce fatigue of the operator because the user can control the working tool with the same feeling as that in the control along a flat surface or plane,even if the work has a complicated curved configuration. (2) When the system is applied to teaching operation, the teaching speed is increased by virtue of the simplified manipulation. Teaching of posture can be dispensed with when the posture of the working tool also is controlled, thus attaining a further speed-up of the teaching operation. (3) Fatigue of the operator is reduced in. for example, grinding because the operator is not required to hold the working tool in his hand. (4) Since the work surface coordinate system is used as the spontaneous coordinate system, the moving direction varies according to the curvature of the work surface. This enables the operator to grasp the moving distance and velocity as a matter of sense, thus contributing to a further improvement in the maneuverability.

Claims: A position/force control apparatus for a multiple-degree-of-freedom working machine such as a robot (1) or a machine tool having at least two degrees of freedom of position and having a working tool (4) adapted to move relative to an object (52) to be worked for performing an operation, comprising: first setting means (8) for setting a position and/or posture command for commanding a position and/or posture of the working tool on said machine; first detection means (5) for detecting an instant position and/or posture of said working tool; second setting means (7) for setting a force and/or moment command for commanding a force and/or moment to be applied to said working tool; second detection means (3) for detecting an instant force and/or moment acting on said working tool; first computing means (15, 16) for determining, from said position and/or posture command set by said first setting means and said instant position and/or posture detected by said first detection means, a position and/or posture error between the position and/or posture command and the instant position and/or posture; second computing means (11, 12) for determining, from said force and or moment command set by said second setting means and said instant force and/or moment detected by said second detection means, a force and/or moment error between the force and/or moment command and the instant force and/or moment; third computing means (17) for executing a computation for position and force control of said working tool by making use of said position and/or posture error and said force and/or moment error obtained by said first and second computing means to determine an amount of control to be effected on said working machine; fourth computing means (22) for converting the control amount determined by said third computing means into an operation command for driving said working machine; and means (23, 24, 25) for driving the working machine to control the working tool dependent upon said control amount determined by said third computing means based on said operation command determined by said fourth computing means; characterized in that the apparatus further comprises: means (11, 16, 22) for providing coordinate conversion data on an operation coordinate system associated with said object (52) to be worked, said operation coordinate system having three orthogonal coordinate axes with the origin thereof being placed on an end of said working tool (4), two of the three coordinate axes having the same directions as lines normal to and tangential to or parallel to a surface of said object, respectively, whereby the directions of the two coordinate axes are caused to change with the relative movement between said working tool and said object to be worked; said first and second computing means (15, 16:11, 12) determines said position and/or posture error and said force and/or moment error as values converted into said operation coordinate system using said coordinate conversion data; said third computing means (17) determines said amount of control to be effected on said working machine as values of said operation coordinate system using said coordinate conversion data; and said fourth computing means (22) converts the control amount into the operation command for driving said working machine using said coordinate conversion data. A position/force control apparatus according to claim 1, wherein said first computing means includes first means (15) for determining a position and/or posture error between said position and/or posture command set by said first setting means (18) and said instant position and/or posture detected by said first detection means (5), and second means (16) for converting said position and/or posture error determined by said first means into the coordinate values of said operation coordinate system using said coordinate conversion data, and wherein said second computing means includes third means (11) for converting said instant force and/or moment detected by said second detection means (3) into coordinate values of said operation coordinate system using said coordinate conversion data, and fourth means (12) for determining said force and/or moment error between said instant force and/or moment converted into the coordinate values of said operation coordinate system by said third means (11) and said force and/or moment command set by said second setting means (7). A position/force control apparatus according to claim 2, wherein said first computing means further includes fifth means (14) for converting said instant position and/or posture detected by said first detection means (5) into coordinate values of a base coordinate system fixed to a space in which said working machine is situated, before determining said position and/or posture error by said first means (15), wherein said second computing means further includes sixth means (10) for converting said instant force and/or moment detected by said second detection means (3) into coordinate values of a reference coordinate system which have three orthogonal coordinate axes of the same directions as said base coordinate system and having the same origin as that of a hand coordinate system fixed to said working tool, before converting the same into the coordinate values of said operation coordinate system by said third means (11); and wherein said fourth computing means includes seventh means (22) for converting the control amount determined by said third computing means (17) into coordinate values of said base coordinate system and eighth means (23) for converting said control amount in terms of the coordinate values of said base coordinate system into said operation command for the system for driving said working machine. A position/force control apparatus according to claim 1, wherein said first computing means includes ninth means (16A) for converting said instant position and/or posture detected by said first detection means (5) into coordinate values of said operation coordinate system using said coordinate conversion data, and tenth means (15) for determining said position and/or posture error between said instant position and/or posture in terms of the coordinate values of said operation coordinate system obtained by said ninth means (16A) and said position and/or posture command set by said first setting means (8), and wherein said second computing means includes eleventh means (11) for converting said instant force and/or moment detected by said second detection means (3) into coordinate values of said operation coordinate system using said coordinate conversion data, and twelfth means (12) for determining said force and/or moment error between the instant force and/or moment converted into the coordinate values of said operation coordinate system by said eleventh means (11) and said force and/or moment command set by said second setting means (7). A position/force control apparatus according to claim 4, wherein said first computing means further includes thirteenth means (14) for converting said instant position and/or posture detected by said first detection means (5) into coordinate values of a base coordinate system fixed to a space in which said working machine is situated, before converting the same by said ninth means (16A) into the coordinate values of said operation coordinate system, wherein said second computing means further includes fourteenth means (10) for converting said instant force and/or moment detected by said second detection means (3) into coordinate values of a reference coordinate system which have three orthogonal coordinate axes of the same directions as said base coordinate system and having the same origin as that of a hand coordinate system fixed to said working tool, before converting the same into the coordinate values of said operation coordinate system by said eleventh means (11); and wherein said fourth computing means includes fifteenth means (22) for converting the control amount determined by said third computing means (17) into coordinate values of said base coordinate system and sixteenth means (23) for converting said control amount in terms of the coordinate values of said base coordinate system into said operation command for the system for driving said working machine. A position/force control apparatus according to claim 1, wherein said third computing means (17) further includes seventeenth means (19) for multiplying said position and/or posture error Δ determined by said first computing means (16) with a spring constant matrix K defining spring constants set for the respective coordinate axes of said operation coordinate system, eighteenth means (18) for effecting a dead zone computation for incorporating, in said force and/or moment error Δ determined by said second computing means (12), dead zones for the respective coordinate axes of said operation coordinate system, nineteenth means (20) for subtracting the value K Δ obtained by said seventeenth means (19) from the value Δ ' determined by said eighteenth means (18), and twentieth means (21) for effecting a predetermined characteristic compensation computation on the value Δ ' - KΔ determined by said nineteenth means (20) so as to determine a velocity command as said control amount. A position/force control apparatus according to claim 6, wherein said twentieth means (21) performs a virtual compliance control computation in accordance with the following formula, by making use of a virtual mass matrix M and a virtual viscosity coefficient matrix C: A position/force control apparatus according to claim 1, wherein said coordinate conversion data providing means comprises: fifth computing means (62) for computing a vector of a direction of movement of said working tool from said instant position detected by said first detection means (5); sixth computing means (9) for computing a vector of a reactional force vector received by said working tool from said instant force detected by said second detection means (3); and seventh computing means (60, 63) for computing orthogonal unit vectors , and from said reactional force vector computed by said sixth computing means (9) and said moving direction vector computed by said fifth computing means (62); wherein said first, second and fourth computing means (16, 11, 22) executes, by making use of said unit vectors , and computed by the seventh computing means as said conversion data, said coordinate conversion by using the cartesian coordinate system ( , , ) formed by said unit vectors as said operation coordinate system. A position/force control apparatus according to claim 8, wherein said seventh computing means (60, 63; 70-73) computes the unit vector from said reactional force vector computed by said sixth computing means (9), and computes from said unit vector and said moving direction vector computed by said fifth computing means (62), the unit vector as a unit vector orthogonal both to said unit vectors , , and the unit vector as a unit vector orthogonal to said unit vector in a plane defined by said unit vectors and . A position/force control apparatus according to claim 9, wherein said seventh computing means (60, 63; 70) computes a normal direction vector in the direction normal to the work surface from said reactional force vector computed by said sixth computing means (9), and computes the unit vector from said normal direction vector as a unit vector thereof. A position/force control apparatus according to claim 8, wherein said seventh computing means (90; 91-94) computes the unit vector from said moving direction vector computed by said fifth computing means (62) as a unit vector of the direction of movement of said working tool, and computes, from said unit vector and said reactional force vector computed by said sixth computing means (9), the unit vector as a unit vector orthogonal to said vectors and , and the unit vector as a unit vector orthogonal to said unit vector and contained in the plane defined by said unit vectors and . A position/force control apparatus according to claim 8, wherein said coordinate conversion data providing means comprises: memory means (80) for storing said unit vectors , and computed by said seventh computing means (63), together with other teaching data; and play-back means (81, 82) for outputting the stored data during play-back operation. A position/force control apparatus according to claim 8, wherein said seventh computing means (63) computes, from the moving direction vector computed by said fifth computing means (62) and the reactional force vector computed by said sixth computing means (9), the unit vectors , and as unit vectors of a work surface coordinate system having its origin on an end of said working tool and including coordinate axes of the same directions as lines normal to and tangential to said work surface, respectively. A position/force control apparatus according to claim 1, wherein said coordinate conversion data providing means comprises: third setting means (100) for pre-setting a plane which intersects said work surface; eigth computing means (19) for computing a vector of a reactional force received by said working tool from the instant force detected by said second detection means (3); ninth computing means (60) for computing a normal direction vector of the direction normal to the work surface from at least said reactional force vector computed by said eighth computing means (9); and tenth computing means (63) for computing, from said normal direction vector computed by said ninth computing means (60), a unit vector of said normal direction vector, and computing, from said normal direction vector and said plane pre-set by said third setting means (100), a unit vector in the direction of line of intersection between a tangential plane of said work surface and the pre-set plane, and computing a unit vector orthogonal both to said unit vectors and ; wherein said first, second and fourth computing means (16, 11, 22) executes, by making use of said unit vectors , and computed by said tenth means (63), said coordinate conversion by using the cartesian coordinate system ( , , ) formed by said unit vectors as said operation coordinate system. A position/force control apparatus according to claim 14, wherein said coordinate conversion data providing means comprises eleventh computing means (62) for computing a vector of a direction of movement of said working tool from said instant position detected by said first detection means (5); wherein said ninth computing means (60A) computes a vector orthogonal both to said reactional force vector computed by said eighth computing means (9) and said moving direction vector computed by said eleventh computing means (62), and computes a unit vector orthogonal both to said moving direction vector and said vector as said normal direction vector normal to said work surface. A position/force control apparatus according to claim 1, wherein said coordinate conversion data providing means provides, as said coordinate conversion data on said operation coordinate system, those data on a work surface coordinate system having its origin on an end of said working tool (4) contacting said work surface and having three orthogonal axes one of which is directed in the direction of the normal to said work surface, wherein said first setting means includes two-dimensional input means (121) for setting a direction of movement of said working tool, wherein said second setting means includes force setting means (120) for setting a level of the force to be applied to said working tool, and wherein said third computing means (17) conducts a computation for indicating the level of the force set by said force setting means for one of the three orthogonal axes of said work surface coordinate system, while conducting a computation for indicating the direction of movement set by said two-dimensional setting means on the remainder two of said three orthogonal axes.

Inventors: KASHIWAGI KUNIO, KURENUMA TORU, TSUTSUI SHINSAKU, YAMADA KAZUYOSHI, KASHIWAGI, KUNIO, KURENUMA, TORU, TSUTSUI, SHINSAKU, YAMADA, KAZUYOSHI
Applicants: HITACHI CONSTRUCTION MACHINERY, HITACHI CONSTRUCTION MACHINERY CO., LTD.
Application year: 1989
Main classification: B25J9
IPC codes: B25J9, G05B19