[go: up one dir, main page]

CN107600267B - A two-wheel monorail vehicle and its balancing control method - Google Patents

A two-wheel monorail vehicle and its balancing control method Download PDF

Info

Publication number
CN107600267B
CN107600267B CN201710810932.6A CN201710810932A CN107600267B CN 107600267 B CN107600267 B CN 107600267B CN 201710810932 A CN201710810932 A CN 201710810932A CN 107600267 B CN107600267 B CN 107600267B
Authority
CN
China
Prior art keywords
vehicle
motor
wheel
driving
motor drive
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
Application number
CN201710810932.6A
Other languages
Chinese (zh)
Other versions
CN107600267A (en
Inventor
王峰
王裕
翁一航
梁鸿泽
方忠桂
曾昭恒
李诗语
杨春媚
刘怡俊
刘立程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of 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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201710810932.6A priority Critical patent/CN107600267B/en
Publication of CN107600267A publication Critical patent/CN107600267A/en
Priority to PCT/CN2018/081275 priority patent/WO2019047509A1/en
Application granted granted Critical
Publication of CN107600267B publication Critical patent/CN107600267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62KCYCLES; CYCLE FRAMES; CYCLE STEERING DEVICES; RIDER-OPERATED TERMINAL CONTROLS SPECIALLY ADAPTED FOR CYCLES; CYCLE AXLE SUSPENSIONS; CYCLE SIDE-CARS, FORECARS, OR THE LIKE
    • B62K11/00Motorcycles, engine-assisted cycles or motor scooters with one or two wheels

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

本发明提供了一种二轮单轨车辆及其平衡的控制方法,本发明中嵌入式电脑根据所述行驶数据和行驶目标数据,计算并输出协同的电机驱动信号后,所述电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。这种方法不对车辆的状态进行限定,即车辆无论是处于停止状态,行驶状态,或者是停车状态和行驶状态之间的相互切换状态时,均能够保证车辆动态平衡行驶,解决了现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡的问题。

The present invention provides a two-wheeled monorail vehicle and its balance control method. In the present invention, the embedded computer calculates and outputs the coordinated motor drive signal according to the driving data and the driving target data, and the motor drive subsystem according to Each signal in the coordinated motor drive signals controls the torque output of the corresponding motor, so that the two-wheeled monorail vehicle can achieve dynamic balance and plan to travel according to the travel target data. This method does not limit the state of the vehicle, that is, whether the vehicle is in a stopped state, a driving state, or a mutual switching state between a parking state and a driving state, it can ensure that the vehicle is dynamically balanced and drives, which solves the existing automatic The two-wheeled monorail vehicle that controls the balance cannot automatically maintain the dynamic balance when the vehicle is from the parking state to the driving state or from the driving state to the parking state.

Description

一种二轮单轨车辆及其平衡的控制方法A two-wheel monorail vehicle and its balancing control method

技术领域technical field

本发明涉及二轮单轨车辆控制领域,更具体的说,涉及一种二轮单轨车辆及其平衡的控制方法。The invention relates to the field of two-wheel monorail vehicle control, and more specifically, relates to a two-wheel monorail vehicle and a method for controlling the balance thereof.

背景技术Background technique

二轮单轨车辆,例如:电动自行车和摩托车,以高节能、低排放和低空间占用率,越来越受到用户的喜爱,进而二轮单轨车辆的使用率逐年上升。Two-wheel monorail vehicles, such as electric bicycles and motorcycles, are more and more popular with users due to their high energy saving, low emission and low space occupancy rate, and the utilization rate of two-wheel monorail vehicles is increasing year by year.

驾驶人在使用二轮单轨车辆时,为了保证二轮单轨车辆的动态平衡,提出了自动控制平衡的二轮单轨车辆,自动控制平衡的二轮单轨车辆上的控制器根据车辆上安装的传感器测量得到的车辆行驶数据和行驶目标数据,采用多体动力学模型和欠驱动系统控制方法,控制二轮单轨车辆的转弯电机和刹车驱动器,以达到二轮单轨车辆的动态平衡。When the driver is using the two-wheel monorail vehicle, in order to ensure the dynamic balance of the two-wheel monorail vehicle, a two-wheel monorail vehicle with automatic control balance is proposed. The controller on the two-wheel monorail vehicle with automatic control balance measures according to the sensor installed on the vehicle Based on the obtained vehicle driving data and driving target data, the multibody dynamics model and the underactuated system control method are used to control the turning motor and brake driver of the two-wheel monorail vehicle to achieve the dynamic balance of the two-wheel monorail vehicle.

自动控制平衡的二轮单轨车辆中的转弯电机只有在非零速度的情况下才能够调节车身重心和车轮支撑点的相对位置,所以现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡。The turning motor in the two-wheeled monorail vehicle with automatic control balance can only adjust the relative position of the body center of gravity and the wheel support point under the condition of non-zero speed, so the existing two-wheel monorail vehicle with automatic control balance, when the vehicle stops The dynamic balance cannot be maintained automatically when changing from the driving state to the driving state or from the driving state to the parking state.

发明内容Contents of the invention

有鉴于此,本发明提供一种二轮单轨车辆及其平衡的控制方法,以解决现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡的问题。In view of this, the present invention provides a two-wheeled monorail vehicle and its balance control method to solve the problem of the existing two-wheeled monorail vehicle with automatic balance control, when the vehicle is from a parking state to a driving state or from a driving state to a parking state. , the problem of dynamic balance cannot be maintained automatically.

为解决上述技术问题,本发明采用了如下技术方案:In order to solve the problems of the technologies described above, the present invention adopts the following technical solutions:

一种二轮单轨车辆,包括传感器子系统、嵌入式电脑和电机驱动子系统;其中,所述电机驱动子系统包括转弯电机驱动器、前轮电机驱动器和安装在前轮和后轮上的刹车驱动器构成;A two-wheeled monorail vehicle, comprising a sensor subsystem, an embedded computer, and a motor drive subsystem; wherein, the motor drive subsystem includes a turning motor driver, a front wheel motor driver, and a brake driver installed on the front wheel and the rear wheel constitute;

所述传感器子系统,用于采集二轮单轨车辆的行驶数据和行驶目标数据;The sensor subsystem is used to collect driving data and driving target data of two-wheeled monorail vehicles;

所述嵌入式电脑,用于根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号;The embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and the driving target data;

所述电机驱动子系统,用于根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。The motor drive subsystem is used to control the torque output of the corresponding motor according to each of the coordinated motor drive signals, so that the two-wheeled monorail vehicle can achieve dynamic balance and plan to travel according to the travel target data.

优选地,所述嵌入式电脑用于根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Preferably, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and the driving target data, it is specifically used for:

根据所述行驶数据和所述行驶目标数据,基于非线性动力学模型和非线性控制模型,计算并输出协同的电机驱动信号。According to the driving data and the driving target data, based on a nonlinear dynamic model and a nonlinear control model, a coordinated motor driving signal is calculated and output.

优选地,所述嵌入式电脑用于根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Preferably, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and the driving target data, it is specifically used for:

根据所述行驶目标数据,计算得到驾驶人的意愿路径;其中,所述行驶目标数据包括驾驶人输入的方向盘信息、刹车踏板信息和油门踏板信息;According to the driving target data, the driver's desired path is calculated; wherein, the driving target data includes steering wheel information, brake pedal information and accelerator pedal information input by the driver;

根据所述传感器子系统采集的行驶数据、以及所述意愿路径,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving data collected by the sensor subsystem and the desired path, control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

优选地,所述嵌入式电脑用于根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Preferably, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and the driving target data, it is specifically used for:

根据所述行驶目标数据以及所述传感器子系统采集的行驶数据,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving target data and the driving data collected by the sensor subsystem, control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

优选地,所述电机驱动子系统用于根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出时,具体用于:Preferably, when the motor drive subsystem is used to control the torque output of the corresponding motor according to each of the coordinated motor drive signals, it is specifically used for:

所述转弯电机驱动器根据所述协同的电机驱动信号中的转弯驱动信号,控制转弯电机的力矩输出;The turning motor driver controls the torque output of the turning motor according to the turning driving signal in the coordinated motor driving signal;

所述前轮电机驱动器根据所述协同的电机驱动信号中的前轮驱动信号,控制前轮驱动电机的力矩输出;The front wheel motor driver controls the torque output of the front wheel drive motor according to the front wheel drive signal in the coordinated motor drive signal;

两个所述刹车驱动器,用于根据所述协同的电机驱动信号中的刹车驱动信号,控制两个刹车电机的力矩输出。The two brake drivers are used to control the torque output of the two brake motors according to the brake drive signal in the coordinated motor drive signal.

一种二轮单轨车辆平衡的控制方法,应用于二轮单轨车辆,包括:A method for controlling the balance of a two-wheel monorail vehicle, applied to a two-wheel monorail vehicle, comprising:

传感器子系统采集二轮单轨车辆的行驶数据和行驶目标数据;The sensor subsystem collects the driving data and driving target data of the two-wheeled monorail vehicle;

嵌入式电脑根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号;The embedded computer calculates and outputs a coordinated motor drive signal according to the driving data and the driving target data;

电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。The motor drive subsystem controls the torque output of the corresponding motor according to each of the coordinated motor drive signals, so that the two-wheeled monorail vehicle can achieve dynamic balance and plan to drive according to the driving target data.

优选地,所述嵌入式电脑根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号,包括:Preferably, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and the driving target data, including:

根据所述行驶数据和所述行驶目标数据,基于非线性动力学模型和非线性控制模型,计算并输出协同的电机驱动信号。According to the driving data and the driving target data, based on a nonlinear dynamic model and a nonlinear control model, a coordinated motor driving signal is calculated and output.

优选地,所述嵌入式电脑根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号,包括:Preferably, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and the driving target data, including:

根据所述行驶目标数据,计算得到驾驶人的意愿路径;其中,所述行驶目标数据包括驾驶人输入的方向盘信息、刹车踏板信息和油门踏板信息;According to the driving target data, the driver's desired path is calculated; wherein, the driving target data includes steering wheel information, brake pedal information and accelerator pedal information input by the driver;

根据所述传感器子系统采集的行驶数据、以及所述意愿路径,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving data collected by the sensor subsystem and the desired path, control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

优选地,所述嵌入式电脑根据所述行驶数据和所述行驶目标数据,计算并输出协同的电机驱动信号,包括:Preferably, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and the driving target data, including:

根据所述行驶目标数据以及所述传感器子系统采集的行驶数据,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving target data and the driving data collected by the sensor subsystem, control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

优选地,所述电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,包括:Preferably, the motor drive subsystem controls the torque output of the corresponding motor according to each of the coordinated motor drive signals, including:

所述转弯电机驱动器根据所述协同的电机驱动信号中的转弯驱动信号,控制转弯电机的力矩输出;The turning motor driver controls the torque output of the turning motor according to the turning driving signal in the coordinated motor driving signal;

所述前轮电机驱动器根据所述协同的电机驱动信号中的前轮驱动信号,控制前轮驱动电机的力矩输出;The front wheel motor driver controls the torque output of the front wheel drive motor according to the front wheel drive signal in the coordinated motor drive signal;

两个所述刹车驱动器,用于根据所述协同的电机驱动信号中的刹车驱动信号,控制两个刹车电机的力矩输出。The two brake drivers are used to control the torque output of the two brake motors according to the brake drive signal in the coordinated motor drive signal.

相较于现有技术,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明提供了一种二轮单轨车辆及其平衡的控制方法,本发明中嵌入式电脑根据所述行驶数据和行驶目标数据,计算并输出协同的电机驱动信号后,所述电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。这种方法不对车辆的状态进行限定,即车辆无论是处于停止状态,行驶状态,或者是停车状态和行驶状态之间的相互切换状态时,均能够保证车辆动态平衡行驶,解决了现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡的问题。The present invention provides a two-wheeled monorail vehicle and its balance control method. In the present invention, the embedded computer calculates and outputs the coordinated motor drive signal according to the driving data and the driving target data, and the motor drive subsystem according to Each signal in the coordinated motor drive signals controls the torque output of the corresponding motor, so that the two-wheeled monorail vehicle can achieve dynamic balance and plan to travel according to the travel target data. This method does not limit the state of the vehicle, that is, whether the vehicle is in a stopped state, a driving state, or a mutual switching state between a parking state and a driving state, it can ensure that the vehicle is dynamically balanced and drives, which solves the existing automatic The two-wheeled monorail vehicle that controls the balance cannot automatically maintain the dynamic balance when the vehicle is from the parking state to the driving state or from the driving state to the parking state.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明提供的一种二轮单轨车辆的结构示意图;Fig. 1 is the structural representation of a kind of two-wheeled monorail vehicle provided by the invention;

图2为本发明提供的一种二轮单轨车辆的部分结构示意图;Fig. 2 is the partial structural representation of a kind of two-wheeled monorail vehicle provided by the present invention;

图3为本发明提供的一种嵌入式电脑执行的方法的方法流程图;Fig. 3 is a method flowchart of a method performed by an embedded computer provided by the present invention;

图4为本发明提供的一种二轮单轨车辆平衡的控制方法的方法流程图。Fig. 4 is a flow chart of a method for controlling the balance of a two-wheeled monorail vehicle provided by the present invention.

具体实施方式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.

本发明实施例提供了一种二轮单轨车辆,其中,二轮单轨车辆包括但不限于自行车、摩托车等两个车轮的车辆。为了本领域的技术人员能够更加清楚的了解二轮单轨车辆的结构,现结合图1对一种二轮单轨车辆的结构进行介绍。需要说明的是,二轮单轨车辆的结构并不仅限于图1中的结构,还可以是其他的结构。另外,图1中后轮也安装了后轮驱动电机,后轮也可以不安装后轮驱动电机。An embodiment of the present invention provides a two-wheel monorail vehicle, wherein the two-wheel monorail vehicle includes but not limited to vehicles with two wheels such as bicycles and motorcycles. In order for those skilled in the art to understand the structure of a two-wheel monorail vehicle more clearly, the structure of a two-wheel monorail vehicle is now introduced with reference to FIG. 1 . It should be noted that the structure of the two-wheeled monorail vehicle is not limited to the structure shown in FIG. 1 , but can also be other structures. In addition, the rear wheel in Fig. 1 is also equipped with a rear wheel drive motor, and the rear wheel may not be equipped with a rear wheel drive motor.

图1中,二轮单轨车辆包括:In Figure 1, two-wheeled monorail vehicles include:

带前轮驱动电机和刹车驱动器的前轮1、电子显示单元2、转弯电机3、电子方向盘4、单轨车辆车身5、无线通信天线6、嵌入式电脑7、惯性传感器8、导航模块9、通信模块10、后轮编码器11、带后轮驱动电机和刹车驱动器的后轮12和前轮编码器13。除了上述部件外,车辆还包括电子加速踏板,其中,电子加速踏板未在图中画出。Front wheel with front wheel drive motor and brake driver 1, electronic display unit 2, steering motor 3, electronic steering wheel 4, monorail vehicle body 5, wireless communication antenna 6, embedded computer 7, inertial sensor 8, navigation module 9, communication Module 10, rear wheel encoder 11, rear wheel 12 and front wheel encoder 13 with rear wheel drive motor and brake driver. In addition to the above components, the vehicle also includes an electronic accelerator pedal, wherein the electronic accelerator pedal is not shown in the figure.

其中,前轮1、电子方向盘4、单轨车辆车身5和后轮12组成了车身的整体架构。电子方向盘4用于人工控制车辆行驶方向,前轮驱动电机和后轮驱动电机用于驱动车辆行驶,刹车驱动器用于在刹车时,使车辆尽快停止,转弯电机3用于在车辆转弯时,驱动车辆转弯。Wherein, the front wheel 1, the electronic steering wheel 4, the monorail vehicle body 5 and the rear wheel 12 form the overall structure of the vehicle body. The electronic steering wheel 4 is used to manually control the driving direction of the vehicle, the front wheel drive motor and the rear wheel drive motor are used to drive the vehicle, the brake driver is used to stop the vehicle as soon as possible when braking, and the turning motor 3 is used to drive the vehicle when turning. Vehicle turns.

电子显示单元2包括LCD显示屏、LED图像和LED点阵显示,主要用于显示车身滚动角、转弯角等行驶数据。无线通信天线6用于发射或接收电磁波。The electronic display unit 2 includes an LCD display screen, an LED image and an LED dot matrix display, and is mainly used for displaying driving data such as vehicle body rolling angle and turning angle. The wireless communication antenna 6 is used to transmit or receive electromagnetic waves.

惯性传感器8用于测量车身角速度向量和车身加速度向量,前轮编码器13用于测量前轮转弯角、前轮转动角、前轮转弯角速度和前轮转动角速度。后轮编码器11用于测量后轮转弯角、后轮转动角、后轮转弯角速度和后轮转动角速度。The inertial sensor 8 is used to measure the vehicle body angular velocity vector and the vehicle body acceleration vector, and the front wheel encoder 13 is used to measure the front wheel turning angle, front wheel turning angle, front wheel turning angular velocity and front wheel turning angular velocity. Rear wheel encoder 11 is used for measuring rear wheel turning angle, rear wheel turning angle, rear wheel turning angular velocity and rear wheel turning angular velocity.

导航模块9用于实现车辆路径的导航,其中,导航模块9可以是GPS模块。通信模块10是用来与外接设备进行通信的模块,外接设备可以是服务器等设备。The navigation module 9 is used to realize the navigation of the vehicle path, wherein the navigation module 9 may be a GPS module. The communication module 10 is a module for communicating with an external device, and the external device may be a server or the like.

嵌入式电脑7是实现车辆平衡的关键部件,嵌入式电脑7输出控制信号给转弯电机和前轮驱动电机,在行驶过程中,嵌入式电脑7连续调节转弯电机的转动方向和速度以达到车辆的动态平衡;在停止状态下,嵌入式电脑7指令转弯电机使得车辆固定于大转弯角,然后持续控制前轮驱动电机力矩的方向和力矩,达到准静态平衡。The embedded computer 7 is the key component to realize the balance of the vehicle. The embedded computer 7 outputs control signals to the steering motor and the front wheel drive motor. During driving, the embedded computer 7 continuously adjusts the rotation direction and speed of the steering motor to achieve the vehicle's Dynamic balance: In the stopped state, the embedded computer 7 instructs the turning motor to fix the vehicle at a large turning angle, and then continuously controls the direction and torque of the front wheel drive motor to achieve quasi-static balance.

需要说明的是,二轮单轨车辆可以有几种驱动方式。最常见的二轮单轨车辆是以后轮驱动的。以汽油发动机为动力的车辆使用动力链条或者转动杆把动力带给后轮,驱动车辆向前运动。电动的单轨车辆通常使用轮毂式电机驱动车辆后轮。在崎岖山道行驶的单轨车辆也可以采取双轮驱动,减轻后轮驱动车辆容易打滑失控的概率。使用汽油发动机的双轮驱动单轨车辆机械结构比较复杂,它需要将驱动动力输送到带转弯制的前轮上。通常的方法有齿轮和链条的力学方法和液压系统方法。电动的单轨车辆可以更加简单二轮驱动方法:使用前后轮两个轮毂电机,驱动前后车辆。单轨车辆也可以只使用前轮来驱动。虽然本实施例中前轮1和后轮2均带有驱动电机,属于双轮驱动方式,但是本发明提供的控制方法可以适用于控制前轮驱动、后轮驱动和双轮驱动这三种驱动模式。It should be noted that the two-wheeled monorail vehicle can have several driving modes. The most common two-wheeled monorail vehicles are rear-wheel drive. Gasoline-powered vehicles use a power chain, or turning rod, to bring power to the rear wheels, which propel the vehicle forward. Electric monorail vehicles typically use a hub-mounted motor to drive the rear wheels of the vehicle. Monorail vehicles running on rough mountain roads can also adopt two-wheel drive to reduce the probability of slipping and losing control of rear-wheel drive vehicles. The mechanical structure of a two-wheel drive monorail vehicle using a gasoline engine is relatively complicated, and it needs to transmit the driving power to the front wheels with a turning mechanism. The usual methods are the mechanical method of gears and chains and the hydraulic system method. Electric monorail vehicles can be simpler two-wheel drive method: use two hub motors on the front and rear wheels to drive the front and rear vehicles. Monorail vehicles can also be driven using only the front wheels. Although the front wheel 1 and the rear wheel 2 in this embodiment are equipped with drive motors, which belong to the two-wheel drive mode, the control method provided by the present invention can be applied to control the three driving modes of front-wheel drive, rear-wheel drive and two-wheel drive. model.

此外,单轨车辆通常是利用前轮转向的。单轨车辆也可以是后轮转向。本控制方法同样适用于前轮或者后轮转向的自动平衡的单轨车辆控制中。In addition, monorail vehicles are usually steered using the front wheels. Monorail vehicles can also be rear wheel steered. The control method is also applicable to the control of the self-balancing monorail vehicle with front wheel or rear wheel steering.

本实施例中转弯电机3安装在了前轮上,此外,转弯电机3也可以安装在后轮上,但是需要注意的是,当驱动电机的数量为一个时,优选地,将转弯电机和驱动电机安装在一个轮上,但是不将转弯电机和驱动电机安装在一个轮上,也能够实现本发明中的控制方法,但是车辆的整体性能不如将转弯电机和驱动电机安装在一个轮上好。In this embodiment, the turning motor 3 is installed on the front wheel. In addition, the turning motor 3 can also be installed on the rear wheel, but it should be noted that when the number of driving motors is one, preferably, the turning motor and the driving The motor is installed on one wheel, but the control method in the present invention can also be realized without installing the turning motor and the driving motor on one wheel, but the overall performance of the vehicle is not as good as installing the turning motor and the driving motor on one wheel.

二轮单轨车辆包括电动自行车和电动摩托车等。电动自行车和电动摩托车通常是由车身,可以转向的前叉,前轮和后轮组成。车辆是由安装在后轮或者前轮上的无刷电机驱动。车辆转弯是由驾驶人转动车把,带动前叉和前轮,改变前轮的前进方向。电脑控制的自动平衡二轮单轨车辆利用传感器,包括惯性传感器和光编码器等,测量二轮单轨车辆的行驶数据,结合驾驶人或者事先确定的道路轨迹,再利用非线性动力学模型和非线性控制模型,控制转弯电机和前轮驱动电机,带动前叉和前轮,达到车辆的动态平衡。Two-wheeled monorail vehicles include electric bicycles and electric motorcycles. Electric bicycles and electric motorcycles usually consist of a body, a front fork that can steer, a front wheel, and a rear wheel. The vehicle is powered by a brushless motor mounted on the rear or front wheels. The turning of the vehicle is by the driver turning the handlebar, driving the front fork and the front wheel, and changing the forward direction of the front wheel. The computer-controlled self-balancing two-wheel monorail vehicle uses sensors, including inertial sensors and optical encoders, to measure the driving data of the two-wheel monorail vehicle, combined with the driver or the road trajectory determined in advance, and then uses the nonlinear dynamic model and nonlinear control The model controls the steering motor and the front wheel drive motor to drive the front fork and front wheel to achieve the dynamic balance of the vehicle.

参照图2,本发明提供的二轮单轨车辆包括传感器子系统11、嵌入式电脑12和电机驱动子系统13。传感器子系统11、嵌入式电脑12和电机驱动子系统13组成二轮单轨车辆平衡的控制系统。Referring to FIG. 2 , the two-wheeled monorail vehicle provided by the present invention includes a sensor subsystem 11 , an embedded computer 12 and a motor drive subsystem 13 . The sensor subsystem 11, the embedded computer 12 and the motor drive subsystem 13 form a control system for the balance of the two-wheeled monorail vehicle.

其中,电机驱动子系统13包括转弯电机驱动器、前轮电机驱动器和安装在前轮和后轮上的刹车驱动器构成。其中,转弯电机驱动器安装在前轮。Wherein, the motor driving subsystem 13 includes a turning motor driver, a front wheel motor driver and a brake driver installed on the front wheel and the rear wheel. Among them, the steering motor driver is installed on the front wheel.

传感器子系统11包括导航模块、前轮编码器、转弯光编码器和惯性传感器。The sensor subsystem 11 includes a navigation module, a front wheel encoder, a turning light encoder and an inertial sensor.

嵌入式电脑12为安装有控制软件的电脑,控制软件是基于非线性动力学和非线性控制方法的软件。The embedded computer 12 is a computer equipped with control software, which is based on nonlinear dynamics and nonlinear control methods.

具体的,传感器子系统11,用于采集二轮单轨车辆的行驶数据和行驶目标数据;Specifically, the sensor subsystem 11 is used to collect the driving data and driving target data of the two-wheeled monorail vehicle;

嵌入式电脑,用于根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号;An embedded computer is used to calculate and output coordinated motor drive signals according to driving data and driving target data;

电机驱动子系统,用于根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。The motor drive subsystem is used to control the torque output of the corresponding motor according to each of the coordinated motor drive signals, so that the two-wheeled monorail vehicle can achieve dynamic balance and plan to drive according to the driving target data.

具体的,行驶数据包括:Specifically, the driving data includes:

车辆位置信息、车辆速度、前轮转弯角、前轮转动角、前轮转弯角速度、前轮转动角速度、车轮转弯角和姿态角信息。Vehicle position information, vehicle speed, front wheel turning angle, front wheel turning angle, front wheel turning angular velocity, front wheel turning angular velocity, wheel turning angle and attitude angle information.

其中,车辆速度是由车辆上安装的导航模块测量得到。导航模块可以是GPS模块,也可以是其他的模块。Wherein, the vehicle speed is measured by a navigation module installed on the vehicle. The navigation module can be a GPS module or other modules.

前轮转弯角、前轮转动角、前轮转弯角速度和前轮转动角速度是由前轮编码器测量得到,前轮编码器可以是前轮光编码器。需要说明的是,后轮也安装有后轮编码器,设置后轮编码器的作用是测量得到后轮转弯角、后轮转动角、后轮转弯角速度和后轮转动角速度,后轮编码器测量的数据是为了验证前轮编码器测量得到的数据是否正确,以免前轮编码器出现故障时,测量数据出错。The front wheel turning angle, the front wheel turning angle, the front wheel turning angular velocity and the front wheel turning angular velocity are obtained by measuring the front wheel encoder, and the front wheel encoder may be a front wheel optical encoder. It should be noted that the rear wheel is also equipped with a rear wheel encoder. The function of setting the rear wheel encoder is to measure the rear wheel turning angle, rear wheel turning angle, rear wheel turning angular velocity and rear wheel turning angular velocity. The rear wheel encoder measures The data is to verify whether the data measured by the front wheel encoder is correct, so as to avoid errors in the measurement data when the front wheel encoder fails.

车轮转弯角是由转弯光编码器测量得到,转弯光编码器还能够测量得到车轮转弯角速度。The turning angle of the wheel is measured by the turning optical encoder, and the turning optical encoder can also measure the turning angular velocity of the wheel.

姿态角信息是指车辆的偏航角、车身滚动角和俯仰角。具体的,惯性传感器测量车身角速度向量和车身加速度向量,车身角速度向量包括偏航角速度分量、滚动角速度分量和俯仰角速度分量,车身加速度分量包括偏航角加速度分量、滚动角加速度分量和俯仰角加速度分量,然后根据车身角速度向量和车身加速度向量计算得到车辆的偏航角、滚动角和俯仰角。The attitude angle information refers to the yaw angle, body roll angle and pitch angle of the vehicle. Specifically, the inertial sensor measures the vehicle body angular velocity vector and the vehicle body acceleration vector, the vehicle body angular velocity vector includes a yaw angular velocity component, a rolling angular velocity component and a pitch angular velocity component, and the vehicle body acceleration component includes a yaw angular acceleration component, a rolling angular acceleration component and a pitch angular acceleration component , and then calculate the yaw angle, roll angle and pitch angle of the vehicle according to the vehicle body angular velocity vector and the vehicle body acceleration vector.

车辆位置信息是由导航模块测量得到的位置信息以及根据车身角速度向量和车身加速度向量计算得到的位置信息,进行综合得到的信息。The vehicle position information is obtained by combining the position information measured by the navigation module and the position information calculated according to the vehicle body angular velocity vector and the vehicle body acceleration vector.

可选的,在本实施例的基础上,嵌入式电脑用于根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Optionally, on the basis of this embodiment, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and driving target data, it is specifically used for:

根据行驶数据和行驶目标数据,基于非线性动力学模型和非线性控制模型,计算并输出协同的电机驱动信号。According to the driving data and the driving target data, based on the nonlinear dynamic model and the nonlinear control model, the coordinated motor drive signal is calculated and output.

其中,协同的电机驱动信号中包括前轮驱动信号、刹车驱动信号和转弯驱动信号。Wherein, the coordinated motor driving signal includes a front wheel driving signal, a braking driving signal and a turning driving signal.

可选的,在本实施例的基础上,电机驱动子系统用于根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出时,具体用于:Optionally, on the basis of this embodiment, when the motor drive subsystem is used to control the torque output of the corresponding motor according to each of the coordinated motor drive signals, it is specifically used for:

转弯电机驱动器根据协同的电机驱动信号中的转弯驱动信号,控制转弯电机的力矩输出;The turning motor driver controls the torque output of the turning motor according to the turning driving signal in the coordinated motor driving signal;

前轮电机驱动器根据协同的电机驱动信号中的前轮驱动信号,控制前轮驱动电机的力矩输出;The front wheel motor driver controls the torque output of the front wheel drive motor according to the front wheel drive signal in the coordinated motor drive signal;

两个刹车驱动器,用于根据协同的电机驱动信号中的刹车驱动信号,控制两个刹车电机的力矩输出。The two brake drivers are used to control the torque output of the two brake motors according to the brake drive signal in the coordinated motor drive signal.

本实施例中,嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号后,电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。这种方法不对车辆的状态进行限定,即车辆无论是处于停止状态,行驶状态,或者是停车状态和行驶状态之间的相互切换状态时,均能够保证车辆动态平衡行驶,解决了现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡的问题。In this embodiment, after the embedded computer calculates and outputs the coordinated motor drive signal according to the driving data and the driving target data, the motor drive subsystem controls the torque output of the corresponding motor according to each signal in the coordinated motor drive signal, so that The two-wheel monorail vehicle achieves dynamic balance and plans to drive according to the driving target data. This method does not limit the state of the vehicle, that is, whether the vehicle is in a stopped state, a driving state, or a mutual switching state between a parking state and a driving state, it can ensure that the vehicle is dynamically balanced and drives, which solves the existing automatic The two-wheeled monorail vehicle that controls the balance cannot automatically maintain the dynamic balance when the vehicle is from the parking state to the driving state or from the driving state to the parking state.

为了本领域的技术人员能够进一步理解非线性动力学模型和非线性控制模型,现对非线性动力学模型和非线性控制模型进行解释说明。In order for those skilled in the art to further understand the nonlinear dynamic model and the nonlinear control model, the nonlinear dynamic model and the nonlinear control model are now explained.

具体的,自行车和忽略了前叉弹簧,后轮减震的摩托车满足三个自由度的非线性欠驱动机械手方程:Specifically, bicycles and motorcycles ignoring the front fork springs and rear shock absorbers satisfy the nonlinear underactuated manipulator equation with three degrees of freedom:

其中,q为车辆状态矢量,M是3x3质量矩阵,C是3x3科里奥利/离心力项,G是重力项,K是力矩耦合矩阵,τ是前轮驱动电机、刹车电机和转弯电机的力矩矢量。它们的表达式为:where q is the vehicle state vector, M is the 3x3 mass matrix, C is the 3x3 Coriolis/centrifugal force term, G is the gravity term, K is the moment coupling matrix, τ is the torque of the front wheel drive motor, brake motor and steering motor vector. Their expressions are:

车辆状态由q=(q1,q2,q3)T代表,它们分别是车身滚动角,车轮转弯角和前轮转动角。矩阵M,C,G,K的矩阵元是车身滚动角和车轮转弯角的已知解析函数。它们还和车辆的几何和动力学参数有关,τ=(τ1,τ2,τ3)T分别为前轮驱动和刹车力矩、转弯电机力矩、后轮驱动和刹车力矩。The vehicle state is represented by q=(q 1 , q 2 , q 3 ) T , which are body roll angle, wheel turning angle and front wheel turning angle, respectively. The matrix elements of the matrices M, C, G, K are known analytical functions of the body roll angle and the wheel turning angle. They are also related to the geometric and dynamic parameters of the vehicle, τ=(τ 1 , τ 2 , τ 3 ) T are front wheel driving and braking torque, turning motor torque, rear wheel driving and braking torque, respectively.

由于K的矩阵的第一行为0,力矩τ对车身滚动角方程没有任何影响,所以车身滚动角是欠驱动的。非线性动力学方程(1)适用于任何前轮转向,前轮或者后轮驱动,以及前后轮同时驱动的二轮单轨车辆。它同时实用于处于行驶或者处于停车状态的车辆。因为前轮的角速度可以是正的或者是负的,它也没有限制车辆是在前进或者是后退。二轮单轨车辆是一个欠驱动系统。车辆的三个自由度中,只有车轮转弯角和前轮转动角两个自由度是主动控制的。车身滚动角,也叫车身倾斜角,是没有驱动机制的。非线性欠驱动系统控制方法有很多,最主要的非线性最优控制(Nonlinear Optimal Control)、部分反馈线性化(partial feedback linearization)、神经网络控制(Neural Network Control),基于能量的控制(Energy Based Control)和滑模控制(Sliding Mode Control)。大部分现代控制方法需要精确的车辆动力学建模。Since the first row of the K matrix is 0, the moment τ has no effect on the body roll angle equation, so the body roll angle is underactuated. The nonlinear dynamic equation (1) is applicable to any front-wheel steering, front-wheel or rear-wheel drive, and two-wheel monorail vehicles with both front and rear wheels. It is also applicable to vehicles that are driving or parked. Because the angular velocity of the front wheel It can be positive or negative, and it doesn't limit whether the vehicle is moving forward or backward. A two-wheeled monorail vehicle is an underactuated system. Among the three degrees of freedom of the vehicle, only two degrees of freedom, the wheel turning angle and the front wheel turning angle, are actively controlled. Body roll angle, also called body lean angle, has no driving mechanism. There are many control methods for nonlinear underactuated systems, the most important ones are nonlinear optimal control (Nonlinear Optimal Control), partial feedback linearization (partial feedback linearization), neural network control (Neural Network Control), energy-based control (Energy Based Control) and sliding mode control (Sliding Mode Control). Most modern control methods require accurate modeling of vehicle dynamics.

这里我们使用非线性最优控制来说明本发明的方法。非线性最优控制是上世纪60-70年代发展成熟的控制方法,最早用于火箭飞行控制。给出系统的花费函数(costfunction),非线性最优控制计算出最优控制量u*(t)和状态x*(t)随时间的推移,在满足非线性动力学方程(1)的约束下,使得花费函数最小:Here we use nonlinear optimal control to illustrate the method of the invention. Nonlinear optimal control is a mature control method developed in the 1960s and 1970s, and was first used in rocket flight control. Given the cost function of the system, nonlinear optimal control calculates the optimal control variable u*(t) and state x*(t) over time, when the constraints of nonlinear dynamic equation (1) are satisfied Below, the cost function is minimized:

其中,J为系统花销。x(t0)为车辆在起点位置时的状态,x(tf)为车辆在终点位置时的状态,t0为起点时间,tf为终点时间。其中,状态是指行驶数据。Among them, J is the system cost. x(t 0 ) is the state of the vehicle at the start position, x(t f ) is the state of the vehicle at the end position, t 0 is the start time, and t f is the end time. Here, the state refers to driving data.

并满足一阶动力学方程约束and satisfy the constraints of the first-order kinetic equation

路径约束path constraints

p[x(t),u(t),t]≥0, (7)p[x(t), u(t), t]≥0, (7)

其中,函数P代表路径约束函数。Among them, the function P represents the path constraint function.

和边条件约束and edge constraints

b[x(t0),t0,x(tf),tf=0. (8)b[x(t 0 ), t 0 , x(t f ), t f =0. (8)

其中,函数b代表边条件约束函数。Among them, the function b represents the boundary condition constraint function.

利用数值迭代方法,可以计算出非线性方程的解:最优控制量u*(t),就是本系统的前轮驱动和刹车力矩、转弯电机力矩、后轮驱动和刹车力矩。车辆状态x*(t),就是车辆位置,车身滚动角、车轮转弯角、前轮转动角分别随时间的函数:Using the numerical iteration method, the solution of the nonlinear equation can be calculated: the optimal control quantity u*(t) is the front wheel drive and brake torque, the steering motor torque, and the rear wheel drive and brake torque of the system. The vehicle state x*(t) is the function of the vehicle position, body roll angle, wheel turning angle, and front wheel turning angle over time:

u=u*(t) (9)u=u*(t) (9)

x=x*(t) (10)x=x*(t) (10)

目前高效率的数值方法有伪频谱方法(pseudospectrum)求解非线性最优控制。非线性最优控制的解和目前的车辆位置,车身滚动角、车轮转弯角、前轮转动角有关,也和车辆需要达到的位置、车身滚动角、车轮转弯角、前轮转动角有关。最优控制方法根据车辆的目前状态和用户的要求,计算出车辆的最优控制量(9)和车辆的最优状态(10)。这个过程叫前馈。它是没有反馈的。At present, the high-efficiency numerical method has the pseudospectrum method (pseudospectrum) to solve the nonlinear optimal control. The solution of nonlinear optimal control is related to the current vehicle position, body rolling angle, wheel turning angle, and front wheel turning angle, as well as the position that the vehicle needs to reach, body rolling angle, wheel turning angle, and front wheel turning angle. The optimal control method calculates the optimal control quantity (9) and the optimal state (10) of the vehicle according to the current state of the vehicle and the requirements of the user. This process is called feedforward. It is without feedback.

实际上车辆的建模误差、外部的扰动以及车辆参数的变化都会使得车辆偏移最优状态。本发明设计了线性反馈系统,消除误差和扰动,增加了系统的稳定性。假设在t时刻,车辆实际的状态为x(t),它与最优控制状态之差为dx:In fact, vehicle modeling errors, external disturbances, and changes in vehicle parameters will cause the vehicle to deviate from the optimal state. The invention designs a linear feedback system, eliminates errors and disturbances, and increases the stability of the system. Assuming that at time t, the actual state of the vehicle is x(t), the difference between it and the optimal control state is dx:

dx(t)=x(t)-x8(t). (11)dx(t)=x(t)-x 8 (t). (11)

通常车辆状态和最优控制的车辆状态差别很小,dx为小量、最优控制量修正du也是小量。可以证明dx和du满足线性二次型控制:Usually the difference between the vehicle state and the optimal control vehicle state is very small, dx is a small amount, and the optimal control amount correction du is also a small amount. It can be shown that dx and du satisfy linear quadratic control:

其中,Q、R为权重因子,为定值,S(f)为终点条件,如位置、车身滚动角、车轮转弯角、前轮转动角等。Among them, Q and R are weight factors, which are fixed values, and S( f ) is the terminal condition, such as position, body roll angle, wheel turning angle, front wheel turning angle, etc.

动力学方程约束也是在最优控制解附近的线性移展开:The dynamic equation constraint is also a linear shift expansion around the optimal control solution:

A、B矩阵为非线性动力学方程在最优解x8(t)附近的泰勒展开。最优反馈控制和车辆状态有关:A and B matrices are Taylor expansions of nonlinear dynamic equations near the optimal solution x 8 (t). Optimal feedback control is related to vehicle state:

du(t)=-K(t)·dx(t)du(t)=-K(t)·dx(t)

其中K矩阵为反馈矩阵,K(t)=R-1BTS(t),S(t)是微分黎卡提方程(differentialRiccati equation)的解:Where K matrix is the feedback matrix, K(t)=R -1 B T S(t), and S(t) is the solution of differential Riccati equation:

黎卡提方程是从未来解向当前时间,所以它的的初条件是在最终时间确定的:The Riccati equation is solved from the future to the current time, so its initial conditions are determined at the final time:

S(tf)=Sf (15)S(t f )=S f (15)

通过上述计算,就可以计算出最优控制量u*(t),就是本系统的前轮驱动和刹车力矩、转弯电机力矩和后轮驱动和刹车力矩,通过前轮驱动和刹车力矩、转弯电机力矩和后轮驱动和刹车力矩对车辆进行控制即可。Through the above calculation, the optimal control quantity u*(t) can be calculated, which is the front wheel driving and braking torque, turning motor torque and rear wheel driving and braking torque of the system. Through the front wheel driving and braking torque, turning motor Torque and rear wheel drive and braking torque can control the vehicle.

这样,控制系统可以拒绝扰动等偏差,使车辆系统稳定,同时预期达到用户指定的位置。In this way, the control system can reject deviations such as disturbances and stabilize the vehicle system while anticipating reaching the user-specified position.

本发明可以用来实现二轮单轨车辆的自动驾驶。也可以实现人工驾驶二轮单轨车辆。在自动驾驶模式下,车辆的轨迹是由导航模块,摄像头和通信模块决定的,其中,导航模块,摄像头和通信模块属于传感器子系统中的组成部分。而在人工驾驶模式下,车辆的轨迹则由驾驶人决定。驾驶人可以使用电子方向盘、电子刹车踏板和电子加速踏板输入期望的车辆行驶方向和速度,嵌入式电脑根据驾驶人的输入和传感器测量值,计算出车辆的轨迹和控制输出,控制驱动电机和转弯电机,在单轨车辆行驶和停止状态下,达到车辆的平衡。The invention can be used to realize the automatic driving of the two-wheel monorail vehicle. It is also possible to manually drive a two-wheeled monorail vehicle. In the automatic driving mode, the trajectory of the vehicle is determined by the navigation module, the camera and the communication module, among which the navigation module, the camera and the communication module belong to the components of the sensor subsystem. In manual driving mode, the trajectory of the vehicle is determined by the driver. The driver can use the electronic steering wheel, electronic brake pedal and electronic accelerator pedal to input the desired direction and speed of the vehicle. The embedded computer calculates the trajectory and control output of the vehicle based on the driver's input and sensor measurements, and controls the drive motor and turning. The motor achieves the balance of the vehicle when the monorail vehicle is running and stopped.

需要说明的是,本发明和目前常用的单轨车辆控制方法有本质的区别:It should be noted that there are essential differences between the present invention and the currently commonly used monorail vehicle control method:

现有技术的控制方法限定一些自由度、计算出一些控制信号。本发明使用动力学和现代控制方法,在不限制车辆的任何自由度情况下,计算出协同控制输出。本系统的控制信号u*(t)和du(t),同时具有前轮驱动电机和刹车的控制信号、也具有转弯电机的控制信号、后轮驱动电机和刹车的控制信号。这些信号同时共同作用的,使得车辆平衡稳定地达到用户需要的状态和目的地。The prior art control method defines some degrees of freedom and calculates some control signals. The present invention uses dynamics and modern control methods to calculate the cooperative control output without restricting any degrees of freedom of the vehicle. The control signals u*(t) and du(t) of this system have the control signals of the front wheel drive motor and brake, the control signal of the turning motor, and the control signal of the rear wheel drive motor and brake. These signals work together at the same time to make the vehicle balance and stably reach the state and destination required by the user.

可选的,在上述任一实施例的基础上,嵌入式电脑用于根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Optionally, on the basis of any of the above embodiments, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and driving target data, it is specifically used for:

S11、根据行驶目标数据,计算得到驾驶人的意愿路径;S11. Calculate and obtain the driver's desired route according to the driving target data;

其中,行驶目标数据包括驾驶人输入的方向盘信息、刹车踏板信息和油门踏板信息。Wherein, the driving target data includes steering wheel information, brake pedal information and accelerator pedal information input by the driver.

具体的,根据方向盘信息、刹车踏板信息和油门踏板信息,嵌入式电脑能够推测出车辆的驾驶人的意愿路径,即能够推测出用户的下一行驶位置。其中,意愿路径可以是下一10s所行驶的路径。Specifically, based on the steering wheel information, brake pedal information and accelerator pedal information, the embedded computer can infer the driver's desired path of the vehicle, that is, the user's next driving position can be inferred. Wherein, the desired route may be the route traveled in the next 10s.

本实施例适用于人工驾驶二轮单轨车辆,人工驾驶时,人工会控制电子刹车踏板、电子加速踏板和电子方向盘。嵌入式电脑能够接收到人工输入的电子刹车踏板的深度值、电子加速踏板的深度值和电子方向盘的转动值。This embodiment is suitable for manual driving of two-wheeled monorail vehicles. During manual driving, the manual will control the electronic brake pedal, electronic accelerator pedal and electronic steering wheel. The embedded computer can receive the manually input depth value of the electronic brake pedal, the depth value of the electronic accelerator pedal and the rotation value of the electronic steering wheel.

S12、根据传感器子系统采集的行驶数据、以及意愿路径,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。S12. According to the driving data collected by the sensor subsystem and the desired path, calculate and output the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers.

具体的,将行驶数据、以及意愿路径代入到非线性动力学模型和非线性控制模型,即可计算出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号,此外,还可以计算到车身滚动角、车身偏航角、前轮转弯角的随时间变化的曲线,其中,转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号也为随时间变化的曲线。Specifically, by substituting the driving data and the desired path into the nonlinear dynamic model and the nonlinear control model, the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers can be calculated. In addition, the The time-varying curves of the body roll angle, the body yaw angle, and the front-wheel steering angle, wherein the control signals of the steering motor driver, the front-wheel motor driver and the two brake drivers are also time-varying curves.

其中,本实施例中,意愿路径只是当前时间的下一个预设时间内的意愿路径,其中,预设时间可以是10s,具体的,假设车辆从起始地A行驶到目的地B,此时,如果计算出整个路程的意愿路径,由于车辆在整个行驶路程中可能会遇到石头等障碍物或者其他路况,进而就导致车辆不能按照意愿路径进行行驶,此时得到的意愿路径就不再有意义,需要重新计算得到新的意愿路径,所以计算出整个路程的意愿路径是不可取的,因此,本实施例采用仅计算10s的意愿路径,当这个10s的意愿路径行走完时,再计算下一个10s的意愿路径。Wherein, in this embodiment, the desired path is only the desired path within the next preset time of the current time, wherein the preset time may be 10s. Specifically, assuming that the vehicle travels from the starting point A to the destination B, at this time , if the desired path of the entire distance is calculated, because the vehicle may encounter obstacles such as stones or other road conditions during the entire driving distance, the vehicle cannot follow the desired path, and the desired path obtained at this time will no longer have Meaning, it is necessary to recalculate to obtain a new desired path, so it is not advisable to calculate the desired path for the entire distance. Therefore, this embodiment uses only the calculated 10s desired path, and when the 10s desired path is completed, then calculate the next A will path of 10s.

需要说明的是,计算得到转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号后,由于车辆的实际运行状态与行驶目标数据是有差距的,如行驶目标数据中的转弯角为30度,而车辆的实际运行状态信息中的转弯角为28度,由于行驶目标数据中的数值是车辆在保持平衡下的最优的行驶状态,即需要对二轮单轨车辆的行驶数据进行修正。It should be noted that after calculating the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers, there is a gap between the actual running state of the vehicle and the driving target data, for example, the turning angle in the driving target data is 30 degrees, while the turning angle in the actual running status information of the vehicle is 28 degrees. Since the value in the driving target data is the optimal driving state of the vehicle under balance, it is necessary to correct the driving data of the two-wheeled monorail vehicle.

具体的修正过程包括:The specific correction process includes:

1)将意愿路径和行驶数据代入预设的轨迹偏差修正公式,计算得到车辆的转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号修正值。1) Substituting the desired path and driving data into the preset trajectory deviation correction formula to calculate the correction values of the control signals of the vehicle's steering motor driver, front wheel motor driver and two brake drivers.

具体的,将意愿路径和行驶数据代入预设的轨迹偏差修正公式,其中,轨迹偏差修正公式为上述的公式11-15,结合轨迹偏差修正公式、非线性动力学模型和非线性控制模型,就可以对计算得到转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号修正值。Specifically, the desired path and driving data are substituted into the preset trajectory deviation correction formula, wherein the trajectory deviation correction formula is the above formula 11-15, combined with the trajectory deviation correction formula, nonlinear dynamic model and nonlinear control model, the The correction values of the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers can be obtained through calculation.

需要说明的是,虽然按照意愿路径进行控制,但是由于车辆受到外界环境的影响,如遇到石头等障碍物,或者遇到大风等情况,会使车辆的行驶状态改变,进而需要对车辆的行驶状态进行修正。It should be noted that although the control is carried out according to the desired path, due to the influence of the external environment on the vehicle, such as encountering obstacles such as stones, or encountering strong winds, the driving state of the vehicle will change, and then the driving state of the vehicle needs to be adjusted. The status is corrected.

2)按照转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号修正值,调整转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的输出信号,以使车辆按照意愿路径动态平衡行驶。2) Adjust the output signals of the steering motor driver, the front wheel motor driver and the two brake drivers according to the correction values of the control signals of the turning motor driver, the front wheel motor driver and the two brake drivers, so that the vehicle can dynamically balance the vehicle according to the desired path.

得到转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号修正值后,将转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的输出信号调节到相应的控制信号修正值,即能够实现将车辆按照行驶目标数据动态平衡行驶。After obtaining the correction values of the control signals of the turning motor driver, the front wheel motor driver and the two brake drivers, the output signals of the turning motor driver, the front wheel motor driver and the two brake drivers are adjusted to the corresponding control signal correction values, that is, the The vehicle is dynamically balanced according to the driving target data.

本实施例中,提供了一种人工驾驶二轮单轨车辆的控制方式,进而能够按照本方式对二轮单轨车辆进行控制,以达到动态平衡。In this embodiment, a control method for manually driving a two-wheel monorail vehicle is provided, and then the two-wheel monorail vehicle can be controlled according to this method to achieve dynamic balance.

可选的,在图2对应的实施例的基础上,嵌入式电脑用于根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号时,具体用于:Optionally, on the basis of the embodiment corresponding to FIG. 2, when the embedded computer is used to calculate and output a coordinated motor drive signal according to the driving data and driving target data, it is specifically used for:

根据行驶目标数据以及传感器子系统采集的行驶数据,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving target data and the driving data collected by the sensor subsystem, the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

具体的,本发明既适用于自动驾驶二轮单轨车辆,也适用于人工驾驶二轮单轨车辆。本实施例中介绍的是将本发明应用于自动驾驶二轮单轨车辆。Specifically, the present invention is applicable to both automatic driving two-wheel monorail vehicles and manual driving two-wheel monorail vehicles. Introduced in this embodiment is the application of the present invention to a self-driving two-wheeled monorail vehicle.

行驶目标数据是外接设备输入的,其中,行驶目标数据可以是10s的一段路程的行驶目标数据。The driving target data is input by an external device, wherein the driving target data may be the driving target data of a distance of 10s.

然后,将行驶目标数据以及传感器子系统采集的行驶数据代入到非线性动力学模型和非线性控制模型中,计算得到转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。此外,还可以计算到车身滚动角、车身偏航角、前轮转弯角的变化曲线,其中,转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号也为变化的曲线。Then, the driving target data and the driving data collected by the sensor subsystem are substituted into the nonlinear dynamic model and the nonlinear control model, and the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated. In addition, the variation curves of body roll angle, body yaw angle, and front wheel turning angle can also be calculated, wherein the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are also changing curves.

需要说明的是,本实施例中,也需要对转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号进行修正,具体修正过程参照人工驾驶二轮单轨车辆中的修正过程,在此不再赘述。It should be noted that, in this embodiment, it is also necessary to correct the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers. Let me repeat.

本实施例中,提供了一种自动驾驶二轮单轨车辆的控制方式,进而能够按照本方式对二轮单轨车辆进行控制,以达到动态平衡。In this embodiment, a control method for automatically driving a two-wheel monorail vehicle is provided, and then the two-wheel monorail vehicle can be controlled according to this method to achieve dynamic balance.

本发明中,车辆在非零速度行驶时,本控制系统自动加强车辆转弯电机力矩τ2的控制,使得前轮或者后轮车轮转弯角可以有效地调节车身重心相对前后轮横向位置。在正常行驶时,可以实现有效实现车辆的稳定平衡。In the present invention, when the vehicle is running at a non - zero speed, the control system automatically strengthens the control of the vehicle turning motor torque τ2, so that the front wheel or rear wheel turning angle can effectively adjust the vehicle body center of gravity relative to the front and rear wheel lateral positions. During normal driving, it can effectively realize the stable balance of the vehicle.

在车辆处于低速度或者是停止不动时,车辆前轮或者后轮车轮转弯角不能调节车辆重心相对位置。但是后轮驱动时,在固定的大车轮转弯角下,前后移动车辆可以调节车辆重心相当于车轮支撑点的相对位置。本发明的控制系统自动加强对前轮或者后轮的驱动电机力矩控制,调节的前轮和/或后轮驱动电机力矩τ1,τ3实现车辆的稳定平衡。通常车辆是在大车轮转弯角下(比如+-45度以上,甚至+-90度),车辆前轮或者后轮驱动电机快速前后微小调节车辆的位置。如果是前轮转向的单轨车辆,在前轮驱动电机力矩τ1的控制下,车辆可以达到稳定平衡。本发明的非线性动力学模型计算表明,当车轮转弯角等于90度时,K33=0。这是因为车轮转弯角在90度时,如果前轮不打滑,后轮是不能驱动车辆前进的,因而不能用来控制车辆的平衡。不管使用前轮或者后轮来控制车辆平衡,嵌入式电脑必须可以指令驱动电机正向和反向的快速切换。这个指令是在非零速度行驶的单轨车辆自动控制中没有的。如果车辆是前轮驱动或者前后轮同时驱动,静态平衡可以更加有效:电脑控制的自动平衡系统可以把车轮转弯角固定在90度或者是-90度,根据传感器测量的信息和控制算法,快速调节前轮驱动电机,使得车身做微小的左右移动,达到自动平衡的目的。When the vehicle is at a low speed or is stationary, the turning angle of the front or rear wheels of the vehicle cannot adjust the relative position of the vehicle's center of gravity. However, when the rear wheels are driven, under a fixed large wheel turning angle, moving the vehicle forward and backward can adjust the relative position of the vehicle center of gravity equivalent to the wheel support point. The control system of the present invention automatically strengthens the torque control of the drive motors of the front wheels or the rear wheels, and the adjusted torques τ 1 and τ 3 of the drive motors of the front wheels and/or rear wheels realize the stable balance of the vehicle. Usually the vehicle is under a large wheel turning angle (such as +-45 degrees, or even +-90 degrees), the front wheel or rear wheel of the vehicle drives the motor to quickly and slightly adjust the position of the vehicle. If it is a monorail vehicle with front wheel steering, under the control of the front wheel drive motor torque τ 1 , the vehicle can reach a stable balance. The nonlinear dynamic model calculation of the present invention shows that when the wheel turning angle is equal to 90 degrees, K 33 =0. This is because when the wheel turning angle is 90 degrees, if the front wheels do not slip, the rear wheels cannot drive the vehicle forward and thus cannot be used to control the balance of the vehicle. Regardless of whether the front or rear wheels are used to control the balance of the vehicle, the embedded computer must be able to command the drive motor to quickly switch between forward and reverse. This instruction is absent in the automatic control of monorail vehicles traveling at non-zero speeds. If the vehicle is front-wheel drive or both front and rear wheels are driven, the static balance can be more effective: the computer-controlled automatic balance system can fix the wheel turning angle at 90 degrees or -90 degrees, and quickly adjust it according to the information measured by the sensor and the control algorithm The front wheel drive motor makes the body move slightly left and right to achieve the purpose of automatic balance.

在车辆起步或者是停车时,本发明的控制方法平稳地在两个控制模式上切换。安装非线性控制模型的嵌入式电脑,只要可以控制转向电机,就可以在车辆行驶时,保持车辆平衡。同时,只要可以控制安装在前轮,或者后轮上的驱动电机,就可以在车辆停止的状态下保持车辆的稳定平衡。即使是在外界扰动的,比如阵风或者是人为推动车辆,偏离平衡状态下,嵌入式电脑依然可以调节车辆驱动电机,修正车辆的车身滚动角,把车辆带到平衡状态下。When the vehicle starts or stops, the control method of the present invention smoothly switches between the two control modes. Installing the embedded computer with nonlinear control model, as long as the steering motor can be controlled, the vehicle can be kept in balance when the vehicle is running. At the same time, as long as the driving motor installed on the front wheel or the rear wheel can be controlled, the stable balance of the vehicle can be maintained when the vehicle is stopped. Even in the case of external disturbances, such as gusts of wind or artificially pushing the vehicle, the embedded computer can still adjust the driving motor of the vehicle, correct the roll angle of the vehicle body, and bring the vehicle to a balanced state.

为了本领域的技术人员清楚明白的了解本发明,现以人工驾驶和自动驾驶车辆两个例子进行解释说明。In order for those skilled in the art to clearly understand the present invention, two examples of a human-driven vehicle and an automatic-driven vehicle are now used for explanation.

(1)人工驾驶二轮单轨车辆(1) Manually driven two-wheeled monorail vehicle

本实施例提供的二轮单轨车辆,主要有7个组成部分:斜长的车身,安装在车身前部的带转向电机的前轮,安装在车后部的带动力驱动的后轮,多个传感器(包括光编码器和惯性传感器),电子记录仪,带控制软件的嵌入式电脑,和控制转向电机,驱动电机的输出构成。车身可以是带门,座椅的全封闭式的单元,以及车身内驾驶人电子控制输入、和显示车辆实际行驶状态信息的电子显示单元。The two-wheeled monorail vehicle provided by the present embodiment mainly has 7 components: an obliquely long vehicle body, a front wheel with a steering motor mounted on the front portion of the vehicle body, a power-driven rear wheel mounted on the rear portion of the vehicle, a plurality of Sensors (including optical encoders and inertial sensors), electronic recorders, embedded computers with control software, and output components for controlling steering motors and driving motors. The body can be a fully enclosed unit with doors and seats, as well as an electronic display unit for driver's electronic control input and displaying the actual driving state information of the vehicle in the body.

驾驶人可以加入车辆内部,在座椅上坐下以后,启动控制系统。嵌入式电脑启动后,传感器开始采集车辆的行驶数据,驾驶人踩下电子加速踏板,嵌入式电脑根据驾驶人输入的油门和方向盘数据,计算出前轮驱动电机和转弯电机的控制信号,指令电机的转矩和转动方向,在平衡车辆的同时,达到驾驶人需要的车辆速度和车辆行驶方向。嵌入式电脑持续利用传感器采集的行驶数据和驾驶人的输入信号,重复修正车辆需要到达的状态和位置,连续调整转弯电机的力矩,让车辆稳定行驶。The driver can join the interior of the vehicle, sit down in the seat, and activate the control system. After the embedded computer is started, the sensor starts to collect the driving data of the vehicle. When the driver steps on the electronic accelerator pedal, the embedded computer calculates the control signals of the front wheel drive motor and the steering motor according to the accelerator and steering wheel data input by the driver, and instructs the motor to The torque and direction of rotation can achieve the vehicle speed and vehicle driving direction required by the driver while balancing the vehicle. The embedded computer continuously uses the driving data collected by the sensor and the driver's input signal to repeatedly correct the state and position that the vehicle needs to reach, and continuously adjusts the torque of the steering motor to allow the vehicle to drive stably.

当驾驶人踩下电子刹车踏板时,嵌入式电脑及时更新车辆的状态,利用非线性动力学模型和非线性控制模型,计算出最优的前后轮刹车力矩,和转向电机力矩,在保持车辆平衡的条件下,安全快捷的减低车辆速度。当速度减低到一个阈值时,嵌入式电脑自动切换到准静态控制模式,在固定一个非0的车轮转弯角下,放松电子刹车,调节前轮驱动电机的力矩和转动方向,达到准静态平衡。这种控制方法适用于暂时停车。When the driver steps on the electronic brake pedal, the embedded computer updates the state of the vehicle in time, and uses the nonlinear dynamic model and nonlinear control model to calculate the optimal front and rear wheel braking torque and steering motor torque to maintain vehicle balance. Under certain conditions, reduce the speed of the vehicle safely and quickly. When the speed decreases to a threshold value, the embedded computer automatically switches to the quasi-static control mode. When a non-zero wheel turning angle is fixed, the electronic brake is released, and the torque and rotation direction of the front wheel drive motor are adjusted to achieve a quasi-static balance. This control method is suitable for temporary parking.

当驾驶人踩下电子加速踏板后,嵌入式电脑更新车辆的状态,调节转向电机,不再调节驱动力矩的方向,增加驱动电机的正向力矩,驱动车辆前进。When the driver steps on the electronic accelerator pedal, the embedded computer updates the state of the vehicle, adjusts the steering motor, no longer adjusts the direction of the driving torque, increases the positive torque of the driving motor, and drives the vehicle forward.

驾驶人可以通过电子LCD显示屏,了解车辆的行驶状态。利用电子方向盘控制车辆的方向,利用电子刹车踏板和电子油门踏板控制车辆的速度。The driver can know the driving status of the vehicle through the electronic LCD display. Use the electronic steering wheel to control the direction of the vehicle, and use the electronic brake pedal and electronic accelerator pedal to control the speed of the vehicle.

(2)自动驾驶二轮单轨车辆(2) Self-driving two-wheel monorail vehicle

可以采用机器人自动驾驶二轮单轨车辆。车辆平衡的控制系统主要有8个组成部分:斜长的车身,安装在车身前部的带转向电机和驱动电机的前轮,安装在车后部的没有驱动电机的后轮,通信模块,导航模块,多个传感器(包括光编码器、惯性传感器和视频采集传感器),电子记录仪,带控制软件的嵌入式电脑,和控制转向电机,驱动电机的输出构成。斜长的车身可以运送人员或者货物。A robot can be used to autonomously drive a two-wheeled monorail vehicle. The vehicle balance control system mainly has 8 components: the slanted body, the front wheels with steering motors and drive motors installed in the front of the vehicle, the rear wheels without drive motors installed in the rear of the vehicle, communication module, navigation Module, multiple sensors (including optical encoder, inertial sensor and video acquisition sensor), electronic recorder, embedded computer with control software, and control steering motor, the output of driving motor constitutes. The slanted body can transport people or goods.

自动驾驶单轨车辆,根据用户输入信息,或者是远端自动驾驶服务器通过通信模块发来的目的地和路径信息,规划出最佳路径,车辆传感器测量车辆的行驶数据,嵌入式电脑计算出转弯电机和前轮驱动电机的控制信号,指令车辆运行。视频采集传感器提供路况3D实时信息,时刻发现规划路径上的障碍物信息。嵌入式电脑根据这些信息,重新规划路径,或者命令车辆停止运行,通信模块发送车辆和路况信息给远端自动驾驶服务器。当视频采集传感器探测到障碍物消失已经,嵌入式电脑再重新启动车辆,驶向目的地。The self-driving monorail vehicle plans the optimal route according to the information input by the user, or the destination and route information sent by the remote self-driving server through the communication module. The vehicle sensor measures the driving data of the vehicle, and the embedded computer calculates the turning motor. And the control signal of the front wheel drive motor to command the vehicle to run. The video acquisition sensor provides 3D real-time information on road conditions, and always finds obstacle information on the planned route. Based on the information, the embedded computer re-plans the route, or orders the vehicle to stop running, and the communication module sends the vehicle and road condition information to the remote automatic driving server. When the video acquisition sensor detects that the obstacle has disappeared, the embedded computer restarts the vehicle and drives to the destination.

可选的,本发明的另一实施例中提供了一种二轮单轨车辆平衡的控制方法,应用于二轮单轨车辆,参照图4,包括:Optionally, another embodiment of the present invention provides a method for controlling the balance of a two-wheeled monorail vehicle, which is applied to a two-wheeled monorail vehicle. Referring to FIG. 4 , it includes:

S21、传感器子系统采集二轮单轨车辆的行驶数据和行驶目标数据;S21. The sensor subsystem collects the driving data and driving target data of the two-wheeled monorail vehicle;

S22、嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号;S22. The embedded computer calculates and outputs a coordinated motor drive signal according to the driving data and the driving target data;

S23、电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。S23. The motor drive subsystem controls the torque output of the corresponding motor according to each of the coordinated motor drive signals, so that the two-wheeled monorail vehicle achieves a dynamic balance and plans to travel according to the travel target data.

可选的,在本实施例的基础上,嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号,包括:Optionally, on the basis of this embodiment, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and driving target data, including:

根据行驶数据和行驶目标数据,基于非线性动力学模型和非线性控制模型,计算并输出协同的电机驱动信号。According to the driving data and the driving target data, based on the nonlinear dynamic model and the nonlinear control model, the coordinated motor drive signal is calculated and output.

可选的,在本实施例的基础上,电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,包括:Optionally, on the basis of this embodiment, the motor drive subsystem controls the torque output of the corresponding motor according to each of the coordinated motor drive signals, including:

转弯电机驱动器根据协同的电机驱动信号中的转弯驱动信号,控制转弯电机的力矩输出;The turning motor driver controls the torque output of the turning motor according to the turning driving signal in the coordinated motor driving signal;

前轮电机驱动器根据协同的电机驱动信号中的前轮驱动信号,控制前轮驱动电机的力矩输出;The front wheel motor driver controls the torque output of the front wheel drive motor according to the front wheel drive signal in the coordinated motor drive signal;

两个刹车驱动器,用于根据协同的电机驱动信号中的刹车驱动信号,控制两个刹车电机的力矩输出。The two brake drivers are used to control the torque output of the two brake motors according to the brake drive signal in the coordinated motor drive signal.

本实施例中,嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号后,电机驱动子系统根据协同的电机驱动信号中的每个信号控制相应的电机的力矩输出,使得二轮单轨车辆达到动态平衡、并按照行驶目标数据规划行驶。这种方法不对车辆的状态进行限定,即车辆无论是处于停止状态,行驶状态,或者是停车状态和行驶状态之间的相互切换状态时,均能够保证车辆动态平衡行驶,解决了现有的自动控制平衡的二轮单轨车辆,在车辆从停车状态到行驶状态或者是从行驶状态到停车状态时,不能自动保持动态平衡的问题。In this embodiment, after the embedded computer calculates and outputs the coordinated motor drive signal according to the driving data and the driving target data, the motor drive subsystem controls the torque output of the corresponding motor according to each signal in the coordinated motor drive signal, so that The two-wheel monorail vehicle achieves dynamic balance and plans to drive according to the driving target data. This method does not limit the state of the vehicle, that is, whether the vehicle is in a stopped state, a driving state, or a mutual switching state between a parking state and a driving state, it can ensure that the vehicle is dynamically balanced and drives, which solves the existing automatic The two-wheeled monorail vehicle that controls the balance cannot automatically maintain the dynamic balance when the vehicle is from the parking state to the driving state or from the driving state to the parking state.

需要说明的是,本实施例中的步骤的具体解释说明,请参照上述实施例中的相应说明。It should be noted that, for specific explanations of the steps in this embodiment, please refer to the corresponding descriptions in the foregoing embodiments.

可选的,在上述任一控制方法的实施例的基础上,嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号,包括:Optionally, on the basis of any of the above embodiments of the control method, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and driving target data, including:

根据行驶目标数据,计算得到驾驶人的意愿路径;其中,行驶目标数据包括驾驶人输入的方向盘信息、刹车踏板信息和油门踏板信息;According to the driving target data, the driver's desired path is calculated; wherein, the driving target data includes the steering wheel information, brake pedal information and accelerator pedal information input by the driver;

根据传感器子系统采集的行驶数据、以及意愿路径,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving data collected by the sensor subsystem and the desired path, the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers are calculated and output.

本实施例中,提供了一种人工驾驶二轮单轨车辆的控制方式,进而能够按照本方式对二轮单轨车辆进行控制,以达到动态平衡。In this embodiment, a control method for manually driving a two-wheel monorail vehicle is provided, and then the two-wheel monorail vehicle can be controlled according to this method to achieve dynamic balance.

需要说明的是,本实施例中的步骤的具体解释说明,请参照上述实施例中的相应说明。It should be noted that, for specific explanations of the steps in this embodiment, please refer to the corresponding descriptions in the foregoing embodiments.

可选的,在上述图4对应的实施例的基础上,嵌入式电脑根据行驶数据和行驶目标数据,计算并输出协同的电机驱动信号,包括:Optionally, on the basis of the embodiment corresponding to FIG. 4 above, the embedded computer calculates and outputs coordinated motor drive signals according to the driving data and driving target data, including:

根据和行驶目标数据以及传感器子系统采集的行驶数据,计算并输出转弯电机驱动器、前轮电机驱动器和两个刹车驱动器的控制信号。According to the driving target data and the driving data collected by the sensor subsystem, calculate and output the control signals of the steering motor driver, the front wheel motor driver and the two brake drivers.

本实施例中,提供了一种自动驾驶二轮单轨车辆的控制方式,进而能够按照本方式对二轮单轨车辆进行控制,以达到动态平衡。In this embodiment, a control method for automatically driving a two-wheel monorail vehicle is provided, and then the two-wheel monorail vehicle can be controlled according to this method to achieve dynamic balance.

需要说明的是,本实施例中的步骤的具体解释说明,请参照上述实施例中的相应说明。It should be noted that, for specific explanations of the steps in this embodiment, please refer to the corresponding descriptions in the foregoing embodiments.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. one kind two takes turns single-track vehicle, which is characterized in that including sensor subsystem, inserted computer and motor driven subsystem System;Wherein, the Motor drive subsystem includes turning motors driver, front-wheel motor driver and is mounted on front wheels and rear wheels On brake actuators constitute;
The sensor subsystem, for acquiring the running data and traveling target data of two wheel single-track vehicles;
The inserted computer, for vehicle be in halted state, driving status or halted state and driving status it Between mutual switching state when, according to the running data and the traveling target data, calculate and export collaboration motor drive Dynamic signal;
The Motor drive subsystem controls corresponding motor for each signal in the motor drive signal according to collaboration Torque output, so that two wheel single-track vehicles reach dynamic equilibrium and travel according to traveling target data schema;
Wherein, in the case where vehicle is in halted state, the inserted computer control turning motors make vehicle be fixed on default turn Then bent angle persistently controls direction and the torque size of front-wheel drive motor torque, reaches quasi-static balance.
2. two wheels single-track vehicle according to claim 1, which is characterized in that the inserted computer is used for according to the row Data and the traveling target data are sailed, when calculating and exporting the motor drive signal of collaboration, are specifically used for:
According to the running data and the traveling target data, it is based on non-linear dynamic model and Nonlinear Control Model, Calculate and export the motor drive signal of collaboration.
3. two wheels single-track vehicle according to claim 1, which is characterized in that the inserted computer is used for according to the row Data and the traveling target data are sailed, when calculating and exporting the motor drive signal of collaboration, are specifically used for:
According to the traveling target data, the wish path of driver is calculated;Wherein, the traveling target data include driving Sail steering information, brake pedal information and the gas pedal information of people's input;
According to the running data of sensor subsystem acquisition and the wish path, calculates and export turning motors drive The control signal of dynamic device, front-wheel motor driver and two brake actuators.
4. two wheels single-track vehicle according to claim 1, which is characterized in that the inserted computer is used for according to the row Data and the traveling target data are sailed, when calculating and exporting the motor drive signal of collaboration, are specifically used for:
According to the running data that the traveling target data and the sensor subsystem acquire, calculates and export turning motors The control signal of driver, front-wheel motor driver and two brake actuators.
5. two wheels single-track vehicle according to claim 1, which is characterized in that the Motor drive subsystem is used for according to association When each signal in same motor drive signal controls the torque output of corresponding motor, it is specifically used for: the turning motors Driver controls the torque output of turning motors according to the turning driving signal in the motor drive signal of the collaboration;
The front-wheel motor driver controls front-wheel drive according to the front-wheel drive signal in the motor drive signal of the collaboration The torque of motor exports;
Two brake actuators, for the brake driving signal in the motor drive signal according to the collaboration, control two The torque of a brake motor exports.
6. the control method that one kind two takes turns single-track vehicle balance, which is characterized in that be applied to two wheel single-track vehicles, comprising:
The running data and traveling target data of two wheel single-track vehicle of sensor subsystem acquisition;
When vehicle is in the mutual switching state of halted state, driving status either between halted state and driving status, Inserted computer calculates and exports the motor drive signal of collaboration according to the running data and the traveling target data;
Motor drive subsystem is exported according to the torque that each signal in the motor drive signal of collaboration controls corresponding motor, So that two wheel single-track vehicles reach dynamic equilibrium and travel according to traveling target data schema;
Wherein, in the case where vehicle is in halted state, the inserted computer control turning motors make vehicle be fixed on default turn Then bent angle persistently controls direction and the torque size of front-wheel drive motor torque, reaches quasi-static balance.
7. control method according to claim 6, which is characterized in that the inserted computer according to the running data and The traveling target data, calculate and export the motor drive signal of collaboration, comprising:
According to the running data and the traveling target data, it is based on non-linear dynamic model and Nonlinear Control Model, Calculate and export the motor drive signal of collaboration.
8. control method according to claim 6, which is characterized in that the inserted computer according to the running data and The traveling target data, calculate and export the motor drive signal of collaboration, comprising:
According to the traveling target data, the wish path of driver is calculated;Wherein, the traveling target data include driving Sail steering information, brake pedal information and the gas pedal information of people's input;
According to the running data of sensor subsystem acquisition and the wish path, calculates and export turning motors drive The control signal of dynamic device, front-wheel motor driver and two brake actuators.
9. control method according to claim 6, which is characterized in that the inserted computer according to the running data and The traveling target data, calculate and export the motor drive signal of collaboration, comprising:
According to the running data that the traveling target data and the sensor subsystem acquire, calculates and export turning motors The control signal of driver, front-wheel motor driver and two brake actuators.
10. control method according to claim 6, which is characterized in that the Motor drive subsystem includes turning motors Driver, front-wheel motor driver and the brake actuators being mounted in front wheels and rear wheels are constituted;The Motor drive subsystem The torque output of corresponding motor is controlled according to each signal in the motor drive signal of collaboration, comprising: the turning motors Driver controls the torque output of turning motors according to the turning driving signal in the motor drive signal of the collaboration;
The front-wheel motor driver controls front-wheel drive according to the front-wheel drive signal in the motor drive signal of the collaboration The torque of motor exports;
Two brake actuators control two brakes for the brake driving signal in the motor drive signal according to the collaboration The torque of vehicle motor exports.
CN201710810932.6A 2017-09-11 2017-09-11 A two-wheel monorail vehicle and its balancing control method Active CN107600267B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710810932.6A CN107600267B (en) 2017-09-11 2017-09-11 A two-wheel monorail vehicle and its balancing control method
PCT/CN2018/081275 WO2019047509A1 (en) 2017-09-11 2018-03-30 Two-wheel monorail vehicle and balance control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710810932.6A CN107600267B (en) 2017-09-11 2017-09-11 A two-wheel monorail vehicle and its balancing control method

Publications (2)

Publication Number Publication Date
CN107600267A CN107600267A (en) 2018-01-19
CN107600267B true CN107600267B (en) 2019-11-08

Family

ID=61063075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710810932.6A Active CN107600267B (en) 2017-09-11 2017-09-11 A two-wheel monorail vehicle and its balancing control method

Country Status (2)

Country Link
CN (1) CN107600267B (en)
WO (1) WO2019047509A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107600267B (en) * 2017-09-11 2019-11-08 广东工业大学 A two-wheel monorail vehicle and its balancing control method
CN110282059B (en) * 2018-12-29 2020-12-11 深圳市伟创高科电子有限公司 An electric vehicle safety control device and its realization method
CN113071583A (en) * 2021-04-26 2021-07-06 北京骑胜科技有限公司 Handlebar type vehicle steering indicating system, handlebar type vehicle and control method
CN113778080B (en) * 2021-08-09 2023-12-01 清华大学 Control method, device, electronic equipment and storage medium of single-track two-wheel robot
US11884287B2 (en) * 2021-08-19 2024-01-30 Ford Global Technologies, Llc Enhanced vehicle operation
CN115285085A (en) * 2022-08-31 2022-11-04 苏州海之博电子科技有限公司 Vehicle brake pedal feeling adjusting method
TW202506485A (en) * 2023-02-21 2025-02-16 灼 郭 Multi-motors coordination system and method for cargo bikes
CN117111479B (en) * 2023-10-23 2024-01-30 深圳市智绘科技有限公司 Robot control method, apparatus, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07215258A (en) * 1994-01-31 1995-08-15 Honda Motor Co Ltd Motorcycle
CN1784334A (en) * 2002-11-18 2006-06-07 高峰技术公司 Monorail vehicle and its control method and control device
CN102582738A (en) * 2011-12-01 2012-07-18 北京邮电大学 Variable-structure self-balancing two-wheeled vehicle
CN103529850A (en) * 2013-10-28 2014-01-22 华南理工大学广州学院 Control method of two-wheeled self-balance vehicle
CN205160428U (en) * 2015-12-01 2016-04-13 杭州骑客智能科技有限公司 Balanced scooter control system of two -wheeled
CN205273726U (en) * 2015-12-21 2016-06-01 昆山引强电子科技有限公司 Self -balancing and dual -purpose electric motor car of riding

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3482816B2 (en) * 1997-05-22 2004-01-06 スズキ株式会社 Motorcycle battery support device
US7275607B2 (en) * 1999-06-04 2007-10-02 Deka Products Limited Partnership Control of a personal transporter based on user position
CN1765692A (en) * 2005-11-03 2006-05-03 李平 Small-sized electric motion/power assistance bicycle/tricycle and its controller and sensor
CN203126563U (en) * 2013-03-19 2013-08-14 黄宝琛 Multi-core wheel hub motor and control device thereof, as well as electric vehicle
CN103600792B (en) * 2013-11-07 2016-04-13 陕西科技大学 A kind of battery-driven car one hand is ridden prompting and active safety protection system and method
CN105253141B (en) * 2015-09-09 2017-10-27 北京理工大学 A kind of vehicle handling stability control method adjusted based on wheel longitudinal force
CN107600267B (en) * 2017-09-11 2019-11-08 广东工业大学 A two-wheel monorail vehicle and its balancing control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07215258A (en) * 1994-01-31 1995-08-15 Honda Motor Co Ltd Motorcycle
CN1784334A (en) * 2002-11-18 2006-06-07 高峰技术公司 Monorail vehicle and its control method and control device
CN102582738A (en) * 2011-12-01 2012-07-18 北京邮电大学 Variable-structure self-balancing two-wheeled vehicle
CN103529850A (en) * 2013-10-28 2014-01-22 华南理工大学广州学院 Control method of two-wheeled self-balance vehicle
CN205160428U (en) * 2015-12-01 2016-04-13 杭州骑客智能科技有限公司 Balanced scooter control system of two -wheeled
CN205273726U (en) * 2015-12-21 2016-06-01 昆山引强电子科技有限公司 Self -balancing and dual -purpose electric motor car of riding

Also Published As

Publication number Publication date
CN107600267A (en) 2018-01-19
WO2019047509A1 (en) 2019-03-14

Similar Documents

Publication Publication Date Title
CN107600267B (en) A two-wheel monorail vehicle and its balancing control method
US11130542B2 (en) Vehicle having interactive lean control
CN109795502B (en) Intelligent electric vehicle path tracking model prediction control method
CN107618614B (en) A kind of two take turns the control method of single-track vehicle and its balance
US7649331B2 (en) Mobile robot
CN106080941B (en) A kind of unmanned bicycle for realizing speed change balance control
CN106184542B (en) A control system and control method for a wheelbase-less vehicle
CN202201103U (en) Electric two-wheeled balance car
EP3870470B1 (en) Shifting assembly and mobile carrier comprising same
CN103121451A (en) A Tracking Control Method for Lane Changing Trajectories on Curved Roads
WO2010023668A9 (en) System and method for stabilizing a single-track vehicle
CN108860296B (en) Electric vehicle electronic differential control system and electric vehicle based on steering angle closed loop
CN109159817A (en) Steering controller, system, steering and the progress control method of four-drive electric car
CN115202345A (en) Mobile robot control method and device based on U-K theory
CN110962626A (en) Self-adaptive electronic differential control method for multi-shaft hub motor driven vehicle
CN114620033A (en) Parking and warehousing control method based on front wheel feedback control
JP6216545B2 (en) Autonomous traveling vehicle, autonomous vehicle traveling system, and autonomous traveling vehicle control method
Yu et al. Steering control for autonomously balancing bicycle at low speed
JP4264399B2 (en) Automated guided vehicle
CN109795551B (en) Four-wheel active steering control method of four-wheel independent drive electric vehicle based on linear quadratic differential game
CN117048610A (en) Intelligent driving vehicle-oriented limit drift control method and control system
CN119176122B (en) A reconfigurable distributed drive multi-axis vehicle trajectory tracking method and carrier device
Lin et al. Nonlinear adaptive sliding-mode control design for two-wheeled human transportation vehicle
CN114148411A (en) Drift control method of a wheeled unmanned platform
CN110154788B (en) Control method for steering wheel-free side-direction departure of distributed driving vehicle

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