WO2021098238A1 - 一种车载摄像头云台伺服系统及控制方法 - Google Patents

一种车载摄像头云台伺服系统及控制方法 Download PDF

Info

Publication number
WO2021098238A1
WO2021098238A1 PCT/CN2020/101591 CN2020101591W WO2021098238A1 WO 2021098238 A1 WO2021098238 A1 WO 2021098238A1 CN 2020101591 W CN2020101591 W CN 2020101591W WO 2021098238 A1 WO2021098238 A1 WO 2021098238A1
Authority
WO
WIPO (PCT)
Prior art keywords
angular velocity
loop controller
pitch
motor
angular displacement
Prior art date
Application number
PCT/CN2020/101591
Other languages
English (en)
French (fr)
Inventor
孙超
冷江昊
Original Assignee
北京理工大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京理工大学 filed Critical 北京理工大学
Priority to US17/280,390 priority Critical patent/US11718321B2/en
Publication of WO2021098238A1 publication Critical patent/WO2021098238A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M13/00Other supports for positioning apparatus or articles; Means for steadying hand-held apparatus or articles
    • F16M13/02Other supports for positioning apparatus or articles; Means for steadying hand-held apparatus or articles for supporting on, or attaching to, an object, e.g. tree, gate, window-frame, cycle
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks
    • B60W60/0015Planning or execution of driving tasks specially adapted for safety
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon ; Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/04Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand
    • F16M11/06Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting
    • F16M11/10Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting around a horizontal axis
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon ; Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/04Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand
    • F16M11/06Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting
    • F16M11/12Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting in more than one direction
    • F16M11/121Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting in more than one direction constituted of several dependent joints
    • F16M11/123Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting in more than one direction constituted of several dependent joints the axis of rotation intersecting in a single point, e.g. by using gimbals
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon ; Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/18Heads with mechanism for moving the apparatus relatively to the stand
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon ; Stands for scientific apparatus such as gravitational force meters
    • F16M11/20Undercarriages with or without wheels
    • F16M11/2007Undercarriages with or without wheels comprising means allowing pivoting adjustment
    • F16M11/2035Undercarriages with or without wheels comprising means allowing pivoting adjustment in more than one direction
    • F16M11/2071Undercarriages with or without wheels comprising means allowing pivoting adjustment in more than one direction for panning and rolling
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2420/00Indexing codes relating to the type of sensors based on the principle of their operation
    • B60W2420/40Photo, light or radio wave sensitive means, e.g. infrared sensors
    • B60W2420/403Image sensing, e.g. optical camera
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2422/00Indexing codes relating to the special location or mounting of sensors
    • B60W2422/10Indexing codes relating to the special location or mounting of sensors on a suspension arm
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M2200/00Details of stands or supports
    • F16M2200/04Balancing means
    • F16M2200/041Balancing means for balancing rotational movement of the head
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M2200/00Details of stands or supports
    • F16M2200/04Balancing means
    • F16M2200/044Balancing means for balancing rotational movement of the undercarriage

Definitions

  • the invention belongs to the technical field of vehicle-mounted cameras, and specifically relates to a vehicle-mounted camera pan/tilt servo system and a control method.
  • the purpose of the present invention is to overcome the shortcomings of the prior art and provide a vehicle-mounted camera pan/tilt servo system and control method, which improves the dynamic performance and anti-disturbance performance of the real-time control of the camera's three-axis pan/tilt servo system, which is an excellent performance for unmanned vehicles. Security is guaranteed.
  • the present invention provides the following solutions:
  • a vehicle-mounted camera pan/tilt servo system includes a camera three-axis pan/tilt and a servo control device;
  • the three-axis camera head includes a pitch motor, a roll motor and a yaw motor, a roll arm (1), a pitch arm (4), a roll arm (5), a head mount (7), and a camera (11). ), a pitch axis bearing (12) and a counterweight (13);
  • the pitch motor includes a pitch motor stator (2) and a pitch motor rotor (3);
  • the yaw motor includes a yaw motor stator (6) and a horizontal Pendulum motor rotor (8);
  • the roll motor includes a roll motor stator (9) and a roll motor rotor (10);
  • the camera (11) is fixedly connected to the pitch motor rotor (3) via the pitch arm (4), and the pitch motor rotor (3) is used to realize movement in the pitch direction; the counterweight (13) is threadedly connected to the pitch motor rotor (3).
  • On the arm (4) it is used to compensate the gravitational imbalance moment caused by the weight of the pitch motor in the roll direction; the pitch arm (4) is restrained by the pitch axis bearing (12); the pitch motor stator (2)
  • the roll arm (1) is fixedly connected with the roll motor rotor (10), and the roll motor rotor (10) is used to realize the movement in the roll direction; the roll motor stator (9) is connected via the roll arm (5)
  • the yaw motor rotor (8) is fixedly connected; the yaw motor rotor (8) is used to realize the movement in the yaw direction; the yaw motor stator (6) is fixedly connected to the pan/tilt top seat (7), so Said pan/tilt top seat (7) is fixed on one
  • the servo control device includes:
  • Inertial measurement unit installed on the camera (11), used to measure the angular velocity and angular displacement information of the camera (11), and generate accurate angular displacement information by using the quaternion complementary filtering algorithm;
  • the actuator control unit is used to generate the switching sequence information of the drive bridge IGBT in three directions according to the position sensors inside the pitch motor, the yaw motor and the roll motor; based on the target voltage information, generate the drive bridge IGBT in the three directions Duty cycle, through the drive bridge to realize the open loop control of the motor speed in the three directions of pitch, roll and yaw;
  • the angular velocity loop control unit builds an angular velocity loop controller model based on the actuator control unit.
  • the angular velocity loop control model is optimized by the particle swarm algorithm parameters and combined with the target angular velocity information based on the actual angular velocity information obtained by the inertial measurement unit to generate the target Voltage information, and sending the target voltage information to the actuator control unit;
  • the angular displacement loop control unit is used to construct an angular displacement loop controller model based on the optimized angular velocity loop controller model; the angular displacement loop controller model is optimized by the particle swarm algorithm parameters and is based on the target set by the user
  • the rotation angle information and the actual angular displacement information obtained by the inertial measurement unit are used to generate target angular velocity information and send it to the angular velocity loop control unit to realize dual closed-loop control.
  • the pitch arm (4) is provided with a thread
  • the counterweight (13) is provided with a threaded hole, and the thread cooperates with the threaded hole to realize the connection between the tilt arm (4) and the counterweight (13).
  • the position of the counterweight (13) on the tilt arm (4) is adjustable.
  • the inertial measurement unit includes: an accelerometer for measuring the angular displacement value of the camera;
  • Gyroscope used to measure the instantaneous angular velocity value of the camera
  • the complementary calculation unit is used to perform a quaternion complementary calculation between the angular velocity value measured by the gyroscope and the angle value measured by the accelerometer to obtain an accurate instantaneous angle value.
  • the pitch motor, roll motor and yaw motor are all brushless DC motors.
  • a control method of a vehicle-mounted camera pan/tilt servo system includes the following steps:
  • step S1 specifically includes:
  • the instantaneous angular velocity obtained by the gyroscope is used to solve the quaternion update equation to obtain the quaternion of the instantaneous angular velocity:
  • q 0 , q 1 , q 2 and q 3 represent the quaternion of instantaneous angular velocity, with Is the derivative of the quaternion;
  • ⁇ x , ⁇ y and ⁇ z are the x-axis component, y-axis component and z-axis component of the instantaneous angular velocity, respectively;
  • T 11 , T 12 , T 13 , T 21 , T 22 , T 23 , T 31 , T 32 , and T 33 are elements of the quaternion matrix
  • the attitude angle is determined as:
  • is the pitch angle
  • is the roll angle
  • is the yaw angle
  • ⁇ p is the pitch angle in the accurate angular displacement information
  • ⁇ p1 is the pitch angle value obtained by the accelerometer
  • ⁇ r is the roll angle in the accurate angular displacement information
  • ⁇ r1 is the roll angle value obtained by the accelerometer
  • is the time constant.
  • step S2 includes the following sub-steps:
  • the input of the entire model is the drive voltage signal, that is, the target voltage information u output by the angular velocity loop control unit, which satisfies:
  • step S3 includes:
  • v id k w ⁇ v id k-1 +c 1 ⁇ r 1 ⁇ (pbest id -x id k-1 )+c 2 ⁇ r 2 ⁇ (gbest d -x id k-1 ) (7)
  • v id k and v id k-1 represent the particle velocity of the d-th dimension of the i-th particle of the k-th iteration and the k-1th iteration, respectively, and x id k and x id k-1 respectively represent the d-th dimension of the particle
  • pbest id represents the individual historical optimal position of the d-th dimension of the i-th particle in the k-1 iteration
  • gbest d represents the global optimal position of the dth dimension in the k-1 iteration process
  • the fitness function of the angular velocity loop controller is the weighted sum of the overshoot of the angular velocity loop controller and the absolute value of the error.
  • the inertia weight of the overshoot term is 0.009
  • the inertia weight of the absolute error term is 1, as shown below :
  • y fit is the fitness function value of the angular velocity loop controller
  • w 1 is the weight of the overshoot term of the angular velocity loop controller
  • w 2 is the weight of the absolute value of the angular velocity loop controller error
  • is the angular velocity loop control
  • e is the error of the angular velocity loop controller
  • x max is the maximum position limit
  • v max is the maximum speed limit
  • step S4 includes:
  • e 0 is the output error
  • k represents time k
  • y(k) is the output of the entire system at time k
  • z 1 (k), z 2 (k), and z 3 (k) are the observed state vector at time k
  • Z 1 (k+1), z 2 (k+1), z 3 (k+1) are the observed state vector updated at k+1
  • ts is the step size
  • ⁇ 01 , ⁇ 02 , and ⁇ 03 are respectively
  • the first error coefficient, the second error coefficient and the third error coefficient of the extended state observer ESO, ⁇ and ⁇ 0 are the exponential coefficient and the threshold coefficient of the fal function
  • b is the control variable coefficient
  • ⁇ 01 , ⁇ 02 , ⁇ 02 , ⁇ and ⁇ are determined by experience
  • b is the parameter to be optimized and determined by optimization method
  • fal( ⁇ ) is the fal function
  • u is the control quantity output by the angular displacement loop controller
  • v(k) is the control target at time k
  • x 1 (k) are the tracking control targets at time k
  • x 1 (k+1), x 2 (k+1) are k+
  • the tracking control target updated at time 1 ts is the step size
  • fhan( ⁇ ) is the fhan function
  • the expression of fhan is shown in equation (28):
  • x is the input state vector
  • r 0, and h 0 is a function of the first set and the second parameter fhan setting parameters
  • d, a 0, a 1 , a 2, s y, a and s a are fhan
  • the first intermediate parameter, the second intermediate parameter, the third intermediate parameter, the fourth intermediate parameter, the fifth intermediate parameter, the sixth intermediate parameter, and the seventh intermediate parameter of the function; r 0 , h 0 are determined by experience;
  • NLSEF nonlinear state error feedback controller
  • u 0 K p ⁇ fal(e 1 ,a 1 , ⁇ 0 )+K d ⁇ fal(e 2 ,a 2 , ⁇ 0 ) (29)
  • u is the control quantity output by the angular displacement loop controller
  • e 1 , e 2 are the observed state vector errors
  • e 1 x 1 (k+1)-z 1 (k+1)
  • e 2 x 2 (k+1)-z 2 (k+1)
  • a 1 , a 2 are two specific values of the exponential coefficient ⁇ of the fal function
  • a 1 , a 2 , ⁇ and b 0 are determined by experience
  • K p and K d are the proportional coefficient and the differential coefficient respectively, which need to be optimized
  • the fitness function of the angular displacement loop controller is the weighted sum of the overshoot of the angular displacement loop controller and the absolute value of the error of the angular displacement loop controller, the inertia weight of the overshoot term is 0.009, and the absolute value of the error term is The inertia weight is 1, as shown below:
  • w' y 1 is a right angular overshoot loop controller item weight
  • w '2 error is the absolute value of the angular velocity loop controller term heavy weight
  • ⁇ ' is The overshoot of the angular velocity loop controller, e'is the error of the angular velocity loop controller
  • the Simulink model is called based on the sim() command, the fitness function is calculated, the particle velocity is updated, and the particle position is updated; finally the maximum number of iterations is reached, and the values of K p , K d , and b are obtained.
  • the values of K p , K d , and b are obtained.
  • the beneficial effect of the present invention is that the present invention constructs a double closed-loop control frame with the angular displacement ring as the outer ring and the angular velocity ring as the inner ring.
  • NLSEF non-linear error feedback control rate
  • EEO extended state observer
  • the parameters of the angular displacement loop controller are tuned according to the method of combining experience and optimization, and the weighted sum of the overshoot ⁇ and the absolute error
  • is used as the fitness function of the particle swarm optimization. This method reduces the angular displacement loop controller
  • the complexity of parameter setting ensures that the servo system achieves the corresponding control effect.
  • Figure 1 is a schematic diagram of the structure of the camera's three-axis pan/tilt
  • Figure 2 is a schematic diagram of the principle of the servo control device
  • FIG. 3 is a flowchart of an embodiment of a control method of a vehicle-mounted camera pan/tilt servo system of the present invention
  • Figure 4 is a structural diagram of the angular displacement loop controller of the present invention.
  • FIG. 5 is a flowchart of another implementation manner of a control method of a vehicle-mounted camera pan/tilt servo system of the present invention.
  • 1-roll arm 2-pitch motor stator, 3-pitch motor rotor, 4-pitch arm, 5-yaw arm, 6-yaw motor stator, 7-gimbal top seat, 8-yaw Motor rotor, 9-roll motor stator, 10-roll motor rotor, 11-camera, 12-pitch axis bearing, 13-counterweight.
  • the purpose of the present invention is to overcome the shortcomings of the prior art and provide a vehicle-mounted camera pan/tilt servo system and control method, which improves the dynamic performance and anti-disturbance performance of the real-time control of the camera's three-axis pan/tilt servo system, which is an excellent performance for unmanned vehicles. Security is guaranteed.
  • a vehicle-mounted camera pan/tilt servo system includes a camera three-axis pan/tilt and a servo control device;
  • the three-axis camera head includes a pitch motor, a roll motor and a yaw motor, a roll arm 1, a pitch arm 4, a yaw arm 5, a pan/tilt top seat 7, a camera 11, a pitch axis bearing 12, and a counterweight. 13;
  • the pitch motor includes a pitch motor stator 2 and a pitch motor rotor 3;
  • the yaw motor includes a yaw motor stator 6 and a yaw motor rotor 8;
  • the roll motor includes a roll motor stator 9 and a roll motor Rotor 10;
  • the camera 11 is fixedly connected to the pitch motor rotor 3 via the pitch arm 4, and the pitch motor rotor 3 is used to realize movement in the pitch direction; the counterweight 13 is threadedly connected to the pitch arm 4 to compensate for the roll direction The upper gravitational unbalanced moment caused by the weight of the pitch motor; the pitch arm 4 is constrained by the pitch axis bearing 12; the pitch motor stator 2 is fixedly connected to the roll motor rotor 10 via the roll arm 1, and the roll The motor rotor 10 is used to realize the movement in the roll direction; the roll motor stator 9 is fixedly connected to the yaw motor rotor 8 via the yaw arm 5; the yaw motor rotor 8 is used to realize the movement in the yaw direction; The stator 6 of the pendulum motor is fixedly connected to the top seat 7 of the pan/tilt head, and the top seat 7 of the pan/tilt head is fixed close to the inner rearview mirror on the top of the car, so that the entire three-
  • the servo control device includes:
  • Inertial measurement unit installed on the camera 11, used to measure the angular velocity and angular displacement information of the camera 11, and generate accurate angular displacement information by using the quaternion complementary filtering algorithm;
  • the actuator control unit is used to generate drive bridge IGBT switching sequence information in three directions according to the position sensors inside the pitch motor, yaw motor and roll motor; generate the drive bridge based on the target voltage information in the three directions IGBT duty cycle, through the drive bridge to achieve open-loop control of the motor speed in the three directions of pitch, roll and yaw;
  • the angular velocity loop control unit builds an angular velocity loop controller model based on the actuator control unit.
  • the angular velocity loop control model is optimized by the particle swarm algorithm parameters and combined with the target angular velocity information based on the actual angular velocity information obtained by the inertial measurement unit to generate a motor
  • the duty cycle information of the driving voltage PWM signal is transmitted to the driving bridge of the actuator control unit;
  • the angular displacement loop control unit is used to construct an angular displacement loop controller model based on the optimized angular velocity loop controller model; the angular displacement loop controller model is optimized by the particle swarm algorithm parameters and is based on the target set by the user
  • the rotation angle information and the actual angular displacement information obtained by the inertial measurement unit are used to generate the target angular velocity and send it to the angular velocity loop controller model to achieve dual closed-loop control.
  • the actuator control unit mainly includes an encoder and a drive bridge.
  • the encoder is used to generate a drive bridge in three directions according to the position sensor inside the pitch motor, yaw motor, and roll motor.
  • IGBT switching sequence information based on the target voltage information in the three directions, generates the drive bridge IGBT duty cycle; the drive bridge is used to realize the open loop control of the motor speed in the three directions of pitch, roll and yaw.
  • the pitch arm 4 is provided with a thread
  • the counterweight 13 is provided with a threaded hole.
  • the thread cooperates with the threaded hole to realize the connection between the tilt arm 4 and the counterweight 13 and make The position of the counterweight 13 on the pitch arm 4 is adjustable.
  • the inertial measurement unit includes: an accelerometer, used to measure the angular displacement value of the camera; a gyroscope, used to measure the instantaneous angular velocity value of the camera; a complementary calculation unit, used to compare the angular velocity value measured by the gyroscope to the angle measured by the accelerometer Complementary calculation of quaternion value is performed to obtain the accurate instantaneous angle value.
  • the pitch motor, roll motor and yaw motor are all brushless DC motors.
  • the three directions of pitch, roll, and yaw are defined as: the pitch axis is located in the horizontal plane, and the direction is perpendicular to the forward direction of the vehicle; the roll axis is located in the horizontal plane Inside, the direction points to the forward direction of the vehicle; the yaw axis is perpendicular to the horizontal plane of the geodetic coordinate system.
  • the connection mode of each structure is: the fixed connection mode of the pitch motor stator 2, the roll motor stator 9, the yaw motor stator 6 and the corresponding fixed connection structure is 4 screws.
  • the fixing method of the pitch motor rotor 3, the roll motor rotor 10, the yaw motor rotor 7 and the corresponding fixing structure is 4 screws.
  • the fixed connection between the pan-tilt top seat 7 and the top of the car is 4 screws.
  • the way of exporting the motor harness is as follows: the tilt motor harness is led out through the hole on the roll arm 1, the roll motor harness is led out through the hole 5 on the yaw arm, and the yaw motor harness is led out through the hole on the top base 7 of the pan/tilt.
  • the invention also provides a method for controlling the pan/tilt servo system of the vehicle-mounted camera.
  • control method of the on-board camera pan/tilt servo system includes the following steps:
  • the step S1 specifically includes:
  • the instantaneous angular velocity obtained by the gyroscope is used to solve the quaternion update equation to obtain the quaternion of the instantaneous angular velocity:
  • q 0 , q 1 , q 2 and q 3 represent the quaternion of instantaneous angular velocity, with Is the derivative of the quaternion;
  • ⁇ x , ⁇ y and ⁇ z are the x-axis component, y-axis component and z-axis component of the instantaneous angular velocity, respectively;
  • T 11 , T 12 , T 13 , T 21 , T 22 , T 23 , T 31 , T 32 , and T 33 are elements of the quaternion matrix
  • the attitude angle is determined as:
  • is the pitch angle
  • is the roll angle
  • is the yaw angle
  • ⁇ p is the pitch angle in the accurate angular displacement information
  • ⁇ p1 is the pitch angle value obtained by the accelerometer
  • ⁇ r is the roll angle in the accurate angular displacement information
  • ⁇ r1 is the roll angle value obtained by the accelerometer
  • is the time constant.
  • the step S2 includes the following sub-steps:
  • the input of the entire model is the drive voltage signal, that is, the target voltage information u output by the angular velocity loop control unit, which satisfies:
  • the step S3 includes:
  • v id k w ⁇ v id k-1 +c 1 ⁇ r 1 ⁇ (pbest id -x id k-1 )+c 2 ⁇ r 2 ⁇ (gbest d -x id k-1 ) (7)
  • v id k and v id k-1 represent the particle velocity of the d-th dimension of the i-th particle of the k-th iteration and the k-1th iteration, respectively, and x id k and x id k-1 respectively represent the d-th dimension of the particle
  • pbest id represents the individual historical optimal position of the d-th dimension of the i-th particle in the k-1 iteration
  • gbest d represents the global optimal position of the dth dimension in the k-1 iteration process
  • the fitness function of the angular velocity loop controller is the weighted sum of the overshoot of the angular velocity loop controller and the absolute value of the error.
  • the inertia weight of the overshoot term is 0.009
  • the inertia weight of the absolute error term is 1, as shown below :
  • y fit is the fitness function value of the angular velocity loop controller
  • w 1 is the weight of the overshoot term of the angular velocity loop controller
  • w 2 is the weight of the absolute value of the angular velocity loop controller error
  • is the angular velocity loop control
  • e is the error of the angular velocity loop controller
  • x max is the maximum position limit
  • v max is the maximum speed limit
  • the step S4 includes: as shown in FIG. 4, the angular displacement loop controller of the present invention includes: an expanded state observer ESO, a tracking differentiator TD, and a nonlinear state error feedback controller NLSEF.
  • e 0 is the output error
  • k represents time k
  • y(k) is the output of the entire system at time k
  • z 1 (k), z 2 (k), and z 3 (k) are the observed state vector at time k
  • Z 1 (k+1), z 2 (k+1), z 3 (k+1) are the observed state vectors updated at k+1
  • ts is the step size
  • ⁇ And ⁇ are coefficients determined through experience, where ⁇ is 0.5, b is the parameter to be optimized; fal( ⁇ ) is the fal function, and u is the control quantity output by the angular displacement loop controller;
  • v(k) is the control target at time k
  • x 1 (k) are the tracking control targets at time k
  • x 1 (k+1), x 2 (k+1) are k+
  • the tracking control target updated at time 1 ts is the step size
  • fhan( ⁇ ) is the fhan function
  • the expression of fhan is shown in equation (28):
  • r 0 , h 0 are coefficients determined through experience
  • NLSEF nonlinear state error feedback controller
  • u 0 K p ⁇ fal(e 1 ,a 1 , ⁇ 0 )+K d ⁇ fal(e 2 ,a 2 , ⁇ 0 ) (29)
  • u is the control quantity output by the angular displacement loop controller
  • e 1 , e 2 are the observed state vector errors
  • e 1 x 1 (k+1)-z 1 (k+1)
  • e 2 x 2 (k+1)-z 2 (k+1)
  • a 1 , a 2 , ⁇ , and b 0 are coefficients determined through experience
  • K p and K d are proportional coefficients and differential coefficients, respectively, which need to be optimized
  • the fitness function of the angular displacement loop controller is the weighted sum of the overshoot of the angular displacement loop controller and the absolute value of the error of the angular displacement loop controller, the inertia weight of the overshoot term is 0.009, and the absolute value of the error term is The inertia weight is 1, as shown below:
  • w' y 1 is a right angular overshoot loop controller item weight
  • w '2 error is the absolute value of the angular velocity loop controller term heavy weight
  • ⁇ ' is The overshoot of the angular velocity loop controller, e'is the error of the angular velocity loop controller
  • the Simulink model is called based on the sim() command, the fitness function is calculated, the particle velocity is updated, and the particle position is updated; finally the maximum number of iterations is reached, and the values of K p , K d , and b are obtained.
  • the values of K p , K d , and b are obtained.
  • a method for controlling a pan/tilt servo system of a vehicle-mounted camera includes the following steps:
  • A. Use the inertial measurement unit installed on the camera 11 to measure the angular velocity and angular displacement information of the camera 11, and use the quaternion complementary filtering algorithm to generate accurate angular displacement information;
  • the invention constructs a double closed-loop control frame with the angular displacement loop as the outer loop and the angular velocity loop as the inner loop.
  • NLSEF non-linear error feedback control rate
  • EEO extended state observer
  • the parameters of the angular displacement loop controller are tuned according to the method of combining experience and optimization, and the weighted sum of the overshoot ⁇ and the absolute error
  • is used as the fitness function of the particle swarm optimization. This method reduces the angular displacement loop controller
  • the complexity of parameter setting ensures that the servo system achieves the corresponding control effect.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Optics & Photonics (AREA)
  • Studio Devices (AREA)
  • Feedback Control In General (AREA)

Abstract

一种车载摄像头云台伺服系统及控制方法,包括摄像头三轴云台和伺服控制装置;摄像头三轴云台包括俯仰电机、侧倾电机和横摆电机、侧倾臂(1)、俯仰臂(4)、横摆臂(5)、云台顶座(7)、摄像头(11)、俯仰轴轴承(12)和配重块(13);俯仰电机包括俯仰电机定子(2)和俯仰电机转子(3);横摆电机包括横摆电机定子(6)和横摆电机转子(8);侧倾电机包括侧倾电机定子(9)和侧倾电机转子(10);伺服控制装置包括惯性测量单元、三维建模控制单元、角速度环控制单元和角位移环控制单元。提升了摄像头三轴云台伺服系统实时控制的动态性能和抗扰性能,为无人驾驶车辆的安全性提供保障。

Description

一种车载摄像头云台伺服系统及控制方法
本申请要求于2019年11月22日提交中国专利局、申请号为201911152526.0、发明名称为“一种车载摄像头云台伺服系统及控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明属于车载摄像头技术领域,具体涉及一种车载摄像头云台伺服系统及控制方法。
背景技术
无人驾驶车辆的安全性一直是该领域的热点问题,摄像头作为视觉传感器为无人驾驶车辆提供了大量数据信息。然而由于路面不平、转向、制动、加速等因素,实际行驶中车辆存在各种不确定的姿态变化,构成了摄像头运行的扰动因素。为保证视频数据的稳定性和连续性,车载摄像头三轴云台应运而生,它是一种三轴的可旋转机械结构。与无人机航拍、手持拍摄等领域的摄像头不同,无人驾驶摄像头是实现无人驾驶功能的关键设备,因此提升摄像头三轴云台的稳定性,对无人驾驶车辆的安全具有重要意义。
发明内容
本发明的目的在于克服现有技术的不足,提供一种车载摄像头云台伺服系统及控制方法,提升了摄像头三轴云台伺服系统实时控制的动态性能和抗扰性能,为无人驾驶车辆的安全性提供保障。
为实现所述目的,本发明提供了如下方案:
一种车载摄像头云台伺服系统,包括摄像头三轴云台和伺服控制装置;
所述摄像头三轴云台包括俯仰电机、侧倾电机和横摆电机、侧倾臂(1)、俯仰臂(4)、横摆臂(5)、云台顶座(7)、摄像头(11)、俯仰轴轴承(12)和配重块(13);所述俯仰电机包括俯仰电机定子(2) 和俯仰电机转子(3);所述横摆电机包括横摆电机定子(6)和横摆电机转子(8);所述侧倾电机包括侧倾电机定子(9)和侧倾电机转子(10);
所述摄像头(11)经俯仰臂(4)与俯仰电机转子(3)固连,所述俯仰电机转子(3)用于实现俯仰方向的运动;所述配重块(13)螺纹连接在俯仰臂(4)上,用于补偿侧倾方向上由于俯仰电机自重所造成的重力不平衡力矩;所述俯仰臂(4)由俯仰轴轴承(12)进行约束;所述俯仰电机定子(2)经侧倾臂(1)与侧倾电机转子(10)固连,所述侧倾电机转子(10)用于实现侧倾方向的运动;侧倾电机定子(9)经横摆臂(5)与横摆电机转子(8)固连;所述横摆电机转子(8)用于实现横摆方向的运动;所述横摆电机定子(6)与云台顶座(7)固连,所述云台顶座(7)在车内顶部的内后视镜固定位置的一侧进行固定,从而将整个摄像头三轴云台固连到车内顶部;所述俯仰电机、侧倾电机和横摆电机内部均设置有位置传感器;
所述伺服控制装置包括:
惯性测量单元,安装于摄像头(11)上,用于测量摄像头(11)的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
执行机构控制单元,用于依据俯仰电机、横摆电机、侧倾电机内部的位置传感器,生成三个方向上驱动电桥IGBT开关顺序信息;基于目标电压信息,生成三个方向上驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制;
角速度环控制单元,基于执行机构控制单元,构建角速度环控制器模型,所述角速度环控制模型经粒子群算法参数优化后,根据惯性测量单元得到的实际角速度信息,与目标角速度信息结合,生成目标电压信息,并将所述目标电压信息发送给所述执行机构控制单元;
角位移环控制单元,用于在优化后的角速度环控制器模型基础上,构建角位移环控制器模型;所述角位移环控制器模型经粒子群算法参数优化后,根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息发送给角速度环控制单元,实现双闭环控制。
可选的,所述俯仰臂(4)上设置有螺纹,配重块(13)上设置有螺纹孔,所述螺纹与螺纹孔配合,实现俯仰臂(4)与配重块(13)的连接, 并使得配重块(13)在俯仰臂(4)上位置可调。
可选的,所述惯性测量单元包括:加速度计,用于测量摄像头的角位移值;
陀螺仪,用于测量摄像头的瞬时角速度值;
互补计算单元,用于将陀螺仪测量的角速度值与加速度计测量的角度值进行四元数互补计算,得到精确的瞬时角度值。
可选的,所述俯仰电机、侧倾电机和横摆电机均为无刷直流电机。
一种车载摄像头云台伺服系统的控制方法,包括以下步骤:
S1.利用安装于摄像头(11)上的惯性测量单元,测量摄像头(11)的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
S2.根据摄像头三轴云台的机械结构,结合俯仰电机、侧倾电机和横摆电机参数;分别在俯仰、侧倾、横摆三个方向进行Simulink建模,依据电机内部的位置传感器,生成驱动电桥IGBT开关顺序信息;基于目标电压信息,生成驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制,得到执行机构控制模型,即俯仰电机、侧倾电机和横摆电机的Simulink控制模型;
S3.基于执行机构控制模型,在Simulink中构建角速度环控制器模型,采用粒子群优化算法迭代优化角速度环控制器模型的参数;参数优化后的角速度环控制器根据惯性测量单元得到的实际角速度信息,结合目标角速度信息,生成目标电压信息;
S4.基于角速度环控制器模型,在Simulink中构建角位移环控制器模型,利用粒子群优化方法对角位移环控制器模型进行参数优化;参数优化后的角位移环控制器模型根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息发送给角速度环控制器模型,实现双闭环控制。
可选的,所述步骤S1,具体包括:
分别将陀螺仪获得的瞬时角速度,采用求解四元数更新方程的方式,获得瞬时角速度的四元数:
其中,四元数更新方程为:
Figure PCTCN2020101591-appb-000001
其中,q 0、q 1、q 2和q 3表示瞬时角速度的四元数,
Figure PCTCN2020101591-appb-000002
Figure PCTCN2020101591-appb-000003
为四元数的导数;ω x、ω y和ω z分别为瞬时角速度的x轴分量、y轴分量和z轴分量;
根据瞬时角速度的四元数,确定被测物体坐标系b向地面坐标系R转化的四元数矩阵:
Figure PCTCN2020101591-appb-000004
其中,
Figure PCTCN2020101591-appb-000005
为四元数矩阵,T 11、T 12、T 13、T 21、T 22、T 23、T 31、T 32、T 33为四元数矩阵的元素;
根据所述四元数矩阵,确定姿态角为:
Figure PCTCN2020101591-appb-000006
其中,θ为俯仰角,γ为侧倾角,ψ为横摆角;
利用低通滤波器处理加速度计得到的角度值,利用高通滤波器处理陀螺仪解算出的姿态角,然后加权求和得到精确角位移信息;
Figure PCTCN2020101591-appb-000007
Figure PCTCN2020101591-appb-000008
其中,β p为精确角位移信息中的俯仰角,β p1为加速度计得到的俯仰角度值,β p2=θ为陀螺仪解算得到的俯仰角,β r为精确角位移信息中的侧倾角,β r1为加速度计得到的侧倾角度值,β r2=γ为陀螺仪解算得到的侧倾角,τ为时间常数。
可选的,所述步骤S2包括以下子步骤:
S201.在SolidWorks中建立摄像头三轴云台的三维模型,配置三维模 型材料,求出三根旋转轴上负载的转动惯量;
S202.在Simulink中搭建执行机构控制模型,配置包含相间电感、线电阻、极对数、转轴粘性系数的电机参数和负载转动惯量;
S203.在Simulink中搭建编码器模块,基于位置传感器信息计算IGBT电桥开关顺序;
S204.在Simulink中搭建PWM模块和恒压电源模块;
S205.整个模型的输入为驱动电压信号,即角速度环控制单元输出的目标电压信息u,其满足:
Figure PCTCN2020101591-appb-000009
即得到构建的执行机构控制模型,其中,U max为最大电压限值。
可选的,所述步骤S3包括:
S301.在Simulink中构建角速度环控制器模型,并将角速度环控制器模型保存为.mdl格式,在.mdl格式的角速度环控制器模型中设定阶跃目标角速度,将角速度环控制器参数K' p、K i作为模型输入量,角速度环控制器模型的阶跃目标角速度的响应角速度作为模型输出量;
S302.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,在粒子速度更新公式(7)中,i表示第i个粒子,k表示迭代次数,d表示维度,x表示粒子位置,pbest和gbest分别表示个体历史最优位置和全局最优位置,c 1、c 2分别为个体学习率和群体学习率,r 1、r 2为[0,1],w为惯性权重,w从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
v id k=w×v id k-1+c 1×r 1×(pbest id-x id k-1)+c 2×r 2×(gbest d-x id k-1)   (7)
x id k=x id k-1+v id k-1    (8)
其中,v id k和v id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子速度,x id k和x id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子位置;pbest id表示k-1次迭代过程中第i个粒子的第d个维度的个体历史最优位置,gbest d表示k-1次迭代过程中第d个维度的全局最优位置;
S303.角速度环控制器的适应度函数为角速度环控制器的超调量与误 差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
y fit=w 1×δ+∫w 2×|e|×dt    (9)
其中,y fit为角速度环控制器的适应度函数值,w 1为角速度环控制器的超调量项的权重,w 2为角速度环控制器的误差绝对值项的权重,δ为角速度环控制器的超调量,e为角速度环控制器的误差;
S304.每次迭代中基于sim()命令调用.mdl格式的角位移环控制器模型,获得每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,根据每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,利用公式(9)计算每个例子的适应度函数的值,利用公式(7)对粒子速度进行更新,进而利用公式(8)对粒子位置进行更新;粒子位置和速度应当满足公式(10)和公式(11)限定的约束条件;
Figure PCTCN2020101591-appb-000010
Figure PCTCN2020101591-appb-000011
其中,x max为最大位置限值,v max为最大速度限值;
最终达到最大迭代次数,得到最大迭代次数时的全局最优位置,作为K' p、Ki的最优解。
可选的,所述步骤S4包括:
S401.构建扩张状态观测器ESO,二阶ESO离散系统的基本过程如下:
e 0=z 1(k)-y(k)       (12)
z 1(k+1)=z 1(k)+ts×(z 2(k)-β 01×e 0)      (13)
z 2(k+1)=z 2(k)+ts×(z 3(k)-β 02×fal(e 0,0.5,δ 0)+b×u)     (14)
z 3(k+1)=z 3(k)-ts×β 03×fal(e 0,0.25,δ 0)     (15)
Figure PCTCN2020101591-appb-000012
其中,e 0为输出误差,k代表k时刻,y(k)为整个系统k时刻的输出量,z 1(k)、z 2(k)、z 3(k)为k时刻的观测状态向量,z 1(k+1)、z 2(k+1)、z 3(k+1)为k+1时刻更新的观测状态向量,ts为步长,β 01、β 02、β 03分别为扩张 状态观测器ESO的第一误差系数、第二误差系数和第三误差系数、α和δ 0分别为fal函数的指数系数和阈值系数,b为控制量系数,β 01、β 02、β 02、α和δ为通过经验确定,b为待优化的参数,通过优化方式确定;fal(·)为fal函数,u为角位移环控制器输出的控制量;
S402.构建跟踪微分器TD,基于fhan建立的离散系统TD如下:
fh=fhan(x 1(k)-v(k),x 2(k),r 0,h 0)       (17)
x 1(k+1)=x 1(k)+ts×x 2(k)     (18)
x 2(k+1)=x 2(k)+ts×fh    (19)
其中,v(k)为k时刻的控制目标,x 1(k)、x 2(k)为k时刻的跟踪控制目标,x 1(k+1)、x 2(k+1)为k+1时刻更新的跟踪控制目标,ts为步长,fhan(·)为fhan函数,fhan的表达式如式(28)所示:
fhan的表达式如下所示:
d=r 0×h 0 2       (20)
a 0=h 0×x 2(k)     (21)
y=x 1(k)-v(k)+a 0      (22)
Figure PCTCN2020101591-appb-000013
Figure PCTCN2020101591-appb-000014
Figure PCTCN2020101591-appb-000015
a=(a 0+y(k)-a 2)×s y+a 2      (26)
Figure PCTCN2020101591-appb-000016
Figure PCTCN2020101591-appb-000017
其中x为输入的状态向量,r 0和h 0为fhan函数的第一设定参数和第二设定参数,d、a 0、a 1、a 2、s y、a和s a分别为fhan函数的第一中间参数、第二中间参数、第三中间参数、第四中间参数、第五中间参数和第六中间参数和第七中间参数;r 0、h 0为通过经验确定;
S403.构建非线性状态误差反馈控制器NLSEF,非线性状态误差反馈控制器的离散过程如下:
u 0=K p×fal(e 1,a 10)+K d×fal(e 2,a 20)     (29)
Figure PCTCN2020101591-appb-000018
其中,u为角位移环控制器输出的控制量,e 1、e 2为观测的状态向量误差,e 1=x 1(k+1)-z 1(k+1),e 2=x 2(k+1)-z 2(k+1),a 1、a 2为fal函数的指数系数α的两个具体的取值,a 1、a 2、δ和b 0为通过经验确定;K p、K d分别为比例系数和微分系数,需要进行优化;
S404.将步骤401-403建立的角位移环控制器的Simulink模型保存为.mdl格式,获得.mdl格式的角位移环控制器模型,.mdl格式的角位移环控制器模型的输入为K p、K d、b三个优化参数,输出为阶跃目标角位移的响应角位移;
S405.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,粒子速度更新公式的惯性权重从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
S406.角位移环控制器的适应度函数为角位移环控制器的超调量与角位移环控制器的误差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
y' fit=w′ 1×δ'+∫w' 2×|e'|×dt      (31)
y' fit为角位移环控制器的适应度函数值,w′ 1为角速度环控制器的超调量项的权重,w' 2为角速度环控制器的误差绝对值项的权重,δ'为角速度环控制器的超调量,e'为角速度环控制器的误差;
S407.每次迭代中基于sim()命令调用Simulink模型,计算适应度函数的值,对粒子速度进行更新,进而对粒子位置进行更新;最终达到最大迭代次数,得到K p、K d、b的最优解。
本发明的有益效果是:本发明构建了以角位移环为外环、角速度环为内环的双闭环控制框架。基于非线性误差反馈控制率(NLSEF),对控制量的各项进行非线性组合,提高了伺服系统的动态性能;基于扩张状态观测器(ESO)实时观测系统的扰动并对其进行补偿,提高了伺服系统的抗干扰能力。依据经验与优化结合的方法角位移环控制器的参数进行整定,以超调量δ和误差绝对值|e|的加权和作为粒子群优化的适应度函数,该方法降低了角位移环控制器参数整定的复杂度,又保证伺服系统达到相 应的控制效果。
说明书附图
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为摄像头三轴云台的结构示意图;
图2为伺服控制装置的原理示意图;
图3为本发明的一种车载摄像头云台伺服系统的控制方法的一种实施方式的流程图;
图4为本发明的角位移环控制器的结构图;
图5为本发明的一种车载摄像头云台伺服系统的控制方法的另一种实施方式的流程图;
图中,1-侧倾臂,2-俯仰电机定子,3-俯仰电机转子,4-俯仰臂,5-横摆臂,6-横摆电机定子,7-云台顶座,8-横摆电机转子,9-侧倾电机定子,10-侧倾电机转子,11-摄像头,12-俯仰轴轴承,13-配重块。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的目的在于克服现有技术的不足,提供一种车载摄像头云台伺服系统及控制方法,提升了摄像头三轴云台伺服系统实时控制的动态性能和抗扰性能,为无人驾驶车辆的安全性提供保障。
为使本发明的所述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。
如图1~2所示,一种车载摄像头云台伺服系统,包括摄像头三轴云 台和伺服控制装置;
所述摄像头三轴云台包括俯仰电机、侧倾电机和横摆电机、侧倾臂1、俯仰臂4、横摆臂5、云台顶座7、摄像头11、俯仰轴轴承12和配重块13;所述俯仰电机包括俯仰电机定子2和俯仰电机转子3;所述横摆电机包括横摆电机定子6和横摆电机转子8;所述侧倾电机包括侧倾电机定子9和侧倾电机转子10;
所述摄像头11经俯仰臂4与俯仰电机转子3固连,所述俯仰电机转子3用于实现俯仰方向的运动;所述配重块13螺纹连接在俯仰臂4上,用于补偿侧倾方向上由于俯仰电机自重所造成的重力不平衡力矩;所述俯仰臂4由俯仰轴轴承12进行约束;所述俯仰电机定子2经侧倾臂1与侧倾电机转子10固连,所述侧倾电机转子10用于实现侧倾方向的运动;侧倾电机定子9经横摆臂5与横摆电机转子8固连;所述横摆电机转子8用于实现横摆方向的运动;所述横摆电机定子6与云台顶座7固连,所述云台顶座7靠近车内顶部的内后视镜进行固定,从而将整个摄像头三轴云台固连到车内顶部的内后视镜附近;所述俯仰电机、侧倾电机和横摆电机内部均设置有位置传感器;
所述伺服控制装置包括:
惯性测量单元,安装于摄像头11上,用于测量摄像头11的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
执行机构控制单元,用于依据俯仰电机、横摆电机、侧倾电机内部的位置传感器,生成三个方向上驱动电桥IGBT开关顺序信息;基于三个方向上的目标电压信息,生成驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制;
角速度环控制单元,基于执行机构控制单元,构建角速度环控制器模型,所述角速度环控制模型经粒子群算法参数优化后,根据惯性测量单元得到的实际角速度信息,与目标角速度信息结合,生成电机驱动电压PWM信号的占空比信息传输给执行机构控制单元的驱动电桥;
角位移环控制单元,用于在优化后的角速度环控制器模型基础上,构建角位移环控制器模型;所述角位移环控制器模型经粒子群算法参数优化后,根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信 息,生成目标角速度发送给角速度环控制器模型,实现双闭环控制。
在本申请的实施例中,执行机构控制单元主要包括编码器和驱动电桥,其中,编码器用于依据俯仰电机、横摆电机、侧倾电机内部的位置传感器,生成三个方向上驱动电桥IGBT开关顺序信息,基于三个方向上的目标电压信息,生成驱动电桥IGBT占空比;驱动电桥用于实现俯仰、侧倾、横摆三个方向电机转速的开环控制。
在本申请的实施例中,所述俯仰臂4上设置有螺纹,配重块13上设置有螺纹孔,所述螺纹与螺纹孔配合,实现俯仰臂4与配重块13的连接,并使得配重块13在俯仰臂4上位置可调。所述惯性测量单元包括:加速度计,用于测量摄像头的角位移值;陀螺仪,用于测量摄像头的瞬时角速度值;互补计算单元,用于将陀螺仪测量的角速度值与加速度计测量的角度值进行四元数互补计算,得到精确的瞬时角度值。所述俯仰电机、侧倾电机和横摆电机均为无刷直流电机俯仰、侧倾、横摆三个方向的定义为:俯仰轴位于水平面内,方向垂直于车辆前进方向;侧倾轴位于水平面内,方向指向车辆前进方向;横摆轴垂直于大地坐标系水平面向上。各个结构的连接方式为:俯仰电机定子2、侧倾电机定子9、横摆电机定子6与相应固连结构的固连方式为4根螺钉。俯仰电机转子3、侧倾电机转子10、横摆电机转子7与相应固连结构的固连方式为4根螺钉。云台顶座7与车内顶部的固连方式为4根螺钉。电机线束的导出方式为:俯仰电机线束经侧倾臂1上的孔导出,侧倾电机线束经横摆臂上5的孔导出,横摆电机线束经云台顶座7上的孔导出。
本发明还提供一种车载摄像头云台伺服系统的控制方法。
作为一种具体的实施方式,如图3所述,所述的一种车载摄像头云台伺服系统的控制方法,包括以下步骤:
S1.利用安装于摄像头11上的惯性测量单元,测量摄像头11的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息。
S2.根据摄像头三轴云台的机械结构,结合俯仰电机、侧倾电机和横摆电机参数;分别在俯仰、侧倾、横摆三个方向进行Simulink建模,依据电机内部的位置传感器,生成驱动电桥IGBT开关顺序信息;基于目标电压信息,生成驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、 横摆三个方向电机转速的开环控制,得到执行机构控制模型,即俯仰电机、侧倾电机和横摆电机的Simulink控制模型。
S3.基于执行机构控制模型,在Simulink中构建角速度环控制器模型,采用粒子群优化算法迭代优化角速度环控制器模型的参数;参数优化后的角速度环控制器根据惯性测量单元得到的实际角速度信息,结合目标角速度信息,生成目标电压信息。
S4.基于角速度环控制器模型,在Simulink中构建角位移环控制器模型,利用粒子群优化方法对角位移环控制器模型进行参数优化;参数优化后的角位移环控制器模型根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息发送给角速度环控制器模型,实现双闭环控制。
所述步骤S1具体包括:
分别将陀螺仪获得的瞬时角速度,采用求解四元数更新方程的方式,获得瞬时角速度的四元数:
其中,四元数更新方程为:
Figure PCTCN2020101591-appb-000019
其中,q 0、q 1、q 2和q 3表示瞬时角速度的四元数,
Figure PCTCN2020101591-appb-000020
Figure PCTCN2020101591-appb-000021
为四元数的导数;ω x、ω y和ω z分别为瞬时角速度的x轴分量、y轴分量和z轴分量;
根据瞬时角速度的四元数,确定被测物体坐标系b向地面坐标系R转化的四元数矩阵:
Figure PCTCN2020101591-appb-000022
其中,
Figure PCTCN2020101591-appb-000023
为四元数矩阵,T 11、T 12、T 13、T 21、T 22、T 23、T 31、T 32、T 33为四元数矩阵的元素;
根据所述四元数矩阵,确定姿态角为:
Figure PCTCN2020101591-appb-000024
其中,θ为俯仰角,γ为侧倾角,ψ为横摆角;
利用低通滤波器处理加速度计得到的角度值,利用高通滤波器处理陀螺仪解算出的姿态角,然后加权求和得到精确角位移信息;
Figure PCTCN2020101591-appb-000025
Figure PCTCN2020101591-appb-000026
其中,β p为精确角位移信息中的俯仰角,β p1为加速度计得到的俯仰角度值,β p2=θ为陀螺仪解算得到的俯仰角,β r为精确角位移信息中的侧倾角,β r1为加速度计得到的侧倾角度值,β r2=γ为陀螺仪解算得到的侧倾角,τ为时间常数。
所述步骤S2包括以下子步骤:
S201.在SolidWorks中建立摄像头三轴云台的三维模型,配置三维模型材料,求出三根旋转轴上负载的转动惯量;
S202.在Simulink中搭建执行机构控制模型,配置包含相间电感、线电阻、极对数、转轴粘性系数的电机参数和负载转动惯量;
S203.在Simulink中搭建编码器模块,基于位置传感器信息计算IGBT电桥开关顺序;
S204.在Simulink中搭建PWM模块和恒压电源模块;
S205.整个模型的输入为驱动电压信号,即角速度环控制单元输出的目标电压信息u,其满足:
Figure PCTCN2020101591-appb-000027
即得到构建的执行机构控制模型,其中,U max为最大电压限值。
所述步骤S3包括:
S301.在Simulink中构建角速度环控制器模型,并将角速度环控制器模型保存为.mdl格式,在.mdl格式的角速度环控制器模型中设定阶跃目标角速度,将角速度环控制器参数K' p、Ki作为模型输入量,角速度环控 制器模型的阶跃目标角速度的响应角速度作为模型输出量;
S302.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,在粒子速度更新公式(7)中,i表示第i个粒子,k表示迭代次数,d表示维度,x表示粒子位置,pbest和gbest分别表示个体历史最优位置和全局最优位置,c 1、c 2分别为个体学习率和群体学习率,r 1、r 2为[0,1],w为惯性权重,w从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
v id k=w×v id k-1+c 1×r 1×(pbest id-x id k-1)+c 2×r 2×(gbest d-x id k-1)   (7)
x id k=x id k-1+v id k-1     (8)
其中,v id k和v id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子速度,x id k和x id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子位置;pbest id表示k-1次迭代过程中第i个粒子的第d个维度的个体历史最优位置,gbest d表示k-1次迭代过程中第d个维度的全局最优位置;
S303.角速度环控制器的适应度函数为角速度环控制器的超调量与误差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
y fit=w 1×δ+∫w 2×|e|×dt      (9)
其中,y fit为角速度环控制器的适应度函数值,w 1为角速度环控制器的超调量项的权重,w 2为角速度环控制器的误差绝对值项的权重,δ为角速度环控制器的超调量,e为角速度环控制器的误差;
S304.每次迭代中基于sim()命令调用.mdl格式的角位移环控制器模型,获得每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,根据每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,利用公式(9)计算每个例子的适应度函数的值,利用公式(7)对粒子速度进行更新,进而利用公式(8)对粒子位置进行更新;粒子位置和速度应当满足公式(10)和公式(11)限定的约束条件;
Figure PCTCN2020101591-appb-000028
Figure PCTCN2020101591-appb-000029
其中,x max为最大位置限值,v max为最大速度限值;
最终达到最大迭代次数,得到最大迭代次数时的全局最优位置,作为K' p、K i的最优解。
所述步骤S4包括:如图4所示,本发明的角位移环控制器包括:扩张状态观测器ESO,跟踪微分器TD和非线性状态误差反馈控制器NLSEF。
S401.构建扩张状态观测器ESO,二阶ESO离散系统的基本过程如下:
e 0=z 1(k)-y(k)        (12)
z 1(k+1)=z 1(k)+ts×(z 2(k)-β 01×e 0)     (13)
z 2(k+1)=z 2(k)+ts×(z 3(k)-β 02×fal(e 0,0.5,δ 0)+b×u)    (14)
z 3(k+1)=z 3(k)-ts×β 03×fal(e 0,0.25,δ 0)     (15)
Figure PCTCN2020101591-appb-000030
其中,e 0为输出误差,k代表k时刻,y(k)为整个系统k时刻的输出量,z 1(k)、z 2(k)、z 3(k)为k时刻的观测状态向量,z 1(k+1)、z 2(k+1)、z 3(k+1)为k+1时刻更新的观测状态向量,ts为步长,β 01、β 02、β 02、α和δ为通过经验确定的系数,其中,α为0.5,b为待优化的参数;fal(·)为fal函数,u为角位移环控制器输出的控制量;
S402.构建跟踪微分器TD,基于fhan建立的离散系统TD如下:
fh=fhan(x 1(k)-v(k),x 2(k),r 0,h 0)      (17)
x 1(k+1)=x 1(k)+ts×x 2(k)     (18)
x 2(k+1)=x 2(k)+ts×fh      (19)
其中,v(k)为k时刻的控制目标,x 1(k)、x 2(k)为k时刻的跟踪控制目标,x 1(k+1)、x 2(k+1)为k+1时刻更新的跟踪控制目标,ts为步长,fhan(·)为fhan函数,fhan的表达式如式(28)所示:
fhan的表达式如下所示:
d=r 0×h 0 2      (20)
a 0=h 0×x 2(k)      (21)
y=x 1(k)-v(k)+a 0       (22)
Figure PCTCN2020101591-appb-000031
Figure PCTCN2020101591-appb-000032
Figure PCTCN2020101591-appb-000033
a=(a 0+y(k)-a 2)×s y+a 2     (26)
Figure PCTCN2020101591-appb-000034
Figure PCTCN2020101591-appb-000035
其中x为输入的状态向量,r 0、h 0为通过经验确定的系数;
S403.构建非线性状态误差反馈控制器NLSEF,非线性状态误差反馈控制器的离散过程如下:
u 0=K p×fal(e 1,a 10)+K d×fal(e 2,a 20)      (29)
Figure PCTCN2020101591-appb-000036
其中,u为角位移环控制器输出的控制量,e 1、e 2为观测的状态向量误差,e 1=x 1(k+1)-z 1(k+1),e 2=x 2(k+1)-z 2(k+1),a 1、a 2、δ和b 0为通过经验确定的系数;K p、K d分别为比例系数和微分系数,需要进行优化;
S404.将步骤401-403建立的角位移环控制器的Simulink模型保存为.mdl格式,获得.mdl格式的角位移环控制器模型,.mdl格式的角位移环控制器模型的输入为K p、K d、b三个优化参数,输出为阶跃目标角位移的响应角位移;
S405.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,粒子速度更新公式的惯性权重从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
S406.角位移环控制器的适应度函数为角位移环控制器的超调量与角位移环控制器的误差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
y' fit=w′ 1×δ'+∫w' 2×|e'|×dt        (31)
y' fit为角位移环控制器的适应度函数值,w′ 1为角速度环控制器的超调量项的权重,w' 2为角速度环控制器的误差绝对值项的权重,δ'为角速度环控制器的超调量,e'为角速度环控制器的误差;
S407.每次迭代中基于sim()命令调用Simulink模型,计算适应度函数的值,对粒子速度进行更新,进而对粒子位置进行更新;最终达到最大迭代次数,得到K p、K d、b的最优解。
本发明在实施过程中先对角速度环控制模型和角位移环控制模型进行建立和训练,然后利用训练后的模型进行控制。具体的,作为另一种实施方式,如图5所示,一种车载摄像头云台伺服系统的控制方法,包括以下步骤:
A.利用安装于摄像头11上的惯性测量单元,测量摄像头11的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
B.根据摄像头三轴云台的机械结构,结合俯仰电机、侧倾电机和横摆电机参数;分别在俯仰、侧倾、横摆三个方向进行Simulink建模,依据电机内部的位置传感器,生成驱动电桥IGBT开关顺序信息;基于目标电压信息,生成驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制,得到执行机构控制模型,即俯仰电机、侧倾电机和横摆电机的Simulink控制模型;
C.基于执行机构控制模型,在Simulink中构建角速度环控制器模型,并采用粒子群优化算法迭代优化角速度环控制器模型的参数,得到参数优化后的角速度环控制器模型;
D.基于角速度环控制器模型,在Simulink中构建角位移环控制器模型,利用粒子群优化方法对角位移环控制器模型进行参数优化,得到参数优化后的角位移环控制器模型;
E.利用参数优化后的角位移环控制器模型,根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息;利用参数优化后的角速度环控制器模型,根据惯性测量单元得到的实际角速度信息,与目标角速度信息结合,生成目标电压信息;依据俯仰电机、横摆电机、侧倾电机内部的位置传感器,生成三个方向上驱动电桥IGBT开关顺序信息;基于目标电压信息,生成三个方向上驱动电桥IGBT占空比。
本发明构建了以角位移环为外环、角速度环为内环的双闭环控制框架。基于非线性误差反馈控制率(NLSEF),对控制量的各项进行非线性组合,提高了伺服系统的动态性能;基于扩张状态观测器(ESO)实时 观测系统的扰动并对其进行补偿,提高了伺服系统的抗干扰能力。依据经验与优化结合的方法角位移环控制器的参数进行整定,以超调量δ和误差绝对值|e|的加权和作为粒子群优化的适应度函数,该方法降低了角位移环控制器参数整定的复杂度,又保证伺服系统达到相应的控制效果。
以上结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。

Claims (9)

  1. 一种车载摄像头云台伺服系统,其特征在于:包括摄像头三轴云台和伺服控制装置;
    所述摄像头三轴云台包括俯仰电机、侧倾电机、横摆电机、侧倾臂(1)、俯仰臂(4)、横摆臂(5)、云台顶座(7)、摄像头(11)、俯仰轴轴承(12)和配重块(13);所述俯仰电机包括俯仰电机定子(2)和俯仰电机转子(3);所述横摆电机包括横摆电机定子(6)和横摆电机转子(8);所述侧倾电机包括侧倾电机定子(9)和侧倾电机转子(10);
    所述摄像头(11)经俯仰臂(4)与俯仰电机转子(3)固连,所述俯仰电机转子(3)用于实现俯仰方向的运动;所述配重块(13)螺纹连接在俯仰臂(4)上,用于补偿侧倾方向上由于俯仰电机自重所造成的重力不平衡力矩;所述俯仰臂(4)由俯仰轴轴承(12)进行约束;所述俯仰电机定子(2)经侧倾臂(1)与侧倾电机转子(10)固连,所述侧倾电机转子(10)用于实现侧倾方向的运动;侧倾电机定子(9)经横摆臂(5)与横摆电机转子(8)固连;所述横摆电机转子(8)用于实现横摆方向的运动;所述横摆电机定子(6)与云台顶座(7)固连,所述云台顶座(7)在车内顶部的内后视镜固定位置的一侧进行固定,从而将整个摄像头三轴云台固连到车内顶部;所述俯仰电机、侧倾电机和横摆电机内部均设置有位置传感器;
    所述伺服控制装置包括:
    惯性测量单元,安装于摄像头(11)上,用于测量摄像头(11)的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
    执行机构控制单元,用于依据俯仰电机、横摆电机、侧倾电机内部的位置传感器,生成三个方向上驱动电桥IGBT开关顺序信息;基于目标电压信息,生成三个方向上驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制;
    角速度环控制单元,基于执行机构控制单元,构建角速度环控制器模型,所述角速度环控制模型经粒子群算法参数优化后,根据惯性测量单元得到的实际角速度信息,与目标角速度信息结合,生成目标电压信息,并将所述目标电压信息发送给所述执行机构控制单元;
    角位移环控制单元,用于在优化后的角速度环控制器模型基础上,构 建角位移环控制器模型;所述角位移环控制器模型经粒子群算法参数优化后,根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息发送给角速度环控制单元,实现双闭环控制。
  2. 根据权利要求1所述的一种车载摄像头云台伺服系统,其特征在于:所述俯仰臂(4)上设置有螺纹,配重块(13)上设置有螺纹孔,所述螺纹与螺纹孔配合,实现俯仰臂(4)与配重块(13)的连接,并使得配重块(13)在俯仰臂(4)上位置可调。
  3. 根据权利要求1所述的一种车载摄像头云台伺服系统,其特征在于:所述惯性测量单元包括:加速度计,用于测量摄像头的角位移值;
    陀螺仪,用于测量摄像头的瞬时角速度值;
    互补计算单元,用于将陀螺仪测量的角速度值与加速度计测量的角度值进行四元数互补计算,得到精确的瞬时角度值。
  4. 根据权利要求1所述的一种车载摄像头云台伺服系统,其特征在于:所述俯仰电机、侧倾电机和横摆电机均为无刷直流电机。
  5. 根据权利要求1~4中任意一项所述的一种车载摄像头云台伺服系统的控制方法,其特征在于:包括以下步骤:
    S1.利用安装于摄像头(11)上的惯性测量单元,测量摄像头(11)的角速度和角位移信息,并利用四元数互补滤波算法生成精确角位移信息;
    S2.根据摄像头三轴云台的机械结构,结合俯仰电机、侧倾电机和横摆电机参数;分别在俯仰、侧倾、横摆三个方向进行Simulink建模,依据电机内部的位置传感器,生成驱动电桥IGBT开关顺序信息;基于目标电压信息,生成驱动电桥IGBT占空比,通过驱动电桥实现俯仰、侧倾、横摆三个方向电机转速的开环控制,得到执行机构控制模型,即俯仰电机、侧倾电机和横摆电机的Simulink控制模型;
    S3.基于执行机构控制模型,在Simulink中构建角速度环控制器模型,采用粒子群优化算法迭代优化角速度环控制器模型的参数;参数优化后的角速度环控制器根据惯性测量单元得到的实际角速度信息,结合目标角速度信息,生成目标电压信息;
    S4.基于角速度环控制器模型,在Simulink中构建角位移环控制器模 型,利用粒子群优化方法对角位移环控制器模型进行参数优化;参数优化后的角位移环控制器模型根据用户设定的目标转角信息与惯性测量单元得到的实际角位移信息,生成目标角速度信息发送给角速度环控制器模型,实现双闭环控制。
  6. 根据权利要求5所述的一种车载摄像头云台伺服系统的控制方法,其特征在于:所述步骤S1,具体包括:
    分别将陀螺仪获得的瞬时角速度,采用求解四元数更新方程的方式,获得瞬时角速度的四元数:
    其中,四元数更新方程为:
    Figure PCTCN2020101591-appb-100001
    其中,q 0、q 1、q 2和q 3表示瞬时角速度的四元数,
    Figure PCTCN2020101591-appb-100002
    Figure PCTCN2020101591-appb-100003
    为四元数的导数;ω x、ω y和ω z分别为瞬时角速度的x轴分量、y轴分量和z轴分量;
    根据瞬时角速度的四元数,确定被测物体坐标系b向地面坐标系R转化的四元数矩阵:
    Figure PCTCN2020101591-appb-100004
    其中,
    Figure PCTCN2020101591-appb-100005
    为四元数矩阵,T 11、T 12、T 13、T 21、T 22、T 23、T 31、T 32、T 33为四元数矩阵的元素;
    根据所述四元数矩阵,确定姿态角为:
    Figure PCTCN2020101591-appb-100006
    其中,θ为俯仰角,γ为侧倾角,ψ为横摆角;
    利用低通滤波器处理加速度计得到的角度值,利用高通滤波器处理陀 螺仪解算出的姿态角,然后加权求和得到精确角位移信息;
    Figure PCTCN2020101591-appb-100007
    Figure PCTCN2020101591-appb-100008
    其中,β p为精确角位移信息中的俯仰角,β p1为加速度计得到的俯仰角度值,β p2=θ为陀螺仪解算得到的俯仰角,β r为精确角位移信息中的侧倾角,β r1为加速度计得到的侧倾角度值,β r2=γ为陀螺仪解算得到的侧倾角,τ为时间常数。
  7. 根据权利要求5所述的一种车载摄像头云台伺服系统的控制方法,其特征在于:所述步骤S2包括以下子步骤:
    S201.在SolidWorks中建立摄像头三轴云台的三维模型,配置三维模型材料,求出三根旋转轴上负载的转动惯量;
    S202.在Simulink中搭建执行机构控制模型,配置包含相间电感、线电阻、极对数、转轴粘性系数的电机参数和负载转动惯量;
    S203.在Simulink中搭建编码器模块,基于位置传感器信息计算IGBT电桥开关顺序;
    S204.在Simulink中搭建PWM模块和恒压电源模块;
    S205.整个模型的输入为驱动电压信号,即角速度环控制单元输出的目标电压信息u,其满足:
    Figure PCTCN2020101591-appb-100009
    即得到构建的执行机构控制模型,其中,U max为最大电压限值。
  8. 根据权利要求5所述的一种车载摄像头云台伺服系统的控制方法,其特征在于:所述步骤S3包括:
    S301.在Simulink中构建角速度环控制器模型,并将角速度环控制器模型保存为.mdl格式,在.mdl格式的角速度环控制器模型中设定阶跃目标角速度,将角速度环控制器参数作为模型输入量,角速度环控制器模型的阶跃目标角速度的响应角速度作为模型输出量;所述角速度环控制器参数包括角速度环控制器的比例系数K' p和积分系数K i
    S302.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,在粒子速度更新公式(7)中,i表示第i个粒子, k表示迭代次数,d表示维度,x表示粒子位置,pbest和gbest分别表示个体历史最优位置和全局最优位置,c 1、c 2分别为个体学习率和群体学习率,r 1、r 2为[0,1],w为惯性权重,w从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
    v id k=w×v id k-1+c 1×r 1×(pbest id-x id k-1)+c 2×r 2×(gbest d-x id k-1)  (7)
    x id k=x id k-1+v id k-1   (8)
    其中,v id k和v id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子速度,x id k和x id k-1分别表示第k次迭代和第k-1次迭代的第i个粒子的第d个维度的粒子位置;pbest id表示k-1次迭代过程中第i个粒子的第d个维度的个体历史最优位置,gbest d表示k-1次迭代过程中第d个维度的全局最优位置;
    S303.角速度环控制器的适应度函数为角速度环控制器的超调量与误差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
    y fit=w 1×δ+∫w 2×|e|×dt  (9)
    其中,y fit为角速度环控制器的适应度函数值,w 1为角速度环控制器的超调量项的权重,w 2为角速度环控制器的误差绝对值项的权重,δ为角速度环控制器的超调量,e为角速度环控制器的误差;
    S304.每次迭代中基于sim()命令调用.mdl格式的角位移环控制器模型,获得每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,根据每个粒子对应的角位移环控制器模型的阶跃目标角速度的响应转角,利用公式(9)计算每个例子的适应度函数的值,利用公式(7)对粒子速度进行更新,进而利用公式(8)对粒子位置进行更新;粒子位置和速度应当满足公式(10)和公式(11)限定的约束条件;
    Figure PCTCN2020101591-appb-100010
    Figure PCTCN2020101591-appb-100011
    其中,x max为最大位置限值,v max为最大速度限值;
    最终达到最大迭代次数,得到最大迭代次数时的全局最优位置,作为速度环控制器参数的最优解。
  9. 根据权利要求5所述的一种车载摄像头云台伺服系统的控制方法,其特征在于:所述步骤S4包括:
    S401.构建扩张状态观测器ESO,二阶ESO离散系统的基本过程如下:
    e 0=z 1(k)-y(k)  (12)
    z 1(k+1)=z 1(k)+ts×(z 2(k)-β 01×e 0)  (13)
    z 2(k+1)=z 2(k)+ts×(z 3(k)-β 02×fal(e 0,0.5,δ 0)+b×u)  (14)
    z 3(k+1)=z 3(k)-ts×β 03×fal(e 0,0.25,δ 0)  (15)
    Figure PCTCN2020101591-appb-100012
    其中,e 0为输出误差,k代表k时刻,y(k)为整个系统k时刻的输出量,z 1(k)、z 2(k)、z 3(k)为k时刻的观测状态向量,z 1(k+1)、z 2(k+1)、z 3(k+1)为k+1时刻更新的观测状态向量,ts为步长,β 01、β 02、β 03分别为扩张状态观测器ESO的第一误差系数、第二误差系数和第三误差系数、α和δ 0分别为fal函数的指数系数和阈值系数,b为控制量系数;fal(·)为fal函数,u为角位移环控制器输出的控制量;
    S402.构建跟踪微分器TD,基于fhan建立的离散系统TD如下:
    fh=fhan(x 1(k)-v(k),x 2(k),r 0,h 0)  (17)
    x 1(k+1)=x 1(k)+ts×x 2(k)  (18)
    x 2(k+1)=x 2(k)+ts×fh  (19)
    其中,v(k)为k时刻的控制目标,x 1(k)、x 2(k)为k时刻的跟踪控制目标,x 1(k+1)、x 2(k+1)为k+1时刻更新的跟踪控制目标,ts为步长,fhan(·)为fhan函数,fhan的表达式如式(28)所示:
    fhan的表达式如下所示:
    d=r 0×h 0 2  (20)
    a 0=h 0×x 2(k)  (21)
    y=x 1(k)-v(k)+a 0  (22)
    Figure PCTCN2020101591-appb-100013
    Figure PCTCN2020101591-appb-100014
    Figure PCTCN2020101591-appb-100015
    a=(a 0+y(k)-a 2)×s y+a 2  (26)
    Figure PCTCN2020101591-appb-100016
    Figure PCTCN2020101591-appb-100017
    其中x为输入的状态向量,r 0和h 0为fhan函数的第一设定参数和第二设定参数,d、a 0、a 1、a 2、s y、a和s a分别为fhan函数的第一中间参数、第二中间参数、第三中间参数、第四中间参数、第五中间参数、第六中间参数和第七中间参数;
    S403.构建非线性状态误差反馈控制器NLSEF,非线性状态误差反馈控制器的离散过程如下:
    u 0=K p×fal(e 1,a 10)+K d×fal(e 2,a 20)   (29)
    Figure PCTCN2020101591-appb-100018
    其中,u 0为角位移环控制器的中间参数,u为角位移环控制器输出的控制量,e 1、e 2为观测的两个状态向量误差,e 1=x 1(k+1)-z 1(k+1),e 2=x 2(k+1)-z 2(k+1),a 1、a 2为fal函数的指数系数α的两个具体的取值,b 0为通过经验确定的系数;K p、K d分别为比例系数和微分系数,需要进行优化;
    S404.将步骤401-403建立的角位移环控制器的Simulink模型保存为.mdl格式,获得.mdl格式的角位移环控制器模型,.mdl格式的角位移环控制器模型的输入为角位移环控制器模型的参数,输出为阶跃目标角位移的响应角位移;所述角位移环控制模型的参数包括角位移环的比例系数K p、微分系数K d和控制量系数b;
    S405.在Matlab中建立PSO主函数,选取粒子维数为2,粒子数目为50,最大迭代次数为100,粒子速度更新公式的惯性权重从0.9至0.4线性递减,提高搜索效率并降低陷入局部最优的几率;
    S406.角位移环控制器的适应度函数为角位移环控制器的超调量与角位移环控制器的误差绝对值的加权和,超调量项的惯性权重为0.009,误差绝对值项的惯性权重为1,如下所示:
    y' fit=w′ 1×δ'+∫w′ 2×|e'|×dt  (31)
    其中,y' fit为角位移环控制器的适应度函数值,w′ 1为角速度环控制器 的超调量项的权重,w' 2为角速度环控制器的误差绝对值项的权重,δ'为角速度环控制器的超调量,e'为角速度环控制器的误差;
    S407.每次迭代中基于sim()命令调用Simulink模型,计算适应度函数的值,对粒子速度进行更新,进而对粒子位置进行更新;最终达到最大迭代次数,得到K p、K d、b的最优解。
PCT/CN2020/101591 2019-11-22 2020-07-13 一种车载摄像头云台伺服系统及控制方法 WO2021098238A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/280,390 US11718321B2 (en) 2019-11-22 2020-07-13 Vehicle-mounted camera gimbal servo system and control method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911152526.0A CN110794877B (zh) 2019-11-22 2019-11-22 一种车载摄像头云台伺服系统及控制方法
CN201911152526.0 2019-11-22

Publications (1)

Publication Number Publication Date
WO2021098238A1 true WO2021098238A1 (zh) 2021-05-27

Family

ID=69445799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101591 WO2021098238A1 (zh) 2019-11-22 2020-07-13 一种车载摄像头云台伺服系统及控制方法

Country Status (3)

Country Link
US (1) US11718321B2 (zh)
CN (1) CN110794877B (zh)
WO (1) WO2021098238A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755616A (zh) * 2022-11-30 2023-03-07 广州成至智能机器科技有限公司 无人机云台控制方法、装置、设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110794877B (zh) 2019-11-22 2020-10-13 北京理工大学 一种车载摄像头云台伺服系统及控制方法
CN111352410A (zh) * 2020-04-26 2020-06-30 重庆市亿飞智联科技有限公司 飞行控制方法、装置、存储介质、自动驾驶仪及无人机
CN111959409B (zh) * 2020-07-29 2022-10-18 北京三快在线科技有限公司 云台调节方法、存储介质、电子设备及车辆
CN115411991B (zh) * 2022-10-09 2023-05-12 哈尔滨工业大学 同步磁阻电机驱动器的逆变器非线性自学习方法
CN115685762B (zh) * 2022-11-10 2024-03-19 中船重工安谱(湖北)仪器有限公司 干涉仪动镜模块的控制方法、装置及存储介质
CN116039941B (zh) * 2022-11-27 2023-07-18 燕山大学 适用于海上作业直升机的全自动牵引校正入库系统及方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6630950B1 (en) * 1998-03-19 2003-10-07 Canon Kabushiki Kaisha Apparatus for improving image vibration suppression
CN101858781A (zh) * 2010-06-09 2010-10-13 天津大学 基于遥控车载平台的居住区夜间光环境检测系统
CN103148324A (zh) * 2013-03-15 2013-06-12 崔新巍 车载自平衡摄像云台
CN206039292U (zh) * 2016-01-03 2017-03-22 广东海洋大学 一种智能车行进控制系统
CN108705980A (zh) * 2018-05-07 2018-10-26 集美大学 车辆前轮与摄像头同步转向系统
CN110794877A (zh) * 2019-11-22 2020-02-14 北京理工大学 一种车载摄像头云台伺服系统及控制方法

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267743B (zh) * 2014-07-22 2017-01-11 浙江工业大学 一种采用自抗扰控制技术的船载摄像稳定平台控制方法
CN104865968B (zh) * 2015-04-22 2017-06-23 浙江工业大学 一种采用串级自抗扰控制技术的四旋翼飞行器悬停控制方法
CN104898429B (zh) * 2015-05-27 2017-09-22 北京工业大学 一种基于自抗扰控制的三旋翼姿态控制方法
CN105429551B (zh) * 2016-01-18 2019-10-08 华东交通大学 一种伺服系统电流环控制参数自整定方法
CN106354021A (zh) * 2016-11-30 2017-01-25 江西洪都航空工业集团有限责任公司 基于pso的飞机纵向运动俯仰角控制系统pid优化方法
CN206413079U (zh) * 2016-12-29 2017-08-15 昊翔电能运动科技(昆山)有限公司 云台增稳系统
CN106647283A (zh) * 2017-01-23 2017-05-10 无锡信捷电气股份有限公司 一种基于改进cpso的自抗扰位置伺服系统优化设计方法
WO2018170882A1 (en) * 2017-03-24 2018-09-27 Sz Dji Osmo Technology Co., Ltd. Method and system for adaptive gimbal
KR102004749B1 (ko) * 2018-01-16 2019-10-04 군산대학교산학협력단 풍력 터빈의 요 제어 방법 및 시스템
CN108332716A (zh) * 2018-02-07 2018-07-27 徐州艾特卡电子科技有限公司 一种自动驾驶汽车环境感知系统
CN109067264B (zh) * 2018-09-17 2020-07-28 长安大学 一种平衡车系统及其控制方法
CN109696827B (zh) * 2018-12-28 2021-11-09 西安邮电大学 惯性权重余弦调整粒子群优化算法的pid参数整定方法
CN109799830B (zh) * 2019-03-06 2023-11-14 山东交通学院 冲击压路机自动驾驶控制系统及方法
CN110440805B (zh) * 2019-08-09 2021-09-21 深圳市道通智能航空技术股份有限公司 一种偏航角的融合方法、装置及飞行器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6630950B1 (en) * 1998-03-19 2003-10-07 Canon Kabushiki Kaisha Apparatus for improving image vibration suppression
CN101858781A (zh) * 2010-06-09 2010-10-13 天津大学 基于遥控车载平台的居住区夜间光环境检测系统
CN103148324A (zh) * 2013-03-15 2013-06-12 崔新巍 车载自平衡摄像云台
CN206039292U (zh) * 2016-01-03 2017-03-22 广东海洋大学 一种智能车行进控制系统
CN108705980A (zh) * 2018-05-07 2018-10-26 集美大学 车辆前轮与摄像头同步转向系统
CN110794877A (zh) * 2019-11-22 2020-02-14 北京理工大学 一种车载摄像头云台伺服系统及控制方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755616A (zh) * 2022-11-30 2023-03-07 广州成至智能机器科技有限公司 无人机云台控制方法、装置、设备及存储介质

Also Published As

Publication number Publication date
US11718321B2 (en) 2023-08-08
CN110794877B (zh) 2020-10-13
US20220306157A1 (en) 2022-09-29
CN110794877A (zh) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2021098238A1 (zh) 一种车载摄像头云台伺服系统及控制方法
CN108549399B (zh) 飞行器偏航角修正方法、装置及飞行器
WO2018099260A1 (zh) 一种云台姿态控制方法及系统
CN104811588B (zh) 一种基于陀螺仪的船载稳像控制方法
CN103792957B (zh) 一种轻型二自由度相机稳定平台装置
WO2021027638A1 (zh) 一种偏航角的融合方法、装置及飞行器
CN108488572A (zh) 一种主动式防抖云台及其控制方法
US20200133101A1 (en) Control method for gimbal, controller, and gimbal
CN109254587B (zh) 在无线充电条件下稳定悬停的小型无人机及其控制方法
CN112352759B (zh) 一种多旋翼喷杆结构及其控制方法
CN112947062B (zh) 一种复合翼垂直起降无人机旋翼模式控制方法及系统
WO2021037047A1 (zh) 一种飞行器的偏航角修正方法、装置及飞行器
CN107491083A (zh) 一种基于饱和自适应滑模控制的四旋翼自主着船方法
Sun et al. Nonlinear robust compensation method for trajectory tracking control of quadrotors
CN116069050A (zh) 一种抗扰动的旋翼无人机吊载系统减摇控制方法及装置
CN109947099B (zh) 一种基于事件触发机制的机器人控制方法及装置
CN110851770A (zh) 车载相机位姿校正装置、方法、控制设备及校正系统
CN114942648B (zh) 一种复杂风场下的桥梁检测特种无人机自主稳定方法
CN113110542B (zh) 一种基于单轴云台的四旋翼无人机目标追踪系统
JP2015158390A (ja) 制御対象モデル及び姿勢制御方法
CN115826597A (zh) 基于自适应神经网络的旋翼飞行器抗扰控制方法及设备
CN111381491B (zh) 球形机器人控制系统及其设计方法和直线运动控制方法
Michele et al. A gimbal platform stabilization for topographic applications
Ivan Attitude stabilization of a quad-rotor uav based on rotor speed sensing with accelerometer data estimation via kalman filtering
CN113671835A (zh) 一种基于模糊切换增益调节的惯性稳定平台滑模控制方法

Legal Events

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

Ref document number: 20890714

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20890714

Country of ref document: EP

Kind code of ref document: A1

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29/03/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20890714

Country of ref document: EP

Kind code of ref document: A1