[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103472434A - Robot sound positioning method - Google Patents

Robot sound positioning method Download PDF

Info

Publication number
CN103472434A
CN103472434A CN2013104552389A CN201310455238A CN103472434A CN 103472434 A CN103472434 A CN 103472434A CN 2013104552389 A CN2013104552389 A CN 2013104552389A CN 201310455238 A CN201310455238 A CN 201310455238A CN 103472434 A CN103472434 A CN 103472434A
Authority
CN
China
Prior art keywords
robot
sound
kinect
sound source
gravity
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
CN2013104552389A
Other languages
Chinese (zh)
Other versions
CN103472434B (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.)
Nanhai Innovation And Development Base Of Sanya Harbin Engineering University
Original Assignee
Harbin Engineering University
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 Harbin Engineering University filed Critical Harbin Engineering University
Priority to CN201310455238.9A priority Critical patent/CN103472434B/en
Publication of CN103472434A publication Critical patent/CN103472434A/en
Application granted granted Critical
Publication of CN103472434B publication Critical patent/CN103472434B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

本发明公开一种机器人声音定位方法,涉及声音定位及机器人导航,通过至少两个Kinect传感器,获取每个Kinect探测到的声音来源方向,确定每两个Kinect传感器所确定的声源所在偏差扇面区域,共三个区域,由重心法求得每个区域的重心,三个重心的均值即为声源的最优位置。通过该方法,提高了其定位精度,具有很强的实用性、灵活性,可用于声音定位、机器人导航运动控制等多领域。

Figure 201310455238

The invention discloses a robot sound positioning method, which relates to sound positioning and robot navigation. At least two Kinect sensors are used to obtain the sound source direction detected by each Kinect, and to determine the deviation fan area where the sound source determined by each two Kinect sensors is located. , a total of three areas, the center of gravity of each area is obtained by the center of gravity method, and the average of the three centers of gravity is the optimal position of the sound source. Through this method, its positioning accuracy is improved, it has strong practicability and flexibility, and can be used in multiple fields such as sound positioning, robot navigation motion control, and the like.

Figure 201310455238

Description

一种机器人声音定位方法A method of robot sound localization

技术领域technical field

本发明属于机器人领域,涉及一种机器人声音定位方法,可用于机器人运动控制、机器人室内定位与导航等领域。The invention belongs to the field of robots, and relates to a robot sound positioning method, which can be used in the fields of robot motion control, robot indoor positioning and navigation, and the like.

背景技术Background technique

Kinect(啃乃特)是一种三维(3D)体感摄影机,同时它导入了即时动态捕捉、影像辨识、麦克风输入、语音辨识、社群互动等功能。在Kinect第一次作为Xbox360的外设发布时,骨骼追踪和语音识别是Kinect SDK最受开发者欢迎的特性,但是相比骨骼追踪,语音识别中麦克风阵列的强大功能被忽视了。一部分原因归于Kinect中令人兴奋的骨骼追踪系统,另一部分原因在于Xbox游戏操控面板以及Kinect体感游戏没有充分发挥Kinect音频处理的优势。Kinect is a three-dimensional (3D) somatosensory camera, and it introduces functions such as real-time motion capture, image recognition, microphone input, voice recognition, and community interaction. When Kinect was first released as an Xbox360 peripheral, skeletal tracking and speech recognition were the most popular features of the Kinect SDK for developers, but compared to skeletal tracking, the power of the microphone array in speech recognition was overlooked. This is partly due to the exciting skeletal tracking system in the Kinect, and partly due to the fact that Xbox game consoles and Kinect motion games don't take full advantage of the Kinect's audio processing.

Kinect的麦克风阵列在Kinect设备的下方。这一阵列由4个独立的水平分布在Kinect下方的麦克风组成。虽然每一个麦克风都捕获相同的音频信号,但是组成阵列可以探测到声音的来源方向。使得能够用来识别从某一个特定方向传来的声音。麦克风阵列捕获的音频数据流经过复杂的音频增强效果算法处理来移除不相关的背景噪音。所有这些复杂操作在Kinect硬件和Kinect SDK之间进行处理,这使得在一个较大空间范围内,即使人距Kinect有一定的距离也能够进行语音命令的识别以及判断声音的来源方向。The Kinect's microphone array is on the underside of the Kinect device. This array consists of 4 independent microphones distributed horizontally below the Kinect. Although each microphone captures the same audio signal, forming an array allows the direction of sound to be detected. Enables the identification of sounds coming from a particular direction. The audio data stream captured by the microphone array is processed by sophisticated audio enhancement algorithms to remove irrelevant background noise. All these complex operations are processed between the Kinect hardware and the Kinect SDK, which makes it possible to recognize voice commands and determine the source direction of the sound even if the person is a certain distance away from the Kinect in a large space.

机器人室内定位技术是机器人研究领域的一个热点,也是一个难点,研究者们提出了各种各样的方法。比较典型的是RFID技术,首先,在室内首先构建一个智能空间或称为传感器网络空间,即事先在室内地面上每隔一定的距离铺设一个RFID标签,每个RFID标签内存入了其所在位置的绝对坐标,其次,在移动机器人上装有RFID标签信息读取装置,当机器人移动到RFID标签上时,读取RFID标签内的坐标数据即可知道机器人当前的位置。但是该定位方法对环境有一定的要求,而且RFID标签的铺设间隔不同,机器人的定位精度也不同。其他定位技术的精度也受多方面因素的影响,如推测航行法对传感器的精度和机器人本身的运动系统都有很大的依赖性;WIFI、蓝牙等技术对环境也有一定的要求;声音定位技术在机器人上也有应用,但限于其复杂的处理以及易受环境噪声的影响,所以定位精度并不高,难以推广;室内地图构建定位精度虽高,但地图构建过程复杂,计算量很大,实时性难以满足要求。Robot indoor positioning technology is a hot spot in the field of robot research, and it is also a difficult point. Researchers have proposed various methods. The typical one is RFID technology. Firstly, a smart space or sensor network space is built indoors, that is, an RFID tag is laid on the indoor ground at a certain distance in advance, and each RFID tag stores the information of its location. Absolute coordinates. Secondly, an RFID tag information reading device is installed on the mobile robot. When the robot moves to the RFID tag, the current position of the robot can be known by reading the coordinate data in the RFID tag. However, this positioning method has certain requirements on the environment, and the laying interval of RFID tags is different, and the positioning accuracy of the robot is also different. The accuracy of other positioning technologies is also affected by many factors. For example, the reckoning navigation method has a great dependence on the accuracy of the sensor and the motion system of the robot itself; WIFI, Bluetooth and other technologies also have certain requirements for the environment; sound positioning technology It is also used in robots, but it is limited to its complex processing and is easily affected by environmental noise, so the positioning accuracy is not high and it is difficult to promote; although the positioning accuracy of indoor map construction is high, the map construction process is complicated and the amount of calculation is large. Real-time Sex is difficult to satisfy.

发明内容:Invention content:

本发明提供了一种机器人声音定位方法,用于解决现有技术中存在的定位精度不高的问题。The invention provides a robot sound positioning method, which is used to solve the problem of low positioning accuracy existing in the prior art.

一方面,提供了一种机器人声音定位方法,包括:通过至少两个Kinect作为声音传感器,获取来自机器人的声音的来源方向角;根据所述来源方向角和所述至少两个Kinect的位置,确定每两个Kinect所确定的声源所在偏差扇面区域;确定每两个偏差扇面区域的交叉区域的几何重心;根据所述确定的几何重心,通过几何重心法计算声源最优位置,所述声源最优位置为定位得到的所述机器人的位置。On the one hand, a kind of robot sound localization method is provided, comprising: through at least two Kinects as sound sensors, obtain the source direction angle of the sound from robot; According to the position of described source direction angle and described at least two Kinects, determine Every two Kinect determined sound source place deviation fan areas; Determine the geometric center of gravity of the intersection area of every two deviation fan areas; According to the geometric center of gravity determined, the optimal position of the sound source is calculated by the geometric center of gravity method, the sound source The source optimal position is the position of the robot obtained by positioning.

优选的,在通过几何重心法计算声源最优位置之后,根据目标位置和所述声源最优位置,确定所述机器人行动的路线;控制所述机器人沿所述路线运动到所述目标位置。Preferably, after the optimal position of the sound source is calculated by the geometric center of gravity method, the route of the robot's action is determined according to the target position and the optimal position of the sound source; the robot is controlled to move to the target position along the route .

通过上述方案,能够准确而方便地定位机器人的位置。Through the above solution, the position of the robot can be accurately and conveniently positioned.

附图说明Description of drawings

图1是Kinect声音定位总体原理图;Fig. 1 is the overall schematic diagram of Kinect sound positioning;

图2是1号和3号Kinect传感器共同确定的声源所在区域原理图;Fig. 2 is a schematic diagram of the area where the sound source is jointly determined by No. 1 and No. 3 Kinect sensors;

图3是不规则四边形重心求法原理图;Fig. 3 is a schematic diagram of the method for finding the center of gravity of a trapezoid;

图4是1号和2号Kinect传感器共同确定的声源所在区域原理图;Fig. 4 is a schematic diagram of the area where the sound source is jointly determined by No. 1 and No. 2 Kinect sensors;

图5是2号和3号Kinect传感器共同确定的声源所在区域原理图;Fig. 5 is a schematic diagram of the area where the sound source is jointly determined by No. 2 and No. 3 Kinect sensors;

图6是通过Kinect的声音定位实现机器人导航原理图;Fig. 6 is the schematic diagram of realizing robot navigation through the sound positioning of Kinect;

图7是机器人声音定位导航控制原理框图。Fig. 7 is a schematic block diagram of robot sound positioning and navigation control.

具体实施方式Detailed ways

下面结合附图,对本发明的具体实现过程进行详细说明。The specific implementation process of the present invention will be described in detail below in conjunction with the accompanying drawings.

本发明实施例提供了一种定位机器人的方法,包括:An embodiment of the present invention provides a method for positioning a robot, including:

(1)将3个Kinect传感器以直角坐标系形式排放,声源在该坐标系内某一位置发出持续一定时间的声音,保存三个Kinect传感器获得的声音来源方向角。(1) Arrange the three Kinect sensors in the form of a rectangular coordinate system. The sound source emits a sound for a certain period of time at a certain position in the coordinate system, and save the sound source direction angle obtained by the three Kinect sensors.

(2)由于每个Kinect传感器接收声音信号有一定偏差,用α表示偏差角度,Kinect传感器探测到的声音来源方向偏差范围为[-α,α],称为偏差扇面,表示两个Kinect传感器确定的声源区域,本方法称为偏差扇面法。然后利用几何方法求得每两个Kinect传感器的偏差扇面区域所形成的交叉区域的重心,称为几何重心法。(2) Since each Kinect sensor has a certain deviation in receiving the sound signal, α is used to represent the deviation angle. The deviation range of the sound source direction detected by the Kinect sensor is [-α, α], which is called the deviation sector, which means that the two Kinect sensors determine The sound source area, this method is called the deviation fan method. Then use the geometric method to obtain the center of gravity of the intersection area formed by the deviation fan areas of every two Kinect sensors, which is called the geometric center of gravity method.

(3)利用偏差扇面法和几何重心法求得每两个Kinect传感器确定的声源所在区域的重心,共三个,计算这三个重心坐标的平均值,即为声源的最优位置。(3) Use the deviation sector method and the geometric center of gravity method to obtain the center of gravity of the area where the sound source is located for every two Kinect sensors.

(4)将最优声源位置发送给移动机器人,机器人获得自己的位置信息,调整其运动方向,通过声音定位向目标地点移动,从而实现移动机器人声音定位导航。(4) Send the optimal sound source position to the mobile robot, the robot obtains its own position information, adjusts its movement direction, and moves to the target location through sound positioning, thereby realizing the sound positioning and navigation of the mobile robot.

本发明实施例借助Kinect传感器的音频处理能力,探测声音来源方向实现机器人室内定位。In the embodiment of the present invention, the audio processing capability of the Kinect sensor is used to detect the direction of the sound source to realize the indoor positioning of the robot.

与现有的技术相比,本发明实施例具有以下优点:Compared with the existing technology, the embodiment of the present invention has the following advantages:

声音定位方法简单。声音定位系统的实时性要求很高,如果采用比较复杂的算法,将不能满足声音定位系统的实时性要求。本发明采用重心法这种比较通用的方法即可快速确定出声源的位置。Sound localization method is simple. The real-time requirements of the sound positioning system are very high. If a more complex algorithm is used, it will not be able to meet the real-time requirements of the sound positioning system. The present invention can quickly determine the position of the sound source by adopting the relatively general method of the center of gravity method.

声音定位精度高。充分利用了Kinect传感器的麦克风阵列以及Kinect软件驱动程序的背景抑制及回声消除处理,消除虚拟声源及背景噪声的影响,探测真实声源方向,获得声源的最佳位置。Sound positioning accuracy is high. Make full use of the microphone array of the Kinect sensor and the background suppression and echo cancellation processing of the Kinect software driver to eliminate the influence of the virtual sound source and background noise, detect the direction of the real sound source, and obtain the best position of the sound source.

定位方法通用。由于是利用Kinect探测声音的来源方向,所以即使有障碍物在Kinect和声源之间,Kinect仍能够得到声音的来源方向;另一方面,该定位方法不仅能够用于室内声音定位,同样可应用于室外。The positioning method is general. Since the Kinect is used to detect the source direction of the sound, even if there are obstacles between the Kinect and the sound source, the Kinect can still obtain the source direction of the sound; on the other hand, this positioning method can not only be used for indoor sound positioning, but also can be applied outdoors.

可应用于机器人室内的精确定位及导航运动控制。It can be applied to precise positioning and navigation motion control in the robot room.

本发明实施例还提供了一种机器人定位和导航方法,包括:The embodiment of the present invention also provides a robot positioning and navigation method, including:

1、Kinect声音区域重心定位方法1. Kinect sound area center of gravity positioning method

参照图1,为了使声源的探测均在Kinect传感器的最佳探测角度范围内,三个Kinect传感器的布置如图所示。Kinect传感器获得声音来源方向角是以其中线为参考的,即图中标有声音来源角度参考线的虚线,面对Kinect传感器,虚线左侧的角度为负值,虚线右侧的角度为正值。声源在某一位置以16KHz的频率发出持续50ms的声音。偏差扇面法和区域重心方法结合获取三个Kinect传感器确定的声源交叉区域重心过程如下:Referring to Figure 1, in order to make the detection of the sound source within the optimum detection angle range of the Kinect sensor, the arrangement of the three Kinect sensors is shown in the figure. The direction angle of the sound source obtained by the Kinect sensor is based on the midline, that is, the dotted line marked with the sound source angle reference line in the figure. Facing the Kinect sensor, the angle on the left side of the dotted line is a negative value, and the angle on the right side of the dotted line is a positive value. The sound source emits a sound at a frequency of 16KHz for 50ms at a certain position. The process of combining the deviation sector method and the regional center of gravity method to obtain the center of gravity of the sound source intersection area determined by the three Kinect sensors is as follows:

用β表示1号Kinect传感器探测到的声音来源方向角,lk1表示1号Kinect传感器探测到的声源所在直线,故真实声源在直线lk1左右偏转α度的扇形区域内,2号和3号Kinect传感器类似。

Figure BDA0000390088330000031
表示2号Kinect传感器探测到的声音来源方向角,lk2表示2号Kinect传感器探测到的声源所在直线。γ表示3号Kinect传感器探测到的声音来源方向角,lk3表示3号Kinect传感器探测到的声源所在直线。由上述可知β和
Figure BDA0000390088330000041
为负值,γ正值。Use β to represent the direction angle of the sound source detected by No. 1 Kinect sensor, l k1 represents the straight line where the sound source detected by No. 1 Kinect sensor is located, so the real sound source is in the fan-shaped area where the straight line l k1 is deflected by α degrees, and No. 2 and Kinect sensor number 3 is similar.
Figure BDA0000390088330000031
Indicates the direction angle of the sound source detected by the No. 2 Kinect sensor, l k2 represents the straight line where the sound source detected by the No. 2 Kinect sensor. γ represents the direction angle of the sound source detected by No. 3 Kinect sensor, l k3 represents the straight line where the sound source detected by No. 3 Kinect sensor. From the above we know that β and
Figure BDA0000390088330000041
is a negative value, and γ is a positive value.

(xk1,yk1)表示1号Kinect传感器所在位置坐标,(xk2,yk2)表示2号Kinect传感器所在位置坐标,(xk3,yk3)表示3号Kinect传感器所在位置坐标,实际中很容易测量,所以均为已知参数。(x k1 , y k1 ) represents the position coordinates of No. 1 Kinect sensor, (x k2 , y k2 ) represents the position coordinates of No. 2 Kinect sensor, (x k3 , y k3 ) represents the position coordinates of No. 3 Kinect sensor, in practice It is easy to measure, so they are all known parameters.

图1表示了三个Kinect传感器探测到的声音来源方向及两两偏差扇面相互交叉所确定的声源区域,以1号和3号Kinect传感器的偏差扇面相互交叉形成的区域为例,其交叉区域重心求法如下:Figure 1 shows the direction of the sound source detected by the three Kinect sensors and the sound source area determined by the intersecting of the deviation sectors. Taking the area formed by the intersecting deviation sectors of the No. 1 and No. 3 Kinect sensors as an example, the intersecting area The method of finding the center of gravity is as follows:

如图2,

Figure BDA0000390088330000042
表示1号Kinect传感器探测到声源所在直线逆时针偏转α度,
Figure BDA0000390088330000043
表示1号Kinect传感器探测到声源所在直线顺时针偏转α度;
Figure BDA0000390088330000044
表示3号Kinect传感器探测到声源所在直线逆时针偏转α度,
Figure BDA0000390088330000045
表示3号Kinect传感器探测到声源所在直线顺时针偏转α度。A(xA,yA)表示
Figure BDA0000390088330000046
Figure BDA0000390088330000047
的交点,B(xB,yB)表示
Figure BDA0000390088330000048
Figure BDA0000390088330000049
的交点,C(xC,yC)表示
Figure BDA00003900883300000411
的交点,D(xD,yD)表示
Figure BDA00003900883300000412
Figure BDA00003900883300000413
的交点。四边形ABCD即是由1号和3号Kinect传感器共同确定的声源所在区域。为了方便说明求四边形ABCD的重心,将其放大。As shown in Figure 2,
Figure BDA0000390088330000042
Indicates that No. 1 Kinect sensor detects that the line where the sound source is located is deflected by α degrees counterclockwise,
Figure BDA0000390088330000043
Indicates that the line where the No. 1 Kinect sensor detects the sound source is deflected by α degrees clockwise;
Figure BDA0000390088330000044
Indicates that No. 3 Kinect sensor detects that the line where the sound source is located is deflected by α degrees counterclockwise,
Figure BDA0000390088330000045
Indicates that the line where the No. 3 Kinect sensor detects the sound source is deflected by α degrees clockwise. A(x A ,y A ) means
Figure BDA0000390088330000046
and
Figure BDA0000390088330000047
The intersection point, B(x B ,y B ) means
Figure BDA0000390088330000048
and
Figure BDA0000390088330000049
The intersection point, C(x C ,y C ) means and
Figure BDA00003900883300000411
The intersection point, D(x D ,y D ) means
Figure BDA00003900883300000412
and
Figure BDA00003900883300000413
intersection point. The quadrilateral ABCD is the area where the sound source is determined jointly by No. 1 and No. 3 Kinect sensors. To facilitate the description, find the center of gravity of the quadrilateral ABCD and enlarge it.

参照图3,N(xN,yN)表示三角形DAB的重心,O(xO,yO)表示三角形ABC的重心,P(xP,yP)表示三角形BCD的重心,Q(xQ,yQ)表示三角形CDA的重心,R(xR,yR)表示四边形ABCD的重心。Referring to Fig. 3, N(x N ,y N ) represents the center of gravity of triangle DAB, O(x O ,y O ) represents the center of gravity of triangle ABC, P(x P ,y P ) represents the center of gravity of triangle BCD, Q(x Q ,y Q ) represents the center of gravity of triangle CDA, and R(x R ,y R ) represents the center of gravity of quadrilateral ABCD.

对于四边形ABCD,连接其一条对角线AC,这样就将四边形ABCD分割成三角形ABC和三角形CDA的组合体,则四边形ABCD的重心在三角形ABC重心O和三角形CDA重心Q的连线OQ上;同理,连接四边形ABCD另一条对角线BD,这样就将四边形ABCD分割成三角形DAB和三角形BCD的组合体,四边形ABCD的重心同样在线段NP上,故有四边形ABCD的重心在线段OQ和NP的交点上,即

Figure BDA00003900883300000414
点。For the quadrilateral ABCD, connect its diagonal line AC, so that the quadrilateral ABCD is divided into the combination of the triangle ABC and the triangle CDA, then the center of gravity of the quadrilateral ABCD is on the connecting line OQ between the center of gravity O of the triangle ABC and the center of gravity of the triangle CDA; In this way, the quadrilateral ABCD is divided into a combination of triangle DAB and triangle BCD. The center of gravity of the quadrilateral ABCD is also on the line segment NP, so the center of gravity of the quadrilateral ABCD is on the line segment OQ and NP. at the point of intersection, that is
Figure BDA00003900883300000414
point.

参照图4和图5,四边形EFGH即是由1号和2号Kinect传感器共同确定的声源所在区域,四边形IJKL即是由2号和3号Kinect传感器共同确定的声源所在区域,按照上述同样的方法求得四边形EFGH重心为

Figure BDA0000390088330000051
四边形IJKL重心为
Figure BDA0000390088330000052
Referring to Fig. 4 and Fig. 5, the quadrilateral EFGH is the region where the sound source is determined jointly by the No. 1 and No. 2 Kinect sensors, and the quadrilateral IJKL is the region where the sound source is determined jointly by the No. 2 and No. 3 Kinect sensors. The method to obtain the center of gravity of the quadrilateral EFGH is
Figure BDA0000390088330000051
The center of gravity of the quadrilateral IJKL is
Figure BDA0000390088330000052

最后,求四边形ABCD、EFGH、IJKL的重心

Figure BDA0000390088330000053
三个坐标的均值即为声源的最优位置S(xS,yS)。Finally, find the center of gravity of the quadrilateral ABCD, EFGH, IJKL
Figure BDA0000390088330000053
The mean value of the three coordinates is the optimal position S(x S , y S ) of the sound source.

按照上述方法,同理可求得1号和2号Kinect传感器相互交线所构成的区域的重心以及2号和3号Kinect传感器相互交线所构成的区域的重心。According to the above method, similarly, the center of gravity of the area formed by the intersecting lines of No. 1 and No. 2 Kinect sensors and the center of gravity of the area formed by the intersecting lines of No. 2 and No. 3 Kinect sensors can be obtained.

2、最优声源位置算法2. Optimal sound source location algorithm

确定最优声源位置的方法包括:Methods for determining the optimal sound source location include:

步骤1:初始化多个参数Step 1: Initialize multiple parameters

三个Kinect传感器的位置坐标均可实际测得,即(xk1,yk1)、(xk2,yk2)和(xk3,yk3)均为已知参数,误差角度α根据Kinect的技术指标及实际实验设定为5°,声源及三个Kinect传感器开始工作。The position coordinates of the three Kinect sensors can be actually measured, that is, (x k1 , y k1 ), (x k2 , y k2 ) and (x k3 , y k3 ) are known parameters, and the error angle α is based on the Kinect technology The index and the actual experiment are set to 5°, and the sound source and three Kinect sensors start to work.

步骤2:求直线交点坐标Step 2: Find the coordinates of the line intersection point

声源发出持续50ms的声音后停止发声,保存1号Kinect传感器获得的声音来源方向角β,2号Kinect传感器获得的声音来源方向角

Figure BDA0000390088330000055
,3号Kinect传感器获得的声音来源方向角γ。The sound source stops after the sound lasts for 50ms, and saves the sound source direction angle β obtained by the No. 1 Kinect sensor, and the sound source direction angle obtained by the No. 2 Kinect sensor
Figure BDA0000390088330000055
, the direction angle γ of the sound source obtained by No. 3 Kinect sensor.

根据点斜式可列出如下直线方程:According to the point-slope formula, the equation of a straight line can be listed as follows:

直线

Figure BDA0000390088330000056
y=tan(45°+β+α)x    (1)straight line
Figure BDA0000390088330000056
y=tan(45°+β+α)x (1)

直线

Figure BDA0000390088330000057
y=tan(45°+β-α)x    (2)straight line
Figure BDA0000390088330000057
y=tan(45°+β-α)x (2)

直线

Figure BDA0000390088330000058
y=yk3+tan(135°+γ+α)(x-xk3)    (3)straight line
Figure BDA0000390088330000058
y=y k3 +tan(135°+γ+α)(xx k3 ) (3)

直线y=yk3+tan(135°+γ-α)(x-xk3)    (4)straight line y=y k3 +tan(135°+γ-α)(xx k3 ) (4)

直线

Figure BDA00003900883300000510
和直线
Figure BDA00003900883300000517
的交点为A(xA,yA),解直线方程(1)和(4)组成的方程组得交点A(xA,yA)的坐标。直线
Figure BDA00003900883300000511
和直线
Figure BDA00003900883300000512
的交点为B(xB,yB),解直线方程(2)和(4)组成的方程组得交点B(xB,yB)的坐标。直线和直线
Figure BDA00003900883300000514
的交点为C(xC,yC),解直线方程(2)和(3)组成的方程组得交点C(xC,yC)的坐标。直线和直线的交点为D(xD,yD),解直线方程(1)和(3)组成的方程组得交点D(xD,yD)的坐标。straight line
Figure BDA00003900883300000510
and straight line
Figure BDA00003900883300000517
The intersection point of is A(x A ,y A ), and the coordinates of the intersection point A(x A ,y A ) can be obtained by solving the equation system composed of line equations (1) and (4). straight line
Figure BDA00003900883300000511
and straight line
Figure BDA00003900883300000512
The intersection point of is B(x B ,y B ), and the coordinates of the intersection point B(x B ,y B ) can be obtained by solving the system of equations composed of linear equations (2) and (4). straight line and straight line
Figure BDA00003900883300000514
The intersection point is C(x C ,y C ), and the coordinates of the intersection point C(x C ,y C ) can be obtained by solving the equation system composed of line equations (2) and (3). straight line and straight line The intersection point of is D(x D ,y D ), and the coordinates of the intersection point D(x D ,y D ) can be obtained by solving the equation system composed of line equations (1) and (3).

步骤3:求不规则四边形重心Step 3: Find the center of gravity of the trapezoid

由三角形重心坐标公式,From the coordinate formula of the center of gravity of a triangle,

三角形DAB的重心N(xN,yN), x N = x D + x A + x B 3 , y N = y D + y A + y B 3 , The center of gravity N(x N ,y N ) of the triangle DAB, x N = x D. + x A + x B 3 , the y N = the y D. + the y A + the y B 3 ,

三角形ABC的重心O(xO,yO), x O = x A + x B + x C 3 , y O = y A + y B + y C 3 , The center of gravity O(x O ,y O ) of the triangle ABC, x o = x A + x B + x C 3 , the y o = the y A + the y B + the y C 3 ,

三角形BCD的重心P(xP,yP), x P = x B + x C + x D 3 , y P = y B + y C + y D 3 , Center of gravity P(x P ,y P ) of triangle BCD, x P = x B + x C + x D. 3 , the y P = the y B + the y C + the y D. 3 ,

三角形CDA的重心Q(xQ,yQ), x Q = x C + x D + x A 3 , y Q = y C + y D + y A 3 . The center of gravity Q(x Q ,y Q ) of the triangle CDA, x Q = x C + x D. + x A 3 , the y Q = the y C + the y D. + the y A 3 .

根据两点式可列出如下直线方程:According to the two-point formula, the equation of a straight line can be listed as follows:

线段OQ所在直线方程: y = y O + y Q - y O x Q - x O ( x - x O ) - - - ( 5 ) The equation of the straight line where the line segment OQ is located: the y = the y o + the y Q - the y o x Q - x o ( x - x o ) - - - ( 5 )

线段NP所在直线方程: y = y N + y P - y N x P - x N ( x - x N ) - - - ( 6 ) The equation of the straight line where the line segment NP is located: the y = the y N + the y P - the y N x P - x N ( x - x N ) - - - ( 6 )

线段OQ和NP的交点为

Figure BDA0000390088330000067
解直线方程(5)和(6)组成的方程组得四边形ABCD重心为
Figure BDA0000390088330000068
同理,按照步骤2和步骤3的方法求得求四边形EFGH、IJKL的重心
Figure BDA0000390088330000069
The intersection point of line segment OQ and NP is
Figure BDA0000390088330000067
Solving the system of equations composed of the straight line equations (5) and (6), the center of gravity of the quadrilateral ABCD is
Figure BDA0000390088330000068
In the same way, find the center of gravity of the quadrilateral EFGH and IJKL according to the method of step 2 and step 3
Figure BDA0000390088330000069

步骤4:求声源最优位置Step 4: Find the optimal position of the sound source

声源最优位置S(xS,yS)坐标 x S = x R 1 + x R 2 + x R 3 3 , y S = y R 1 + y R 2 + y R 3 3 , 以此代表真实的声源的位置。Optimal position S(x S ,y S ) coordinates of sound source x S = x R 1 + x R 2 + x R 3 3 , the y S = the y R 1 + the y R 2 + the y R 3 3 , This represents the position of the real sound source.

3、机器人Kinect声音定位导航算法3. Robot Kinect voice positioning and navigation algorithm

参照图6,机器人上装有声源,发送声音到空间中,某一时刻机器人位于W(xW,yW),机器人目标位置为V(xV,yV)。机器人上装有磁罗盘,可以测出机器人自身坐标轴y1和北向的夹角。不失一般性,设δ为坐标轴y和北向的夹角。Referring to Figure 6, the robot is equipped with a sound source, which sends sound into the space. At a certain moment, the robot is located at W(x W ,y W ), and the target position of the robot is V(x V ,y V ). The robot is equipped with a magnetic compass, which can measure the angle between the robot's own coordinate axis y 1 and the north direction. Without loss of generality, let δ be the angle between the coordinate axis y and the north direction.

φ表示机器人偏离理论行走轨线的夹角,如果机器人整个控制系统及轮子结构均无误差,则给机器人一直行信号,使其行走一定距离即到达目标V(xV,yV),即机器人理论上的行走路线如图WV实线所示。而实际给机器人一直行信号,由于轮子结构误差,机器人总会偏离原始方向,即实际机器人沿着WV虚线行走。φ represents the angle at which the robot deviates from the theoretical walking trajectory. If there is no error in the entire control system and wheel structure of the robot, a straight signal is given to the robot to make it walk a certain distance to reach the target V(x V , y V ), that is, the robot The theoretical walking route is shown by the solid line WV in the figure. However, when the robot is actually given a straight-going signal, due to the structural error of the wheels, the robot will always deviate from the original direction, that is, the actual robot walks along the WV dotted line.

ε表示机器人最终到达以目标点V(xV,yV)为圆心的误差圆半径,因为实际中存在其他各种因素的影响,例如机器人本身的尺寸,机器人最终到达的位置不一定和目标点V(xV,yV)完全重合,所以根据实际精度要求定义一误差圆。只要机器人到达以目标点V(xV,yV)为圆心,ε为半径的误差圆内,则认为机器人已到达目标点。Kinect声音定位机器人导航算法步骤如下:ε indicates that the robot finally reaches the radius of the error circle with the target point V(x V , y V ) as the center, because there are various other factors in practice, such as the size of the robot itself, the final position of the robot is not necessarily the same as the target point V(x V , y V ) coincide completely, so an error circle is defined according to the actual precision requirement. As long as the robot reaches the target point V(x V , y V ) as the center of the error circle and ε as the radius, the robot is considered to have reached the target point. Kinect voice positioning robot navigation algorithm steps are as follows:

步骤1:step 1:

根据机器人当前位置W(xW,yW)和目标位置V(xV,yV)可计算出直线WV与水平x轴正向的夹角θ及线段WV的距离d,

Figure BDA0000390088330000071
则为了朝目标V(xV,yV)运动,机器人调整其y1轴方向和北向夹角为90°-θ-δ。机器人从起点W(xW,yW)开始行走。According to the current position of the robot W(x W ,y W ) and the target position V(x V ,y V ), the angle θ between the straight line WV and the positive direction of the horizontal x-axis and the distance d of the line segment WV can be calculated.
Figure BDA0000390088330000071
Then, in order to move towards the target V(x V , y V ), the robot adjusts the angle between the direction of its y 1 axis and the north direction to be 90°-θ-δ. The robot starts walking from the starting point W(x W ,y W ).

步骤2:Step 2:

机器人每隔1s发出持续50ms的声音。设某一时刻机器人位于U(xU,yU),计算机处理三个Kinect传感器获得的声源方向信息得到机器人当前位置U(xU,yU),将该位置通过无线发送给机器人。The robot makes a sound lasting 50ms every 1s. Assuming that the robot is located at U(x U ,y U ) at a certain moment, the computer processes the sound source direction information obtained by the three Kinect sensors to obtain the current position U(x U ,y U ) of the robot, and sends the position to the robot wirelessly.

步骤3:Step 3:

机器人计算当前位置U(xU,yU)和起点W(xW,yW)的连线WU与WV的偏离角度φ,机器人自动调整其y1轴朝着偏离角度φ减小的方向运动。The robot calculates the deviation angle φ between the current position U(x U ,y U ) and the starting point W(x W ,y W ) between WU and WV, and the robot automatically adjusts its y 1 axis to move in the direction where the deviation angle φ decreases .

步骤4:Step 4:

重复步骤2到步骤3,最终,当计算机处理三个Kinect传感器获得的声源方向信息得到机器人当前位置在以目标点V(xV,yV)为圆心,ε为半径的误差圆内,则认为机器人已到达目标位置,完成了机器人从起点W(xW,yW)到目标点V(xV,yV)的导航任务。Repeat steps 2 to 3. Finally, when the computer processes the sound source direction information obtained by the three Kinect sensors, the current position of the robot is within the error circle with the target point V(x V , y V ) as the center and ε as the radius, then It is considered that the robot has reached the target position, and the navigation task of the robot from the starting point W(x W ,y W ) to the target point V(x V ,y V ) is completed.

步骤5:Step 5:

从点V(xV,yV)到目标点Z(xZ,yZ)的导航任务重复步骤1到4。Steps 1 to 4 are repeated for the navigation task from point V(x V ,y V ) to target point Z(x Z ,y Z ).

按照上述步骤不断地重复,基于Kinect的声音定位就可实现机器人的连续导航任务,证明了上述Kinect的声音定位算法正确且有效。By repeating the above steps continuously, the Kinect-based sound localization can realize the continuous navigation task of the robot, which proves that the above-mentioned Kinect sound localization algorithm is correct and effective.

图7是机器人整个声音定位导航控制原理框图,PC(个人电脑)机上连接3个Kinect传感器和一个无线数传模块,无线数传模块用于PC机和机器人之间的通信。机器人上包括机器人核心处理器、电机驱动、磁罗盘、无线数传模块和声源模块。机器人核心处理器用于机器人的运动控制,机器人和PC机的通信,采集传感器信息等。电机驱动用于机器人电机功率的放大。磁罗盘用于测量机器人自身相对地理真北的夹角。声源模块用于机器人发出声音信号,以便用3个Kinect传感器实现机器人声音定位。Figure 7 is a block diagram of the robot's entire sound positioning and navigation control principle. Three Kinect sensors and a wireless data transmission module are connected to the PC (personal computer). The wireless data transmission module is used for communication between the PC and the robot. The robot includes a robot core processor, motor drive, magnetic compass, wireless data transmission module and sound source module. The core processor of the robot is used for the motion control of the robot, the communication between the robot and the PC, and the collection of sensor information. The motor drive is used to amplify the power of the robot motor. The magnetic compass is used to measure the angle between the robot itself and the geographic true north. The sound source module is used for the robot to send out sound signals, so as to realize the sound positioning of the robot with three Kinect sensors.

上述内容仅是本发明的优选实施例,在此基础上,本领域技术人员能够做出一些变形,在不偏离本发明的思想的情况下,这些变形也应在本发明的保护范围之内。The above content is only a preferred embodiment of the present invention. On this basis, those skilled in the art can make some modifications, and these modifications should also be within the protection scope of the present invention without departing from the idea of the present invention.

Claims (2)

1.一种机器人声音定位方法,其特征在于,包括:1. A robot sound localization method is characterized in that, comprising: 通过至少两个Kinect作为声音传感器,获取来自机器人的声音的来源方向角;Obtain the source direction angle of the sound from the robot by using at least two Kinects as sound sensors; 根据所述来源方向角和所述至少两个Kinect的位置,确定每两个Kinect所确定的声源所在偏差扇面区域;According to the source direction angle and the positions of the at least two Kinects, determine the deviation fan area where the sound sources determined by every two Kinects are located; 确定每两个偏差扇面区域的交叉区域的几何重心;Determine the geometric center of gravity of the intersection region of every two deviation fan regions; 根据所述确定的几何重心,通过几何重心法计算声源最优位置,所述声源最优位置为定位得到的所述机器人的位置。According to the determined geometric center of gravity, the optimal position of the sound source is calculated by the geometric center of gravity method, and the optimal position of the sound source is the position of the robot obtained by positioning. 2.根据权利要求1所述的机器人声音定位方法,其特征在于,在通过几何重心法计算声源最优位置之后,所述方法还包括:2. robot sound localization method according to claim 1, is characterized in that, after calculating sound source optimal position by geometric center of gravity method, described method also comprises: 根据目标位置和所述声源最优位置,确定所述机器人行动的路线;Determine the route of action of the robot according to the target position and the optimal position of the sound source; 控制所述机器人沿所述路线运动到所述目标位置。The robot is controlled to move to the target position along the route.
CN201310455238.9A 2013-09-29 2013-09-29 Robot sound positioning method Expired - Fee Related CN103472434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310455238.9A CN103472434B (en) 2013-09-29 2013-09-29 Robot sound positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310455238.9A CN103472434B (en) 2013-09-29 2013-09-29 Robot sound positioning method

Publications (2)

Publication Number Publication Date
CN103472434A true CN103472434A (en) 2013-12-25
CN103472434B CN103472434B (en) 2015-05-20

Family

ID=49797354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310455238.9A Expired - Fee Related CN103472434B (en) 2013-09-29 2013-09-29 Robot sound positioning method

Country Status (1)

Country Link
CN (1) CN103472434B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163209A (en) * 2015-08-31 2015-12-16 深圳前海达闼科技有限公司 Voice receiving processing method and voice receiving processing device
CN106291469A (en) * 2016-10-18 2017-01-04 武汉轻工大学 A kind of three dimensions source of sound localization method and system
CN106483504A (en) * 2015-08-31 2017-03-08 松下知识产权经营株式会社 Sound source detection device
CN108525259A (en) * 2018-04-27 2018-09-14 湖南环境生物职业技术学院 A kind of system for football positioning ball test
CN108579057A (en) * 2018-04-27 2018-09-28 长沙修恒信息科技有限公司 A kind of football positioning ball test method
CN109270491A (en) * 2018-08-17 2019-01-25 安徽信息工程学院 Indoor acoustic wave positioning device based on Kinect
CN110288984A (en) * 2019-05-17 2019-09-27 南昌大学 A kind of audio recognition method based on Kinect

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001023104A2 (en) * 1999-09-29 2001-04-05 1...Limited Method and apparatus to direct sound using an array of output transducers
CN201210187Y (en) * 2008-06-13 2009-03-18 河北工业大学 Robot automatically searching sound source
CN102707262A (en) * 2012-06-20 2012-10-03 太仓博天网络科技有限公司 Sound localization system based on microphone array

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001023104A2 (en) * 1999-09-29 2001-04-05 1...Limited Method and apparatus to direct sound using an array of output transducers
CN201210187Y (en) * 2008-06-13 2009-03-18 河北工业大学 Robot automatically searching sound source
CN102707262A (en) * 2012-06-20 2012-10-03 太仓博天网络科技有限公司 Sound localization system based on microphone array

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
居太亮等: "基于任意麦克风阵列的声源二维DOA估计算法研究", 《通信学报》, vol. 26, no. 08, 31 August 2005 (2005-08-31), pages 129 - 133 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163209A (en) * 2015-08-31 2015-12-16 深圳前海达闼科技有限公司 Voice receiving processing method and voice receiving processing device
CN106483504A (en) * 2015-08-31 2017-03-08 松下知识产权经营株式会社 Sound source detection device
US10306360B2 (en) 2015-08-31 2019-05-28 Cloudminds (Shenzhen) Technologies Co., Ltd. Method and device for processing received sound and memory medium, mobile terminal, robot having the same
CN106483504B (en) * 2015-08-31 2021-07-30 松下知识产权经营株式会社 Sound source detecting device
CN106291469A (en) * 2016-10-18 2017-01-04 武汉轻工大学 A kind of three dimensions source of sound localization method and system
CN106291469B (en) * 2016-10-18 2018-11-23 武汉轻工大学 A kind of three-dimensional space source of sound localization method and system
CN108525259A (en) * 2018-04-27 2018-09-14 湖南环境生物职业技术学院 A kind of system for football positioning ball test
CN108579057A (en) * 2018-04-27 2018-09-28 长沙修恒信息科技有限公司 A kind of football positioning ball test method
CN108525259B (en) * 2018-04-27 2020-11-27 湖南环境生物职业技术学院 System for be used for football location ball to test
CN109270491A (en) * 2018-08-17 2019-01-25 安徽信息工程学院 Indoor acoustic wave positioning device based on Kinect
CN110288984A (en) * 2019-05-17 2019-09-27 南昌大学 A kind of audio recognition method based on Kinect

Also Published As

Publication number Publication date
CN103472434B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN103472434B (en) Robot sound positioning method
CN106774301B (en) Obstacle avoidance following method and electronic equipment
CN108290294B (en) Mobile robot and its control method
CN105072580B (en) WIFI fingerprint map automated collection systems and method based on sweeping robot
CN105979442B (en) Noise suppressing method, device and movable equipment
CN103412565B (en) A kind of robot localization method with the quick estimated capacity of global position
CN108180901A (en) Indoor navigation method, device, robot and the storage medium of blind-guidance robot
US20190202067A1 (en) Method and device for localizing robot and robot
WO2021146862A1 (en) Indoor positioning method for mobile device, mobile device and control system
CN105737826B (en) Pedestrian's indoor orientation method
CN109917788B (en) Control method and device for robot to walk along wall
CN207373179U (en) A kind of robot control system for being used for SLAM and navigation
CN111356902A (en) RADAR-assisted visual-inertial odometry initialization
CN110319834A (en) A kind of method and robot of Indoor Robot positioning
WO2019001237A1 (en) Mobile electronic device, and method in mobile electronic device
JP2017514124A (en) How to localize the robot in the localization plane
WO2018228258A1 (en) Mobile electronic device and method therein
CN112729301A (en) Indoor positioning method based on multi-source data fusion
CN113359769B (en) Indoor autonomous mobile robot composite navigation method and device
CN115552348A (en) Moving object following method, robot, and computer-readable storage medium
CN104569958A (en) Target positioning method and system based on ultrasonic wave and inertial navigation combination
WO2023274270A1 (en) Robot preoperative navigation method and system, storage medium, and computer device
CN110871440B (en) Method and device for controlling robot running
KR102471487B1 (en) Cleaning robot and controlling method thereof
Clark et al. Robust vision-based indoor localization

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201126

Address after: Area A129, 4th floor, building 4, Baitai Industrial Park, Yazhou Bay science and Technology City, Yazhou District, Sanya City, Hainan Province, 572024

Patentee after: Nanhai innovation and development base of Sanya Harbin Engineering University

Address before: 150001 Heilongjiang, Nangang District, Nantong street,, Harbin Engineering University, Department of Intellectual Property Office

Patentee before: HARBIN ENGINEERING University

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

Granted publication date: 20150520

Termination date: 20210929