[go: up one dir, main page]

WO2018192284A1 - Sonar-based robot tracking method and system - Google Patents

Sonar-based robot tracking method and system Download PDF

Info

Publication number
WO2018192284A1
WO2018192284A1 PCT/CN2018/073825 CN2018073825W WO2018192284A1 WO 2018192284 A1 WO2018192284 A1 WO 2018192284A1 CN 2018073825 W CN2018073825 W CN 2018073825W WO 2018192284 A1 WO2018192284 A1 WO 2018192284A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinator
data
routing node
motion controller
tracking
Prior art date
Application number
PCT/CN2018/073825
Other languages
French (fr)
Chinese (zh)
Inventor
王振华
Original Assignee
南京阿凡达机器人科技有限公司
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 南京阿凡达机器人科技有限公司 filed Critical 南京阿凡达机器人科技有限公司
Publication of WO2018192284A1 publication Critical patent/WO2018192284A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0255Control of position or course in two dimensions specially adapted to land vehicles using acoustic signals, e.g. ultra-sonic singals

Definitions

  • the present disclosure provides a sonar-based robot tracking method in which a sonar transceiver as a coordinator is installed on a robot, and a sonar transceiver provided as a first routing node on the tracking target includes the following steps:
  • the motion controller identifies the positioning data and the ranging data according to the target, obtains a tracking state, and calculates a following path according to the tracking state;
  • the tracking target includes: a sonar transceiver as a first routing node;
  • the motion controller is configured to identify the positioning data according to the target and the ranging data, obtain a tracking status, and calculate a following path according to the tracking status; and send a corresponding action instruction sequence according to the following path Giving the servo controller;
  • the second routing node is configured to: after receiving the first frame command sequence and the second frame command sequence, acquire a second time of receiving the sound wave emitted by the first routing node, and according to The second time data is calculated by the second time, and the sending the second distance data to the coordinator includes: the second routing node receiving the first frame command sequence and the second frame command After the sequence, according to the delay time delay, start timing; and, when receiving the sound wave emitted by the first routing node, the second routing node stops timing, obtaining a second time; Calculating the second distance data by using the second time and the preset distance formula; and transmitting the second distance data to the coordinator.
  • the motion controller is configured to obtain a tracking state according to the target identification positioning data and the ranging data, and calculate a following path according to the tracking state, where the motion controller is configured to
  • the target identifies the positioning data and the ranging data, and determines whether there is an obstacle between the tracking targets; if there is no obstacle, the following path is obtained without obstacle avoidance; if there is an obstacle, according to the preset
  • the obstacle avoidance method obtains the following path of obstacle avoidance.
  • the method of the present disclosure uses a plurality of sonar sensors to locate the ranging.
  • the error is minimized, and the distribution distance of the two sonar transceivers on the robot is as large as possible.
  • the straight line distance is greater than 15 cm (because the dead zone of the sonar receiver is typically around 15 cm) and the two sonar transceivers are distorted in the vertical direction.
  • the installation height of the two sonar transceivers on the robot is preferably 60cm-80cm from the ground (because the sonar transceiver on the robot receives the signal of the sonar transceiver that is tracking the target wearing on the belt, the waist of the person is on the ground.
  • the second routing node After receiving the first frame command sequence sent by the coordinator and the second frame command sequence sent by the first routing node, the second routing node starts timing after delaying according to the delay time in the second frame command sequence. And waiting to receive the acoustic signal transmitted by the first routing node. After the second routing node receives the acoustic signal transmitted by the first routing node, the timing is stopped, and the second routing node reads the second time t2 of the timing, and then calculates according to the “transit time detection ranging method”. The robot goes to the second distance data S2 of the tracking target, and temporarily stores the second distance data S2 into the data buffer.
  • the coordinator After receiving the third frame command sequence sent by the second routing node, the coordinator parses the second distance data S2 measured by the second routing node from the third frame data.
  • the coordinator uses the coordinator identification number ID0 as the first bit data, the first distance data S1 as the second bit data, and the second distance data S2 as the third bit data, and the three kinds of data are sequentially composed of the fourth frame command sequence.
  • the first distance data S1 and the second distance data S2 constitute target recognition positioning data.
  • Equation (2) h is the distance between the transmitting end and the receiving end, and S is the distance between the sonar transceiver and the object to be measured.
  • the coordinator calculates the fourth distance data according to the fourth time and the preset ranging formula
  • the second routing node After receiving the fifth frame command sequence sent by the coordinator, the second routing node first sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for receiving the echo signal, when the second routing node After receiving the echo signal, the timing is stopped and the second routing time is read by the second routing node, and then the third distance data S3 of the robot to the obstacle is calculated according to the “transit time detection ranging method”, and the second The routing node takes the identity number ID2 as the first bit data, the ranging command as the second bit data, and the third distance data S3 as the third bit data to form the sixth frame command sequence, and the wireless signal transmitting module on the second routing node The sixth frame command sequence is sent to the coordinator. The second routing node then stops working and enters the wait command state.
  • the coordinator in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires the sound wave according to the first routing node
  • the target identifies the positioning data, and sends the target identification positioning data to the motion controller;
  • the servo controller is configured to drive the driving device to implement a following action according to the received sequence of the motion instruction.
  • the motion controller of the robot sends a target recognition positioning instruction to the coordinator according to a certain frequency (for example: once every 1.5 seconds), and the motion controller can receive from the coordinator.
  • the target identifies the positioning data, and the motion controller determines the orientation of the tracking target according to the target recognition positioning data sent back by the coordinator and calculates the distance between the robot and the target.
  • the specific process of the coordinator obtaining the target identification positioning data is:
  • the second routing node is configured to: after receiving the first frame command sequence and the second frame command sequence, acquire a second time of receiving the sound wave emitted by the first routing node, and according to And calculating, by the second time, the second distance data, and sending the second distance data to the coordinator includes:
  • the second routing node After receiving the fifth frame command sequence sent by the coordinator, the second routing node first sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for receiving the echo signal, when the second routing node After receiving the echo signal, the timing is stopped and the second routing time is read by the second routing node, and then the third distance data S3 of the robot to the obstacle is calculated according to the “transit time detection ranging method”, and the second The routing node takes the identity number ID2 as the first bit data, the ranging command as the second bit data, and the third distance data S3 as the third bit data to form the sixth frame command sequence, and the wireless signal transmitting module on the second routing node The sixth frame command sequence is sent to the coordinator. The second routing node then stops working and enters the wait command state.
  • the tracking system of the present disclosure realizes various uses of the sonar transceiver, which not only realizes the product function but also reduces the manufacturing cost, and can quickly and quickly pull the information of the obstacle and the tracking target in the external environment.
  • a number of functions are realized at a lower cost and a simple structure, and the positioning and tracking are accurate and the application value is high.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Acoustics & Sound (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

A sonar-based robot tracking method and system, comprising: providing a sonar transceiver on a tracking target as a first routing node; and mounting two sonar transceivers on a robot, with one serving as a coordinator and the other one serving as a second routing node. A sonar transceiver is used to realize tracking target recognition and location, and obstacle ranging, thereby realizing multiple uses of a single sensor, so that not only is the product function realized, but the manufacturing cost is also reduced. Furthermore, information about an obstacle in the external environment can be quickly detected. The structure is simple, positioning and tracking are accurate, and the application value is high.

Description

一种基于声纳的机器人跟踪方法及系统Sonar-based robot tracking method and system
本申请要求2017年04月22日提交的申请号为:201710268355.2、发明名称为“一种基于声纳的机器人跟踪方法”的中国专利申请的优先权,其全部内容合并在此。The present application claims the priority of the Japanese Patent Application Serial No. No. No. No. No. No. No. No. No
技术领域Technical field
本发明属于移动机器人跟踪定位、导航、避障技术领域,特别是一种基于声纳的机器人跟踪方法及系统。The invention belongs to the field of tracking, positioning, navigation and obstacle avoidance of mobile robots, in particular to a sonar-based robot tracking method and system.
背景技术Background technique
为了使机器人服务于特定的目标对象,帮助人们完成任务,要求这类机器人应该具有目标识别和自主导航的功能。目前具有目标识别和自主导航的机器人普遍通过“机器视觉系统”识别目标,并辅助以其它传感器来完成自主导航功能。In order for the robot to serve a specific target object and help people complete the task, such a robot should be required to have the functions of target recognition and autonomous navigation. Currently, robots with target recognition and autonomous navigation generally recognize targets through a "machine vision system" and assist in performing autonomous navigation functions with other sensors.
“机器视觉”是对人的视觉功能进行模拟,获取目标信息,并对目标信息进行处理。根据视觉传感器数据不同,分为“单目视觉”和“双目视觉”等。“单目视觉系统”对目标的表达主要体现在二维图像的明暗度、纹理、表面轮廓线、阴影等,它在成像过程中损失了成像点的深度信息,这是这类系统一个严重缺点。另外“单目视觉”的感知范围有限,缩小焦距增大广角往往需要增大图像畸变为代价,这就是这类系统的另一个缺点。“双目视觉”符合生物视觉的结构,在三维信息获取上有优势,但是双目摄像的结构复杂,算法不成熟。而且“机器视觉”通过提取目标图像数据,通过3D建模及大量复杂算法才能实现,对于硬件平台的要求高,成本也就居高不下。"Machine Vision" simulates a person's visual function, acquires target information, and processes the target information. According to different visual sensor data, it is divided into "monocular vision" and "binocular vision". The expression of the target of the "monocular vision system" is mainly reflected in the brightness and darkness of the two-dimensional image, texture, surface contour, shadow, etc., which loses the depth information of the imaged point during the imaging process, which is a serious disadvantage of this type of system. . In addition, the "single-eye vision" has a limited range of perception, and reducing the focal length to increase the wide angle often requires an increase in image distortion cost, which is another disadvantage of such systems. "Binocular vision" conforms to the structure of biological vision and has advantages in acquiring three-dimensional information, but the structure of binocular imaging is complex and the algorithm is immature. Moreover, "machine vision" can be realized by extracting target image data through 3D modeling and a large number of complex algorithms. The requirements for the hardware platform are high and the cost is high.
目前“机器视觉”的实现往往借助于PC来进行大量算法计算,基于嵌入式的“机器视觉”应用还处在研究阶段。即使有应用,效果也不理想,在跟踪时很容易跟丢目标。At present, the implementation of "machine vision" often uses a PC to perform a large number of algorithm calculations, and the embedded "machine vision" application is still in the research stage. Even if there is an application, the effect is not ideal, and it is easy to lose the target when tracking.
发明内容Summary of the invention
本发明旨在于提出一种基于声纳的机器人跟踪方法及系统,能够实现移动机器人基于声纳实现定位、跟踪与避障功能,以较低的成本和简单的结构实现了多项功能,避免损失成像点的深度信息和图像畸变,定位跟踪准确。The invention aims to propose a sonar-based robot tracking method and system, which can realize the positioning, tracking and obstacle avoidance functions of the mobile robot based on sonar, realize multiple functions with low cost and simple structure, and avoid loss. Depth information and image distortion of the imaging point, and the positioning tracking is accurate.
为实现上述发明目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
本公开提供一种基于声纳的机器人跟踪方法,机器人上安装有一个作为协调器的声纳收发器,跟踪目标上设有作为第一路由节点的声纳收发器,包括以下步骤:The present disclosure provides a sonar-based robot tracking method in which a sonar transceiver as a coordinator is installed on a robot, and a sonar transceiver provided as a first routing node on the tracking target includes the following steps:
1:在对跟踪目标进行跟踪的过程中,当所述协调器接收到机器人的运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器;1: in the process of tracking the tracking target, when the coordinator receives the target recognition positioning instruction issued by the motion controller of the robot, the coordinator acquires the target recognition and positioning according to the sound wave emitted by the first routing node. Data, and transmitting the target identification positioning data to the motion controller;
2:当所述协调器接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器;2: when the coordinator receives the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller;
3:所述运动控制器根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;3: The motion controller identifies the positioning data and the ranging data according to the target, obtains a tracking state, and calculates a following path according to the tracking state;
4:所述运动控制器根据所述跟随路径发送对应的动作指令序列给所述机器人的伺服控制器,由所述伺服控制器驱动所述机器人上的驱动装置实现跟随动作。4: The motion controller sends a corresponding motion instruction sequence to the servo controller of the robot according to the following path, and the servo controller drives the driving device on the robot to implement a following action.
进一步的,所述机器人上还安装有另一个声呐收发器作为第二路由节点;所述步骤1包括以下步骤:Further, another sonar transceiver is installed on the robot as the second routing node; the step 1 includes the following steps:
11:当所述协调器接收到所述目标识别定位指令时,所述协调器广播发送第一帧命令序列;11: when the coordinator receives the target identification positioning instruction, the coordinator broadcasts a first frame command sequence;
12:第一路由节点接收到所述第一帧命令序列,生成包含有延时时间的第二帧命令序列并广播发送所述第二帧命令序列之后,根据所述延时时间延时后发射声波;12: The first routing node receives the first frame command sequence, generates a second frame command sequence including a delay time, and broadcasts and transmits the second frame command sequence, and then transmits according to the delay time delay. Sound wave
13:所述协调器接收到所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离 数据;After receiving the second frame command sequence, the coordinator obtains a first time of receiving the sound wave emitted by the first routing node, and calculates the first distance data according to the first time;
14:第二路由节点接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;After receiving the first frame command sequence and the second frame command sequence, the second routing node acquires a second time of receiving the sound wave emitted by the first routing node, and calculates according to the second time. Obtaining second distance data, and sending the second distance data to the coordinator;
15:所述协调器将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。15: The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
进一步的,所述步骤14具体包括以下步骤:141:第二路由节点接收到所述第一帧命令序列和所述第二帧命令序列后,根据所述延时时间延时后,开始计时;142:当接收到所述第一路由节点发射的声波时,所述第二路由节点停止计时,得到第二时间;143:所述第二路由节点根据所述第二时间和预设距离公式,计算得到所述第二距离数据;144:所述第二路由节点将所述第二距离数据发送给所述协调器。Further, the step 14 includes the following steps: 141: after receiving the first frame command sequence and the second frame command sequence, the second routing node starts timing according to the delay time delay; 142: When receiving the sound wave emitted by the first routing node, the second routing node stops timing to obtain a second time; 143: the second routing node is configured according to the second time and a preset distance formula. Calculating the second distance data; 144: the second routing node sends the second distance data to the coordinator.
进一步的,所述步骤2:当所述协调器接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器包括以下步骤:Further, the step 2: when the coordinator receives the ranging instruction issued by the motion controller, the coordinator acquires the ranging data, and sends the ranging data to the motion controller, including the following step:
21:当所述协调器接收到所述运动控制器发送的测距指令时,所述协调器将第五帧命令序列发送给第二路由节点;21: When the coordinator receives the ranging instruction sent by the motion controller, the coordinator sends a fifth frame command sequence to the second routing node;
22:当所述第二路由节点收到所述第五帧命令序列时,所述第二路由节点发射声波,并得到接收到所述第二路由节点发送的声波的回波信号的第三时间;22: When the second routing node receives the fifth frame command sequence, the second routing node transmits an acoustic wave, and obtains a third time of receiving an echo signal of the acoustic wave sent by the second routing node. ;
23:所述第二路由节点根据所述第三时间和预设测距公式,计算得到第三距离数据,并将所述第三距离数据发送至所述协调器;23: The second routing node calculates third distance data according to the third time and a preset ranging formula, and sends the third distance data to the coordinator;
24:当所述协调器接收到所述第三距离数据后,所述协调器发射声波,并得到接收到所述协调器发送的声波的回波信号的第四时间;24: After the coordinator receives the third distance data, the coordinator transmits an acoustic wave, and obtains a fourth time of receiving an echo signal of the acoustic wave sent by the coordinator;
25:所述协调器根据所述第四时间和所述预设测距公式,计算得到第四距离数据;25: The coordinator calculates the fourth distance data according to the fourth time and the preset ranging formula;
26:所述协调器将所述第三距离数据和所述第四距离数据作为所述测距数据发送至运动控制器。26: The coordinator transmits the third distance data and the fourth distance data as the ranging data to a motion controller.
进一步的,所述步骤3:所述运动控制器根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径包括以下步骤:31:所述运动控制器根据所述目标识别定位数据和所述测距数据,判断距离所述跟踪目标之间是否存在障碍物;32:若不存在障碍物,则得到无需避障的跟随路径;33:若存在障碍物,则根据预设避障方法得到避障的跟随路径。Further, the step 3: the motion controller identifies the positioning data according to the target and the ranging data, obtains a tracking state, and calculates a following path according to the tracking state, including the following steps: 31: the motion The controller identifies the positioning data and the ranging data according to the target, and determines whether there is an obstacle between the tracking targets; 32: if there is no obstacle, the following path is obtained without obstacle avoidance; 33: if present Obstacle, the follow-up path of obstacle avoidance is obtained according to the preset obstacle avoidance method.
进一步的,所述步骤33:若存在障碍物,则根据预设避障方法得到避障的跟随路径包括以下步骤:331:当到所述障碍物的距离小于预设距离时,则采用停止前进的跟随路径;332:当所述障碍物不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。Further, the step 33: if there is an obstacle, obtaining the following path of the obstacle avoidance according to the preset obstacle avoidance method includes the following steps: 331: when the distance to the obstacle is less than the preset distance, the stop is adopted Follow path; 332: When the obstacle is not less than the preset distance, the following path of the slow steering is obtained according to the ranging data.
本公开还提供一种基于声纳的机器人跟踪系统,包括:跟踪目标和机器人;The present disclosure also provides a sonar-based robot tracking system, including: tracking a target and a robot;
所述跟踪目标包括:作为第一路由节点的声纳收发器;The tracking target includes: a sonar transceiver as a first routing node;
所述机器人包括:作为协调器的声纳收发器、运动控制器、伺服控制器和驱动装置;The robot includes: a sonar transceiver as a coordinator, a motion controller, a servo controller, and a driving device;
所述协调器,用于在对跟踪目标进行跟踪的过程中,当接收到所述运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器;The coordinator, in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires target recognition according to the sound wave emitted by the first routing node Positioning data and transmitting the target identification positioning data to the motion controller;
以及,当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器;And, when receiving the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller;
所述运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;以及,根据所述跟随路径发送对应的动作指令序列给所述伺服控制器;The motion controller is configured to identify the positioning data according to the target and the ranging data, obtain a tracking status, and calculate a following path according to the tracking status; and send a corresponding action instruction sequence according to the following path Giving the servo controller;
所述伺服控制器,用于根据接收到的所述动作指令序列驱动所述驱动装置实现跟随动作。The servo controller is configured to drive the driving device to implement a following action according to the received sequence of the motion instruction.
进一步的,所述机器人还包括:另一个作为第二路由节点的声纳收发器;所述协调器,用于在对跟踪目标进行跟踪的过程中,当接收到所述运 动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器包括:Further, the robot further includes: another sonar transceiver as a second routing node; the coordinator is configured to receive the target issued by the motion controller during tracking of the tracking target When the positioning command is identified, the coordinator acquires the target identification positioning data according to the sound wave transmitted by the first routing node, and sends the target identification positioning data to the motion controller, including:
所述协调器,用于当接收到所述目标识别定位指令时,所述协调器广播发送第一帧命令序列;The coordinator, when the target recognition positioning instruction is received, the coordinator broadcasts a first frame command sequence;
所述第一路由节点,用于接收到所述第一帧命令序列,生成包含有延时时间的第二帧命令序列并广播发送所述第二帧命令序列之后,根据所述延时时间延时后发射声波;The first routing node is configured to receive the first frame command sequence, generate a second frame command sequence including a delay time, and broadcast and transmit the second frame command sequence, according to the delay time delay Acoustic waves are emitted afterwards;
所述协调器,用于接收到所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离数据;The coordinator is configured to: after receiving the second frame command sequence, acquire a first time of receiving the sound wave emitted by the first routing node, and calculate the first distance data according to the first time;
所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;The second routing node, after receiving the first frame command sequence and the second frame command sequence, acquiring a second time of receiving the sound wave emitted by the first routing node, and according to the Calculating, by the second time, the second distance data, and sending the second distance data to the coordinator;
所述协调器,将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
进一步的,所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器包括:所述第二路由节点,接收到所述第一帧命令序列和所述第二帧命令序列后,根据所述延时时间延时后,开始计时;以及,当接收到所述第一路由节点发射的声波时,所述第二路由节点停止计时,得到第二时间;以及,根据所述第二时间和预设距离公式,计算得到所述第二距离数据;以及,将所述第二距离数据发送给所述协调器。Further, the second routing node is configured to: after receiving the first frame command sequence and the second frame command sequence, acquire a second time of receiving the sound wave emitted by the first routing node, and according to The second time data is calculated by the second time, and the sending the second distance data to the coordinator includes: the second routing node receiving the first frame command sequence and the second frame command After the sequence, according to the delay time delay, start timing; and, when receiving the sound wave emitted by the first routing node, the second routing node stops timing, obtaining a second time; Calculating the second distance data by using the second time and the preset distance formula; and transmitting the second distance data to the coordinator.
进一步的,所述协调器,用于当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器包括:Further, the coordinator is configured to: when receiving the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller, including:
所述协调器,用于当接收到所述运动控制器发送的测距指令时,所述协调器将第五帧命令序列发送给第二路由节点;The coordinator, when receiving the ranging instruction sent by the motion controller, the coordinator sends a fifth frame command sequence to the second routing node;
所述第二路由节点,用于当收到所述第五帧命令序列时,所述第二路由节点发射声波,并得到接收到所述第二路由节点发送的声波的回波信号的第三时间;以及,根据所述第三时间和预设测距公式,计算得到第三距离数据,并将所述第三距离数据发送至所述协调器;The second routing node is configured to: when receiving the sequence of the fifth frame command, the second routing node transmits an acoustic wave, and obtains a third of an echo signal of the acoustic wave sent by the second routing node. And calculating, according to the third time and the preset ranging formula, the third distance data, and sending the third distance data to the coordinator;
所述协调器,用于当接收到所述第三距离数据后,所述协调器发射声波,并得到接收到所述协调器发送的声波的回波信号的第四时间;以及,根据所述第四时间和所述预设测距公式,计算得到第四距离数据;以及,将所述第三距离数据和所述第四距离数据作为所述测距数据发送至运动控制器。The coordinator, configured to: after receiving the third distance data, the coordinator emits an acoustic wave, and obtains a fourth time of receiving an echo signal of the acoustic wave sent by the coordinator; and, according to the And calculating a fourth distance data by using the fourth time and the preset ranging formula; and transmitting the third distance data and the fourth distance data as the ranging data to the motion controller.
进一步的,所述运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径包括:所述运动控制器,用于根据所述目标识别定位数据和所述测距数据,判断距离所述跟踪目标之间是否存在障碍物;若不存在障碍物,则得到无需避障的跟随路径;若存在障碍物,则根据预设避障方法得到避障的跟随路径。Further, the motion controller is configured to obtain a tracking state according to the target identification positioning data and the ranging data, and calculate a following path according to the tracking state, where the motion controller is configured to The target identifies the positioning data and the ranging data, and determines whether there is an obstacle between the tracking targets; if there is no obstacle, the following path is obtained without obstacle avoidance; if there is an obstacle, according to the preset The obstacle avoidance method obtains the following path of obstacle avoidance.
进一步的,所述运动控制器,若存在障碍物,则根据预设避障方法得到避障的跟随路径包括:所述运动控制器,用于当到所述障碍物的距离小于预设距离时,采用停止前进的跟随路径;以及,当所述障碍物不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。Further, if there is an obstacle, the motion controller obtains an obstacle avoidance follow path according to the preset obstacle avoidance method, and the motion controller is configured to: when the distance to the obstacle is less than a preset distance And adopting a following path for stopping the advance; and, when the obstacle is not less than the preset distance, obtaining a following path of the slow steering according to the ranging data.
本公开的基于声纳的机器人跟踪方法及系统,把对跟踪目标的识别转化成对特定信号的识别,对特定信号的识别要容易得多,简单得多。这样大大提高了识别率和定位的准确性,同时声纳收发器兼顾测距功能。声纳收发器既可以实现对目标的识别和定位,也可以测量障碍物的距离,实现单一传感器多种用途,既实现了产品功能又降级制造成本。同时可以实时快速的探测到外界环境中障碍物的信息,而且探测没有盲区,多种传感器测量的参数互补实用,能实时可靠的为机器人控制中心提供最真实的外部环境参数,以便机器人控制中心实时的优化行进线路和及时快速的避障。The sonar-based robot tracking method and system of the present disclosure converts the recognition of the tracking target into the recognition of a specific signal, and the identification of the specific signal is much easier and much simpler. This greatly improves the recognition rate and the accuracy of the positioning, and the sonar transceiver takes into account the ranging function. The sonar transceiver can not only identify and locate the target, but also measure the distance of the obstacle, and realize multiple uses of a single sensor, which not only realizes the product function but also reduces the manufacturing cost. At the same time, it can quickly detect the obstacle information in the external environment, and the detection has no blind zone. The parameters measured by various sensors are complementary and practical, and can provide the most realistic external environmental parameters for the robot control center in real time, so that the robot control center can be real-time. Optimized travel routes and timely and fast obstacle avoidance.
附图说明DRAWINGS
图1为本发明提出的一种基于声纳的机器人跟踪系统的原理图;1 is a schematic diagram of a sonar-based robot tracking system according to the present invention;
图2为本发明的声纳定位目标示意图;2 is a schematic diagram of a sonar positioning target of the present invention;
图3为本发明机器人避障控制流程图;3 is a flow chart of robot obstacle avoidance control according to the present invention;
图4为本发明机器人跟随目标控制流程图。4 is a flow chart of the robot following target control according to the present invention.
图5为本发明提出的超声波测距原理图Figure 5 is a schematic diagram of ultrasonic ranging proposed by the present invention
具体实施方式detailed description
下面结合附图,对本发明的一种基于声纳的机器人跟踪方法进行详细说明。需要说明的是,本文的“第一”、“第二”等仅为了区分相关的术语,并不表示重要性的高低。A sonar-based robot tracking method of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the “first”, “second” and the like in this paper are only for distinguishing related terms, and do not indicate the level of importance.
如图1所示,本发明的一种基于声纳的机器人跟踪方法,采用的(自动跟随移动)机器人由运动控制器、至少两个声纳收发器、伺服控制器、驱动装置(例如:机械传动模块)组成,当然还会包含一些机器人常用的辅助传感器等模块。由运动控制器根据声纳收发器探测的数据做目标定位,路径规划和实时避障。As shown in FIG. 1, a sonar-based robot tracking method according to the present invention employs an (automatic follow-to-go) robot by a motion controller, at least two sonar transceivers, a servo controller, and a driving device (for example, a machine). The transmission module is composed of, of course, some modules such as auxiliary sensors commonly used by robots. Targeting, path planning and real-time obstacle avoidance are performed by the motion controller based on the data detected by the sonar transceiver.
在本实施例中,本公开的方法采用多个声纳传感器定位测距,为了定位目标的准确位置,尽可能减小误差,机器人上的两个声纳收发器分布距离尽可能大一些,最好直线距离大于15cm(因为声纳接收器的盲区一般在15cm左右),且两个声纳收发器在竖直方向上是相错的。同时两个声纳收发器在机器人上的安装高度最好离地60cm—80cm(因为机器人上的声纳收发器要接收跟踪目标佩带在皮带上的声纳收发器的信号,一般人的腰部到地面高度大概是60cm---80cm。为了方便跟踪目标佩带,一般选择小型声纳收发器。另外其它辅助传感器应该安装在声纳传感器的探测盲区中,这样可以尽可能减小整个机器人的探测盲区,机器人在跟随过程中能全面准确的感知外部环境中障碍物的信息,从而更好的实现障碍功能。In this embodiment, the method of the present disclosure uses a plurality of sonar sensors to locate the ranging. In order to locate the exact position of the target, the error is minimized, and the distribution distance of the two sonar transceivers on the robot is as large as possible. The straight line distance is greater than 15 cm (because the dead zone of the sonar receiver is typically around 15 cm) and the two sonar transceivers are distorted in the vertical direction. At the same time, the installation height of the two sonar transceivers on the robot is preferably 60cm-80cm from the ground (because the sonar transceiver on the robot receives the signal of the sonar transceiver that is tracking the target wearing on the belt, the waist of the person is on the ground. The height is about 60cm---80cm. In order to facilitate the tracking of the target wear, a small sonar transceiver is generally selected. In addition, other auxiliary sensors should be installed in the detection dead zone of the sonar sensor, so as to minimize the detection dead zone of the entire robot. The robot can fully and accurately sense the obstacles in the external environment during the following process, so as to better realize the obstacle function.
本公开的一种基于声纳的机器人跟踪方法,机器人上安装有一个作为协调器的声纳收发器,跟踪目标上设有作为第一路由节点的声纳收发器, 该方法包括以下步骤:A sonar-based robot tracking method of the present disclosure is mounted with a sonar transceiver as a coordinator, and a sonar transceiver provided as a first routing node on the tracking target, the method comprising the following steps:
1:在对所述跟踪目标进行跟踪的过程中,当所述协调器接收到机器人的运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器。1: in the process of tracking the tracking target, when the coordinator receives the target recognition positioning instruction issued by the motion controller of the robot, the coordinator acquires the target according to the sound wave emitted by the first routing node The positioning data is identified and the target identification positioning data is transmitted to the motion controller.
具体的,在机器人对跟踪目标进行跟踪的过程中,机器人的运动控制器会按照一定频率(例如:2秒一次)向协调器发送目标识别定位指令,运动控制器可以从协调器那边接收到目标识别定位数据,让运动控制器根据协调器发回的目标识别定位数据确定跟踪目标的方位并计算出机器人与目标之间的距离。Specifically, in the process of tracking the tracking target by the robot, the motion controller of the robot sends a target recognition positioning instruction to the coordinator according to a certain frequency (for example: once every 2 seconds), and the motion controller can receive from the coordinator. The target identifies the positioning data, and the motion controller determines the orientation of the tracking target according to the target recognition positioning data sent back by the coordinator and calculates the distance between the robot and the target.
2:当所述协调器接收到机器人的所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器。2: When the coordinator receives the ranging instruction issued by the motion controller of the robot, the coordinator acquires ranging data and transmits the ranging data to the motion controller.
具体的,当运动控制器接收到协调器发送的目标识别定位数据后,会向协调器发送测距指令,为了测量到跟踪目标的路径中是否存在障碍物。在接收协调器发送的测距数据后,可以方便运动控制器确定机器人和目标之间是否有障碍物,如果有障碍物,则计算出机器人与障碍物之间的距离和方位。Specifically, after receiving the target identification positioning data sent by the coordinator, the motion controller sends a ranging instruction to the coordinator, in order to measure whether there is an obstacle in the path of the tracking target. After receiving the ranging data sent by the coordinator, the motion controller can be conveniently determined whether there is an obstacle between the robot and the target, and if there is an obstacle, the distance and orientation between the robot and the obstacle are calculated.
3:所述运动控制器根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;3: The motion controller identifies the positioning data and the ranging data according to the target, obtains a tracking state, and calculates a following path according to the tracking state;
4:所述运动控制器根据所述跟随路径发送对应的动作指令序列给所述机器人的伺服控制器,由所述伺服控制器驱动所述机器人上的驱动装置实现跟随动作。4: The motion controller sends a corresponding motion instruction sequence to the servo controller of the robot according to the following path, and the servo controller drives the driving device on the robot to implement a following action.
具体的,运动控制器根据目标识别定位数据和测距数据判断出跟踪状态(例如:机器人到跟踪目标之间是否存在障碍物,若存在,障碍物的方向、机器人到障碍物的距离等),再根据跟踪状态计算出跟随路径。Specifically, the motion controller determines the tracking state according to the target identification positioning data and the ranging data (for example, whether there is an obstacle between the robot and the tracking target, if present, the direction of the obstacle, the distance of the robot to the obstacle, etc.), Then follow the tracking path to calculate the following path.
机器人在跟随跟踪目标的过程中,通过运动控制器不断发出目标识别定位指令、测距指令获得跟踪目标的位置、距离以及行走环境中障碍物的信息,从而不断地实时更新机器人的行走路径,达到定位、路径规划、自 主跟随和动态避障的目的。During the process of following the tracking target, the robot continuously sends the target recognition positioning command and the ranging instruction to obtain the position and distance of the tracking target and the obstacle information in the walking environment, thereby continuously updating the walking path of the robot in real time. The purpose of positioning, path planning, autonomous following and dynamic obstacle avoidance.
在本公开的另一个实施例中,除与上述相同的之外,所述机器人上还安装有另一个声呐收发器作为第二路由节点;步骤1:在对所述跟踪目标进行跟踪的过程中,当所述协调器接收到机器人的运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器包括以下步骤:In another embodiment of the present disclosure, in addition to the same as above, another sonar transceiver is installed on the robot as the second routing node; Step 1: in the process of tracking the tracking target And when the coordinator receives the target recognition positioning instruction issued by the motion controller of the robot, the coordinator acquires the target identification positioning data according to the sound wave transmitted by the first routing node, and sends the target identification positioning data. The motion controller includes the following steps:
11:当所述协调器接收到所述目标识别定位指令时,所述协调器广播发送第一帧命令序列;11: when the coordinator receives the target identification positioning instruction, the coordinator broadcasts a first frame command sequence;
12:当第一路由节点接收到所述第一帧命令序列时,生成包含有延时时间的第二帧命令序列并广播发送第二帧命令序列之后,根据所述延时时间延时后发射声波;12: When the first routing node receives the first frame command sequence, generates a second frame command sequence including a delay time, and broadcasts and sends a second frame command sequence, and then transmits according to the delay time delay. Sound wave
13:协调器接收到第二帧命令序列后,获取接收到第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离数据;After receiving the second frame command sequence, the coordinator obtains the first time of receiving the sound wave transmitted by the first routing node, and calculates the first distance data according to the first time;
14:当第二路由节点接收到第一帧命令序列和第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;After receiving the first frame command sequence and the second frame command sequence, the second routing node acquires the second time of receiving the sound wave emitted by the first routing node, and calculates the second distance data according to the second time. Transmitting the second distance data to the coordinator;
15:所述协调器将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。15: The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
具体的,如图2所示,协调器获得目标识别定位数据的具体过程为:Specifically, as shown in FIG. 2, the specific process of the coordinator obtaining the target identification positioning data is:
1)协调器接收到运动控制器发送的目标识别定位指令时,会以协调器身份标识号ID0为第一位数据,以运动控制器发出的时间同步指令(时间同步指令是指运动控制器想在多少时间内得到目标识别定位数据,若时间同步指令为1.5秒,则是希望在1.5秒内得到目标识别定位数据)和要求第一路由节点发射声波指令为后续位数据;第一位数据和后续位数据组成第一帧命令序列,协调器上的无线信号发射模块将第一帧命令序列以广播命令的形式发送出去。本实施例的无线信号发射模块均选择Zigbee模块,需要说明的是,其他种类的无线发射模块(例如:Wi-Fi模块)也可 实现本实施例中的Zigbee模块的功能,可以作为Zigbee模块的替换。然后协调器等待第一路由节点发送的确认指令。1) When the coordinator receives the target recognition positioning instruction sent by the motion controller, it will use the coordinator identification number ID0 as the first bit data, and the time synchronization instruction issued by the motion controller (the time synchronization instruction refers to the motion controller) How long does it take to obtain the target identification positioning data, if the time synchronization command is 1.5 seconds, it is desirable to obtain the target identification positioning data in 1.5 seconds) and the first routing node is required to transmit the acoustic wave command as the subsequent bit data; the first bit data and The subsequent bit data constitutes a first frame command sequence, and the wireless signal transmitting module on the coordinator transmits the first frame command sequence in the form of a broadcast command. The wireless signal transmitting module of this embodiment selects the Zigbee module. It should be noted that other types of wireless transmitting modules (for example, Wi-Fi modules) can also implement the functions of the Zigbee module in this embodiment, and can be used as the Zigbee module. replace. The coordinator then waits for a confirmation command sent by the first routing node.
2)所述第一路由节点接收到协调器发送的所述第一帧命令序列后,以第一路由节点的身份标识号ID1为第一位数据,以第一位数据ID1和确认指令(确认指令中会包含延时时间,延时时间可以根据时间同步指令设置,也可以根据经验默认设置)组成第二帧命令序列,所述第一路由节点上的无线信号发射模块将第二帧命令序列以广播命令的形式发送出去,发送完成后,根据延时时间延时后发射一串声波。声波发送结束后,第一路由节点停止发送并进入等待命令状态。2) After receiving the first frame command sequence sent by the coordinator, the first routing node uses the identity identification number ID1 of the first routing node as the first bit data, and the first bit data ID1 and the confirmation instruction (confirm) The instruction may include a delay time, the delay time may be set according to the time synchronization instruction, or may be set according to an empirical default) to form a second frame command sequence, and the wireless signal transmitting module on the first routing node will execute the second frame command sequence. It is sent in the form of a broadcast command. After the transmission is completed, a series of sound waves are transmitted according to the delay time delay. After the sound wave is sent, the first routing node stops transmitting and enters the waiting command state.
3)协调器接收到第二帧命令序列中的确认指令后,解析得到延时时间,例如:15毫秒,则延时15毫秒后开始计时,并等待接收第一路由节点发射的声波信号。当协调器接收到第一路由节点发射的声波信号后,停止计时,并由协调器读出计时的第一时间t1,然后根据“渡越时间探测测距法”计算出机器人到跟踪目标的第一距离数据S1,把第一距离数据S1暂存到数据缓冲区中。3) After receiving the confirmation command in the second frame command sequence, the coordinator parses the delay time, for example: 15 milliseconds, then starts timing after 15 milliseconds delay, and waits to receive the sound wave signal transmitted by the first routing node. When the coordinator receives the acoustic signal transmitted by the first routing node, it stops timing, and the coordinator reads out the first time t1 of the timing, and then calculates the robot to the tracking target according to the “transit time detection ranging method”. A distance data S1 temporarily stores the first distance data S1 into the data buffer.
4)第二路由节点接收到协调器发送的第一帧命令序列和第一路由节点发送的第二帧命令序列后,根据第二帧命令序列中的延时时间延时一段时间后开始计时,并等待接收第一路由节点发射的声波信号。当所述第二路由节点接收到第一路由节点发射的声波信号后,停止计时,并由第二路由节点读出计时的第二时间t2,然后根据“渡越时间探测测距法”计算出机器人到跟踪目标的第二距离数据S2,把第二距离数据S2暂存到数据缓冲区中。4) After receiving the first frame command sequence sent by the coordinator and the second frame command sequence sent by the first routing node, the second routing node starts timing after delaying according to the delay time in the second frame command sequence. And waiting to receive the acoustic signal transmitted by the first routing node. After the second routing node receives the acoustic signal transmitted by the first routing node, the timing is stopped, and the second routing node reads the second time t2 of the timing, and then calculates according to the “transit time detection ranging method”. The robot goes to the second distance data S2 of the tracking target, and temporarily stores the second distance data S2 into the data buffer.
5)第二路由节点计算得到第二距离数据S2后,以第二路由节点的身份标识号ID2为第一位数据,以第二距离数据S2为第二位组成第三帧命令序列,第二路由节点上的无线信号发射模块将第三帧命令序列发给协调器。After the second routing node calculates the second distance data S2, the second routing node ID2 is used as the first bit data, and the second distance data S2 is the second bit to form the third frame command sequence. The wireless signal transmitting module on the routing node sends a third frame command sequence to the coordinator.
6)协调器接收到第二路由节点发送的第三帧命令序列后,从第三帧数据中解析出第二路由节点测量的第二距离数据S2。协调器以协调器身 份标识号ID0为第一位数据、第一距离数据S1为第二位数据、第二距离数据S2为第三位数据,这三种数据按顺序组成第四帧命令序列发送给机器人的运动控制器。第一距离数据S1和第二距离数据S2组成了目标识别定位数据。6) After receiving the third frame command sequence sent by the second routing node, the coordinator parses the second distance data S2 measured by the second routing node from the third frame data. The coordinator uses the coordinator identification number ID0 as the first bit data, the first distance data S1 as the second bit data, and the second distance data S2 as the third bit data, and the three kinds of data are sequentially composed of the fourth frame command sequence. Give the robot's motion controller. The first distance data S1 and the second distance data S2 constitute target recognition positioning data.
需要注意的是,各实施例中各个时间、频率的举例仅仅是为了方便说明,实际使用时需要按照实际情况进行设置。It should be noted that the examples of the time and frequency in each embodiment are only for convenience of description, and the actual use needs to be set according to actual conditions.
优选地,步骤14具体包括以下步骤:Preferably, step 14 specifically includes the following steps:
141:第二路由节点根据延时时间延时后,开始计时;141: The second routing node starts timing according to the delay time delay;
142:当接收到第一路由节点发射的声波时,第二路由节点停止计时,得到第二时间;142: When receiving the sound wave emitted by the first routing node, the second routing node stops timing and obtains the second time;
143:第二路由节点根据第二时间和预设距离公式,计算得到第二距离数据;143: The second routing node calculates the second distance data according to the second time and the preset distance formula.
144:第二路由节点将第二距离数据发送给协调器。144: The second routing node sends the second distance data to the coordinator.
具体的,运动控制器在下发目标识别定位指令时,会把时间同步指令下发给协调器,协调器在广播发送第一帧命令序列时也会加入时间同步指令,当第一路由节点接收到第一帧命令序列时,除了广播接收到发射声波指令外,也会按照时间同步指令设置一个延时时间放在第二帧命令序列中,让接收到的协调器和第二路由节点延时同样的时间后才开始计时、且第一路由节点也延时相同的时间后发送声波,保证各个声纳发声器发射声波、开始计时的时间同步,从而保证第一距离数据和第二距离数据的准确性。需要注意的是,协调器和第二路由节点接收到第二帧命令序列的时间非常短,可以忽略不计。Specifically, when the motion controller sends the target identification positioning instruction, the time synchronization instruction is sent to the coordinator, and the coordinator also adds the time synchronization instruction when broadcasting the first frame command sequence, when the first routing node receives the In the first frame command sequence, in addition to the broadcast receiving the sound wave command, a delay time is set in the second frame command sequence according to the time synchronization command, so that the received coordinator and the second routing node have the same delay. After the time has elapsed, the first routing node also delays transmitting the sound wave after the same time, ensuring that each sonar sounder emits sound waves and starts time synchronization, thereby ensuring the accuracy of the first distance data and the second distance data. Sex. It should be noted that the time taken by the coordinator and the second routing node to receive the second frame command sequence is very short and can be ignored.
“渡越时间探测测距法”原理为:即在声速已知的情况下,通过测量超声波回声所经历的时间来获得距离。其原理图如图5所示。首先声纳收发器向空气中发射一串声波脉冲,声波遇到被测物体后反射回来。已知声速为C,若能测到第一个回波到达的时间与发射声波脉冲的时间差t,利用公式(1),可算出声纳收发器到被测物体之间的距离S:The principle of "transit time detection ranging method" is to obtain the distance by measuring the time elapsed by the ultrasonic echo when the speed of sound is known. The schematic diagram is shown in Figure 5. First, the sonar transceiver emits a series of sound wave pulses into the air, and the sound waves are reflected back after encountering the object to be measured. It is known that the speed of sound is C. If the time difference between the arrival time of the first echo and the transmitted sound wave pulse can be measured, the distance S between the sonar transceiver and the measured object can be calculated by using formula (1):
Figure PCTCN2018073825-appb-000001
Figure PCTCN2018073825-appb-000001
声纳收发器与被测物体之间的测量距离d,利用公式(2)算出:The measured distance d between the sonar transceiver and the measured object is calculated using equation (2):
Figure PCTCN2018073825-appb-000002
Figure PCTCN2018073825-appb-000002
式(2)中,h为发送端与接收端之间的距离,S为声纳收发器到被测物体之间的距离。In equation (2), h is the distance between the transmitting end and the receiving end, and S is the distance between the sonar transceiver and the object to be measured.
当S
Figure PCTCN2018073825-appb-000003
h时,d≈S,在实际使用的声纳收发器中,一般都采用收发同体的传感器,故h=0,则公式(2)简化为公式(3):
When S
Figure PCTCN2018073825-appb-000003
h, d≈S, in the actual use of the sonar transceiver, generally use the sensor to send and receive the same body, so h = 0, then the formula (2) is reduced to the formula (3):
Figure PCTCN2018073825-appb-000004
Figure PCTCN2018073825-appb-000004
已知声速C=344m/s(20℃时),则公式(3)进一步简化为公式(4):Knowing the speed of sound C=344m/s (at 20°C), equation (3) is further simplified to equation (4):
S=172*t  (4)S=172*t (4)
在测量第一距离数据和第二距离数据时,因是根据接收到的第一路由节点发送的声波的时间来计算距离数据,因此,第一时间和第二时间不包含接收到反射回波的时间,故预设距离公式应该设为:S=344*t。When the first distance data and the second distance data are measured, since the distance data is calculated according to the time of the received sound wave sent by the first routing node, the first time and the second time do not include receiving the reflected echo. Time, so the preset distance formula should be set to: S=344*t.
第一距离数据和第二距离数据根据预设距离公式计算得到。The first distance data and the second distance data are calculated according to a preset distance formula.
在本公开的另一个实施例中,除与上述相同的之外,步骤2:当协调器接收到运动控制器发出的测距指令时,协调器获取测距数据,并将测距数据发送至运动控制器包括以下步骤:In another embodiment of the present disclosure, in addition to the same as above, step 2: when the coordinator receives the ranging instruction issued by the motion controller, the coordinator acquires the ranging data and sends the ranging data to The motion controller includes the following steps:
21:当协调器接收到运动控制器发送的测距指令时,协调器将第五帧命令序列发送给第二路由节点;21: When the coordinator receives the ranging instruction sent by the motion controller, the coordinator sends the fifth frame command sequence to the second routing node;
22:当第二路由节点收到第五帧命令序列时,第二路由节点发射声波,并得到接收到第二路由节点发送的声波的回波信号的第三时间;22: When the second routing node receives the fifth frame command sequence, the second routing node transmits the sound wave, and obtains a third time of receiving the echo signal of the sound wave sent by the second routing node;
23:第二路由节点根据第三时间和预设测距公式,计算得到第三距离数据,并将第三距离数据发送至协调器;23: The second routing node calculates the third distance data according to the third time and the preset ranging formula, and sends the third distance data to the coordinator;
24:当协调器接收到第三距离数据后,协调器发射声波,并得到接收到协调器发送的声波的回波信号的第四时间;24: when the coordinator receives the third distance data, the coordinator transmits the sound wave, and obtains a fourth time of receiving the echo signal of the sound wave sent by the coordinator;
25:协调器根据第四时间和预设测距公式,计算得到第四距离数据;25: The coordinator calculates the fourth distance data according to the fourth time and the preset ranging formula;
26:协调器将第三距离数据和第四距离数据作为测距数据发送至运动控制器。26: The coordinator transmits the third distance data and the fourth distance data as ranging data to the motion controller.
具体的,测距指令是为了感知机器人与跟踪目标之间是否存在障碍物。机器人在对跟踪目标进行跟踪的过程中感知障碍物的过程为:Specifically, the ranging instruction is to sense whether there is an obstacle between the robot and the tracking target. The process by which the robot senses obstacles while tracking the tracking target is:
1)协调器在接收到运动控制器发送的测距指令时,以协调器身份标识号ID0为第一位数据,协调器将第一位数据和测距命令组成第五帧命令序列,通过协调器上的无线信号发射模块将第五帧命令序列发送给第二路由节点,然后协调器等待第二路由节点的测量结果。1) When receiving the ranging instruction sent by the motion controller, the coordinator uses the coordinator identification number ID0 as the first bit data, and the coordinator combines the first bit data and the ranging command into a fifth frame command sequence, and coordinates The wireless signal transmitting module on the device sends the fifth frame command sequence to the second routing node, and then the coordinator waits for the measurement result of the second routing node.
2)第二路由节点收到协调器发来的第五帧命令序列后,第二路由节点先发送一串声波,声波发送结束后打开定时器计时并等待接收回波信号,当第二路由节点接收到回波信号后,停止计时并由第二路由节点读出计时的第三时间t3,然后根据“渡越时间探测测距法”计算出机器人到障碍物的第三距离数据S3,第二路由节点以身份标识号ID2为第一位数据,测距命令为第二位数据,第三距离数据S3为第三位数据组成第六帧命令序列,通过第二路由节点上的无线信号发射模块将第六帧命令序列发送给协调器。然后第二路由节点停止工作并进入等待命令状态。2) After receiving the fifth frame command sequence sent by the coordinator, the second routing node first sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for receiving the echo signal, when the second routing node After receiving the echo signal, the timing is stopped and the second routing time is read by the second routing node, and then the third distance data S3 of the robot to the obstacle is calculated according to the “transit time detection ranging method”, and the second The routing node takes the identity number ID2 as the first bit data, the ranging command as the second bit data, and the third distance data S3 as the third bit data to form the sixth frame command sequence, and the wireless signal transmitting module on the second routing node The sixth frame command sequence is sent to the coordinator. The second routing node then stops working and enters the wait command state.
3)协调器接收到第二路由节点的第六帧命令序列后解析出第三距离数据S3暂存在数据缓冲器中,然后协调器发送一串声波,声波发送结束后打开定时器计时并等待接收回波信号;当协调器接收到回波信号后,停止计时并读出计时的第四时间t4,然后根据“渡越时间探测测距法”计算出机器人到障碍物的第四距离数据S4。3) After receiving the sixth frame command sequence of the second routing node, the coordinator parses out the third distance data S3 temporarily stored in the data buffer, and then the coordinator sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for reception. The echo signal; when the coordinator receives the echo signal, stops the timing and reads out the fourth time t4 of the timing, and then calculates the fourth distance data S4 of the robot to the obstacle according to the "transit time detection ranging method".
4)协调器将协调器身份标识号ID0为第一位数据、第三距离数据S3以及第四距离数据S4组成第七帧命令序列发送给运动控制器。第三距离数据和第四距离数据组成为测距数据。4) The coordinator sends the coordinator identification number ID0 as the first bit data, the third distance data S3, and the fourth distance data S4 to form a seventh frame command sequence to the motion controller. The third distance data and the fourth distance data are composed of ranging data.
在计算第三距离数据和第四距离数据时,是根据第一路由节点或协调器自身发射的声波的回波来计时,因此,预设测距公式设为:S=172*t。When calculating the third distance data and the fourth distance data, it is timed according to the echo of the sound wave emitted by the first routing node or the coordinator itself, and therefore, the preset ranging formula is set to: S=172*t.
在本公开的另一个实施例中,除与上述相同的之外,步骤3:运动控制器根据目标识别定位数据以及测距数据,得到跟踪状态,并根据跟踪状态计算出跟随路径包括以下步骤:In another embodiment of the present disclosure, in addition to the same as above, step 3: the motion controller identifies the positioning data and the ranging data according to the target, obtains the tracking state, and calculates the following path according to the tracking state, including the following steps:
31:运动控制器根据目标识别定位数据和测距数据,判断距离跟踪目 标之间是否存在障碍物(即,判断机器人到跟踪目标的直线路线上是否存在障碍物);31: The motion controller determines whether there is an obstacle between the distance tracking targets according to the target identification positioning data and the ranging data (that is, whether there is an obstacle on the straight line of the robot to the tracking target);
32:若不存在障碍物,则得到无需避障的跟随路径;32: If there is no obstacle, the following path is obtained without obstacle avoidance;
33:若存在障碍物,则根据预设避障方法得到避障的跟随路径。33: If there is an obstacle, the following path of the obstacle avoidance is obtained according to the preset obstacle avoidance method.
具体的,根据测距数据和目标识别定位数据可以判断出机器人与跟踪目标之间是否存在障碍物。当然,可能出现第三距离数据和第四距离数据所指的障碍物就是跟踪目标本身,这时候就需要根据测距数据得到的障碍物的方位和距离与根据目标识别定位数据得到的跟踪目标的方位和距离来进行判断。Specifically, according to the ranging data and the target identification positioning data, it can be determined whether there is an obstacle between the robot and the tracking target. Of course, it may happen that the obstacle indicated by the third distance data and the fourth distance data is the tracking target itself, and the orientation and distance of the obstacle obtained according to the ranging data and the tracking target obtained according to the target identification positioning data are needed. Azimuth and distance are used for judgment.
若机器人和跟踪目标之间无障碍物,可以将全速前进作为无需避障的跟随路径;若机器人与跟踪目标之间的路径中存在障碍物,需要按照预设避障方法得到避障的跟随路径。If there is no obstacle between the robot and the tracking target, the full speed can be used as the following path without obstacle avoidance; if there is an obstacle in the path between the robot and the tracking target, it is necessary to obtain the following path of the obstacle avoidance according to the preset obstacle avoidance method. .
优选地,若存在障碍物,则根据预设避障方法得到避障的跟随路径包括以下步骤:Preferably, if there is an obstacle, obtaining the following path of the obstacle avoidance according to the preset obstacle avoidance method comprises the following steps:
331:当到所述障碍物的距离小于预设距离时,则采用停止前进的跟随路径;331: when the distance to the obstacle is less than a preset distance, adopt a follow path that stops advancing;
332:当所述障碍会不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。332: When the obstacle is not less than a preset distance, obtaining a following path of the slow steering according to the ranging data.
具体的,考虑到若障碍物离得较近,机器人无法再进行转向避障的话,就需要停止,避免撞到障碍物。因此,设置了一个预设距离,例如:1米,当根据第三距离数据和第四距离数据计算得到机器人到障碍物的距离小于1米时,就停止。Specifically, considering that if the obstacle is close, and the robot can no longer perform steering obstacle avoidance, it needs to stop and avoid hitting the obstacle. Therefore, a preset distance is set, for example, 1 meter, and when the distance from the robot to the obstacle is less than 1 meter based on the third distance data and the fourth distance data, it is stopped.
当障碍物位于机器人前进跟随跟踪目标的路线上时,机器人会根据第三距离数据和第四距离数据来确认哪个方向比较空旷(例如:如果第三距离数据小于第四距离数据,则说明第四距离数据对应的方向比较空旷),从而向哪个方向转向跟随跟踪目标。When the obstacle is located on the route forwarded by the robot following the tracking target, the robot will confirm which direction is relatively empty according to the third distance data and the fourth distance data (for example, if the third distance data is smaller than the fourth distance data, the fourth The direction corresponding to the distance data is relatively empty, so which direction is turned to follow the tracking target.
例如:第三距离数据小于第四距离数据,说明第四距离数据对应的方位较空旷,可以向第四距离数据对应的方位进行转向,从而实现跟随跟踪 目标的目的。For example, the third distance data is smaller than the fourth distance data, indicating that the orientation corresponding to the fourth distance data is relatively empty, and the direction corresponding to the fourth distance data can be turned, thereby achieving the purpose of following the tracking target.
慢速是为了防止机器人在转向过程中碰到障碍物,因此,让其进行减速跟随。慢速和全速可以由工程师根据经验、使用场合自行设置,例如:全速设为2米/秒,慢速设为1米/秒。Slow speed is to prevent the robot from hitting obstacles during the steering process, so let it slow down. Slow and full speed can be set by the engineer according to experience and use, for example: full speed is set to 2 m / s, slow speed is set to 1 m / sec.
在另一个实施例中,如图3所示,机器人避障控制流程:In another embodiment, as shown in FIG. 3, the robot obstacle avoidance control process:
判断前方是否有障碍物,如果没有障碍物,全速前进;如果前方有障碍物,判断障碍物距离,如果障碍物距离近(机器人到障碍物的距离小于预设距离),停止前进,如果前方障碍物距离远(机器人到障碍物的距离不小于预设距离),慢速前进;对障碍物左右空间进行判断,如果左边更开阔,左转前进,如果右边更开阔,右转前进;Determine whether there is an obstacle in front, if there is no obstacle, advance at full speed; if there is an obstacle ahead, determine the distance of the obstacle, if the obstacle is close (the distance from the robot to the obstacle is less than the preset distance), stop the advance, if the obstacle ahead The distance of the object is far (the distance from the robot to the obstacle is not less than the preset distance), and the speed is forward; the left and right space of the obstacle is judged. If the left side is wider, turn left, if the right side is wider, turn right;
如图4所示,机器人跟随目标控制流程:As shown in Figure 4, the robot follows the target control flow:
探测是否有物体,如果没有物体,不进行目标路径规划;如果探测到物体,辨别该物体是跟踪目标还是障碍物,如果是跟踪目标,则对跟踪目标进行跟踪,跟随跟踪目标的路线上有障碍物时,根据避障流程避障;如果辨别出是障碍物而不是跟踪目标,判断障碍物是否在前方,如果障碍不在前方,不进行跟随路径规划,如果障碍在前方,根据避障流程避障,此时也不进行目标路径规划。Detect whether there is an object. If there is no object, do not plan the target path. If the object is detected, identify whether the object is a tracking target or an obstacle. If it is a tracking target, track the tracking target and follow the tracking target. When observing the obstacles, avoid obstacles according to the obstacle avoidance process; if it is an obstacle rather than tracking the target, determine whether the obstacle is in front, if the obstacle is not in front, do not follow the path planning, if the obstacle is in front, avoid obstacles according to the obstacle avoidance process At this time, the target path planning is not performed.
在本公开的另一个实施例中,一种基于声纳的机器人跟踪系统,包括:跟踪目标和机器人;In another embodiment of the present disclosure, a sonar-based robot tracking system includes: tracking a target and a robot;
跟踪目标包括:作为第一路由节点的声纳收发器;The tracking target includes: a sonar transceiver as the first routing node;
所述机器人包括:The robot includes:
一个作为协调器的声纳收发器、运动控制器、伺服控制器和驱动装置;a sonar transceiver, motion controller, servo controller and drive as a coordinator;
所述协调器,用于在对所述跟踪目标进行跟踪的过程中,当接收到所述运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器;The coordinator, in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires the sound wave according to the first routing node The target identifies the positioning data, and sends the target identification positioning data to the motion controller;
以及,当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器;And, when receiving the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller;
所述运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;以及,根据所述跟随路径发送对应的动作指令序列给所述伺服控制器;The motion controller is configured to identify the positioning data according to the target and the ranging data, obtain a tracking status, and calculate a following path according to the tracking status; and send a corresponding action instruction sequence according to the following path Giving the servo controller;
所述伺服控制器,用于根据接收到的所述动作指令序列驱动所述驱动装置实现跟随动作。The servo controller is configured to drive the driving device to implement a following action according to the received sequence of the motion instruction.
具体的,在机器人对跟踪目标进行跟踪的过程中,机器人的运动控制器会按照一定频率(例如:1.5秒一次)向协调器发送目标识别定位指令,运动控制器可以从协调器那边接收到目标识别定位数据,让运动控制器根据协调器发回的目标识别定位数据确定跟踪目标的方位并计算出机器人与目标之间的距离。Specifically, in the process of tracking the tracking target by the robot, the motion controller of the robot sends a target recognition positioning instruction to the coordinator according to a certain frequency (for example: once every 1.5 seconds), and the motion controller can receive from the coordinator. The target identifies the positioning data, and the motion controller determines the orientation of the tracking target according to the target recognition positioning data sent back by the coordinator and calculates the distance between the robot and the target.
当运动控制器接收到协调器发送的目标识别定位数据后,会向协调器发送测距指令,为了测量到跟踪目标的路径中是否存在障碍物。在接收协调器发送的测距数据后,可以方便运动控制器确定机器人和目标之间是否有障碍物,如果有障碍物,则计算出机器人与障碍物之间的距离和方位。After the motion controller receives the target identification positioning data sent by the coordinator, it sends a ranging instruction to the coordinator to measure whether there is an obstacle in the path of the tracking target. After receiving the ranging data sent by the coordinator, the motion controller can be conveniently determined whether there is an obstacle between the robot and the target, and if there is an obstacle, the distance and orientation between the robot and the obstacle are calculated.
运动控制器根据目标识别定位数据和测距数据判断出跟踪状态(例如:机器人到跟踪目标之间是否存在障碍物,若存在,障碍物的方向、机器人到障碍物的距离等),再根据跟踪状态计算出跟随路径。The motion controller determines the tracking state according to the target identification positioning data and the ranging data (for example, whether there is an obstacle between the robot and the tracking target, if present, the direction of the obstacle, the distance of the robot to the obstacle, etc.), and then according to the tracking The state calculates the following path.
机器人在跟随跟踪目标的过程中,通过运动控制器不断发出目标识别定位指令、测距指令获得跟踪目标的位置、距离以及行走环境中障碍物的信息,从而不断地实时更新机器人的行走路径,达到定位、路径规划、自主跟随和动态避障的目的。During the process of following the tracking target, the robot continuously sends the target recognition positioning command and the ranging instruction to obtain the position and distance of the tracking target and the obstacle information in the walking environment, thereby continuously updating the walking path of the robot in real time. The purpose of positioning, path planning, autonomous following and dynamic obstacle avoidance.
在本公开的另一个实施例中,除与上述相同的之外所述机器人还包括:另一个作为第二路由节点的声纳收发器;In another embodiment of the present disclosure, the robot further includes: another sonar transceiver as a second routing node, except for the same as above;
协调器,用于在对跟踪目标进行跟踪的过程中,当接收到所述运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器包括:a coordinator, in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires the target identification positioning data according to the sound wave emitted by the first routing node And transmitting the target identification positioning data to the motion controller includes:
所述协调器,用于当接收到所述目标识别定位指令时,所述协调器广 播发送第一帧命令序列;The coordinator is configured to: when the target identification positioning instruction is received, the coordinator broadcasts a first frame command sequence;
所述第一路由节点,用于接收到所述第一帧命令序列后,生成包含有延时时间的第二帧命令序列并广播发送第二帧命令序列之后,根据延时时间延时后发射声波;The first routing node is configured to: after receiving the first frame command sequence, generate a second frame command sequence including a delay time, and broadcast and transmit the second frame command sequence, and then transmit according to the delay time delay Sound wave
所述协调器,用于接收到所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离数据;The coordinator is configured to: after receiving the second frame command sequence, acquire a first time of receiving the sound wave emitted by the first routing node, and calculate the first distance data according to the first time;
所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;The second routing node, after receiving the first frame command sequence and the second frame command sequence, acquiring a second time of receiving the sound wave emitted by the first routing node, and according to the Calculating, by the second time, the second distance data, and sending the second distance data to the coordinator;
所述协调器,将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
具体的,如图2所示,协调器获得目标识别定位数据的具体过程为:Specifically, as shown in FIG. 2, the specific process of the coordinator obtaining the target identification positioning data is:
1)协调器接收到运动控制器发送的目标识别定位指令时,会以协调器身份标识号ID0为第一位数据,以运动控制器发出的时间同步指令和要求第一路由节点发射声波指令为后续位数据;第一位数据和后续位数据组成第一帧命令序列,协调器上的无线信号发射模块将第一帧命令序列以广播命令的形式发送出去。本实施例的无线信号发射模块均选择Zigbee模块,需要说明的是,其他种类的无线发射模块(例如:Wi-Fi模块)也可实现本实施例中的Zigbee模块的功能,可以作为Zigbee模块的替换。然后协调器等待第一路由节点发送的确认指令。1) When the coordinator receives the target recognition positioning instruction sent by the motion controller, the coordinator identification number ID0 is used as the first bit data, and the time synchronization instruction issued by the motion controller and the requesting first routing node to transmit the acoustic wave command are Subsequent bit data; the first bit data and the subsequent bit data form a first frame command sequence, and the wireless signal transmitting module on the coordinator transmits the first frame command sequence in the form of a broadcast command. The wireless signal transmitting module of this embodiment selects the Zigbee module. It should be noted that other types of wireless transmitting modules (for example, Wi-Fi modules) can also implement the functions of the Zigbee module in this embodiment, and can be used as the Zigbee module. replace. The coordinator then waits for a confirmation command sent by the first routing node.
2)所述第一路由节点接收到协调器发送的所述第一帧命令序列后,以第一路由节点的身份标识号ID1为第一位数据,以第一位数据ID1和确认指令(确认指令中会包含延时时间,延时时间可以根据时间同步指令设置,也可以根据经验默认设置)组成第二帧命令序列,所述第一路由节点上的无线信号发射模块将第二帧命令序列以广播命令的形式发送出去,发送完成后,根据延时时间延时后发射一串声波。声波发送结束后,第一 路由节点停止发送并进入等待命令状态。2) After receiving the first frame command sequence sent by the coordinator, the first routing node uses the identity identification number ID1 of the first routing node as the first bit data, and the first bit data ID1 and the confirmation instruction (confirm) The instruction may include a delay time, the delay time may be set according to the time synchronization instruction, or may be set according to an empirical default) to form a second frame command sequence, and the wireless signal transmitting module on the first routing node will execute the second frame command sequence. It is sent in the form of a broadcast command. After the transmission is completed, a series of sound waves are transmitted according to the delay time delay. After the sound wave is sent, the first routing node stops transmitting and enters the wait command state.
3)协调器接收到第二帧命令序列中的确认指令后,解析得到延时时间,例如:18毫秒,则延时18毫秒后开始计时,并等待接收第一路由节点发射的声波信号。当协调器接收到第一路由节点发射的声波信号后,停止计时,并由协调器读出计时的第一时间t1,然后根据“渡越时间探测测距法”计算出机器人到跟踪目标的第一距离数据S1,把第一距离数据S1暂存到数据缓冲区中。3) After receiving the confirmation command in the second frame command sequence, the coordinator parses the delay time, for example: 18 milliseconds, then starts timing after 18 milliseconds delay, and waits to receive the sound wave signal transmitted by the first routing node. When the coordinator receives the acoustic signal transmitted by the first routing node, it stops timing, and the coordinator reads out the first time t1 of the timing, and then calculates the robot to the tracking target according to the “transit time detection ranging method”. A distance data S1 temporarily stores the first distance data S1 into the data buffer.
4)第二路由节点接收到协调器发送的第一帧命令序列和第一路由节点发送的第二帧命令序列后,根据第二帧命令序列中的延时时间延时一段时间后开始计时,并等待接收第一路由节点发射的声波信号。当所述第二路由节点接收到第一路由节点发射的声波信号后,停止计时,并由第二路由节点读出计时的第二时间t2,然后根据“渡越时间探测测距法”计算出机器人到跟踪目标的第二距离数据S2,把第二距离数据S2暂存到数据缓冲区中。4) After receiving the first frame command sequence sent by the coordinator and the second frame command sequence sent by the first routing node, the second routing node starts timing after delaying according to the delay time in the second frame command sequence. And waiting to receive the acoustic signal transmitted by the first routing node. After the second routing node receives the acoustic signal transmitted by the first routing node, the timing is stopped, and the second routing node reads the second time t2 of the timing, and then calculates according to the “transit time detection ranging method”. The robot goes to the second distance data S2 of the tracking target, and temporarily stores the second distance data S2 into the data buffer.
5)第二路由节点计算得到第二距离数据S2后,以第二路由节点的身份标识号ID2为第一位数据,以第二距离数据S2为第二位组成第三帧命令序列,第二路由节点上的无线信号发射模块将第三帧命令序列发给协调器。After the second routing node calculates the second distance data S2, the second routing node ID2 is used as the first bit data, and the second distance data S2 is the second bit to form the third frame command sequence. The wireless signal transmitting module on the routing node sends a third frame command sequence to the coordinator.
6)协调器接收到第二路由节点发送的第三帧命令序列后,从第三帧数据中解析出第二路由节点测量的第二距离数据S2。协调器以协调器身份标识号ID0为第一位数据、第一距离数据S1为第二位数据、第二距离数据S2为第三位数据,这三种数据按顺序组成第四帧命令序列发送给机器人的运动控制器。第一距离数据S1和第二距离数据S2组成了目标识别定位数据。6) After receiving the third frame command sequence sent by the second routing node, the coordinator parses the second distance data S2 measured by the second routing node from the third frame data. The coordinator uses the coordinator identification number ID0 as the first bit data, the first distance data S1 as the second bit data, and the second distance data S2 as the third bit data, and the three kinds of data are sequentially composed of the fourth frame command sequence. Give the robot's motion controller. The first distance data S1 and the second distance data S2 constitute target recognition positioning data.
需要注意的是,各实施例中各个时间、频率的举例仅仅是为了方便说明,实际使用时需要按照实际情况进行设置。It should be noted that the examples of the time and frequency in each embodiment are only for convenience of description, and the actual use needs to be set according to actual conditions.
优选地,所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时 间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器包括:Preferably, the second routing node is configured to: after receiving the first frame command sequence and the second frame command sequence, acquire a second time of receiving the sound wave emitted by the first routing node, and according to And calculating, by the second time, the second distance data, and sending the second distance data to the coordinator includes:
第二路由节点,接收到所述第一帧命令序列和所述第二帧命令序列后,根据所述延时时间延时后,开始计时;After receiving the first frame command sequence and the second frame command sequence, the second routing node starts timing according to the delay time delay;
以及,当接收到所述第一路由节点发射的声波时,所述第二路由节点停止计时,得到第二时间;And, when receiving the sound wave emitted by the first routing node, the second routing node stops timing, and obtains a second time;
以及,根据第二时间和预设距离公式,计算得到第二距离数据;And calculating, according to the second time and the preset distance formula, the second distance data;
以及,将第二距离数据发送给协调器。And sending the second distance data to the coordinator.
具体的,运动控制器在下发目标识别定位指令时,会把时间同步指令下发给协调器,协调器在广播发送第一帧命令序列时也会加入时间同步指令,当第一路由节点接收到第一帧命令序列时,除了广播接收到发射声波指令外,也会按照时间同步指令设置一个延时时间放在第二帧命令序列中,让接收到的协调器和第二路由节点延时同样的时间后才开始计时、且第一路由节点也延时相同的时间后发送声波,保证各个声纳发声器发射声波、开始计时的时间同步,从而保证第一距离数据和第二距离数据的准确性。需要注意的是,协调器和第二路由节点接收到第二帧命令序列的时间非常短,可以忽略不计。Specifically, when the motion controller sends the target identification positioning instruction, the time synchronization instruction is sent to the coordinator, and the coordinator also adds the time synchronization instruction when broadcasting the first frame command sequence, when the first routing node receives the In the first frame command sequence, in addition to the broadcast receiving the sound wave command, a delay time is set in the second frame command sequence according to the time synchronization command, so that the received coordinator and the second routing node have the same delay. After the time has elapsed, the first routing node also delays transmitting the sound wave after the same time, ensuring that each sonar sounder emits sound waves and starts time synchronization, thereby ensuring the accuracy of the first distance data and the second distance data. Sex. It should be noted that the time taken by the coordinator and the second routing node to receive the second frame command sequence is very short and can be ignored.
在测量第一距离数据和第二距离数据时,因是根据接收到的第一路由节点发送的声波的时间来计算距离数据,因此,第一时间和第二时间不包含接收到反射回波的时间,故预设距离公式应该设为:S=344*t。When the first distance data and the second distance data are measured, since the distance data is calculated according to the time of the received sound wave sent by the first routing node, the first time and the second time do not include receiving the reflected echo. Time, so the preset distance formula should be set to: S=344*t.
第一距离数据和第二距离数据根据预设距离公式计算得到。The first distance data and the second distance data are calculated according to a preset distance formula.
在本公开的另一个实施例中,除与上述相同的之外,协调器,用于当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器包括:In another embodiment of the present disclosure, in addition to the same as the above, the coordinator is configured to acquire the ranging data when receiving the ranging instruction issued by the motion controller, and The sending of the ranging data to the motion controller includes:
所述协调器,用于当接收到所述运动控制器发送的测距指令时,所述协调器将第五帧命令序列发送给第二路由节点;The coordinator, when receiving the ranging instruction sent by the motion controller, the coordinator sends a fifth frame command sequence to the second routing node;
所述第二路由节点,用于当收到所述第五帧命令序列时,所述第二路由节点发射声波,并得到接收到所述第二路由节点发送的声波的回波信号 的第三时间;以及,根据所述第三时间和预设测距公式,计算得到第三距离数据,并将所述第三距离数据发送至所述协调器;The second routing node is configured to: when receiving the sequence of the fifth frame command, the second routing node transmits an acoustic wave, and obtains a third of an echo signal of the acoustic wave sent by the second routing node. And calculating, according to the third time and the preset ranging formula, the third distance data, and sending the third distance data to the coordinator;
所述协调器,用于当接收到所述第三距离数据后,所述协调器发射声波,并得到接收到所述协调器发送的声波的回波信号的第四时间;以及,根据所述第四时间和所述预设测距公式,计算得到第四距离数据;以及,将所述第三距离数据和所述第四距离数据作为所述测距数据发送至运动控制器。The coordinator, configured to: after receiving the third distance data, the coordinator emits an acoustic wave, and obtains a fourth time of receiving an echo signal of the acoustic wave sent by the coordinator; and, according to the And calculating a fourth distance data by using the fourth time and the preset ranging formula; and transmitting the third distance data and the fourth distance data as the ranging data to the motion controller.
具体的,测距指令是为了感知机器人与跟踪目标之间是否存在障碍物。机器人在对跟踪目标进行跟踪的过程中感知障碍物的过程为:Specifically, the ranging instruction is to sense whether there is an obstacle between the robot and the tracking target. The process by which the robot senses obstacles while tracking the tracking target is:
1)协调器在接收到运动控制器发送的测距指令时,以协调器身份标识号ID0为第一位数据,协调器将第一位数据和测距命令组成第五帧命令序列,通过协调器上的无线信号发射模块将第五帧命令序列发送给第二路由节点,然后协调器等待第二路由节点的测量结果。1) When receiving the ranging instruction sent by the motion controller, the coordinator uses the coordinator identification number ID0 as the first bit data, and the coordinator combines the first bit data and the ranging command into a fifth frame command sequence, and coordinates The wireless signal transmitting module on the device sends the fifth frame command sequence to the second routing node, and then the coordinator waits for the measurement result of the second routing node.
2)第二路由节点收到协调器发来的第五帧命令序列后,第二路由节点先发送一串声波,声波发送结束后打开定时器计时并等待接收回波信号,当第二路由节点接收到回波信号后,停止计时并由第二路由节点读出计时的第三时间t3,然后根据“渡越时间探测测距法”计算出机器人到障碍物的第三距离数据S3,第二路由节点以身份标识号ID2为第一位数据,测距命令为第二位数据,第三距离数据S3为第三位数据组成第六帧命令序列,通过第二路由节点上的无线信号发射模块将第六帧命令序列发送给协调器。然后第二路由节点停止工作并进入等待命令状态。2) After receiving the fifth frame command sequence sent by the coordinator, the second routing node first sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for receiving the echo signal, when the second routing node After receiving the echo signal, the timing is stopped and the second routing time is read by the second routing node, and then the third distance data S3 of the robot to the obstacle is calculated according to the “transit time detection ranging method”, and the second The routing node takes the identity number ID2 as the first bit data, the ranging command as the second bit data, and the third distance data S3 as the third bit data to form the sixth frame command sequence, and the wireless signal transmitting module on the second routing node The sixth frame command sequence is sent to the coordinator. The second routing node then stops working and enters the wait command state.
3)协调器接收到第二路由节点的第六帧命令序列后解析出第三距离数据S3暂存在数据缓冲器中,然后协调器发送一串声波,声波发送结束后打开定时器计时并等待接收回波信号;当协调器接收到回波信号后,停止计时并读出计时的第四时间t4,然后根据“渡越时间探测测距法”计算出机器人到障碍物的第四距离数据S4。3) After receiving the sixth frame command sequence of the second routing node, the coordinator parses out the third distance data S3 temporarily stored in the data buffer, and then the coordinator sends a string of sound waves, and after the sound wave is sent, the timer is turned on and waits for reception. The echo signal; when the coordinator receives the echo signal, stops the timing and reads out the fourth time t4 of the timing, and then calculates the fourth distance data S4 of the robot to the obstacle according to the "transit time detection ranging method".
4)协调器将协调器身份标识号ID0为第一位数据、第三距离数据S3以及第四距离数据S4组成第七帧命令序列发送给运动控制器。第三距 离数据和第四距离数据组成为测距数据。4) The coordinator sends the coordinator identification number ID0 as the first bit data, the third distance data S3, and the fourth distance data S4 to form a seventh frame command sequence to the motion controller. The third distance data and the fourth distance data are composed of ranging data.
在计算第三距离数据和第四距离数据时,是根据第一路由节点或协调器自身发射的声波的回波来计时,因此,预设测距公式设为:S=172*t。When calculating the third distance data and the fourth distance data, it is timed according to the echo of the sound wave emitted by the first routing node or the coordinator itself, and therefore, the preset ranging formula is set to: S=172*t.
在本公开的另一个实施例中,除与上述相同的之外,运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径包括:In another embodiment of the present disclosure, in addition to the same as the above, the motion controller is configured to identify the positioning data according to the target and the ranging data, obtain a tracking status, and calculate according to the tracking status. Follow paths include:
所述运动控制器,用于根据所述目标识别定位数据和所述测距数据,判断距离所述跟踪目标之间是否存在障碍物(即,判断机器人到跟踪目标的直线路线上是否存在障碍物);若不存在障碍物,则得到无需避障的跟随路径;若存在障碍物,则根据预设避障方法得到避障的跟随路径。The motion controller is configured to determine, according to the target identification positioning data and the ranging data, whether there is an obstacle between the tracking targets (ie, determining whether there is an obstacle on a straight line of the robot to the tracking target) If there is no obstacle, the following path is obtained without obstacle avoidance; if there is an obstacle, the following path of the obstacle avoidance is obtained according to the preset obstacle avoidance method.
具体的,根据测距数据和目标识别定位数据可以判断出机器人与跟踪目标之间是否存在障碍物。当然,可能出现第三距离数据和第四距离数据所指的障碍物就是跟踪目标本身,这时候就需要根据测距数据得到的障碍物的方位和距离与根据目标识别定位数据得到的跟踪目标的方位和距离来进行判断。Specifically, according to the ranging data and the target identification positioning data, it can be determined whether there is an obstacle between the robot and the tracking target. Of course, it may happen that the obstacle indicated by the third distance data and the fourth distance data is the tracking target itself, and the orientation and distance of the obstacle obtained according to the ranging data and the tracking target obtained according to the target identification positioning data are needed. Azimuth and distance are used for judgment.
若机器人和跟踪目标之间无障碍物,可以将全速前进作为无需避障的跟随路径;若机器人与跟踪目标之间的路径中存在障碍物,需要按照预设避障方法得到避障的跟随路径。If there is no obstacle between the robot and the tracking target, the full speed can be used as the following path without obstacle avoidance; if there is an obstacle in the path between the robot and the tracking target, it is necessary to obtain the following path of the obstacle avoidance according to the preset obstacle avoidance method. .
优选地,运动控制器,若存在障碍物,则根据预设避障方法得到避障的跟随路径包括:Preferably, the motion controller, if there is an obstacle, the following obstacle path obtained according to the preset obstacle avoidance method includes:
所述运动控制器,用于当到所述障碍物的距离小于预设距离时,采用停止前进的跟随路径;The motion controller is configured to adopt a follow path that stops advancing when a distance to the obstacle is less than a preset distance;
以及,当所述障碍物不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。And, when the obstacle is not less than the preset distance, the following path of the slow steering is obtained according to the ranging data.
具体的,考虑到若障碍物离得较近,机器人无法再进行转向避障的话,就需要停止,避免撞到障碍物。因此,设置了一个预设距离,例如:1米,当根据第三距离数据和第四距离数据计算得到机器人到障碍物的距离小于1米时,就停止。Specifically, considering that if the obstacle is close, and the robot can no longer perform steering obstacle avoidance, it needs to stop and avoid hitting the obstacle. Therefore, a preset distance is set, for example, 1 meter, and when the distance from the robot to the obstacle is less than 1 meter based on the third distance data and the fourth distance data, it is stopped.
当障碍物位于机器人前进跟随跟踪目标的路线上时,机器人会根据第三距离数据和第四距离数据来确认哪个方向比较空旷,从而向哪个方向转向跟随跟踪目标。具体例子请参见对应的方法实施例,在此不作赘述。When the obstacle is located on the route that the robot advances to follow the tracking target, the robot will confirm which direction is relatively empty based on the third distance data and the fourth distance data, thereby turning to which direction to follow the tracking target. For specific examples, refer to the corresponding method embodiments, which are not described herein.
慢速是为了防止机器人在转向过程中碰到障碍物,因此,让其进行减速跟随。慢速和全速可以由工程师根据经验、使用场合自行设置,例如:全速设为3米/秒,慢速设为1米/秒。Slow speed is to prevent the robot from hitting obstacles during the steering process, so let it slow down. Slow and full speed can be set by the engineer according to experience and use, for example: full speed is set to 3 m / s, slow speed is set to 1 m / sec.
本公开的跟踪系统实现了声纳收发器的多种用途,既实现了产品功能、又降低了制造成本,可以实时快速地拉家常到外界环境中障碍物的信息、跟踪目标的识别。以较低的成本和简单的结构实现了多项功能,定位跟踪准确,应用价值高。The tracking system of the present disclosure realizes various uses of the sonar transceiver, which not only realizes the product function but also reduces the manufacturing cost, and can quickly and quickly pull the information of the obstacle and the tracking target in the external environment. A number of functions are realized at a lower cost and a simple structure, and the positioning and tracking are accurate and the application value is high.
虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明。本发明所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作各种的更动与润饰。因此,本发明的保护范围当视权利要求书所界定者为准。While the invention has been described above in the preferred embodiments, it is not intended to limit the invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

Claims (12)

  1. 一种基于声纳的机器人跟踪方法,机器人上安装有作为协调器的声纳收发器,跟踪目标上设有作为第一路由节点的声纳收发器,其特征在于,包括以下步骤:A sonar-based robot tracking method is provided with a sonar transceiver as a coordinator, and a sonar transceiver as a first routing node is provided on the tracking target, which comprises the following steps:
    1:在对所述跟踪目标进行跟踪的过程中,当所述协调器接收到机器人的运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器;1: in the process of tracking the tracking target, when the coordinator receives the target recognition positioning instruction issued by the motion controller of the robot, the coordinator acquires the target according to the sound wave emitted by the first routing node Identifying positioning data and transmitting the target identification positioning data to a motion controller;
    2:当所述协调器接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器;2: when the coordinator receives the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller;
    3:所述运动控制器根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;3: The motion controller identifies the positioning data and the ranging data according to the target, obtains a tracking state, and calculates a following path according to the tracking state;
    4:所述运动控制器根据所述跟随路径发送对应的动作指令序列给所述机器人的伺服控制器,由所述伺服控制器驱动所述机器人上的驱动装置实现跟随动作。4: The motion controller sends a corresponding motion instruction sequence to the servo controller of the robot according to the following path, and the servo controller drives the driving device on the robot to implement a following action.
  2. 根据权利要求1所述的基于声纳的机器人跟踪方法,其特征在于,所述机器人上还安装有另一个声呐收发器作为第二路由节点;所述步骤1包括以下步骤:The sonar-based robot tracking method according to claim 1, wherein another sonar transceiver is further mounted on the robot as a second routing node; and the step 1 includes the following steps:
    11:当所述协调器接收到所述目标识别定位指令时,所述协调器广播发送第一帧命令序列;11: when the coordinator receives the target identification positioning instruction, the coordinator broadcasts a first frame command sequence;
    12:所述第一路由节点接收到所述第一帧命令序列,生成包含有延时时间的第二帧命令序列并广播发送所述第二帧命令序列之后,根据所述延时时间延时后发射声波;12: The first routing node receives the first frame command sequence, generates a second frame command sequence including a delay time, and broadcasts the second frame command sequence after broadcasting, according to the delay time delay After emitting sound waves;
    13:所述协调器接收到所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离数据;After receiving the second frame command sequence, the coordinator obtains a first time of receiving the sound wave emitted by the first routing node, and calculates first distance data according to the first time;
    14:第二路由节点接收到所述第一帧命令序列和所述第二帧命令序 列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;After receiving the first frame command sequence and the second frame command sequence, the second routing node acquires a second time of receiving the sound wave emitted by the first routing node, and calculates according to the second time. Obtaining second distance data, and sending the second distance data to the coordinator;
    15:所述协调器将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。15: The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
  3. 根据权利要求2所述的基于声纳的机器人跟踪方法,其特征在于,所述步骤14具体包括以下步骤:The sonar-based robot tracking method according to claim 2, wherein the step 14 specifically comprises the following steps:
    141:第二路由节点接收到所述第一帧命令序列和所述第二帧命令序列后,根据所述延时时间延时后,开始计时;141: After receiving the first frame command sequence and the second frame command sequence, the second routing node starts timing according to the delay time delay;
    142:当接收到所述第一路由节点发射的声波时,所述第二路由节点停止计时,得到第二时间;142: When receiving the sound wave emitted by the first routing node, the second routing node stops timing, and obtains a second time;
    143:所述第二路由节点根据所述第二时间和预设距离公式,计算得到所述第二距离数据;143: The second routing node calculates the second distance data according to the second time and a preset distance formula.
    144:所述第二路由节点将所述第二距离数据发送给所述协调器。144: The second routing node sends the second distance data to the coordinator.
  4. 根据权利要求2所述的基于声纳的机器人跟踪方法,其特征在于,所述步骤2:当所述协调器接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器包括以下步骤:The sonar-based robot tracking method according to claim 2, wherein the step 2: when the coordinator receives the ranging instruction issued by the motion controller, the coordinator acquires the ranging Data and transmitting the ranging data to the motion controller includes the following steps:
    21:当所述协调器接收到所述运动控制器发送的测距指令时,所述协调器将第五帧命令序列发送给第二路由节点;21: When the coordinator receives the ranging instruction sent by the motion controller, the coordinator sends a fifth frame command sequence to the second routing node;
    22:当所述第二路由节点收到所述第五帧命令序列时,所述第二路由节点发射声波,并得到接收到所述第二路由节点发送的声波的回波信号的第三时间;22: When the second routing node receives the fifth frame command sequence, the second routing node transmits an acoustic wave, and obtains a third time of receiving an echo signal of the acoustic wave sent by the second routing node. ;
    23:所述第二路由节点根据所述第三时间和预设测距公式,计算得到第三距离数据,并将所述第三距离数据发送至所述协调器;23: The second routing node calculates third distance data according to the third time and a preset ranging formula, and sends the third distance data to the coordinator;
    24:当所述协调器接收到所述第三距离数据后,所述协调器发射声 波,并得到接收到所述协调器发送的声波的回波信号的第四时间;24: after the coordinator receives the third distance data, the coordinator transmits an acoustic wave, and obtains a fourth time of receiving an echo signal of the acoustic wave sent by the coordinator;
    25:所述协调器根据所述第四时间和所述预设测距公式,计算得到第四距离数据;25: The coordinator calculates the fourth distance data according to the fourth time and the preset ranging formula;
    26:所述协调器将所述第三距离数据和所述第四距离数据作为所述测距数据发送至运动控制器。26: The coordinator transmits the third distance data and the fourth distance data as the ranging data to a motion controller.
  5. 根据权利要求1所述的基于声纳的机器人跟踪方法,其特征在于,所述步骤3:所述运动控制器根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径包括以下步骤:The sonar-based robot tracking method according to claim 1, wherein the step 3: the motion controller obtains a tracking state according to the target identification positioning data and the ranging data, and according to the The tracking state calculates the following path including the following steps:
    31:所述运动控制器根据所述目标识别定位数据和所述测距数据,判断距离所述跟踪目标之间是否存在障碍物;31: The motion controller determines, according to the target identification positioning data and the ranging data, whether there is an obstacle between the tracking targets;
    32:若不存在障碍物,则得到无需避障的跟随路径;32: If there is no obstacle, the following path is obtained without obstacle avoidance;
    33:若存在障碍物,则根据预设避障方法得到避障的跟随路径。33: If there is an obstacle, the following path of the obstacle avoidance is obtained according to the preset obstacle avoidance method.
  6. 根据权利要求5所述的基于声纳的机器人跟踪方法,其特征在于,所述步骤33:若存在障碍物,则根据预设避障方法得到避障的跟随路径包括以下步骤:The sonar-based robot tracking method according to claim 5, wherein the step 33: if there is an obstacle, obtaining the following path of the obstacle avoidance according to the preset obstacle avoidance method comprises the following steps:
    331:当到所述障碍物的距离小于预设距离时,则采用停止前进的跟随路径;331: when the distance to the obstacle is less than a preset distance, adopt a follow path that stops advancing;
    332:当所述障碍物不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。332: When the obstacle is not less than a preset distance, obtain a following path of the slow steering according to the ranging data.
  7. 一种基于声纳的机器人跟踪系统,其特征在于,包括:跟踪目标和机器人;A sonar-based robot tracking system, comprising: tracking a target and a robot;
    所述跟踪目标包括:作为第一路由节点的声纳收发器;The tracking target includes: a sonar transceiver as a first routing node;
    所述机器人包括:作为协调器的声纳收发器、运动控制器、伺服控制器和驱动装置;The robot includes: a sonar transceiver as a coordinator, a motion controller, a servo controller, and a driving device;
    所述协调器,用于在对所述跟踪目标进行跟踪的过程中,当接收到所述运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器;The coordinator, in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires the sound wave according to the first routing node The target identifies the positioning data, and sends the target identification positioning data to the motion controller;
    以及,当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器;And, when receiving the ranging instruction issued by the motion controller, the coordinator acquires ranging data, and sends the ranging data to the motion controller;
    所述运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径;以及,根据所述跟随路径发送对应的动作指令序列给所述伺服控制器;The motion controller is configured to identify the positioning data according to the target and the ranging data, obtain a tracking status, and calculate a following path according to the tracking status; and send a corresponding action instruction sequence according to the following path Giving the servo controller;
    所述伺服控制器,用于根据接收到的所述动作指令序列驱动所述驱动装置实现跟随动作。The servo controller is configured to drive the driving device to implement a following action according to the received sequence of the motion instruction.
  8. 根据权利要求7所述的基于声纳的机器人跟踪系统,其特征在于:The sonar-based robot tracking system according to claim 7, wherein:
    所述机器人还包括:另一个作为第二路由节点的声纳收发器;The robot further includes: another sonar transceiver as a second routing node;
    所述协调器,用于在对跟踪目标进行跟踪的过程中,当接收到所述运动控制器发出的目标识别定位指令时,所述协调器根据所述第一路由节点发射的声波获取目标识别定位数据,并将所述目标识别定位数据发送至运动控制器包括:The coordinator, in the process of tracking the tracking target, when receiving the target recognition positioning instruction issued by the motion controller, the coordinator acquires target recognition according to the sound wave emitted by the first routing node Locating the data and transmitting the target identification positioning data to the motion controller includes:
    所述协调器,用于当接收到所述目标识别定位指令时,所述协调器广播发送第一帧命令序列;The coordinator, when the target recognition positioning instruction is received, the coordinator broadcasts a first frame command sequence;
    所述第一路由节点,用于接收到所述第一帧命令序列,生成包含有延时时间的第二帧命令序列并广播发送所述第二帧命令序列之后,根据所述延时时间延时后发射声波;The first routing node is configured to receive the first frame command sequence, generate a second frame command sequence including a delay time, and broadcast and transmit the second frame command sequence, according to the delay time delay Acoustic waves are emitted afterwards;
    所述协调器,用于接收到所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第一时间,并根据所述第一时间计算得到第一距离数据;The coordinator is configured to: after receiving the second frame command sequence, acquire a first time of receiving the sound wave emitted by the first routing node, and calculate the first distance data according to the first time;
    所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并 根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器;The second routing node, after receiving the first frame command sequence and the second frame command sequence, acquiring a second time of receiving the sound wave emitted by the first routing node, and according to the Calculating, by the second time, the second distance data, and sending the second distance data to the coordinator;
    所述协调器,将所述第一距离数据和所述第二距离数据作为所述目标识别定位数据发送至运动控制器。The coordinator transmits the first distance data and the second distance data as the target identification positioning data to a motion controller.
  9. 根据权利要求8所述的基于声纳的机器人跟踪系统,其特征在于:所述第二路由节点,用于接收到所述第一帧命令序列和所述第二帧命令序列后,获取接收到所述第一路由节点发射的声波的第二时间,并根据所述第二时间计算得到第二距离数据,将所述第二距离数据发送给所述协调器包括:The sonar-based robot tracking system according to claim 8, wherein the second routing node is configured to receive and receive the first frame command sequence and the second frame command sequence a second time of the sound wave transmitted by the first routing node, and calculating second distance data according to the second time, and sending the second distance data to the coordinator includes:
    所述第二路由节点,接收到所述第一帧命令序列和所述第二帧命令序列后,根据所述延时时间延时后,开始计时;After receiving the first frame command sequence and the second frame command sequence, the second routing node starts timing according to the delay time delay;
    以及,当接收到所述第一路由节点发射的声波时,所述第二路由节点停止计时,得到第二时间;And, when receiving the sound wave emitted by the first routing node, the second routing node stops timing, and obtains a second time;
    以及,根据所述第二时间和预设距离公式,计算得到所述第二距离数据;And calculating, according to the second time and the preset distance formula, the second distance data;
    以及,将所述第二距离数据发送给所述协调器。And transmitting the second distance data to the coordinator.
  10. 根据权利要求8所述的基于声纳的机器人跟踪系统,其特征在于,所述协调器,用于当接收到所述运动控制器发出的测距指令时,所述协调器获取测距数据,并将所述测距数据发送至运动控制器包括:The sonar-based robot tracking system according to claim 8, wherein the coordinator is configured to acquire ranging data when receiving a ranging instruction issued by the motion controller, And transmitting the ranging data to the motion controller comprises:
    所述协调器,用于当接收到所述运动控制器发送的测距指令时,所述协调器将第五帧命令序列发送给第二路由节点;The coordinator, when receiving the ranging instruction sent by the motion controller, the coordinator sends a fifth frame command sequence to the second routing node;
    所述第二路由节点,用于当收到所述第五帧命令序列时,所述第二路由节点发射声波,并得到接收到所述第二路由节点发送的声波的回波信号的第三时间;以及,根据所述第三时间和预设测距公式,计算得到第三距离数据,并将所述第三距离数据发送至所述协调器;The second routing node is configured to: when receiving the sequence of the fifth frame command, the second routing node transmits an acoustic wave, and obtains a third of an echo signal of the acoustic wave sent by the second routing node. And calculating, according to the third time and the preset ranging formula, the third distance data, and sending the third distance data to the coordinator;
    所述协调器,用于当接收到所述第三距离数据后,所述协调器发射 声波,并得到接收到所述协调器发送的声波的回波信号的第四时间;以及,根据所述第四时间和所述预设测距公式,计算得到第四距离数据;以及,将所述第三距离数据和所述第四距离数据作为所述测距数据发送至运动控制器。The coordinator, configured to: after receiving the third distance data, the coordinator emits an acoustic wave, and obtains a fourth time of receiving an echo signal of the acoustic wave sent by the coordinator; and, according to the And calculating a fourth distance data by using the fourth time and the preset ranging formula; and transmitting the third distance data and the fourth distance data as the ranging data to the motion controller.
  11. 根据权利要求7所述的基于声纳的机器人跟踪系统,其特征在于,所述运动控制器,用于根据所述目标识别定位数据以及所述测距数据,得到跟踪状态,并根据所述跟踪状态计算出跟随路径包括:The sonar-based robot tracking system according to claim 7, wherein the motion controller is configured to obtain a tracking state according to the target identification positioning data and the ranging data, and according to the tracking The state calculates the following path including:
    所述运动控制器,用于根据所述目标识别定位数据和所述测距数据,判断距离所述跟踪目标之间是否存在障碍物;若不存在障碍物,则得到无需避障的跟随路径;若存在障碍物,则根据预设避障方法得到避障的跟随路径。The motion controller is configured to determine, according to the target identification positioning data and the ranging data, whether there is an obstacle between the tracking targets; if there is no obstacle, obtain a following path that does not need to avoid obstacles; If there is an obstacle, the following path of the obstacle avoidance is obtained according to the preset obstacle avoidance method.
  12. 根据权利要求11所述的基于声纳的机器人跟踪系统,其特征在于,所述运动控制器,若存在障碍物,则根据预设避障方法得到避障的跟随路径包括:The sonar-based robot tracking system according to claim 11, wherein the motion controller, if there is an obstacle, obtains an obstacle avoidance follow path according to the preset obstacle avoidance method, including:
    所述运动控制器,用于当到所述障碍物的距离小于预设距离时,采用停止前进的跟随路径;The motion controller is configured to adopt a follow path that stops advancing when a distance to the obstacle is less than a preset distance;
    以及,当所述障碍物不小于预设距离时,根据所述测距数据得到慢速转向的跟随路径。And, when the obstacle is not less than the preset distance, the following path of the slow steering is obtained according to the ranging data.
PCT/CN2018/073825 2017-04-22 2018-01-23 Sonar-based robot tracking method and system WO2018192284A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710268355.2 2017-04-22
CN201710268355.2A CN107422725B (en) 2017-04-22 2017-04-22 Robot tracking method based on sonar

Publications (1)

Publication Number Publication Date
WO2018192284A1 true WO2018192284A1 (en) 2018-10-25

Family

ID=60423796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073825 WO2018192284A1 (en) 2017-04-22 2018-01-23 Sonar-based robot tracking method and system

Country Status (2)

Country Link
CN (1) CN107422725B (en)
WO (1) WO2018192284A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109463868A (en) * 2018-12-26 2019-03-15 南京英维尔科技服务有限公司 a smart suitcase
CN111435259A (en) * 2019-01-14 2020-07-21 北京京东尚科信息技术有限公司 Intelligent following vehicle movement control device and intelligent following vehicle

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422725B (en) * 2017-04-22 2020-04-17 南京阿凡达机器人科技有限公司 Robot tracking method based on sonar
CN108196543A (en) * 2017-12-28 2018-06-22 惠州Tcl家电集团有限公司 The barrier-avoiding method and computer readable storage medium of mobile device, mobile device
CN109164802A (en) * 2018-08-23 2019-01-08 厦门理工学院 A kind of robot maze traveling method, device and robot
CN109407099A (en) * 2018-09-04 2019-03-01 佛山科学技术学院 A kind of ultrasonic ranging method and its system
CN109307857B (en) * 2018-11-12 2020-06-09 湖北工业大学 A multi-sensor-based autonomous tracking and positioning device and method
CN109582041A (en) * 2018-12-14 2019-04-05 珠海格力电器股份有限公司 Movable fan, target following control method and device thereof, and storage medium
CN109445442A (en) * 2018-12-17 2019-03-08 中新智擎科技有限公司 A kind of robot obstacle-avoiding control method, device, storage medium and robot
CN110047366A (en) * 2019-03-26 2019-07-23 杭州合学教育科技有限公司 Automobile teaching aid avoiding obstacles method and device, readable storage medium storing program for executing and terminal
CN113567989A (en) * 2021-06-18 2021-10-29 广州鸿海海洋技术服务有限公司 Marine environment monitoring system based on underwater robot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014207299A1 (en) * 2013-06-25 2014-12-31 Tekno-Ants Oy Method and guidance system for use of robot
CN204965183U (en) * 2015-07-12 2016-01-13 仲恺农业工程学院 autonomous mobile intelligent robot
CN205041882U (en) * 2015-09-28 2016-02-24 张建卿 Automatic trail infusion robot
CN106527425A (en) * 2016-09-30 2017-03-22 张家港长安大学汽车工程研究院 Omnibearing intelligent following trolley and controlling method thereof
CN107422725A (en) * 2017-04-22 2017-12-01 南京阿凡达机器人科技有限公司 A kind of robotic tracking's method based on sonar

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014207299A1 (en) * 2013-06-25 2014-12-31 Tekno-Ants Oy Method and guidance system for use of robot
CN204965183U (en) * 2015-07-12 2016-01-13 仲恺农业工程学院 autonomous mobile intelligent robot
CN205041882U (en) * 2015-09-28 2016-02-24 张建卿 Automatic trail infusion robot
CN106527425A (en) * 2016-09-30 2017-03-22 张家港长安大学汽车工程研究院 Omnibearing intelligent following trolley and controlling method thereof
CN107422725A (en) * 2017-04-22 2017-12-01 南京阿凡达机器人科技有限公司 A kind of robotic tracking's method based on sonar

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109463868A (en) * 2018-12-26 2019-03-15 南京英维尔科技服务有限公司 a smart suitcase
CN111435259A (en) * 2019-01-14 2020-07-21 北京京东尚科信息技术有限公司 Intelligent following vehicle movement control device and intelligent following vehicle

Also Published As

Publication number Publication date
CN107422725B (en) 2020-04-17
CN107422725A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
WO2018192284A1 (en) Sonar-based robot tracking method and system
CN108888187A (en) A kind of sweeping robot based on depth camera
WO2013024509A1 (en) Object detection device
JP7319303B2 (en) Radar head pose localization
CN110456791A (en) A target ranging and recognition system for legged mobile robot based on monocular vision
CN103995984A (en) Robot path planning method and device based on elliptic constrains
US20060259213A1 (en) Tracking system and autonomous mobile unit
CN109324634B (en) Aircraft and positioning method, control method and optical flow module thereof
RU2010128099A (en) METHOD AND SYSTEM FOR FORMING VESSEL IMAGES
Kuc Three-dimensional tracking using qualitative bionic sonar
CN201266322Y (en) Ultrasonic target positioning and tracking device
CN110211420A (en) Judge current scene whether be parking lot method, system and computer readable storage medium
KR20210123076A (en) Method for operation unmanned moving vehivle based on binary 3d space map
CN103901430B (en) Radar Transmitter Orbit Design Method for Bistatic Forward-Looking SAR in Dive Phase
CN105629241A (en) Robot positioning method based on split ultrasonic wave and radio frequency combination
KR20110012584A (en) Ultrasonic Based 3D Position Estimation Apparatus and Method
CN108227744B (en) An underwater robot positioning and navigation system and positioning and navigation method
CN108205314A (en) Based on the matched robot navigation device of stereoscopic vision and system
CN109211260B (en) Intelligent vehicle driving path planning method and device and intelligent vehicle
CN107229284B (en) Unmanned aerial vehicle obstacle avoidance device and method
TW201831920A (en) Auto moving device
CN105572673A (en) Ultrasonic ranging method and device
KR20200083684A (en) Precise Positioning System and Traveling Guidance System and Method for Autonomous Guided Vehicle using the Precise Positioning System
CN107796403A (en) Moving method, device and the robot of robot
KR100752580B1 (en) Location estimation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18787635

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18787635

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18787635

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/05/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18787635

Country of ref document: EP

Kind code of ref document: A1