CN106293103A - Four-axle aircraft gesture control device based on inertial sensor and control method - Google Patents
Four-axle aircraft gesture control device based on inertial sensor and control method Download PDFInfo
- Publication number
- CN106293103A CN106293103A CN201610920077.XA CN201610920077A CN106293103A CN 106293103 A CN106293103 A CN 106293103A CN 201610920077 A CN201610920077 A CN 201610920077A CN 106293103 A CN106293103 A CN 106293103A
- Authority
- CN
- China
- Prior art keywords
- finger
- fingers
- gesture
- axis
- control method
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 210000003811 finger Anatomy 0.000 claims abstract description 142
- 210000003813 thumb Anatomy 0.000 claims abstract description 29
- 230000033001 locomotion Effects 0.000 claims abstract description 17
- 238000005259 measurement Methods 0.000 claims abstract description 9
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 6
- 230000004927 fusion Effects 0.000 claims abstract description 6
- 210000001145 finger joint Anatomy 0.000 claims abstract description 4
- 238000012545 processing Methods 0.000 claims abstract description 3
- 230000001133 acceleration Effects 0.000 claims description 16
- 238000005452 bending Methods 0.000 claims description 9
- 210000004932 little finger Anatomy 0.000 claims description 7
- 210000004247 hand Anatomy 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 abstract description 3
- 230000003238 somatosensory effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 239000013598 vector Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000002474 experimental method Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005057 finger movement Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明涉及一种四轴飞行器的体感手势控制装置和控制方法,手势控制装置包括:控制器和惯性传感器。所述惯性传感节点必须包含三轴角速度计和三轴加速度计,或是两者一体的六轴惯性传感器,三轴磁力计可不包含在内。所述惯性传感节点固定在手指第二指节背部且Y轴正方向指向指尖。所述运动姿态融合采用捷联导航算法。所述控制器上集成一个六轴惯性传感器,用作参考点,手指的实际测量角度是手指关节的惯性传感器与参考点的相对角度。控制方法,根据采集、处理的先后顺序可将过程分为配置传感器、采集误差和计算手指指令三个步骤。所述控制方法只使用横滚角判断手指姿态。所述左手手势指令,根据平伸手指数确定油门档位。所述右手手势指令,根据大拇指和其余四指的伸收确定飞行器向前、后、左和右飞行方向。
The invention relates to a somatosensory gesture control device and a control method of a four-axis aircraft. The gesture control device includes: a controller and an inertial sensor. The inertial sensing node must include a three-axis angular velocity meter and a three-axis accelerometer, or a six-axis inertial sensor integrating the two, and the three-axis magnetometer may not be included. The inertial sensing node is fixed on the back of the second knuckle of the finger and the positive direction of the Y-axis points to the fingertip. The fusion of motion and attitude adopts a strapdown navigation algorithm. A six-axis inertial sensor is integrated on the controller as a reference point, and the actual measurement angle of the finger is the relative angle between the inertial sensor of the finger joint and the reference point. In the control method, according to the order of collection and processing, the process can be divided into three steps: sensor configuration, error collection and finger instruction calculation. The control method only uses the roll angle to judge the gesture of the finger. In the left-hand gesture command, the throttle gear is determined according to the index of the extended hand. The right-hand gesture command determines the forward, backward, left and right flight directions of the aircraft according to the stretching and retracting of the thumb and the remaining four fingers.
Description
技术领域technical field
本发明涉及一种手势控制装置和方法,特别涉及基于惯性传感器的四轴飞行器手势控制装置和控制方法。The invention relates to a gesture control device and method, in particular to a gesture control device and a control method for a quadcopter based on an inertial sensor.
背景技术Background technique
近年来,四轴飞行器作为一种特殊的“自拍杆”,已经逐渐在消费市场得到普及。然而针对四轴飞行器的操控方式,目前商用的产品仍然是以手柄操作为主。最近也有些研究人尝试使用手势来控制四轴飞行器,手势控制最核心的部分就是手势识别与手势指令。In recent years, quadcopters, as a special "selfie stick", have gradually gained popularity in the consumer market. However, for the control method of the quadcopter, the current commercial products are still mainly operated by the handle. Recently, some researchers have tried to use gestures to control quadcopters. The core part of gesture control is gesture recognition and gesture commands.
目前,手势识别通常有两种方式,一种方式是基于机器视觉。即,通过双目摄像头,提取所拍摄三维空间的景深信息,然后再对手势做三维重建,典型代表就是kinect和leapmotion。这种方式,最大的优点可以实现裸手操作,这是最理想的操控方式。然而,缺点就是对环境光线要求比较苛刻,光照强弱、均匀性等对识别率的影响很大。另外,基于图像的手势识别算法进行的都是二阶矢量运算,需要专用的图形处理器进行加速,整个处理过程的延时和功耗都很大,通常都是在主机设备上使用。At present, there are usually two ways of gesture recognition, one way is based on machine vision. That is, through the binocular camera, the depth information of the three-dimensional space captured is extracted, and then the gesture is reconstructed in three dimensions. Typical representatives are kinect and leapmotion. In this way, the biggest advantage is that it can be operated with bare hands, which is the most ideal way of manipulation. However, the disadvantage is that the requirements for ambient light are relatively harsh, and the intensity and uniformity of light have a great impact on the recognition rate. In addition, image-based gesture recognition algorithms are all second-order vector operations, which require a dedicated graphics processor to accelerate. The delay and power consumption of the entire processing process are large, and they are usually used on the host device.
另一种方式是基于传感器技术,即,利用与手指关节贴合的各类传感器检测出手指动作。其中,最主要的一类传感器就是惯性传感器。这种惯性传感器通常包含三轴陀螺仪、三轴加速度计(部分产品还包含三轴磁力计)。这种手势识别方式,最大的优点就是测量的数据直接、快速、功耗低以及受环境影响小,适用于对实时性要求比较高的场景,尤其适合于在户外操控四轴飞行器。Another way is based on sensor technology, that is, using various sensors attached to the finger joints to detect finger movements. Among them, the most important type of sensor is the inertial sensor. This inertial sensor usually includes a three-axis gyroscope, a three-axis accelerometer (some products also include a three-axis magnetometer). The biggest advantage of this gesture recognition method is that the measured data is direct, fast, low power consumption and less affected by the environment. It is suitable for scenes with high real-time requirements, especially suitable for controlling quadcopters outdoors.
现有的基于惯性传感器的手势控制方法,存在三个问题:(1)识别精度和速度无法兼顾,有些使用了9轴惯性传感器及相应姿态解算算法,片面追求姿态解算的精度,这种方案解算后稳定的延时要达到几十甚至几百毫秒;要么仅使用3轴惯性传感器不做姿态解算和融合,直接使用原始数据做判断,这种方案下传感器本身的漂移对后续识别精度影响很大。(2)手势识别的鲁棒性不够,只是在手掌保持某一特定姿势时识别率较高,例如平举,而当手部有一倾斜角度时,则识别率急剧下降。(3)手势指令的差异性不够明显,例如,旋转手腕和摆动手臂,摆动的时候也会发生轻微的旋转动作,容易产生误操作。There are three problems in the existing gesture control methods based on inertial sensors: (1) the recognition accuracy and speed cannot be balanced, and some use 9-axis inertial sensors and corresponding attitude calculation algorithms, which one-sidedly pursue the accuracy of attitude calculation. After the scheme is solved, the stable delay should reach tens or even hundreds of milliseconds; or only use the 3-axis inertial sensor without attitude calculation and fusion, and directly use the original data for judgment. Accuracy is greatly affected. (2) The robustness of gesture recognition is not enough, only when the palm maintains a certain posture, the recognition rate is higher, for example, when the hand is tilted, the recognition rate drops sharply. (3) The difference of gesture commands is not obvious enough. For example, when rotating the wrist and swinging the arm, a slight rotation will also occur when swinging, which is prone to misuse.
发明内容Contents of the invention
发明要解决的问题The problem to be solved by the invention
本发明要解决的技术问题在于,如何平衡手势识别精度和速度,提高手势识别鲁棒性以及提出一套差异性明显便于稳定识别的手势动作指令。The technical problem to be solved by the present invention is how to balance the accuracy and speed of gesture recognition, improve the robustness of gesture recognition, and propose a set of gesture action instructions with obvious differences that facilitate stable recognition.
用于解决问题的方案solutions to problems
有鉴于此,本发明提出了一种基于惯性传感器的四轴飞行器手势控制装置和控制方法,针对上述问题提出解决方案。In view of this, the present invention proposes a quadcopter gesture control device and control method based on an inertial sensor, and proposes a solution to the above problems.
一方面,提出了一种手势控制装置,包括:控制器、惯性传感节点。其中,所述控制器固定在手背上,所述惯性传感节点固定在手指第二指节处。所述惯性传感器用于采集手指的运动姿态角信息并输出给控制器,所述控制器用于采集所述传感器的输出数据,并向四轴飞行器发送控制指令。On the one hand, a gesture control device is proposed, including: a controller and an inertial sensor node. Wherein, the controller is fixed on the back of the hand, and the inertial sensing node is fixed at the second knuckle of the finger. The inertial sensor is used to collect the motion attitude angle information of the finger and output it to the controller, and the controller is used to collect the output data of the sensor and send a control command to the quadcopter.
所述惯性传感节点必须包含三轴角速度计和三轴加速度计,三轴磁力计可不包含在内。The inertial sensing node must include a three-axis angular velocity meter and a three-axis accelerometer, and the three-axis magnetometer may not be included.
所述惯性传感节点固定在手指第二指节背部且Y轴正方向指向指尖。The inertial sensing node is fixed on the back of the second knuckle of the finger and the positive direction of the Y-axis points to the fingertip.
所述运动姿态融合采用捷联导航算法,融合后的俯仰角测量范围为-80°~+80°;横滚角测量范围为-180°~180°;地磁导致偏航角持续漂移,无精确测量结果。The fusion of motion attitude adopts strapdown navigation algorithm, and the measurement range of the pitch angle after fusion is -80°~+80°; the measurement range of roll angle is -180°~180°; measurement results.
所述控制方法中,只使用横滚角判断手指姿态。In the control method, only the roll angle is used to judge the gesture of the finger.
所述控制器上集成一个惯性传感器,用作参考点,手指的实际测量角度是手指关节的惯性传感器与参考点的相对角度。An inertial sensor is integrated on the controller, which is used as a reference point, and the actual measurement angle of the finger is the relative angle between the inertial sensor of the finger joint and the reference point.
另一方面,提出了一种控制方法,具体实现步骤如下:On the other hand, a control method is proposed, and the specific implementation steps are as follows:
步骤1:配置传感器并采集误差值,指的是按照一定要求配置传感器,并采集角速度和加速度的误差值。Step 1: Configuring sensors and collecting error values refers to configuring sensors according to certain requirements and collecting error values of angular velocity and acceleration.
步骤2:采集手指信息并计算手指的弯曲程度,指的是采集每个手指的加速度和角速度,计算出各手指相对于手背的弯曲程度。Step 2: Collect finger information and calculate the degree of bending of the fingers, which refers to collecting the acceleration and angular velocity of each finger, and calculating the degree of bending of each finger relative to the back of the hand.
步骤3:计算当前手势并发送相应的控制命令,指的是根据双手的手指弯曲程度,计算出当前手势,并向四轴飞行器发送对应的手势控制指令。Step 3: Calculate the current gesture and send the corresponding control command, which refers to calculating the current gesture according to the bending degree of the fingers of both hands, and sending the corresponding gesture control command to the quadcopter.
所述左手控制指令,具体为:The left-hand control instruction is specifically:
油门一档:手心朝地,平伸食指,其余手指蜷曲。所述手势以食指为例,也可以是其余任意一根手指的平伸动作。Accelerator first gear: With the palm facing the ground, stretch the index finger flat, and curl the rest of the fingers. The gesture takes the index finger as an example, and may also be a stretching motion of any other finger.
油门二档:手心朝地,平伸食指和中指,其余手指蜷曲。所述手势以食指和中指为例,也可以是其余任意两根手指的平伸动作。Accelerator gear two: palms facing the ground, stretch out the index finger and middle finger, and curl the rest of the fingers. The gestures take the index finger and the middle finger as an example, and may also be the stretching motion of any other two fingers.
油门三档:手心朝地,平伸食指、中指和无名指,其余手指蜷曲。所述手势以食指、中指和无名指为例,也可以是其余任意三根手指的平伸动作。The third gear of the accelerator: palms facing the ground, stretch out the index finger, middle finger and ring finger, and curl the rest of the fingers. The gestures take the index finger, middle finger and ring finger as an example, and may also be the stretching motion of any other three fingers.
油门四档:手心朝地,平伸食指、中指、无名指和小拇指,大拇指蜷曲。所述手势以食指、中指、无名指和小拇指为例,也可以是其余任意四根手指的平伸动作。Accelerator gear 4: With the palm facing the ground, stretch out the index finger, middle finger, ring finger and little finger, and curl the thumb. The gestures take the index finger, middle finger, ring finger and little finger as an example, and may also be the stretching motion of any other four fingers.
油门五档:表示手心朝地,平伸五根手指。Accelerator gear 5: It means that the palm of the hand is facing the ground and five fingers are stretched out.
所述右手手势指令,具体为:The right-hand gesture instruction is specifically:
向前飞行:手心朝天,大拇指蜷曲,其余四指平伸。Fly forward: palms up, thumbs curled up, and the remaining four fingers stretched out.
向后飞行:手心朝天,大拇指蜷曲,其余四指蜷曲并压在大拇指上。Fly backwards: palms facing the sky, thumbs curled, and the other four fingers curled and pressed against the thumbs.
向左飞行:手心朝地,大拇指平伸向左,其余四指蜷曲。Fly to the left: palms facing the ground, thumbs stretched out to the left, and the other four fingers curled up.
向右飞行:手心朝天,大拇指平伸向右,其余四指蜷曲。Flying to the right: With the palm facing the sky, the thumb is stretched flat to the right, and the other four fingers are curled up.
附图说明Description of drawings
图1:是本发明的控制装置的左手势命令示意图;Figure 1: is a schematic diagram of the left gesture command of the control device of the present invention;
图2:是本发明的控制装置的右手势命令示意图;Figure 2: is a schematic diagram of the right gesture command of the control device of the present invention;
图3:是本发明的控制装置的示意性结构图;Fig. 3: is the schematic structural diagram of the control device of the present invention;
图4:是本发明的控制流程图;Fig. 4: is the control flowchart of the present invention;
具体实施方式detailed description
以下将参考附图详细说明本发明的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
另外,为了更好的说明本发明,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本发明同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本发明的主旨。In addition, in order to better illustrate the present invention, numerous specific details are given in the specific embodiments below. It will be understood by those skilled in the art that the present invention may be practiced without certain of the specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail in order to highlight the gist of the present invention.
图1示出本发明一实施例的控制装置的左手势命令示意,图中手指编号101~105分别依次代表左手大拇指、食指、中指、无名指、大拇指。左手控制四轴飞行器的油门,手势106~110分别表示控制油门由低至高依次分为五档。FIG. 1 shows a schematic diagram of left gesture commands of a control device according to an embodiment of the present invention. In the figure, finger numbers 101 to 105 represent the thumb, index finger, middle finger, ring finger, and thumb of the left hand respectively. The left hand controls the throttle of the quadcopter, and the gestures 106-110 indicate that the control throttle is divided into five gears from low to high.
左手势106:表示手心朝地,平伸食指,其余手指蜷曲,此手势控制油门为一档。所述手势以食指为例,也可以是其余任意一根手指的平伸动作。Left Gesture 106: Indicates that the palm of the hand is facing the ground, the index finger is stretched out, and the rest of the fingers are curled up. This gesture controls the accelerator to the first gear. The gesture takes the index finger as an example, and may also be a stretching motion of any other finger.
左手势107:表示手心朝地,平伸食指和中指,其余手指蜷曲,此手势控制油门为二档。所述手势以食指和中指为例,也可以是其余任意两根手指的平伸动作。Left hand gesture 107: Indicates that the palm is facing the ground, the index finger and middle finger are extended flat, and the rest of the fingers are curled up. This gesture controls the accelerator to the second gear. The gestures take the index finger and the middle finger as an example, and may also be the stretching motion of any other two fingers.
左手势108:表示手心朝地,平伸食指、中指和无名指,其余手指蜷曲,此手势控制油门为三档。所述手势以食指、中指和无名指为例,也可以是其余任意三根手指的平伸动作。Left hand gesture 108: Indicates that the palm is facing the ground, the index finger, middle finger and ring finger are stretched out, and the rest of the fingers are curled up. This gesture controls the throttle to the third gear. The gestures take the index finger, middle finger and ring finger as an example, and may also be the stretching motion of any other three fingers.
左手势109:表示手心朝地,平伸食指、中指、无名指和小拇指,大拇指蜷曲,此手势控制油门为四档。所述手势以食指、中指、无名指和小拇指为例,也可以是其余任意四根手指的平伸动作。Left gesture 109: Indicates that the palm is facing the ground, the index finger, middle finger, ring finger and little finger are stretched out, and the thumb is curled up. This gesture controls the accelerator to four gears. The gestures take the index finger, middle finger, ring finger and little finger as an example, and may also be the stretching motion of any other four fingers.
左手势110:表示手心朝地,平伸五根手指。此手势控制油门为五档。Left Gesture 110: Indicates that the palm of the hand faces the ground and five fingers are stretched out. This gesture controls the accelerator to five gears.
图2示出本发明一实施例的控制装置右手势命令示意性结构图,图中手指编号201~205分别依次代表右手大拇指、食指、中指、无名指、大拇指。右手势206~209分别表示控制四轴飞行器向前、向后、向左、向右四个方向飞行,此处所谓前后左右方向是相对于四轴飞行器的初始位置。Fig. 2 shows a schematic structure diagram of a right gesture command of a control device according to an embodiment of the present invention, in which finger numbers 201-205 respectively represent the thumb, index finger, middle finger, ring finger, and thumb of the right hand in turn. The right gestures 206-209 represent to control the quadcopter to fly forward, backward, left, and right respectively, and the so-called front, rear, left, and right directions here are relative to the initial position of the quadcopter.
右手势206:表示手心朝天,大拇指蜷曲,其余四指平伸,此手势控制飞行器向前飞行。Right hand gesture 206: means the palm is facing the sky, the thumb is curled up, and the other four fingers are stretched out. This gesture controls the aircraft to fly forward.
右手势207:表示手心朝天,大拇指蜷曲,其余四指蜷曲并压在大拇指上,此手势控制飞行器向后飞行。Right hand gesture 207: means the palm is facing the sky, the thumb is curled up, and the other four fingers are curled up and pressed on the thumb. This gesture controls the aircraft to fly backward.
右手势208:表示手心朝地,大拇指平伸向左,其余四指蜷曲,此手势控制飞行器向左飞行。Right hand gesture 208: means the palm is facing the ground, the thumb is extended to the left, and the other four fingers are curled up. This gesture controls the aircraft to fly to the left.
右手势209:表示手心朝天,大拇指平伸向右,其余四指蜷曲,此手势控制飞行器向右飞行。Right Gesture 209: Indicates that the palm is facing the sky, the thumb is extended to the right, and the other four fingers are curled up. This gesture controls the aircraft to fly to the right.
图3示出本发明一实例的控制装置300、连接线309和指关节检测装置310的示意图,如图所示,该控制装置包括微控制器301、惯性传感器302、无线传输模块(1)303、无线传输模块(2)304、电源模块305、LED等其他外设模块306,该检测装置包括接线口307、惯性传感器308。其中,所述微控制器301通过SPI通信分别于所述惯性传感器模块302、所述无线传输模块(1)303、所述无线传输模块(2)304、所述接线口307连接。所述接口线307和所述惯性传感器308直接连接。控制装置300固定在手背上且所述惯性传感器302的Y轴正方向指向四个手指。检测装置310固定于手指第二指节背部且所述惯性传感器308的Y轴正方向指向指甲盖。Fig. 3 shows a schematic diagram of a control device 300, a connection line 309 and a knuckle detection device 310 of an example of the present invention. As shown in the figure, the control device includes a microcontroller 301, an inertial sensor 302, and a wireless transmission module (1) 303 , a wireless transmission module (2) 304 , a power supply module 305 , and other peripheral modules 306 such as LEDs. The detection device includes a wiring port 307 and an inertial sensor 308 . Wherein, the microcontroller 301 is respectively connected to the inertial sensor module 302, the wireless transmission module (1) 303, the wireless transmission module (2) 304, and the wiring port 307 through SPI communication. The interface line 307 is directly connected to the inertial sensor 308 . The control device 300 is fixed on the back of the hand and the positive direction of the Y-axis of the inertial sensor 302 points to the four fingers. The detection device 310 is fixed on the back of the second knuckle of the finger and the positive direction of the Y-axis of the inertial sensor 308 points to the nail cap.
图4示出本发明提供一种四轴飞行器的控制方法。具体实现步骤如下:Fig. 4 shows a control method of a quadcopter provided by the present invention. The specific implementation steps are as follows:
步骤1:配置传感器并采集误差值Step 1: Configure the sensor and collect the error value
在一种可能的实现方式中,控制器按照一定要求配置惯性传感器并控制惯性传感器按照一定的速度采集手指的角速度Gyro和加速度Acc,并将两种数据读入控制器分别计算出角速度误差e_gyro和加速度误差e_acc。其中,角速度和加速度均为三维矢量。In a possible implementation, the controller configures the inertial sensor according to certain requirements and controls the inertial sensor to collect the angular velocity Gyro and acceleration Acc of the finger at a certain speed, and reads the two data into the controller to calculate the angular velocity errors e_gyro and Acceleration error e_acc. Among them, angular velocity and acceleration are three-dimensional vectors.
在一具体实施例中:In a specific embodiment:
将双手五指并拢手背朝上水平放置并保持静止状态,采集加速度和角速度值并记录采集次数num。Put your hands and five fingers together and place them horizontally with the back of your hands facing up and keep them in a static state, collect acceleration and angular velocity values and record the number of acquisitions num.
采集角速度的大小:Gyro(i)=Gyro_Correct()Acquisition of angular velocity: Gyro(i)=Gyro_Correct()
采集加速度的大小:Acc(i)=Acc_Correct()The size of the collected acceleration: Acc(i)=Acc_Correct()
计算角速度误差:Calculate the angular velocity error:
计算加速度误差:Calculate the acceleration error:
步骤2:采集手指信息并计算手指的弯曲程度Step 2: Collect finger information and calculate the degree of bending of the finger
在一种可能的实现方式中,采集角速度Gyro(i)、加速度Acc(i)使用捷联惯导算法(IMU)进行手指姿态解算并计算出手指的弯曲程度。In a possible implementation manner, the angular velocity Gyro(i) and the acceleration Acc(i) are collected and the strapdown inertial navigation algorithm (IMU) is used to calculate the finger attitude and calculate the bending degree of the finger.
在一具体实施例中:In a specific embodiment:
(1)先对采集到的Gyro(i)、Acc(i)进行校准(1) Calibrate the collected Gyro(i) and Acc(i) first
和and
其中,Final.Gyro(i).X、Final.Gyro(i).Y、Final.Gyro(i).Z、Final.Acc(i).XFinal.Acc(i).Y、Final.Acc(i).Z分别代表校准后的角速度、加速度各轴大小。Among them, Final.Gyro(i).X, Final.Gyro(i).Y, Final.Gyro(i).Z, Final.Acc(i).XFinal.Acc(i).Y, Final.Acc(i ).Z respectively represent the calibrated angular velocity and acceleration of each axis.
(2)再把校准后的加速度、角速度单位化,得FN.Gyro(i).X、FN.Gyro(i).Y、FN.Gyro(i).Z、FN.Acc(i).X、FN.Acc(i).Y、FN.Acc(i).Z。(2) Unitize the calibrated acceleration and angular velocity to get FN.Gyro(i).X, FN.Gyro(i).Y, FN.Gyro(i).Z, FN.Acc(i).X , FN.Acc(i).Y, FN.Acc(i).Z.
(3)把地理坐标系中的重力加速度矢量通过姿态转换矩阵转化成载体坐标系中的矢量那么(3) The gravitational acceleration vector in the geographic coordinate system Through the pose transformation matrix Convert to a vector in the vector coordinate system So
其中,是由四元数构成的矩阵并且四元数的初值 in, by the quaternion The matrix formed and the initial value of the quaternion
(4)在载体坐标系下,计算惯性传感器所测到的加速度FN.Acc(i)和由姿态矩阵转化的加速度V之间的误差,记作e。(4) In the carrier coordinate system, calculate the error between the acceleration FN.Acc(i) measured by the inertial sensor and the acceleration V transformed by the attitude matrix, denoted as e.
e=FN.Acc(i)×V (6)e=FN.Acc(i)×V (6)
(5)利用比例、积分修正角速度,修正量δ和修正后的角速度w分别是:(5) The angular velocity is corrected by proportional and integral, the correction amount δ and the corrected angular velocity w are respectively:
δ=Kpe+Ki∫e (7)δ=K p e+K i ∫e (7)
w=FN.Gyro(i)+δ (8)w=FN.Gyro(i)+δ (8)
(6)利用修正后的角速度去更新四元数(6) Use the corrected angular velocity to update the quaternion
由四元数微分方程得:From the quaternion differential equation:
其中是更新后的四元数的各个分量in are the components of the updated quaternion
(7)利用跟新后的四元数求出欧拉角(7) Use the updated quaternion to find the Euler angle
航向角: Heading:
俯仰角:pitch=arcsin(2(q0q2-q1q3))Pitch angle: pitch=arcsin(2(q 0 q 2 -q 1 q 3 ))
横滚角: Roll Angle:
横滚角就是惯性传感器绕X轴旋转的角度,记作D0,故计算出手背上的惯性传感器302绕X轴旋转的角度D0和各手指上(大拇指除外)的惯性传感器308绕X轴旋转的角度Di,则各手指(大拇指除外)相对于手背弯曲的角度DTi=Di-D0。The roll angle is the angle at which the inertial sensor rotates around the X axis, denoted as D 0 , so the angle D 0 at which the inertial sensor 302 on the back of the hand rotates around the X axis and the rotation angle D 0 of the inertial sensor 308 on each finger (except the thumb) around the X axis are calculated. The angle D i of axis rotation is the bending angle DT i of each finger (except the thumb) relative to the back of the hand DT i =D i −D 0 .
步骤3:计算当前手势并发送相应的控制命令Step 3: Calculate the current gesture and send the corresponding control command
在一种可能的实现方式中,当五指并拢伸直手背朝上保持静止时,D0在C1到C2之间。例如,经过多次重复实验,实测-3°到+3°为稳定状态。食指、中指、无名指、小拇指上的惯性传感器绕X轴旋转的角度D2、D3、D4、D5在C3到C4之间,例如,经过多次重复实验,实测当四指并拢伸直保持稳定时角度显示在-3°到+5°之间。大拇指上的惯性传感器绕X轴旋转的角度D1在C5到C6之间,例如,经过多次重复实验,实测在30°到40°之间为稳定状态。In a possible implementation manner, when the five fingers are put together and the back of the hand is kept still, D 0 is between C 1 and C 2 . For example, after many repeated experiments, it is measured that -3° to +3° is a stable state. The rotation angles D 2 , D 3 , D 4 , and D 5 of the inertial sensors on the index finger, middle finger, ring finger, and little finger around the X axis are between C 3 and C 4 . The angle displayed is between -3° and +5° when straightened and held steady. The rotation angle D 1 of the inertial sensor on the thumb around the X axis is between C 5 and C 6 , for example, after repeated experiments, it is measured that the stable state is between 30° and 40°.
当手背水平朝上四指第二指节紧握,大拇指朝垂直于四指方向张开时,D2、D3、D4、D5均在C7到C8之间,例如,经过多次重复实验,实测数据显示稳定在75°到+93°之间。D1在C9到C10之间,例如,经过多次重复实验数据稳定在70°到87°之间。When the back of the hand is held horizontally with the second knuckles of the four fingers and the thumb is extended perpendicular to the four fingers, D 2 , D 3 , D 4 , and D 5 are all between C 7 and C 8 , for example, after many times Repeat the experiment, the measured data shows that it is stable between 75° and +93°. D 1 is between C 9 and C 10 , for example, the data is stable between 70° and 87° after repeated experiments.
综合得知,当DTi(i=2、3、4、5)在0°到(C4-C1+ε)°之间时,例如在0°到+10°之间时,认为DTi对应的手指相对于手背处于伸直状态;当D1在0°到(C6+ε)之间时,例如在0°到+40°之间时,认为大拇指处于并拢状态。其中ε代表很小的角度裕量。It is generally known that when DT i (i=2, 3, 4, 5) is between 0° and (C 4 -C 1 +ε)°, for example, between 0° and +10°, it is considered that DT The finger corresponding to i is in a straight state relative to the back of the hand; when D 1 is between 0° and (C 6 +ε), for example, between 0° and +40°, the thumb is considered to be in a closed state. where ε represents a small angular margin.
当DTi(i=2、3、4、5)大于(C7+ε)时,例如大于65°时,认为DTi对应的手指相对于手背处于紧握状态;当D1大于(C9+ε)时,例如大于70°时,认为大拇指处于张开状态。When DT i (i=2, 3, 4, 5) is greater than (C 7 +ε), for example, greater than 65°, it is considered that the finger corresponding to DT i is in a tight grip relative to the back of the hand; when D 1 is greater than (C 9 +ε), for example, greater than 70°, the thumb is considered to be in an open state.
从而根据手指张开或者紧握的个数就可以判定当前处于哪个手势,最后向四轴飞行器发送手势所对应的命令。Therefore, it can be determined which gesture is currently in according to the number of fingers opened or clenched, and finally the command corresponding to the gesture is sent to the quadcopter.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920077.XA CN106293103B (en) | 2016-10-21 | 2016-10-21 | Gesture control device and gesture control method for four-axis aircraft based on inertial sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920077.XA CN106293103B (en) | 2016-10-21 | 2016-10-21 | Gesture control device and gesture control method for four-axis aircraft based on inertial sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106293103A true CN106293103A (en) | 2017-01-04 |
CN106293103B CN106293103B (en) | 2023-09-26 |
Family
ID=57720443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610920077.XA Active CN106293103B (en) | 2016-10-21 | 2016-10-21 | Gesture control device and gesture control method for four-axis aircraft based on inertial sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106293103B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107024939A (en) * | 2017-06-14 | 2017-08-08 | 南昌航空大学 | A kind of intelligent expanding device of four rotors and its control method |
CN107831791A (en) * | 2017-11-17 | 2018-03-23 | 南方科技大学 | Unmanned aerial vehicle control method and device, control equipment and storage medium |
CN108710443A (en) * | 2018-05-21 | 2018-10-26 | 云谷(固安)科技有限公司 | The generation method and control system of displacement data |
CN109032160A (en) * | 2018-07-27 | 2018-12-18 | 北京臻迪科技股份有限公司 | Attitude control system, method and UAV system |
CN110779553A (en) * | 2019-12-03 | 2020-02-11 | 中国科学院电子学研究所 | Calibration method for magnetometer data |
CN111158478A (en) * | 2019-12-26 | 2020-05-15 | 维沃移动通信有限公司 | Response method and electronic equipment |
CN111461059A (en) * | 2020-04-21 | 2020-07-28 | 哈尔滨拓博科技有限公司 | A multi-region multi-class scalable gesture recognition control device and control method |
CN112655194A (en) * | 2018-09-11 | 2021-04-13 | 三星电子株式会社 | Electronic device and method for capturing views |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020012014A1 (en) * | 2000-06-01 | 2002-01-31 | Olympus Optical Co., Ltd. | Operation input apparatus using sensor attachable to operator's hand |
US6515669B1 (en) * | 1998-10-23 | 2003-02-04 | Olympus Optical Co., Ltd. | Operation input device applied to three-dimensional input device |
CN101033973A (en) * | 2007-04-10 | 2007-09-12 | 南京航空航天大学 | Attitude determination method of mini-aircraft inertial integrated navigation system |
JP2008065860A (en) * | 2007-11-26 | 2008-03-21 | Olympus Corp | Operation input device |
JP2008102951A (en) * | 2007-11-26 | 2008-05-01 | Olympus Corp | Operation input device |
JP2008112459A (en) * | 2007-11-26 | 2008-05-15 | Olympus Corp | Operation input device |
JP2008135033A (en) * | 2007-11-26 | 2008-06-12 | Olympus Corp | Hand posture operation detector |
CN106342284B (en) * | 2008-08-18 | 2011-11-23 | 西北工业大学 | A kind of flight carrier attitude is determined method |
CN103112007A (en) * | 2013-02-06 | 2013-05-22 | 华南理工大学 | Human-machine interaction method based on mixing sensor |
CN103175502A (en) * | 2013-02-07 | 2013-06-26 | 广州畅途软件有限公司 | Attitude angle detecting method based on low-speed movement of data glove |
CN203759869U (en) * | 2014-03-20 | 2014-08-06 | 西南科技大学 | Gesture sensing type aircraft remote controller |
CN104345904A (en) * | 2013-07-23 | 2015-02-11 | 西安艾尔特仪器有限公司 | Finger-type air mouse |
-
2016
- 2016-10-21 CN CN201610920077.XA patent/CN106293103B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6515669B1 (en) * | 1998-10-23 | 2003-02-04 | Olympus Optical Co., Ltd. | Operation input device applied to three-dimensional input device |
US20020012014A1 (en) * | 2000-06-01 | 2002-01-31 | Olympus Optical Co., Ltd. | Operation input apparatus using sensor attachable to operator's hand |
CN101033973A (en) * | 2007-04-10 | 2007-09-12 | 南京航空航天大学 | Attitude determination method of mini-aircraft inertial integrated navigation system |
JP2008065860A (en) * | 2007-11-26 | 2008-03-21 | Olympus Corp | Operation input device |
JP2008102951A (en) * | 2007-11-26 | 2008-05-01 | Olympus Corp | Operation input device |
JP2008112459A (en) * | 2007-11-26 | 2008-05-15 | Olympus Corp | Operation input device |
JP2008135033A (en) * | 2007-11-26 | 2008-06-12 | Olympus Corp | Hand posture operation detector |
CN106342284B (en) * | 2008-08-18 | 2011-11-23 | 西北工业大学 | A kind of flight carrier attitude is determined method |
CN103112007A (en) * | 2013-02-06 | 2013-05-22 | 华南理工大学 | Human-machine interaction method based on mixing sensor |
CN103175502A (en) * | 2013-02-07 | 2013-06-26 | 广州畅途软件有限公司 | Attitude angle detecting method based on low-speed movement of data glove |
CN104345904A (en) * | 2013-07-23 | 2015-02-11 | 西安艾尔特仪器有限公司 | Finger-type air mouse |
CN203759869U (en) * | 2014-03-20 | 2014-08-06 | 西南科技大学 | Gesture sensing type aircraft remote controller |
Non-Patent Citations (2)
Title |
---|
王伟栋;费洁;杨英东;钱峰;: "基于MEMS的数据手套传感技术研究", no. 21 * |
陈鹏展;李杰;罗漫;: "网络化手势运动跟踪系统设计", no. 02 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107024939A (en) * | 2017-06-14 | 2017-08-08 | 南昌航空大学 | A kind of intelligent expanding device of four rotors and its control method |
CN107831791A (en) * | 2017-11-17 | 2018-03-23 | 南方科技大学 | Unmanned aerial vehicle control method and device, control equipment and storage medium |
CN107831791B (en) * | 2017-11-17 | 2020-12-15 | 深圳意动航空科技有限公司 | A control method, device, control device and storage medium for an unmanned aerial vehicle |
CN108710443A (en) * | 2018-05-21 | 2018-10-26 | 云谷(固安)科技有限公司 | The generation method and control system of displacement data |
CN108710443B (en) * | 2018-05-21 | 2021-09-07 | 云谷(固安)科技有限公司 | Displacement data generation method and control system |
CN109032160A (en) * | 2018-07-27 | 2018-12-18 | 北京臻迪科技股份有限公司 | Attitude control system, method and UAV system |
CN112655194A (en) * | 2018-09-11 | 2021-04-13 | 三星电子株式会社 | Electronic device and method for capturing views |
CN112655194B (en) * | 2018-09-11 | 2022-07-19 | 三星电子株式会社 | Electronic device and method for capturing views |
CN110779553A (en) * | 2019-12-03 | 2020-02-11 | 中国科学院电子学研究所 | Calibration method for magnetometer data |
CN111158478A (en) * | 2019-12-26 | 2020-05-15 | 维沃移动通信有限公司 | Response method and electronic equipment |
CN111461059A (en) * | 2020-04-21 | 2020-07-28 | 哈尔滨拓博科技有限公司 | A multi-region multi-class scalable gesture recognition control device and control method |
Also Published As
Publication number | Publication date |
---|---|
CN106293103B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106293103B (en) | Gesture control device and gesture control method for four-axis aircraft based on inertial sensor | |
CN103226398B (en) | Based on the data glove of micro-inertia sensor network technology | |
US10705113B2 (en) | Calibration of inertial measurement units attached to arms of a user to generate inputs for computer systems | |
CN106445130A (en) | Motion capture glove for gesture recognition and calibration method thereof | |
CN104764451A (en) | Target posture tracking method based on inertia and geomagnetic sensor | |
CN107003751A (en) | Gesture recognition system for controlling electronics controlled plant | |
CN104772756A (en) | Mechanical arm based on inertial measurement units and control method thereof | |
WO2022227460A1 (en) | Pose prediction method and apparatus, electronic device, and storage medium | |
CN109724602A (en) | An attitude calculation system based on hardware FPU and its calculation method | |
CN107532907A (en) | Posture detection equipment | |
Yu et al. | End-side gesture recognition method for UAV control | |
CN108279773B (en) | A data glove based on MARG sensor and magnetic field positioning technology | |
TW201118662A (en) | Trace-generating systems and methods thereof | |
CN103197761B (en) | Gesture identification method and device | |
Huang et al. | Virtual interaction and manipulation control of a hexacopter through hand gesture recognition from a data glove | |
CN107122109A (en) | A kind of multi-channel adaptive operating method towards three-dimensional pen-based interaction platform | |
CN104516353A (en) | Distributed underwater biotic robot attitude stabilizing system | |
US10545495B2 (en) | Remote control device and method for UAV and motion control device attached to UAV | |
CN115290076A (en) | A method of human joint angle data processing based on multi-sensor fusion | |
CN106695736A (en) | Gesture identification human-simulated mechanical arm system based on multi-sensor fusion and synchronizing method | |
CN107203215A (en) | A kind of gesture and Voice command quadrotor method | |
CN108051001A (en) | A kind of robot movement control method, system and inertia sensing control device | |
Du et al. | A novel natural mobile human-machine interaction method with augmented reality | |
CN206209600U (en) | Four-axle aircraft gesture control device based on inertial sensor | |
CN103034345B (en) | Geographical virtual emulation 3D mouse pen in a kind of real space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |