[go: up one dir, main page]

CN1771114A - Method and device for controlling a manipulator - Google Patents

Method and device for controlling a manipulator Download PDF

Info

Publication number
CN1771114A
CN1771114A CN200480009285.XA CN200480009285A CN1771114A CN 1771114 A CN1771114 A CN 1771114A CN 200480009285 A CN200480009285 A CN 200480009285A CN 1771114 A CN1771114 A CN 1771114A
Authority
CN
China
Prior art keywords
torque
motor
collision
control
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200480009285.XA
Other languages
Chinese (zh)
Other versions
CN100413657C (en
Inventor
中田广之
增永直人
桥本敦实
向井康士
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Publication of CN1771114A publication Critical patent/CN1771114A/en
Application granted granted Critical
Publication of CN100413657C publication Critical patent/CN100413657C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Manipulator (AREA)
  • Control Of Position Or Direction (AREA)
  • Feedback Control In General (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

By appropriately selecting the command value or the actually measured value as the angular velocity for the friction torque calculation, the friction compensation can be effective in both cases when the operation is actively performed according to the angular velocity command and the passive operation, i.e., when pushed by an external force. Also, after the collision is detected, when the motor rotation direction and the collision direction are opposite, the position control is switched to the current control so that the motor generates a torque in the direction opposite to the motor rotation direction, thereby reducing the motor rotation speed and attenuating the collision energy. Thereafter, when the motor rotation speed becomes a set value or less, the mode is set to the flexible control, thereby eliminating deformation of the speed reduction device or the like caused by the collision. On the other hand, when the motor rotation direction and the collision direction are the same, the position control is directly switched to the flexible control without passing through the current control. By performing the operation in accordance with the collision force, it is possible to attenuate the collision torque.

Description

控制机械手的方法和设备Method and device for controlling a manipulator

技术领域technical field

本发明涉及一种控制由电机驱动的机械手的方法和设备。更具体而言,本发明涉及一种用于控制机械手的顺应性(compliance)伺服控制技术,即本发明涉及一种用于控制在已经检测到机械手与物体的碰撞后进行的机械手停止的方法和设备。The invention relates to a method and a device for controlling a manipulator driven by a motor. More specifically, the present invention relates to a compliance servo control technique for controlling a manipulator, i.e. the invention relates to a method for controlling a manipulator stop after a collision with an object has been detected and equipment.

背景技术Background technique

近来,机器人已经不仅用于工业领域,而且用于公共消费者领域。因此,保证安全已经变得重要。但是,按照通过使用力传感器检测在碰撞时施加到机器人的外力来停止机器人的停止部件,制造成本和重量不希望地增加。于是,期望不使用传感器而增强顺应性伺服控制的性能和增强停止运动的控制的性能,所述顺应性伺服控制包括碰撞检测。Recently, robots have been used not only in industrial fields but also in public consumer fields. Therefore, ensuring security has become important. However, according to the stopper that stops the robot by detecting an external force applied to the robot at the time of collision using a force sensor, manufacturing cost and weight undesirably increase. Thus, it is desirable to enhance the performance of compliant servo control, including collision detection, and to enhance the performance of stop-motion control without the use of sensors.

关于用于不使用传感器来实现顺应性伺服控制的方法,经常采用一种方法,其中即使当在位置反馈控制中增大位置偏差时,也通过抑制相对于位置偏差的增大的电流命令(electric current command)的增大而不在电机中产生过高的转矩。As for the method for realizing the compliance servo control without using a sensor, a method is often adopted in which even when the position deviation is increased in the position feedback control, by suppressing the increase of the current command (electric current command) without generating excessive torque in the motor.

按照在反馈控制中的电流命令的抑制量,也抑制由电机产生的转矩的强度,以便可以增强顺应性。In accordance with the suppression amount of the current command in the feedback control, the intensity of the torque generated by the motor is also suppressed so that compliance can be enhanced.

在JP-A-09-179632(美国专利第5994864号)中公开了一种用于抑制在反馈控制中的电流命令的方式,其中限制了电流命令。在JP-A-08-155868中还公开了一种用于抑制在反馈控制中的电流命令的方式,其中降低了反馈增益。A method for suppressing a current command in feedback control is disclosed in JP-A-09-179632 (US Patent No. 5994864), in which the current command is limited. There is also disclosed in JP-A-08-155868 a method for suppressing a current command in feedback control in which the feedback gain is lowered.

如上所述,为了增强机械手的顺应性,抑制在反馈控制中的电流命令是重要的。如果不在反馈控制中抑制电流,则机械手的顺应性变得接近普通的伺服刚性。因此,降低了伺服控制的顺应性。As described above, in order to enhance the compliance of the manipulator, it is important to suppress the current command in the feedback control. If the current is not suppressed in the feedback control, the compliance of the manipulator becomes close to the ordinary servo rigidity. Therefore, the compliance of the servo control is lowered.

但是,为了操作机械手,必须由电机产生驱动转矩,其中要考虑惯性转矩、摩擦转矩和重力转矩。因此,当仅仅通过反馈控制来操作机械手时,难于抑制电机的电流命令。However, in order to operate the manipulator, it is necessary to generate drive torque from the motor, where inertial torque, frictional torque, and gravitational torque are taken into consideration. Therefore, when the manipulator is operated only by feedback control, it is difficult to suppress the current command of the motor.

图3是示出在其中使用实际速度来控制摩擦补偿的传统方法的方框图。在所述附图中,附图标号1是电机旋转角命令θcom,附图标号2是反馈控制器,附图标号3是电流限制部件,附图标号4是反馈控制电流命令Icom,附图标号5是电机电流Im,附图标号6是表示(电机+实际负荷)的范围,附图标号7是电机转矩常数Kt,附图标号8是电机产生转矩τmm,附图标号9是向电机提供的外力τμ+τdyn+τdis,附图标号10是电机惯性的传递函数,附图标号11是电机旋转角θfb,附图标号12是微分算子,附图标号13是电机角速度命令ωcom,附图标号14是微分算子,附图标号15是电机角加速度命令αcom,附图标号16是电机惯性(转子+减速齿轮初级端)J,附图标号17是操作机器人所需要的电机电流Iml,附图标号18是电机转矩常数的倒数1/Kt,附图标号19是动态转矩τdyn的计算值,附图标号20是摩擦力τμ的计算值,附图标号21是摩擦计算块,附图标号22是动态计算块,附图标号23是电机角速度ωfb,附图标号24是微分算子,附图标号25是其他轴的旋转角。FIG. 3 is a block diagram illustrating a conventional method in which actual speed is used to control friction compensation. In said drawings, reference numeral 1 is a motor rotation angle command θ com , reference numeral 2 is a feedback controller, reference numeral 3 is a current limiting part, reference numeral 4 is a feedback control current command I com , and reference numeral 4 is a feedback control current command I com . The reference number 5 is the motor current I m , the reference number 6 is the range of (motor+actual load), the reference number 7 is the motor torque constant K t , the reference number 8 is the motor generated torque τmm, and the reference number is 9 is the external force τμ+τdyn+τdis provided to the motor, the reference numeral 10 is the transfer function of the motor inertia, the reference numeral 11 is the motor rotation angle θ fb , the reference numeral 12 is the differential operator, and the reference numeral 13 is the motor Angular velocity command ω com , reference numeral 14 is a differential operator, reference numeral 15 is a motor angular acceleration command α com , reference numeral 16 is motor inertia (rotor + reduction gear primary end) J, and reference numeral 17 is an operating robot The required motor current I ml , the reference number 18 is the reciprocal 1/K t of the motor torque constant, the reference number 19 is the calculated value of the dynamic torque τdyn, the reference number 20 is the calculated value of the friction force τμ, and the attached Reference numeral 21 is a friction calculation block, reference numeral 22 is a dynamic calculation block, reference numeral 23 is a motor angular velocity ω fb , reference numeral 24 is a differential operator, and reference numeral 25 is rotation angles of other axes.

当从电机驱动侧看时,通过表达式(1)来表达在操作机器人时产生的电机产生转矩τm。当从负荷侧看时,通过表达式(2)来表达所述电机产生转矩τm。The motor generating torque τm generated when operating the robot is expressed by Expression (1) when viewed from the motor driving side. The motor-generating torque τm is expressed by Expression (2) when viewed from the load side.

τmm=Kt*Im                    (1)τmm=K t *I m (1)

τml=J*α+τμ+τdyn+τdis    (2)τml=J*α+τμ+τdyn+τdis (2)

 在这种情况下,在表达式(1)和(2)中使用的附图标号定义如下。In this case, the reference numerals used in expressions (1) and (2) are defined as follows.

Kt:电机转矩常数K t : motor torque constant

Im:电机电流I m : motor current

α:电机角加速度α: motor angular acceleration

ω:电机角速度ω: motor angular velocity

J:电机惯性(转子+减速齿轮的初级侧)J: Motor inertia (rotor + primary side of reduction gear)

τμ:摩擦转矩(被转换为电机轴端)τμ: friction torque (converted to motor shaft end)

τdyn:动态转矩(动态转矩是重力转矩、惯性力、地球偏转力(Coriolis)和弹力的总和,它被转换为电机轴端。)τdyn: dynamic torque (dynamic torque is the sum of gravitational torque, inertial force, earth deflection force (Coriolis) and spring force, which is converted to the motor shaft end.)

τdis:干扰转矩(干扰转矩是从外部提供的接触转矩或参数误差。干扰转矩被转换为电机轴端。)τdis: Disturbance torque (Disturbance torque is contact torque or parameter error provided from outside. Disturbance torque is converted to motor shaft end.)

当在表达式(2)中干扰转矩τdis=0时,也可能通过表达式(1)和(2)来计算电机电流Iml,它是操作机械手所需要的。When the disturbance torque τdis=0 in expression (2), it is also possible to calculate the motor current I ml by expressions (1) and (2), which is required to operate the manipulator.

Iml=J*α+τμ+τdyn)/Kt            (3)I ml =J*α+τμ+τdyn)/K t (3)

如图3所示,当表达式(3)计算的Iml被加到反馈电流命令Icom时,如果干扰转矩τdis=0,则即使当反馈电流是0时,机械手也变得也可能到达目的位置。As shown in Fig. 3, when I ml calculated by the expression (3) is added to the feedback current command I com , if the disturbance torque τdis = 0, it becomes possible for the manipulator to reach even when the feedback current is 0 destination location.

在图3中,当反馈控制器(2)从旋转角命令θcom(1)和实际电机旋转角θfb进行PID计算并且进行电流限制(3)时可以得到反馈电流命令Icom(4)。关于用于限制电流(3)的方式,提供了一种其中设置了所述限制的系统和一种其中降低了反馈增益的系统。In FIG. 3 , the feedback current command I com ( 4 ) can be obtained when the feedback controller ( 2 ) performs PID calculation from the rotation angle command θ com ( 1 ) and the actual motor rotation angle θ fb and performs current limitation ( 3 ). Regarding the means for limiting the current (3), a system in which the limitation is set and a system in which the feedback gain is reduced are provided.

另一方面,由表达式(3)计算的Iml(17)可以如下获得。将对电机旋转命令θcom(1)进行微分运算(12)和(14)两次获得的角速度θcom(15)乘以电机惯性J(16)。摩擦转矩τμ(20)和动态转矩τdyn(19)被加到如此获得的值。将所获得的值乘以电机转矩常数的倒数1/Kt(18),可以获得由表达式(3)计算的Iml(17)。On the other hand, I ml (17) calculated by Expression (3) can be obtained as follows. The angular velocity θ com (15) obtained by performing differential operations (12) and (14) twice on the motor rotation command θ com (1) is multiplied by the motor inertia J (16). Friction torque τμ(20) and dynamic torque τdyn(19) are added to the value thus obtained. By multiplying the obtained value by the reciprocal 1/K t (18) of the motor torque constant, I ml (17) calculated by expression (3) can be obtained.

即,当可以由表达式(3)精确计算机器人的操作所需要的电机电流Iml时,变得可能在反馈控制中抑制电流命令。因此,可以增强机器人的顺应性。That is, when the motor current I ml required for the operation of the robot can be accurately calculated from the expression (3), it becomes possible to suppress the current command in the feedback control. Therefore, the compliance of the robot can be enhanced.

但是,实际上,由于表达式(3)的参数误差而引起计算误差。因此,当在反馈控制中强烈地抑制电流时,变得不可能补偿误差,并且机械手变得失去控制,并且不能减少位置偏差,即存在机械手失控的可能。However, in reality, a calculation error occurs due to a parameter error of the expression (3). Therefore, when the current is strongly suppressed in the feedback control, it becomes impossible to compensate the error, and the manipulator becomes out of control, and the positional deviation cannot be reduced, that is, there is a possibility of the manipulator out of control.

当在反馈控制中使得电流命令为0时,如果由于从外部提供的接触转矩扩大了位置偏差,则不产生使机械手返回初始位置的力。When the current command is made 0 in the feedback control, if the positional deviation is enlarged due to the contact torque supplied from the outside, no force is generated to return the manipulator to the initial position.

如上所述,可以抑制多少通过反馈控制的电流命令依赖于表达式(3)的计算精度。As described above, how much the current command by feedback control can be suppressed depends on the calculation accuracy of expression (3).

摩擦转矩τμ是由表达式(3)计算的电机电流Iml的主要项之一,并且是操作机器人所需要的,其包括:静态摩擦转矩τμs和动态摩擦转矩τμm,通过力的作用方向来确定它们;以及粘滞摩擦τμd(粘性的系数D),它与速度成比例。The friction torque τμ is one of the main terms of the motor current I ml calculated by the expression (3) and is required to operate the robot, which includes: the static friction torque τμs and the dynamic friction torque τμm, by the action of force Orientation to determine them; and viscous friction τμd (coefficient D of viscosity), which is proportional to velocity.

τμ=τμs+τμm+τμd                               (4)τμ=τμs+τμm+τμd (4)

但是,在表达式(4)中,每个项被计算如下。However, in Expression (4), each term is calculated as follows.

τμs=τμs0*sgn1(ω)                                (5)τμs=τμs0*sgn1(ω)           (5)

τμm=τμm0*sgn1(ω)                   (6)τμm=τμm0*sgn1(ω) (6)

sgnsgn 22 (( &omega;&omega; )) -- 11 (( &omega;&omega; << 00 )) 00 (( &omega;&omega; == 00 )) 11 (( &omega;&omega; >> 00 ))

τμd=D*ω                              (7)τμd=D*ω (7)

可以从表达式(5)-(7)看出,根据角速度ω来计算所有的摩擦转矩。It can be seen from expressions (5)-(7) that all friction torques are calculated from the angular velocity ω.

关于用于计算摩擦转矩的角速度ω,受到反馈阻抗的角速度ωFB用于上述的传统示例(JP-A-9-179632)。在另一个传统示例(JP-A-10-180663)中,使用当位置命令θcom被微分时获得的角速度命令ωcomRegarding the angular velocity ω used to calculate the friction torque, the angular velocity ω FB subjected to the feedback impedance is used in the above-mentioned conventional example (JP-A-9-179632). In another conventional example (JP-A-10-180663), the angular velocity command ω com obtained when the position command θ com is differentiated is used.

但是,在机器人的顺应性控制中,提供了两种情况。一个是机器人按照位置命令θcom来主动做动作的情况。另一个是机器人被外力推动被动地做动作的情况。However, in the compliance control of the robot, two cases are provided. One is the case where the robot actively moves according to the position command θ com . The other is the case where the robot is passively moved by an external force.

如图3所示,当使用对实际电机旋转角θfb(11)求微分时获得的实际角速度ωfb(23)来作为使用计算块(21)通过表达式(5)计算摩擦转矩τμ(20)时使用的角速度的时候,反映出由作为被提供到电机的干扰转矩(9)的一部分的外力τdis引起的速度波动,以便可以增强摩擦转矩τμ(20)的计算精度。As shown in Fig. 3, when using the actual angular velocity ω fb (23) obtained when differentiating the actual motor rotation angle θ fb (11) as the friction torque τμ( 20) to reflect the velocity fluctuation caused by the external force τdis which is a part of the disturbance torque (9) supplied to the motor, so that the calculation accuracy of the friction torque τμ(20) can be enhanced.

但是,当从机器人完全停止的状态主动地操作机器人时,操作方向是未知的,直到机器人开始操作。因此,不可能计算静态的摩擦转矩τμs。However, when the robot is actively operated from a state where the robot is completely stopped, the direction of operation is unknown until the robot starts to operate. Therefore, it is impossible to calculate the static friction torque τμs.

直到机器人开始操作,实际角速度ωFB是0,并且由表达式(6)和(7)计算的动态摩擦转矩τμm和粘滞摩擦τμd当然是0。因此,由表达式(4)计算的摩擦转矩是τμ0,并且根本不产生用于操作机器人的电机转矩。Until the robot starts to operate, the actual angular velocity ω FB is 0, and the dynamic friction torque τμm and viscous friction τμd calculated by Expressions (6) and (7) are of course 0. Therefore, the friction torque calculated by Expression (4) is τμ0, and no motor torque for operating the robot is generated at all.

在这种状态中,当由反馈控制的电流命令Icom(4)引起的转矩被抑制以增强顺应性并且变得低于实际静态摩擦转矩τμs的时候,即使产生了旋转角命令θcom(1),机器人也不移动。In this state, when the torque caused by the feedback-controlled current command I com (4) is suppressed to enhance compliance and becomes lower than the actual static friction torque τμs, even if the rotation angle command θ com is generated (1), the robot does not move either.

另一方面,如图4所示,当把在对电机旋转角θcom(1)求微分时获得的角速度ωcom(13)用于计算(21)摩擦转矩τμ(20)所使用的角速度ω的时候,这些问题被解决。即,即使当不操作机器人时,当使用角速度命令ωcom(13)来通过表达式(4)计算(21)摩擦转矩τμ(20)并且将其加到反馈电流命令Icom(4)时,可以补偿实际的摩擦转矩。即使当抑制了通过反馈控制的电流Icom(4)时,也可以操作机器人。On the other hand, as shown in Fig. 4, when the angular velocity ω com (13) obtained when differentiating the motor rotation angle θ com (1) is used for calculating (21) the angular velocity used for the friction torque τμ (20) When ω, these problems are solved. That is, even when the robot is not operated, when the angular velocity command ω com (13) is used to calculate (21) the friction torque τμ (20) by the expression (4) and add it to the feedback current command I com (4) , can compensate the actual friction torque. Even when the current I com ( 4 ) controlled by feedback is suppressed, the robot can be operated.

但是,当把角速度命令ωcom(13)用于计算(21)摩擦转矩τμ(20)所使用的角速度ω的时候,可以按照角速度命令ωcom(13)来主动地操作机器人。但是,在操作中途由于干扰转矩τdis而引起角速度波动的情况下,在角速度命令ωcom(13)和实际角速度ωfb(在图3中的附图标号23)之间引起大的误差。于是,增大了由表达式(7)计算的粘滞摩擦转矩τμd的计算误差。However, when the angular velocity command ω com (13) is used to calculate (21) the angular velocity ω used for the friction torque τμ (20), the robot can be actively operated in accordance with the angular velocity command ω com (13). However, in the case of angular velocity fluctuation due to disturbance torque τdis in the middle of the operation, a large error is caused between the angular velocity command ω com (13) and the actual angular velocity ω fb (reference numeral 23 in FIG. 3 ). Then, the calculation error of the viscous friction torque τμd calculated by the expression (7) increases.

当在角速度命令ωcom(13)是0停止机器人时由外力推动机器人并且机器人被停止的时候,由表达式(4)计算的摩擦转矩τμ总是0。因此,根本不能补偿实际的摩擦转矩。When the robot is pushed by an external force and the robot is stopped while the angular velocity command ω com (13) is 0 to stop the robot, the friction torque τμ calculated by the expression (4) is always 0. Therefore, the actual friction torque cannot be compensated at all.

而且,即使当机器人不被外力推动时,在实际操作中,在由反馈控制器进行的反馈控制中引起跟随的延迟。因此,在停止机器人时,在实际角速度ωfb(在图3中的附图标号23)变为0之前,角速度命令ωcom(13)变为0。因此,此时由表达式(4)计算的摩擦转矩τ也变为0,并且不进行摩擦补偿。即,在角速度命令ωcom(13)达到0时,机器人突然被停止,并且不能达到目标位置,还可能引起振动。Also, even when the robot is not pushed by an external force, in actual operation, a delay in following is caused in the feedback control by the feedback controller. Therefore, when the robot is stopped, the angular velocity command ω com ( 13 ) becomes 0 before the actual angular velocity ω fb (reference numeral 23 in FIG. 3 ) becomes 0. Therefore, the friction torque τ calculated by the expression (4) also becomes 0 at this time, and friction compensation is not performed. That is, when the angular velocity command ω com (13) reaches 0, the robot is suddenly stopped, and cannot reach the target position, and may also cause vibration.

在这种情况下,在按照反馈控制的电流命令Icom(4)由电机产生的转矩被抑制为低于实际的摩擦转矩的情况下,即使当外力增大位置偏差时,也不操作机器人,并且不可能减小位置偏差。In this case, in the case where the torque generated by the motor in accordance with the current command I com (4) of the feedback control is suppressed to be lower than the actual friction torque, even when the external force increases the positional deviation, does not operate robot, and it is not possible to reduce the positional deviation.

换句话说,虽然进行摩擦补偿,但是不可能将反馈电流命令设置为低于实际摩擦转矩。因此,不能增强机器人的顺应性。In other words, although friction compensation is performed, it is impossible to set the feedback current command lower than the actual friction torque. Therefore, the compliance of the robot cannot be enhanced.

如上所述,在由表达式(4)计算摩擦转矩τμ的情况下,按照其中使用实际角速度ωfb和角速度命令ωcom之一来作为角速度的方法,即使当使用所计算的摩擦转矩τμ通过表达式(3)计算出的电流Iml被加到反馈控制电流时,也不能补偿实际的摩擦转矩。As described above, in the case of calculating the friction torque τμ by the expression (4), according to the method in which one of the actual angular velocity ω fb and the angular velocity command ω com is used as the angular velocity, even when the calculated friction torque τμ is used When the current I ml calculated by expression (3) is added to the feedback control current, it cannot compensate the actual friction torque.

如图3所示,当通过对于在利用(5)计算(21)摩擦转矩τμ(20)时使用的角速度使用实际角速度ωfb(23)来100%地补偿摩擦转矩τμ时,控制系统的反馈特性会经历摩擦补偿。因此,操作控制系统就好像没有摩擦一样。因而,虽然可以增强顺应性,但是反馈系统变得振动。As shown in FIG. 3, when the friction torque τμ is compensated 100% by using the actual angular velocity ω fb (23) for the angular velocity used in calculating (21) the friction torque τμ(20) using (5), the control system The feedback characteristic of the sensor undergoes friction compensation. Therefore, the control system is operated as if there were no friction. Thus, while compliance may be enhanced, the feedback system becomes vibrated.

另一方面,如图4所示,在对于计算(21)摩擦转矩τμ(20)所使用的角速度ω使用角速度命令ωcom(13)的情况下,控制系统的反馈特性不受影响。因此,为了改善目标跟随特性,期望进行100%的补偿。On the other hand, as shown in FIG. 4 , in the case of using the angular velocity command ω com ( 13 ) for the angular velocity ω used to calculate ( 21 ) the friction torque τ μ ( 20 ), the feedback characteristics of the control system are not affected. Therefore, in order to improve the target following characteristic, it is desirable to perform 100% compensation.

接着,下面将说明第二传统示例。Next, a second conventional example will be described below.

关于不使用传感器来获得碰撞转矩的方法,通常使用下面的方法。当从由电机的驱动电流产生的转矩减去在电机和减速齿轮中产生的转矩损失时得到电机产生转矩。当从前面找到的电机产生转矩减去由动态计算得到并且被称为动态转矩的、对于减速齿轮的输出所必需的转矩时,得到碰撞转矩。Regarding the method of obtaining the collision torque without using a sensor, the following method is generally used. The motor generated torque is obtained when the torque loss generated in the motor and reduction gear is subtracted from the torque generated by the driving current of the motor. The collision torque is obtained when the torque necessary for the output of the reduction gear, which is dynamically calculated and called dynamic torque, is subtracted from the motor-generated torque found earlier.

例如,对应于由电机产生的转矩的损失的摩擦转矩被定义为与速度成比例的项(粘滞摩擦转矩)和静态项(库仑的摩擦转矩)的和并且被计算。这被公开在例如JP-A-2002-283276中。For example, friction torque corresponding to the loss of torque generated by the motor is defined as the sum of a speed-proportional term (viscous friction torque) and a static term (Coulomb's friction torque) and calculated. This is disclosed in, for example, JP-A-2002-283276.

按照JP-A-6-083403(美国专利第6298283号),提出了下面的技术。当通过估计的算法来计算机器人的参数的波动并且将其加到转矩(电流)命令时,消除了波动因素。在这个传统的示例中,对应于由电机产生的转矩中引起的损失的摩擦转矩被定义为与速度成比例的项和静态项的和,并且通过估计算法来估计。According to JP-A-6-083403 (US Patent No. 6298283), the following technique is proposed. When the fluctuation of the parameters of the robot is calculated by the estimated algorithm and added to the torque (current) command, the fluctuation factor is eliminated. In this conventional example, the friction torque corresponding to the loss induced in the torque produced by the motor is defined as the sum of a speed-proportional term and a static term, and is estimated by an estimation algorithm.

于是,当在从电机产生转矩减去机器人的动态转矩时不使用传感器而得到碰撞转矩的情况下或在改善通过动态转矩的前馈控制的伺服跟随特性以便显示出最大的电机驱动力的情况下,需要精确地计算由电机产生转矩和机器人的减速齿轮输出所需要的转矩。Then, when the collision torque is obtained without using the sensor when subtracting the dynamic torque of the robot from the motor-generated torque or in the case of improving the servo follow-up characteristics by the feed-forward control of the dynamic torque so as to exhibit the maximum motor drive In the case of force, it is necessary to accurately calculate the torque generated by the motor and the torque required for the output of the reduction gear of the robot.

当从电机驱动侧看时,可以由表达式(8)来表达在操作机器人时的电机产生转矩τm。而且,当从负荷侧看时,可以由表达式(9)来表达在操作机器人时的电机产生转矩τm。When viewed from the motor drive side, the motor-generated torque τm at the time of operating the robot can be expressed by Expression (8). Also, when viewed from the load side, the motor-generated torque τm at the time of operating the robot can be expressed by Expression (9).

τm=Kt*Im-(J*α+D*ω+τμsgn(ω))    (8)τm=K t *I m -(J*α+D*ω+τμsgn(ω)) (8)

τml=τdyn++τdis                    (9)τml=τdyn++τdis (9)

就此而论,在表达式(1)和(2)中示出的附图符号被定义如下。In this regard, the reference symbols shown in Expressions (1) and (2) are defined as follows.

Kt:电机转矩常数K t : motor torque constant

Im:电机电流I m : motor current

α:电机角加速度α: motor angular acceleration

ω:电机角速度ω: motor angular velocity

J:电机惯性(转子+减速齿轮的初级侧)J: Motor inertia (rotor + primary side of reduction gear)

D:粘滞摩擦系数(被转换为电机轴端)D: Viscous friction coefficient (converted to motor shaft end)

τμ:摩擦转矩(被转换为电机轴端)τμ: friction torque (converted to motor shaft end)

τg:重力转矩(被转换为电机轴端)τg: gravity torque (converted to motor shaft end)

τdyn:动态转矩(动态转矩是重力转矩、惯性力、地球偏转力和弹力的和,它被转换为电机轴端。)τdyn: dynamic torque (dynamic torque is the sum of gravitational torque, inertial force, earth deflection force and elastic force, which is converted to the motor shaft end.)

τdis:干扰转矩(干扰转矩是碰撞转矩或参数误差。干扰转矩被转换为电机轴端。)τdis: Disturbance torque (Disturbance torque is collision torque or parameter error. Disturbance torque is converted to motor shaft end.)

sgnsgn (( &omega;&omega; )) 11 (( &omega;&omega; >> 00 )) 00 (( &omega;&omega; &NotEqual;&NotEqual; 00 )) -- 11 (( &omega;&omega; << 00 ))

因为电机和机械手通过减速齿轮彼此连接,因此必需使用减速比率将表达式(9)中除了电机惯性项J之外的项转换为电机轴端。Since the motor and the manipulator are connected to each other through a reduction gear, it is necessary to use the reduction ratio to convert the terms in Expression (9) other than the motor inertia term J to the motor shaft end.

当假定在(8)和(9)中τmm=ml时,可以通过下面变形的表达式(10)来得到碰撞转矩τdis。When it is assumed that τmm=ml in (8) and (9), the collision torque τdis can be obtained by the following modified expression (10).

τdis=Kt*Im-(J*α+D*ω+τμ*sgn(ω)+τdyn)    (10)τdis=K t *I m -(J*α+D*ω+τμ*sgn(ω)+τdyn) (10)

在传统示例中,在表达式(10)中的动态摩擦项τμ被计算为固定值。但是,当将动态摩擦转矩项计算为固定值时,在加速和减速时电机产生转矩较高的情况下,引起电机产生转矩的大约10%的较大计算误差。In the conventional example, the dynamic friction term τμ in Expression (10) is calculated as a fixed value. However, when the dynamic friction torque term is calculated as a fixed value, a large calculation error of about 10% of the motor generated torque is caused in the case of high motor generated torque at the time of acceleration and deceleration.

另一方面,可以如下实现目的是改善伺服控制特性的反馈控制。在干扰转矩τdis=0的条件下、即在机器人不与外部接触并且不引起参数误差的条件下,由表达式(10)得到电机电流Im。如此得到的电流被表示为Iff。当向电流命令加上Iff时,可以实现反馈控制。On the other hand, feedback control for the purpose of improving servo control characteristics can be realized as follows. Under the condition of disturbance torque τdis=0, that is, under the condition that the robot is not in contact with the outside and does not cause parameter errors, the motor current I m is obtained from Expression (10). The current thus obtained is denoted I ff . Feedback control can be achieved when I ff is added to the current command.

Iff(J*α+D*ω+τμ*sgn(ω)+τdyn)/Kt    (11)I ff (J*α+D*ω+τμ*sgn(ω)+τdyn)/K t (11)

在传统的示例中,不使用表达式(11)的计算,而是通过估计算法来估计动态摩擦项τμ。然而,它不随着时间改变,但是摩擦转矩在加速和减速的短时间中大大地改变了。于是,通过估计算法的估计,产生相位的延迟,并且不可能完整地进行补偿。In the conventional example, the calculation of the expression (11) is not used, but the dynamic friction term τμ is estimated by an estimation algorithm. However, it does not change with time, but the friction torque greatly changes in a short time of acceleration and deceleration. Then, by the estimation of the estimation algorithm, a delay of the phase occurs, and it is impossible to completely compensate.

当不通过估计算法而是通过动态转矩来预先进行计算时,不引起相位的延迟。但是,当在将动态摩擦转矩设置在固定值的同时使用表达式(11)来进行计算时,在加速和减速时电机产生转矩较高的情况下,引起电机产生转矩的大约10%的较大计算误差。When the calculation is performed in advance not by the estimation algorithm but by the dynamic torque, no phase delay is caused. However, when the calculation is performed using the expression (11) while setting the dynamic friction torque at a fixed value, about 10% of the torque generated by the motor is caused in the case where the torque generated by the motor is high at the time of acceleration and deceleration large calculation error.

这个误差将被说明如下。This error will be explained as follows.

图11是示出了当使得机器人进行图12所示的往复运动时通过表达式(8)和(9)计算的电机产生转矩τmm(1)、τml(2)和速度(3)的视图。FIG. 11 is a view showing motor-generated torque τmm(1), τml(2) and speed (3) calculated by Expressions (8) and (9) when the robot is made to perform the reciprocating motion shown in FIG. 12 .

在这种情况下,要使用的机械手是六轴垂直类型的多接合点机器人,其便携的质量是6kg,并且其总的臂长是大约1.3米。在图12中,省略了三个腕轴,并且示出了三个基本轴。在进行测量时,操作作为第三轴的FA轴。In this case, the manipulator to be used is a six-axis vertical type multi-joint robot whose portable mass is 6 kg and whose total arm length is about 1.3 meters. In FIG. 12 , three wrist axes are omitted, and three basic axes are shown. When measuring, operate the FA axis as the third axis.

在这种情况下,在干扰转矩τdis=0的条件下、即在机器人不与外部接触并且不引起参数误差的条件下进行测量。In this case, the measurement is performed under the condition of disturbance torque τdis=0, that is, under the condition that the robot is not in contact with the outside and does not cause parameter errors.

如图11所示,在τmm(1)和τml(2)中,产生大约峰值转矩的4%的误差(4),即可以明白表达式(8)具有误差因子。As shown in FIG. 11, in τmm(1) and τml(2), an error (4) of about 4% of the peak torque occurs, that is, it can be understood that expression (8) has an error factor.

当在加速和减速时进行比较时,结果如下。When comparing when accelerating and decelerating, the results are as follows.

τmm>τmlτmm>τml

在操作部分的加速和减速中,角加速度和角减速度虽然方向彼此相反,但是大小相等。相对于重力,机械手以对称模式操作。In the acceleration and deceleration of the operation part, the angular acceleration and the angular deceleration are equal in magnitude although their directions are opposite to each other. The manipulator operates in a symmetrical pattern with respect to gravity.

因此,为了通过减小τdyn而降低误差,必须增大动态摩擦转矩τμ。但是,当如图13所示,当动态摩擦转矩τμ在被保持为常数值的同时被增大时,虽然降低了在峰值转矩时的误差(4),但是增大了在恒定速度时的误差(5)。Therefore, in order to reduce the error by reducing τdyn, it is necessary to increase the dynamic friction torque τμ. However, when the dynamic friction torque τμ is increased while being kept at a constant value as shown in FIG. 13, although the error (4) at the peak torque is reduced, it is increased at a constant speed. error (5).

即,当动态摩擦转矩τμ被当作常数时,不能消除由τμ引起的误差因子。因此,在包含τμ的表达式(10)和(11)中,产生相同的误差。That is, when the dynamic friction torque τμ is taken as a constant, the error factor caused by τμ cannot be eliminated. Therefore, in Expressions (10) and (11) including τμ, the same error occurs.

因此,在无传感器的碰撞转矩检测中,当动态摩擦转矩τμ被当作常数时,虽然机械手在加速或减速时不与物体碰撞,表达式(11)输出对应于所述误差的电流来作为碰撞转矩。由于上述原因,为了防止发生错误的检测,必须降低碰撞检测灵敏度。Therefore, in the sensorless collision torque detection, when the dynamic friction torque τμ is taken as a constant, although the manipulator does not collide with the object when accelerating or decelerating, expression (11) outputs a current corresponding to the error to as the collision torque. For the above reasons, in order to prevent erroneous detection from occurring, it is necessary to lower the collision detection sensitivity.

另一方面,在减速齿轮输出所需要的转矩的前馈控制的情况下,当动态摩擦转矩τμ被作为常数时,增大了计算误差,并且有可能前馈补偿转矩变得不足。当使用估计算法以便防止产生计算误差时,难于估计在加速或减速时突变的摩擦转矩而不引起相位的延迟。于是,有可能不能充分地防止控制性能的变差。On the other hand, in the case of feedforward control of the torque required for the output of the reduction gear, when the dynamic friction torque τμ is made constant, calculation errors increase, and there is a possibility that the feedforward compensation torque becomes insufficient. When an estimation algorithm is used in order to prevent calculation errors from being generated, it is difficult to estimate a sudden change in friction torque at the time of acceleration or deceleration without causing a delay in phase. Then, there is a possibility that the deterioration of the control performance cannot be prevented sufficiently.

接着将说明在碰撞检测后停止机械手的方法。提出了下列方法:机械手返回检测到碰撞的位置的方法(JP-A-2002-117618(美国专利第6429617号));将速度命令强制地设置在0以便停止机械手的方法(JP-A-2000-52286);通过与电机的旋转方向相反的最大反向电机转矩来停止机械手的方法(日本专利第3212571号(美国专利第6298283号)和日本专利第2871993号(美国专利第5418440号))。Next, a method of stopping the robot after collision detection will be described. The following methods have been proposed: a method of returning the manipulator to a position where a collision is detected (JP-A-2002-117618 (US Patent No. 6429617)); a method of forcibly setting a speed command at 0 in order to stop the manipulator (JP-A-2000 -52286); method of stopping a manipulator by maximum reverse motor torque opposite to the direction of rotation of the motor (Japanese Patent No. 3212571 (US Patent No. 6298283) and Japanese Patent No. 2871993 (US Patent No. 5418440)) .

按照机械手返回碰撞检测位置的方法,机械手通过位置控制来返回初始位置。因此,停止时间依赖于位置控制的响应特性。一般,位置控制的响应特性最大是几十赫兹。因此,响应特性在停止碰撞时不是很高,并扩展了停止时间,并且不可能防止由碰撞引起的损耗的发生。According to the method of returning the manipulator to the collision detection position, the manipulator returns to the initial position through position control. Therefore, the stop time depends on the response characteristics of the position control. Generally, the response characteristic of the position control is several tens of Hertz at most. Therefore, the response characteristics are not very high at the time of the stop collision, and the stop time is extended, and it is impossible to prevent the occurrence of wear caused by the collision.

按照通过将速度命令强制地设置在0来停止机械手的方法,停止时间依赖于速度控制的响应特性。在这种情况下,响应特性是几百赫兹,这大于在位置控制情况下的响应特性。但是,它次于电流控制的响应特性(几千Hz)。According to the method of stopping the manipulator by forcibly setting the speed command at 0, the stop time depends on the response characteristics of the speed control. In this case, the response characteristic is several hundred Hz, which is larger than that in the case of position control. However, it is inferior to the response characteristic of current control (several thousand Hz).

按照这个方法,因为通过速度控制的集成的位置控制伺服刚性较高,因此在停止机械手时保持了由碰撞引起的变形。因此,按照JP-A-2000-052286,当使得速度集成增益为0时软化了位置控制刚性,因此可以解决由碰撞引起的变形问题。但是,为了增强顺应性,必须与速度成比例地降低增益,这使得速度响应特性变差并且扩展了停止时间。难于使得停止时间和顺应性彼此兼容。According to this method, the deformation caused by the collision is maintained when the manipulator is stopped because the servo rigidity of the integrated position control through the speed control is high. Therefore, according to JP-A-2000-052286, when the speed integration gain is made 0, the position control rigidity is softened, and thus the deformation problem caused by the collision can be solved. However, in order to enhance the compliance, the gain must be reduced in proportion to the speed, which deteriorates the speed response characteristics and extends the stop time. It is difficult to make stop time and compliance compatible with each other.

按照通过相对于电机的旋转方向的最大反向电机转矩来停止机械手的方法,用于产生相反转矩的电流控制的响应特性很高,使得响应特性可以是几千Hz,即响应特性良好。但是,按照在日本专利第3212571号中公开的方法,必须预先设置施加反向转矩的时间。当这个施加时间较短时,不可能充分地降低速度,并且由碰撞引起的损害增大。当这个施加时间较长时,在反向进行冗余的运动,并且有可能机械手再次引起碰撞。按照在日本专利第2871993号中公开的方法,提出了一种方法,其中施加最大反向转矩,直到停止电机。在这种方法中,不必预先确定施加反向转矩的施加时间。因此,解决了上述的问题。但是,仅仅当电机停止时,不能解决由碰撞引起的变形的问题。因为最大反向转矩本身的产生是其中控制正在开环中产生最大输出的状态,因此在速度很低以至于即使当机器人碰撞物体时也不能损害机器人的情况下,存在施加反向转矩的较高风险。According to the method of stopping the manipulator by the maximum reverse motor torque with respect to the rotation direction of the motor, the response characteristic of the current control for generating the reverse torque is high so that the response characteristic can be several thousand Hz, that is, the response characteristic is good. However, according to the method disclosed in Japanese Patent No. 3212571, it is necessary to set the time for applying the reverse torque in advance. When this application time is short, it is impossible to sufficiently reduce the speed, and the damage caused by the collision increases. When this application time is long, redundant movements are performed in the reverse direction, and it is possible that the manipulator again causes a collision. According to the method disclosed in Japanese Patent No. 2871993, a method is proposed in which the maximum reverse torque is applied until the motor is stopped. In this method, it is not necessary to predetermine the application time for applying the reverse torque. Therefore, the above-mentioned problems are solved. However, the problem of deformation caused by collision cannot be solved only when the motor is stopped. Because the generation of the maximum reverse torque itself is the state where the control is producing the maximum output in the open loop, there is a possibility of applying the reverse torque in the case where the speed is so low that the robot cannot be damaged even when the robot collides with an object higher risk.

在任何一个系统中,在其碰撞方向与电机的旋转方向重合的轴中,当机械手返回碰撞检测位置或突然停止时,增大了碰撞力的强度。In either system, in an axis whose collision direction coincides with the rotation direction of the motor, the strength of the collision force is increased when the manipulator returns to the collision detection position or stops suddenly.

图15是示出了这一状态的视图,在其中使用了两轴机器人以用于说明。一般,普通的垂直型多接合点机器人由6个轴组成。但是,为了简化说明,下面将说明2轴的模型。FIG. 15 is a view showing this state, in which a two-axis robot is used for explanation. Generally, a general vertical type multi-joint robot consists of 6 axes. However, to simplify the description, a 2-axis model will be described below.

在图15(a)中,在角速度ωfb(1)的方向上操作轴UA(41),并且在角速度ωfb’(6)的方向上操作轴FA(42)。当时间过去并且每个机械手在图15(b)所示的方向上操作并且与障碍物(43)碰撞的时候,产生碰撞力(44),并且向轴UA(41)提供与电机的旋转方向相反的力,即在可以降低速度的方向上向轴UA(41)提供碰撞转矩τdis。另一方面,在与电机的旋转方向相同的方向上向轴FA(42)提供力,即在可以增大速度的方向上向轴FA(42)提供碰撞转矩τdis’(10)。In FIG. 15( a ), the shaft UA ( 41 ) is operated in the direction of angular velocity ω fb ( 1 ), and the shaft FA ( 42 ) is operated in the direction of angular velocity ω fb ′ ( 6 ). When time elapses and each manipulator operates in the direction shown in Figure 15(b) and collides with an obstacle (43), a collision force (44) is generated and provides the shaft UA (41) with the direction of rotation of the motor The opposite force, ie in the direction in which the speed can be reduced, provides the shaft UA ( 41 ) with an impact torque τdis. On the other hand, a force is applied to the shaft FA (42) in the same direction as the rotation direction of the motor, that is, a collision torque τdis' (10) is applied to the shaft FA (42) in a direction in which the speed can be increased.

其后,为了将轴FA(42)返回碰撞检测位置或突然停止轴FA(42),需要通过电机产生转矩,以便可以降低电机旋转。但是,这个转矩的方向与碰撞转矩τdis’(10)的方向相反。因此,相反地增大了碰撞转矩的强度。Thereafter, in order to return the shaft FA ( 42 ) to the collision detection position or to stop the shaft FA ( 42 ) abruptly, it is necessary to generate torque by the motor so that the motor rotation can be reduced. However, the direction of this torque is opposite to that of the collision torque τdis'(10). Therefore, the strength of the collision torque is conversely increased.

按照将机械手返回碰撞检测位置的方法,虽然其电机旋转方向与碰撞方向相反的轴(图15中的轴UA)返回碰撞检测位置,但是其电机旋转方向与碰撞方向相同的轴(图15中的轴FA)不被反转,并且继续已经进行的操作直到碰撞。以这种方式,解决了上述的问题。According to the method of returning the manipulator to the collision detection position, although the axis whose motor rotation direction is opposite to the collision direction (axis UA in Figure 15) returns to the collision detection position, the axis whose motor rotation direction is the same as the collision direction (axis The axis FA) is not reversed, and the operation already carried out is continued until the collision. In this way, the above-mentioned problems are solved.

但是,在不使用传感器来检测碰撞的情况下,从机器人的机械参数、位置、速度、加速度和电流的信息来估计碰撞转矩。因此,与提供碰撞检测传感器的情况相比较,增大了检测误差。由于上述原因,在其碰撞检测转矩较低的轴的情况下,有可能错误地检测所述方向,并且不能选择适当的停止方式。However, without using sensors to detect the collision, the collision torque is estimated from the information of the robot's mechanical parameters, position, velocity, acceleration and current. Therefore, compared with the case where a collision detection sensor is provided, a detection error increases. For the above reasons, in the case of an axis whose collision detection torque is low, there is a possibility that the direction is erroneously detected, and an appropriate stopping method cannot be selected.

在其所检测到的碰撞转矩值较低的轴的情况下,不检测碰撞方向并且降低电机旋转速度以便降低动能是较安全的。但是,因为碰撞方向是未知的,因此在一些情况下不降低电机旋转速度更好,即与在日本专利第2871993号中所述的方法不同,不应当施加相反的转矩直到电机停止。在电机旋转速度很低因此即使当机器人与障碍物碰撞时也不能损害机器人的情况下,不应当施加反向转矩。In the case of an axis whose detected collision torque value is low, it is safer not to detect the collision direction and to reduce the motor rotation speed in order to reduce the kinetic energy. However, since the collision direction is unknown, it is better in some cases not to reduce the motor rotation speed, ie, unlike the method described in Japanese Patent No. 2871993, the opposite torque should not be applied until the motor stops. In the case where the rotational speed of the motor is low so that the robot cannot be damaged even when the robot collides with an obstacle, reverse torque should not be applied.

而且,在垂直型多接合点机器人的情况下,不可能忽略在轴之间的干扰力。于是,有可能通过从被施加了反向转矩的轴提供的干扰力向不应当降低其速度的一个轴提供了速度降低力。在任一情况下,应当在最小时间周期向所需要的轴施加反向转矩。Also, in the case of a vertical type multi-joint robot, it is impossible to ignore the disturbance force between axes. Then, it is possible to provide a speed-reducing force to one shaft whose speed should not be reduced by the disturbing force provided from the shaft to which the reverse torque is applied. In either case, reverse torque should be applied to the required shaft for the minimum period of time.

发明内容Contents of the invention

本发明已经被实现来解决上述问题。本发明的目的是提供一种控制方法,可以通过在由电机驱动的机器人的顺应性控制中进行反馈控制以将电流限制抑制为低于摩擦转矩而增强其顺应性。The present invention has been achieved to solve the above-mentioned problems. An object of the present invention is to provide a control method that can enhance compliance of a robot driven by a motor by performing feedback control in compliance control to suppress current limitation below frictional torque.

本发明的另一个目的是提供一种用于控制机器人的控制方法,它能够通过使得减速齿轮的动态摩擦转矩不与固定值重合而与对应于实际特性的值重合来高度准确地检测碰撞转矩。Another object of the present invention is to provide a control method for controlling a robot that can detect the collision rotation with high accuracy by making the dynamic friction torque of the reduction gear coincide not with a fixed value but with a value corresponding to the actual characteristic. moment.

本发明的另一个目的是提供一种用于控制机器人的控制方法,它能够通过使得减速齿轮的动态摩擦转矩不与固定值重合而与对应于实际特性的值重合而在操作前增强电机转矩计算精度,并且获得其延迟相位较小的最适当的反馈补偿。Another object of the present invention is to provide a control method for controlling a robot capable of enhancing motor rotation before operation by making the dynamic friction torque of the reduction gear coincide not with a fixed value but with a value corresponding to actual characteristics. moment calculation accuracy, and obtain the most appropriate feedback compensation whose delay phase is small.

按照本发明,提供了一种控制机器人的方法,其特征在于:检测用于驱动机器人的电机的旋转角度;从所述旋转角度计算角速度的实际测量值;通过使用从提供到电机的命令值计算的命令值的角速度和实际测量值的角速度之一来计算摩擦转矩,其中,在这个计算中使用具有较高绝对值的角速度;并且当按照上述的命令值来驱动电机时,向被提供到电机的命令值增加对应于所述摩擦转矩的值。由于这种方法,可以将通过反馈控制的电流限制抑制到低于摩擦转矩。因此,有可能实现其顺应性高的控制方法。According to the present invention, there is provided a method of controlling a robot, characterized by: detecting the rotation angle of a motor used to drive the robot; calculating an actual measured value of angular velocity from said rotation angle; One of the angular velocity of the command value and the angular velocity of the actual measurement value is used to calculate the friction torque, wherein the angular velocity with a higher absolute value is used in this calculation; The command value of the motor increases by a value corresponding to the friction torque. Due to this method, current limitation by feedback control can be suppressed below the friction torque. Therefore, it is possible to realize a control method whose compliance is high.

当所述命令值和实际测量的值之一被适当地选择为用于摩擦转矩计算的角速度并且同时改变摩擦补偿率时,可以防止反馈特性振动,并且还可以改善目标跟随特性。When one of the command value and the actually measured value is appropriately selected as the angular velocity for friction torque calculation while changing the friction compensation rate, the feedback characteristic can be prevented from vibrating, and the target following characteristic can also be improved.

本发明提供了一种经由减速齿轮来控制由电机驱动的机器人的方法,其特征在于:当通过从由电机产生的转矩减去通过机器人的动态计算而得到的减速齿轮输出所需要的转矩来计算外力时,减速齿轮的动态摩擦转矩被计算为对应于减速齿轮输出所需要的转矩而增大。The present invention provides a method of controlling a robot driven by a motor via a reduction gear, characterized in that when the required torque is output by subtracting the reduction gear obtained through the dynamic calculation of the robot from the torque generated by the motor When calculating the external force, the dynamic friction torque of the reduction gear is calculated to increase corresponding to the torque required for the reduction gear output.

本发明提供了一种经由减速齿轮来控制由电机驱动的机器人的方法,其特征在于:按照用于得到减速齿轮输出所需要的转矩的机器人的逆动态计算,并且也按照减速齿轮的动态摩擦转矩计算,通过反馈控制来进行电机输出转矩补偿;并且当进行反馈控制时,减速齿轮的动态摩擦转矩被计算为与减速齿轮输出所需要的转矩成比例地增大。The present invention provides a method of controlling a robot driven by a motor via a reduction gear, characterized by following the inverse dynamic calculation of the robot for obtaining the torque required for the output of the reduction gear, and also according to the dynamic friction of the reduction gear Torque calculation, motor output torque compensation is performed through feedback control; and when feedback control is performed, the dynamic friction torque of the reduction gear is calculated to increase in proportion to the torque required for the reduction gear output.

按照本发明,在检测到碰撞后其碰撞转矩方向与电机的旋转方向相反的轴的情况下,当机器人控制模式从用于产生用于使得实际的位置跟随位置命令的电流命令的位置控制向用于命令电流通过电机而产生其方向与电机旋转方向相反的转矩的电流控制转换时,电机旋转速度被降低,并且减小了碰撞能量。其后,当将电机速度降低到低于设置值的值时,所述控制模式被转换到顺应性控制,以便机械手可以跟随碰撞力方向,并且解决由碰撞在减速齿轮中引起的变形问题。有可能通过其响应特性最高的电流控制来停止和降低所述速度,并且当监控电机速度时,可以确定其方向与电机旋转方向相反的电机转矩的施加时间。因此,不必预先设置电机转矩施加时间。According to the present invention, in the case of an axis whose collision torque direction is opposite to the rotation direction of the motor after a collision is detected, when the robot control mode is changed from position control for generating a current command for making the actual position follow the position command to Motor rotation speed is reduced and crash energy is reduced during current control transitions for commanding current through the motor to produce torque whose direction is opposite to the motor's direction of rotation. Thereafter, when the motor speed is reduced to a value lower than the set value, the control mode is switched to compliance control so that the manipulator can follow the collision force direction and solve the deformation problem caused by the collision in the reduction gear. It is possible to stop and reduce the speed by the current control whose response characteristic is the highest, and when the motor speed is monitored, the application time of the motor torque whose direction is opposite to the motor rotation direction can be determined. Therefore, it is not necessary to set the motor torque application time in advance.

另一方面,在其碰撞转矩的方向与电机旋转方向相同的轴的情况下,不进行电流控制,控制模式直接从位置控制向顺应性控制转换。当在跟随碰撞力时操作所述轴时,可以减弱碰撞转矩。On the other hand, in the case of an axis whose collision torque is in the same direction as the motor rotation direction, current control is not performed, and the control mode is directly switched from position control to compliance control. When the shaft is operated while following a crash force, the crash torque can be weakened.

在其在碰撞时的电机旋转速度低于设置值的轴的情况下,不论电机旋转方向和碰撞转矩方向如何,控制模式直接从位置控制向顺应性控制转换,而不进行电流控制。因此,当不必要时不产生仅仅是电流控制的开环状态。In the case of an axis whose motor rotation speed at the time of collision is lower than the set value, regardless of the motor rotation direction and collision torque direction, the control mode is directly switched from position control to compliance control without current control. Therefore, an open-loop state of only current control is not generated when unnecessary.

附图说明Description of drawings

图1是示出了在第一和第二实施例中的用于控制摩擦补偿的控制方法的方框图。FIG. 1 is a block diagram showing a control method for controlling friction compensation in the first and second embodiments.

图2是示出了在第三实施例中的用于控制摩擦补偿的控制方法的方框图。FIG. 2 is a block diagram showing a control method for controlling friction compensation in the third embodiment.

图3是示出了在传统的示例中用于控制摩擦补偿的控制方法的方框图,在所述方法中使用了实际速度。FIG. 3 is a block diagram showing a control method for controlling friction compensation in a conventional example in which an actual speed is used.

图4是示出了在传统的示例中用于控制摩擦补偿的控制方法的方框图,在所述方法中使用了速度命令。FIG. 4 is a block diagram showing a control method for controlling friction compensation in a conventional example, in which a speed command is used.

图5是示出了本发明的实施例1的碰撞转矩检测方法的方框图。5 is a block diagram showing a collision torque detection method of Embodiment 1 of the present invention.

图6是示出了调和(harmonic)减速齿轮的减速齿轮输出所需要的动态摩擦转矩特性的一个示例的视图。FIG. 6 is a view showing one example of dynamic friction torque characteristics required for a reduction gear output of a harmonic reduction gear.

图7是示出了RV减速齿轮的减速齿轮输出所需要的动态摩擦转矩特性的一个示例的视图。FIG. 7 is a view showing one example of dynamic friction torque characteristics required for reduction gear output of the RV reduction gear.

图8是示出了在动态摩擦转矩近似表达式中的参数的视图。FIG. 8 is a view showing parameters in the dynamic friction torque approximate expression.

图9是示出了按照本发明的动态摩擦转矩计算方法的减速齿轮输出所需要的转矩误差的视图。FIG. 9 is a view showing a torque error required for a reduction gear output according to a dynamic friction torque calculation method of the present invention.

图10是在本发明的实施例2中的减速齿轮输出所需要的转矩前馈控制的方框图。Fig. 10 is a block diagram of torque feed-forward control required for reduction gear output in Embodiment 2 of the present invention.

图11是示出了按照传统示例的动态摩擦转矩计算方法的减速齿轮输出所需要的转矩误差的视图。FIG. 11 is a view showing a torque error required for a reduction gear output according to a dynamic friction torque calculation method of a conventional example.

图12是示出了在测量减速齿轮输出所需要的转矩时的操作的视图。FIG. 12 is a view showing an operation in measuring the torque required for the output of the reduction gear.

图13是示出了在增大动态摩擦转矩的情况下减速齿轮输出所需要的转矩误差的视图。FIG. 13 is a view showing a torque error required for reduction gear output in the case of increasing dynamic friction torque.

图14是示出了在第一实施例中的碰撞停止控制方法的时序图。FIG. 14 is a timing chart showing the collision stop control method in the first embodiment.

图15是示出了在碰撞时的速度方向和碰撞转矩方向的机器人操作图。Fig. 15 is a robot operation diagram showing the direction of velocity and the direction of collision torque at the time of collision.

图16是示出了在第一实施例中的碰撞停止控制器件(位置控制模式)的方框图。Fig. 16 is a block diagram showing the collision stop control means (position control mode) in the first embodiment.

图17是示出了在第一实施例中的碰撞停止控制器件(电流控制模式)的方框图。FIG. 17 is a block diagram showing the crash stop control device (current control mode) in the first embodiment.

图18是示出了在第一实施例中的碰撞停止控制器件(顺应性控制模式)的方框图。Fig. 18 is a block diagram showing the crash stop control means (compliance control mode) in the first embodiment.

图19是示出了在第二实施例中的碰撞停止控制器件(位置控制模式)的方框图。Fig. 19 is a block diagram showing the collision stop control means (position control mode) in the second embodiment.

图20是示出了在第二实施例中的碰撞停止控制器件(电流控制模式)的方框图。FIG. 20 is a block diagram showing a crash stop control device (current control mode) in the second embodiment.

图21是示出了在第四实施例中的碰撞停止控制器件(电流控制模式)的方框图。FIG. 21 is a block diagram showing a crash stop control device (current control mode) in the fourth embodiment.

图22是示出了在第三实施例中的碰撞停止控制器件(位置控制模式)的方框图。Fig. 22 is a block diagram showing the collision stop control means (position control mode) in the third embodiment.

图23是示出了在第三实施例中的碰撞停止控制器件(电流控制模式)的方框图。FIG. 23 is a block diagram showing a crash stop control device (current control mode) in the third embodiment.

图24是示出了在第三实施例中的碰撞停止控制器件(顺应性控制模式)的方框图。Fig. 24 is a block diagram showing the crash stop control means (compliance control mode) in the third embodiment.

图25是示出了在第三实施例中的碰撞停止控制方法的时序图。FIG. 25 is a timing chart showing a collision stop control method in the third embodiment.

具体实施方式Detailed ways

参见附图,将如下说明本发明的机器人控制方法的优选实施例。Referring to the drawings, preferred embodiments of the robot control method of the present invention will be explained as follows.

第一实施例first embodiment

图1是示出了本发明的控制方法的方框图。在图1中,附图标号26是速度转换器件,附图标号27是由速度转换器件选择的角速度ω。可以以下述方式来得到反馈电流命令Icom(4):通过反馈控制器(2)从旋转角命令θcom(1)和实际电机旋转角θfb进行PID计算,并且进行电流限制(3)。关于用于电流限制(3)的 方式,提供了一种其中设置了限制的系统和一种其中降低了反馈增益的系统。FIG. 1 is a block diagram showing a control method of the present invention. In FIG. 1, reference numeral 26 is a velocity converting device, and reference numeral 27 is an angular velocity ω selected by the velocity converting device. The feedback current command I com (4) can be obtained by performing PID calculation from the rotation angle command θ com (1) and the actual motor rotation angle θ fb by the feedback controller (2), and performing current limitation (3). Regarding the means for current limitation (3), there are provided a system in which the limitation is set and a system in which the feedback gain is reduced.

另一方面,可以如下通过表达式(3)来计算Iml(17)。将当把电机旋转命令θcom(1)两次进行微分计算(12)、(14)时得到的角加速度αcom(15)乘以电机惯性J(16)。摩擦转矩τμ(20)和动态转矩τdyn(19)被加到如此获得的值。将如此获得的值乘以电机转矩常数的倒数1/Kt(18)。以这种方式,可以计算Iml(17)。On the other hand, I ml can be calculated by Expression (3) as follows (17). The angular acceleration α com (15) obtained when the motor rotation command θ com (1) is differentially calculated twice (12), (14) is multiplied by the motor inertia J (16). Friction torque τμ(20) and dynamic torque τdyn(19) are added to the value thus obtained. Multiply the value thus obtained by the inverse of the motor torque constant 1/K t (18). In this way, 1 ml can be calculated (17).

对于当通过表达式(5)-(9)计算(21)摩擦转矩τμ(20)使用的角速度ω(27),速度转换器件(26)选择当对电机旋转角命令θcom(1)求微分时获得的角速度命令ωcom(13),或者当对实际电机旋转角θfb(11)求微分(24)时获得的实际角速度ωfb(23)。For the angular velocity ω(27) used when calculating (21) friction torque τμ(20) by expressions (5)-(9), the speed conversion device (26) selects The angular velocity command ω com (13) obtained when differentiating, or the actual angular velocity ω fb (23) obtained when differentiating (24) the actual motor rotation angle θ fb (11).

通过速度转换器件(26)按照下列表达式来转换速度。The speed is converted by the speed conversion device (26) according to the following expression.

&omega;&omega; == &omega;fb&omega; fb (( || &omega;com&omega;com || &le;&le; || &omega;fb&omega; fb || )) &omega;com&omega;com (( || &omega;com&omega;com || >> || &omega;fb&omega; fb || )) .. .. .. (( 1212 ))

在表达式(12)中,将角速度命令ωcom(13)的绝对值与实际角速度ωfb(23)的绝对值相互比较,并且选择较高的值来作为ω(27)。In expression (12), the absolute value of the angular velocity command ω com (13) and the absolute value of the actual angular velocity ω fb (23) are compared with each other, and the higher value is selected as ω (27).

使用这个ω,通过表达式(5)-(7)来计算摩擦转矩τμ(20)。Using this ω, the friction torque τμ(20) is calculated by Expressions (5)-(7).

当如上所述进行选择时,即使当顺应性控制变得有效时,在输入位置命令θcom(1)并且主动地操作机械手的情况下或在由外力τdis推动机械手并且被动地操作机械手的情况下,也可以适当地计算摩擦转矩τμ(20)而不被减低到0。When selection is made as described above, even when compliance control becomes effective, in the case where the position command θ com (1) is input and the manipulator is actively operated or in the case where the manipulator is pushed by the external force τdis and the manipulator is passively operated , it is also possible to properly calculate the friction torque τμ(20) without being reduced to zero.

即使当在主动操作机器人并且在角速度命令ωcom(13)和实际角速度ωfb(23)之间存在差异的同时由外力τdis推动机器人并且位置偏差增大的时候,如果实际角速度ωfb(23)的绝对值变得大于角速度命令ωcom(13)的绝对值,则采用实际角速度ωfb(23)来作为ω(27)。因此,可以在摩擦转矩τμ(20)的计算中降低引起误差的因素。Even when the robot is pushed by an external force τdis and the position deviation increases while there is a difference between the angular velocity command ω com (13) and the actual angular velocity ω fb (23) while the robot is being actively operated, if the actual angular velocity ω fb (23) becomes larger than the absolute value of the angular velocity command ω com (13), the actual angular velocity ω fb (23) is adopted as ω (27). Therefore, factors causing errors can be reduced in the calculation of the friction torque τμ(20).

而且,在停止操作时,即使当角速度命令ωcom(13)在实际角速度ωfb(23)变为0之前变为0的时候,如果实际角速度ωfb(23)的绝对值变得大于角速度命令ωcom(13)的绝对值,则采用ωfb(23)来作为ω(27)。因此,通过由表达式(4)计算的摩擦转矩τ的摩擦补偿可以从这个时间点继续。即,有可能当角速度命令ωcom(13)已经达到0时防止由摩擦补偿的消除引起的突然停止。因此,有可能防止这样的问题:机械手不能达到目标位置或者在机械手中产生振动。Also, at the time of stop operation, even when the angular velocity command ω com (13) becomes 0 before the actual angular velocity ω fb (23) becomes 0, if the absolute value of the actual angular velocity ω fb (23) becomes larger than the angular velocity command The absolute value of ω com (13), then use ω fb (23) as ω (27). Therefore, the friction compensation by the friction torque τ calculated by the expression (4) can be continued from this point of time. That is, it is possible to prevent sudden stop caused by cancellation of friction compensation when the angular velocity command ω com ( 13 ) has reached 0. Therefore, it is possible to prevent such a problem that the manipulator cannot reach the target position or vibration is generated in the manipulator.

由于上述构成,即使当通过反馈控制的电流Icom(4)的限制被抑制为低于实际摩擦转矩以便增强控制的顺应性的时候,也有可能防止下列问题的出现:机械手不能达到目标位置或者当机械手被停止时格外振动。Due to the above constitution, even when the limitation of the current I com (4) by the feedback control is suppressed to be lower than the actual friction torque in order to enhance the compliance of the control, it is possible to prevent the occurrence of the problem that the manipulator cannot reach the target position or Vibrates extra when the robot is stopped.

第二实施例second embodiment

在示出了在第一实施例中的速度的转换的表达式(12)中,速度命令值和实际测量值的至少一个被乘以加权系数。In the expression (12) showing the conversion of the speed in the first embodiment, at least one of the speed command value and the actual measurement value is multiplied by a weighting coefficient.

&omega;&omega; == &omega;fb&omega; fb (( || kclkcl ** &omega;com&omega;com ++ kckc 22 || &le;&le; || &omega;fb&omega; fb || )) &omega;com&omega;com (( || kclkcl ** &omega;com&omega;com ++ kckc 22 || >> || &omega;fb&omega; fb || )) .. .. .. (( 1313 ))

当由表达式(13)所示来建立所述构成时,向速度命令值和实际测量值之一提供优先级,以便它可以被采用为速度。When the composition is established as shown by expression (13), priority is given to one of the speed command value and the actual measurement value so that it can be adopted as the speed.

因为实际测量的值ωfb包括测量误差,例如,当在表达式(13)中的加权系数被设置在如下的值时,可以优先地选择速度命令ωcomSince the actually measured value ω fb includes a measurement error, for example, when the weighting coefficient in Expression (13) is set at a value as follows, the speed command ω com can be preferentially selected.

kc1>1和kc2>0                             (14)kc1>1 and kc2>0 (14)

第三实施例third embodiment

图2是示出了第三实施例的控制方法的方框图。Fig. 2 is a block diagram showing a control method of the third embodiment.

被输入到速度转换器件(26)的实际角速度ωfb(23)乘以摩擦补偿率kμ。The actual angular velocity ω fb (23) input to the velocity conversion device (26) is multiplied by the friction compensation rate kμ.

它由表达式(15)表达如下。It is expressed by Expression (15) as follows.

&omega;&omega; == kk &mu;&mu; ** &omega;fb&omega; fb (( || kclkcl ** &omega;com&omega;com ++ kckc 22 || &le;&le; || &omega;fb&omega; fb || )) &omega;com&omega;com (( || kclkcl ** &omega;com&omega;com ++ kckc 22 || >> || &omega;fb&omega; fb || )) .. .. .. (( 1515 ))

kμ:摩擦补偿率kμ: Friction compensation rate

当使用由上述表达式(15)获得的角速度ω(27)时,在对于当由表达式(5)计算(21)摩擦转矩τμ(20)时使用的角速度选择实际角速度ωFB(23)的情况下,当摩擦补偿率kμ被设置在不大于1的值时,不能100%地补偿摩擦转矩τμ(20)。因此,有可能进行调整使得反馈特性不能振动。When using the angular velocity ω(27) obtained by the above expression (15), in selecting the actual angular velocity ωFB(23) for the angular velocity used when calculating (21) the friction torque τμ(20) by the expression (5) In some cases, when the friction compensation rate kμ is set at a value not larger than 1, the friction torque τμ(20) cannot be compensated 100%. Therefore, it is possible to adjust so that the feedback characteristic does not vibrate.

另一方面,在对于用于摩擦转矩τμ(20)的计算(21)的角速度ω使用角速度命令ωcom(13)的情况下,可以100%地补偿摩擦转矩τμ(20),而不影响控制系统的反馈特性。因此,可以改善目标跟随特性。On the other hand, in the case of using the angular velocity command ω com (13) for the angular velocity ω used for the calculation (21) of the friction torque τμ (20), the friction torque τμ (20) can be compensated 100% without Affects the feedback characteristics of the control system. Therefore, target following characteristics can be improved.

第四实施例Fourth embodiment

图6和7是示出了测量结果的视图,其中,在干扰转矩τdis=0的条件下相对于动态转矩τdyn的波动来测量用于机器人的典型减速齿轮中的动态摩擦转矩。图6是示出了在调和减速齿轮情况下的特性的视图,图7是示出了在作为偏心差动式减速齿轮类型的RV减速齿轮情况下的特性的视图。6 and 7 are views showing measurement results in which dynamic friction torque in a typical reduction gear used in a robot is measured with respect to fluctuations in dynamic torque τdyn under the condition of disturbance torque τdis=0. FIG. 6 is a view showing characteristics in the case of a harmonic reduction gear, and FIG. 7 is a view showing characteristics in the case of an RV reduction gear which is an eccentric differential type reduction gear type.

可以从图6和7看出,按照动态转矩τdyn的增大,动态摩擦转矩被增大。可以由表达式(16)来近似动态摩擦转矩。It can be seen from FIGS. 6 and 7 that the dynamic friction torque is increased in accordance with the increase of the dynamic torque τdyn. The dynamic friction torque can be approximated by Expression (16).

&tau;&mu;a&tau;&mu;a == AA ** &tau;dyn&tau;dyn ++ BB (( &tau;dyn&tau;dyn &GreaterEqual;&Greater Equal; &tau;th&tau;th )) CC ** &tau;&tau; dyndyn 22 ++ DD. (( || &tau;dyn&tau;dyn || << &tau;th&tau;th )) EE. ** &tau;dyn&tau;dyn ++ Ff (( &tau;dyn&tau;dyn &le;&le; -- &tau;th&tau;th )) .. .. .. (( 1616 ))

在表达式(16)中,附图标号A、B、C、D、E和F是近似的常数,τth是设置阈值。In Expression (16), reference numerals A, B, C, D, E, and F are approximate constants, and τth is a set threshold.

在图8中描述了在图6和7中所示的上述参数。The above parameters shown in FIGS. 6 and 7 are described in FIG. 8 .

图9是示出了计算结果的视图,其中,按照表达式(16)来计算动态摩擦转矩近似值τμa,并且在与图11所示的减速齿轮输出相同的减速齿轮输出计算和比较必要的转矩。可以在图9中看出,与图11相比较,在恒定速度的误差(5)不增大,而在峰值转矩的误差(3)被降低。FIG. 9 is a view showing calculation results in which the dynamic friction torque approximate value τμa is calculated according to the expression (16), and the rotations necessary for calculation and comparison are calculated and compared at the same reduction gear output as that shown in FIG. 11 . moment. It can be seen in Fig. 9 that the error (5) at constant speed does not increase, while the error (3) at peak torque is reduced compared to Fig. 11 .

然后,当使用由表达式(16)计算的τμa来变形表达式(10)时,可以获得下面的表达式。Then, when expression (10) is transformed using τμa calculated by expression (16), the following expression can be obtained.

τdisa=Kt*Im-(J*α+D*ω+τμa*sgn(ω)+τdyn)             (17)τdisa=K t *I m -(J*α+D*ω+τμa*sgn(ω)+τdyn) (17)

当由表达式(17)来计算碰撞转矩τdisa时,与表达式(10)相比较,变得有可能尤其是在碰撞前减小误差。因此,不必降低碰撞检测灵敏度,并且可以增强碰撞检测精度。When the collision torque τdisa is calculated by the expression (17), it becomes possible to reduce the error especially before the collision as compared with the expression (10). Therefore, it is not necessary to lower the collision detection sensitivity, and the collision detection accuracy can be enhanced.

图5是示出了这种方法的方框图。Figure 5 is a block diagram illustrating this method.

在图5中,将从由示出了(电机)+(实际负荷)的虚线所包围的区域(12)获得的电机旋转角命令值θref(11)和电机旋转角θM(13)相比较,并且控制器(14)向电机提供电流Im(15)。在电机中,产生转矩,它是当将电流Im(15)乘以转矩常数Kt(16)时获得的。从这个转矩减去动态转矩τyn、碰撞转矩τdis和摩擦转矩τμ×sgn(ω)的和(17)。从所述相减获得的转矩用于驱动由方框(18)表达的单个电机体。碰撞转矩计算部分(19)通过表达式(17)从电机旋转角θM(13)和电流Im(15)计算碰撞转矩检测值τdisa(20)。In FIG. 5 , the motor rotation angle command value θ ref ( 11 ) and the motor rotation angle θ M ( 13 ) obtained from the region ( 12 ) surrounded by a dashed line showing (motor) + (actual load) are compared to are compared, and the controller (14) provides current Im (15) to the motor. In a motor, torque is produced, which is obtained when multiplying the current I m (15) by the torque constant K t (16). The sum of dynamic torque τyn, collision torque τdis and friction torque τμ×sgn(ω) is subtracted from this torque (17). The torque obtained from said subtraction is used to drive a single motor body represented by box (18). The collision torque calculation section (19) calculates the collision torque detection value τdisa (20) from the motor rotation angle θ M (13) and the current I m (15) by the expression (17).

关于这一点,虽然增大了误差,但是在表达式(17)中可以使用电机电流转矩τmO=Kt×Im来取代动态转矩τdyn。In this regard, although the error is increased, the motor current torque τmO=K t ×I m may be used in the expression (17) instead of the dynamic torque τdyn.

第五实施例fifth embodiment

接着,下面说明本发明的第五实施例。Next, a fifth embodiment of the present invention will be described below.

首先,关于动态摩擦转矩,使用表达式(16)。当将表达式(11)变形时,可以获得下面的表达式(18)。First, regarding the dynamic friction torque, Expression (16) is used. When expression (11) is transformed, the following expression (18) can be obtained.

Iff(J*α+D*ω+τμa*sgn(ω)+τdyn)/Kt                    (18)I ff (J*α+D*ω+τμa*sgn(ω)+τdyn)/K t (18)

在这个表达式(18)中,当通过对于电机旋转角命令θref进行求微分而计算角速度ω和角加速度α时,表达式(18)可以变形为表达式(19)。因此,可以不使用反馈信号来计算用于产生电机所需要的转矩的电流IffIn this expression (18), when the angular velocity ω and the angular acceleration α are calculated by differentiating the motor rotation angle command θ ref , the expression (18) can be transformed into the expression (19). Therefore, the current I ff for generating the torque required by the motor can be calculated without using the feedback signal.

Iff(J*s2ref)+D*s(θref)+τμa*sgn(ω)+τdyn)/Kt    (19)I ff (J*s 2ref )+D*s(θ ref )+τμa*sgn(ω)+τdyn)/K t (19)

