[go: up one dir, main page]

CN106891326B - A robot teaching method - Google Patents

A robot teaching method Download PDF

Info

Publication number
CN106891326B
CN106891326B CN201710172975.6A CN201710172975A CN106891326B CN 106891326 B CN106891326 B CN 106891326B CN 201710172975 A CN201710172975 A CN 201710172975A CN 106891326 B CN106891326 B CN 106891326B
Authority
CN
China
Prior art keywords
signal
robot
data
motion
teaching
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.)
Active
Application number
CN201710172975.6A
Other languages
Chinese (zh)
Other versions
CN106891326A (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.)
Nanjing University of Aeronautics and Astronautics
Original Assignee
Nanjing University of Aeronautics and Astronautics
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 Nanjing University of Aeronautics and Astronautics filed Critical Nanjing University of Aeronautics and Astronautics
Priority to CN201710172975.6A priority Critical patent/CN106891326B/en
Publication of CN106891326A publication Critical patent/CN106891326A/en
Application granted granted Critical
Publication of CN106891326B publication Critical patent/CN106891326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/0081Programme-controlled manipulators with leader teach-in means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/1607Calculation of inertia, jacobian matrixes and inverses
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • B25J9/1633Programme controls characterised by the control loop compliant, force, torque control, e.g. combined with position control

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a kind of robot teaching methods, are suitable for robot (correlation) technical field.This method is a kind of teaching method based on gesture identification, gyroscope/accelerometer module is fixed on robotic user the back of the hand first, as the gesture of user changes, three-dimensional linear acceleration and three-dimensional angular velocity are obtained using gyroscope/accelerometer module, angle signal, signal is handled by single-chip microcontroller, micro or Large Amplitude Motion signal and joint space or the motor message of operating space are selected by control switch, signal is passed into driving motor and mechanical arm is driven to complete corresponding actions, the six-dimensional space movement of industrial robot end effector can also accordingly be controlled.The present invention may be implemented mechanical arm according to the teaching movement of operation user and make corresponding actions, human-computer interaction function can be better achieved, keep teaching operation safer, intelligent and user friendly by above-mentioned teaching method.

Description

一种机器人示教方法A robot teaching method

技术领域technical field

本发明属于机器人技术领域,尤其涉及一种机器人示教方法。The invention belongs to the technical field of robots, and in particular relates to a teaching method for robots.

背景技术Background technique

在现代工业中,随着智能化和自动化程度的不断提高,工业机器人越来越广泛地应用于各行各业,其中示教系统是机器人控制系统重要的组成部分。传统机器人操作通常是通过鼠标、键盘或者示教盒进行,示教过程存在安全性差,智能程度低,操作复杂,人机交互不友好等一系列问题。In modern industry, with the continuous improvement of intelligence and automation, industrial robots are more and more widely used in all walks of life, among which the teaching system is an important part of the robot control system. Traditional robot operation is usually carried out by mouse, keyboard or teaching box. The teaching process has a series of problems such as poor safety, low intelligence, complicated operation and unfriendly human-computer interaction.

机器人示教在目前机器人技术领域已有相对较长的研究和发展历史,但手势示教研究在国内起步晚,技术尚不成熟,本发明同之前已有的专利有着较明显的区别。申请号为201610459874.2的专利中用户对于手势信号的获取是基于Leap Motion传感器获取手势的位置数据以及手势的姿态数据,手势负责粗调,语音负责微调,此示教方法需将手势和语音结合在一起,缺一不可。申请号201610159248.1的专利根据用户手势运动特征点与运动数据库中已保留姿态的相吻合程度来选择手势变化姿态,并做出相应的动作,此方法需要预设样本模板和数据库。申请号201510138234.7的专利中所述示教过程是示教器通过检测设置在机械手手指上的传感器来控制机械手沿不同方向运动,示教过程较繁琐、操作较复杂,智能化程度较低。申请号201610363903.5的专利中所述的采集的手势信号需要与预设信号库的多个预设信号相匹配才能生成操作程序。此方法事先得预设一些手势信号存储在预设信号库里,示教前准备工作较复杂。申请号201310183427.5的专利中所述示教方法需使用者操作示教工具来指定示教位置,此法还需使用一定的示教工具,操作较不方便,并且此方法仅限于位置示教而不是动作示教。Robot teaching has a relatively long history of research and development in the field of robotics at present, but gesture teaching research started late in China, and the technology is not yet mature. The present invention is significantly different from the previous patents. In the patent with the application number of 201610459874.2, the user obtains the gesture signal based on the position data of the gesture and the posture data of the gesture obtained by the Leap Motion sensor. The gesture is responsible for coarse adjustment, and the voice is responsible for fine adjustment. This teaching method needs to combine gesture and voice together. ,Indispensable. The patent of application number 201610159248.1 selects the gesture change posture according to the degree of agreement between the user's gesture motion feature points and the reserved posture in the motion database, and makes corresponding actions. This method requires a preset sample template and database. The teaching process described in the patent application No. 201510138234.7 is that the teach pendant controls the movement of the manipulator in different directions by detecting sensors arranged on the fingers of the manipulator. The teaching process is cumbersome, the operation is more complicated, and the degree of intelligence is low. The collected gesture signal described in the patent application No. 201610363903.5 needs to be matched with a plurality of preset signals in the preset signal library to generate the operation program. In this method, some gesture signals must be preset and stored in the preset signal library, and the preparation work before teaching is more complicated. The teaching method described in the patent application No. 201310183427.5 requires the user to operate the teaching tool to specify the teaching position. This method also needs to use a certain teaching tool, which is inconvenient to operate, and this method is limited to position teaching instead of Action teaching.

综上所述,需要一种新的技术方案以解决上述问题。To sum up, a new technical solution is required to solve the above problems.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种简单可靠,操作方便灵活且更加方便人机交互的示教系统,旨在解决传统示教过程中存在的安全性差,操作复杂的问题,有助于提高人机交互的体验。The purpose of the present invention is to provide a teaching system that is simple, reliable, convenient and flexible in operation and more convenient for human-computer interaction, aims to solve the problems of poor safety and complicated operation in the traditional teaching process, and helps to improve human-computer interaction experience.

为达到上述目的,本发明可采用如下技术方案:To achieve the above object, the present invention can adopt the following technical solutions:

一种机器人示教方法,该示教方法使用的系统包括传感模块、单片机、控制开关、机械臂,传感模块包括陀螺仪及三轴加速度计;包括以下步骤:A robot teaching method, the system used in the teaching method includes a sensing module, a single-chip microcomputer, a control switch, and a mechanical arm, and the sensing module includes a gyroscope and a three-axis accelerometer; the following steps are included:

(1)、将陀螺仪及三轴加速度计模块固定在给出操作指令的指示物体上,该指示物体是可运动的;(1), fix the gyroscope and the three-axis accelerometer module on the indicating object that gives the operation instruction, and the indicating object is movable;

(2)、陀螺仪输出指示物体的角速度、角度运动变化数据,三轴加速度计输出指示物体的三维加速度数据;(2) The gyroscope outputs the angular velocity and angular motion change data indicating the object, and the three-axis accelerometer outputs the three-dimensional acceleration data indicating the object;

(3)、将步骤(1)中采集的角速度、角度运动变化、三维加速度数据输出到单片机,经过卡尔曼滤波算法处理去除示教过程中的手势抖动和传感器杂波等干扰数据;(3), output the angular velocity, angular motion change, and three-dimensional acceleration data collected in step (1) to the single-chip microcomputer, and process the interference data such as gesture jitter and sensor clutter in the teaching process through Kalman filtering algorithm processing;

(4)、单片机以角速度、角度运动变化、三维加速度数据为基础,将加速度数据进行两次积分运算得到机械臂应当执行的移动距离数据,将角度运动数据直接输出为机械臂应当执行的转动角度数据;(4) Based on the angular velocity, angular motion change, and three-dimensional acceleration data, the single-chip microcomputer integrates the acceleration data twice to obtain the moving distance data that the robotic arm should perform, and directly outputs the angular motion data as the rotation angle that the robotic arm should perform. data;

(5)、对步骤(4)得到的机械臂应当执行的移动距离及转动角度数据进行处理,舍弃超过机械臂运动范围的移动距离和/或转动角度数据;若得到符合机械臂运动范围的移动距离和/或转动角度数据,则进入下一步骤;(5), process the movement distance and rotation angle data that should be performed by the robot arm obtained in step (4), and discard the movement distance and/or rotation angle data that exceed the movement range of the robot arm; distance and/or rotation angle data, then go to the next step;

(6)、对步骤(5)中得到的符合机械臂运动范围的移动距离和/或转动角度数据,由单片机通过I/O口将信号传递给机械臂电机,驱动机械臂完成指定动作。(6) For the movement distance and/or rotation angle data obtained in step (5) that conform to the motion range of the manipulator, the single-chip microcomputer transmits the signal to the manipulator motor through the I/O port, and drives the manipulator to complete the specified action.

有益效果:Beneficial effects:

1、通过这种机器人的示教方法,可以使用户自由选择在机器人的关节空间或操作空间进行手势示教,更加人性化,更容易贴合用户的自然示教方式。1. Through this teaching method of the robot, the user can freely choose to teach gestures in the joint space or operation space of the robot, which is more user-friendly and easier to fit the user's natural teaching method.

2、用户可以通过选择微量运动或大幅度运动两种模式来对机器人进行示教,更加方便用户的操作,避免用户操作不当而导致的示教误差,尤其极大地提高了微量运动的示教过程的示教精度。通过选择微量运动方式,可以极大地提高机械臂在运动变化量较小的条件下工作的安全性,而且可以进一步地增加机械臂运动的精度,通过手势发生更大幅度的操作变化,也可以改善设备的人机友好性;大幅度运动方式的选择则可以在机械臂运动量较大的条件下减少手势实际地变化量,使手势操作更加灵活,简单。2. The user can teach the robot by selecting two modes: micro-motion or large-scale motion, which is more convenient for users to operate, avoids teaching errors caused by improper user operation, and greatly improves the teaching process of micro-motion teaching accuracy. By selecting the micro-movement method, the safety of the robot arm working under the condition of small movement variation can be greatly improved, and the accuracy of the movement of the robot arm can be further increased. Greater operational changes through gestures can also improve the The human-machine friendliness of the device; the choice of large-scale movement mode can reduce the actual change of gestures under the condition that the amount of movement of the mechanical arm is large, making the gesture operation more flexible and simple.

3、单片机中事先保存的机械臂运动边界,可以避免用户的操作不当导致机械臂运动超出可行范围。一方面避免了机械臂的破损,另一方面也为用户的安全提供了一定的保证。3. The movement boundary of the robot arm saved in advance in the microcontroller can prevent the movement of the robot arm from exceeding the feasible range due to improper operation by the user. On the one hand, it avoids the damage of the mechanical arm, and on the other hand, it also provides a certain guarantee for the safety of users.

4、这种机器人示教方法是实时进行的,不需要事先保存手势变化资料库,这样既使机械臂的变化更加多样,满足实际生产要求,也易于维护,可以及时纠正不当的示教姿态,使机械臂的变化更加逼近预期效果。4. This robot teaching method is carried out in real time, and there is no need to save the gesture change database in advance, so that the changes of the robot arm are more diverse and meet the actual production requirements, and it is also easy to maintain, and the improper teaching posture can be corrected in time. Make the changes of the robotic arm closer to the expected effect.

进一步的,所述指示物体为操作者的手。Further, the pointing object is the operator's hand.

进一步的,所述步骤(2)中的单片机具有进行卡尔曼滤波的能力,即可以利用线性系统状态方程。Further, the single-chip microcomputer in the step (2) has the ability to perform Kalman filtering, that is, the linear system state equation can be used.

进一步的,所述步骤(2)中的单片机在通过卡尔曼滤波算法处理信号时,需要建立系统的状态空间模型:Further, when the single-chip microcomputer in the step (2) processes the signal through the Kalman filter algorithm, it needs to establish a state space model of the system:

其中Φ是状态转移矩阵,Γ是噪声转移矩阵,w(k)是动态噪声,C是测量矩阵,v(k)是测量噪声,Xk+1、y(k)是采用时刻的状态及测量值;Where Φ is the state transition matrix, Γ is the noise transition matrix, w(k) is the dynamic noise, C is the measurement matrix, v(k) is the measurement noise, X k+1 , y(k) are the state and measurement at the time of use value;

对应上述方程的卡尔曼滤波过程如下:The Kalman filtering process corresponding to the above equation is as follows:

Pk|k-1=ΦPk-1ΦT+ΓQΓT P k|k-1 =ΦP k-1 Φ T +ΓQΓ T

Kk=Pk/k-1CT(CPk/k-1CT+R]-1 K k =P k/k-1 C T (CP k/k-1 C T +R] -1

Pk=(1-KkC)Pk|k-1 P k =(1-K k C)P k|k-1

其中,为利用上一状态预测的结果,是上一状态最优结果,Pk|k-1对应的误差方差,Pk-1对应的误差方差,Q是系统动态白噪声的方程矩阵,R是系统观测噪声的方程矩阵。in, In order to use the results predicted by the previous state, is the optimal result of the previous state, and P k|k-1 is The corresponding error variance, P k-1 is The corresponding error variance, Q is the equation matrix of the system dynamic white noise, and R is the equation matrix of the system observation noise.

进一步的,步骤(4)中,所述加速度两次积分求位移的过程具体如下:Further, in step (4), the process of calculating the displacement by integrating the acceleration twice is as follows:

设加速度传感器测得的加速度为:a(k)Let the acceleration measured by the accelerometer be: a(k)

对加速度积分一次可得速率: Integrating the acceleration once gives the velocity:

对速率信号积分一次可得位移: Integrating the velocity signal once gives the displacement:

其中,a(k)为加速度信号,v(k)为速率信号,s(k)为位移信号,ak为k时刻的加速度采样值,vk为k时刻的速率值,a0=0,v0=0,Δt为k时刻、k-1时刻两次采样之间的时间差。Among them, a(k) is the acceleration signal, v(k) is the velocity signal, s(k) is the displacement signal, a k is the acceleration sampling value at time k, v k is the velocity value at time k, a 0 =0, v 0 =0, Δt is the time difference between two samples at time k and time k-1.

进一步的,所述的对运动信号进行选择的控制开关应包括两个控制按钮,每种按钮包含两种工作状态,相应地决定了输出信号类型为大幅度运动信号或微量运动信号,关节空间运动或操作空间运动。Further, the control switch for selecting the motion signal should include two control buttons, each button contains two working states, correspondingly determines the output signal type is large motion signal or micro motion signal, joint space motion. Or manipulate spatial motion.

附图说明Description of drawings

图1为机器人示教方法方案图。Figure 1 is a schematic diagram of a robot teaching method.

具体实施方式Detailed ways

为使本发明实施例的目的和技术方案更加清楚,下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整地描述。In order to make the purpose and technical solutions of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings of the embodiments of the present invention.

为了说明本发明所述的技术方案,下面结合附图和具体实施例来进行说明:In order to illustrate the technical solutions of the present invention, the following descriptions are given in conjunction with the accompanying drawings and specific embodiments:

一种机器人示教方法,该方法的操作步骤如下:A robot teaching method, the operation steps of the method are as follows:

1)、用魔术贴等方式将陀螺仪/加速度计模块1固定在用户手背上;(图1中进程Ⅰ)1) Fix the gyroscope/accelerometer module 1 on the back of the user's hand by means of Velcro; (process I in Figure 1)

2)、选择运动信号类型,按下控制开关按钮2;(图1中进程Ⅱ)2) Select the motion signal type and press the control switch button 2; (process II in Figure 1)

3)、在保证已佩戴的陀螺仪/加速度计模块不发生姿态变化的前提下,对整个装置进行开机操作,用户进行手势示教。陀螺仪输出指示物体的角速度、角度运动变化数据,三轴加速度计输出指示物体的三维加速度数据;采集的角速度、角度运动变化、三维加速度数据输出到单片机,经过卡尔曼滤波算法处理去除示教过程中的手势抖动和传感器杂波等干扰数据;单片机以角速度、角度运动变化、三维加速度数据为基础,将加速度数据进行两次积分运算得到机械臂应当执行的移动距离数据,将角度运动数据直接输出为机械臂应当执行的转动角度数据。3) On the premise of ensuring that the worn gyroscope/accelerometer module does not change its attitude, the entire device is powered on, and the user performs gesture teaching. The gyroscope outputs the angular velocity and angular motion change data indicating the object, and the three-axis accelerometer outputs the 3D acceleration data indicating the object; the collected angular velocity, angular motion change, and 3D acceleration data are output to the single-chip microcomputer, and are processed by the Kalman filter algorithm to remove the teaching process. Gesture jitter and sensor clutter and other interference data in the robot; based on the angular velocity, angular motion change, and three-dimensional acceleration data, the single-chip microcomputer integrates the acceleration data twice to obtain the moving distance data that the robotic arm should perform, and outputs the angular motion data directly. It is the rotation angle data that the robot arm should execute.

观察单片机(图1中部件3)是否发生报警,如报警灯闪烁。若报警,说明用户所执行的手势示教动作超出了机械臂(图中部件12)运动范围,此次示教信号数据被舍弃,机械臂保持原状态静止不动,需用户再次作出正确的示教操作;若不报警,说明用户操作符合要求,机械臂会作出相应示教动作。(图1中进程Ⅲ)。Observe whether the single-chip microcomputer (component 3 in Figure 1) has an alarm, such as the alarm light flashing. If an alarm occurs, it means that the gesture teaching action performed by the user exceeds the motion range of the robotic arm (part 12 in the figure), the teaching signal data is discarded this time, and the robotic arm remains in its original state, and the user needs to make the correct indication again. Teaching operation; if it does not alarm, it means that the user's operation meets the requirements, and the robot arm will make corresponding teaching actions. (Process III in Figure 1).

其中单片机在通过卡尔曼滤波算法处理信号时,需要建立系统的状态空间模型:When the single-chip microcomputer processes the signal through the Kalman filter algorithm, it needs to establish the state space model of the system:

其中Φ是状态转移矩阵,Γ是噪声转移矩阵,w(k)是动态噪声,C是测量矩阵,v(k)是测量噪声,Xk+1、y(k)是采用时刻的状态及测量值;Where Φ is the state transition matrix, Γ is the noise transition matrix, w(k) is the dynamic noise, C is the measurement matrix, v(k) is the measurement noise, X k+1 , y(k) are the state and measurement at the time of use value;

对应上述方程的卡尔曼滤波过程如下:The Kalman filtering process corresponding to the above equation is as follows:

Pk|k-1=ΦPk-1ΦT+ΓQΓT P k|k-1 =ΦP k-1 Φ T +ΓQΓ T

Kk=Pk/k-1CT(CPk/k-1CT+R]-1 K k =P k/k-1 C T (CP k/k-1 C T +R] -1

Pk=(1-KkC)Pk|k-1 P k =(1-K k C)P k|k-1

其中,为利用上一状态预测的结果,是上一状态最优结果,Pk|k-1对应的误差方差,Pk-1对应的误差方差,Q是系统动态白噪声的方程矩阵,R是系统观测噪声的方程矩阵。in, In order to use the results predicted by the previous state, is the optimal result of the previous state, and P k|k-1 is The corresponding error variance, P k-1 is The corresponding error variance, Q is the equation matrix of the system dynamic white noise, and R is the equation matrix of the system observation noise.

而上述所述加速度两次积分求位移的过程具体如下:The process of calculating the displacement by integrating the acceleration twice as described above is as follows:

设加速度传感器测得的加速度为:a(k)Let the acceleration measured by the accelerometer be: a(k)

对加速度积分一次可得速率: Integrating the acceleration once gives the velocity:

对速率信号积分一次可得位移: Integrating the velocity signal once gives the displacement:

其中,a(k)为加速度信号,v(k)为速率信号,s(k)为位移信号,ak为k时刻的加速度采样值,vk为k时刻的速率值,a0=0,v0=0,Δt为k时刻、k-1时刻两次采样之间的时间差。Among them, a(k) is the acceleration signal, v(k) is the velocity signal, s(k) is the displacement signal, a k is the acceleration sampling value at time k, v k is the velocity value at time k, a 0 =0, v 0 =0, Δt is the time difference between two samples at time k and time k-1.

上文中提到的控制开关按钮决定了单片机输出信号的类型,进而决定了单片机内对传感器所提供的信号的不同处理方式。The control switch button mentioned above determines the type of the output signal of the single-chip microcomputer, which in turn determines the different processing methods of the signal provided by the sensor in the single-chip microcomputer.

开关共包含两个选择按钮4、5,每个按钮各有两种状态,分为A、B和1、2控制状态,其中A、B按钮决定输出信号类型为大幅度运动信号或微量运动信号,1、2按钮决定输出信号类型为关节空间运动信号或操作空间运动信号。The switch contains two selection buttons 4 and 5. Each button has two states, which are divided into A, B and 1, 2 control states. The A and B buttons determine whether the output signal type is a large-scale motion signal or a micro-motion signal. , 1 and 2 buttons determine the output signal type as joint space motion signal or operation space motion signal.

如选择A、1即单片机向机械臂传递关节空间大幅度运动信号;If you choose A and 1, the single-chip microcomputer transmits a large-scale motion signal in the joint space to the robotic arm;

如选择A、2即单片机向机械臂传递操作空间大幅度运动信号;If you choose A and 2, the single-chip microcomputer transmits a large-scale motion signal in the operating space to the robotic arm;

如选择B、1即单片机向机械臂传递关节空间微量运动信号;If B and 1 are selected, the single-chip microcomputer transmits the micro-motion signal of the joint space to the robot arm;

如选择B、2即单片机向机械臂传递操作空间微量运动信号。If B, 2 are selected, that is, the single-chip microcomputer transmits the micro-motion signal of the operation space to the robot arm.

其中,决定运动幅度信号的控制按钮4可以根据实际情况,通过用户选择分别设定手势变化信号与实际控制信号的比值,下面以一种实例加以说明。Among them, the control button 4 for determining the motion amplitude signal can set the ratio of the gesture change signal and the actual control signal according to the actual situation, and the ratio of the gesture change signal and the actual control signal can be set respectively, and an example will be described below.

在本实施例中,当由控制开关决定单片机输出大幅度运动信号时,用户手势运动距离及转角幅度与机械臂运动距离及转角幅度的比值为1:1,如用户执行了位移为20cm的直线示教动作,机械臂作出相同方向的20cm的直线动作;In this embodiment, when the control switch determines that the single-chip microcomputer outputs a large-scale motion signal, the ratio of the user's gesture movement distance and angle amplitude to the mechanical arm movement distance and angle amplitude is 1:1. For example, if the user executes a straight line with a displacement of 20cm Teaching action, the robotic arm makes a 20cm linear action in the same direction;

当由控制开关决定单片机输出微量运动信号时,用户手势运动距离及转角幅度与机械臂运动距离及转角幅度的比值为20:1,如用户执行了位移为20cm的直线示教动作,机械臂作出相同方向的1cm的直线动作。When the control switch determines that the single-chip microcomputer outputs a trace motion signal, the ratio of the user's gesture movement distance and angle amplitude to the robot arm movement distance and angle amplitude is 20:1. If the user performs a linear teaching action with a displacement of 20cm, the robot arm will A 1cm linear motion in the same direction.

在其中一个实施例中,所述控制开关决定输出信号类型为关节空间或操作空间运动信号取决于实际操作要求和范围,若要求机械臂末端快速到达较远处某一位置,可选择关节空间控制按钮;若要求机械臂末端较精确地执行一动作,可选择操作空间控制按钮;也可根据需要按顺序结合使用关节和操作空间按钮。In one embodiment, the control switch determines that the output signal type is joint space or operation space motion signal depending on the actual operation requirements and scope. If the end of the robot arm is required to quickly reach a certain position far away, joint space control can be selected. button; if the end of the manipulator is required to perform an action more precisely, you can choose the operation space control button; you can also use the joint and operation space button in sequence according to your needs.

4)、根据由控制开关按钮所决定的运动方式,单片机会对接受的经过卡尔曼滤波处理的手势姿态变化信号进行不同的运算,求解出驱动机械臂各关节运动的驱动电机6~11所应发生的运动幅度,各个驱动电机顺序对应了机械臂上的六个关节13~18进而使机械臂在驱动电机的驱动下完成整个手势示教的过程。(图中进程Ⅳ)4) According to the movement mode determined by the control switch button, the single-chip microcomputer will perform different operations on the received gesture and posture change signals processed by Kalman filtering, and solve the driving motors 6 to 11 that drive the motion of each joint of the robotic arm. The range of motion that occurs, each drive motor sequentially corresponds to the six joints 13 to 18 on the robotic arm, so that the robotic arm can complete the entire gesture teaching process under the drive of the drive motor. (Process IV in the figure)

本方法的示教操作过程包括:关节空间的粗调,操作空间的微调,结合关节空间和操作空间进行机器人示教。The teaching operation process of the method includes: coarse adjustment of the joint space, fine adjustment of the operation space, and robot teaching combined with the joint space and the operation space.

关节空间的粗调保证了机械臂的末端执行器可以在较短时间内到达工作点附近,在一定程度上提高了工作效率,节省了工作时间,也减少了单片机内部的计算量;在操作空间的微调是针对,当机械臂末端执行器到达工作点附近时,应当尽可能安全、平稳地到达待加工(工作)区域,避免因操作不当所造成的机械臂末端执行器与工件的碰撞等损坏的发生,增强了人机用户友好性,改善了工作的安全性。The rough adjustment of the joint space ensures that the end effector of the robotic arm can reach the working point in a relatively short time, which improves the work efficiency to a certain extent, saves the working time, and reduces the amount of calculation inside the microcontroller; in the operation space The fine-tuning is aimed at that when the end effector of the robot arm reaches the vicinity of the working point, it should reach the area to be processed (working) as safely and smoothly as possible to avoid damage such as collision between the end effector of the robot arm and the workpiece caused by improper operation. occurrence, enhances the user-friendliness of man-machine and improves the safety of work.

这种结合关节空间和操作空间对机器人进行示教可以使用户自由选择在机器人的关节空间或操作空间进行手势示教,更加人性化,更容易贴合用户的自然示教需求;也是实时进行的,不需要事先保存手势变化资料库,这样既使机械臂的变化更加多样,满足实际生产要求,也易于维护,可以及时纠正不当的示教姿态,使机械臂的变化更加逼近预期效果。This combination of joint space and operation space to teach the robot can allow users to freely choose to teach gestures in the joint space or operation space of the robot, which is more humane and easier to meet the user's natural teaching needs; it is also carried out in real time. , there is no need to save the gesture change database in advance, so that the changes of the robot arm are more diverse and meet the actual production requirements, and it is also easy to maintain, and the improper teaching posture can be corrected in time, so that the changes of the robot arm are closer to the expected effect.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited by the above-mentioned embodiments, and any other changes, modifications, substitutions, combinations, The simplification should be equivalent replacement manners, which are all included in the protection scope of the present invention.

Claims (6)

1.一种机器人示教方法,该示教方法使用的系统包括传感模块、单片机、控制开关、机械臂,传感模块包括陀螺仪及三轴加速度计,其特征在于,包括以下步骤:1. a robot teaching method, the system used by this teaching method comprises a sensing module, a single-chip microcomputer, a control switch, a mechanical arm, and the sensing module comprises a gyroscope and a three-axis accelerometer, and is characterized in that, comprising the following steps: (1)、将陀螺仪及三轴加速度计模块固定在给出操作指令的指示物体上,该指示物体是可运动的;(1), fix the gyroscope and the three-axis accelerometer module on the indicating object that gives the operation instruction, and the indicating object is movable; (2)、陀螺仪输出指示物体的角速度、角度运动变化数据,三轴加速度计输出指示物体的三维加速度数据;(2) The gyroscope outputs the angular velocity and angular motion change data indicating the object, and the three-axis accelerometer outputs the three-dimensional acceleration data indicating the object; (3)、将步骤(1)中采集的角速度、角度运动变化、三维加速度数据输出到单片机,经过卡尔曼滤波算法处理去除示教过程中的手势抖动和传感器杂波干扰数据;(3), output the angular velocity, angular motion change, and three-dimensional acceleration data collected in step (1) to the single-chip microcomputer, and remove the gesture jitter and sensor clutter interference data in the teaching process through Kalman filtering algorithm processing; (4)、单片机以角速度、角度运动变化、三维加速度数据为基础,将加速度数据进行两次积分运算得到机械臂应当执行的移动距离数据,将角度运动数据直接输出为机械臂应当执行的转动角度数据;(4) Based on the angular velocity, angular motion change, and three-dimensional acceleration data, the single-chip microcomputer integrates the acceleration data twice to obtain the moving distance data that the robotic arm should perform, and directly outputs the angular motion data as the rotation angle that the robotic arm should perform. data; (5)、对步骤(4)得到的机械臂应当执行的移动距离及转动角度数据进行安全性判定,当电机即将变化的角度超过机械臂的物理限定角度范围时,程序停止在当前位置,机械臂不动,并用蜂鸣器报警,同时舍弃超过机械臂运动范围的移动距离和/或转动角度数据;若得到符合机械臂运动范围的移动距离和/或转动角度数据,则进入下一步骤;(5) Make a safety judgment on the movement distance and rotation angle data that the robot arm should execute obtained in step (4). When the angle that the motor is about to change exceeds the physically limited angle range of the robot arm, the program stops at the current position, and the robot The arm does not move, and the buzzer alarms, while discarding the movement distance and/or rotation angle data that exceeds the movement range of the robot arm; if the movement distance and/or rotation angle data that conform to the movement range of the robot arm are obtained, go to the next step; (6)、对步骤(5)中得到的符合机械臂运动范围的移动距离和/或转动角度数据,由单片机通过I/O口将信号传递给机械臂电机,驱动机械臂完成指定动作。(6) For the movement distance and/or rotation angle data obtained in step (5) that conform to the motion range of the manipulator, the single-chip microcomputer transmits the signal to the manipulator motor through the I/O port, and drives the manipulator to complete the specified action. 2.根据权利要求1所述的机器人示教方法,其特征在于:所述指示物体为操作者的手。2 . The robot teaching method according to claim 1 , wherein the pointing object is an operator's hand. 3 . 3.根据权利要求1所述的机器人示教方法,其特征在于:所述步骤(3)中的单片机具有进行卡尔曼滤波的能力,即可以利用线性系统状态方程。3 . The robot teaching method according to claim 1 , wherein the single-chip microcomputer in the step (3) has the ability to perform Kalman filtering, that is, a linear system state equation can be used. 4 . 4.根据权利要求2所述的机器人示教方法,其特征在于:4. robot teaching method according to claim 2, is characterized in that: 所述步骤(3)中的单片机在通过卡尔曼滤波算法处理信号时,需要建立系统的状态空间模型:When the single-chip microcomputer in the step (3) processes the signal through the Kalman filter algorithm, it needs to establish a state space model of the system: 其中Φ是状态转移矩阵,Γ是噪声转移矩阵,w(k)是动态噪声,C是测量矩阵,v(k)是测量噪声,X(k+1)、y(k)是采用时刻的状态及测量值;where Φ is the state transition matrix, Γ is the noise transition matrix, w(k) is the dynamic noise, C is the measurement matrix, v(k) is the measurement noise, X(k+1), y(k) are the states at the time of adoption and measured values; 对应上述方程的卡尔曼滤波过程如下:The Kalman filtering process corresponding to the above equation is as follows: Pk|k-1=ΦPk-1ΦT+ΓQΓT P k|k-1 =ΦP k-1 Φ T +ΓQΓ T Kk=Pk/k-1CT(CPk/k-1CT+R]-1 K k =P k/k-1 C T (CP k/k-1 C T +R] -1 Pk=(1-KkC)Pk|k-1 P k =(1-K k C)P k|k-1 其中,为利用上一状态预测的结果,是上一状态最优结果,Pk|k-1对应的误差方差,Pk-1对应的误差方差,Q是系统动态白噪声的方程矩阵,R是系统观测噪声的方程矩阵。in, In order to use the results predicted by the previous state, is the optimal result of the previous state, and P k|k-1 is The corresponding error variance, P k-1 is The corresponding error variance, Q is the equation matrix of the system dynamic white noise, and R is the equation matrix of the system observation noise. 5.根据权利要求1所述的机器人示教方法,其特征在于:步骤(4)中,所述加速度两次积分求位移的过程具体如下:5. robot teaching method according to claim 1, is characterized in that: in step (4), the process that described acceleration is integrated twice to find displacement is as follows: 设加速度传感器测得的加速度为:a(k)Let the acceleration measured by the accelerometer be: a(k) 对加速度积分一次可得速率: Integrating the acceleration once gives the velocity: 对速率信号积分一次可得位移: Integrating the velocity signal once gives the displacement: 其中,a(k)为加速度信号,v(k)为速率信号,s(k)为位移信号,ak为k时刻的加速度采样值,vk为k时刻的速率值,a0=0,v0=0,Δt为k时刻、k-1时刻两次采样之间的时间差。Among them, a(k) is the acceleration signal, v(k) is the velocity signal, s(k) is the displacement signal, a k is the acceleration sampling value at time k, v k is the velocity value at time k, a 0 =0, v 0 =0, Δt is the time difference between two samples at time k and time k-1. 6.根据权利要求1所述的机器人示教方法,其特征在于:所述的对运动信号进行选择的控制开关应包括两个控制按钮,每种按钮包含两种工作状态,相应地决定了输出信号类型为大幅度运动信号或微量运动信号,关节空间运动或操作空间运动。6. The robot teaching method according to claim 1, characterized in that: the control switch for selecting the motion signal should include two control buttons, each button contains two working states, and the output is determined accordingly. The signal types are large-scale motion signals or micro-motion signals, joint space motion or manipulation space motion.
CN201710172975.6A 2017-03-22 2017-03-22 A robot teaching method Active CN106891326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710172975.6A CN106891326B (en) 2017-03-22 2017-03-22 A robot teaching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710172975.6A CN106891326B (en) 2017-03-22 2017-03-22 A robot teaching method

Publications (2)

Publication Number Publication Date
CN106891326A CN106891326A (en) 2017-06-27
CN106891326B true CN106891326B (en) 2019-07-16

Family

ID=59193095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710172975.6A Active CN106891326B (en) 2017-03-22 2017-03-22 A robot teaching method

Country Status (1)

Country Link
CN (1) CN106891326B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108340352A (en) * 2018-02-09 2018-07-31 巨轮中德机器人智能制造有限公司 The long-range real-time control method of industrial robot based on teaching joint arm
CN108388252B (en) * 2018-04-10 2021-04-09 中科新松有限公司 Robot teaching method, device, equipment and medium
CN109799771B (en) * 2018-12-29 2021-01-05 深圳市越疆科技有限公司 Control system, method and device of industrial robot
CN112008711A (en) * 2019-05-28 2020-12-01 国网江苏省电力有限公司徐州供电分公司 A six-axis inertial navigation control method and device for a live working robot
CN112207857A (en) * 2019-07-12 2021-01-12 上海智殷自动化科技有限公司 Offline teaching system based on binocular vision system
CN111716352B (en) * 2020-05-13 2022-04-29 中国电力科学研究院有限公司 Power distribution network live working mechanical arm navigation obstacle avoidance method and system
CN116810796A (en) * 2023-08-07 2023-09-29 常州刘国钧高等职业技术学校 Industrial robot motion control method and device based on inertial measurement unit
CN116765942B (en) * 2023-08-16 2023-11-14 泉州市智锐机械制造有限公司 Automatic teaching component, continuous variable angle grinding equipment and automatic teaching process thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005034991A (en) * 2004-10-05 2005-02-10 Yaskawa Electric Corp Working range limiting apparatus for robot and mobile robot
CN101274399A (en) * 2007-03-26 2008-10-01 株式会社神户制钢所 Device for controlling workpiece positioning device
CN102066057A (en) * 2009-01-22 2011-05-18 松下电器产业株式会社 Apparatus and method for controlling robot arm, robot, program for controlling robot arm, and integrated electronic circuit
CN103347662A (en) * 2011-01-27 2013-10-09 松下电器产业株式会社 Robot-arm control device and control method, robot, robot-arm control program, and integrated electronic circuit
CN105835073A (en) * 2016-05-30 2016-08-10 哈工大机器人集团有限公司 Novel teaching device of industrial robot
CN106335053A (en) * 2015-07-09 2017-01-18 发那科株式会社 Robot controller for robot which sets two objects in combined state

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005034991A (en) * 2004-10-05 2005-02-10 Yaskawa Electric Corp Working range limiting apparatus for robot and mobile robot
CN101274399A (en) * 2007-03-26 2008-10-01 株式会社神户制钢所 Device for controlling workpiece positioning device
CN102066057A (en) * 2009-01-22 2011-05-18 松下电器产业株式会社 Apparatus and method for controlling robot arm, robot, program for controlling robot arm, and integrated electronic circuit
CN103347662A (en) * 2011-01-27 2013-10-09 松下电器产业株式会社 Robot-arm control device and control method, robot, robot-arm control program, and integrated electronic circuit
CN106335053A (en) * 2015-07-09 2017-01-18 发那科株式会社 Robot controller for robot which sets two objects in combined state
CN105835073A (en) * 2016-05-30 2016-08-10 哈工大机器人集团有限公司 Novel teaching device of industrial robot

Also Published As

Publication number Publication date
CN106891326A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN106891326B (en) A robot teaching method
CN104440864B (en) A kind of master-slave mode remote operating industrial robot system and its control method
CN103112007B (en) Based on the man-machine interaction method of hybrid sensor
CN110709211B (en) Robot system and control method for robot system
US9878446B2 (en) Determination of object-related gripping regions using a robot
WO2011065034A1 (en) Method for controlling action of robot, and robot system
US20160054721A1 (en) Power tool
US20160274784A1 (en) Apparatus for operating robots
EP0383944A1 (en) Action teaching method and control apparatus for a robot
CN115070781B (en) Object grabbing method and two-mechanical-arm cooperation system
CN106493711A (en) Control device, robot and robot system
CN103286784A (en) Control system of under-actuated self-adaption multi-fingered dexterous hand
CN111037553B (en) control device
CN212421307U (en) Industrial robot capable of improving safety control performance
KR20130000496A (en) Teaching apparatus of robot having acceleration sensor and gyro-sensor and teaching method for robot using the same
JPS6346844B2 (en)
CN212887620U (en) Industrial robot with enhanced safety
CN119159602A (en) Method and system for remotely controlling a humanoid robot via a tracker and a data glove
CN112894827A (en) Mechanical arm motion control method, system and device and readable storage medium
JP7483420B2 (en) ROBOT SYSTEM, CONTROL DEVICE, INFORMATION PROCESSING DEVICE, CONTROL METHOD, INFORMATION PROCESSING METHOD, PROGRAM, AND RECORDING MEDIUM
CN205184776U (en) Remove robot control device based on data glove
JP6379902B2 (en) Robot operation device, robot system, and robot operation program
KR101474778B1 (en) Control device using motion recognition in artculated robot and method thereof
CN117301058A (en) Industrial robot perception information processing system
CN114714358A (en) Method and system for teleoperation of mechanical arm based on gesture protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant