[go: up one dir, main page]

CN107932489A - A kind of robot cycling device and control method - Google Patents

A kind of robot cycling device and control method Download PDF

Info

Publication number
CN107932489A
CN107932489A CN201810037262.3A CN201810037262A CN107932489A CN 107932489 A CN107932489 A CN 107932489A CN 201810037262 A CN201810037262 A CN 201810037262A CN 107932489 A CN107932489 A CN 107932489A
Authority
CN
China
Prior art keywords
robot
control
car body
bicycle
balance
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
Application number
CN201810037262.3A
Other languages
Chinese (zh)
Inventor
艾红
童璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin University of Science and Technology
Original Assignee
Harbin University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin University of Science and Technology filed Critical Harbin University of Science and Technology
Priority to CN201810037262.3A priority Critical patent/CN107932489A/en
Publication of CN107932489A publication Critical patent/CN107932489A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/0006Exoskeletons, i.e. resembling a human figure

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Motorcycle And Bicycle Frame (AREA)

Abstract

The invention discloses a kind of robot cycling device and control method, comprise the following steps:Relation between car body roll angle and driving balance turbin generator output quantity is determined by Dynamic Modeling and analysis;Control car body to carry out curvilinear motion, observe the control response of car body balance when carrying out curvilinear motion under different driving speed, different handle angles, and therefore formulate controlled device target;Introductory path planning or tracking traveling scheme are formulated according to the situation of above-mentioned debugging;System is optimized and improved using intelligent control algorithm according to actual debugging situation.The compact simple and cost of bicycle machines people that the present invention is studied is relatively low, with stronger anti-interference, balance control for other related under-actuated systems such as the bicycle machines people of following other forms, wheelbarrow robot, scooter robot and lay certain basis.

Description

一种机器人骑自行车装置及控制方法Device and control method for a robot riding a bicycle

技术领域technical field

本发明涉及一种机器人骑自行车装置及控制方法。The invention relates to a robot riding a bicycle device and a control method.

背景技术Background technique

近几年来,随着机器人产业的高速发展,特别是基于新兴传感器和控制算法的大力发展,各种类型的移动机器人已经可以很好地适用于各种工业生产环节之中并节省了大量人力。带有导航系统的移动机器人可以在一些特殊的工作环境中,例如井下、传染病医院及核设施附近等具有不安全因素、不允许人类直接进入的情况下,执行各类监视、巡查甚至简单的交互任务。大多数的移动机器人系统底盘使用的都是四轮、多轮甚至履带式结构。四轮及多轮结构的移动机器人系统在静止时会具有静态稳定性,但是却具有由于其转弯半径较大所以需要较大的工作空间,行动不够灵活、结构复杂、功耗较大等缺点。In recent years, with the rapid development of the robot industry, especially based on the vigorous development of emerging sensors and control algorithms, various types of mobile robots can be well applied to various industrial production links and save a lot of manpower. Mobile robots with navigation systems can perform various surveillance, inspection and even simple tasks in some special working environments, such as underground, infectious disease hospitals, and nuclear facilities, where there are unsafe factors and humans are not allowed to enter directly. Interactive tasks. Most mobile robotic system chassis use four-wheel, multi-wheel or even tracked structures. The mobile robot system with four-wheel and multi-wheel structure will have static stability when it is stationary, but it has the disadvantages of requiring a large working space due to its large turning radius, inflexible action, complex structure, and high power consumption.

在遇到一些狭长又长距离的工作空间时,多轮机器人将不再能轻巧、迅速地通过。此时,两轮前后纵向布置传统自行车结构的移动式机器人又一次引起了人们的关注。同普通四轮或者多轮结构的移动机器人相比,自行车机器人系统虽然具有欠驱动不稳定性(需要时刻通过程序辅助保持动态平衡),但是其一旦运行起来行动灵活,且结构简单、车体较窄,因此质量较轻、能源消耗小,符合我国当前经济转型时期节能减排、降低能耗的长远需求。在控制算法成熟之后自行车机器人系统还能适应各类复杂路况,在安防巡检、资源探查甚至物流行业具有潜在的应用前景。与此同时,自行车机器人系统若从车架上安装类人型机器人跟随“脚蹬”随动或者驱动,还将具有娱乐展示性和科普性,同样也具有一定潜在的市场价值。When encountering some narrow and long-distance workspaces, the multi-wheel robot will no longer be able to pass lightly and quickly. At this time, the mobile robot with two wheels longitudinally arranged in the traditional bicycle structure has once again attracted people's attention. Compared with ordinary four-wheel or multi-wheel mobile robots, although the bicycle robot system has underactuated instability (it needs to be assisted by the program to maintain dynamic balance), but once it is running, it is flexible and has a simple structure and a relatively small body. Narrow, so the weight is lighter and the energy consumption is small, which meets the long-term needs of energy conservation, emission reduction and energy consumption reduction in my country's current economic transformation period. After the control algorithm is mature, the bicycle robot system can also adapt to various complex road conditions, and has potential application prospects in security inspection, resource exploration and even logistics industry. At the same time, if the bicycle robot system is equipped with a humanoid robot from the frame to follow or drive the "pedals", it will also be entertaining and popular, and it will also have a certain potential market value.

目前,国内外所做的自行车机器人基本绝大多数主要以自行车车体为主,也就是目标系统为一个机器人型的自行车,通过对一个类似于自行车的框架进行相关设计便可实现机器人自行车的平衡行进,其中驱动方式主要以电机驱动为主。该种自行车在运行过程中系统除车体转把或者内部平衡结构的调整之外不再具有其他动态扰动。本申请所设计系统为增强观赏性,推动仿人型机器人的进一步发展,同时为更接近“自行车机器人”这一“可以骑自行车的机器人”的概念,将使用仿人型机器人主动驱动自行车车体前进,其腿部多关节舵机设计,而整体系统由车体安装的机械辅助装置辅助维持平衡。自行车机器人作为一个具有典型对称性特征的非完整和欠驱动系统,自行车车体两轮前后纵向布置,且侧向倾角无直接驱动,受二阶动力学耦合约束,如何通过车把或者其他机械辅助结构实现整个系统平衡的非线性控制是个学术界公认的难题。At present, most of the bicycle robots made at home and abroad are mainly based on the bicycle body, that is, the target system is a robot-shaped bicycle, and the balance of the robot bicycle can be realized by designing a frame similar to a bicycle. The driving method is mainly driven by motor. During the operation of the bicycle, the system does not have other dynamic disturbances except for the adjustment of the handle of the bicycle body or the internal balance structure. The system designed in this application is to enhance the appreciation and promote the further development of humanoid robots. At the same time, in order to get closer to the concept of "bicycle robot", a "robot that can ride a bicycle", a humanoid robot will be used to actively drive the bicycle body Forward, its legs are designed with multi-joint steering gear, and the overall system is assisted by a mechanical auxiliary device installed on the car body to maintain balance. Bicycle robot is an incomplete and underactuated system with typical symmetry characteristics. The two wheels of the bicycle body are arranged longitudinally, and the lateral inclination angle is not directly driven. It is constrained by the second-order dynamic coupling. The nonlinear control of the structure to achieve the balance of the whole system is a recognized problem in the academic circles.

发明内容Contents of the invention

本发明的目的在于提供一种机器人骑自行车装置及控制方法,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a robot riding a bicycle device and a control method to solve the problems raised in the above-mentioned background technology.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种机器人骑自行车控制方法,包括以下步骤:A method for controlling a robot riding a bicycle, comprising the following steps:

S1,通过动力学建模及分析确定车体横滚角与驱动平衡轮电机输出量之间的关系;S1, determine the relationship between the roll angle of the car body and the output of the motor driving the balance wheel through dynamic modeling and analysis;

S2,控制车体进行曲线运动,观察在不同驱动速度、不同转把角度下进行曲线运动时车体平衡的控制响应,并因此制定被控对象目标;S2, control the car body to move in a curve, observe the control response of the car body balance when the car body moves in a curve at different driving speeds and different handle angles, and formulate the target of the controlled object accordingly;

S3,根据S1和S2调试的情况制定相关路径规划或者循迹行驶方案;S3, according to the debugging situation of S1 and S2, formulate relevant path planning or tracking driving plan;

S4,根据实际调试情况使用智能控制算法对系统进行优化和改善。S4, optimize and improve the system by using intelligent control algorithm according to the actual debugging situation.

进一步的,在S1中,首先将整个自行车车体简化为几何模型,前车把固定至中位、转角0度的位置,将“机器人”系统视为固定在车座部位的一个固定负载;通过对车体各部分质量、几何关系的线性叠加,推断出车体整体重心的位置;根据惯性轮的固定位置、转动惯量和质量推导出当惯性轮转动时,惯性轮加速或反向减速转动产生的横向力同车体侧向横滚倾倒时,重力作用在车体上横向倾倒的分力相抵消的力矩等式,从而建立其动力学模型;根据相关函数关系,最先使用传统PID控制算法设计控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度或者其他检测量实时或者提前输出电机控制量。Furthermore, in S1, the entire bicycle body is first simplified into a geometric model, the front handlebar is fixed to the neutral position and the rotation angle is 0 degrees, and the "robot" system is regarded as a fixed load fixed on the seat; through The position of the overall center of gravity of the car body is inferred from the linear superposition of the mass and geometric relationship of each part of the car body; according to the fixed position, moment of inertia and mass of the inertia wheel, it is deduced that when the inertia wheel rotates, the acceleration or reverse deceleration of the inertia wheel produces When the lateral force of the vehicle body rolls and dumps sideways, the moment equation of the component force of gravity acting on the vehicle body topple over laterally cancels out, so as to establish its dynamic model; according to the correlation function relationship, the traditional PID control algorithm is first used The controller is designed so that the controller can output the motor control amount in real time or in advance according to the roll angle of the vehicle body, the acceleration of the roll angle, or other detection quantities.

进一步的,在S2中,通过车轮前后接地点之间距离、车把转角等相关量推导出转弯半径大小;根据转弯时的驱动速度、转弯半径及系统整体质量计算得出系统向心力大小,再次根据力矩相等得出车体应该保持的倾角度数;根据车体应当保持横滚角的角度与驱动速度、车把转角的关系,再次使用传统PID控制算法设计曲线运动平衡控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度、驱动速度和车把转角以及其他检测量实时或者提前输出电机控制量,使车体保持一定倾角,保证可以平稳快速地实现曲线运动。Further, in S2, the turning radius is deduced from the distance between the front and rear contact points of the wheel, the handlebar angle and other related quantities; the centripetal force of the system is calculated according to the driving speed, turning radius and the overall mass of the system when turning, and again according to The angle of inclination that should be maintained by the vehicle body can be obtained by equal torque; according to the relationship between the angle of roll angle that should be maintained by the vehicle body, the driving speed, and the handlebar angle, the traditional PID control algorithm is used to design the curve motion balance controller again, so that the controller can be based on The roll angle of the car body, the acceleration of the roll angle, the driving speed, the handlebar angle and other detected quantities output the motor control value in real time or in advance to keep the car body at a certain inclination angle and ensure that the curve movement can be realized smoothly and quickly.

进一步的,在S3中,若车体运行比较稳定且在正常直线前进、转弯行进时抖动、误差很小,使用车载高精度编码器及陀螺仪实时运算计算当前位置;若实际调试结果误差较大或者要实现循迹,则使用线阵CCD,通过检测铺设在与背景地面颜色区别较大的颜色色条,时刻校正车体沿色条行驶。Furthermore, in S3, if the car body is running relatively stable and the vibration and error are small when it is moving straight forward or turning, use the on-board high-precision encoder and gyroscope to calculate the current position in real time; if the actual debugging result has a large error Or to achieve tracking, use a linear array CCD to constantly correct the car body to drive along the color bar by detecting the color bar that is laid on the ground with a large difference in color from the background ground.

进一步的,在S4中,智能控制算法包含模糊参数自整定PID控制算法和参数自适应算法,同时通过与蓝牙或者WIFI模块通讯,使用电脑或者编写安卓控制APP通过手机、平板等终端控制。Furthermore, in S4, the intelligent control algorithm includes fuzzy parameter self-tuning PID control algorithm and parameter self-adaptive algorithm. At the same time, through communication with Bluetooth or WIFI module, use a computer or write an Android control APP to control through terminals such as mobile phones and tablets.

一种机器人骑自行车装置,采用32路舵机控制板,通过与STM32单片机通讯工作方式,STM32单片机发送控制指令,每条“腿”的3个舵机“腿蹬”脚踏板的一周被分为20个位置点,通过周期性顺序发送每个位置点实现对多舵机的同时控制。A robot bicycle riding device, using 32-way steering gear control board, through communication with STM32 single-chip microcomputer, STM32 single-chip microcomputer sends control commands, and each "leg" of the three steering gears "leg pedal" is divided into one cycle There are 20 position points, and the simultaneous control of multiple servos is realized by sending each position point in a periodic order.

与现有技术相比,本发明的有益效果是:本申请针对自行车机器人这一具有典型的对称性欠驱动非完整约束系统难于实现的平衡控制问题,根据车体本身质量及其几何关系,通过对其动力学模型的受力分解和分析,使用传统的PID控制器对惯性轮电机和转把舵机进行反馈控制,使用红外、超声或线性CCD传感器实现避障和沿预定轨迹行进,同时将根据调试系统的实际情况使用模糊PID等高级智能算法控制器,并将系统通过WIFI或蓝牙模块接入无线网内方便控制和使用。同时使用多关节舵机类人型机器人实现“腿蹬”动作驱动自行车,使自行车机器人在普通的直线行驶中有效实现系统的自平衡。与此同时,控制自行车机器人前进方向的是一个安装在车把上的舵机。当自行车以一个较快速度直线前进时,若要进行快速转向、实现车体灵活地曲线运动,需要车体产生一定倾角与曲线运动时的向心力相抵消。此时需要再次根据动力学模型、车体前进运行速度和转向角度推算出惯性轮电机输出值使车体结构可以保持一定倾角平稳、快速地进行曲线运动。最终还可实现对系统的实时控制或沿预定轨迹行驶。Compared with the prior art, the beneficial effect of the present invention is: the application aims at the balance control problem of the bicycle robot, which is difficult to realize in a typical symmetrical underactuated non-holonomic constraint system, according to the mass of the vehicle body itself and its geometric relationship, through For the force decomposition and analysis of its dynamic model, the traditional PID controller is used for feedback control of the inertial wheel motor and the steering gear, and the infrared, ultrasonic or linear CCD sensor is used to avoid obstacles and travel along the predetermined trajectory. The actual situation of the debugging system uses advanced intelligent algorithm controllers such as fuzzy PID, and the system is connected to the wireless network through WIFI or Bluetooth module for easy control and use. At the same time, the multi-joint steering gear humanoid robot is used to realize the "leg kick" action to drive the bicycle, so that the bicycle robot can effectively realize the self-balancing of the system in ordinary straight-line driving. At the same time, controlling the direction of the bicycle robot is a steering gear mounted on the handlebar. When the bicycle moves straight forward at a relatively fast speed, if it is to turn quickly and realize the flexible curve movement of the vehicle body, it is necessary for the vehicle body to produce a certain inclination angle to offset the centripetal force during the curve movement. At this time, it is necessary to calculate the output value of the inertia wheel motor again according to the dynamic model, the forward running speed of the car body and the steering angle, so that the car body structure can maintain a certain inclination angle to perform a smooth and fast curve movement. Ultimately, real-time control of the system or driving along a predetermined trajectory can also be achieved.

综上所述,本申请所研究的自行车机器人小巧简易且成本较低,具有较强的抗干扰性,为未来其他形式的自行车机器人、独轮车机器人、滑板车机器人等其他相关欠驱动系统平衡控制打下一定基础。In summary, the bicycle robot studied in this application is small, simple, low-cost, and has strong anti-interference performance. A certain basis.

附图说明Description of drawings

图1为本发明的结构示意图。Fig. 1 is a structural schematic diagram of the present invention.

图中:1-转把电机,2-平衡轮,3-带锂电池的控制盒,4-舵机。In the figure: 1-handlebar motor, 2-balance wheel, 3-control box with lithium battery, 4-steering gear.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本申请所要研究的对象为“机器人骑自行车系统”,其中单纯地由多关节舵机机器人执行“腿蹬”驱动自行车这个周期性往复动作十分简单,使用市场上的舵机控制板通过与主控板的通讯或者使用单片机直接输出多路PWM方波控制即可,且腿蹬速度只要通过调整多舵机动作执行单一动作所需时间或者多路PWM方波输出信号的间隔即可,但是若想实现整个系统在静止、直线、曲线、加速减速等多种运动情况下一直可以维持平衡的控制却十分困难,同时由于自行车车架结构简单,为前后细长、横向瘦窄型车体,系统可能会有不确定性横滚晃动,负载能力有限,因此对于循迹或者路径规划传感器及数据处理器的选择、安装和实现同样充满了挑战。The research object of this application is the "robot cycling system", in which the periodic reciprocating action of "leg pedaling" to drive the bicycle is simply performed by the multi-joint steering gear robot. The communication of the board or use the MCU to directly output multiple PWM square wave control, and the pedal speed can be adjusted by adjusting the time required to execute a single action or the interval of multiple PWM square wave output signals, but if you want It is very difficult to achieve the balance control of the whole system in various motion situations such as static, straight line, curve, acceleration and deceleration, etc. At the same time, due to the simple structure of the bicycle frame, it is a slender front and rear, and a thin and narrow body in the lateral direction. There will be uncertain rolling and shaking, and the load capacity is limited, so the selection, installation and implementation of tracking or path planning sensors and data processors are also full of challenges.

因此,本申请的主要研究目标为实现对一个在“仿人型机器人腿蹬自行车”动作周期性执行的动态扰动下、整体系统的平衡控制。探究车体在速度较快情况下进行曲线运动时车体倾角和转把角度的关系,从而实现系统平稳、快速地实现曲线运动。除此之外,本申请还将对“机器人骑自行车”系统进行路径规划或者循迹控制,使之可以在无人干预的情况下实现沿预定轨迹行驶、回到起点等功能。Therefore, the main research goal of this application is to realize the balance control of the overall system under the dynamic disturbance of the periodic execution of the "humanoid robot leg pedal bicycle" action. Explore the relationship between the inclination angle of the car body and the angle of the steering handle when the car body is moving in a curve at a high speed, so as to realize the smooth and fast curve movement of the system. In addition, this application will also carry out path planning or tracking control on the "robot cycling" system, so that it can realize functions such as driving along a predetermined trajectory and returning to the starting point without human intervention.

具体实验方法、研究方法及内容主要分为三步。The specific experimental method, research method and content are mainly divided into three steps.

第一步:主要研究方法为通过动力学建模及分析寻求车体横滚角与驱动平衡轮电机输出量之间的关系。首先将整个自行车车体简化为几何模型,前车把固定至中位、转角0度的位置,将“机器人”系统视为固定在车座部位的一个固定负载。通过对车体各部分质量、几何关系的线性叠加,推断出车体整体重心的位置。根据惯性轮的固定位置(平衡轮质心)、转动惯量和质量推导出当惯性轮转动时,惯性轮加速或反向减速转动产生的横向力同车体侧向横滚倾倒时,重力作用在车体上横向倾倒的分力相抵消的力矩等式,从而建立其动力学模型。根据相关函数关系,最先使用传统PID控制算法设计控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度或者其他检测量实时或者提前输出电机控制量。惯性轮转动产生侧向力同倾倒力相抵消,实现车体横向倾倒的姿态矫正。Step 1: The main research method is to seek the relationship between the roll angle of the car body and the output of the motor driving the balance wheel through dynamic modeling and analysis. Firstly, the entire bicycle body is simplified into a geometric model, the front handlebar is fixed to the neutral position and the rotation angle is 0 degrees, and the "robot" system is regarded as a fixed load fixed on the seat. Through the linear superposition of the mass and geometric relationship of each part of the car body, the position of the overall center of gravity of the car body is deduced. According to the fixed position of the inertia wheel (the center of mass of the balance wheel), the moment of inertia and the mass, it is deduced that when the inertia wheel rotates, the lateral force generated by the acceleration or reverse deceleration of the inertia wheel is the same as when the vehicle body rolls sideways, and the gravity acts on the vehicle. The moment equation of the component forces of the lateral dumping on the body cancels out, so as to establish its dynamic model. According to the correlation function relationship, the traditional PID control algorithm is used to design the controller first, so that the controller can output the motor control value in real time or in advance according to the roll angle of the vehicle body, the acceleration of the roll angle, or other detection quantities. The lateral force generated by the rotation of the inertia wheel is offset by the dumping force, so that the posture correction of the lateral dumping of the vehicle body is realized.

以上研究过程其实可以再简化为一个一阶倒立摆的问题。因此在还未确定“机器人骑自行车系统”具体结构或者其方案可行性的时候,可以根据与“机器人骑自行车”系统相对应的各部位估算的质量和设计所确定的几何关系,先行仿真设计一个一阶倒立摆系统。The above research process can actually be simplified into a problem of a first-order inverted pendulum. Therefore, when the specific structure of the "robot cycling system" or the feasibility of its scheme has not been determined, a simulation can be designed in advance based on the estimated mass of each part corresponding to the "robot cycling" system and the geometric relationship determined by the design. First order inverted pendulum system.

当控制倒立摆平衡的算法趋于稳定之后,便可将算法移植至骑自行车机器人身上。在自行车机器人系统在启动后无论停止还是前后运动都可以保持平衡后,即完成“骑自行车机器人”平衡控制器的设计。在完成系统平衡控制器设计之后,实现自行车车体在“仿人型机器人腿蹬驱动”走直线这一动态扰动下,平衡控制器仍能稳定运行使车体在一定往复运动的横滚倾角内保持平衡。Once the algorithm controlling the balance of the inverted pendulum stabilizes, the algorithm can be ported to the bicycle-riding robot. After the bicycle robot system can maintain balance whether it stops or moves forward and backward after starting, the design of the balance controller of the "bicycle robot" is completed. After completing the design of the balance controller of the system, the balance controller can still run stably under the dynamic disturbance of the "humanoid robot leg pedal drive" to keep the bicycle body within a certain roll angle of reciprocating motion. maintain balance.

第二步:尝试使车体进行曲线运动,观察在不同驱动速度不同转把角度下进行曲线运动时车体平衡的控制响应,并因此制定被控对象目标。再次使用之前建立的动力学模型,将前车把固定至一个固定角度的位置,将“机器人”系统视为固定在车座部位一固定负载。同样通过车轮前后接地点之间距离、车把转角等相关量推导出转弯半径大小。根据转弯时的驱动速度、转弯半径及系统整体质量计算得出系统向心力大小,再次根据力矩相等得出车体应该保持的倾角度数。根据车体应当保持横滚角的角度与驱动速度、车把转角的关系,再次使用传统PID控制算法设计曲线运动平衡控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度、驱动速度和车把转角以及其他检测量实时或者提前输出电机控制量,使车体保持一定倾角,保证可以平稳快速地实现曲线运动。Step 2: Try to make the car body move in a curve, observe the control response of the car body balance when the car body moves in a curve under different driving speeds and different handle angles, and formulate the target of the controlled object accordingly. Using the previously established dynamic model again, the front handlebar is fixed at a fixed angle, and the "robot" system is considered as a fixed load fixed on the saddle. Similarly, the turning radius is deduced from related quantities such as the distance between the front and rear contact points of the wheel, the handlebar angle, and the like. Calculate the centripetal force of the system according to the driving speed when turning, the turning radius and the overall mass of the system, and then obtain the angle of inclination that the car body should maintain according to the equal moment. According to the relationship between the angle of the car body and the driving speed and handlebar angle, the traditional PID control algorithm is used to design the curve motion balance controller again, so that the controller can control the roll angle of the car body, the acceleration of the roll angle, The driving speed, handlebar angle and other detected quantities output the motor control quantity in real time or in advance, so that the car body can maintain a certain inclination angle, and ensure that the curved movement can be realized smoothly and quickly.

第三步:根据前两步调试的情况制定相关路径规划或者循迹行驶方案。若车体运行比较稳定且在正常直线前进、转弯行进时抖动、误差很小,可使用车载高精度编码器及陀螺仪实时运算计算当前位置。也可以考虑利用通讯模块和光电红外传感器配合校正输入固定运行轨迹的机器人骑自行车系统。若实际调试结果误差较大或者要实现循迹,则也可以使用使用线阵CCD,通过检测铺设在与背景地面颜色区别较大的颜色色条,时刻校正车体沿色条行驶。除了循迹可以使用线阵CCD,同样也可以使用通过埋设通入交流电的导线所产生的磁场导航。Step 3: Make relevant route planning or tracking driving plan according to the debugging situation of the first two steps. If the car body is running relatively stable and the vibration and error are very small when it is moving forward in a straight line or turning, the current position can be calculated in real time using the on-board high-precision encoder and gyroscope. It is also conceivable to use a communication module and a photoelectric infrared sensor to cooperate with a robot cycling system to correct and input a fixed running track. If the error of the actual debugging result is large or tracking is to be realized, the linear array CCD can also be used to detect the color bar laid on the ground with a large difference in color from the background ground, and to always correct the car body to drive along the color bar. In addition to the linear array CCD that can be used for tracking, it is also possible to use the magnetic field navigation generated by burying the wires that are fed with alternating current.

最后根据实际调试情况尝试使用智能控制算法对系统进行优化和改善,例如模糊参数自整定PID控制、参数自适应等算法。同时通过与蓝牙或者WIFI模块通讯,使用电脑或者编写安卓控制APP通过手机、平板等终端控制,优化调试环节,提升控制、使用体验。Finally, according to the actual debugging situation, try to use intelligent control algorithms to optimize and improve the system, such as fuzzy parameter self-tuning PID control, parameter self-adaptive and other algorithms. At the same time, by communicating with the Bluetooth or WIFI module, using a computer or writing an Android control APP to control through mobile phones, tablets and other terminals, optimize the debugging process, and improve the control and user experience.

由于“仿人型机器人”为随动装置可视为一个固定负载,为降低通过车把转动控制车体平衡的难度,先使用未安装“仿人型机器人”的自行车车体系统进行调试和系统实现,最初针对于控制器的设计是借鉴于两轮左右布置的平衡小车中,使用已有的传感器检测及卡尔曼滤波算法,两轮平衡车使用的是多环PID算法控制,但是两轮左后布置的平衡车并不是欠驱动系统,其前后方向的平衡控制可通过电机驱动车轮直接控制,为普通的一阶倒立摆控制系统。因此自行车机器人不能仅仅使用一个PID算法就直接得出车体横滚角与车把转角的关系。因此,使用拉格朗日方法建立了一个多输入单输出简化动力学模型,根据部分反馈线性化原理,将包含了车体横滚角与转把力矩的欠驱动子系统进行线性化处理,并得到了一个复杂关系,最终使用PID算法通过仿真尝试性地实现了预期效果。Since the "humanoid robot" can be regarded as a fixed load as a follower device, in order to reduce the difficulty of controlling the balance of the bicycle body through the rotation of the handlebar, the bicycle body system without the "humanoid robot" is used for debugging and system Realization, the initial design of the controller is based on the balance car with two wheels arranged left and right, using the existing sensor detection and Kalman filter algorithm, the two-wheel balance car is controlled by the multi-loop PID algorithm, but the two-wheel left The balance car arranged in the rear is not an underactuated system, and the balance control in the front and rear directions can be directly controlled by the motor-driven wheels, which is an ordinary first-order inverted pendulum control system. Therefore, the bicycle robot cannot directly obtain the relationship between the roll angle of the vehicle body and the handlebar angle using only one PID algorithm. Therefore, a multi-input and single-output simplified dynamics model is established using the Lagrangian method. According to the principle of partial feedback linearization, the underactuated subsystem including the vehicle body roll angle and handlebar torque is linearized, and A complex relationship was obtained, and finally the expected effect was tentatively achieved through simulation using the PID algorithm.

如图1所示,在“仿人型机器人”背部加装电机及平衡轮,将腿部随动机械结构改为使用多组舵机实现的多关节主动驱动结构,车把由舵机转动控制方向,可以带动“仿人形机器人”上肢机械结构随动或故意抱怀做“大撒把”形状,根据所设计的系统结构,装配了仿人型机器人脚部结构,并调试了多关节舵机协同“腿蹬车子”的动作算法,方案使用了一款32路舵机控制板,通过与STM32单片机通讯工作方式,STM32单片机发送控制指令,每条“腿”的3个舵机“腿蹬”脚踏板的一周被分为20个位置点,通过周期性顺序发送每个位置点实现对多舵机的同时控制,使末端脚踝位置可以带动脚踏板以前车轮盘前轴为中心进行圆周运动。As shown in Figure 1, a motor and a balance wheel are installed on the back of the "humanoid robot", and the mechanical structure of the legs is changed to a multi-joint active drive structure realized by using multiple sets of steering gears. The handlebars are controlled by the rotation of the steering gears The direction can drive the upper limb mechanical structure of the "humanoid robot" to follow or deliberately embrace it to make a "big hand" shape. According to the designed system structure, the humanoid robot foot structure is assembled, and the multi-joint steering gear is debugged. Cooperating with the action algorithm of "leg pedaling the car", the scheme uses a 32-way steering gear control board. Through communication with the STM32 single-chip microcomputer, the STM32 single-chip microcomputer sends control commands, and each "leg" has three steering gear "leg pedals" The cycle of the pedal is divided into 20 position points, and the simultaneous control of multiple servos is realized by sending each position point in a periodic order, so that the ankle position at the end can drive the pedal to perform circular motion centered on the front axle of the front wheel disc .

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art.

Claims (6)

1.一种机器人骑自行车控制方法,其特征在于,包括以下步骤:1. A method for controlling a robot riding a bicycle, comprising the following steps: S1,通过动力学建模及分析确定车体横滚角与驱动平衡轮电机输出量之间的关系;S1, determine the relationship between the roll angle of the car body and the output of the motor driving the balance wheel through dynamic modeling and analysis; S2,控制车体进行曲线运动,观察在不同驱动速度、不同转把角度下进行曲线运动时车体平衡的控制响应,并因此制定被控对象目标;S2, control the car body to move in a curve, observe the control response of the car body balance when the car body moves in a curve at different driving speeds and different handle angles, and formulate the target of the controlled object accordingly; S3,根据S1和S2调试的情况制定相关路径规划或者循迹行驶方案;S3, according to the debugging situation of S1 and S2, formulate relevant path planning or tracking driving plan; S4,根据实际调试情况使用智能控制算法对系统进行优化和改善。S4, optimize and improve the system by using intelligent control algorithm according to the actual debugging situation. 2.根据权利要求1所述的机器人骑自行车控制方法,其特征在于,在S1中,首先将整个自行车车体简化为几何模型,前车把固定至中位、转角0度的位置,将“机器人”系统视为固定在车座部位的一个固定负载;通过对车体各部分质量、几何关系的线性叠加,推断出车体整体重心的位置;根据惯性轮的固定位置、转动惯量和质量推导出当惯性轮转动时,惯性轮加速或反向减速转动产生的横向力同车体侧向横滚倾倒时,重力作用在车体上横向倾倒的分力相抵消的力矩等式,从而建立其动力学模型;根据相关函数关系,最先使用传统PID控制算法设计控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度或者其他检测量实时或者提前输出电机控制量。2. The method for controlling a robot riding a bicycle according to claim 1 is characterized in that, in S1, at first the whole bicycle body is simplified into a geometric model, the front handlebar is fixed to the position of neutral position and rotation angle 0 degree, and " The "robot" system is regarded as a fixed load fixed on the vehicle seat; through the linear superposition of the mass and geometric relationship of each part of the vehicle body, the position of the overall center of gravity of the vehicle body is deduced; according to the fixed position, moment of inertia and mass of the inertia wheel, the When the inertial wheel rotates, the lateral force generated by the acceleration or reverse deceleration of the inertial wheel is counteracted by the component force of gravity acting on the vehicle body when the vehicle body rolls sideways, so as to establish its Dynamic model: According to the correlation function, the traditional PID control algorithm is used to design the controller first, so that the controller can output the motor control amount in real time or in advance according to the roll angle of the vehicle body, the acceleration of the roll angle, or other detection quantities. 3.根据权利要求1所述的机器人骑自行车控制方法,其特征在于,在S2中,通过车轮前后接地点之间距离、车把转角等相关量推导出转弯半径大小;根据转弯时的驱动速度、转弯半径及系统整体质量计算得出系统向心力大小,再次根据力矩相等得出车体应该保持的倾角度数;根据车体应当保持横滚角的角度与驱动速度、车把转角的关系,再次使用传统PID控制算法设计曲线运动平衡控制器,使控制器可以根据车体横滚倾角、横滚倾角的加速度、驱动速度和车把转角以及其他检测量实时或者提前输出电机控制量,使车体保持一定倾角,保证可以平稳快速地实现曲线运动。3. The robot riding a bicycle control method according to claim 1 is characterized in that, in S2, the turning radius is deduced by related quantities such as the distance between the front and rear contact points of the wheel, the handlebar angle; according to the driving speed when turning , turning radius and the overall mass of the system to calculate the centripetal force of the system, and then obtain the inclination angle that the car body should maintain according to the equal moment; The traditional PID control algorithm designs the curve motion balance controller, so that the controller can output the motor control amount in real time or in advance according to the roll angle of the car body, the acceleration of the roll angle, the driving speed, the handlebar angle, and other detections, so that the car body maintains A certain inclination angle ensures that the curved movement can be realized smoothly and quickly. 4.根据权利要求1所述的机器人骑自行车控制方法,其特征在于,在S3中,若车体运行比较稳定且在正常直线前进、转弯行进时抖动、误差很小,使用车载高精度编码器及陀螺仪实时运算计算当前位置;若实际调试结果误差较大或者要实现循迹,则使用线阵CCD,通过检测铺设在与背景地面颜色区别较大的颜色色条,时刻校正车体沿色条行驶。4. The method for controlling a robot riding a bicycle according to claim 1, characterized in that, in S3, if the vehicle body runs relatively stably and the jitter and error are very small when moving forward in a normal straight line or turning, use a vehicle-mounted high-precision encoder and the gyroscope to calculate the current position in real time; if the actual debugging result has a large error or to achieve tracking, use a linear array CCD to correct the color of the car body at all times driving. 5.根据权利要求1所述的机器人骑自行车装置及控制方法,其特征在于,在S4中,智能控制算法包含模糊参数自整定PID控制算法和参数自适应算法,同时通过与蓝牙或者WIFI模块通讯,使用电脑或者编写安卓控制APP通过手机、平板等终端控制。5. The robot bicycle riding device and control method according to claim 1, characterized in that, in S4, the intelligent control algorithm comprises a fuzzy parameter self-tuning PID control algorithm and a parameter self-adaptive algorithm, while communicating with Bluetooth or WIFI module , Use a computer or write an Android control APP to control through terminals such as mobile phones and tablets. 6.一种机器人骑自行车装置,其特征在于,采用32路舵机控制板,通过与STM32单片机通讯工作方式,STM32单片机发送控制指令,每条“腿”的3个舵机“腿蹬”脚踏板的一周被分为20个位置点,通过周期性顺序发送每个位置点实现对多舵机的同时控制。6. A robot cycling device, characterized in that it adopts a 32-way steering gear control board, communicates with the STM32 single-chip microcomputer, and the STM32 single-chip microcomputer sends control commands, and the 3 steering gears of each "leg" "leg kick" the foot The cycle of the pedal is divided into 20 position points, and the simultaneous control of multiple servos is realized by sending each position point in a periodic order.
CN201810037262.3A 2018-01-15 2018-01-15 A kind of robot cycling device and control method Pending CN107932489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810037262.3A CN107932489A (en) 2018-01-15 2018-01-15 A kind of robot cycling device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810037262.3A CN107932489A (en) 2018-01-15 2018-01-15 A kind of robot cycling device and control method

Publications (1)

Publication Number Publication Date
CN107932489A true CN107932489A (en) 2018-04-20

Family

ID=61937673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810037262.3A Pending CN107932489A (en) 2018-01-15 2018-01-15 A kind of robot cycling device and control method

Country Status (1)

Country Link
CN (1) CN107932489A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631277A (en) * 2020-12-08 2021-04-09 中山大学 Balance control method and system for four-legged robot standing posture conversion
CN114088419A (en) * 2021-11-25 2022-02-25 江苏世通仪器检测服务有限公司 A kind of children's bicycle brake test equipment and test method thereof
CN119620598A (en) * 2025-02-14 2025-03-14 山东建筑大学 A fuzzy control method and system for the inclination angle of intelligent bicycle body based on variable universe

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561296A (en) * 2001-04-03 2005-01-05 达瑞尔·沃斯 Vehicle and method using center of gravity and mass shift control system
CN101296838A (en) * 2005-12-01 2008-10-29 株式会社村田制作所 Fall-prevention control device
CN101450255A (en) * 2007-11-29 2009-06-10 林信昌 System for simulating running of bicycle along one road
KR20140075034A (en) * 2012-12-07 2014-06-19 부산대학교 산학협력단 Balancing control apparatus for bicycle robot
CN104122098A (en) * 2014-07-31 2014-10-29 河海大学常州校区 Experimental system for functional testing of unmanned bicycles
CN105320129A (en) * 2015-10-22 2016-02-10 清华大学 Method for tracking and controlling locus of unmanned bicycle
CN106080942A (en) * 2016-08-10 2016-11-09 奎泽范(天津)科技发展有限公司 A kind of Self-balancing electronic bicycle drive train system
WO2017043964A1 (en) * 2015-09-11 2017-03-16 Theodorus Gerhardus Potma Bicycle with stabilizer
CN106802663A (en) * 2017-03-30 2017-06-06 桂林理工大学 Flying wheel control method and device
CN106919177A (en) * 2017-03-31 2017-07-04 深圳市靖洲科技有限公司 A kind of unmanned balance of bicycle control method based on rate gyroscope

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561296A (en) * 2001-04-03 2005-01-05 达瑞尔·沃斯 Vehicle and method using center of gravity and mass shift control system
CN101296838A (en) * 2005-12-01 2008-10-29 株式会社村田制作所 Fall-prevention control device
CN101450255A (en) * 2007-11-29 2009-06-10 林信昌 System for simulating running of bicycle along one road
KR20140075034A (en) * 2012-12-07 2014-06-19 부산대학교 산학협력단 Balancing control apparatus for bicycle robot
CN104122098A (en) * 2014-07-31 2014-10-29 河海大学常州校区 Experimental system for functional testing of unmanned bicycles
WO2017043964A1 (en) * 2015-09-11 2017-03-16 Theodorus Gerhardus Potma Bicycle with stabilizer
CN105320129A (en) * 2015-10-22 2016-02-10 清华大学 Method for tracking and controlling locus of unmanned bicycle
CN106080942A (en) * 2016-08-10 2016-11-09 奎泽范(天津)科技发展有限公司 A kind of Self-balancing electronic bicycle drive train system
CN106802663A (en) * 2017-03-30 2017-06-06 桂林理工大学 Flying wheel control method and device
CN106919177A (en) * 2017-03-31 2017-07-04 深圳市靖洲科技有限公司 A kind of unmanned balance of bicycle control method based on rate gyroscope

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631277A (en) * 2020-12-08 2021-04-09 中山大学 Balance control method and system for four-legged robot standing posture conversion
CN114088419A (en) * 2021-11-25 2022-02-25 江苏世通仪器检测服务有限公司 A kind of children's bicycle brake test equipment and test method thereof
CN119620598A (en) * 2025-02-14 2025-03-14 山东建筑大学 A fuzzy control method and system for the inclination angle of intelligent bicycle body based on variable universe

Similar Documents

Publication Publication Date Title
Chen et al. Towards hybrid gait obstacle avoidance for a six wheel-legged robot with payload transportation
CN105320129B (en) A kind of method of unmanned bicycle Trajectory Tracking Control
CN102815357B (en) Self-balancing manned solowheel based on inertia balance wheel
CN102079348A (en) Self-balance manned monocycle system and control method thereof
CN107932489A (en) A kind of robot cycling device and control method
Zhao et al. Compliant motion control of wheel-legged humanoid robot on rough terrains
Yan et al. Whole-body kinematic and dynamic modeling for quadruped robot under different gaits and mechanism topologies
CN115061469A (en) Variable-wheelbase composite motion platform, intelligent unmanned system and motion control method thereof
Bin et al. The kinematics model of a two-wheeled self-balancing autonomous mobile robot and its simulation
CN202257212U (en) Humanoid robot control system
Gim et al. Ringbot: Monocycle robot with legs
CN203306137U (en) Wheel-leg robot
CN118348782B (en) T-S fuzzy sliding mode balance-based control method and system for double-inertia balance wheel monocycle
Xiong et al. Static balancing of robotic bicycle through nonlinear modeling and control
Okada et al. Motion analysis with experimental verification of the hybrid robot PEOPLER-II for reversible switch between walk and roll on demand
WO2025049602A1 (en) A bipedal robot for dynamic and robust location in diverse environments
Tsai et al. Adaptive nonlinear control using RBFNN for an electric unicycle
Li et al. 2d mapping of mobile robot based on micro-ros
Lin et al. Nonlinear adaptive sliding-mode control design for two-wheeled human transportation vehicle
CN116901026A (en) Four-wheel foot robot, four-wheel foot robot motion control method and four-wheel foot robot motion control system
Lu et al. Research on a new-style under-actuated omnidirectional mobile robot based on special coupling drive system
CN103373407B (en) The intelligent switch method of wheel robot leg and wheel leg
CN107485540B (en) Energy injection system for intelligent walking stick
Qian et al. Dynamic balance control of two-wheeled self-balancing pendulum robot based on adaptive machine learning
Zhang et al. Design of agv chassis motion control system based on mworks

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180420

WD01 Invention patent application deemed withdrawn after publication