图10是示出了在通过这个前馈电流Iff来进行前馈补偿的情况下的实施例的方框图。FIG. 10 is a block diagram showing an embodiment in the case of performing feed-forward compensation by this feed-forward current I ff .

在图5中,将从由示出了(电机)+(实际负荷)的虚线所包围的区域(12)中获得的电机旋转角命令值θref(11)和电机旋转角θM(13)相比较,并且反馈控制(21)输出在电机中流动的电流命令Icom(22)。当由示出了表达式(9)的方框(23)获得的前馈电流命令Iff(24)被加到由这个反馈控制获得的电流命令Icom(22)时,有可能实现其中估计的误差和延迟较小的反馈控制。In FIG. 5, the motor rotation angle command value θ ref (11) and the motor rotation angle θ M (13) obtained from the region (12) surrounded by the dotted line showing (motor)+(actual load) are compared, and the feedback control (21) outputs the current command I com (22) flowing in the motor. When the feed-forward current command I ff (24) obtained by the block (23) showing expression (9) is added to the current command I com (22) obtained by this feedback control, it is possible to realize wherein the estimation Feedback control with small errors and delays.

第七实施例Seventh embodiment

图16是示出了本发明的第七实施例的视图。Fig. 16 is a view showing a seventh embodiment of the present invention.

在图16中,项(26)是用于检测碰撞转矩τdisd(27)的碰撞转矩检测部件,向机械手施加所述碰撞转矩τdisd(27)以便通过提供到驱动机械手的碰撞力驱动手臂,项(25)是碰撞判断部件,用于通过比较碰撞转矩检测值τdisd(27)和已经设置的碰撞转矩阈值来判断碰撞,并且用于输出碰撞检测信号Dcol(30),附图标号(24)是电机旋转检测部件(23),用于从电机旋转角θfb(22)检测电机的角速度ωfb,附图标号(23)是碰撞方向判断部件,用于通过比较碰撞转矩检测方向与电机旋转方向而输出碰撞方向标志Dir(31),附图标号(32)是电机减速判断部件,用于通过比较电机角速度ωfb(1)与已经设置的所述阈值、并且通过确认电机的减速来输出电机减速判断信号Dth(33),附图标号(15)是控制模式转换部件,后面将说明它。在其中电机旋转方向和碰撞转矩方向彼此相反的轴的情况下,当用于产生电流命令以使得电机旋转角θfb跟随旋转角命令θcom(11)的位置控制部件(12)被转换到电流控制部件(13)时,电机旋转速度被降低,其中所述电流控制部件(13)用于提供产生电流的命令以便可以由电机产生其方向与电机旋转方向相反的转矩。当电机旋转速度被降低到不大于设置值的值时,所述控制模式转换部件将模式转换到跟随碰撞力的方向的顺应性控制部件(14)。在其中电机旋转方向与碰撞转矩方向相同的轴的情况下,控制模式转换部件将模式从位置控制部件(12)转换到顺应性控制部件(14)。In FIG. 16, item (26) is a collision torque detecting part for detecting a collision torque τdisd(27) applied to the manipulator so as to drive the arm by the collision force supplied to the driving manipulator. , Item (25) is a collision judging component, which is used to judge a collision by comparing the collision torque detection value τdisd (27) with the already set collision torque threshold, and is used to output a collision detection signal D col (30), with figures Number (24) is a motor rotation detection part (23), which is used to detect the angular velocity ω fb of the motor from the motor rotation angle θ fb (22), and the reference number (23) is a collision direction judgment part, which is used for comparing the collision torque The detection direction and the motor rotation direction output the collision direction sign D ir (31), and the reference numeral (32) is a motor deceleration judging part, which is used for comparing the motor angular velocity ω fb (1) with the threshold value that has been set, and by Confirming the deceleration of the motor to output the motor deceleration judgment signal Dth (33), reference numeral (15) is a control mode switching part, which will be described later. In the case of an axis in which the motor rotation direction and the collision torque direction are opposite to each other, when the position control part (12) for generating a current command so that the motor rotation angle θ fb follows the rotation angle command θ com (11) is switched to The rotation speed of the motor is reduced when the current control part (13) is used to provide a command to generate current so that the motor can generate a torque whose direction is opposite to the rotation direction of the motor. When the rotational speed of the motor is reduced to a value not greater than the set value, the control mode switching means switches the mode to the compliance control means (14) following the direction of the collision force. In the case of an axis where the direction of motor rotation is the same as the direction of the crash torque, the control mode switching means switches the mode from the position control means (12) to the compliance control means (14).

接着,参见图16,将如下详细说明在检测碰撞后进行的停止控制方法。通过作为位置控制部件的反馈控制器(12)从电机旋转角命令θcom(11)和实际电机旋转角θfb(22)得到用于进行位置控制的电流命令Icom1(2)。反馈控制器(12)通常由PID控制构成。Next, referring to FIG. 16, the stop control method performed after detection of a collision will be described in detail as follows. The current command I com1 (2) for position control is obtained from the motor rotation angle command θ com (11) and the actual motor rotation angle θ fb (22) by the feedback controller (12) as a position control part. The feedback controller (12) usually consists of PID control.

在碰撞检测前进行的通常的位置控制中,由控制模式转换块(15)将电流命令Icom1(2)选择作为电机电流Im(16),并且将其施加在(电机)+(实际负荷)(17)上。In normal position control before collision detection, the current command I com1 (2) is selected as the motor current I m (16) by the control mode switching block (15), and is applied at (motor) + (actual load ) (17).

当电机电流Im(16)被乘以转矩常数Kt(18)时获得的电机转矩τmm(19)和干扰转矩(20)被施加在使用电机惯性J所描述的传递函数(21)上。The motor torque τ mm (19) and the disturbance torque (20) obtained when the motor current I m (16) is multiplied by the torque constant K t (18) are applied in the transfer function described using the motor inertia J ( 21) on.

干扰转矩(20)是摩擦转矩τμ、重力转矩τg、动态转矩τdyn(惯性力、离心力和地球偏转力的和)和碰撞转矩τdis的和。Disturbance torque (20) is the sum of friction torque τμ, gravitational torque τg, dynamic torque τdyn (sum of inertial force, centrifugal force and earth deflection force) and collision torque τdis.

电机旋转角θfb(22)是从电机传递函数(21)输出的,并且通常被光类型的编码器或磁类型的编码器检测。The motor rotation angle θ fb (22) is output from the motor transfer function (21), and is usually detected by an optical type encoder or a magnetic type encoder.

在碰撞转矩检测块(26)中,如下得到碰撞转矩检测值τdisd(27)。通过在不产生碰撞转矩τdis的情况下使用这个电机旋转角(22)、另一个轴电机旋转角(29)、能够通过对于它们进行时间微分而引出的角速度、角加速度和机器人机器参数,可以通过逆动态计算来获得电机所需要的转矩。从如此获得的值减去将实际电机电流Imm(16)乘以转矩常数Kt(18)而获得的值。以这种方式,可以得到碰撞转矩检测值τdisd(27)。In the collision torque detection block (26), the collision torque detection value τdisd (27) is obtained as follows. By using this motor rotation angle (22), the other axis motor rotation angle (29), angular velocity, angular acceleration and robot machine parameters that can be derived by time differentiating them without generating a collision torque τdis, it is possible to The torque required by the motor is obtained through inverse dynamic calculation. The value obtained by multiplying the actual motor current I mm (16) by the torque constant K t (18) is subtracted from the value thus obtained. In this way, the collision torque detection value τdisd(27) can be obtained.

当以相同方式在另一个轴得到的碰撞转矩检测值(28)和碰撞转矩检测值τdisd(27)之一已经超过预定的碰撞检测阈值τcth时,碰撞判断块(25)判断引起了碰撞。然后,向控制模式转换块(15)发送碰撞检测信号Dcol(30)。When one of the collision torque detection value (28) and the collision torque detection value τdisd (27) obtained at another axis in the same manner has exceeded a predetermined collision detection threshold τcth , the collision judgment block (25) judges that a collision. Then, a collision detection signal D col (30) is sent to the control mode switching block (15).

在电机角速度检测块(24)中,电机旋转角θfb(22)被微分,以便得到电机角速度ωfb(1)。碰撞方向判断块(23)通过下述表达式来从电机角速度ωfb(1)和碰撞转矩检测值τdisd(27)计算碰撞方向标志Dir(31)。In the motor angular velocity detection block (24), the motor rotation angle θ fb (22) is differentiated to obtain the motor angular velocity ω fb (1). The collision direction judgment block (23) calculates the collision direction flag Dir (31) from the motor angular velocity ω fb (1) and the collision torque detection value τdisd (27) by the following expression.

DirDir == 11 (( &omega;fb&omega; fb ** &tau;disd&tau;disd << 00 )) 00 (( &omega;fb&omega; fb ** &tau;disd&tau;disd &GreaterEqual;&Greater Equal; 00 )) .. .. .. (( 2020 ))

在表达式(20)中,当电机角速度ωfb(1)的方向和碰撞转矩检测值τdisd(27)的方向彼此相反时,碰撞方向标志Dir(31)变为1。在除此之外的其他情况下,碰撞方向标志Dir(31)变为0。In Expression (20), the collision direction flag D ir ( 31 ) becomes 1 when the direction of the motor angular velocity ω fb ( 1 ) and the direction of the collision torque detection value τdisd ( 27 ) are opposite to each other. In other cases than this, the collision direction flag D ir ( 31 ) becomes 0.

在图15所示的操作中,在轴UA(41)中,Dir=1,并且在轴FA(42)中,Dir’=0。In the operation shown in FIG. 15 , D ir =1 in axis UA ( 41 ), and D ir′ =0 in axis FA ( 42 ).

当输入碰撞检测信号Dcol(30)时,控制模式转换块(15)按照碰撞方向标志Dir(31)的信息来转换控制模式。When the collision detection signal D col (30) is input, the control mode switching block (15) switches the control mode according to the information of the collision direction flag D ir (31).

Figure A20048000928500232
Figure A20048000928500232

因为在轴UA中Dir=1,因此由电流控制块(13)从电机角速度ωfb(1)产生用于产生转矩的电流Icom2(3),所述转矩的方向与电机旋转方向相反。然后,如图17所示,控制模式转换块(15)选择Icom2(3)来作为电机电流Im(16),即模式转换到电流控制模式。Since D ir =1 in axis UA, the current I com2 (3) for generating torque is generated by the current control block (13) from the angular velocity of the motor ω fb (1) in the direction corresponding to the direction of rotation of the motor on the contrary. Then, as shown in Fig. 17, the control mode switching block (15) selects I com2 (3) as the motor current I m (16), that is, the mode switches to the current control mode.

按照上述的构成,因为轴UA(41)突然减速,因此碰撞转矩τdis(9)在碰撞检测后可以减小。According to the above configuration, since the shaft UA ( 41 ) is suddenly decelerated, the collision torque τdis ( 9 ) can be reduced after collision detection.

当轴UA(41)减速并且角速度ωfb的绝对值变得小于预定的减速判断阈值ωth(5)时,电机减速判断块(32)输出电机减速判断信号Dth(33)。When the shaft UA (41) decelerates and the absolute value of the angular velocity ω fb becomes smaller than a predetermined deceleration judgment threshold ω th (5), the motor deceleration judgment block (32) outputs a motor deceleration judgment signal D th (33).

Dth=1(|ωfb|<ωth)                                (22)D th =1(|ω fb |<ω th ) (22)

当输出这个电机减速判断信号Dth(33)时,控制模式转换块(15)选择Icom3(4)来作为电机电流Im(6),并且模式转换到图18所示的顺应性控制模式。When this motor deceleration judgment signal D th (33) is output, the control mode switching block (15) selects I com3 (4) as the motor current I m (6), and the mode switches to the compliance control mode shown in FIG. 18 .

关于这一点,在角速度ωfb(1)的绝对值小于预定阈值ωth(5)并且在碰撞检测时满足表达式(22)的条件时,模式不从通常的控制模式(图16中所示)转换到电流控制模式(图17中所示),而是模式转换到顺应性控制模式(图18所示),但不通过向电机施加逆转矩来进行减速。In this regard, when the absolute value of the angular velocity ω fb (1) is smaller than the predetermined threshold ω th (5) and the condition of Expression (22) is satisfied at the time of collision detection, the mode is not changed from the usual control mode (shown in FIG. 16 ) to a current control mode (shown in Figure 17), but a mode switch to a compliance control mode (shown in Figure 18), but without deceleration by applying reverse torque to the motor.

在这一情况中,可以以如下的方式来实现顺应性控制:顺应性控制块(14)对于由从反馈控制器(12)输出的电流命令Icom1(2)控制的电流进行限制,然后增加重力补偿电流,以便防止机器人由于其本身的重量而下落。In this case, compliance control can be achieved in such a way that the compliance control block (14) limits the current controlled by the current command I com1 (2) output from the feedback controller (12) and then increases Gravity compensation current in order to prevent the robot from falling due to its own weight.

由于上述情况,即使当增大在电机旋转角命令θcom(11)和电机旋转角θfb(22)之间的偏差时,因为限制了电机电流,因此降低了位置控制的伺服刚性,以便可以增强控制的顺应性。Due to the above, even when the deviation between the motor rotation angle command θ com (11) and the motor rotation angle θ fb (22) is increased, since the motor current is limited, the servo rigidity of the position control is lowered so that it can be Enhanced control compliance.

关于电流的限制,有可能通过降低在反馈控制器(12)中的增益来实现电流的限制。Regarding current limitation, it is possible to achieve current limitation by reducing the gain in the feedback controller (12).

当在表达式(22)中电机减速判断信号Dth=1时,电机角速度ωfb(1)低于阈值ωthr,即电机几乎被停止,并且惯性能量低。因此,当模式转换到顺应性模式时,可以解决在碰撞时产生的减速齿轮的变形的问题。When the motor deceleration judgment signal D th =1 in expression (22), the motor angular velocity ω fb (1) is lower than the threshold ω thr , ie the motor is almost stopped and the inertial energy is low. Therefore, when the mode is shifted to the compliance mode, it is possible to solve the problem of deformation of the reduction gear generated at the time of collision.

另一方面,在轴FA(42)的情况下,在表达式(2)中的碰撞方向标志Dir’=0。因此,当以与轴UA(41)的相同的方式来突然加速或减速轴FA(42)时,碰撞转矩τdis’(10)相反地增大。On the other hand, in the case of the axis FA ( 42 ), the collision direction flag D ir′ =0 in the expression (2). Therefore, when the shaft FA ( 42 ) is suddenly accelerated or decelerated in the same manner as the shaft UA ( 41 ), the collision torque τ dis' ( 10 ) increases inversely.

因此,在碰撞发生时碰撞方向标志Dir’=0的情况下,控制模式转换块(15)将控制模式从通常的控制模式(图16所示)转换至顺应性控制模式(图18所示),而不经过电流控制模式(图17所示)。Therefore, when the collision direction flag D ir' =0 when the collision occurs, the control mode switching block (15) switches the control mode from the normal control mode (shown in FIG. 16 ) to the compliance control mode (shown in FIG. 18 ), without going through the current control mode (shown in Figure 17).

由于上述的构成,在跟随碰撞力的同时通过顺应性控制来操作轴FA(42)。因此,可以减弱碰撞转矩。Due to the above configuration, the shaft FA ( 42 ) is operated by compliance control while following the collision force. Therefore, the collision torque can be weakened.

图14是以时间序列示出了上述控制方法的时序图。FIG. 14 is a timing chart showing the above-described control method in time series.

第八实施例Eighth embodiment

图19是示出了本发明的第八实施例的视图。Fig. 19 is a view showing an eighth embodiment of the present invention.

图19所示的第八实施例的特性被描述如下。参照示出了第七实施例的图16,在图19中所示的实施例中,提供了碰撞转矩阈值判断部件(34),它将碰撞转矩检测值τdisd(27)与碰撞方向判断转矩阈值相比较。在其中碰撞转矩检测值τdisd(27)低于碰撞方向判断转矩阈值的轴的情况下,不论电机旋转方向和碰撞转矩方向如何,位置控制部件(12)被转换到电流控制部件(13),以便电机可以产生其方向与电机旋转方向相反的转矩,并且可以降低电机旋转速度ωfb(1)。当电机旋转速度被降低到不大于设置值的值时,控制模式转换部件(15)转换模式到顺应性控制部件(14)。The characteristics of the eighth embodiment shown in Fig. 19 are described as follows. Referring to Fig. 16 showing the seventh embodiment, in the embodiment shown in Fig. 19, a collision torque threshold judging part (34) is provided, which combines the collision torque detection value τ disd (27) with the collision direction The judgment torque threshold is compared. In the case of an axis where the collision torque detection value τ disd (27) is lower than the collision direction judgment torque threshold value, regardless of the motor rotation direction and the collision torque direction, the position control part (12) is switched to the current control part ( 13) so that the motor can generate a torque whose direction is opposite to the motor rotation direction, and the motor rotation speed ω fb (1) can be reduced. The control mode switching section (15) switches the mode to the compliance control section (14) when the motor rotation speed is reduced to a value not greater than the set value.

参见图19,将说明作为增加的功能的、碰撞转矩阈值判断块(34)的操作和功能。Referring to Fig. 19, the operation and function of the collision torque threshold judgment block (34) as an added function will be explained.

在第七实施例中,仅仅通过由表达式(20)确定的碰撞方向标志Dir(31)来确定控制模式是否被转换到电流控制模式(图17所示)。In the seventh embodiment, whether the control mode is switched to the current control mode (shown in FIG. 17 ) is determined only by the collision direction flag D ir (31) determined by the expression (20).

但是,关于在表达式(20)的条件判断中使用的碰撞转矩检测值τdisd(27),在不使用在第七实施例中所示的转矩传感器来估计碰撞转矩检测值τdisd(27)的情况下,因为从机器人的机械参数、电机位置、角速度、角加速度和电流的信息来估计碰撞转矩τdis,因此与其中提供了碰撞检测传感器的情况相比较增大了检测误差。However, regarding the collision torque detection value τ disd (27) used in the condition judgment of the expression (20), the collision torque detection value τ disd is estimated without using the torque sensor shown in the seventh embodiment In the case of (27), since the collision torque τ dis is estimated from the information of the robot's mechanical parameters, motor position, angular velocity, angular acceleration, and current, the detection error increases compared to the case where the collision detection sensor is provided .

因此,在其中碰撞转矩检测值τdisd(27)较低并接近0的轴的情况下,有可能由检测误差在碰撞转矩检测值τdisd(27)的符号中引起错误。Therefore, in the case of an axis where the collision torque detection value τ disd ( 27 ) is low and close to 0, there is a possibility that an error is caused in the sign of the collision torque detection value τ disd ( 27 ) by a detection error.

换句话说,在其中电机速度ωfb(1)较高的轴的情况下,即在其中惯性能量较高的轴的情况下,当碰撞转矩检测值τdisd(27)较低时,有可能错误地输出碰撞方向标志Dir(31)。In other words, in the case of an axis in which the motor speed ω fb (1) is high, that is, in the case of an axis in which the inertial energy is high, when the collision torque detection value τ disd (27) is low, there is The collision direction flag D ir ( 31 ) may be output incorrectly.

当在一个轴中碰撞转矩检测值τdisd(27)大于预定的碰撞判断阈值τdth时,碰撞判断块(25)判断引起了碰撞。因此,在其检测值高于碰撞判断阈值的轴的情况下,不进行碰撞方向标志Dir(31)的错误输出。When the collision torque detection value τ disd (27) is greater than a predetermined collision judgment threshold τdth in one axis, the collision judgment block (25) judges that a collision has occurred. Therefore, in the case of an axis whose detection value is higher than the collision judgment threshold value, erroneous output of the collision direction flag D ir ( 31 ) is not performed.

在其碰撞转矩τdis较低的轴的情况下,除了其中已经检测到碰撞的轴之外,因为没有向所述轴提供强的外力,因此快速减速电机以便降低惯性能量是更为安全的。但是,只要不能判断碰撞方向,在一些情况下不实际减速电机更好。因此,在碰撞检测时的速度的绝对值较低以致不损害机器人的情况下,通过向电机提供逆转矩而不减速电机。在速度高的情况下,电机不被减速,直到旋转完全停止,但是电机应当被减速到不在机器人中引起损害的速度。In the case of an axis whose collision torque τdis is low, except for the axis in which a collision has been detected, it is safer to rapidly decelerate the motor to reduce inertial energy because no strong external force is applied to the axis. However, as long as the collision direction cannot be judged, it is better not to actually decelerate the motor in some cases. Therefore, in the case where the absolute value of the speed at the time of collision detection is low so as not to damage the robot, the motor is not decelerated by supplying reverse torque to the motor. At high speeds, the motor is not decelerated until the rotation has come to a complete stop, but the motor should be decelerated to a speed that does not cause damage in the robot.

因此,如图19所示,已经新增加的碰撞转矩阈值判断块(34)向控制模式转换块(15)输出碰撞转矩阈值判断信号Dtht(35)。Therefore, as shown in FIG. 19, the collision torque threshold judgment block (34) which has been newly added outputs the collision torque threshold judgment signal D tht (35) to the control mode switching block (15).

DtntDtnt == 11 (( || &tau;disd&tau;disd || << &tau;thr&tau;thr )) 00 (( || &tau;disd&tau;disd || &GreaterEqual;&Greater Equal; &tau;thr&tau;thr )) .. .. .. (( 23twenty three ))

τthr:碰撞方向判断转矩阈值τ thr : Torque threshold for collision direction judgment

0<τthr≤τcth(碰撞检测判断阈值)0<τ thr ≤τ cth (collision detection threshold)

如表达式(23)所示,当碰撞转矩检测值τdisd(27)的绝对值变得小于预定的碰撞方向判断阈值τthr时,碰撞转矩阈值判断信号Dtht(35)变为1。As shown in expression (23), when the absolute value of the collision torque detection value τ disd (27) becomes smaller than the predetermined collision direction judgment threshold τ thr , the collision torque threshold judgment signal D tht (35) becomes 1 .

在碰撞方向判断转矩阈值τthr不大于碰撞检测判断阈值τcth的条件下,在表达式(23)中的碰撞方向判断转矩阈值τthr可以被设置为大于碰撞转矩检测值τdisd(27)的检测误差。Under the condition that the collision direction judgment torque threshold τ thr is not greater than the collision detection judgment threshold τ cth , the collision direction judgment torque threshold τ thr in expression (23) can be set to be larger than the collision torque detection value τ disd ( 27) detection error.

当碰撞转矩阈值判断信号Dtht=1时,不论作为碰撞速度转矩方向判断块(23)的输出信号的碰撞方向标志Dir(31)如何,当检测到碰撞时,控制模式从通常的控制模式(图19所示)转换到电流控制模式(图20所示),并且电机减速。其后,进行与第七实施例相同的处理。When the collision torque threshold judgment signal D tht = 1, regardless of the collision direction flag D ir (31) as the output signal of the collision speed torque direction judgment block (23), when a collision is detected, the control mode changes from the usual The control mode (shown in Figure 19) switches to the current control mode (shown in Figure 20), and the motor decelerates. Thereafter, the same processing as in the seventh embodiment is performed.

此时,当在第七实施例中的表达式(22)中的阈值ωth(5)被设置在可以不损害机器人的速度值时,在碰撞检测时的角速度ωfb(1)的绝对值小于阈值ωth(5),以便不损害机器人。在这种情况下,控制模式不从通常的控制模式(图16所示)向电流控制模式(图17所示)转换,而是控制模式向顺应性控制模式(图18所示)转换,但不通过向电机施加逆转矩来进行减速。At this time, when the threshold value ω th (5) in the expression (22) in the seventh embodiment is set at a velocity value that can not damage the robot, the absolute value of the angular velocity ω fb (1) at the time of collision detection is smaller than the threshold ω th (5) in order not to damage the robot. In this case, the control mode is not switched from the normal control mode (shown in Figure 16) to the current control mode (shown in Figure 17), but the control mode is switched to the compliance control mode (shown in Figure 18), but Deceleration is not performed by applying reverse torque to the motor.

即使当在碰撞检测时的角速度ωfb(1)较高时,如果电机被减速到作为不损害机器人的速度的阈值ωth(5),则控制模式转换到顺应性控制模式(图18所示)。Even when the angular velocity ω fb (1) at the time of collision detection is high, if the motor is decelerated to the threshold ω th (5) as a speed that does not damage the robot, the control mode shifts to the compliance control mode (shown in Fig. 18 ).

当碰撞转矩阈值判断信号Dtht=0时,进行与第七实施例中相同的处理。When the collision torque threshold judgment signal D tht =0, the same processing as in the seventh embodiment is performed.

第九实施例Ninth embodiment

在第七实施例中,在碰撞检测后,在其中碰撞转矩方向与电机旋转方向相反的轴的情况下,控制从位置控制转换到电流控制,其中在位置控制中,产生用于使得实际位置跟随位置命令的电流命令,所述电流控制命令电流,以便可以由电机产生其方向与电机旋转方向相反的转矩。由于这个转换操作,电机旋转速度被降低,并且减弱了碰撞能量。其后,当电机旋转速度降低到不大于设置值的值时,控制转换到顺应性控制,在该顺应性控制中,电机旋转跟随碰撞力的方向,以便可以解决由碰撞引起的在减速齿轮中的变形问题。In the seventh embodiment, after collision detection, in the case of an axis in which the direction of collision torque is opposite to the direction of rotation of the motor, the control is switched from position control to current control, in which a generator for making the actual position A current command following the position command, the current control commands the current so that a torque can be produced by the motor whose direction is opposite to the direction of rotation of the motor. Due to this switching operation, the motor rotation speed is reduced, and the collision energy is attenuated. Thereafter, when the motor rotation speed decreases to a value not greater than the set value, the control shifts to compliance control in which the motor rotation follows the direction of the collision force so that the damage caused by the collision in the reduction gear can be resolved. deformation problem.

但是,在碰撞检测时的速度较高的情况下,仅仅当在电机旋转减速时所述控制转换到顺应性控制的时候,有可能不能充分地解决由碰撞引起的减速齿轮的变形的问题。However, when the speed at the time of collision detection is high, the problem of deformation of the reduction gear caused by the collision may not be sufficiently resolved only when the control is switched to the compliance control when the rotation of the motor is decelerated.

因此,在其中电机旋转方向和碰撞转矩方向彼此相反并且电机旋转速度和碰撞转矩检测值分别高于设置值的轴的情况下,当在降低电机旋转速度后进行电流控制时(其中其方向与电机旋转方向相反的转矩由电机产生),连续的施加相反方向的转矩直到速度方向反转。在解决了由碰撞产生的减速齿轮的变形的一部分后,反转的速度被增大到不小于设置值的值。然后,控制转换到其中电机旋转跟随碰撞力方向的顺应性控制。Therefore, in the case of an axis where the motor rotation direction and the collision torque direction are opposite to each other and the motor rotation speed and the collision torque detection value are respectively higher than the set value, when the current control is performed after reducing the motor rotation speed (wherein its direction The torque in the opposite direction to the motor rotation is generated by the motor), and the torque in the opposite direction is continuously applied until the direction of the speed is reversed. After solving a part of the deformation of the reduction gear caused by the collision, the speed of the reverse is increased to a value not smaller than the set value. Then, the control transitions to compliance control in which the motor rotation follows the direction of the impact force.

当执行上述的控制方法时,控制系统是复杂的,并且增大了反向转矩施加时间,而且有可能机械手在碰撞方向的相反方向上大大地反弹。另一方面,可以迅速地解决在减速齿轮中的变形问题。When the above-mentioned control method is carried out, the control system is complicated, and the reverse torque application time is increased, and there is a possibility that the manipulator rebounds greatly in the opposite direction to the collision direction. On the other hand, the deformation problem in the reduction gear can be quickly solved.

图22是示出了本发明的第九实施例的视图。Fig. 22 is a view showing a ninth embodiment of the present invention.

在图22中所示的第九实施例的特性被描述如下。参照示出了第七实施例的图16,电机减速判断部件(32)被改变到电机减速和反转判断部件(39)。除了在第八实施例中提供的碰撞转矩阈值判断部件(34)之外,还新提供了碰撞速度判断部件(37),用于判断在碰撞检测时的电机速度。由于上述情况,在其中电机旋转方向和碰撞转矩方向彼此相反并且判断电机旋转速度和碰撞转矩检测值超过设置值的轴的情况下,模式转换到其中由电机产生在与电机旋转方向相反方向中的转矩的电流控制模式。即使在已经降低了电机旋转速度后,在相反方向中的转矩也保持被施加,直到速度方向被反转。在已经解决了由碰撞引起的减速齿轮的变形的一部分后,当反转的速度增大到不小于设置值的时候,控制模式被转换到其中电机旋转跟随碰撞力方向的顺应性控制。第九实施例包括如上所述操作的控制模式转换部件(15)。The characteristics of the ninth embodiment shown in Fig. 22 are described as follows. Referring to FIG. 16 showing the seventh embodiment, the motor deceleration judgment part (32) is changed to a motor deceleration and reverse reversal judgment part (39). In addition to the collision torque threshold judging part (34) provided in the eighth embodiment, a collision speed judging part (37) is newly provided for judging the motor speed at the time of collision detection. Due to the above, in the case of an axis where the motor rotation direction and the collision torque direction are opposite to each other and it is judged that the motor rotation speed and the collision torque detection value exceed the set value, the mode transitions to where the motor is generated in the direction opposite to the motor rotation direction Torque in current control mode. Even after the motor rotational speed has been reduced, torque in the opposite direction remains applied until the speed direction is reversed. After a part of the deformation of the reduction gear caused by the collision has been resolved, when the speed of the reverse is increased to not less than the set value, the control mode is switched to compliance control in which the motor rotation follows the direction of the collision force. The ninth embodiment includes the control mode switching section (15) operating as described above.

参见图22,将说明作为增加部件的碰撞速度判断部件(37)和作为改变部件的电机减速和反转判断部件(39)的操作和功能,。Referring to Fig. 22, the operation and function of the collision speed judging part (37) as an increasing part and the motor deceleration and reverse judging part (39) as a changing part will be explained.

在第七实施例中,仅仅通过由表达式(20)确定的碰撞方向标志Dir(31)确定向电流控制模式(图17所示)的转换。In the seventh embodiment, transition to the current control mode (shown in FIG. 17 ) is determined only by the collision direction flag D ir (31) determined by the expression (20).

在第九实施例中,提供了被加到第八实施例的碰撞转矩阈值判断部件(34)。第九实施例仅仅被应用到其中在表达式(23)中Dtht=0的情况,即仅仅被应用到其中碰撞转矩检测值τdisd(27)的绝对值不小于预定碰撞方向判断转矩阈值τthr并且碰撞方向标志Dir=1(电机旋转方向和碰撞转矩方向彼此相反)的情况。In the ninth embodiment, there is provided the collision torque threshold judgment means (34) added to the eighth embodiment. The ninth embodiment is applied only to the case where D tht = 0 in Expression (23), that is, only to where the absolute value of the collision torque detection value τ disd (27) is not smaller than the predetermined collision direction judgment torque The case where the threshold τ thr and the collision direction flag D ir =1 (the motor rotation direction and the collision torque direction are opposite to each other).

在除了上述情况之外的情况中,按照实施例7或8的控制方法来进行控制。In cases other than the above cases, control is performed according to the control method of Embodiment 7 or 8.

在电机角速度ωfb(1)的绝对值大于预定的碰撞速度判断阈值ωths(39)的情况中,碰撞速度判断部件(37)输出碰撞速度判断信号Dths(38)。In case the absolute value of the motor angular velocity ω fb (1) is greater than a predetermined collision speed judgment threshold ω ths (39), the collision speed judging part (37) outputs a collision speed judgment signal D ths (38).

Dths=1(|ωfb|<ωths)                                  (24)D ths =1(|ω fb |<ω ths ) (24)

ωths≥ωth(减速判断阈值)ω ths ≥ω th (deceleration judgment threshold)

当碰撞转矩阈值判断信号Dtht=0并且碰撞方向标志Dir=1时,输出这个电机减速判断信号Dths=1。然后,控制模式转换块(15)选择Icom2(3)来作为电机电流Im(6),并且模式从通常的控制模式(图22所示)转换到其中通过向电机施加逆转矩而将电机旋转减速的电流控制模式(图23所示)。When the collision torque threshold judgment signal D tht =0 and the collision direction flag D ir =1, the motor deceleration judgment signal D ths =1 is output. Then, the control mode switching block (15) selects I com2 (3) as the motor current I m (6), and the mode switches from the usual control mode (shown in FIG. 22 ) to one in which the Current control mode for motor rotation deceleration (shown in Figure 23).

电机减速部件(32)判断通过施加所述逆转矩而降低和反转了电机速度ωfb(1)。具体上,如下进行操作。在表达式(22)中,当电机减速判断信号Dth(33)通过“1(碰撞)”→“0(减速)”→“1(反转)”而转换时,控制模式转换块(15)选择Icom3(4)来作为电机电流Im(6),并且模式转换到图24所示的顺应性控制模式。The motor decelerating part (32) judges that the motor speed ω fb (1) is reduced and reversed by applying the reverse torque. Specifically, the operation is performed as follows. In the expression (22), when the motor deceleration judgment signal D th (33) is converted by "1 (collision)" → "0 (deceleration)" → "1 (reverse)", the control mode conversion block (15 ) selects I com3 (4) as the motor current I m (6), and the mode transitions to the compliance control mode shown in FIG. 24 .

图25是以时间序列示出了上述控制方法的时序图。FIG. 25 is a timing chart showing the above-described control method in time series.

第十实施例Tenth embodiment

图21是示出了本发明的第十实施例的视图。Fig. 21 is a view showing a tenth embodiment of the present invention.

图21示出了一种布置,其中,相对于示出了第八实施例的图19,电流控制部件从(13)变为(36)。第十实施例包括电流控制部件(36),用于控制一个电流,所述电流当在控制模式转换部件(15)中选择电流控制部件时在与电机旋转方向相反的方向上产生电机的最大转矩。Fig. 21 shows an arrangement in which the current control means is changed from (13) to (36) relative to Fig. 19 which shows an eighth embodiment. The tenth embodiment includes a current control part (36) for controlling a current that produces the maximum rotation of the motor in a direction opposite to the rotation direction of the motor when the current control part is selected in the control mode switching part (15). moment.

由于上述构成,有可能对于电机进行最大制动操作。因此,可以减弱碰撞能量,以便可以将其降低到尽可能低。Due to the above constitution, it is possible to perform a maximum braking operation on the motor. Therefore, the collision energy can be weakened so that it can be reduced as low as possible.

当然,可以在示出了第七实施例的图16和示出了第九实施例的图22中进行相同的改变。Of course, the same changes can be made in FIG. 16 showing the seventh embodiment and FIG. 22 showing the ninth embodiment.

产业上的应用Industrial application

如上所述,本发明提供了一种控制机器人的方法,其特征在于:检测用于驱动机器人的电机的旋转角度;从旋转角计算角速度的实际测量值;当将从被提供到电机的命令计算的命令值的角速度的绝对值与实际测量的值的角速度的绝对值相比较时,选择其绝对值大于另一个角速度的绝对值的一个角速度,并且使用那个角速度来计算摩擦转矩;当按照命令值来驱动电机时,向被提供到电机的命令值增加对应于摩擦转矩的值;并且在下述两种情况下总是有效地进行摩擦补偿:按照角命令来主动地操作机械手的情况,由外力来推动而被动地操作机械手的情况。由于上述特性,可以将通过反馈控制的电流限制抑制到小于摩擦转矩。因此,可以实现较高顺应性的控制方法。As described above, the present invention provides a method of controlling a robot, characterized by: detecting the rotation angle of a motor used to drive the robot; calculating an actual measured value of angular velocity from the rotation angle; When the absolute value of the angular velocity of the command value is compared with the absolute value of the angular velocity of the actually measured value, an angular velocity whose absolute value is greater than the absolute value of the other angular velocity is selected, and that angular velocity is used to calculate the friction torque; when following the command When the motor is driven by a certain value, a value corresponding to the friction torque is added to the command value supplied to the motor; and friction compensation is always effective in the following two cases: In the case of actively operating the manipulator according to the angular command, by The case where the manipulator is passively operated by an external force. Due to the above characteristics, current limitation by feedback control can be suppressed to be smaller than the friction torque. Therefore, a higher compliance control method can be realized.

当在比较速度的绝对值时将命令值和实际测量值的至少一个乘以或加上加权系数时,速度命令值或实际测量值可以择优地被采用为速度。因此,例如,可以择优地选择其测量误差小的速度命令值。When at least one of the command value and the actual measurement value is multiplied or added to a weighting coefficient when comparing the absolute value of the speed, the speed command value or the actual measurement value may preferably be employed as the speed. Therefore, for example, a speed command value whose measurement error is small can be preferentially selected.

而且,使用一个值作为当速度命令值和实际测量值的至少一个被乘以摩擦补偿率时获得的角速度。由于上述情况,有可能防止反馈特性变得振动,同时可以改善目标跟随特性。Also, one value is used as the angular velocity obtained when at least one of the velocity command value and the actual measurement value is multiplied by the friction compensation rate. Due to the above, it is possible to prevent the feedback characteristic from becoming oscillating, while the target following characteristic can be improved.

而且,按照本发明的机器人控制方法,对应于由电机产生的转矩的损失的减速齿轮的动态摩擦转矩被计算为与动态转矩成比例地增加。由于上述情况,可以增强碰撞转矩的检测精度。Also, according to the robot control method of the present invention, the dynamic friction torque of the reduction gear corresponding to the loss of torque generated by the motor is calculated to increase in proportion to the dynamic torque. Due to the above, the detection accuracy of the collision torque can be enhanced.

当减速齿轮的动态转矩被计算为与动态转矩成比例地增大时,可以增强动态摩擦转矩的计算精度,并且可以实现最适当的前馈补偿。When the dynamic torque of the reduction gear is calculated to increase in proportion to the dynamic torque, the calculation accuracy of the dynamic friction torque can be enhanced, and the most appropriate feed-forward compensation can be realized.

如上所述,按照本发明的机器人控制方法,在检测到碰撞后,当电机旋转方向和碰撞方向彼此相反时,控制模式从位置控制模式向电流控制模式转换,并且电机产生其方向与电机旋转方向相反的转矩。由于上述原因,电机被减速,并且减弱了碰撞能量。其后,当电机旋转速度被降低到不大于设置值的值时,控制模式被转换到顺应性控制,并且在碰撞中产生的减速齿轮中的变形被解决。另一方面,在电机旋转方向和碰撞方向相同的情况下,控制模式被直接从位置控制转换到顺应性控制而不经过电流控制。当在跟随碰撞力的同时操作机械手时,可以减弱碰撞转矩。当碰撞停止操作如上所述而构成时,可以将由碰撞引起的机器人的损害抑制到最小。As described above, according to the robot control method of the present invention, after a collision is detected, when the motor rotation direction and the collision direction are opposite to each other, the control mode is switched from the position control mode to the current control mode, and the motor generates its direction and the motor rotation direction opposite torque. Due to the above reasons, the motor is slowed down and the collision energy is weakened. Thereafter, when the motor rotation speed is reduced to a value not greater than the set value, the control mode is switched to compliance control, and deformation in the reduction gear generated in the collision is resolved. On the other hand, in the case where the motor rotation direction and the collision direction are the same, the control mode is directly switched from position control to compliance control without going through current control. When operating the manipulator while following the collision force, the collision torque can be weakened. When the collision stop operation is constituted as described above, damage to the robot caused by collision can be suppressed to a minimum.

而且,在其中碰撞转矩检测值的绝对值小于设置值的轴的情况下,不论电机旋转方向和碰撞转矩方向如何,控制模式从位置控制向电流控制转换,并且电机产生其方向与电机旋转方向相反的转矩以便降低电机旋转速度。当电机旋转速度降低到不大于设置值的值时,控制模式转换到顺应模式。由于上述原因,在被提供了高强度的转矩的轴的情况下,按照碰撞方向和电机旋转方向来进行适当的停止操作。未被提供高强度的碰撞转矩的另一个轴被迅速地停止,以便可以降低惯性能量。因此,即使在其中不使用传感器和引起较大检测误差的碰撞转矩检测的情况下,有可能选择适当的停止方式。Also, in the case of an axis where the absolute value of the collision torque detection value is smaller than the set value, regardless of the motor rotation direction and the collision torque direction, the control mode is switched from position control to current control, and the motor produces its direction that is the same as the motor rotation direction. Torque in the opposite direction in order to slow down the motor rotation speed. When the rotation speed of the motor decreases to a value not greater than the set value, the control mode shifts to the compliance mode. For the above reasons, in the case of a shaft to which a high-strength torque is supplied, an appropriate stopping operation is performed in accordance with the collision direction and the motor rotation direction. The other axis, which is not supplied with a high impact torque, is quickly stopped so that the inertial energy can be reduced. Therefore, even in the case of collision torque detection in which no sensor is used and which causes a large detection error, it is possible to select an appropriate stopping method.

而且,当进行下述的电流控制:即在其中电机旋转方向和碰撞转矩方向彼此相反并且电机旋转速度和碰撞转矩检测值超过设置值的轴中由电机产生其方向与电机旋转方向相反的转矩时,在减小电机旋转速度后,保持施加在反向中的转矩直到反转电机旋转速度。在已经解决了在碰撞中引起的减速齿轮中的变形的一部分后,当反转速度超过设置值时,当控制模式转换到其中机械手跟随碰撞力方向的顺应性控制时,可以迅速地解决在减速齿轮中的变形。Also, when the current control is performed in which the motor rotation direction and the collision torque direction are opposite to each other and the motor rotation speed and the collision torque detection value exceed the set value, the motor generates a current whose direction is opposite to the motor rotation direction. With torque, after reducing the motor rotation speed, keep the torque applied in reverse until the motor rotation speed is reversed. After having resolved part of the deformation in the reduction gear caused in the collision, when the reverse speed exceeds the set value, when the control mode is switched to compliance control in which the manipulator follows the direction of the collision force, the reduction in the speed reduction can be quickly resolved Deformation in gears.

而且,在其中电机产生其方向与电机旋转方向相反的转矩的电流控制的情况中,提供一个命令以便可以产生最大的电机转矩。由于这种构成,可以最大地减弱碰撞能量。Also, in the case of current control in which the motor generates torque whose direction is opposite to the rotation direction of the motor, a command is provided so that the maximum motor torque can be generated. Due to this constitution, collision energy can be attenuated to the maximum.

Claims (13)

1.一种控制机械手的方法,包括:1. A method of controlling a manipulator, comprising: 检测用于驱动机械手的电机的旋转角度的步骤;The step of detecting the rotation angle of the motor for driving the manipulator; 从所述旋转角度计算实际测量的角速度值的步骤;a step of calculating an actual measured angular velocity value from said rotational angle; 从提供到电机的命令值来计算命令角速度的步骤;the step of calculating a commanded angular velocity from a command value supplied to the motor; 按照命令角速度和实际测量的角速度之一来计算摩擦转矩的步骤,其中,将命令角速度的绝对值和实际测量的角速度的绝对值相比较,并且使用具有较高绝对值的角速度来计算摩擦转矩;以及A step of calculating the friction torque according to one of the command angular velocity and the actually measured angular velocity, wherein the absolute value of the command angular velocity and the absolute value of the actually measured angular velocity are compared, and the friction torque is calculated using the angular velocity having a higher absolute value moments; and 当按照所述命令值来驱动电机时,向被提供到电机的命令值增加对应于所述摩擦转矩的值的步骤。A step of adding a value corresponding to the friction torque to a command value supplied to the motor when the motor is driven according to the command value. 2.按照权利要求1的用于控制机械手的方法,还包括步骤:所述命令角速度和实际测量的角速度的至少一个被乘以加权系数,或者将所述加权系数加到所述命令角速度和实际测量的角速度的至少一个。2. The method for controlling a manipulator according to claim 1, further comprising the step of: multiplying at least one of said command angular velocity and an actually measured angular velocity by a weighting coefficient, or adding said weighting coefficient to said command angular velocity and an actual measured angular velocity At least one of the measured angular velocities. 3.按照权利要求1的用于控制机械手的方法,还包括步骤:将所述命令角速度和实际测量的角速度的至少一个乘以摩擦补偿率。3. The method for controlling a manipulator according to claim 1, further comprising the step of multiplying at least one of said command angular velocity and an actually measured angular velocity by a friction compensation rate. 4.一种经由减速齿轮来控制由电机驱动的机械手的方法,包括:4. A method of controlling a motor-driven manipulator via a reduction gear, comprising: 计算由电机产生的产生转矩的步骤;the step of calculating the torque produced by the motor; 从通过逆动态计算的转矩计算摩擦转矩的步骤,所述摩擦转矩至少包括减速齿轮的输出所需要的减速齿轮的动态摩擦转矩;a step of calculating a friction torque comprising at least a dynamic friction torque of the reduction gear required for the output of the reduction gear from the torque calculated by inverse dynamics; 按照减速齿轮的输出所需要的摩擦转矩来增大减速齿轮的动态转矩的步骤;并且the step of increasing the dynamic torque of the reduction gear according to the frictional torque required for the output of the reduction gear; and 通过从所产生的转矩减去所增大的摩擦转矩来计算外力的步骤。The step of calculating the external force by subtracting the increased frictional torque from the generated torque. 5.一种经由减速齿轮来控制由电机驱动的机械手的方法,包括:5. A method of controlling a motor-driven manipulator via a reduction gear, comprising: 按照用于得到减速齿轮输出所需要的转矩的机器人的逆动态计算,并且也按照减速齿轮的动态摩擦转矩计算,通过反馈控制来进行电机输出转矩补偿的步骤,According to the inverse dynamic calculation of the robot for obtaining the torque required for the output of the reduction gear, and also according to the calculation of the dynamic friction torque of the reduction gear, the step of compensating the motor output torque through feedback control, 其中,在进行反馈控制的情况下,减速齿轮的动态摩擦转矩与减速齿轮输出所需要的转矩成比例地增大。However, when feedback control is performed, the dynamic friction torque of the reduction gear increases in proportion to the torque required for the reduction gear output. 6.一种在检测到由电机驱动的机器人的碰撞后进行的停止操作中控制机器人的方法,在其中电机旋转方向与碰撞转矩方向彼此相反的轴中,当控制模式从位置控制向电流控制转换时,电机旋转速度被降低,并且当电机旋转速度被降低到不大于设置值的值时,控制模式被转换到机器人跟随碰撞力方向的顺应性控制,其中在位置控制中,产生用于使得实际位置跟随位置命令的电流命令,在电流控制中,控制一个通过电机产生其方向与电机旋转方向相反的转矩的电流;并且6. A method of controlling a robot in a stop operation performed after detection of a collision of a robot driven by a motor, in an axis in which the direction of rotation of the motor and the direction of the collision torque are opposite to each other, when the control mode changes from position control to current control When switching, the motor rotation speed is reduced, and when the motor rotation speed is reduced to a value not greater than the set value, the control mode is switched to compliance control in which the robot follows the direction of the collision force, wherein in the position control, a method for making the actual position follows the current command of the position command, in current control, controls a current through the motor that produces a torque whose direction is opposite to the direction of rotation of the motor; and 在其中电机旋转方向与碰撞转矩方向相同的轴中,控制模式从位置控制向顺应性控制转换。In an axis in which the motor rotation direction is the same as the collision torque direction, the control mode is switched from position control to compliance control. 7.按照权利要求6的控制机器人的方法,其中,在碰撞检测转矩小于设置值的轴中,不论电机旋转方向和碰撞转矩方向如何,控制模式从位置控制向电流控制转换,并且当电机产生其方向与电机旋转方向相反的转矩时,电机旋转速度被降低,并且当电机旋转速度被降低到不大于设置值的值时,控制模式转换到顺应性控制。7. The method of controlling a robot according to claim 6, wherein, in an axis whose collision detection torque is smaller than a set value, regardless of the direction of rotation of the motor and the direction of the collision torque, the control mode is switched from position control to current control, and when the motor When a torque whose direction is opposite to the motor rotation direction is generated, the motor rotation speed is reduced, and when the motor rotation speed is reduced to a value not greater than the set value, the control mode shifts to compliance control. 8.按照权利要求6的控制机器人的方法,其中,当进行下述的电流控制:即在其中电机旋转方向和碰撞转矩方向彼此相反并且电机旋转速度和碰撞转矩检测值超过设置值的轴中由电机产生其方向与电机旋转方向相反的转矩时,在减小电机旋转速度后,保持施加反向的转矩直到反转速度方向,并且当电极旋转速度增大到不小于设置值的值时,控制模式转换到其中机器人跟随碰撞力方向的顺应性控制。8. The method of controlling a robot according to claim 6, wherein when the following current control is performed: an axis in which the motor rotation direction and the collision torque direction are opposite to each other and the motor rotation speed and the collision torque detection value exceed the set value When the motor generates a torque whose direction is opposite to the motor rotation direction, after reducing the motor rotation speed, keep applying the reverse torque until the speed direction is reversed, and when the electrode rotation speed increases to not less than the set value value, the control mode transitions to compliance control where the robot follows the direction of the collision force. 9.按照权利要求6的控制机器人的方法,其中,当在碰撞检测后进行由电机产生其方向与电机旋转方向相反的转矩的电流控制时,控制用于产生电机最大转矩的电流。9. The method of controlling a robot according to claim 6, wherein, when the current control for generating torque by the motor in a direction opposite to the rotation direction of the motor is performed after the collision detection, the current for generating the maximum torque of the motor is controlled. 10.一种控制机器人的设备,包括:10. A device for controlling a robot, comprising: 碰撞转矩检测部件,用于检测由被提供到机械手的碰撞力向驱动机械手的电机提供的转矩的强度和方向;a collision torque detection part for detecting the strength and direction of the torque provided to the motor driving the robot by the collision force supplied to the robot; 碰撞判断部件,用于通过将碰撞转矩检测值与已经设置的碰撞转矩的阈值相比较而判断碰撞;a collision judging component for judging a collision by comparing the detected value of the collision torque with the threshold value of the collision torque that has been set; 电机旋转检测部件,用于检测电机的旋转速度和旋转方向;The motor rotation detection component is used to detect the rotation speed and rotation direction of the motor; 碰撞方向识别部件,用于比较碰撞转矩检测方向与电机旋转方向;以及a collision direction recognition component for comparing the detection direction of the collision torque with the rotation direction of the motor; and 电机减速判断部件,用于通过将电极旋转速度与已经设置的阈值相比较而确认电机的减速,其中,在其中电机旋转方向和碰撞转矩方向彼此相反的轴中,当控制模式从位置控制向电流控制转换时,电机旋转速度被降低,并且当电机旋转速度被降低到不大于设置值的值时,控制模式被转换到机器人跟随碰撞力方向的顺应性控制,其中在位置控制中,产生用于使得实际位置跟随位置命令的电流命令,在电流控制中,控制一个通过电机产生其方向与电机旋转方向相反的转矩的电流,;a motor deceleration judging section for confirming deceleration of the motor by comparing the electrode rotation speed with a threshold value that has been set, wherein, in an axis in which the motor rotation direction and the collision torque direction are opposite to each other, when the control mode changes from position control to When the current control is switched, the motor rotation speed is reduced, and when the motor rotation speed is reduced to a value not greater than the set value, the control mode is switched to the compliance control where the robot follows the direction of the collision force, where in the position control, the generated To make the actual position follow the current command of the position command, in current control, control a current through the motor to produce a torque whose direction is opposite to the direction of rotation of the motor; 控制机器人的设备还包括控制模式转换部件,用于在其中电机旋转方向与碰撞转矩方向相同的轴中从位置控制部件向顺应性控制部件转换。The apparatus for controlling the robot further includes control mode switching means for switching from the position control means to the compliance control means in an axis in which the motor rotation direction is the same as the collision torque direction. 11.按照权利要求10的控制机器人的设备,还包括:11. The apparatus for controlling a robot according to claim 10, further comprising: 碰撞转矩阈值判断部件,用于将碰撞转矩检测值与碰撞方向识别转矩阈值相比较;以及a collision torque threshold judging component for comparing the collision torque detection value with the collision direction identification torque threshold; and 控制模式转换部件,用于在其中碰撞转矩检测值小于碰撞方向识别转矩阈值的轴中将控制模式从位置控制部件向电流控制部件转换,而不论电机旋转方向和碰撞转矩方向如何,并且用于当通过由电机产生其方向与电机旋转方向相反的转矩而减小电机旋转速度时将控制模式转换到顺应性控制部件,以便降低电机旋转速度,并且将电机旋转速度降低到不大于设置值的值。a control mode switching section for switching the control mode from the position control section to the current control section in the shaft in which the collision torque detection value is smaller than the collision direction recognition torque threshold regardless of the motor rotation direction and the collision torque direction, and For switching the control mode to the compliance control part when the motor rotation speed is reduced by generating a torque whose direction is opposite to the motor rotation direction by the motor, so as to reduce the motor rotation speed, and to reduce the motor rotation speed to not more than the set The value of the value. 12.按照权利要求10的控制机器人的设备,其中,当进行下述的电流控制:即在其中电机旋转方向和碰撞转矩方向彼此相反并且电机旋转速度和碰撞转矩检测值超过设置值的轴中由电机产生其方向与电机旋转方向相反的转矩时,在减小电机旋转速度后,保持施加反向的转矩直到反转速度方向,并且当所述电极旋转速度增大到不小于设置值的值时,控制模式转换到机器人跟随碰撞力方向的顺应性控制。12. The apparatus for controlling a robot according to claim 10, wherein when the following current control is performed: the axis in which the motor rotation direction and the collision torque direction are opposite to each other and the motor rotation speed and the collision torque detection value exceed the set value When the motor generates a torque whose direction is opposite to the rotation direction of the motor, after reducing the rotation speed of the motor, keep applying the reverse torque until the direction of the speed is reversed, and when the rotation speed of the electrode increases to not less than the set value, the control mode switches to compliance control where the robot follows the direction of the collision force. 13.按照权利要求10的控制机器人的设备,还包括:电流控制部件,用于当在已经检测到碰撞后由控制模式转换部件选择电流控制部件时,命令电流通过电机来产生其方向与电机旋转方向相反的最大转矩。13. The apparatus for controlling a robot according to claim 10, further comprising: a current control part for commanding a current to pass through the motor to generate its direction and motor rotation when the current control part is selected by the control mode switching part after the collision has been detected Maximum torque in opposite direction.
CNB200480009285XA 2003-07-29 2004-07-02 Method for controlling manipulator Expired - Fee Related CN100413657C (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP281619/2003 2003-07-29
JP2003281619 2003-07-29
JP091461/2004 2004-03-26
JP098949/2004 2004-03-30

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN200710149767A Division CN100592967C (en) 2003-07-29 2004-07-02 Method and device for controlling a robot
CN200710149766A Division CN100584547C (en) 2003-07-29 2004-07-02 The method of controlling the manipulator

Publications (2)

Publication Number Publication Date
CN1771114A true CN1771114A (en) 2006-05-10
CN100413657C CN100413657C (en) 2008-08-27

Family

ID=36751898

Family Applications (3)

Application Number Title Priority Date Filing Date
CN200710149766A Expired - Fee Related CN100584547C (en) 2003-07-29 2004-07-02 The method of controlling the manipulator
CN200710149767A Expired - Fee Related CN100592967C (en) 2003-07-29 2004-07-02 Method and device for controlling a robot
CNB200480009285XA Expired - Fee Related CN100413657C (en) 2003-07-29 2004-07-02 Method for controlling manipulator

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN200710149766A Expired - Fee Related CN100584547C (en) 2003-07-29 2004-07-02 The method of controlling the manipulator
CN200710149767A Expired - Fee Related CN100592967C (en) 2003-07-29 2004-07-02 Method and device for controlling a robot

Country Status (1)

Country Link
CN (3) CN100584547C (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101870110A (en) * 2010-07-01 2010-10-27 三一重工股份有限公司 Control method and control device of mechanical articulated arm
CN102387900A (en) * 2009-03-27 2012-03-21 Abb股份公司 Really safe small robot and method for controlling it
CN101602208B (en) * 2008-06-11 2012-05-30 松下电器产业株式会社 Manipulator, manipulator collision detecting method and manipulator control method
CN102554939A (en) * 2010-12-30 2012-07-11 沈阳新松机器人自动化股份有限公司 Method and device for collision protection of industrial robot
CN103085068A (en) * 2011-09-21 2013-05-08 精工爱普生株式会社 Robot and robot control method
CN103240752A (en) * 2012-02-14 2013-08-14 库卡罗伯特有限公司 Method for determining a torque and industrial robot
CN103781602A (en) * 2011-09-15 2014-05-07 株式会社安川电机 Robotic system and robot controller
CN103973202A (en) * 2013-02-06 2014-08-06 株式会社安川电机 Motor control device and motor control method
CN104097200A (en) * 2013-04-10 2014-10-15 精工爱普生株式会社 Robot, robot control device, and robot system
CN104137012A (en) * 2011-10-13 2014-11-05 Gimatt有限责任公司 Method to prevent interference and detect collision between mechanical members
CN104290602A (en) * 2013-07-15 2015-01-21 株式会社捷太格特 Onboard motor controller
CN105313118A (en) * 2014-07-09 2016-02-10 发那科株式会社 Robot control device for preventing misjudgment by collision judging part
CN105388792A (en) * 2015-12-04 2016-03-09 上海交通大学 Clamping performance regulation control system and method for robot handgrip
CN108227769A (en) * 2016-12-14 2018-06-29 丰田自动车株式会社 Omnidirection cart and its control method
CN108367437A (en) * 2015-12-08 2018-08-03 库卡德国有限公司 Identify the method that robots arm is bumped against with object and the robot with robots arm
CN108451643A (en) * 2013-03-15 2018-08-28 史赛克公司 Surgical Manipulator Capable of Controlling a Surgical Instrument in Multiple Modes
CN108508784A (en) * 2017-02-24 2018-09-07 发那科株式会社 Servo motor control unit, servomotor control method and recording medium
CN109070349A (en) * 2016-04-25 2018-12-21 富兰卡爱米卡股份有限公司 The robot of control with prevention power failure
CN110494260A (en) * 2017-09-12 2019-11-22 韩华精密机械株式会社 Apparatus and method for controlling a collaborative robot
CN110977972A (en) * 2019-12-03 2020-04-10 珠海格力电器股份有限公司 Multi-joint robot collision detection method, computer-readable storage medium and robot
CN112440276A (en) * 2019-09-03 2021-03-05 发那科株式会社 Control device for robot with arm
US11179210B2 (en) 2012-08-03 2021-11-23 Stryker Corporation Surgical manipulator and method for controlling pose of an instrument based on virtual rigid body modelling
US11471232B2 (en) 2012-08-03 2022-10-18 Stryker Corporation Surgical system and method utilizing impulse modeling for controlling an instrument

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102837315A (en) * 2011-06-26 2012-12-26 鲁东大学 Method for controlling rotating speed of servo motor
CN102426391B (en) * 2011-09-05 2014-06-11 华南理工大学 Method for determining whether there is collision during robot operation
JP5409844B2 (en) * 2012-05-30 2014-02-05 株式会社神戸製鋼所 Trajectory control apparatus and control method for articulated robot
US9423782B2 (en) * 2013-04-11 2016-08-23 Panasonic Intellectual Property Management Co., Ltd. Motor drive device
US10029366B2 (en) 2014-11-21 2018-07-24 Canon Kabushiki Kaisha Control device for motor drive device, control device for multi-axial motor, and control method for motor drive device
JP6094665B1 (en) * 2015-12-28 2017-03-15 ダイキン工業株式会社 Control device for power converter
JP6711536B2 (en) * 2016-10-28 2020-06-17 アズビル株式会社 External force detection method
EP3556521B1 (en) * 2018-04-18 2023-05-24 B&R Industrial Automation GmbH Brake path monitoring of a kinematic
EP3792011A4 (en) * 2018-05-10 2021-07-07 Panasonic Intellectual Property Management Co., Ltd. ROBOT CONTROL PROCEDURE
CN112141675B (en) * 2019-06-28 2022-07-19 安川电机(中国)有限公司 Workpiece conveying device, work piece conveying control method, and controller
CN114126811B (en) 2019-07-18 2024-08-27 株式会社安川电机 Robot system, robot control method, and servo system
CN112847327B (en) * 2019-11-12 2022-02-11 中国科学院沈阳自动化研究所 Compliant control method for joint of cooperative robot
CN115890662B (en) * 2022-11-15 2025-02-11 苏州灵猴机器人有限公司 A robot collision control method, control device, computer equipment and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683403A (en) * 1992-07-17 1994-03-25 Fanuc Ltd Adaptive pi control system
JP2871993B2 (en) * 1993-03-31 1999-03-17 日本電気株式会社 Servo motor position control device
JP2619227B2 (en) * 1994-11-30 1997-06-11 川崎重工業株式会社 Robot control method and device
JP3752758B2 (en) * 1996-12-19 2006-03-08 株式会社安川電機 Robot arm control device
JP2000010635A (en) * 1998-06-17 2000-01-14 Komatsu Ltd Friction compensation method and device
JP3212571B2 (en) * 1999-03-26 2001-09-25 ファナック株式会社 Industrial robot
JP4756618B2 (en) * 2001-03-21 2011-08-24 株式会社ダイヘン Collision detection / stop control method for articulated robots

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101602208B (en) * 2008-06-11 2012-05-30 松下电器产业株式会社 Manipulator, manipulator collision detecting method and manipulator control method
CN102387900A (en) * 2009-03-27 2012-03-21 Abb股份公司 Really safe small robot and method for controlling it
CN102387900B (en) * 2009-03-27 2015-06-03 Abb股份公司 Really safe small robot and method for controlling it
CN101870110B (en) * 2010-07-01 2012-01-04 三一重工股份有限公司 Control method and control device of mechanical articulated arm
CN101870110A (en) * 2010-07-01 2010-10-27 三一重工股份有限公司 Control method and control device of mechanical articulated arm
CN102554939A (en) * 2010-12-30 2012-07-11 沈阳新松机器人自动化股份有限公司 Method and device for collision protection of industrial robot
CN102554939B (en) * 2010-12-30 2014-12-10 沈阳新松机器人自动化股份有限公司 Method and device for collision protection of industrial robot
CN103781602A (en) * 2011-09-15 2014-05-07 株式会社安川电机 Robotic system and robot controller
CN103085068A (en) * 2011-09-21 2013-05-08 精工爱普生株式会社 Robot and robot control method
CN104137012A (en) * 2011-10-13 2014-11-05 Gimatt有限责任公司 Method to prevent interference and detect collision between mechanical members
CN103240752A (en) * 2012-02-14 2013-08-14 库卡罗伯特有限公司 Method for determining a torque and industrial robot
CN103240752B (en) * 2012-02-14 2016-12-21 库卡罗伯特有限公司 For determining method and the industrial robot of torque
US9329092B2 (en) 2012-02-14 2016-05-03 Kuka Roboter Gmbh Method for determining a torque and an industrial robot
US12364561B2 (en) 2012-08-03 2025-07-22 Stryker Corporation Hand-held pendant for controlling a surgical robotic manipulator in a semi-autonomous mode
US11639001B2 (en) 2012-08-03 2023-05-02 Stryker Corporation Robotic system and method for reorienting a surgical instrument
US12484984B2 (en) 2012-08-03 2025-12-02 Stryker Corporation Surgical systems and methods for dynamic virtual boundary adjustment
US11179210B2 (en) 2012-08-03 2021-11-23 Stryker Corporation Surgical manipulator and method for controlling pose of an instrument based on virtual rigid body modelling
US11471232B2 (en) 2012-08-03 2022-10-18 Stryker Corporation Surgical system and method utilizing impulse modeling for controlling an instrument
US11672620B2 (en) 2012-08-03 2023-06-13 Stryker Corporation Robotic system and method for removing a volume of material from a patient
US12004836B2 (en) 2012-08-03 2024-06-11 Stryker Corporation Surgical manipulator and method of operating the same using virtual rigid body modeling preliminary
US12070288B2 (en) 2012-08-03 2024-08-27 Stryker Corporation Robotic system and method for removing a volume of material from a patient
US11045958B2 (en) 2012-08-03 2021-06-29 Stryker Corporation Surgical robotic system and method for commanding instrument position based on iterative boundary evaluation
CN103973202A (en) * 2013-02-06 2014-08-06 株式会社安川电机 Motor control device and motor control method
CN108451643A (en) * 2013-03-15 2018-08-28 史赛克公司 Surgical Manipulator Capable of Controlling a Surgical Instrument in Multiple Modes
CN108451643B (en) * 2013-03-15 2021-02-26 史赛克公司 Surgical manipulator capable of controlling a surgical instrument in multiple modes
CN104097200B (en) * 2013-04-10 2017-10-13 精工爱普生株式会社 Manipulator, manipulator controller and arm-and-hand system
CN104097200A (en) * 2013-04-10 2014-10-15 精工爱普生株式会社 Robot, robot control device, and robot system
CN104290602A (en) * 2013-07-15 2015-01-21 株式会社捷太格特 Onboard motor controller
US9701014B2 (en) 2014-07-09 2017-07-11 Fanuc Corporation Robot control device for preventing misjudgment by collision judging part
CN105313118A (en) * 2014-07-09 2016-02-10 发那科株式会社 Robot control device for preventing misjudgment by collision judging part
CN105388792B (en) * 2015-12-04 2017-11-10 上海交通大学 Gripping performance regulator control system and its method for robot gripper
CN105388792A (en) * 2015-12-04 2016-03-09 上海交通大学 Clamping performance regulation control system and method for robot handgrip
CN108367437A (en) * 2015-12-08 2018-08-03 库卡德国有限公司 Identify the method that robots arm is bumped against with object and the robot with robots arm
CN109070349A (en) * 2016-04-25 2018-12-21 富兰卡爱米卡股份有限公司 The robot of control with prevention power failure
CN108227769A (en) * 2016-12-14 2018-06-29 丰田自动车株式会社 Omnidirection cart and its control method
CN108508784B (en) * 2017-02-24 2019-09-24 发那科株式会社 Servo motor control unit, servomotor control method and recording medium
CN108508784A (en) * 2017-02-24 2018-09-07 发那科株式会社 Servo motor control unit, servomotor control method and recording medium
CN110494260A (en) * 2017-09-12 2019-11-22 韩华精密机械株式会社 Apparatus and method for controlling a collaborative robot
CN110494260B (en) * 2017-09-12 2023-05-02 韩华株式会社 Apparatus and method for controlling cooperative robot
CN112440276A (en) * 2019-09-03 2021-03-05 发那科株式会社 Control device for robot with arm
CN110977972A (en) * 2019-12-03 2020-04-10 珠海格力电器股份有限公司 Multi-joint robot collision detection method, computer-readable storage medium and robot

Also Published As

Publication number Publication date
CN100592967C (en) 2010-03-03
CN100413657C (en) 2008-08-27
CN100584547C (en) 2010-01-27
CN101134314A (en) 2008-03-05
CN101134315A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN1771114A (en) Method and device for controlling a manipulator
CN1131766C (en) Robot control equipment
CN1237697C (en) Motor controller
CN1189374C (en) Active magnet guide system for elevator
CN1126846C (en) Aera limiting digging control device for a building machine
CN1221874C (en) Method for controlling electric motor and apparatus for controlling the same
CN1065993C (en) Power-supply switching-over system
CN1242308C (en) Positioning servocontroller
CN1069372C (en) Interference preventer of building machinery
CN1240016C (en) Robotic manipulators based on pre-defined time-optimum trajectory shape
CN1448815A (en) Position controller for motor
CN1655076A (en) Controller for work implement of construction machinery, method for controlling construction machinery, and program allowing computer to execute this method
CN1934513A (en) Control system of floating mobile body
CN1064427C (en) Region limited excavation control apparatus for construction machines
CN1905982A (en) Welding system and consumable electrode welding method
CN1128293C (en) vibrating compressor
CN1333487A (en) Method and device for implementing optimized self anti-interference feedback control
CN1063885C (en) Brushless motor protection device
CN1217479C (en) Synchronous Motor Controller
CN1516918A (en) Control device for synchronous reactance motor
CN1845021A (en) Command generating device
CN1479965A (en) Synchronous motor control method and device thereof
CN1297063C (en) motor control unit
CN1295026A (en) Elevator excessive speed protective equipment
CN1139207A (en) Elliptical vibratory apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080827

Termination date: 20210702

CF01 Termination of patent right due to non-payment of annual fee