CN109129481B - Incremental PID (proportion integration differentiation) -based service robot load platform balance control method - Google Patents
Incremental PID (proportion integration differentiation) -based service robot load platform balance control method Download PDFInfo
- Publication number
- CN109129481B CN109129481B CN201810986431.8A CN201810986431A CN109129481B CN 109129481 B CN109129481 B CN 109129481B CN 201810986431 A CN201810986431 A CN 201810986431A CN 109129481 B CN109129481 B CN 109129481B
- Authority
- CN
- China
- Prior art keywords
- platform
- control method
- dimensional
- balance control
- service robot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000010354 integration Effects 0.000 title abstract description 6
- 230000004069 differentiation Effects 0.000 title 1
- 230000001133 acceleration Effects 0.000 claims abstract description 21
- 239000011159 matrix material Substances 0.000 claims abstract description 14
- 238000012937 correction Methods 0.000 claims description 6
- 230000002093 peripheral effect Effects 0.000 claims description 4
- 238000010276 construction Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 claims description 2
- 230000035945 sensitivity Effects 0.000 abstract description 7
- 238000004364 calculation method Methods 0.000 abstract description 3
- 230000008602 contraction Effects 0.000 abstract description 2
- 238000013461 design Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J19/00—Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J19/00—Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
- B25J19/0008—Balancing devices
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Manipulator (AREA)
Abstract
Description
技术领域technical field
本发明涉及平衡控制、机器人、嵌入式编程等领域。具体是指一种基于增量式PID的服务机器人负载平台平衡控制方法。The invention relates to the fields of balance control, robot, embedded programming and the like. Specifically, it refers to an incremental PID-based load platform balance control method for service robots.
背景技术Background technique
平衡控制系统的设计近年来越来越多的应用于机器人领域,尤其是双足机器人与自平衡机器人。映射到市场需求主要是服务机器人,包括社会服务机器人、家政服务机器人、制造服务机器人、物流服务机器人等等,只要有服务的地方就会需要服务机器人。在机器人移动平台上常需要根据应用需求控制平台倾斜角度,并保证平台载物的平衡。而现在大多机器人移动平台系统对负载重量、放置位置等都有较高要求,鲁棒性不高;且行进过程中平台的稳定多是依靠机械结构来保证,存在累计误差,不能实时动态进行补偿控制。In recent years, the design of balance control system has been more and more used in the field of robotics, especially biped robots and self-balancing robots. The market demand is mainly service robots, including social service robots, housekeeping service robots, manufacturing service robots, logistics service robots, etc. Service robots are needed wherever there is service. On the robot mobile platform, it is often necessary to control the tilt angle of the platform according to the application requirements, and to ensure the balance of the platform load. At present, most robot mobile platform systems have high requirements on load weight, placement position, etc., and the robustness is not high; and the stability of the platform during the travel process is mostly guaranteed by the mechanical structure, and there are accumulated errors, which cannot be dynamically compensated in real time. control.
发明内容SUMMARY OF THE INVENTION
为了克服现有服务机器人负载平台平衡控制方法的鲁棒性不高、灵敏度较低的不足,本发明的目的是针对上述服务机器人移动平台行进过程中的不稳定问题提供一种鲁棒性强、灵敏度高、界面友好的服务机器人负载平台平衡控制方法。In order to overcome the shortcomings of low robustness and low sensitivity of the existing service robot load platform balancing control method, the purpose of the present invention is to provide a robust, robust, and stable solution for the instability problem during the traveling process of the above-mentioned service robot mobile platform. A load platform balance control method for service robots with high sensitivity and friendly interface.
为了解决上述技术问题,本发明的技术方案如下:In order to solve the above-mentioned technical problems, the technical scheme of the present invention is as follows:
一种基于增量式PID的服务机器人负载平台平衡控制方法,包括以下步骤:An incremental PID-based load platform balance control method for a service robot, comprising the following steps:
1)计算机器人移动平台行进过程中的实时六轴加速度;1) Calculate the real-time six-axis acceleration during the movement of the robot mobile platform;
2)由上一步得到的加速度进行两次积分,得到平台当前四角的坐标偏移量。同时计算出小球的三维坐标;2) Integrate the acceleration obtained in the previous step twice to obtain the coordinate offset of the current four corners of the platform. At the same time, the three-dimensional coordinates of the ball are calculated;
3)根据上一步计算得到的三维坐标与偏移量,对平台的四根支柱进行增量式PID控制,使平台趋于水平稳定;所述四根支柱支撑于平台四角,可改变高度以提供平台与倾斜方向相反的力矩,用于使系统回到平衡位置;3) According to the three-dimensional coordinates and offsets calculated in the previous step, incremental PID control is performed on the four pillars of the platform, so that the platform tends to be horizontally stable; the four pillars are supported on the four corners of the platform, and the height can be changed to provide Moment against the tilting direction of the platform to bring the system back to the equilibrium position;
4)将三维坐标系中建立的模型投射到二维平面中;4) Project the model established in the three-dimensional coordinate system into the two-dimensional plane;
5)使用matlab简化整个过程中所涉及的矩阵运算;5) Use matlab to simplify the matrix operations involved in the whole process;
6)将算法嵌入至单片机,由单片机控制平台四周的支柱伸缩以达到使平台趋于稳定的目的。6) Embed the algorithm into the single-chip microcomputer, and the support around the platform is controlled by the single-chip microcomputer to expand and contract to achieve the purpose of making the platform more stable.
进一步,所述步骤1)中,记录下历史数据,根据预测规则预测下一个状态的加速度值,而在测量得到下一个状态的加速度值后,两者进行比较校正,加权得到实际的加速度值。Further, in the step 1), the historical data is recorded, the acceleration value of the next state is predicted according to the prediction rule, and after the acceleration value of the next state is obtained by measurement, the two are compared and corrected, and the actual acceleration value is obtained by weighting.
再进一步,所述步骤3)中,设置相应的PID参数,在平台倾角大时,使修正量也相应大;在平台倾角小时,修正量也变小;用户可以自行设置判断平台已达到稳定状态的条件,所述条件是平台倾角在0°一定邻域内或者负载物体以及在平台中心领域内。Still further, in the step 3), the corresponding PID parameters are set, and when the platform inclination is large, the correction amount is correspondingly large; when the platform inclination is small, the correction amount also becomes smaller; the user can set it by himself to determine that the platform has reached a stable state. The condition is that the inclination of the platform is within a certain neighborhood of 0° or the load object and the center of the platform.
所述步骤4)中,要将物体从三维空间坐标系投射到二维平面坐标系,先要将三维物体放到一个坐标系中,将平面的中点放到三维空间的原点;在平面翻转过程中,任何翻转都能分解为围绕x,y,z轴旋转;通过伸缩矩阵改变视野的大小从而改变投射平面上物体的大小;经过一系列翻转和缩放的物体在三维物体中的坐标位置由矩阵运算得到。In described step 4), to project the object from the three-dimensional space coordinate system to the two-dimensional plane coordinate system, first place the three-dimensional object in a coordinate system, and place the midpoint of the plane on the origin of the three-dimensional space; During the process, any flip can be decomposed into rotation around the x, y, and z axes; the size of the field of view is changed by the scaling matrix to change the size of the object on the projection plane; the coordinate position of the object after a series of flips and scaling in the three-dimensional object is given by Matrix operation is obtained.
所述步骤6)中,基于TivaTMTM4C1294KCPDT Microcontroller单片机开发的,完成最小系统和外围电路模块的搭建。In the step 6), based on the development of the TivaTM4C1294KCPDT Microcontroller single-chip microcomputer, the construction of the minimum system and the peripheral circuit module is completed.
本发明的技术构思为:针对服务机器人移动平台行进过程中的不稳定问题,借助EK-TM4C1294XL扩展板,通过其自带的三轴加速度计获取扩展版的实时倾角,通过增量式PID控制平台四周支柱伸缩程度,使其趋于平衡稳定;并通过建模所得映射关系,实时反映在TFT显示屏上,借鉴OpenGL对三维图像的处理思想,理解了三维图像投射到二维图像的原理并实战各种转化的使用,通过Matlab来简化矩阵运算,TFT显示屏中还会加以一个空气墙来限制小球的移动范围,通过单片机计算平台偏差的方位角并最终实现平衡球重力感应移动的3维可视化界面设计,便于用户实时监测。除此之外,本方法通过使用ADC采集和GPIO按键可以自由调节平台允许倾斜的程度。The technical idea of the present invention is: aiming at the instability problem during the traveling process of the mobile platform of the service robot, with the help of the EK-TM4C1294XL expansion board, the real-time inclination of the extended version is obtained through its own three-axis accelerometer, and the platform is controlled by the incremental PID. The expansion degree of the surrounding pillars makes it tend to be balanced and stable; and the mapping relationship obtained by modeling is reflected on the TFT display screen in real time. Drawing on the processing idea of OpenGL for 3D images, I understand the principle of projecting a 3D image to a 2D image and put it into practice. For the use of various transformations, the matrix operation is simplified by Matlab, an air wall will be added to the TFT display screen to limit the moving range of the ball, the azimuth angle of the platform deviation is calculated by the single-chip microcomputer, and the 3-dimensional gravity-sensing movement of the balance ball is finally realized. The visual interface design is convenient for users to monitor in real time. In addition, this method can freely adjust the allowable tilt degree of the platform by using ADC acquisition and GPIO keys.
本发明的有益效果表现在:鲁棒性强,灵敏度高,界面友好。The beneficial effects of the invention are shown in: strong robustness, high sensitivity and friendly interface.
具体实施方式Detailed ways
下面对本发明做进一步说明。The present invention will be further described below.
一种基于增量式PID的服务机器人负载平台平衡控制方法,具体是指一种基于增量式PID控制、Matlab简化矩阵运算得出平台倾斜程度并加以校正,并基于OpenGL图像处理展现在EK-TM4C1294XL的显示屏上用于用户实时观测的方法。A service robot load platform balance control method based on incremental PID, specifically refers to a method based on incremental PID control and Matlab simplified matrix operation to obtain and correct the degree of platform inclination, and display it in EK-based on OpenGL image processing. The method used for real-time observation by the user on the display of TM4C1294XL.
所述服务机器人负载平台平衡控制方法包括以下步骤:The load platform balance control method for the service robot includes the following steps:
1)计算机器人移动平台行进过程中的实时六轴加速度;1) Calculate the real-time six-axis acceleration during the movement of the robot mobile platform;
2)由上一步得到的加速度进行两次积分,得到平台当前四角的坐标偏移量,同时计算出小球的三维坐标;2) Integrate the acceleration obtained in the previous step twice to obtain the coordinate offset of the current four corners of the platform, and calculate the three-dimensional coordinates of the ball at the same time;
3)根据上一步计算得到的三维坐标与偏移量,对平台的四根支柱进行增量式PID控制,使平台趋于水平稳定,所述四根支柱支撑于平台四角,可改变高度以提供平台与倾斜方向相反的力矩,用于使系统回到平衡位置;3) According to the three-dimensional coordinates and offset calculated in the previous step, incremental PID control is performed on the four pillars of the platform to make the platform tend to be horizontal and stable. The four pillars are supported at the four corners of the platform, and the height can be changed to provide Moment against the tilting direction of the platform to bring the system back to the equilibrium position;
4)将三维坐标系中建立的模型投射到二维平面中;4) Project the model established in the three-dimensional coordinate system into the two-dimensional plane;
5)使用matlab简化整个过程中所涉及的矩阵运算,降低计算复杂度与所需时间;5) Use matlab to simplify the matrix operations involved in the whole process, reduce the computational complexity and the required time;
6)将算法嵌入至单片机,由单片机控制平台四周的支柱伸缩以达到使平台趋于稳定的目的。6) Embed the algorithm into the single-chip microcomputer, and the support around the platform is controlled by the single-chip microcomputer to expand and contract to achieve the purpose of making the platform more stable.
进一步,所述步骤1中,加速度值是由MPU6050加速度计得到的,根据得到的电压值乘以灵敏度得到加速度值,用户可以根据实际需求自行选择不同灵敏度与量程的加速度传感器。这样得到的数据还需要经过卡尔曼滤波滤除掉噪声。记录下历史数据,根据预测规则预测下一个状态的加速度值,而在测量得到下一个状态的加速度值后,两者进行比较校正,加权得到实际的加速度值。Further, in the step 1, the acceleration value is obtained by the MPU6050 accelerometer, and the acceleration value is obtained by multiplying the obtained voltage value by the sensitivity. The user can choose acceleration sensors with different sensitivities and ranges according to actual needs. The data obtained in this way also needs to be filtered by Kalman filtering to remove noise. Record the historical data, predict the acceleration value of the next state according to the prediction rule, and after measuring the acceleration value of the next state, compare and correct the two, and obtain the actual acceleration value by weighting.
所述步骤2中,结合单片机晶振分频得到用于加速度计采样的频率,换算成周期,作为每次加速度积分、速度积分得到偏移量的积分时间。通过积分得到平台倾斜的角度,以及小球所处的平台位置,将这些作为PID控制的反馈量。In the step 2, the frequency used for accelerometer sampling is obtained by combining the frequency division of the single-chip crystal oscillator, which is converted into a period, and is used as the integration time of each acceleration integration and velocity integration to obtain the offset. The tilt angle of the platform and the platform position where the ball is located are obtained through integration, and these are used as the feedback amount of the PID control.
所述步骤3)中,设置相应的PID参数,在平台倾角大时,使修正量也相应大;在平台倾角小时,修正量也变小。用户可以自行设置判断平台已达到稳定状态的条件。可以是平台倾角在0°一定邻域内或者负载物体以及在平台中心领域内。In the step 3), the corresponding PID parameters are set, and when the platform inclination angle is large, the correction amount is correspondingly large; when the platform inclination angle is small, the correction amount also becomes smaller. Users can set the conditions for judging that the platform has reached a stable state by themselves. It can be that the platform inclination is within a certain neighborhood of 0° or the load object and the center of the platform.
所述步骤4)中,要将物体从三维空间坐标系投射到二维平面坐标系,先要将三维物体放到一个坐标系中,在处理以上问题时常用坐标系(标准右手三维坐标系),为了计算的方便起见,将平面的中点放到三维空间的原点。在平面翻转过程中,任何翻转都能分解为围绕x,y,z轴旋转。通过伸缩矩阵可以改变视野的大小从而改变投射平面上物体的大小。经过一系列翻转和缩放的物体在三维物体中的坐标位置可由矩阵运算得到。In the step 4), to project the object from the three-dimensional space coordinate system to the two-dimensional plane coordinate system, the three-dimensional object should be placed in a coordinate system first, and the coordinate system (standard right-hand three-dimensional coordinate system) is commonly used when dealing with the above problems. , for the convenience of calculation, place the midpoint of the plane at the origin of the three-dimensional space. During plane flipping, any flip can be decomposed into rotations around the x, y, z axes. The size of the field of view can be changed by the scaling matrix to change the size of the object on the projection plane. The coordinate position of the object in the three-dimensional object after a series of flipping and scaling can be obtained by matrix operation.
所述步骤5)中,对于进行图形变换的矩阵来说,单片机的实时速度达不到系统要求,因此利用Matlab将得出的矩阵进行带未知数的化简,从而减小计算时间和复杂度。In the described step 5), for the matrix that performs graphic transformation, the real-time speed of the single-chip microcomputer cannot meet the system requirements, so the matrix obtained is simplified with unknowns by using Matlab, thereby reducing the calculation time and complexity.
所述步骤6)中,本方法是基于TivaTMTM4C1294KCPDT Microcontroller单片机开发的,完成最小系统和外围电路模块的搭建,并通过Code Composer Studio 6.0.1将工程下载至单片机中,即能使系统工作,外围电路包括ADC滚轮模块、GPIO按键模块、加速度计模块以及TFT液晶显示屏模块。In the step 6), the method is developed based on the TivaTM4C1294KCPDT Microcontroller single-chip microcomputer, completes the construction of the minimum system and the peripheral circuit module, and downloads the project to the single-chip microcomputer through Code Composer Studio 6.0.1, that is, the system can work, and the peripheral circuit Including ADC wheel module, GPIO button module, accelerometer module and TFT liquid crystal display module.
本实施例的方法的具体实施过程为:首先将程序烧入单片机后可立即运行,可以先行根据实际要求设定灵敏度与量程,通过单片机显示屏可观测到支撑板在随角度的变化而产生相应的视觉变化,按键可同时调节滚轮调节水平方向的视角与竖直方向的视角。程序内部会根据增量式PID控制机器人移动平台四周的支撑杆的伸缩,使平台趋于平衡稳定。The specific implementation process of the method in this embodiment is as follows: first, the program can be run immediately after being burned into the single-chip microcomputer; the sensitivity and range can be set according to actual requirements; the visual changes, the buttons can simultaneously adjust the scroll wheel to adjust the horizontal viewing angle and the vertical viewing angle. The program will control the expansion and contraction of the support rods around the robot mobile platform according to the incremental PID, so that the platform tends to be balanced and stable.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810986431.8A CN109129481B (en) | 2018-08-28 | 2018-08-28 | Incremental PID (proportion integration differentiation) -based service robot load platform balance control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810986431.8A CN109129481B (en) | 2018-08-28 | 2018-08-28 | Incremental PID (proportion integration differentiation) -based service robot load platform balance control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109129481A CN109129481A (en) | 2019-01-04 |
CN109129481B true CN109129481B (en) | 2020-06-30 |
Family
ID=64828458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810986431.8A Active CN109129481B (en) | 2018-08-28 | 2018-08-28 | Incremental PID (proportion integration differentiation) -based service robot load platform balance control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109129481B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204101063U (en) * | 2014-09-17 | 2015-01-14 | 阜阳师范学院 | Self-adjusting balance testing table |
CN106426027A (en) * | 2016-07-26 | 2017-02-22 | 五邑大学 | Multi-motor intelligent lifting worktable control system and method |
CN107168186A (en) * | 2017-07-05 | 2017-09-15 | 山东科技大学 | 4 automatic horizontal control systems and its method of work based on six axle combination sensors |
US9975747B1 (en) * | 2014-10-13 | 2018-05-22 | Bill J. Williams | Jack with floating platform |
CN108224017A (en) * | 2018-02-05 | 2018-06-29 | 上海海事大学 | 3 platform structures and its control method with level-regulating system |
-
2018
- 2018-08-28 CN CN201810986431.8A patent/CN109129481B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204101063U (en) * | 2014-09-17 | 2015-01-14 | 阜阳师范学院 | Self-adjusting balance testing table |
US9975747B1 (en) * | 2014-10-13 | 2018-05-22 | Bill J. Williams | Jack with floating platform |
CN106426027A (en) * | 2016-07-26 | 2017-02-22 | 五邑大学 | Multi-motor intelligent lifting worktable control system and method |
CN107168186A (en) * | 2017-07-05 | 2017-09-15 | 山东科技大学 | 4 automatic horizontal control systems and its method of work based on six axle combination sensors |
CN108224017A (en) * | 2018-02-05 | 2018-06-29 | 上海海事大学 | 3 platform structures and its control method with level-regulating system |
Also Published As
Publication number | Publication date |
---|---|
CN109129481A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2664257C2 (en) | Systems and methods for tracking location of mobile target objects | |
CN107607113B (en) | Method for measuring inclination angles of two-axis attitude | |
CN103743378B (en) | A kind of gesture detection system of pipeline detector | |
CN112731953B (en) | Robot control method and device, computer readable storage medium and robot | |
CN107560613A (en) | Trajectory Tracking System and method in robot chamber based on nine axle inertial sensors | |
CN102608351B (en) | Detection method and system of three-dimensional gesture of mechanical arm and system controlling mechanical arm to operate | |
CN109540135B (en) | Method and device for detecting pose and extracting yaw angle of paddy field tractor | |
CN103353304B (en) | A kind ofly three-dimensional inertial motion is sensed to the method and device that compensate | |
CN107144958B (en) | Augmented reality telescope | |
CN114926547A (en) | Calibration method of camera and IMU, electronic device and system | |
CN110986928B (en) | Real-time drift correction method for triaxial gyroscope of photoelectric pod | |
JP2023547054A (en) | Motion state control method, device, wheel robot and program | |
CN109866217B (en) | Robot mileage positioning method, device, terminal equipment and computer storage medium | |
WO2022160811A1 (en) | Footed robot motion trajectory tracking method and device, and readable storage medium | |
EP2972683B1 (en) | Dynamically calibrating magnetic sensors | |
CN105607760A (en) | Trace restoration method and system based on micro inertial sensor | |
CN109129481B (en) | Incremental PID (proportion integration differentiation) -based service robot load platform balance control method | |
CN116051600A (en) | Optimizing method and device for product detection track | |
CN115371701B (en) | Attitude sensor installation calibration method and device | |
JP2007327862A (en) | Surveying equipment | |
CN111102918B (en) | An Automatic Measuring System of Cube Mirror Coordinate System | |
CN111637892A (en) | Mobile robot positioning method based on combination of vision and inertial navigation | |
JP2016211906A (en) | Inclination measuring method and apparatus, electronic apparatus and program | |
CN113566789B (en) | Depth camera-based indoor slope detection method and device and readable medium | |
CN112556727A (en) | AR navigation positioning error calibration method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |