CN116429101A - Track tracking control system and method based on inertial navigation - Google Patents
Track tracking control system and method based on inertial navigation Download PDFInfo
- Publication number
- CN116429101A CN116429101A CN202310414546.0A CN202310414546A CN116429101A CN 116429101 A CN116429101 A CN 116429101A CN 202310414546 A CN202310414546 A CN 202310414546A CN 116429101 A CN116429101 A CN 116429101A
- Authority
- CN
- China
- Prior art keywords
- real
- information
- time
- carrier
- tracking control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000001133 acceleration Effects 0.000 claims description 33
- 238000013480 data collection Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 abstract description 31
- 230000008569 process Effects 0.000 abstract description 8
- 238000004891 communication Methods 0.000 abstract description 6
- 230000001186 cumulative effect Effects 0.000 abstract description 3
- 230000033001 locomotion Effects 0.000 description 13
- 238000001914 filtration Methods 0.000 description 7
- 239000011159 matrix material Substances 0.000 description 6
- 238000005259 measurement Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 238000013500 data storage Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 239000003245 coal Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007500 overflow downdraw method Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000029305 taxis Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
本申请提供一种基于惯性导航的轨迹跟踪控制系统及方法,所述基于惯性导航的轨迹跟踪控制系统基于惯导系统中的九轴传感系统,并且,在所述九轴传感系统中增设里程计,将所述里程计所采集到的数据与其余传感器所采集到的数据进行融合,从而减少位姿信息的累积误差,提高位姿信息的准确性;另一方面,本申请提供的方法在传输数据过程中,首先将待传输的数据转化为INT16格式数据,再采用2.4GHz通讯方式进行数据传输,从而既提高传输距离,又提高数据传送量。
The present application provides a trajectory tracking control system and method based on inertial navigation. The trajectory tracking control system based on inertial navigation is based on the nine-axis sensing system in the inertial navigation system, and an additional An odometer, which fuses the data collected by the odometer with the data collected by other sensors, thereby reducing the cumulative error of the pose information and improving the accuracy of the pose information; on the other hand, the method provided by the application In the process of data transmission, the data to be transmitted is first converted into INT16 format data, and then 2.4GHz communication method is used for data transmission, which not only increases the transmission distance, but also increases the data transmission volume.
Description
技术领域technical field
本申请属于计算机与控制系统领域,特别涉及一种基于惯性导航的轨迹跟踪控制系统及方法。The application belongs to the field of computers and control systems, and in particular relates to a trajectory tracking control system and method based on inertial navigation.
背景技术Background technique
导航技术已从军用领域迅速发展到民用领域,惠及各行各业。导航系统最常使用的包括惯性导航系统(INS,简称“惯导系统”)和GPS导航系统,其中,惯性导航系统不依赖于外部信息、也不向外部辐射能量的自主式导航系统,是现代定位与运动控制的常用传感器,具体体包括捷联式惯性导航系统、平台式惯导系统,由于捷联式惯性导航系统具有可靠性高、功能强、重量轻、成本低、精度高以及使用灵活等优点,使得捷联式惯性导航系统已经成为当今惯性导航系统发展的主流。捷联式惯性导航系统主要包括六轴传感系统以及九轴传感系统,其中,九轴传感系统亦被称为惯性传感系统,一般包括加速度传感器和角速度传感器、它们的单、双、三轴组合惯性测量单元(Inertial Measurement Unit,IMU)以及磁传感器的姿态参考系统(Attitude and heading reference system,AHRS)。Navigation technology has rapidly developed from the military field to the civilian field, benefiting all walks of life. The most commonly used navigation systems include inertial navigation system (INS, referred to as "inertial navigation system") and GPS navigation system. Among them, the inertial navigation system is an autonomous navigation system that does not depend on external information or radiate energy to the outside. Commonly used sensors for positioning and motion control, specifically including strapdown inertial navigation system and platform inertial navigation system, because strapdown inertial navigation system has high reliability, strong function, light weight, low cost, high precision and flexible use And other advantages, making the strapdown inertial navigation system has become the mainstream of the development of today's inertial navigation system. The strapdown inertial navigation system mainly includes a six-axis sensing system and a nine-axis sensing system. Among them, the nine-axis sensing system is also called an inertial sensing system, and generally includes an acceleration sensor and an angular velocity sensor, and their single, double, Three-axis combined inertial measurement unit (Inertial Measurement Unit, IMU) and magnetic sensor attitude reference system (Attitude and heading reference system, AHRS).
九轴传感系统可被应用于控制端与运行载体相分离的场景,例如,可应用于水下机器人、无人驾驶出租车或者搜救机器人等,在实际应用中,控制端一般为操作人员所持有,而运行载体,例如水下机器人本体则与操作人员分离,位于实际需要前往的环境中,操作人员可通过控制端设定运行载体的目标路径,并监控运行载体的实际运行路径及各时刻的位姿,进一步地,可根据实际运行路径、当前位姿等条件随时变更目标路径。The nine-axis sensing system can be applied to scenarios where the control terminal is separated from the operating carrier, for example, it can be applied to underwater robots, unmanned taxis, or search and rescue robots. In practical applications, the control terminal is generally controlled by the operator. Hold, while the operating carrier, such as the underwater robot body, is separated from the operator and located in the actual environment where the operator needs to go. The operator can set the target path of the operating carrier through the control terminal, and monitor the actual operating path of the operating carrier and various parameters. Furthermore, the target path can be changed at any time according to conditions such as the actual running path and the current pose.
运行载体的位姿可基于九轴传感系统所采集的数据而确定,目前,具体用于确定运行载体位姿的算法众多,例如,卡尔曼滤波,Madgwick算法等,但是,主要思想均为基于惯导所采集的数据进行积分而得,因此,积分结果存在累积误差,随着采集时间的增加,累积误差越来越大,导致导航结果不准确。The pose of the running carrier can be determined based on the data collected by the nine-axis sensing system. At present, there are many algorithms for determining the pose of the running carrier, such as Kalman filter, Madgwick algorithm, etc., but the main ideas are based on The data collected by the inertial navigation is integrated. Therefore, there is an accumulation error in the integration result. As the collection time increases, the accumulation error becomes larger and larger, resulting in inaccurate navigation results.
此外,控制端与运行载体的通讯通常采用无线传输的方式,主流的无线传输方式包括蓝牙、WIFI和2.4GHz通讯,其中,蓝牙传输如果采用高波特率传输则容易在传输过程中丢包,如果采用低高波特率传输则会造成传输速度慢等问题;WIFI传输则会随传输距离的增加而丢包;2.4GHz通讯传输虽能够提高传输距离,但是,其传输的数据量低,因此,上述无线传输方式均会不同程度地导致用户端与运行载体之间的数据无法及时、准确、完整地相互传输。In addition, the communication between the control terminal and the operating carrier usually adopts wireless transmission. The mainstream wireless transmission methods include Bluetooth, WIFI and 2.4GHz communication. Among them, if Bluetooth transmission adopts high baud rate transmission, it is easy to lose packets during transmission. If a low or high baud rate is used for transmission, it will cause problems such as slow transmission speed; WIFI transmission will lose packets as the transmission distance increases; 2.4GHz communication transmission can increase the transmission distance, but the amount of data transmitted is low, so , the above wireless transmission methods will lead to varying degrees that the data between the user terminal and the operating carrier cannot be transmitted to each other in a timely, accurate and complete manner.
发明内容Contents of the invention
本申请提供一种基于惯性导航的轨迹跟踪控制系统及方法,所述基于惯性导航的轨迹跟踪控制系统基于惯导系统中的九轴传感系统,并且,在所述九轴传感系统中增设里程计,将所述里程计所采集到的数据与其余传感器所采集到的数据进行融合,从而减少位姿信息的累积误差,提高位姿信息的准确性;另一方面,本申请提供的方法在传输数据过程中,首先将待传输的数据转化为INT16格式数据,再采用2.4GHz通讯方式进行数据传输,从而既提高传输距离,又提高数据传送量。The present application provides a trajectory tracking control system and method based on inertial navigation. The trajectory tracking control system based on inertial navigation is based on the nine-axis sensing system in the inertial navigation system, and an additional An odometer, which fuses the data collected by the odometer with the data collected by other sensors, thereby reducing the cumulative error of the pose information and improving the accuracy of the pose information; on the other hand, the method provided by the application In the process of data transmission, the data to be transmitted is first converted into INT16 format data, and then 2.4GHz communication method is used for data transmission, which not only increases the transmission distance, but also increases the data transmission volume.
本申请的目的在于提供以下几个方面:The purpose of this application is to provide the following aspects:
第一方面,本申请提供一种基于惯性导航的轨迹跟踪控制方法,所述轨迹跟踪控制方法包括:In a first aspect, the present application provides a trajectory tracking control method based on inertial navigation, the trajectory tracking control method comprising:
S100,获取所述运行载体的第一目标行驶路径;S100, acquiring a first target driving route of the running carrier;
S200,获取所述运行载体的第一位姿信息,所述第一位姿信息包括第一姿态信息、第一速度信息以及第一位置信息;S200. Acquire first pose information of the operating carrier, where the first pose information includes first pose information, first speed information, and first position information;
S300,比对所述运行载体的第一实际行驶路径与所述第一目标行驶路径,获得第一比对结果;S300. Comparing the first actual travel route of the operating carrier with the first target travel route to obtain a first comparison result;
S400,根据所述第一比对结果和用户第一指令生成第二目标行驶路径,所述用户第一指令由所述用户端发送而得;S400. Generate a second target driving route according to the first comparison result and the first instruction of the user, the first instruction of the user is sent by the user terminal;
S500,控制所述运行载体按照所述第二目标行驶路径行驶。S500. Control the operating carrier to travel according to the second target travel route.
在一种可实现的方式中,所述获取所述运行载体当前的位姿信息具体可以包括:In a practicable manner, the acquiring the current pose information of the operating carrier may specifically include:
S201,获取实时加速度、实时角速度、实时磁力值和实时里程值,其中,所述实时加速度由加速度传感器实时采集所得,所述角速度由角速度传感器实时采集所得,所述实时磁力值由磁力计实时采集所得,所述实时里程值由里程计实时采集所得;S201. Acquire real-time acceleration, real-time angular velocity, real-time magnetic force value and real-time mileage value, wherein the real-time acceleration is collected in real time by an acceleration sensor, the angular velocity is collected in real time by an angular velocity sensor, and the real-time magnetic force value is collected in real time by a magnetometer Gained, the real-time mileage value is collected by the odometer in real time;
S202,根据所述实时加速度、所述实时角速度和所述实时磁力值计算所述运行载体的第一姿态信息;S202. Calculate first attitude information of the running carrier according to the real-time acceleration, the real-time angular velocity, and the real-time magnetic force value;
S203,根据所述实时加速度以及所述实时里程值计算第二位置信息。S203. Calculate second position information according to the real-time acceleration and the real-time mileage.
进一步地,根据所述实时加速度以及所述实时里程值计算第二位置信息具体可以包括:Further, calculating the second position information according to the real-time acceleration and the real-time mileage may specifically include:
S231,根据所述实时加速度计算第一速度信息;S231. Calculate first speed information according to the real-time acceleration;
S232,根据所述实时里程值计算第二速度信息和第一位置信息,S232. Calculate the second speed information and the first position information according to the real-time mileage value,
S233,根据所述第一速度信息和所述第二速度信息计算第三速度信息;S233. Calculate third speed information according to the first speed information and the second speed information;
S234,根据所述第三速度信息以及所述第一位置信息计算第二位置信息。S234. Calculate second position information according to the third speed information and the first position information.
更进一步地,所述根据所述第一速度信息和所述第二速度信息计算第三速度信息具体可以为根据所述第一速度信息和所述第二速度信息采用卡尔曼滤波的方法计算第三速度信息。Furthermore, the calculating the third velocity information according to the first velocity information and the second velocity information may specifically be calculating the third velocity information by using a Kalman filter method based on the first velocity information and the second velocity information. Three speed information.
更进一步地,所述根据所述第三速度信息以及所述第一位置信息计算第二位置信息具体可以为根据所述第三速度信息以及所述第一位置信息采用卡尔曼滤波的方法计算第二位置信息。Furthermore, the calculating the second location information based on the third velocity information and the first location information may specifically be calculating the second location information by using a Kalman filter method based on the third velocity information and the first location information. 2. Location information.
在一种可实现的方式中,所述用户端发送用户指令具体可以包括:In a practicable manner, the sending of the user instruction by the client may specifically include:
S401,将用户端待发送指令转化为INT16格式的数据,并将转化的数据压缩为数据包;S401, converting the command to be sent by the client into data in INT16 format, and compressing the converted data into a data packet;
S402,将步骤S401获得的数据包采用Zigbee方式传输至运行载体。S402. Transmit the data packet obtained in step S401 to the running carrier in Zigbee mode.
第二方面,本申请还提供一种轨迹跟踪控制系统,所述轨迹跟踪控制系统包括用户端设备和载体端设备,其中,载体端设备安装于运行载体,所述载体端设备包括电控子系统和数据采集子系统,所述数据采集子系统用于采集运行载体的运行状态,所述电控子系统包括核心处理器,所述核心处理器被配置为用于执行:In a second aspect, the present application also provides a track tracking control system, the track tracking control system includes a user end device and a carrier end device, wherein the carrier end device is installed on the running carrier, and the carrier end device includes an electronic control subsystem and a data acquisition subsystem, the data acquisition subsystem is used to collect the running state of the running carrier, the electronic control subsystem includes a core processor, and the core processor is configured to execute:
S100,获取所述运行载体的第一目标行驶路径;S100, acquiring a first target driving route of the running carrier;
S200,获取所述运行载体的第一位姿信息,所述第一位姿信息包括第一姿态信息、第一速度信息以及第一位置信息;S200. Acquire first pose information of the operating carrier, where the first pose information includes first pose information, first speed information, and first position information;
S300,比对所述运行载体的第一实际行驶路径与所述第一目标行驶路径,获得第一比对结果;S300. Comparing the first actual travel route of the operating carrier with the first target travel route to obtain a first comparison result;
S400,根据所述第一比对结果和/或用户第一指令生成第二目标行驶路径,所述用户第一指令由所述用户端发送而得;S400. Generate a second target driving route according to the first comparison result and/or the first user instruction, the first user instruction being sent by the user terminal;
S500,控制所述运行载体按照所述第二目标行驶路径行驶。S500. Control the operating carrier to travel according to the second target travel route.
第三方面,本申请还提供一种轨迹跟踪控制的程序,所用程序用于执行时实现上述第一方面所述轨迹跟踪控制方法的步骤。In a third aspect, the present application also provides a trajectory tracking control program, the program used is used to implement the steps of the trajectory tracking control method described in the first aspect when executed.
第四方面,一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述第一方面所述轨迹跟踪控制方法的步骤。In a fourth aspect, a computer-readable storage medium stores computer instructions thereon, and when the instructions are executed by a processor, the steps of the trajectory tracking control method described in the first aspect above are implemented.
与现有技术相比,本申请提供的轨迹跟踪控制系统还包括里程计,并将所述里程计采集的里程值与加速度传感器采集的加速度值、角速度传感器采集的角速度值融合,计算位姿信息,从而减小累积误差,获得更为精准的位姿信息,进一步地,可根据所述位姿信息调整目标行驶路径,此外,本申请使用INT16格式的数据采用Zigbee方式进行无线传输,使得数据传输既能够保证长距离传输,又保证传输速度。Compared with the prior art, the trajectory tracking control system provided by the present application also includes an odometer, and the mileage value collected by the odometer is fused with the acceleration value collected by the acceleration sensor and the angular velocity value collected by the angular velocity sensor to calculate the pose information , so as to reduce the cumulative error and obtain more accurate pose information. Further, the target driving path can be adjusted according to the pose information. In addition, this application uses the data in INT16 format for wireless transmission using Zigbee, so that the data transmission It can not only ensure long-distance transmission, but also ensure transmission speed.
本申请首先通过实现惯性导航数据的解算,采用捷联惯性导航算法进行解算数据,其中使用二阶毕卡算法计算姿态信息;并且,本申请使用捷联式惯性导航辅助驾驶,采用PID控制,实现轨迹跟踪准确度高、如果发生偏航行驶路径更新速度快、系统运行的稳定性更高的优点。This application first realizes the calculation of inertial navigation data, and adopts the strapdown inertial navigation algorithm to solve the data, wherein the second-order Picard algorithm is used to calculate the attitude information; and, this application uses the strapdown inertial navigation to assist driving, and adopts PID control , to realize the advantages of high trajectory tracking accuracy, fast update speed of driving path if yaw occurs, and higher stability of system operation.
同时,用户端具有可视化功能,从而实现智能车的远程监控,能够充分将车辆的位置与姿态信息获取,并加以更准更快更稳定地控制运行载体。At the same time, the client has a visualization function, so as to realize the remote monitoring of the smart car, which can fully obtain the position and attitude information of the vehicle, and control the operating carrier more accurately, faster and more stably.
在数据读取处理上,对陀螺仪以及加速度计的原始数据使用了四阶切比雪夫低通数字滤波器进行滤波,便于减小高频噪声的影响,排除了大部分的外界干扰;In the data reading process, the raw data of the gyroscope and the accelerometer are filtered by a fourth-order Chebyshev low-pass digital filter, which is convenient to reduce the influence of high-frequency noise and eliminate most of the external interference;
在硬件选型上,使用受干扰较小的惯性传感器和器件,例如,icm-42688等等,减小因器件自身制造工艺带来的误差,减小这部分对系统产生的影响,进而通过捷联惯性导航算法实现确定实际智能车的位置以及速度、角度,并且可以对其运动轨迹进行控制;In terms of hardware selection, use inertial sensors and devices that are less disturbed, such as icm-42688, etc., to reduce the error caused by the manufacturing process of the device itself, reduce the impact of this part on the system, and then pass the shortcut The linked inertial navigation algorithm realizes the determination of the position, speed and angle of the actual smart car, and can control its trajectory;
在控制智能车运动方面采用PID控制,本申请将当前角度与目标点角度之间偏差、当前速度与设定速度之间偏差、当前速度与设定位置之间偏差作为控制器输入量,当前角度、当前速度、当前位置作为控制器的反馈量,使得跟踪速度快输出误差小。PID control is used to control the movement of smart cars. This application uses the deviation between the current angle and the target point angle, the deviation between the current speed and the set speed, and the deviation between the current speed and the set position as the controller input. The current angle , current speed, and current position are used as the feedback quantity of the controller, so that the tracking speed is fast and the output error is small.
本申请提供的轨迹跟踪控制系统可应用于多种实际场景,例如,水下机器人或者搜救机器人等。The trajectory tracking control system provided in this application can be applied to various practical scenarios, for example, underwater robots or search and rescue robots.
附图说明Description of drawings
图1示出一种基于惯性导航的轨迹跟踪控制系统的结构示意图;Fig. 1 shows a kind of structural representation of the trajectory tracking control system based on inertial navigation;
图2示出本申请提供的轨迹跟踪控制方法的流程图;Fig. 2 shows the flowchart of the trajectory tracking control method provided by the present application;
图3示出本申请一种可实现数据处理流程图;Fig. 3 shows a flow chart of data processing that can be realized in the present application;
图4示出本实例中INS与里程计的卡尔曼滤波结构。Fig. 4 shows the Kalman filtering structure of INS and odometer in this example.
附图标记说明Explanation of reference signs
001-用户端,002-运行载体端,021-电控子系统,022-数据采集子系统。001-user terminal, 002-operating carrier terminal, 021-electronic control subsystem, 022-data acquisition subsystem.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of approaches consistent with aspects of the invention as recited in the appended claims.
下面通过具体的实施例对本申请提供的基于惯性导航的轨迹跟踪控制方法及系统进行详细阐述。The inertial navigation-based trajectory tracking control method and system provided by the present application will be described in detail below through specific embodiments.
首先,对本方案的使用场景作简要介绍。First, a brief introduction to the usage scenarios of this solution.
对于水下机器人、搜救机器人等需要远程导航运行路径的设备,硬件通常包括用户端和运行载体端两大部分,其中,在运行载体端可搭载惯性导航系统。For underwater robots, search and rescue robots, and other equipment that require remote navigation and running paths, the hardware usually includes two parts: the user end and the operating carrier end. Among them, the operating carrier end can be equipped with an inertial navigation system.
惯性导航系统得到解算的位姿信息与运行载体的实际信息一致,才可以尽量提高智能汽车的运动精确度,运行载体在行驶过程中具有精确性、平稳性两个特性。The pose information calculated by the inertial navigation system is consistent with the actual information of the running carrier, so that the motion accuracy of the smart car can be improved as much as possible. The running carrier has two characteristics of accuracy and stability during driving.
目前,通过惯性传感器读到的数据处理得到位姿信息的算法包括卡尔曼滤波(Kalman filtering)法、Madgwick算法和Mahony算法。其中,卡尔曼滤波是一种利用线性系统状态方程,具体地,通过输入输出观测数据,对系统状态进行最优估计的算法,在测量方差已知的情况下能够从一系列存在测量噪声的数据中,估计动态系统的状态,是目前应用最为广泛的滤波方法,在通信,导航,制导与控制等多领域得到了较好的应用;Madgwick算法能够综合多种传感器参数得到传感器的姿态,是一种九轴融合的方法,广泛应用在旋翼飞行器上,主要利用四元数微分方程求解当前姿态,分别利用加速度计和地磁计进行补偿,推导出两种姿态融合算法。At present, algorithms for obtaining pose information by processing data read by an inertial sensor include a Kalman filtering method, a Madgwick algorithm, and a Mahony algorithm. Among them, the Kalman filter is an algorithm that uses the linear system state equation, specifically, through the input and output observation data, to optimally estimate the system state. When the measurement variance is known, it can obtain a series of data with measurement noise Among them, estimating the state of the dynamic system is the most widely used filtering method at present, and has been well applied in many fields such as communication, navigation, guidance and control; the Madgwick algorithm can synthesize a variety of sensor parameters to obtain the attitude of the sensor, which is a A nine-axis fusion method is widely used in rotorcraft. It mainly uses the quaternion differential equation to solve the current attitude, uses the accelerometer and the magnetometer to compensate respectively, and derives two attitude fusion algorithms.
本申请提出一种基于Mahony算法,附加里程值进行计算,从而减小由姿态信息计算速度所产生的误差,并进一步减小由速度信息计算位置信息所产生的误差。This application proposes a method based on the Mahony algorithm, which is calculated by adding mileage values, thereby reducing the error generated by calculating the velocity from the attitude information, and further reducing the error generated by calculating the position information from the velocity information.
图1示出一种基于惯性导航的轨迹跟踪控制系统的结构示意图,如图1所示,所述轨迹跟踪控制系统包括用户端(001)和运行载体端(002),其中,所述用户端001被操作人员持有,用于操作人员与运行载体进行人机交互,例如,实时查看运行载体的运行状态、实际行驶路径以及位姿状态等,调整参数设定,修改目标行驶路径等。Fig. 1 shows a schematic structural diagram of a trajectory tracking control system based on inertial navigation. As shown in Fig. 1, the trajectory tracking control system includes a user terminal (001) and a running carrier terminal (002), wherein the
在本实例中,所述用户端001包括第一显示器和用户端数据存储器,所述第一显示器用于实现人机图形化交互,例如,修改控制器的控制参数,具体地,角度控制器中的比例参数、微分参数、积分参数等;再如,显示用户通过用户端获取的惯导数据,包括传感器采集的原始数据以及核心处理器处理所得的位姿信息等;所述用户端数据存储器可用于存储所述运行载体端(002)发送的信息。In this example, the
再如图1所示,所述运行载体端002设置于运行载体上,所述运行载体具体可以为水下机器人本体、搜救机器人本体等,所述运行载体端(002)包括电控子系统(021)和数据采集子系统(022)。As shown in Figure 1 again, the operating carrier end 002 is arranged on the operating carrier, and the operating carrier may specifically be an underwater robot body, a search and rescue robot body, etc., and the operating carrier end (002) includes an electronic control subsystem ( 021) and data acquisition subsystem (022).
在本实例中,所述电控子系统(021)包括核心处理器、数据收发装置和电控组件。In this example, the electronic control subsystem (021) includes a core processor, a data transceiving device and an electronic control component.
在本实例中,所述数据采集子系统包括加速度传感器、角速度传感器、磁力计和里程计,其中,所述加速度传感器主要用于实时采集运行载体的加速度,具体可以为加速度计,所述角速度传感器主要用于实时采集运行载体的角速度,具体可以为陀螺仪,所述磁力计主要用于对运行载体的姿态进行校准,具体可以为磁力计,所述里程计主要用于根据车轮的转速、转过的角度实时计算运行载体所行驶过的准确里程值。In this example, the data acquisition subsystem includes an acceleration sensor, an angular velocity sensor, a magnetometer and an odometer, wherein the acceleration sensor is mainly used to collect the acceleration of the running carrier in real time, specifically an accelerometer, and the angular velocity sensor It is mainly used to collect the angular velocity of the running carrier in real time. Specifically, it can be a gyroscope. The magnetometer is mainly used to calibrate the attitude of the running carrier. Specifically, it can be a magnetometer. The accurate mileage value traveled by the running carrier can be calculated in real time based on the angle passed.
在本实例中,所述数据采集子系统中各传感器与运行载体刚性连接,从而保证所述数据采集子系统所采集的数据为所述运行载体运行状态的真实数据。In this example, each sensor in the data collection subsystem is rigidly connected to the running carrier, so as to ensure that the data collected by the data collecting subsystem is real data of the running state of the running carrier.
在本实例中,所述数据采集子系统的安装方式需要既能够保证方便方向检测,又能够保证运行载体的坐标系与导航的坐标系相一致,例如,数据采集子系统中各传感器的x轴正方向与运行载体正右侧相同,y轴正方向与运行载体的正前方相同,z轴正方向向着运行载体正上方相同。In this example, the installation method of the data acquisition subsystem needs to be able to ensure convenient direction detection and ensure that the coordinate system of the running carrier is consistent with the coordinate system of the navigation, for example, the x-axis of each sensor in the data acquisition subsystem The positive direction is the same as the right side of the running carrier, the positive direction of the y-axis is the same as the front of the running carrier, and the positive direction of the z-axis is the same as being directly above the running carrier.
在本实例中,在硬件选型上使用受干扰较小的惯性传感器和器件,例如,icm-42688等,从而减小因器件自身制造工艺带来的误差,减小对系统产生的影响。In this example, inertial sensors and devices with less interference are used in hardware selection, such as icm-42688, etc., so as to reduce the error caused by the manufacturing process of the device itself and reduce the impact on the system.
在本实例中,所述电控子系统包括核心处理器和电气控制装置,其中,所述电气控制装置主要用于执行所述核心处理器所发送的指令,使得所述运行载体实现按照所述核心处理器的指令运行。In this example, the electronic control subsystem includes a core processor and an electrical control device, wherein the electrical control device is mainly used to execute instructions sent by the core processor, so that the operating carrier implements the The instructions of the core processor run.
进一步地,所述核心处理器还包括载体数据存储器,用于存储数据采集子系统所采集的原始数据以及基于所述原始数据所得的处理结果。Further, the core processor also includes a carrier data storage for storing raw data collected by the data collection subsystem and processing results based on the raw data.
在本实例中,所述运行载体端002还包括第二显示器11,所述第二显示器用于显示所述载体数据存储器所存储的数据,所述第二显示器11可以安装于运行载体上,以方便在调试过程中调取和查阅数据。In this example, the running carrier terminal 002 further includes a second display 11, the second display is used to display the data stored in the carrier data storage, and the second display 11 can be installed on the running carrier to It is convenient to call and consult data during debugging.
在本实例中,所述载体运行端还包括供电子系统,所述供电子系统具体可以包括供电组件和电量检测组件,其中,所述供电组件用于向电控子系统和数据采集子系统提供电源。In this example, the carrier running end further includes a power supply subsystem, and the power supply subsystem may specifically include a power supply component and a power detection component, wherein the power supply component is used to provide the electronic control subsystem and the data acquisition subsystem with power supply.
在本实例中,所述电源的电量状态可显示于第一显示器和/第二显示器上。In this example, the power state of the power supply can be displayed on the first display and/or the second display.
在本实例中,在启动所述轨迹跟踪控制系统之前,首先对所述轨迹跟踪控制系统中的电控子系统以及数据采集子系统进行初始化。In this example, before starting the trajectory tracking control system, the electronic control subsystem and the data acquisition subsystem in the trajectory tracking control system are first initialized.
在本实例中,所述核心处理器用于执行本申请提供的轨迹跟踪控制方法。In this example, the core processor is used to execute the trajectory tracking control method provided in this application.
图2示出本申请提供的轨迹跟踪控制方法的流程图,如图2所示,所述轨迹跟踪控制方法主要包括以下步骤S100至步骤S500:Fig. 2 shows the flowchart of the trajectory tracking control method provided by the present application. As shown in Fig. 2, the trajectory tracking control method mainly includes the following steps S100 to S500:
S100,获取所述运行载体的第一目标行驶路径。S100. Obtain a first target driving route of the running carrier.
在本实例中,所述第一目标行驶路径可以为人为设定,也可以为基于其它参数而计算生成。In this example, the first target driving route may be set artificially, or may be calculated based on other parameters.
进一步地,在本实例中,所述第一目标行驶路径可通过用户端采用无线传送的方式发送至所述运行载体端。Further, in this example, the first target driving route may be sent to the operating carrier end by means of wireless transmission through the user end.
图3示出本申请一种可实现数据处理流程图,如图3所示,本申请计算运行载体位姿信息可具体如S200所示。FIG. 3 shows a flow chart of data processing that can be realized in this application. As shown in FIG. 3 , the calculation and operation of carrier pose information in this application can be specifically shown in S200.
S200,获取所述运行载体的第一位姿信息,所述第一位姿信息包括第一姿态信息、第一速度信息以及第一位置信息。S200. Acquire first pose information of the running carrier, where the first pose information includes first pose information, first speed information, and first position information.
在本实例中,所述第一位姿信息基于所述数据采集子系统所采集的原始数据计算而得。In this example, the first pose information is calculated based on the raw data collected by the data collection subsystem.
可以理解的是,所述数据采集子系统中各传感器可按照第一预设频率采集,进一步地,各传感器的采集频率可以相同,也可以不同。It can be understood that each sensor in the data collection subsystem may collect according to a first preset frequency, and further, the collection frequency of each sensor may be the same or different.
图4示出本实例中INS与里程计的卡尔曼滤波结构。如图3所示,本实例对惯性导航系统解算出的位姿信息和实时里程值采用卡尔曼滤波器进行处理,从而获得运行载体当前的位姿信息,包括姿态角、速度和位置等。Fig. 4 shows the Kalman filtering structure of INS and odometer in this example. As shown in Figure 3, this example uses the Kalman filter to process the pose information and real-time mileage values calculated by the inertial navigation system, so as to obtain the current pose information of the running carrier, including attitude angle, velocity, and position.
在本实例中,所述获取所述运行载体当前的位姿信息具体可以包括以下步骤S201至步骤S203:In this example, the acquisition of the current pose information of the operating carrier may specifically include the following steps S201 to S203:
S201,获取实时加速度、实时角速度、实时磁力值和实时里程值,其中,所述实时加速度由加速度传感器实时采集所得,所述角速度由角速度传感器实时采集所得,所述实时磁力值由磁力计实时采集所得,所述实时里程值由里程计实时采集所得。S201. Acquire real-time acceleration, real-time angular velocity, real-time magnetic force value and real-time mileage value, wherein the real-time acceleration is collected in real time by an acceleration sensor, the angular velocity is collected in real time by an angular velocity sensor, and the real-time magnetic force value is collected in real time by a magnetometer The real-time mileage value is collected by the odometer in real time.
在本实例中,所述核心处理器按照第二预设频率接收所述实时加速度、实时角速度、实时磁力值和实时里程值,其中,所述第二预设频率与所述第一预设频率可以相同,也可以不同。In this example, the core processor receives the real-time acceleration, real-time angular velocity, real-time magnetic value and real-time mileage value according to a second preset frequency, wherein the second preset frequency is the same as the first preset frequency Can be the same or different.
S202,根据所述实时加速度、所述实时角速度和所述实时磁力值计算所述运行载体的第一姿态信息。S202. Calculate first attitude information of the running carrier according to the real-time acceleration, the real-time angular velocity, and the real-time magnetic force value.
本实例采用捷联惯性导航算法进行解算数据,其中姿态更新使用二阶毕卡算法,从而获得更为精准的第一位姿信息。In this example, the strapdown inertial navigation algorithm is used to solve the data, and the attitude update uses the second-order Picard algorithm to obtain more accurate first pose information.
S203,根据所述实时加速度以及所述实时里程值计算第二位置信息。S203. Calculate second position information according to the real-time acceleration and the real-time mileage.
本申请人发现,由于加速度传感器可能会由于车轮打滑等情况造成采集到的数据与实际情况不相符,导致基于所述加速度传感器所采集数据生成的数据不准确,因此,本申请人在数据采集子系统中增加使用里程计来采集运行载体所行驶的里程值,从而对加速度传感器所采集的数据进行修正。The applicant found that the data collected by the acceleration sensor may be inconsistent with the actual situation due to wheel slipping, etc., resulting in inaccurate data generated based on the data collected by the acceleration sensor. Therefore, the applicant in the data collection section In the system, the odometer is used to collect the mileage value traveled by the running carrier, so as to correct the data collected by the acceleration sensor.
进一步地,本实例在数据读取处理上,首先对角速度传感器以及加速度传感器所采集的原始数据使用四阶切比雪夫低通数字滤波器进行滤波,排除大部分的外界干扰,从而减小高频噪声对计算结果准确度的影响。Furthermore, in the data reading process of this example, firstly, the raw data collected by the angular velocity sensor and the acceleration sensor are filtered using a fourth-order Chebyshev low-pass digital filter to eliminate most of the external interference, thereby reducing the high-frequency The effect of noise on the accuracy of calculation results.
具体地,本步骤具体可以包括以下步骤S231至步骤S234:Specifically, this step may specifically include the following steps S231 to S234:
S231,根据所述实时加速度计算第一速度信息。S231. Calculate first speed information according to the real-time acceleration.
在本实例中,所述第一速度信息具体可根据如下式(1)和(2)所示的捷联惯性导航模型进行计算:In this example, the first speed information can be specifically calculated according to the strapdown inertial navigation model shown in the following equations (1) and (2):
其中,vn=[ve vn vu]T表示线速度,表示在导航坐标系下的加速度;Among them, v n =[v e v n v u ] T represents the linear velocity, Indicates the acceleration in the navigation coordinate system;
表示加速度传感器采集所得的在运行载体坐标系下的比力; Indicates the specific force in the running carrier coordinate system collected by the acceleration sensor;
表示由运行载体坐标系变换到导航坐标系的旋转矩阵,其中,/>表示由导航坐标系变换到运行载体坐标系的旋转矩阵,/>表示由导航坐标系变换到运行载体坐标系旋转矩阵的关于时间的导数,具体可根据步骤S202计算得到的运行载体的三个姿态角进行计算; Indicates the rotation matrix transformed from the running vehicle coordinate system to the navigation coordinate system, where, /> Represents the rotation matrix transformed from the navigation coordinate system to the running vehicle coordinate system, /> Indicates the derivative with respect to time transformed from the navigation coordinate system to the rotation matrix of the running carrier coordinate system, specifically, it can be calculated according to the three attitude angles of the running carrier calculated in step S202;
表示地球在导航坐标系下的旋转速率, Indicates the rotation rate of the earth in the navigation coordinate system,
表示导航坐标系相对于地球的旋转速率, Indicates the rotation rate of the navigation coordinate system relative to the earth,
表示去掉/>和/>后角速度传感器直接采集到的绕惯导轴的角速度矢量, means remove /> and /> The angular velocity vector around the inertial axis directly collected by the rear angular velocity sensor,
gn表示当地的重力矢量。g n denotes the local gravity vector.
其中第一速度信息的计算为解公式(1)的过程,本发明对采集来的原始数据使用了平均值滤波算法后代入公式(1)求解。Wherein the calculation of the first speed information is the process of solving the formula (1), and the present invention uses the average value filtering algorithm for the collected raw data and then substitutes it into the formula (1) to solve.
S232,根据所述实时里程值计算第二速度信息和第一位置信息。S232. Calculate second speed information and first location information according to the real-time mileage value.
在本实例中,可使用如下式(3)、(4)和(5)所示的模型计算第二速度信息:In this example, the second speed information can be calculated using the models shown in the following equations (3), (4) and (5):
其中,ωR表示右轮的角速度;Among them, ω R represents the angular velocity of the right wheel;
ωL表示左轮的角速度,ω L represents the angular velocity of the left wheel,
vR表示右轮转速,v R represents the rotational speed of the right wheel,
vl表示左轮转速。v l represents the rotational speed of the left wheel.
表示x-y平面上的航向角速率, Indicates the heading rate on the xy plane,
rw表示车轮的半径,r w represents the radius of the wheel,
e表示车轴之间的长度,e represents the length between the axles,
R表示车体的转动半径。R represents the turning radius of the car body.
在本实例中,进一步地,In this example, further,
vR=rwωR v R = r w ω R
vL=rwωL。v L = r w ω L .
在本实例中,可使用如下式(6)所示的模型计算第一位置信息:In this example, the first position information can be calculated using the model shown in the following formula (6):
其中,xk表示X轴中心的位置,Among them, x k represents the position of the center of the X axis,
yk表示Y轴中心的位置,y k represents the position of the center of the Y axis,
Δt表示采样时间。Δt represents the sampling time.
S233,根据所述第一速度信息和所述第二速度信息计算第三速度信息。S233. Calculate third speed information according to the first speed information and the second speed information.
在本实例中,所述根据所述第一速度信息和所述第二速度信息计算第三速度信息具体可以为根据所述第一速度信息和所述第二速度信息采用卡尔曼滤波的方法计算第三速度信息,从而减小第一速度中所存在的误差。In this example, the calculation of the third speed information based on the first speed information and the second speed information may specifically be calculated by using a Kalman filter method based on the first speed information and the second speed information The third speed information, thereby reducing the error existing in the first speed.
本实例构建卡尔曼滤波器用于合成出第三速度信息,其中,所述卡尔曼滤波器采用惯导误差方程作为系统的误差动态模型,具体如下式(7)所示:This example constructs a Kalman filter for synthesizing the third velocity information, wherein the Kalman filter uses the inertial navigation error equation as the error dynamic model of the system, specifically as shown in the following formula (7):
其中,X=[δrn δvn ε δbacc δbgyro]T表示状态向量;Among them, X=[δ rn δ vn ε δb acc δb gyro ] T represents the state vector;
δrn表示位置误差,δr n represents the position error,
δvn表示线性速度偏差,δv n represents the linear velocity deviation,
ε表示加速度计和陀螺仪的偏差,ε represents the bias of the accelerometer and gyroscope,
δbacc=[δbaccx δbaccy δbaccz]T表示加速度计的偏差,δb acc =[δb accx δb accy δb accz ] T represents the bias of the accelerometer,
δbgyro=[δbgyrox δbgyroy δbgyroz]T表示陀螺仪的偏差,δb gyro = [δb gyrox δb gyroy δb gyroz ] T represents the bias of the gyroscope,
03和I3分别表示大小为3的单位矩阵。0 3 and I 3 represent the identity matrix of size 3, respectively.
上述偏差的漂移可以建模为如下式(8)和(9)所示的一阶高斯-马尔可夫过程:The drift of the above bias can be modeled as a first-order Gauss-Markov process as shown in equations (8) and (9):
其中,i=x,y,z,where i=x,y,z,
T表示加速度计的相关时间,T represents the relative time of the accelerometer,
表示陀螺仪的相关时间, represents the relative time of the gyroscope,
ηacc=[ηaccx ηaccy ηaccz]T表示加速度计的噪音,η acc = [η accx η accy η accz ] T represents the noise of the accelerometer,
ηgyro=[ηgyrox ηgyroy ηgyroz]T表示陀螺仪的噪音,η gyro = [η gyrox η gyroy η gyroz ] T represents the noise of the gyroscope,
ηbacc=[ηbaccx ηbaccy ηbaccz]T和ηbgyro=[ηbgyrox ηbgyroy ηbgyroz]T表示高斯-马尔可夫过程驱动噪声。η bacc =[η baccx η baccy η baccz ] T and η bgyro =[η bgyrox η bgyroy η bgyroz ] T represent Gauss-Markov process driving noise.
由于里程计中的位置误差值很小,且以弧度表示,因此,在滤波器内部会造成数值不稳定,为避免这一问题,本实例在东北天坐标系中表示位置误差,新的动态模型可如下式(10)所示:Since the position error value in the odometer is very small and expressed in radians, it will cause numerical instability inside the filter. In order to avoid this problem, this example expresses the position error in the northeast sky coordinate system. The new dynamic model It can be shown in the following formula (10):
其中, in,
因此系统模型的离散形式可以写成如下式(11)所示:Therefore, the discrete form of the system model can be written as the following formula (11):
对于所述里程计在卡尔曼滤波器的模型,所述里程计的位置解以1hz的速率与INS集成,在这种情况下,测量模型可以如下式(12)所示:For the model of the odometer in the Kalman filter, the position solution of the odometer is integrated with the INS at a rate of 1 Hz. In this case, the measurement model can be shown in the following formula (12):
其中,υOdo表示高斯白噪声。Among them, υ Odo represents Gaussian white noise.
观测矩阵的形式可以表示为下式(13):The form of the observation matrix can be expressed as the following formula (13):
其中,n表示状态向量的大小。Among them, n represents the size of the state vector.
里程计测量的协方差矩阵可以表示为下式(14):The covariance matrix of the odometer measurement can be expressed as the following formula (14):
其中,表示POdo(P=x,y,z)的协方差。in, Indicates the covariance of P Odo (P=x,y,z).
S234,根据所述第三速度信息以及所述第一位置信息计算第二位置信息。S234. Calculate second position information according to the third speed information and the first position information.
在本实例中,本步骤可与步骤S233类似的方法计算第二位置信息。In this example, this step may calculate the second location information in a manner similar to step S233.
S300,比对所述运行载体的第一实际行驶路径与所述第一目标行驶路径,获得第一比对结果。S300. Compare the first actual travel route of the running carrier with the first target travel route to obtain a first comparison result.
在本实例中,所述比对结果为当前运动轨迹与预设运动轨迹的偏差,所述偏差包括角度偏差、速度偏差以及位置偏差。In this example, the comparison result is a deviation between the current movement track and the preset movement track, and the deviation includes angle deviation, speed deviation and position deviation.
本实例对本步骤的具体实现方式不做特别限定,可以使用现有技术中任意一种可用于计算上述各具体偏差的方法,例如:对于角度偏差,可以将导航数据(即,所述位姿信息)与第一目标行驶路径的偏差首先进行平均值滤波,其结果作为角度偏差;对于速度偏差,可以对所述第一速度信息的五次最新数据取平均值,从而为对数据进行滤波,再与目标速度之间的偏差作为速度偏差;对于位置偏差,可以将当前位置信息以及前三次的位置信息进行拟合,并根据拟合所得的轨迹进行三次位置的预测,通过后续三次位置的预测来分别与设定目标轨迹进行偏差计算,进而得到当前的运动路径与目标路径之间的位置偏差。This example does not specifically limit the specific implementation of this step, and any method in the prior art that can be used to calculate the above-mentioned specific deviations can be used. For example, for angular deviations, the navigation data (that is, the pose information ) and the deviation of the first target travel path first carry out average value filtering, and the result is used as an angle deviation; for speed deviation, the five latest data of the first speed information can be averaged, thereby filtering the data, and then The deviation between the target speed and the target speed is used as the speed deviation; for the position deviation, the current position information and the position information of the first three times can be fitted, and the three position predictions can be made according to the fitted trajectory, and the following three position predictions can be used. Calculate the deviation from the set target trajectory respectively, and then obtain the position deviation between the current motion path and the target path.
S400,根据所述第一比对结果和/或用户第一指令生成第二目标行驶路径,所述用户第一指令由所述用户端发送而得。S400. Generate a second target driving route according to the first comparison result and/or the first user instruction, the first user instruction being sent by the user terminal.
在本实例中,所述用户端发送用户指令具体可以包括:In this example, the sending of the user instruction by the client may specifically include:
S401,将用户端待发送指令转化为INT16格式的数据,并将转化的数据压缩为数据包;S401, converting the command to be sent by the client into data in INT16 format, and compressing the converted data into a data packet;
S402,将步骤S401获得的数据包采用Zigbee方式传输至运行载体。S402. Transmit the data packet obtained in step S401 to the running carrier in Zigbee mode.
本实例首先将待发送指令将浮点型数据转化为INT16格式的数据,能够缩减一半数据占用空间,在此种情况下使用Zigbee传输方式既能够保证远距离发送,另一方面,也能够保证数据传输速率,从而增强数据传输的实时性。In this example, firstly, the instruction to be sent is converted into floating-point data into INT16 format data, which can reduce the space occupied by the data by half. In this case, using the Zigbee transmission method can not only ensure long-distance transmission, but also ensure Transmission rate, thereby enhancing the real-time performance of data transmission.
可选地,对于存在小数的待发送指令,可将数据同比放大几个数量级,由于在本场景下所传输的指令在放大若干数量级后仍在Zigbee传输范围内,因此,本实例提供的方案具有现实可行性。Optionally, for instructions to be sent with decimals, the data can be enlarged by several orders of magnitude year-on-year. Since the instructions transmitted in this scenario are still within the Zigbee transmission range after being enlarged by several orders of magnitude, the solution provided in this example has realistic feasibility.
在本实例中,如果第一比对结果小于偏差阈值,则第二目标行驶路径可与第一目标行驶路径相同,即,运行载体可继续按照第一目标行驶路径行驶。In this example, if the first comparison result is smaller than the deviation threshold, the second target travel route may be the same as the first target travel route, that is, the operating vehicle may continue to travel according to the first target travel route.
相反地,如果第一比对结果大于偏差阈值,则可根据当前位姿信息与第一目标行驶路径生成第二目标行驶路径,可以理解的是,所述第二目标行驶路径与所述第一目标行驶路径的终点相同,但是,至少一部分行驶路径不同。On the contrary, if the first comparison result is greater than the deviation threshold, the second target driving route can be generated according to the current pose information and the first target driving route. It can be understood that the second target driving route is different from the first The end points of the target travel routes are the same, but at least part of the travel routes are different.
在本实例中,如果第一比对结果大于偏差阈值,则所述核心处理器向用户端发送警报信息,可选地,将所述运行载体的运动状态持续发送至用户端,以供工作人员通过用户端实时监测。In this example, if the first comparison result is greater than the deviation threshold, the core processor sends an alarm message to the user terminal, and optionally, continuously sends the motion state of the running carrier to the user terminal for the staff Real-time monitoring through the client.
在另一种实例中,用户可根据需要通过用户端随时调整第一目标行驶路径,即,用户可根据需要随时通过用户端向运行载体发送第二目标行驶路径,所述第二目标行驶路径至少存在一部分路径与所述第一目标行驶路径不同。In another example, the user can adjust the first target driving route at any time through the user terminal as needed, that is, the user can send the second target driving route to the operating carrier through the user terminal at any time as needed, and the second target driving route is at least Some routes are different from the first target travel route.
可以理解的是,用户端中设置的用户端数据存储器与运行载体端设置的第二存储器独立存储数据,从而相互备份,便于校对数据传输的正确性。It can be understood that the user terminal data storage set in the user terminal and the second storage set in the running carrier end store data independently, so as to back up each other, which is convenient for checking the correctness of data transmission.
本申请提供的方法及系统具有推广价值,例如,对于无人煤矿机器人,当其使用本系统进行运动轨迹跟踪控制时,本系统会将机器人运动状态发送给操作人员,如果发生机器人运行轨迹偏差时,系统对轨迹进行纠正,同时将警报信息发送到命令控制端,提醒操作人员,操作人员可以选择让系统自行修正,也可选择发送新的指令控制机器人采取新的运行轨迹,提高机器人的安全性。The method and system provided by this application have promotional value. For example, for an unmanned coal mine robot, when it uses this system to track and control the motion trajectory, this system will send the robot motion state to the operator. , the system corrects the trajectory, and at the same time sends the alarm information to the command control terminal to remind the operator, the operator can choose to let the system correct itself, or choose to send a new command to control the robot to adopt a new trajectory to improve the safety of the robot .
此外,本申请提供的方法及系统可搭载于搜救机器人、钻井井道探测设备等。In addition, the method and system provided in the present application can be carried on search and rescue robots, drilling shaft detection equipment, and the like.
S500,控制所述运行载体按照所述第二目标行驶路径行驶。S500. Control the operating carrier to travel according to the second target travel route.
在本实例中,所述核心处理器在获取到所述第二目标行驶路径后,向电控子系统发送控制指令,所述控制指令用于控制所述运行载体按照所述第二目标行驶路径进行行驶。In this example, after the core processor acquires the second target driving route, it sends a control instruction to the electronic control subsystem, and the control instruction is used to control the operating carrier to follow the second target driving route. to drive.
可选地,所述电控子系统对动力系统采用PID控制,例如,将当前角度与目标点角度之间偏差、当前速度与设定速度之间偏差、当前速度与设定位置之间偏差作为控制器输入量,当前角度、当前速度、当前位置作为控制器的反馈量,从而保证跟踪速度快输出误差小。Optionally, the electronic control subsystem adopts PID control for the power system, for example, the deviation between the current angle and the target point angle, the deviation between the current speed and the set speed, and the deviation between the current speed and the set position are used as The input of the controller, the current angle, current speed, and current position are used as the feedback of the controller, so as to ensure that the tracking speed is fast and the output error is small.
在一实例中,可基于所述第二目标行驶路径计算出运行载体左右轮应有的速度从而控制运行载体的运动,再获取运行载体在下一个采样时刻的位姿,与当前采样时刻相比,如果运行载体更接近所述第一目标行驶路径,则前一时刻控制正确,基于此,继续按照所述第二目标行驶路径计算运行载体左右轮应有的速度使其继续向所述第一目标行驶路径运动;与当前采样时刻相比,如果运行载体更远离所述第一目标行驶路径则需重新获取当前位姿再次计算运行载体左右轮应有的速度,从而持续控制运行载体后续运动。In an example, based on the second target travel path, the speed of the left and right wheels of the running carrier can be calculated to control the movement of the running carrier, and then the pose of the running carrier at the next sampling time can be obtained, compared with the current sampling time, If the running carrier is closer to the first target travel path, the control at the previous moment is correct. Based on this, continue to calculate the speed of the left and right wheels of the running carrier according to the second target travel path so that it continues to the first target. Movement of the driving path; compared with the current sampling time, if the running carrier is farther away from the first target driving path, the current pose needs to be reacquired and the speed of the left and right wheels of the running carrier should be calculated again, so as to continuously control the subsequent movement of the running carrier.
在另一实例中,所述核心处理器将所述第一目标路径删除,仅根据所述第二目标行驶路径作控制所述运动载体行驶。In another example, the core processor deletes the first target route, and only controls the motion carrier to travel according to the second target travel route.
此外,本申请还提供一种轨迹跟踪控制的程序,所用程序用于执行时实现上述轨迹跟踪控制方法的步骤。In addition, the present application also provides a trajectory tracking control program, which is used to realize the steps of the above trajectory tracking control method during execution.
进一步地,本申请还提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述轨迹跟踪控制方法的步骤。Further, the present application also provides a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the above trajectory tracking control method are realized.
以上结合具体实施方式和范例性实例对本申请进行了详细说明,不过这些说明并不能理解为对本申请的限制。本领域技术人员理解,在不偏离本申请精神和范围的情况下,可以对本申请技术方案及其实施方式进行多种等价替换、修饰或改进,这些均落入本申请的范围内。本申请的保护范围以所附权利要求为准。The present application has been described in detail above in conjunction with specific implementations and illustrative examples, but these descriptions should not be construed as limiting the present application. Those skilled in the art understand that without departing from the spirit and scope of the present application, various equivalent replacements, modifications or improvements can be made to the technical solutions and implementations of the present application, all of which fall within the scope of the present application. The scope of protection of the present application is subject to the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310414546.0A CN116429101A (en) | 2023-04-18 | 2023-04-18 | Track tracking control system and method based on inertial navigation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310414546.0A CN116429101A (en) | 2023-04-18 | 2023-04-18 | Track tracking control system and method based on inertial navigation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116429101A true CN116429101A (en) | 2023-07-14 |
Family
ID=87081208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310414546.0A Pending CN116429101A (en) | 2023-04-18 | 2023-04-18 | Track tracking control system and method based on inertial navigation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116429101A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118129760A (en) * | 2024-04-30 | 2024-06-04 | 中国电建集团华东勘测设计研究院有限公司 | Track route recording device applied to water environment monitoring |
-
2023
- 2023-04-18 CN CN202310414546.0A patent/CN116429101A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118129760A (en) * | 2024-04-30 | 2024-06-04 | 中国电建集团华东勘测设计研究院有限公司 | Track route recording device applied to water environment monitoring |
CN118129760B (en) * | 2024-04-30 | 2024-08-16 | 中国电建集团华东勘测设计研究院有限公司 | Track route recording device applied to water environment monitoring |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7299261B2 (en) | Vehicle dead reckoning method, apparatus, device, storage medium, and program | |
CN111351482B (en) | Multi-rotor aircraft combined navigation method based on error state Kalman filtering | |
CN109238262B (en) | Anti-interference method for course attitude calculation and compass calibration | |
US20150247729A1 (en) | System and method for device bearing estimation | |
CN110017837B (en) | Attitude anti-magnetic interference combined navigation method | |
Cheviron et al. | Robust nonlinear fusion of inertial and visual data for position, velocity and attitude estimation of UAV | |
CN109506646A (en) | A kind of the UAV Attitude calculation method and system of dual controller | |
CN106979780A (en) | A kind of unmanned vehicle real-time attitude measuring method | |
TWI558617B (en) | Unmanned flight vehicle autonomous flight computer system and control method | |
CN107063262A (en) | A kind of complementary filter method resolved for UAV Attitude | |
JP2012173190A (en) | Positioning system and positioning method | |
CN105865453B (en) | A kind of navigation system and its fusion method of position sensor and attitude transducer | |
CN108387236A (en) | Polarized light S L AM method based on extended Kalman filtering | |
CN119002482A (en) | Mining vehicle intelligent navigation and safe driving method and system based on inertial navigation | |
CN116429101A (en) | Track tracking control system and method based on inertial navigation | |
CN110162068A (en) | A kind of control method of self-balance robot | |
Chen et al. | An integrated GNSS/INS/DR positioning strategy considering nonholonomic constraints for intelligent vehicle | |
Yang et al. | Model-free integrated navigation of small fixed-wing UAVs full state estimation in wind disturbance | |
CN211012986U (en) | An unmanned autonomous cruise vehicle navigation system based on inertial navigation technology | |
CN118913286A (en) | Submarine crawling combination navigation method and navigation system of amphibious robot | |
Hua et al. | Velocity-aided attitude estimation for accelerated rigid bodies | |
EP4269044A1 (en) | Slope location correction method and apparatus, robot and readable storage medium | |
CN111207741B (en) | Unmanned aerial vehicle navigation positioning method based on indoor vision vicon system | |
CN116295367A (en) | A Multi-source Integrated Navigation Method for Unmanned Vehicles Based on Incremental Factor Graph | |
CN114594675A (en) | An improved PID quadrotor aircraft control system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |