WO2021016985A1 - Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium - Google Patents

Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium Download PDF

Info

Publication number
WO2021016985A1
WO2021016985A1 PCT/CN2019/098860 CN2019098860W WO2021016985A1 WO 2021016985 A1 WO2021016985 A1 WO 2021016985A1 CN 2019098860 W CN2019098860 W CN 2019098860W WO 2021016985 A1 WO2021016985 A1 WO 2021016985A1
Authority
WO
WIPO (PCT)
Prior art keywords
pan
tilt
tilt head
control deviation
attitude
Prior art date
Application number
PCT/CN2019/098860
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2019/098860 priority Critical patent/WO2021016985A1/en
Priority to CN201980029986.6A priority patent/CN112154398A/en
Publication of WO2021016985A1 publication Critical patent/WO2021016985A1/en

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
    • 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
    • G05D3/20Control of position or direction using feedback using a digital comparing device

Definitions

  • This application relates to the technical field of pan/tilt heads, and specifically to a method for controlling a pan/tilt head, a controller, a pan/tilt head, an unmanned mobile platform, and a computer-readable storage medium.
  • PTZ is a support device used to install and fix camera equipment.
  • this type of small PTZ also uses multiple motors to control the actions of multiple shaft arms to adjust the posture of the PTZ.
  • Speed control increases the angular speed of the motor to overcome the static friction, and then the pan/tilt reaches the desired posture. In speed control, the increase in angular velocity is usually controlled as the error increases.
  • the embodiments of the present application provide a pan-tilt control method, a controller, a pan-tilt, an unmanned mobile platform, and a storage medium, which can reduce power consumption and reduce heat generation of the fuselage.
  • the first aspect of this application is to propose a method for controlling the pan/tilt.
  • the second aspect of this application is to provide a controller.
  • the third aspect of this application is to propose a pan-tilt.
  • the fourth aspect of this application is to propose an unmanned mobile platform.
  • the fifth aspect of this application is to provide a computer-readable storage medium.
  • a method for controlling a pan/tilt head includes a base, a plurality of shaft arms, and a plurality of motors.
  • the multiple motors are used to drive the multiple shaft arms to rotate, respectively.
  • the control method includes: confirming the measurement control deviation of the gimbal according to the target posture of the gimbal and the measurement posture of the base; based on the condition that the measurement control deviation of the gimbal is in the preset range, controlling multiple motors to output specified torques to drive the multiple A shaft arm rotates.
  • the pan/tilt includes a base, a plurality of shaft arms, and a plurality of motors that control the rotation of the multiple shaft arms, and the measured attitude of the base and the input target attitude of the pan/tilt are detected by sensors Obtain the measurement control deviation, where the measured posture of the base is the actual posture of the gimbal after the movement, and the target posture of the gimbal is the preset posture expected according to the operation instructions. Because the gimbal base and the pivot arm or other movable positions are different This kind of friction force can easily cause the deviation between the measured attitude of the base and the target attitude of the gimbal.
  • the measurement control deviation can be obtained.
  • the motor is controlled for low-speed action, Due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the actual action of the motor does not cause the motor to heat up and power consumption increases.
  • a preset range for the measurement control deviation determines the measurement control deviation Whether it is within the preset range, if the measured control deviation is within the range, it can be considered that the motor has not overcome the friction force to perform actual action, and then the motor is controlled to output the preset specified torque, thereby driving the rotation of multiple shaft arms to make the pan/tilt posture
  • the motor is controlled to output at a low speed, which prevents the motor from outputting a large torque for a long time without actual action, and prevents the increase in power consumption caused by the motor heating when the error is small.
  • a controller including: a processor and a memory, a computer program is stored in the memory, and the processor executes the computer program stored in the memory to realize: according to the target posture of the pan/tilt and the base
  • the measurement attitude confirms the measurement control deviation of the pan/tilt head; based on the situation that the measurement control deviation of the pan/tilt head is within the preset range, the multiple motors of the pan/tilt head are controlled to output specified torques to drive the multiple shaft arms of the pan/tilt head to rotate.
  • the controller provided in the present application obtains the measured posture of the base detected by the sensor and the input target posture of the pan/tilt through the processor to obtain the measurement control deviation, wherein the measured posture of the base is the actual posture after the movement of the pan/tilt.
  • the target posture is the preset posture expected according to the operating instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause the measured posture of the base to deviate from the target posture of the gimbal.
  • the processor compares the measured posture of the base with the target posture to obtain the measured control deviation.
  • the processor controls the motor for low-speed action, the motor’s static friction force is very large, which may cause the motor to output a large torque for a long time, but No actual action of the motor caused the motor to heat up and power consumption increased. Therefore, the processor sets a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range.
  • the motor can be considered The actual action does not overcome the friction force, and the processor controls the motor to output a preset specified torque, thereby driving multiple shaft arms to rotate, so that when the PTZ attitude error is small, the motor is controlled to output at a lower speed, which avoids The motor outputs a large torque for a long time without actual action, which prevents the increase of power consumption caused by the motor heating when the error is small.
  • the third aspect of the present application proposes a pan/tilt head, including a controller of any of the above technical solutions; and multiple shaft arms, including a yaw shaft arm, a pitch shaft arm, and a roll shaft arm; multiple motors, The multiple shaft arms are driven to rotate multiple motors; the base is connected with the yaw shaft arm. Since the pan/tilt head includes the controller of any of the above technical solutions, it has all the beneficial effects of the controller of any of the above technical solutions, which will not be repeated here.
  • an unmanned mobile platform which includes the pan-tilt in any of the above technical solutions. Since the unmanned mobile platform includes the pan/tilt of any of the above technical solutions, it has all the beneficial effects of the pan/tilt of any of the above technical solutions, which will not be repeated here.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the pan-tilt control method of any of the above technical solutions is realized. Therefore, the beneficial effects of the pan-tilt control method with any of the above technical solutions are not repeated here.
  • Fig. 1 shows a schematic flowchart of a pan-tilt control method according to an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a pan-tilt control method according to another embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a pan-tilt control method according to another embodiment of the present application
  • Fig. 4 shows a schematic flow chart of a method for acquiring a target attitude of a pan-tilt according to an embodiment of the present application
  • FIG. 5 shows a schematic flowchart of a method for acquiring a measurement attitude of a base according to an embodiment of the present application
  • Fig. 6 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application
  • FIG. 7 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application.
  • Fig. 9 shows a schematic block diagram of a controller of an embodiment of the present application.
  • Fig. 10 shows a schematic block diagram of a pan-tilt according to an embodiment of the present application
  • Figure 11 shows the control deviation and following speed curve of an embodiment of the present application
  • Figure 12 shows the control deviation and following speed curve of a current position double loop control method
  • Figure 13 shows an experimental simulation diagram of motor torque and measurement control deviation data of a current position dual-loop control method
  • Fig. 14 shows an experimental simulation diagram of motor torque and measurement control deviation data of an embodiment of the present application
  • Figure 15 shows a control block diagram of a current position dual-loop control method
  • Fig. 16 shows a control block diagram of a pan-tilt control method according to an embodiment of the present application.
  • controller 10 controller, 12 processor, 14 memory, 20 gimbal, 222 yaw axis arm, 224 pitch axis arm, 226 roll axis arm, 242 yaw motor, 244 pitch motor, 246 roll motor.
  • pan-tilt control method controller, pan-tilt, unmanned mobile platform, and computer-readable storage medium according to some embodiments of the present application with reference to FIGS. 1 to 16.
  • FIG. 1 shows a schematic flowchart of the pan/tilt control method according to an embodiment of the present application.
  • the PTZ control method includes:
  • the attitude of the pan/tilt head is determined by the joint rotation of multiple shaft arms, where the shaft arm includes one or any combination of a roll axis, a pitch axis, and a yaw axis.
  • the acquired measurement attitude of the base and the input target attitude of the pan/tilt acquire the measurement control deviation, wherein the measured attitude of the base is the actual attitude of the base after the pan/tilt moves.
  • the target posture of is the preset posture expected according to the operation instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause deviations between the measured posture and the target posture of the gimbal. Comparing the measured attitude with the target attitude of the gimbal can get the measurement control deviation.
  • the motor When controlling the motor for low-speed action, due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the motor does not occur The actual action caused the motor to heat up and the power consumption increased. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range. If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force. Action, the motor is controlled to directly output the preset specified torque, thereby driving the rotation of multiple shaft arms, so that when the attitude error of the pan/tilt is small, the motor is controlled to output at the minimum speed, avoiding the fact that the motor does not actually move. Long-term output of large torque can prevent the increase of power consumption caused by motor heating when the error is small.
  • the preset range is a larger value, that is, when the measurement and control deviation of the pan/tilt is large, the motor is directly controlled to output a larger torque, and the larger torque is the torque that is sufficient for the static friction of the motor to avoid the It is not enough to overcome the motor heating caused by the static friction of the motor, and the power consumption increases.
  • the pan/tilt receives a control instruction, and controls multiple motors to control the multiple axis arms of the corresponding pan/tilt to move according to the control instruction.
  • the control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction is large, which causes the actual movement position of the axle arm to not reach the desired position.
  • the PTZ measurement is determined according to the expected position of each axle arm and the actual position of each axle arm
  • the control deviation that is, the position error of the pan/tilt, determines whether the measurement control error of the pan/tilt is within the preset range.
  • the attitude error of the pan/tilt is large, and the motor is directly controlled to output the specified torque drive
  • the shaft arm rotates to the desired attitude, thus avoiding the motor output very small desired speed when the gimbal has a small attitude error, and at the same time, it can generate a large angular velocity sufficient to overcome the static friction when the gimbal has a large attitude error.
  • Fig. 2 shows a schematic flow chart of a method for controlling a pan-tilt according to another embodiment of the present application. As shown in Fig. 2, the method for controlling a pan-tilt includes:
  • the control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt.
  • the relationship curve of control deviation, the measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measured attitude of each axle arm and the target attitude of the pan/tilt.
  • the measurement control deviation of each pan/tilt can obtain the motor output following speed corresponding to each shaft arm by controlling the deviation and following the speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm.
  • a shaft arm reaches the desired posture.
  • the mobile data storage device stores a variety of different control deviations and following speed curves, and the mobile data storage device is connected to the pan/tilt.
  • the pan/tilt can perform multiple control deviations and following speed curves stored in the mobile storage device according to the user's choice. Make selections to obtain the appropriate control deviation and following speed curve.
  • the user can select different control deviations and following speed curves according to their own needs or the pan/tilt model.
  • the PTZ can be connected to the cloud server through an external device, and the control deviation and following speed curves corresponding to the PTZ model can be obtained from the cloud server.
  • the different control deviations and following speed curves are stored in the cloud server, which also enables the pan/tilt manufacturer to update the control deviation and following speed curve in the cloud server at any time.
  • the control deviation and following speed curve of the corresponding model of the PTZ can be automatically obtained, avoiding the cumbersome operation required by the user to select the control deviation and following the speed curve by themselves, and further improving the user experience.
  • the processor of the pan/tilt has an algorithm program for real-time acquisition of control deviation and following speed curve.
  • the pan/tilt uses the algorithm program to calculate the control deviation and following speed curve based on the attitude data collected in real time.
  • the pan/tilt due to the different environments used by the pan/tilt, its various parameters will not be exactly the same. For example, when the pan/tilt is used in an environment with high air humidity, the static friction of the pan/tilt motor itself and the air humidity are low. The environment is different, and the preset control deviation and following speed curve have set the corresponding measurement control deviation range, which cannot be adjusted according to the environment used by the pan/tilt. The generation algorithm of the control deviation and following speed curve is stored in the pan/tilt.
  • the controller of the pan/tilt can calculate according to the different attitude errors collected each time to obtain the real-time change of the control deviation and follow the speed curve, which realizes that the pan/tilt can work in various environments without outputting for a long time. Larger torque torque does not act, resulting in increased heat and power consumption of the motor.
  • the gimbal can calculate the control deviation and following speed curve according to the attitude error generated after the first action after starting up. It does not need to regenerate the control deviation and following speed curve every time it moves to avoid excessive calculations. The amount of power consumption increases and the service life of the pan/tilt is shortened.
  • the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating.
  • the improved control deviation and follow the speed curve, in the pan/tilt When the measurement and control deviation is small, it is ensured that the angular speed output by the motor is basically maintained at the initial speed, and the fluctuations are stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it is guaranteed that the motor will not generate a lot of heat.
  • the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force.
  • the motor corresponding to the shaft arm will not output a small expectation
  • the shaft arm can be controlled to run at a larger desired speed to overcome the static friction.
  • the preset range can be 0 ⁇
  • the measurement control deviation value X is between 0 ⁇
  • the corresponding shaft arm following speed fluctuates smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm following speed There is roughly a positive correlation with the control deviation.
  • the pan/tilt when the measurement control deviation value X of the pan/tilt is between 0 ⁇
  • the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation Increase and increase, that is, the increase in the follow-up speed of the control shaft arm causes the motor to output with greater torque, thereby reducing the measurement and control deviation of the PTZ.
  • control deviation and the following speed curve are obtained through the following process: obtaining the control deviation and following speed curve pre-stored in the memory of the pan/tilt; or, obtaining the data received by the communication device of the pan/tilt.
  • the control deviation and following speed curve in the received control command are obtained through the following process: obtaining the control deviation and following speed curve pre-stored in the memory of the pan/tilt; or, obtaining the data received by the communication device of the pan/tilt. The control deviation and following speed curve in the received control command.
  • control deviation and the following speed curve can be stored in the memory in the pan/tilt, or the communication device of the pan/tilt may be used to receive the control instructions transmitted from the outside, and receive the control deviation and following from the external transmission.
  • the speed curve can be updated at any time, so as to adjust the curve according to actual usage.
  • Fig. 3 shows a schematic flow chart of a method for controlling a pan/tilt according to another embodiment of the present application. As shown in Fig. 3, the method for controlling a pan/tilt includes:
  • the measurement control deviation of the pan/tilt head is determined according to the acquired target attitude of the pan/tilt and the measured attitude of the base.
  • obtaining the target posture of the pan/tilt head can be obtained in many ways, including the following embodiments.
  • the PTZ communication device communicates with the somatosensory controller. As shown in Figure 4, the method for obtaining the target posture of the PTZ:
  • the somatosensory controller includes a sensor, and the sensor includes an inertial measurement unit and a compass, which can measure the attitude information and speed information of the somatosensory controller, and can determine the pan/tilt measurement data according to the attitude information and speed information. It also includes a transmitter.
  • the transmitter is a wireless signal transmitter.
  • the somatosensory controller sends the gimbal measurement data to the gimbal through the transmitter, and the gimbal determines the target attitude of the gimbal according to the gimbal measurement data.
  • the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel.
  • the corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter.
  • the platform determines the target attitude of the platform based on the measurement data of the platform.
  • the measurement data of the pan/tilt is the angular velocity data of the pan/tilt.
  • the process of confirming the target attitude of the pan/tilt according to the measurement data of the pan/tilt specifically includes: determining the target angular velocity of the pan/tilt based on the angular velocity data of the pan/tilt. ; Integrate the target angular velocity of the gimbal to determine the target attitude of the gimbal.
  • the gimbal measurement data is angular velocity data
  • the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system.
  • the gravity direction vector is measured by the accelerometer in the inertial measurement unit, and the geomagnetic direction is obtained by the compass. Integrate the difference between the direction and the geomagnetic direction to obtain the true east direction vector, and perform the difference integration of the gravity direction vector and the true east direction vector to obtain the true north direction vector.
  • the reference space attitude cosine matrix is converted into attitude quaternion, and the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information.
  • the pan/tilt can be controlled by the motion sensing controller to enable the user to interact with the cloud. The interactive experience between stations is better and the user experience is improved.
  • the method for obtaining the target posture of the PTZ through communication with the terminal equipment through the PTZ communication device :
  • the control communication device receives the control instruction sent by the terminal device, and the control instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
  • the user can realize the control instruction of the pan/tilt control through the data input of the setting panel of the terminal, wherein the control instruction includes the movement trajectory of controlling the movement of the pan/tilt, and the terminal can simulate and generate the pan/tilt according to the control instruction according to the movement trajectory.
  • the posture after exercise is the target posture of the PTZ.
  • the target posture of the PTZ is added to the control instruction, and the communication device of the terminal itself is connected to the communication device of the PTZ, and the control instruction is sent to the cloud.
  • the pan/tilt can obtain the target posture of the pan/tilt, and the pan/tilt is connected with other terminals to realize the effect of remote control of the pan/tilt.
  • the user can use a computer or mobile terminal to control the pan/tilt.
  • the gimbal has a control handle, and the method of obtaining the target posture of the gimbal:
  • the setting instruction includes the target posture of the pan/tilt.
  • the pan/tilt has a control handle for controlling the movement of the pan/tilt, and the control handle has a setting panel.
  • the user can input setting instructions through the setting panel.
  • the user can directly send the cloud to the pan/tilt through the control handle.
  • the target posture setting instruction of the platform, the setting handle can be a structure connected with the pan-tilt, suitable for holding the pan-tilt, and the setting handle is set at the grip position, and the posture of the pan-tilt can be adjusted by operating the setting handle.
  • the gimbal has a control handle, and the method of obtaining the target posture of the gimbal:
  • the pan/tilt has an inductive control handle, which includes an inertial measurement unit, which can detect the attitude of the control handle.
  • the inertial measurement unit measures and records the control The attitude of the handle, and the attitude of the control handle is used as the target attitude of the pan/tilt.
  • the somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the attitude of the somatosensory handle itself as the target attitude of the pan/tilt, which simplifies
  • the user's setting of the PTZ posture is convenient for the user to operate, saves a lot of tedious operations, and improves the user's experience.
  • the method for obtaining the measured attitude of the base includes:
  • the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt.
  • the base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined.
  • the platform is equipped with an inertial measurement unit. The measured posture and joint angle of the platform can be obtained by using the inertial measurement unit. The measured posture of the base is determined according to the measured posture and joint angle of the platform.
  • Fig. 6 shows a schematic flow chart of a method for controlling a pan-tilt according to another embodiment of the present application. As shown in Fig. 6, the method for controlling a pan-tilt includes:
  • S608 Determine whether the measurement control deviation of the pan/tilt is within a preset range, execute S610 if the judgment result is yes, and execute S612 if the judgment result is otherwise;
  • S612 Confirm the driving torque of the multiple motors according to the target posture of the pan/tilt, and control the multiple motors to output the drive torque.
  • the measurement control deviation of the pan/tilt is within the preset range.
  • the measurement control deviation of the pan/tilt is within the preset range, it can be determined that the position error of the pan/tilt is not large.
  • Change the speed of multiple motors to maintain the initial minimum speed means that the control motor does not control the motor to increase the following speed according to the position error, so that the multiple motors output the specified torque.
  • the measurement control deviation of the platform is outside the preset range, it can be considered that the position error of the pan/tilt is too large.
  • FIG. 7 shows a schematic flowchart of a method for controlling a pan/tilt head according to another embodiment of the present application. As shown in FIG. 7, the method for controlling a pan/tilt head includes:
  • S708 Determine whether the measurement control deviation of the pan/tilt is within a preset range, execute S710 if the judgment result is yes, and execute S712 if the judgment result is otherwise;
  • S712 Determine the position errors of multiple axis arms according to the target posture of the pan/tilt;
  • S716 According to the target angular velocities of the multiple shaft arms and the measured angular velocities of the multiple shaft arms, confirm the drive torque of the multiple motors, and control the multiple motors to output drive torque.
  • the control method shown in Fig. 15 and Fig. 16 is adopted, and the position error of multiple axis arms in the pan/tilt is determined first, and the position error of each axis arm can be determined by the target posture of the pan/tilt.
  • the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity.
  • the angular velocity error can be calculated Obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so as to realize that the motor output is not controlled when the PTZ attitude error is small Therefore, the motor will not output a large torque for a long time when the static friction force is large, thereby reducing the heating and the increase of power consumption caused by the motor due to the obstacle of static friction force. At the same time, it also extends the service life of the motor in the pan/tilt, thereby improving the user experience.
  • FIG. 15 is the current position double-loop control block diagram of the pan/tilt motor.
  • the pan/tilt receives external instructions to determine the target attitude of the pan/tilt.
  • the difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt.
  • the angular velocity output of the motor is determined.
  • the above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action.
  • Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control.
  • the torque may rise suddenly and rapidly.
  • the output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase.
  • the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption.
  • Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
  • FIG. 8 shows a schematic flowchart of a method for controlling a pan/tilt head according to another embodiment of the present application. As shown in FIG. 8, the method for controlling a pan/tilt head includes:
  • S808 Determine whether the measurement control deviation of the PTZ is within a preset range, execute S810 if the judgment result is yes, and execute S812 if the judgment result is otherwise;
  • the preset algorithm is the Jacobian inverse matrix algorithm.
  • the attitude error of each pivot arm in the pan/tilt needs to be uniform.
  • the attitude error of the pan/tilt can be calculated according to the target attitude of the pan/tilt and the measured attitude of the pan/tilt, and the inverse matrix of the Jacobian is based on the cloud
  • the attitude error of the platform calculates the position error of multiple shaft arms.
  • the Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system.
  • the position error of the entire pan/tilt can be converted into every The two-dimensional error corresponding to each axis arm is used to obtain the position error of each axis arm of the gimbal.
  • the motor corresponding to each axis arm By controlling the motor corresponding to each axis arm to output with different torques, the overall attitude of the gimbal can be accurately controlled.
  • the embodiment of the second aspect of the present application proposes a controller 10, including: a processor 12 and a memory 14, a computer program is stored in the memory, and the processor 12 executes the data stored in the memory 14.
  • the computer program realizes: confirm the measurement and control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measurement attitude of the base; based on the situation that the measurement and control deviation of the pan/tilt is in the preset range, control the multiple motors of the pan/tilt to output specified torque, To drive the multiple shaft arms of the PTZ to rotate.
  • the controller provided in the present application includes a processor 12 and a memory 14.
  • the memory 14 is used to store a computer program, and the measurement control deviation is obtained by making the processor 12 obtain the measured attitude of the base and the input target attitude of the pan/tilt.
  • the measured attitude of the base is the actual attitude of the base after the pan/tilt moves.
  • the target attitude of the pan/tilt is the preset attitude expected according to the operation instructions. Due to the various friction forces between the base of the pan/tilt and the pivot arm or other movable positions, It is easy to cause a deviation between the measurement attitude and the target attitude of the pan/tilt. According to the comparison between the measurement attitude of the base and the target attitude of the pan/tilt, the measurement control deviation can be obtained.
  • the static friction force of the motor is very high. Large, may cause the motor to output a large torque for a long time, but the motor does not actually act, which causes the motor to generate heat and power consumption. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force to take actual action.
  • control motor directly outputs the preset specified torque to drive multiple shaft arms to rotate, so that when the PTZ attitude error is small, the control The motor outputs at the minimum speed, which prevents the motor from outputting a large torque for a long time without actual action, and prevents the increase in power consumption caused by the motor heating when the error is small.
  • the preset range is a larger value, that is, when the measurement control deviation of the pan/tilt is large, the processor 12 directly controls the motor to output a larger torque, where the larger torque is the torque that is sufficient for the static friction of the motor. Avoid the heating of the motor due to insufficient torque to overcome the static friction of the motor and the increase in power consumption.
  • the processor 12 receives a control instruction, and controls multiple motors to control the corresponding PTZ multiple axis arms to move according to the control instruction.
  • the control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction force is large, which causes the actual movement position of the shaft arm to not reach the expected position.
  • the pan/tilt head is determined according to the expected position of each shaft arm and the actual position of each shaft arm.
  • Measurement control deviation that is, the position error of the pan/tilt
  • it can generate a large angular velocity sufficient to overcome the static friction when the pan/tilt has a large attitude error.
  • the processor 12 executes the process of controlling the multiple motors of the pan/tilt to output a specified torque based on the measurement and control deviation of the pan/tilt head, which specifically includes: controlling the deviation based on the measurement According to the control deviation and following speed curve, it is determined that the measurement control deviation is within the preset range; where the control deviation and following speed curve is the relationship curve between the following speed of the shaft arm of any one of the multiple shaft arms and the control deviation of the pan/tilt; Measure the following speed of the shaft arm corresponding to the control deviation to determine the specified torque; control multiple motors to output the specified torque.
  • control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt.
  • the measured attitude of the base includes the measured attitude of the base of each axle arm.
  • the processor 12 determines the measured control deviation of each axle arm according to the measured attitude of each axle arm and the target attitude of the pan/tilt.
  • the output following speed of the motor corresponding to each shaft arm can be obtained through the control deviation and following speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, and then make each motor Control each shaft arm to achieve the desired posture.
  • the control deviation and following speed curve can be used for the relationship curve between the following speed and the measurement control deviation of any axis arm in the pan/tilt during control.
  • the measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measurement attitude of each axle arm and the target attitude.
  • the control deviation is compared with the Following the speed curve can obtain the corresponding follow speed of each shaft arm, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm to reach the desired posture.
  • the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating.
  • the improved control deviation and follow the speed curve, in the pan/tilt When the measurement and control deviation is small, it is ensured that the angular speed output by the motor is basically maintained at the initial speed, and the fluctuations are stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it is guaranteed that the motor will not generate a lot of heat.
  • the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force.
  • the motor corresponding to the shaft arm will not output a small expectation Speed, and when the measurement control deviation of the pan/tilt is outside the preset range, the shaft arm can be controlled to run at a larger desired speed to overcome the static friction force.
  • the preset range can be 0 ⁇
  • the measurement control deviation value X is between 0 ⁇
  • the corresponding shaft arm following speed changes smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm follows Speed and control deviation are roughly positively correlated.
  • the pan/tilt when the measurement control deviation value X of the pan/tilt is between 0 ⁇
  • the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation The increase and increase of the control shaft arm follow the speed to make the motor output with greater torque, so as to reduce the measurement and control deviation of the PTZ.
  • the processor 12 obtains the control deviation and the following speed curve through the following process: obtains the control deviation and the following speed curve pre-stored in the memory of the pan-tilt; or, obtains the pan-tilt The control deviation and following speed curve in the control command received by the communication device.
  • control deviation and follow-up speed curve used for the processor 12 to perform arithmetic processing can be stored in the memory 14 in the pan/tilt, or the communication device of the pan/tilt may be used to receive the control instructions transmitted from the outside. , Receiving the control deviation and following speed curve transmitted from the outside can update the curve at any time, so as to adjust the curve according to the actual use.
  • the communication device of the pan/tilt can communicate with the motion sensing controller, and the processor 12 obtains the target posture of the pan/tilt through the following process: receiving pan/tilt measurement data sent by the motion sensing controller; Confirm the target attitude of the gimbal according to the measurement data of the gimbal.
  • the processor 12 obtains the target posture of the pan/tilt through the somatosensory controller.
  • the somatosensory controller includes a sensor, and the sensor includes an inertial measurement unit and a compass. It can measure the posture information and speed information of the somatosensory controller, and according to the posture information and Speed information can determine the measurement data of the pan/tilt.
  • the somatosensory controller also includes a transmitter. The transmitter is a wireless signal transmitter. The somatosensory controller sends the measurement data of the pan/tilt to the pan/tilt through the transmitter, and the pan/tilt determines the data based on the measurement data of the pan/tilt.
  • the target posture of the gimbal The target posture of the gimbal.
  • the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel.
  • the corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter.
  • the platform determines the target attitude of the platform based on the measurement data of the platform.
  • the measurement data of the pan/tilt is the angular velocity data of the pan/tilt
  • the processor 12 is further configured to: determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt; The angular velocity is integrated to determine the target attitude of the gimbal.
  • the PTZ measurement data is angular velocity data
  • the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system.
  • the gravity direction vector is measured by the accelerometer in the inertial measurement unit, and the geomagnetic direction is obtained by the compass.
  • the positive east direction vector is obtained by the difference integration of the gravity direction and the geomagnetic direction, and then the positive north direction vector is obtained by the difference integration of the gravity direction vector and the true east direction vector, which is composed of the gravity direction vector, the true north direction vector, and the true east direction vector
  • the reference space attitude cosine matrix, the reference space attitude cosine matrix is converted into an attitude quaternion, the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information, and the pan/tilt is controlled by the motion sensing controller. It can make the interaction experience between the user and the PTZ better and improve the user experience.
  • the communication device of the pan-tilt can communicate with the terminal device, and the processor 12 obtains the target posture of the pan-tilt through the following process: control the communication device to receive the control instruction sent by the terminal device, and control The instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
  • the processor 12 obtains the target posture of the pan/tilt through the communication device of the pan/tilt, and the processor 12 can receive the control instructions of the user to realize the control of the pan/tilt through the setting panel data input of the terminal, wherein the control instructions include controlling the pan/tilt.
  • the terminal can simulate the motion trajectory to generate the posture of the gimbal after moving according to the control instruction, which is the target posture of the gimbal.
  • the target posture of the gimbal is added to the control instruction and passed through the terminal’s own
  • the communication device communicates with the communication device of the pan-tilt, and sends control instructions to the pan-tilt, so that the pan-tilt obtains the target posture of the pan-tilt, and the pan-tilt connects with other terminals to achieve the effect of remote control of the pan-tilt
  • users can use a computer or mobile terminal to control the PTZ.
  • the processor 12 obtains the target attitude of the pan/tilt head through the following process: receiving a setting instruction received by the control handle of the pan/tilt head, and the setting instruction includes the target attitude of the pan/tilt tip.
  • the processor 12 obtains the target posture of the pan/tilt through the control handle of the pan/tilt itself.
  • the pan/tilt itself has a control handle for controlling the movement of the pan/tilt, and the control handle has a setting panel.
  • the processor 12 acquires the user Through the setting command input by the setting panel, the user can directly send the setting command of the target posture with the PTZ to the PTZ through the control handle.
  • the setting handle can be a structure connected with the PTZ, suitable for hand-held PTZ
  • the setting handle is set at the grip position, and the posture of the PTZ can be adjusted by operating the setting handle.
  • the actual posture of the control handle of the pan/tilt is received, and the actual posture of the control handle is used as the target posture of the pan/tilt.
  • the pan/tilt has an inductive control handle.
  • the control handle includes an inertial measurement unit, which can detect the attitude of the control handle.
  • the processor 12 uses the inertial measurement unit. Measure and record the posture of the control handle, and use the posture of the control handle as the target posture of the pan/tilt.
  • the somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the posture of the somatosensory handle itself as the target of the gimbal.
  • the posture simplifies the user's setting of the PTZ posture, facilitates the user's operation, saves a lot of tedious operations, and improves the user's experience.
  • the processor 12 obtains the measured posture of the base through the following process: obtains the measured posture and joint angle of the pan/tilt; Measure the posture; where the joint angle is the angle of the multiple axis arms of the pan/tilt with respect to the joint coordinate system of the pan/tilt.
  • the pan/tilt includes an inertial measurement unit
  • the processor 12 executes the process of acquiring the measured attitude and joint angle of the pan/tilt, specifically including: controlling the inertial measurement unit to acquire the measured attitude of the pan/tilt and Joint angle.
  • the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt.
  • the base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined.
  • the platform is equipped with an inertial measurement unit.
  • the processor 12 receives and uses the inertial measurement unit to obtain the measured posture and joint angle of the platform.
  • the processor 12 receives the measured posture of the platform And the joint angle determines the measurement attitude of the base.
  • the processor 12 is further configured to: confirm the driving torque of the multiple motors according to the target posture of the pan/tilt; Control multiple motors to output drive torque.
  • the processor 12 determines whether the measurement control deviation of the pan/tilt is within the preset range. When the measurement control deviation of the pan/tilt falls within the preset range, it can be determined that the position error of the pan/tilt is not large. When it is not necessary to change the speed of multiple motors, it is enough to keep multiple motors at the initial minimum speed. Even if multiple motors output specified torque, when it is determined that the measurement control deviation of the pan/tilt is outside the preset range, the pan/tilt can be considered The position error of the motor is too large.
  • the processor 12 executes the process of confirming the driving torques of the multiple motors according to the target posture of the pan/tilt, which specifically includes: determining the position errors of the multiple shaft arms according to the target posture of the pan/tilt. ; According to the position error of multiple shaft arms, confirm the target angular velocity of multiple shaft arms; according to the target angular velocity of multiple shaft arms and the measured angular velocity of multiple shaft arms, confirm the drive torque of multiple motors.
  • the processor 12 first determines the position error of multiple shaft arms in the pan/tilt.
  • the target posture of the pan/tilt can determine the position of each shaft arm.
  • Position error according to the position error of each axle arm, confirm the target angular velocity of each axle arm, the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity.
  • the error can be calculated to obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so that when the PTZ attitude error is small, the processor 12 does not It will control the motor to output a small angular velocity, so the motor will not output a large torque for a long time when the static friction is large, thereby reducing the heat generated by the motor due to the resistance of the static friction and the increase in power consumption. While reducing power consumption, it also prolongs the service life of the motor in the pan/tilt, thereby improving the user experience.
  • FIG. 15 is the current position double-loop control block diagram of the pan/tilt motor.
  • the pan/tilt receives an external command to determine the target attitude of the pan/tilt.
  • the difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt.
  • the angular velocity output of the motor is determined.
  • the above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action.
  • a controller is added again, as shown in the control block diagram in Figure 16, which can make the measurement and control deviation of the pan/tilt be within the specified preset range.
  • the output angular velocity does not change, thus avoiding the problem of motor heating and power consumption increase caused by speed loop control only when the measurement control deviation is small.
  • Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control.
  • the torque may rise suddenly and rapidly.
  • the output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase.
  • the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption.
  • Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
  • the processor 12 executes the process of determining the position errors of the multiple axis arms according to the target attitude of the pan/tilt, specifically including: confirming the target attitude of the pan/tilt and the measured attitude of the pan/tilt.
  • PTZ attitude error Convert the PTZ attitude error according to the preset algorithm to confirm the position error of multiple axis arms.
  • the preset algorithm is the Jacobian inverse matrix algorithm.
  • the processor 12 determines the position error of each axis arm of the pan/tilt, it can calculate the attitude error of the pan/tilt according to the target attitude of the pan/tilt and the measured attitude of the pan/tilt, and use the Jacobian
  • the inverse matrix of the matrix calculates the position error of multiple axis arms according to the attitude error of the pan/tilt.
  • the Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system through calculation.
  • the entire pan/tilt can be transformed by the Jacobian inverse matrix.
  • the position error is converted into a two-dimensional error corresponding to each shaft arm, so as to obtain the position error of each shaft arm of the pan/tilt.
  • the processor 12 controls the motor corresponding to each shaft arm to output with different torques, thereby achieving In order to accurately control the overall posture of the PTZ.
  • the embodiment of the third aspect of the present application provides a pan/tilt head 20, which includes multiple shaft arms, multiple shaft arms, including a yaw shaft arm 222, a pitch shaft arm 224, and a roll shaft arm 226 ;
  • Multiple motors driving multiple shaft arms to rotate multiple motors, the multiple motors are respectively yaw motor 242, pitch motor 244, and roll motor 246;
  • the base is connected with the yaw shaft arm
  • the controller is used to confirm the measurement and control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measured attitude of the base; based on the situation that the measurement and control deviation of the pan/tilt is in the preset range, it controls multiple motors to output specified torque to drive separately Multiple shaft arms rotate.
  • the pan/tilt head includes the controller 10 in any of the above embodiments, multiple shaft arms composed of a yaw axis arm, a pitch axis arm, and a roll axis arm.
  • the pitch The axis rotates along the x axis to control the pitch of the base
  • the roll axis rotates along the z axis, which can control the base to roll back and forth
  • the yaw axis rotates along the y axis, which can control the base to roll left and right, and is used to drive
  • Multiple motors of multiple shaft arms each motor controls the rotation of one shaft arm, and because the base is connected to the yaw axis, three motors are used to control the yaw shaft arm, pitch shaft arm and roll shaft arm respectively.
  • the attitude of the base is obtained by making the measured attitude of the base acquired by the controller 10 and the input target attitude of the pan/tilt to obtain the measurement control deviation, wherein the measured attitude of the base is the actual attitude of the base after the pan/tilt moves.
  • the target posture of is the preset posture expected according to the operation instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause deviations between the measured posture and the target posture of the gimbal. Comparing the measured attitude with the target attitude of the gimbal can get the measurement control deviation.
  • the motor When controlling the motor for low-speed action, due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the motor does not occur The actual action caused the motor to heat up and the power consumption increased. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range. If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force. Action, the motor is controlled to directly output the preset specified torque, thereby driving the rotation of multiple shaft arms, so that when the attitude error of the pan/tilt is small, the motor is controlled to output at the minimum speed, avoiding the fact that the motor does not actually move. Long-term output of large torque can prevent the increase of power consumption caused by motor heating when the error is small.
  • the controller 10 receives a control instruction, and controls multiple motors to control the corresponding PTZ multiple axis arms to move according to the control instruction.
  • the control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction force is large, which causes the actual movement position of the shaft arm to not reach the expected position.
  • the pan/tilt head is determined according to the expected position of each shaft arm and the actual position of each shaft arm.
  • Measurement control deviation that is, the position error of the pan/tilt
  • it can generate a large angular velocity sufficient to overcome the static friction when the pan/tilt has a large attitude error.
  • the controller 10 executes the process of controlling a plurality of motors to output a specified torque based on the measurement control deviation of the pan/tilt head in the preset range, which specifically includes: according to the measurement control deviation and the control deviation With the following speed curve, it is determined that the measurement control deviation is within the preset range; the control deviation and following speed curve is the relationship curve between the shaft arm following speed of any one of the multiple shaft arms and the control deviation of the pan/tilt; according to the measurement control deviation The corresponding shaft arm follows the speed to determine the specified torque; controls multiple motors to output the specified torque.
  • control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt.
  • the measured attitude of the base includes the measured attitude of the base of each axle arm.
  • the controller 10 determines the measured control deviation of each axle arm according to the measured attitude of each axle arm and the target attitude of the pan/tilt.
  • the output following speed of the motor corresponding to each shaft arm can be obtained through the control deviation and following speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, and then make each motor Control each shaft arm to achieve the desired posture.
  • the control deviation and following speed curve can be used for the relationship curve between the following speed and the measurement control deviation of any axis arm in the pan/tilt during control.
  • the measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measurement attitude of each axle arm and the target attitude.
  • the control deviation is compared with the Following the speed curve can obtain the corresponding follow speed of each shaft arm, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm to reach the desired posture.
  • the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating.
  • the improved control deviation and follow the speed curve, in the pan/tilt When the measurement control deviation is small, it is ensured that the angular velocity of the motor output is basically maintained at the initial speed, and the fluctuation fluctuation is stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it ensures that the motor does not generate a lot of heat.
  • the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force.
  • the motor corresponding to the shaft arm will not output a small expectation
  • the shaft arm can be controlled to run at a larger desired speed to overcome the static friction.
  • the preset range can be 0 ⁇
  • the measurement control deviation value X is between 0 ⁇
  • the corresponding shaft arm following speed changes smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm follows Speed and control deviation are roughly positively correlated.
  • the pan/tilt when the measurement control deviation value X of the pan/tilt is between 0 ⁇
  • the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation Increase and increase, that is, the increase in the follow-up speed of the control shaft arm causes the motor to output with greater torque, thereby reducing the measurement and control deviation of the PTZ.
  • the controller 10 obtains the control deviation and the following speed curve through the following process: obtains the control deviation and the following speed curve pre-stored in the memory of the pan/tilt; or, obtains the pan/tilt The control deviation and following speed curve in the control command received by the communication device.
  • control deviation and follow-up speed curve used for the arithmetic processing of the controller 10 can be stored in the memory in the pan-tilt, or can be carried in the control instructions transmitted from the outside by the communication device of the pan-tilt, Receiving the control deviation and following speed curve transmitted from the outside can update the curve at any time, so as to adjust the curve according to actual usage.
  • the pan/tilt includes a communication device that can communicate with the somatosensory controller, and the target posture of the pan/tilt is obtained by the following process: receiving measurement data of the pan/tilt sent by the somatosensory controller; Confirm the target attitude of the gimbal according to the measurement data of the gimbal.
  • the controller 10 obtains the target posture of the pan/tilt through the somatosensory controller.
  • the somatosensory controller includes a sensor, and the sensor includes an inertial measurement component and a compass. It can measure the attitude information and speed information of the somatosensory controller, and according to the attitude information and Speed information can determine the measurement data of the pan/tilt.
  • the somatosensory controller also includes a transmitter. The transmitter is a wireless signal transmitter. The somatosensory controller sends the measurement data of the pan/tilt to the pan/tilt through the transmitter, and the pan/tilt determines the data based on the measurement data of the pan/tilt.
  • the target posture of the gimbal The target posture of the gimbal.
  • the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel.
  • the corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter.
  • the platform determines the target attitude of the platform based on the measurement data of the platform.
  • the measurement data of the pan/tilt is the angular velocity data of the pan/tilt
  • the controller 10 is also used to: determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt; and integrate the target angular velocity of the pan/tilt To determine the target posture of the gimbal.
  • the PTZ measurement data is the angular velocity data
  • the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system.
  • the gravity direction vector is measured by the accelerometer in the inertial measurement component, and the geomagnetic direction is obtained by the compass.
  • the positive east direction vector is obtained by differential integration of the gravity direction and the geomagnetic direction, and then the positive north direction vector is obtained by the difference integration of the gravity direction vector and the true east direction vector, which is composed of the gravity direction vector, the true north direction vector, and the true east direction vector
  • the reference space attitude cosine matrix, the reference space attitude cosine matrix is converted into an attitude quaternion, the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information, and the pan/tilt is controlled by the motion sensing controller. It can make the interaction experience between the user and the PTZ better and improve the user experience.
  • the pan-tilt includes a communication device that can communicate with the terminal device, and the controller 10 obtains the target posture of the pan-tilt through the following process: control the communication device to receive the control sent by the terminal device Instruction, the control instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
  • the pan-tilt also includes a communication device for communicating with other devices.
  • the controller 10 obtains the target posture of the pan-tilt through the communication device of the pan-tilt, and the controller 10 can receive data input from the user through the terminal's setting panel.
  • the control instruction for the control of the pan/tilt where the control instruction includes the movement trajectory for controlling the movement of the pan/tilt.
  • the terminal can simulate the movement trajectory to generate the movement of the pan/tilt according to the control instruction, which is the target attitude of the pan/tilt.
  • the target posture of the platform is added to the control instruction, and the terminal’s own communication device communicates with the communication device of the PTZ, and the control instruction is sent to the PTZ, so that the PTZ can obtain the target posture of the PTZ.
  • the user can use a computer or mobile terminal to control the PTZ.
  • the controller 10 obtains the target attitude of the pan/tilt head through the following process: obtains the setting instruction received by the control handle of the pan/tilt head, and the setting instruction includes the target attitude of the pan/tilt head.
  • the controller 10 acquires the target posture of the pan/tilt through the control handle of the pan/tilt itself.
  • the pan/tilt itself has a control handle for controlling the movements of the pan/tilt, and the control handle has a setting panel.
  • the controller 10 acquires the user Through the setting command input by the setting panel, the user can directly send the setting command of the target posture with the PTZ to the PTZ through the control handle.
  • the setting handle can be a structure connected with the PTZ, suitable for hand-held PTZ
  • the setting handle is set at the grip position, and the posture of the PTZ can be adjusted by operating the setting handle.
  • the controller 10 obtains the target attitude of the pan/tilt head through the following process: receiving the actual attitude of the control handle of the pan/tilt head, and using the actual attitude of the control handle as the target attitude of the pan/tilt head.
  • the pan/tilt has an inductive control handle, which includes an inertial measurement component, which can detect the attitude of the control handle.
  • the controller 10 uses the inertial measurement component Measure and record the posture of the control handle, and use the posture of the control handle as the target posture of the pan/tilt.
  • the somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the posture of the somatosensory handle itself as the target of the gimbal.
  • the posture simplifies the user's setting of the PTZ posture, facilitates the user's operation, saves a lot of tedious operations, and improves the user's experience.
  • the pan/tilt head further includes: an inertial measurement unit, used to obtain the measured attitude and joint angle of the pan/tilt head, and send the measured attitude and joint angle of the pan/tilt head to the controller 10; control;
  • the device 10 is also used to confirm the measured posture of the base according to the measured posture and joint angle of the pan/tilt; where the joint angle is the angle of the multiple axis arms relative to the joint coordinate system of the gimbal.
  • the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt.
  • the base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined.
  • the platform is equipped with an inertial measurement component. The controller 10 can obtain the measured posture and joint angle of the platform based on the received measurement posture of the platform. And the joint angle determines the measurement attitude of the base.
  • the controller 10 is further configured to: confirm the driving torque of the multiple motors according to the target posture of the pan/tilt; Control multiple motors to output drive torque.
  • the controller 10 determines whether the measurement control deviation of the pan/tilt is within the preset range. When the measurement control deviation of the pan/tilt is within the preset range, it can be determined that the position error of the pan/tilt is not large. When it is not necessary to change the speed of multiple motors, it is enough to keep multiple motors at the initial minimum speed. Even if multiple motors output specified torque, when it is determined that the measurement control deviation of the pan/tilt is outside the preset range, the pan/tilt can be considered The position error of the motor is too large.
  • the controller 10 executes the process of confirming the driving torque of the multiple motors according to the target posture of the pan/tilt, which specifically includes: determining the position error of the multiple shaft arms according to the target posture of the pan/tilt. ; According to the position error of multiple shaft arms, confirm the target angular velocity of multiple shaft arms; according to the target angular velocity of multiple shaft arms and the measured angular velocity of multiple shaft arms, confirm the drive torque of multiple motors.
  • the controller 10 first determines the position error of multiple axis arms in the pan/tilt.
  • the target posture of the pan/tilt can determine the position of each axis arm.
  • Position error according to the position error of each axle arm, confirm the target angular velocity of each axle arm, the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity.
  • the error can be calculated to obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so as to realize that when the PTZ attitude error is small, the controller 10 does not It will control the motor to output a small angular velocity, so the motor will not output a large torque for a long time when the static friction is large, thereby reducing the heat generated by the motor due to the resistance of the static friction and the increase in power consumption. While reducing power consumption, it also prolongs the service life of the motor in the pan/tilt, thereby improving the user experience.
  • FIG. 15 is the current position double-loop control block diagram of the pan/tilt motor.
  • the pan/tilt receives an external command to determine the target attitude of the pan/tilt.
  • the difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt.
  • the angular velocity output of the motor is determined.
  • the above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action.
  • a controller is added again, as shown in the control block diagram in Figure 16, which can make the measurement and control deviation of the pan/tilt be within the specified preset range.
  • the output angular velocity does not change, thus avoiding the problem of motor heating and power consumption increase caused by speed loop control only when the measurement control deviation is small.
  • Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control.
  • the torque may rise suddenly and rapidly.
  • the output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase.
  • the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption.
  • Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
  • the controller 10 executes the process of determining the position errors of the multiple axis arms according to the target posture of the pan/tilt, specifically including: confirming the target posture of the pan/tilt and the measured posture of the pan/tilt.
  • PTZ attitude error Convert the PTZ attitude error according to the preset algorithm to confirm the position error of multiple axis arms.
  • the preset algorithm is the Jacobian inverse matrix algorithm.
  • the controller 10 when the controller 10 controls the overall posture of the pan/tilt, the position error of each pivot arm in the pan/tilt is not the same.
  • the controller 10 can calculate the attitude error of the gimbal according to the target posture of the gimbal and the measured posture of the gimbal, and use the Jacobian
  • the inverse matrix of the matrix calculates the position error of multiple axis arms according to the attitude error of the pan/tilt.
  • the Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system through calculation. The entire pan/tilt can be transformed by the Jacobian inverse matrix.
  • the position error of each axis arm is converted into a two-dimensional error corresponding to each axis arm, so as to obtain the position error of each axis arm of the pan/tilt.
  • the controller 10 controls the motor corresponding to each axis arm to output with different torques to achieve In order to accurately control the overall posture of the PTZ.
  • the embodiment of the fourth aspect of the present application proposes an unmanned mobile platform that includes the pan/tilt in any of the above embodiments, and thus has the beneficial effects of the pan/tilt in any of the above embodiments, and will not be repeated here.
  • the embodiment of the fifth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the pan/tilt control method of any of the above embodiments is implemented. Therefore, it has the beneficial effects of the pan-tilt control method in any of the above-mentioned embodiments, which will not be repeated here.
  • a computer-readable storage medium may include any medium capable of storing or transmitting information.
  • Examples of computer-readable storage media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on.
  • the code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
  • the term “plurality” refers to two or more than two, unless specifically defined otherwise.
  • the terms “installed”, “connected”, “connected”, “fixed” and other terms should be understood in a broad sense.
  • “connected” can be a fixed connection, a detachable connection, or an integral connection;
  • “connected” can be It is directly connected or indirectly connected through an intermediary.
  • the specific meanings of the above terms in this application can be understood according to specific circumstances.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Studio Devices (AREA)

Abstract

Provided are a gimbal control method, a controller, a gimbal, an unmanned mobile platform, and a computer-readable storage medium. The gimbal control method comprises: determining a measurement control deviation of a gimbal according to a target attitude of the gimbal and a measurement attitude of a base (S102); and on the basis of the condition that the measurement control deviation of the gimbal is within a preset range, controlling a plurality of electric motors to output specified torques so as to respectively drive a plurality of shaft arms to rotate (S104). According to the gimbal control method, when an attitude error of the gimbal is relatively small, the electric motors are controlled to perform output at a minimum speed, thereby avoiding the problems of a power consumption increase and heating caused by the fact that the electric motors output relatively large torques for a long time under conditions where the electric motors do not actually act, and thus reducing the power consumption of the gimbal and effectively prolonging the service life of the gimbal.

Description

云台控制方法、控制器、云台、无人移动平台和存储介质PTZ control method, controller, PTZ, unmanned mobile platform and storage medium 技术领域Technical field
本申请涉及云台技术领域,具体而言,涉及一种云台控制方法、一种控制器、一种云台、一种无人移动平台和一种计算机可读存储介质。This application relates to the technical field of pan/tilt heads, and specifically to a method for controlling a pan/tilt head, a controller, a pan/tilt head, an unmanned mobile platform, and a computer-readable storage medium.
背景技术Background technique
云台是用于安装、固定摄像设备的支撑装置,随着科技的发展和社会的进步,市面上逐渐出现多种形式的电动云台,例如手持云台和无人机云台等便携式的小型云台,此类小型云台也是通过多个电机控制多个轴臂动作,从而对云台的姿态进行调整。利用各个电机对各个轴臂进行控制时,由于电机的摩擦力等因素的存在,在位置误差较小的情况下,且电机的静摩擦力较大时,此时由于姿态的误差较小,会依靠速度控制提高电机的运行角速度从而克服静摩擦力,进而使云台达到期望姿态。而由于在速度控制时通常会随着误差的增大而控制提升角速度,但是由于静摩擦力较大,在控制电机提速的过程中容易发生电机输出端并未运动的情况发生,此时,电机已经长时间输出较大扭矩力矩,就导致了电机的发热和功耗上升,不仅会使整个云台的耗电量加大,还缩短了电机的使用寿命。PTZ is a support device used to install and fix camera equipment. With the development of technology and social progress, various forms of electric PTZ are gradually appearing on the market, such as handheld PTZ and drone PTZ and other portable small PTZ, this type of small PTZ also uses multiple motors to control the actions of multiple shaft arms to adjust the posture of the PTZ. When using each motor to control each shaft arm, due to the existence of factors such as the friction of the motor, when the position error is small and the static friction of the motor is large, the error of the attitude is small at this time, it will rely on Speed control increases the angular speed of the motor to overcome the static friction, and then the pan/tilt reaches the desired posture. In speed control, the increase in angular velocity is usually controlled as the error increases. However, due to the large static friction, it is easy to happen that the motor output terminal does not move during the process of controlling the motor speed. At this time, the motor has been The long-term output of large torque will cause the heating and power consumption of the motor to increase, which will not only increase the power consumption of the entire pan/tilt, but also shorten the service life of the motor.
申请内容Application content
本申请实施例提供了云台控制方法、控制器、云台、无人移动平台和存储介质,能够降低功耗使机身减少发热。The embodiments of the present application provide a pan-tilt control method, a controller, a pan-tilt, an unmanned mobile platform, and a storage medium, which can reduce power consumption and reduce heat generation of the fuselage.
为此,本申请的第一个方面在于,提出一种云台的控制方法。For this reason, the first aspect of this application is to propose a method for controlling the pan/tilt.
本申请的第二个方面在于,提出一种控制器。The second aspect of this application is to provide a controller.
本申请的第三个方面在于,提出一种云台。The third aspect of this application is to propose a pan-tilt.
本申请的第四个方面在于,提出一种无人移动平台。The fourth aspect of this application is to propose an unmanned mobile platform.
本申请的第五个方面在于,提出一种计算机可读存储介质。The fifth aspect of this application is to provide a computer-readable storage medium.
有鉴于此,根据本申请的第一方面,提供了一种云台的控制方法,云台包括基座、多个轴臂及多个电机,多个电机用于分别驱动多个轴臂转动,控制方法包括:根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;基于云台的测量控制偏差处于预设范围的情况,控制多个电机输出指定扭矩,以分别驱动多个轴臂转动。In view of this, according to the first aspect of the present application, a method for controlling a pan/tilt head is provided. The pan/tilt head includes a base, a plurality of shaft arms, and a plurality of motors. The multiple motors are used to drive the multiple shaft arms to rotate, respectively. The control method includes: confirming the measurement control deviation of the gimbal according to the target posture of the gimbal and the measurement posture of the base; based on the condition that the measurement control deviation of the gimbal is in the preset range, controlling multiple motors to output specified torques to drive the multiple A shaft arm rotates.
本申请提供的云台控制方法,其中云台包括基座、多个轴臂和控制多个轴臂转动的多个电机,通过传感器检测到的基座的测量姿态和输入的云台的目标姿态获取测量控制偏差,其中基座的测量姿态为云台动作后的实际姿态,云台的目标姿态为根据操作指令所期待的预设姿态,由于云台基座与轴臂或者其他活动位置存在各种摩擦力,很容易产生基座的测量姿态与云台的目标姿态存在偏差,根据基座的测量姿态与云台的目标姿态进行对比可以得出测量控制偏差,在控制电机进行低速动作时,由于电机的静摩擦力很大,可能会导致电机长时间输出大扭矩力矩,但是电机并未发生实际动作导致了电机发热,功耗上升,因此对测量控制偏差设置一个预设范围,判断测量控制偏差是否处于预设范围内,如果测量控制偏差处于范围内可以认为电机并未克服摩擦力发生实际动作,则控制电机输出预设好的指定扭矩,从而驱动多个轴臂转动,使在云台姿态误差较小时,控制电机以较小速度进行输出,避免了电机在未发生实际动作的情况下长时间输出较大扭矩,防止在误差较小的情况下电机发热导致的功耗上升。In the pan/tilt control method provided by the present application, the pan/tilt includes a base, a plurality of shaft arms, and a plurality of motors that control the rotation of the multiple shaft arms, and the measured attitude of the base and the input target attitude of the pan/tilt are detected by sensors Obtain the measurement control deviation, where the measured posture of the base is the actual posture of the gimbal after the movement, and the target posture of the gimbal is the preset posture expected according to the operation instructions. Because the gimbal base and the pivot arm or other movable positions are different This kind of friction force can easily cause the deviation between the measured attitude of the base and the target attitude of the gimbal. According to the comparison between the measured attitude of the base and the target attitude of the gimbal, the measurement control deviation can be obtained. When the motor is controlled for low-speed action, Due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the actual action of the motor does not cause the motor to heat up and power consumption increases. Therefore, set a preset range for the measurement control deviation to determine the measurement control deviation Whether it is within the preset range, if the measured control deviation is within the range, it can be considered that the motor has not overcome the friction force to perform actual action, and then the motor is controlled to output the preset specified torque, thereby driving the rotation of multiple shaft arms to make the pan/tilt posture When the error is small, the motor is controlled to output at a low speed, which prevents the motor from outputting a large torque for a long time without actual action, and prevents the increase in power consumption caused by the motor heating when the error is small.
本申请的第二方面,提出了一种控制器,包括:处理器和存储器,存储器中存储有计算机程序,处理器执行存储在存储器中的计算机程序以实现:根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;基于云台的测量控制偏差处于预设范围的情况,控制云台的多个电机输出指定扭矩,以分别驱动云台的多个轴臂转动。In the second aspect of the present application, a controller is proposed, including: a processor and a memory, a computer program is stored in the memory, and the processor executes the computer program stored in the memory to realize: according to the target posture of the pan/tilt and the base The measurement attitude confirms the measurement control deviation of the pan/tilt head; based on the situation that the measurement control deviation of the pan/tilt head is within the preset range, the multiple motors of the pan/tilt head are controlled to output specified torques to drive the multiple shaft arms of the pan/tilt head to rotate.
本申请提供的控制器,通过处理器获取传感器检测到的基座的测量姿态和输入的云台的目标姿态获取测量控制偏差,其中基座的测量姿态为云台动作后的实际姿态,云台的目标姿态为根据操作指令所期待的预设姿态,由于云台基座与轴臂或者其他活动位置存在各种摩擦力,很容易产生基座的测量姿态与云台的目标姿态存在偏差,通过处理器根据基座的测量姿态 与目标姿态进行对比可以得出测量控制偏差,处理器在控制电机进行低速动作时,由于电机的静摩擦力很大,可能会导致电机长时间输出大扭矩力矩,但是电机并未发生实际动作导致了电机发热,功耗上升,因此通过处理器对测量控制偏差设置一个预设范围,判断测量控制偏差是否处于预设范围内,如果测量控制偏差处于范围内可以认为电机并未克服摩擦力发生实际动作,处理器则控制电机输出预设好的指定扭矩,从而驱动多个轴臂转动,使在云台姿态误差较小时,控制电机以较小速度进行输出,避免了电机在未发生实际动作的情况下长时间输出较大扭矩,防止在误差较小的情况下电机发热导致的功耗上升。The controller provided in the present application obtains the measured posture of the base detected by the sensor and the input target posture of the pan/tilt through the processor to obtain the measurement control deviation, wherein the measured posture of the base is the actual posture after the movement of the pan/tilt. The target posture is the preset posture expected according to the operating instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause the measured posture of the base to deviate from the target posture of the gimbal. The processor compares the measured posture of the base with the target posture to obtain the measured control deviation. When the processor controls the motor for low-speed action, the motor’s static friction force is very large, which may cause the motor to output a large torque for a long time, but No actual action of the motor caused the motor to heat up and power consumption increased. Therefore, the processor sets a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range. If the measurement control deviation is within the range, the motor can be considered The actual action does not overcome the friction force, and the processor controls the motor to output a preset specified torque, thereby driving multiple shaft arms to rotate, so that when the PTZ attitude error is small, the motor is controlled to output at a lower speed, which avoids The motor outputs a large torque for a long time without actual action, which prevents the increase of power consumption caused by the motor heating when the error is small.
本申请的第三个方面,提出了一种云台,包括上述任一技术方案的控制器;以及多个轴臂,包括偏航轴臂、俯仰轴臂及横滚轴臂;多个电机,驱动多个轴臂转动多个电机;基座,基座与偏航轴臂相连接。由于云台包括上述任一技术方案的控制器,因此具有上述任一技术方案的控制器的全部有益效果,在此不再赘述。The third aspect of the present application proposes a pan/tilt head, including a controller of any of the above technical solutions; and multiple shaft arms, including a yaw shaft arm, a pitch shaft arm, and a roll shaft arm; multiple motors, The multiple shaft arms are driven to rotate multiple motors; the base is connected with the yaw shaft arm. Since the pan/tilt head includes the controller of any of the above technical solutions, it has all the beneficial effects of the controller of any of the above technical solutions, which will not be repeated here.
本申请的第四方面,提出了一种无人移动平台,包括上述任一技术方案中的云台。由于无人移动平台包括上述任一技术方案的云台,因此具有上述任一技术方案的云台的全部有益效果,在此不再赘述。In the fourth aspect of this application, an unmanned mobile platform is proposed, which includes the pan-tilt in any of the above technical solutions. Since the unmanned mobile platform includes the pan/tilt of any of the above technical solutions, it has all the beneficial effects of the pan/tilt of any of the above technical solutions, which will not be repeated here.
本申请的第五方面,提出一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一技术方案的云台的控制方法。因此具有上述任一技术方案的云台的控制方法的有益效果,在此不再赘述。In the fifth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the pan-tilt control method of any of the above technical solutions is realized. Therefore, the beneficial effects of the pan-tilt control method with any of the above technical solutions are not repeated here.
附图说明Description of the drawings
本申请的上述和/或附加的方面的优点从结合下面附图对实施例的描述中将编的明显和容易理解,其中:The advantages of the above and/or additional aspects of the present application will be clearly and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1示出了本申请的一个实施例的云台控制方法的示意流程图;Fig. 1 shows a schematic flowchart of a pan-tilt control method according to an embodiment of the present application;
图2示出了本申请的另一个实施例的云台控制方法的示意流程图;FIG. 2 shows a schematic flowchart of a pan-tilt control method according to another embodiment of the present application;
图3示出了本申请的另一个实施例的云台控制方法的示意流程图;FIG. 3 shows a schematic flowchart of a pan-tilt control method according to another embodiment of the present application;
图4示出了本申请的一个实施例的云台的目标姿态获取方法的示意流 程图;Fig. 4 shows a schematic flow chart of a method for acquiring a target attitude of a pan-tilt according to an embodiment of the present application;
图5示出了本申请的一个实施例的基座的测量姿态获取方法的示意流程图;FIG. 5 shows a schematic flowchart of a method for acquiring a measurement attitude of a base according to an embodiment of the present application;
图6示出了本申请的再一个实施例的云台控制方法的示意流程图;Fig. 6 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application;
图7示出了本申请的再一个实施例的云台控制方法的示意流程图;FIG. 7 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application;
图8示出了本申请的再一个实施例的云台控制方法的示意流程图;FIG. 8 shows a schematic flowchart of a pan-tilt control method according to still another embodiment of the present application;
图9示出了本申请的一个实施例的控制器的示意框图;Fig. 9 shows a schematic block diagram of a controller of an embodiment of the present application;
图10示出了本申请的一个实施例的云台的示意框图;Fig. 10 shows a schematic block diagram of a pan-tilt according to an embodiment of the present application;
图11示出了本申请的一个实施例的控制偏差与跟随速度曲线;Figure 11 shows the control deviation and following speed curve of an embodiment of the present application;
图12示出了一种电流位置双环控制方法的控制偏差与跟随速度曲线;Figure 12 shows the control deviation and following speed curve of a current position double loop control method;
图13示出了一种电流位置双环控制方法的电机扭矩与测量控制偏差数据实验仿真图;Figure 13 shows an experimental simulation diagram of motor torque and measurement control deviation data of a current position dual-loop control method;
图14示出了本申请的一个实施例的电机扭矩与测量控制偏差数据实验仿真图;Fig. 14 shows an experimental simulation diagram of motor torque and measurement control deviation data of an embodiment of the present application;
图15示出了一种电流位置双环控制方法的控制框图;Figure 15 shows a control block diagram of a current position dual-loop control method;
图16示出了本申请的一个实施例的云台控制方法的控制框图。Fig. 16 shows a control block diagram of a pan-tilt control method according to an embodiment of the present application.
其中,图9和图10中附图标记与部件之间的对应关系为:Among them, the corresponding relationship between the reference signs and the components in FIG. 9 and FIG. 10 is:
10控制器,12处理器,14存储器,20云台,222偏航轴臂,224俯仰轴臂,226横滚轴臂,242偏航电机,244俯仰电机,246横滚电机。10 controller, 12 processor, 14 memory, 20 gimbal, 222 yaw axis arm, 224 pitch axis arm, 226 roll axis arm, 242 yaw motor, 244 pitch motor, 246 roll motor.
具体实施方式Detailed ways
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施方式对本申请进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to be able to understand the above objectives, features and advantages of the application more clearly, the application will be further described in detail below in conjunction with the accompanying drawings and specific implementations. It should be noted that the embodiments of the application and the features in the embodiments can be combined with each other if there is no conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但是,本申请还可以采用其他不同于在此描述的其他方式来实施,因此,本申请的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand this application. However, this application can also be implemented in other ways different from those described here. Therefore, the scope of protection of this application is not covered by the specific details disclosed below. Limitations of the embodiment.
下面参照图1至图16描述根据本申请一些实施例的云台的控制方法、控制器、云台、无人移动平台、计算机可读存储介质。The following describes a pan-tilt control method, controller, pan-tilt, unmanned mobile platform, and computer-readable storage medium according to some embodiments of the present application with reference to FIGS. 1 to 16.
根据本申请的第一方面的实施例,提供了一种云台控制方法,图1示出了根据本申请一个实施例的云台控制方法的示意流程图。如图1所示,该云台控制方法包括:According to an embodiment of the first aspect of the present application, a pan/tilt control method is provided, and FIG. 1 shows a schematic flowchart of the pan/tilt control method according to an embodiment of the present application. As shown in Figure 1, the PTZ control method includes:
S102,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S102: Confirm the measurement control deviation of the PTZ according to the target posture of the PTZ and the measurement posture of the base;
其中,云台姿态由多个轴臂共同转动确定,其中轴臂包括横滚轴、俯仰轴和偏航轴中的一种或任意组合。The attitude of the pan/tilt head is determined by the joint rotation of multiple shaft arms, where the shaft arm includes one or any combination of a roll axis, a pitch axis, and a yaw axis.
S104,基于云台的测量控制偏差处于预设范围的情况,控制多个电机输出指定扭矩,以分别驱动多个轴臂转动。S104: Based on the condition that the measurement control deviation of the pan/tilt is in the preset range, control multiple motors to output specified torques to drive multiple shaft arms to rotate respectively.
本申请提供的云台的控制方法,获取到的基座的测量姿态和输入的云台的目标姿态获取测量控制偏差,其中基座的测量姿态为云台动作后基座的实际姿态,云台的目标姿态为根据操作指令所期待的预设姿态,由于云台基座与轴臂或者其他活动位置存在各种摩擦力,很容易产生使测量姿态与云台的目标姿态存在偏差,根据基座的测量姿态与云台的目标姿态进行对比可以得出测量控制偏差,在控制电机进行低速动作时,由于电机的静摩擦力很大,可能会导致电机长时间输出大扭矩力矩,但是电机并未发生实际动作导致了电机发热,功耗上升,因此对测量控制偏差设置一个预设范围,判断测量控制偏差是否处于预设范围内,如果测量控制偏差处于范围外可以认为电机并未克服摩擦力发生实际动作,则控制电机直接输出预设好的指定扭矩,从而驱动多个轴臂转动,使在云台姿态误差较小时,控制电机以最小速度进行输出,避免了电机在未发生实际动作的情况下长时间输出较大扭矩,防止在误差较小的情况下电机发热导致的功耗上升。In the method for controlling the pan/tilt provided in this application, the acquired measurement attitude of the base and the input target attitude of the pan/tilt acquire the measurement control deviation, wherein the measured attitude of the base is the actual attitude of the base after the pan/tilt moves. The target posture of is the preset posture expected according to the operation instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause deviations between the measured posture and the target posture of the gimbal. Comparing the measured attitude with the target attitude of the gimbal can get the measurement control deviation. When controlling the motor for low-speed action, due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the motor does not occur The actual action caused the motor to heat up and the power consumption increased. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range. If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force. Action, the motor is controlled to directly output the preset specified torque, thereby driving the rotation of multiple shaft arms, so that when the attitude error of the pan/tilt is small, the motor is controlled to output at the minimum speed, avoiding the fact that the motor does not actually move. Long-term output of large torque can prevent the increase of power consumption caused by motor heating when the error is small.
其中,预设范围为较大的数值,即云台的测量控制偏差处于较大的情况下,则直接控制电机输出较大扭矩,其中较大扭矩为足以可以电机静摩擦力的扭矩,避免由于扭矩不足以克服电机静摩擦力导致的电机发热,功耗上升。Among them, the preset range is a larger value, that is, when the measurement and control deviation of the pan/tilt is large, the motor is directly controlled to output a larger torque, and the larger torque is the torque that is sufficient for the static friction of the motor to avoid the It is not enough to overcome the motor heating caused by the static friction of the motor, and the power consumption increases.
具体实施例中,云台接收一个控制指令,按照控制指令控制多个电机控制对应的云台多个轴臂进行运动,其中控制指令中包含有控制轴臂的期望位置,但是由于电机自身内部的静摩擦力较大,导致轴臂的实际运动位置并未达到期望位置,传感器检测到轴臂运动的实际位置后,根据每个轴臂的期望位置和每个轴臂的实际位置确定云台的测量控制偏差,也就是云 台的位置误差,判断云台的测量控制误差是否处于预设范围内,如果处于预设范围外,可以认为云台的姿态误差较大,则直接控制电机输出指定扭矩驱动轴臂转动至期望姿态,从而避免了在云台存在较小姿态误差时电机输出非常小的期望速度,同时在云台存在较大姿态误差时可以产生足以克服静摩擦力的大角速度,从而解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题。In a specific embodiment, the pan/tilt receives a control instruction, and controls multiple motors to control the multiple axis arms of the corresponding pan/tilt to move according to the control instruction. The control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction is large, which causes the actual movement position of the axle arm to not reach the desired position. After the sensor detects the actual position of the axle arm movement, the PTZ measurement is determined according to the expected position of each axle arm and the actual position of each axle arm The control deviation, that is, the position error of the pan/tilt, determines whether the measurement control error of the pan/tilt is within the preset range. If it is outside the preset range, it can be considered that the attitude error of the pan/tilt is large, and the motor is directly controlled to output the specified torque drive The shaft arm rotates to the desired attitude, thus avoiding the motor output very small desired speed when the gimbal has a small attitude error, and at the same time, it can generate a large angular velocity sufficient to overcome the static friction when the gimbal has a large attitude error. The problem of heat generation and increased power consumption caused by the large torque output of the motor without overcoming the static friction force for a long time.
图2示出了根据本申请另一个实施例的云台的控制方法的示意流程图,如图2所示,该云台控制方法包括:Fig. 2 shows a schematic flow chart of a method for controlling a pan-tilt according to another embodiment of the present application. As shown in Fig. 2, the method for controlling a pan-tilt includes:
S202,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S202: Confirm the measurement control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measured attitude of the base;
S204,根据测量控制偏差与控制偏差与跟随速度曲线,确定测量控制偏差处于预设范围内;S204: Determine that the measurement control deviation is within a preset range according to the measurement control deviation and the control deviation and the following speed curve;
S206,根据测量控制偏差相对应的轴臂跟随速度,确定指定扭矩;S206: Determine the designated torque according to the following speed of the shaft arm corresponding to the measured control deviation;
S208,控制多个电机输出指定扭矩。S208, controlling multiple motors to output a specified torque.
在该实施例中,根据如图11所示的控制偏差与跟随速度曲线,其中控制偏差与跟随速度曲线可以用于云台中任意一个轴臂在控制时的电机输出的跟随速度与云台的测量控制偏差的关系曲线,基座的测量姿态包括每个轴臂的基座的测量姿态,并根据每个轴臂的测量姿态和云台的目标姿态确定了每个轴臂的测量控制偏差,根据每个云台的测量控制偏差通过控制偏差与跟随速度曲线可以得到每个轴臂相对应的电机输出跟随速度,从而确定控制每个轴臂转动的电机的输出扭矩,进而使每个电机控制每个轴臂达到期望姿态。In this embodiment, according to the control deviation and following speed curve as shown in Figure 11, the control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt. The relationship curve of control deviation, the measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measured attitude of each axle arm and the target attitude of the pan/tilt. The measurement control deviation of each pan/tilt can obtain the motor output following speed corresponding to each shaft arm by controlling the deviation and following the speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm. A shaft arm reaches the desired posture.
其中,由于不同云台的各项参数并不相同,例如不同云台选用的电机不同,不同的电机存在不同的静摩擦力,故无法保证每个云台均使用同一个控制偏差与跟随速度曲线进行计算时均可以得到合适的结果,获取控制偏差与跟随速度曲线可以通过多种方式进行获取,包括以下提供的几个实施例。Among them, because the various parameters of different gimbals are different, for example, different gimbals use different motors, and different motors have different static friction forces, so it cannot be guaranteed that each gimbal uses the same control deviation and following speed curve. Appropriate results can be obtained during calculation, and the control deviation and following speed curve can be obtained in a variety of ways, including the following embodiments.
实施例一Example one
通过移动数据存储装置存储多种不同的控制偏差与跟随速度曲线,将 移动数据存储装置与云台进行连接,云台可以根据用户选择对存储在移动存储装置中的多个控制偏差与跟随速度曲线进行选择,从而获取到合适的控制偏差与跟随速度曲线。The mobile data storage device stores a variety of different control deviations and following speed curves, and the mobile data storage device is connected to the pan/tilt. The pan/tilt can perform multiple control deviations and following speed curves stored in the mobile storage device according to the user's choice. Make selections to obtain the appropriate control deviation and following speed curve.
在该实施例中,通过将预设好的多个控制偏差与跟随速度曲线均存储在移动数据存储装置中,用户可以根据自身需求或云台型号进行选择不同的控制偏差与跟随速度曲线。In this embodiment, by storing a plurality of preset control deviations and following speed curves in the mobile data storage device, the user can select different control deviations and following speed curves according to their own needs or the pan/tilt model.
实施例二Example two
将不同的控制偏差与跟随速度曲线存储在云服务器中,云台可以通过外接设备与云服务器连接,从云服务器中获取与云台型号相符的控制偏差与跟随速度曲线。Different control deviations and following speed curves are stored in the cloud server. The PTZ can be connected to the cloud server through an external device, and the control deviation and following speed curves corresponding to the PTZ model can be obtained from the cloud server.
在该实施例中,将不同的控制偏差与跟随速度曲线存储在云服务器中,还实现了云台制造商随时对云服务器中的控制偏差与跟随速度曲线进行更新,当云台通过外接设备进行联网访问云服务器时,可以自动获取云台相应型号的控制偏差与跟随速度曲线,避免了用户自行选择控制偏差与跟随速度曲线所需的繁琐的操作,进一步提升了用户的使用体验。In this embodiment, the different control deviations and following speed curves are stored in the cloud server, which also enables the pan/tilt manufacturer to update the control deviation and following speed curve in the cloud server at any time. When accessing the cloud server online, the control deviation and following speed curve of the corresponding model of the PTZ can be automatically obtained, avoiding the cumbersome operation required by the user to select the control deviation and following the speed curve by themselves, and further improving the user experience.
实施例三Example three
云台的处理器中存储有实时获取控制偏差与跟随速度曲线的算法程序,云台根据实时采集到的姿态数据通过算法程序计算生成控制偏差与跟随速度曲线。The processor of the pan/tilt has an algorithm program for real-time acquisition of control deviation and following speed curve. The pan/tilt uses the algorithm program to calculate the control deviation and following speed curve based on the attitude data collected in real time.
在该实施例中,由于云台所使用的环境不同,其各项参数也不会完全相同,例如在空气湿度较大的环境下使用云台,云台电机自身的静摩擦力与空气湿度较小的环境不同,而预设好的控制偏差与跟随速度曲线已经设定好相应的测量控制偏差范围,无法根据云台所使用的环境进行调整,通过将控制偏差与跟随速度曲线的生成算法存储在云台中,云台的控制器可以根据每次采集到的不同的姿态误差进行计算得到实时变化的控制偏差与跟随速度曲线,实现了云台可以在各种不同的环境下工作均不会由于长时间输出较大扭矩力矩却并未动作,导致的电机的发热和功耗上升。In this embodiment, due to the different environments used by the pan/tilt, its various parameters will not be exactly the same. For example, when the pan/tilt is used in an environment with high air humidity, the static friction of the pan/tilt motor itself and the air humidity are low. The environment is different, and the preset control deviation and following speed curve have set the corresponding measurement control deviation range, which cannot be adjusted according to the environment used by the pan/tilt. The generation algorithm of the control deviation and following speed curve is stored in the pan/tilt. , The controller of the pan/tilt can calculate according to the different attitude errors collected each time to obtain the real-time change of the control deviation and follow the speed curve, which realizes that the pan/tilt can work in various environments without outputting for a long time. Larger torque torque does not act, resulting in increased heat and power consumption of the motor.
具体地,云台可以根据开机后的第一次动作后产生的姿态误差进行计算生成控制偏差与跟随速度曲线,不需要每次动作时都重新生成控制偏差与跟 随速度曲线,避免过大的计算量导致云台耗电量增大以及使用寿命缩短。Specifically, the gimbal can calculate the control deviation and following speed curve according to the attitude error generated after the first action after starting up. It does not need to regenerate the control deviation and following speed curve every time it moves to avoid excessive calculations. The amount of power consumption increases and the service life of the pan/tilt is shortened.
如图12所示的相关技术中跟随速度和测量控制偏差的关系,为在产生测量控制偏差后,在测量控制偏差较小时,由于直接使用速度环控制,电机会随着测量控制偏差的增大而增大角速度,在增大角速度时,电机输出的扭矩并不能克服摩擦力带动电机转动,从而导致电机发热的问题,而如图11中经过改进的控制偏差与跟随速度曲线,在云台的测量控制偏差较小时,保证电机输出的角速度基本维持在初始速度,变化波动平稳,从而避免产生电机处于一直输出较大扭矩却没有动作的情况,保证了电机不会大量发热。As shown in Figure 12, the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating. As shown in Figure 11, the improved control deviation and follow the speed curve, in the pan/tilt When the measurement and control deviation is small, it is ensured that the angular speed output by the motor is basically maintained at the initial speed, and the fluctuations are stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it is guaranteed that the motor will not generate a lot of heat.
其中,控制偏差与跟随速度曲线为根据克服静摩擦力的扭矩进行重新设计得到的,在检测到的云台的测量控制偏差处于预设范围时,使轴臂对应的电机不会输出较小的期望速度,而当云台的测量控制偏差处于预设范围外时,可以控制轴臂以较大的期望速度运行,从而克服静摩擦力,上述预设范围可以为0≤|X|<R,其中X为预设的测量控制偏差值,当测量控制偏差值X处于0≤|X|<R之间时,可以认为云台的测量控制偏差处于预设范围内且较小;当测量控制偏差值X处于|X|≥R时,可以认为云台的测量控制偏差处于预设范围外,即测量控制偏差较大。Among them, the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force. When the measured control deviation of the detected PTZ is in the preset range, the motor corresponding to the shaft arm will not output a small expectation When the measurement and control deviation of the pan/tilt is outside the preset range, the shaft arm can be controlled to run at a larger desired speed to overcome the static friction. The preset range can be 0≤|X|<R, where X It is the preset measurement control deviation value. When the measurement control deviation value X is between 0≤|X|<R, it can be considered that the measurement control deviation of the pan/tilt is within the preset range and is small; when the measurement control deviation value X When |X|≥R, it can be considered that the measurement control deviation of the pan/tilt is outside the preset range, that is, the measurement control deviation is relatively large.
在本申请的一个实施例中,优选地,测量控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;测量控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。In an embodiment of the present application, preferably, when the measurement control deviation is within the preset range, the corresponding shaft arm following speed fluctuates smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm following speed There is roughly a positive correlation with the control deviation.
在该实施例中,当云台的测量控制偏差值X处于0≤|X|<R之间时,云台不会控制轴臂跟随速度增长,即当测量控制偏差处于预设范围内的较小的情况下,不会控制电机输出较大扭矩,当测量控制偏差值处于|X|≥R时,控制轴臂对应的电机输出扭矩以克服摩擦力,且轴臂跟随速度随着控制偏差的增大而增大,即控制轴臂跟随速度增大使电机以更大的扭矩进行输出,从而实现减少云台的测量控制偏差。In this embodiment, when the measurement control deviation value X of the pan/tilt is between 0≤|X|<R, the pan/tilt will not control the follow-up speed increase of the shaft arm, that is, when the measurement control deviation is within the preset range, In the small case, the motor will not be controlled to output a large torque. When the measured control deviation value is |X|≥R, the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation Increase and increase, that is, the increase in the follow-up speed of the control shaft arm causes the motor to output with greater torque, thereby reducing the measurement and control deviation of the PTZ.
在本申请的一个实施例中,优选地,控制偏差与跟随速度曲线通过以下过程获取得到:获取预存储在云台的存储器内的控制偏差与跟随速度曲线;或者,获取云台的通信装置接收到的控制指令中的控制偏差与跟随速 度曲线。In an embodiment of the present application, preferably, the control deviation and the following speed curve are obtained through the following process: obtaining the control deviation and following speed curve pre-stored in the memory of the pan/tilt; or, obtaining the data received by the communication device of the pan/tilt. The control deviation and following speed curve in the received control command.
在该实施例中,控制偏差与跟随速度曲线可以存储在云台内的存储器中,也可以利用云台的通信装置接收外部传输来的控制指令中携带的,接收外部传输来的控制偏差与跟随速度曲线可以实现随时对该曲线进行更新,从而实现随着实际使用情况进行调整曲线。In this embodiment, the control deviation and the following speed curve can be stored in the memory in the pan/tilt, or the communication device of the pan/tilt may be used to receive the control instructions transmitted from the outside, and receive the control deviation and following from the external transmission. The speed curve can be updated at any time, so as to adjust the curve according to actual usage.
图3示出了根据本申请另一个实施例的云台的控制方法的示意流程图,如图3所示,该云台控制方法包括:Fig. 3 shows a schematic flow chart of a method for controlling a pan/tilt according to another embodiment of the present application. As shown in Fig. 3, the method for controlling a pan/tilt includes:
S302,获取云台目标姿态;S302: Obtain the target attitude of the pan/tilt;
S304,获取基座的测量姿态;S304: Obtain the measured attitude of the base;
S306,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S306: Confirm the measurement control deviation of the PTZ according to the target posture of the PTZ and the measurement posture of the base;
S308,基于云台的测量控制偏差处于预设范围的情况,控制多个电机输出指定扭矩,以分别驱动多个轴臂转动。S308: Based on the condition that the measurement control deviation of the pan/tilt is in a preset range, control multiple motors to output specified torques to drive multiple shaft arms to rotate respectively.
在该实施例中,通过先获取云台目标姿态和基座的测量姿态,根据获取到的云台目标姿态和基座的测量姿态确定云台的测量控制偏差。In this embodiment, by first acquiring the target attitude of the pan/tilt head and the measured attitude of the base, the measurement control deviation of the pan/tilt head is determined according to the acquired target attitude of the pan/tilt and the measured attitude of the base.
其中,获取云台目标姿态可以通过多种方式获取,包括以下提供的几个实施例。Among them, obtaining the target posture of the pan/tilt head can be obtained in many ways, including the following embodiments.
实施例一Example one
通过云台通信装置与体感控制器进行通信,如图4所示,云台的目标姿态的获取方法:The PTZ communication device communicates with the somatosensory controller. As shown in Figure 4, the method for obtaining the target posture of the PTZ:
S402,接收体感控制器发送的云台测量数据;S402: Receive PTZ measurement data sent by the somatosensory controller;
S404,根据云台测量数据确认云台的目标姿态。S404: Confirm the target attitude of the pan/tilt based on the measurement data of the pan/tilt.
在该实施例中,体感控制器包括传感器,传感器包括惯性测量单元和指南针,能够测量体感控制器的姿态信息和速度信息,并根据姿态信息和速度信息可以确定云台测量数据,体感控制器中还包括发射器,发射器为无线信号发射器,体感控制器通过发射器将云台测量数据发送至云台,云台根据云台测量数据确定云台的目标姿态。In this embodiment, the somatosensory controller includes a sensor, and the sensor includes an inertial measurement unit and a compass, which can measure the attitude information and speed information of the somatosensory controller, and can determine the pan/tilt measurement data according to the attitude information and speed information. It also includes a transmitter. The transmitter is a wireless signal transmitter. The somatosensory controller sends the gimbal measurement data to the gimbal through the transmitter, and the gimbal determines the target attitude of the gimbal according to the gimbal measurement data.
其中,体感控制器还包括设置面板,使用户直接通过设置面板输入相应设置,相应的设置信息中包括云台测量数据,并通过发射器将包括云台测量数据的设置信息发送给云台,云台根据云台测量数据确定云台的目标姿态。Among them, the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel. The corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter. The platform determines the target attitude of the platform based on the measurement data of the platform.
在上述实施例中,优选地,云台测量数据为云台的角速度数据,根据云台测量数据确认云台的目标姿态的过程,具体包括:根据云台的角速度数据,确定云台的目标角速度;对云台的目标角速度进行积分,以确定云台的目标姿态。In the above embodiment, preferably, the measurement data of the pan/tilt is the angular velocity data of the pan/tilt. The process of confirming the target attitude of the pan/tilt according to the measurement data of the pan/tilt specifically includes: determining the target angular velocity of the pan/tilt based on the angular velocity data of the pan/tilt. ; Integrate the target angular velocity of the gimbal to determine the target attitude of the gimbal.
在该实施例中,云台测量数据为角速度数据,角速度信息为体感控制器在大地坐标系下的角速度,通过惯性测量单元中的加速度计测量得到重力方向向量,通过指南针得到地磁方向,将重力方向和地磁方向进行差积分获得正东方向向量,将重力方向向量和正东方向向量进行差积分获得正北方向向量,利用重力方向向量、正北方向向量、正东方向向量构成参考空间姿态余弦矩阵,将参考空间姿态余弦矩阵转换成姿态四元数,将姿态四元数进行扩展卡尔曼滤波器融合滤波,获得最终的目标姿态信息,通过体感控制器对云台进行控制,可以使用户与云台之间的交互体验更好,提高用户的使用体验。In this embodiment, the gimbal measurement data is angular velocity data, and the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system. The gravity direction vector is measured by the accelerometer in the inertial measurement unit, and the geomagnetic direction is obtained by the compass. Integrate the difference between the direction and the geomagnetic direction to obtain the true east direction vector, and perform the difference integration of the gravity direction vector and the true east direction vector to obtain the true north direction vector. Use the gravity direction vector, the true north direction vector, and the true east direction vector to form the reference space attitude cosine matrix , The reference space attitude cosine matrix is converted into attitude quaternion, and the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information. The pan/tilt can be controlled by the motion sensing controller to enable the user to interact with the cloud. The interactive experience between stations is better and the user experience is improved.
实施例二Example two
通过云台通信装置与终端设备进行通信,云台的目标姿态的获取方法:The method for obtaining the target posture of the PTZ through communication with the terminal equipment through the PTZ communication device:
控制通信装置接收终端设备发送的控制指令,控制指令中包括云台的目标姿态;云台的目标姿态为终端设备根据操控指令的运动轨迹生成,操控指令由终端设备的设置面板接收。The control communication device receives the control instruction sent by the terminal device, and the control instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
在该实施例中,用户可以通过终端的设置面板数据输入实现对云台控制的操控指令,其中操控指令包括控制云台动作的运动轨迹,终端可以根据运动轨迹模拟生成出云台根据该操控指令进行运动后的姿态,即为云台的目标姿态,将云台的目标姿态加入到控制指令中,并通过终端自身的通信装置与云台的通信装置进行通信连接,并将控制指令发送至云台,从而实现云台获取到云台的目标姿态,云台与其他终端进行连接,从而实现了远程控制云台的效果,例如用户可以使用电脑或者移动终端进行控制云台的动作。In this embodiment, the user can realize the control instruction of the pan/tilt control through the data input of the setting panel of the terminal, wherein the control instruction includes the movement trajectory of controlling the movement of the pan/tilt, and the terminal can simulate and generate the pan/tilt according to the control instruction according to the movement trajectory. The posture after exercise is the target posture of the PTZ. The target posture of the PTZ is added to the control instruction, and the communication device of the terminal itself is connected to the communication device of the PTZ, and the control instruction is sent to the cloud. In this way, the pan/tilt can obtain the target posture of the pan/tilt, and the pan/tilt is connected with other terminals to realize the effect of remote control of the pan/tilt. For example, the user can use a computer or mobile terminal to control the pan/tilt.
实施例三Example three
云台自身带有控制手柄,云台的目标姿态的获取方法:The gimbal has a control handle, and the method of obtaining the target posture of the gimbal:
接收云台的控制手柄接收到的设置指令,设置指令中包括云台的目标姿态。Receive the setting instruction received by the control handle of the pan/tilt. The setting instruction includes the target posture of the pan/tilt.
在该实施例中,云台自身带有操控云台动作的控制手柄,且控制手柄带有设置面板,用户可以通过设置面板输入设置指令,用户可以通过该控制手柄直 接向云台发送带有云台的目标姿态的设置指令,设置手柄可以为与云台相连接的结构,适用于手持云台,并将设置手柄设置在握杆位置,可以通过操作设置手柄对云台的姿态进行调整。In this embodiment, the pan/tilt has a control handle for controlling the movement of the pan/tilt, and the control handle has a setting panel. The user can input setting instructions through the setting panel. The user can directly send the cloud to the pan/tilt through the control handle. The target posture setting instruction of the platform, the setting handle can be a structure connected with the pan-tilt, suitable for holding the pan-tilt, and the setting handle is set at the grip position, and the posture of the pan-tilt can be adjusted by operating the setting handle.
实施例四Example four
云台自身带有控制手柄,云台的目标姿态的获取方法:The gimbal has a control handle, and the method of obtaining the target posture of the gimbal:
接收云台的控制手柄的实际姿态,将控制手柄的实际姿态作为云台的目标姿态。Receive the actual attitude of the control handle of the pan/tilt, and use the actual attitude of the control handle as the target attitude of the pan/tilt.
在该实施例中,云台自身带有感应式的控制手柄,该控制手柄中包括惯性测量单元,可以对控制手柄的姿态进行检测,用户改变控制手柄的姿态时,惯性测量单元测量并记录控制手柄的姿态,同时将控制手柄的姿态作为云台的目标姿态,体感式的控制手柄不需要用户通过面板输入各种参数,直接将体感式的手柄本身的姿态作为云台的目标姿态,简化了用户对云台姿态的设置,方便用户进行操作,省去了大量繁琐的操作,从而提高了用户的使用体验。In this embodiment, the pan/tilt has an inductive control handle, which includes an inertial measurement unit, which can detect the attitude of the control handle. When the user changes the attitude of the control handle, the inertial measurement unit measures and records the control The attitude of the handle, and the attitude of the control handle is used as the target attitude of the pan/tilt. The somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the attitude of the somatosensory handle itself as the target attitude of the pan/tilt, which simplifies The user's setting of the PTZ posture is convenient for the user to operate, saves a lot of tedious operations, and improves the user's experience.
其中如图5所示,获取基座的测量姿态的方法包括:As shown in Figure 5, the method for obtaining the measured attitude of the base includes:
S502,获取云台的测量姿态及关节角;S502: Obtain the measured attitude and joint angle of the PTZ;
S504,根据云台的测量姿态及关节角,确认基座的测量姿态。S504: Confirm the measured attitude of the base according to the measured attitude and joint angle of the pan/tilt.
在该实施例中,关节角是多个轴臂对于云台的关节坐标系的角度,基座为云台中用于放置摄像头的结构,由于基座与轴臂相连,因此基座的姿态可由云台的姿态和关节角确定得出,云台中设有惯性测量单元,利用惯性测量单元可以获取到云台的测量姿态和关节角,根据云台的测量姿态以及关节角确定基座的测量姿态。In this embodiment, the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt. The base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined. The platform is equipped with an inertial measurement unit. The measured posture and joint angle of the platform can be obtained by using the inertial measurement unit. The measured posture of the base is determined according to the measured posture and joint angle of the platform.
图6示出了根据本申请另一个实施例的云台的控制方法的示意流程图,如图6所示,该云台控制方法包括:Fig. 6 shows a schematic flow chart of a method for controlling a pan-tilt according to another embodiment of the present application. As shown in Fig. 6, the method for controlling a pan-tilt includes:
S602,获取云台目标姿态;S602: Obtain the target attitude of the pan/tilt;
S604,获取基座的测量姿态;S604: Obtain the measured attitude of the base;
S606,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S606: Confirm the measurement control deviation of the gimbal according to the target posture of the gimbal and the measurement posture of the base;
S608,判断云台的测量控制偏差是否处于预设范围之内,判断结果为是则执行S610,判断结果为否则执行S612;S608: Determine whether the measurement control deviation of the pan/tilt is within a preset range, execute S610 if the judgment result is yes, and execute S612 if the judgment result is otherwise;
S610,控制多个电机输出指定扭矩;S610, control multiple motors to output specified torque;
S612,根据云台的目标姿态确认多个电机的驱动扭矩,并控制多个电机输出驱动扭矩。S612: Confirm the driving torque of the multiple motors according to the target posture of the pan/tilt, and control the multiple motors to output the drive torque.
在该实施例中,判断云台的测量控制偏差是否处于预设范围之内,当云台的测量控制偏差属于预设范围之内时,可以判定云台的位置误差不大,此时不需要改变多个电机的转速,使多个电机保持初始最低转速即可,保持初始最低转速即为控制电机不根据位置误差控制电机增大跟随速度,从而使多个电机输出指定扭矩,当判断到云台的测量控制偏差处于预设范围之外时,可以认为云台的位置误差过大,此时需要控制多个电机加大扭矩从而加快多个电机的转速,使得云台尽快恢复到目标姿态,解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题,同时还可以保证云台姿态存在较大误差时可以快速达到预设的目标姿态,即在保证云台调整速度的同时,还解决了由于静摩擦力过大导致电机发热功耗上升的问题。In this embodiment, it is judged whether the measurement control deviation of the pan/tilt is within the preset range. When the measurement control deviation of the pan/tilt is within the preset range, it can be determined that the position error of the pan/tilt is not large. Change the speed of multiple motors to maintain the initial minimum speed. Maintaining the initial minimum speed means that the control motor does not control the motor to increase the following speed according to the position error, so that the multiple motors output the specified torque. When the measurement control deviation of the platform is outside the preset range, it can be considered that the position error of the pan/tilt is too large. At this time, it is necessary to control multiple motors to increase the torque to accelerate the speed of multiple motors, so that the pan/tilt can return to the target attitude as soon as possible. It solves the problem of heat generation and power consumption increase caused by the large torque output of the motor for a long time without overcoming the static friction force. At the same time, it can also ensure that the preset target posture can be quickly reached when the gimbal posture has a large error, that is, in the guarantee While adjusting the speed of the pan/tilt, it also solves the problem that the motor heating power consumption increases due to excessive static friction.
图7示出了根据本申请另一个实施例的云台的控制方法的示意流程图,如图7所示,该云台控制方法包括:FIG. 7 shows a schematic flowchart of a method for controlling a pan/tilt head according to another embodiment of the present application. As shown in FIG. 7, the method for controlling a pan/tilt head includes:
S702,获取云台目标姿态;S702: Obtain the target attitude of the pan/tilt;
S704,获取基座的测量姿态;S704: Obtain the measured attitude of the base;
S706,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S706: Confirm the measurement control deviation of the gimbal according to the target posture of the gimbal and the measurement posture of the base;
S708,判断云台的测量控制偏差是否处于预设范围之内,判断结果为是则执行S710,判断结果为否则执行S712;S708: Determine whether the measurement control deviation of the pan/tilt is within a preset range, execute S710 if the judgment result is yes, and execute S712 if the judgment result is otherwise;
S710,控制多个电机输出指定扭矩;S710, controlling multiple motors to output specified torque;
S712,根据云台的目标姿态确定多个轴臂的位置误差;S712: Determine the position errors of multiple axis arms according to the target posture of the pan/tilt;
S714,根据多个轴臂的位置误差,确认多个轴臂的目标角速度;S714: Confirm the target angular velocity of the multiple shaft arms according to the position errors of the multiple shaft arms;
S716,根据多个轴臂的目标角速度和多个轴臂的测量角速度,确认多个电机的驱动扭矩,并控制多个电机输出驱动扭矩。S716: According to the target angular velocities of the multiple shaft arms and the measured angular velocities of the multiple shaft arms, confirm the drive torque of the multiple motors, and control the multiple motors to output drive torque.
在该实施例中,采用了如图15和图16所示的控制方法,先对云台中多个轴臂进行位置误差进行确定,通过云台的目标姿态可以确定每个轴臂的位置误差,根据每个轴臂的位置误差,确认每个轴臂的目标角速度,云台的传感器会测量到每个轴臂的测量角速度,根据测量角速度和目标角速度得到角速度的误差,根据角速度的误差可以计算得到电机需要具体扭矩得到使角速度达到目标 角速度,从而确定了每个电机的驱动扭矩,并根据驱动扭矩控制电机输出驱动扭矩,从而实现了在云台姿态误差较小时,不会控制电机输出较小的角速度,因此不会在静摩擦力较大的情况下电机长时间输出较大扭矩,进而减少了电机由于静摩擦力的阻碍未转动而导致的发热以及功耗上升的情况,在减少了电能消耗的同时,还延长了云台中电机的使用寿命,从而提高了用户的使用体验。In this embodiment, the control method shown in Fig. 15 and Fig. 16 is adopted, and the position error of multiple axis arms in the pan/tilt is determined first, and the position error of each axis arm can be determined by the target posture of the pan/tilt. According to the position error of each axle arm, confirm the target angular velocity of each axle arm, the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity. The angular velocity error can be calculated Obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so as to realize that the motor output is not controlled when the PTZ attitude error is small Therefore, the motor will not output a large torque for a long time when the static friction force is large, thereby reducing the heating and the increase of power consumption caused by the motor due to the obstacle of static friction force. At the same time, it also extends the service life of the motor in the pan/tilt, thereby improving the user experience.
具体地,如图15所示的云台电机的电流位置双环控制框图,云台接收外部指令,确定云台的目标姿态,云台的目标姿态与基座的测量姿态作差可以得到一个云台的测量控制偏差,根据这个得到的云台的测量控制偏差确定电机的角速度输出,上述控制方法会使电机随着测量控制偏差的增大从而对输出的角速度进行增大,但在角速度未达到可以克服静摩擦力时电机并不能产生动作,在上述控制方法的基础上再次加入一个控制器,如图16所示的控制框图,可以使测量控制偏差在处于指定预设范围内时,电机输出的角速度不发生变化,从而避免了在测量控制偏差较小时仅通过速度环控制导致的电机发热以及功耗上升的问题。Specifically, as shown in Figure 15 is the current position double-loop control block diagram of the pan/tilt motor. The pan/tilt receives external instructions to determine the target attitude of the pan/tilt. The difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt. According to the measurement control deviation of the pan/tilt, the angular velocity output of the motor is determined. The above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action. Add a controller to the above control method, as shown in the control block diagram in Figure 16, which can measure the angular velocity of the motor output when the control deviation is within the specified preset range No change occurs, thus avoiding the problem of motor heating and power consumption increase caused by speed loop control only when the measurement control deviation is small.
如图13和图14所示,图13中为使用电流位置双环控制下,电机的扭矩随测量控制偏差变化的曲线,在测量控制偏差较小时,扭矩有存在突然快速上升的情况,此时为电机输出角速度一直处于上升阶段,但输出扭矩并未克服电机的静摩擦力,因此扭矩不断增大,此时电机会大量发热,影响电机的使用寿命还加大了耗电量,图14中为使用上述任一实施例中控制方法下,电机的扭矩随测量控制偏差变化的曲线,可以看出即使在测量控制偏差较小的情况下,扭矩也基本维持在一个值附近,且最大扭矩远远小于如图13中使用电流位置双环控制的曲线中的最大扭矩。As shown in Figure 13 and Figure 14, Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control. When the measurement control deviation is small, the torque may rise suddenly and rapidly. The output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase. At this time, the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption. Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
图8示出了根据本申请另一个实施例的云台的控制方法的示意流程图,如图8所示,该云台控制方法包括:FIG. 8 shows a schematic flowchart of a method for controlling a pan/tilt head according to another embodiment of the present application. As shown in FIG. 8, the method for controlling a pan/tilt head includes:
S802,获取云台目标姿态;S802: Obtain the target attitude of the gimbal;
S804,获取基座的测量姿态;S804: Obtain the measured attitude of the base;
S806,根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;S806: Confirm the measurement control deviation of the gimbal according to the target posture of the gimbal and the measurement posture of the base;
S808,判断云台的测量控制偏差是否处于预设范围之内,判断结果为是则执行S810,判断结果为否则执行S812;S808: Determine whether the measurement control deviation of the PTZ is within a preset range, execute S810 if the judgment result is yes, and execute S812 if the judgment result is otherwise;
S810,控制多个电机输出指定扭矩;S810, control multiple motors to output specified torque;
S812,根据云台目标姿态与云台的测量姿态确认云台姿态误差;S812: Confirm the gimbal attitude error according to the gimbal target attitude and the gimbal's measured attitude;
S814,根据预设算法对云台姿态误差进行转换以确认多个轴臂的位置误差;S814: Convert the PTZ attitude error according to the preset algorithm to confirm the position error of multiple axle arms;
S816,根据多个轴臂的位置误差,确认多个轴臂的目标角速度;S816: Confirm the target angular velocity of the multiple shaft arms according to the position errors of the multiple shaft arms;
S818,根据多个轴臂的目标角速度和多个轴臂的测量角速度,确认多个电机的驱动扭矩,并控制多个电机输出驱动扭矩。S818, according to the target angular velocity of the multiple shaft arms and the measured angular velocity of the multiple shaft arms, confirm the drive torque of the multiple motors, and control the multiple motors to output drive torque.
进一步地,预设算法为雅克比逆矩阵算法。Further, the preset algorithm is the Jacobian inverse matrix algorithm.
在该实施例中,由于云台中存在多个轴臂,在对云台整体姿态进行控制时,云台中每个轴臂的位置误差均不相同,因此需要对云台中每个轴臂的姿态均进行控制,在对云台每个轴臂的位置误差进行确定时,可以根据云台的目标姿态和云台的测量姿态计算得出云台的姿态误差,并通过雅可比矩阵的逆矩阵根据云台的姿态误差对多个轴臂的位置误差进行计算,其中雅可比逆矩阵可以将空间坐标系经计算转化为二维坐标系,通过雅可比逆矩阵可以将整个云台的位置误差转化为每个轴臂所对应的二维的误差,从而得到云台每个轴臂的位置误差,通过控制每个轴臂所对应的电机以不同扭矩进行输出,从而实现了精准的控制云台的整体姿态。如图9所示,本申请的第二方面的实施例,提出了一种控制器10,包括:处理器12和存储器14,存储器中存储有计算机程序,处理器12执行存储在存储器14中的计算机程序以实现:根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;基于云台的测量控制偏差处于预设范围的情况,控制云台的多个电机输出指定扭矩,以分别驱动云台的多个轴臂转动。In this embodiment, since there are multiple pivot arms in the pan/tilt, when the overall attitude of the pan/tilt is controlled, the position error of each pivot arm in the pan/tilt is not the same. Therefore, the attitude of each pivot arm in the pan/tilt needs to be uniform. For control, when determining the position error of each axis arm of the pan/tilt, the attitude error of the pan/tilt can be calculated according to the target attitude of the pan/tilt and the measured attitude of the pan/tilt, and the inverse matrix of the Jacobian is based on the cloud The attitude error of the platform calculates the position error of multiple shaft arms. The Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system. The position error of the entire pan/tilt can be converted into every The two-dimensional error corresponding to each axis arm is used to obtain the position error of each axis arm of the gimbal. By controlling the motor corresponding to each axis arm to output with different torques, the overall attitude of the gimbal can be accurately controlled. . As shown in FIG. 9, the embodiment of the second aspect of the present application proposes a controller 10, including: a processor 12 and a memory 14, a computer program is stored in the memory, and the processor 12 executes the data stored in the memory 14. The computer program realizes: confirm the measurement and control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measurement attitude of the base; based on the situation that the measurement and control deviation of the pan/tilt is in the preset range, control the multiple motors of the pan/tilt to output specified torque, To drive the multiple shaft arms of the PTZ to rotate.
本申请提供的控制器,包括处理器12和存储器14,存储器14用于存储计算机程序,通过令处理器12获取到的基座的测量姿态和输入的云台的目标姿态获取测量控制偏差,其中基座的测量姿态为云台动作后基座的实际姿态,云台的目标姿态为根据操作指令所期待的预设姿态,由于云台基座与轴臂或者其他活动位置存在各种摩擦力,很容易产生使测量姿态与云台的目标姿态存在偏差,根据基座的测量姿态与云台的目标姿态进行对比可以得出测量控制偏差,在控制电机进行低速动作时,由于电机的静摩擦力 很大,可能会导致电机长时间输出大扭矩力矩,但是电机并未发生实际动作导致了电机发热,功耗上升,因此对测量控制偏差设置一个预设范围,判断测量控制偏差是否处于预设范围内,如果测量控制偏差处于范围外可以认为电机并未克服摩擦力发生实际动作,则控制电机直接输出预设好的指定扭矩,从而驱动多个轴臂转动,使在云台姿态误差较小时,控制电机以最小速度进行输出,避免了电机在未发生实际动作的情况下长时间输出较大扭矩,防止在误差较小的情况下电机发热导致的功耗上升。The controller provided in the present application includes a processor 12 and a memory 14. The memory 14 is used to store a computer program, and the measurement control deviation is obtained by making the processor 12 obtain the measured attitude of the base and the input target attitude of the pan/tilt. The measured attitude of the base is the actual attitude of the base after the pan/tilt moves. The target attitude of the pan/tilt is the preset attitude expected according to the operation instructions. Due to the various friction forces between the base of the pan/tilt and the pivot arm or other movable positions, It is easy to cause a deviation between the measurement attitude and the target attitude of the pan/tilt. According to the comparison between the measurement attitude of the base and the target attitude of the pan/tilt, the measurement control deviation can be obtained. When the motor is controlled for low-speed action, the static friction force of the motor is very high. Large, may cause the motor to output a large torque for a long time, but the motor does not actually act, which causes the motor to generate heat and power consumption. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force to take actual action. Then the control motor directly outputs the preset specified torque to drive multiple shaft arms to rotate, so that when the PTZ attitude error is small, the control The motor outputs at the minimum speed, which prevents the motor from outputting a large torque for a long time without actual action, and prevents the increase in power consumption caused by the motor heating when the error is small.
其中,预设范围为较大的数值,即云台的测量控制偏差处于较大的情况下,则处理器12直接控制电机输出较大扭矩,其中较大扭矩为足以可以电机静摩擦力的扭矩,避免由于扭矩不足以克服电机静摩擦力导致的电机发热,功耗上升。Among them, the preset range is a larger value, that is, when the measurement control deviation of the pan/tilt is large, the processor 12 directly controls the motor to output a larger torque, where the larger torque is the torque that is sufficient for the static friction of the motor. Avoid the heating of the motor due to insufficient torque to overcome the static friction of the motor and the increase in power consumption.
具体实施例中,处理器12接收一个控制指令,按照控制指令控制多个电机控制对应的云台多个轴臂进行运动,其中控制指令中包含有控制轴臂的期望位置,但是由于电机自身内部的静摩擦力较大,导致轴臂的实际运动位置并未达到期望位置,传感器检测到轴臂运动的实际位置后,根据每个轴臂的期望位置和每个轴臂的实际位置确定云台的测量控制偏差,也就是云台的位置误差,判断云台的测量控制误差是否处于预设范围内,如果处于预设范围外,可以认为姿态误差较大,则直接控制电机输出指定扭矩驱动轴臂转动至期望姿态,从而避免了在云台的较小姿态误差时电机输出并由非常小的期望速度,同时在云台存在较大姿态误差时可以产生足以克服静摩擦力的大角速度,从而解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题。In a specific embodiment, the processor 12 receives a control instruction, and controls multiple motors to control the corresponding PTZ multiple axis arms to move according to the control instruction. The control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction force is large, which causes the actual movement position of the shaft arm to not reach the expected position. After the sensor detects the actual position of the shaft arm movement, the pan/tilt head is determined according to the expected position of each shaft arm and the actual position of each shaft arm. Measurement control deviation, that is, the position error of the pan/tilt, judge whether the measurement control error of the pan/tilt is within the preset range, if it is outside the preset range, it can be considered that the attitude error is large, then directly control the motor to output the specified torque to drive the shaft arm Rotate to the desired attitude, so as to avoid the motor output and the very small expected speed when the pan/tilt has a small attitude error. At the same time, it can generate a large angular velocity sufficient to overcome the static friction when the pan/tilt has a large attitude error. The problem of heat generation and increased power consumption caused by the large torque output of the motor without overcoming the static friction force for a long time.
在本申请的一个实施例中,优选地,处理器12执行基于云台的测量控制偏差处于预设范围的情况,控制云台的多个电机输出指定扭矩的过程,具体包括:根据测量控制偏差与控制偏差与跟随速度曲线,确定测量控制偏差处于预设范围内;其中,控制偏差与跟随速度曲线为多个轴臂中任一个的轴臂跟随速度与云台的控制偏差的关系曲线;根据测量控制偏差相对应的轴臂跟随速度,确定指定扭矩;控制多个电机输出指定扭矩。In an embodiment of the present application, preferably, the processor 12 executes the process of controlling the multiple motors of the pan/tilt to output a specified torque based on the measurement and control deviation of the pan/tilt head, which specifically includes: controlling the deviation based on the measurement According to the control deviation and following speed curve, it is determined that the measurement control deviation is within the preset range; where the control deviation and following speed curve is the relationship curve between the following speed of the shaft arm of any one of the multiple shaft arms and the control deviation of the pan/tilt; Measure the following speed of the shaft arm corresponding to the control deviation to determine the specified torque; control multiple motors to output the specified torque.
在该实施例中,根据如图11所示的控制偏差与跟随速度曲线,其中控 制偏差与跟随速度曲线可以用于云台中任意一个轴臂在控制时的电机输出的跟随速度与云台的测量控制偏差的关系曲线,基座的测量姿态包括每个轴臂的基座的测量姿态,处理器12根据每个轴臂的测量姿态和云台的目标姿态确定了每个轴臂的测量控制偏差,根据每个云台的测量控制偏差通过控制偏差与跟随速度曲线可以得到每个轴臂相对应的电机输出跟随速度,从而确定控制每个轴臂转动的电机的输出扭矩,进而使每个电机控制每个轴臂达到期望姿态。In this embodiment, according to the control deviation and following speed curve as shown in Figure 11, the control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt. The relationship curve of the control deviation. The measured attitude of the base includes the measured attitude of the base of each axle arm. The processor 12 determines the measured control deviation of each axle arm according to the measured attitude of each axle arm and the target attitude of the pan/tilt. According to the measured control deviation of each pan/tilt, the output following speed of the motor corresponding to each shaft arm can be obtained through the control deviation and following speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, and then make each motor Control each shaft arm to achieve the desired posture.
在该实施例中,根据如图11所示的控制偏差与跟随速度曲线,其中控制偏差与跟随速度曲线可以用于云台中任意一个轴臂在控制时的跟随速度与测量控制偏差的关系曲线,基座的测量姿态包括每个轴臂的基座的测量姿态,并根据每个轴臂的测量姿态和目标姿态确定了每个轴臂的测量控制偏差,根据每个测量控制偏差通过控制偏差与跟随速度曲线可以得到每个轴臂相对应的跟随速度,从而确定控制每个轴臂转动的电机的输出扭矩,进而使每个电机控制每个轴臂达到期望姿态。In this embodiment, according to the control deviation and following speed curve as shown in Figure 11, the control deviation and following speed curve can be used for the relationship curve between the following speed and the measurement control deviation of any axis arm in the pan/tilt during control. The measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measurement attitude of each axle arm and the target attitude. According to each measurement control deviation, the control deviation is compared with the Following the speed curve can obtain the corresponding follow speed of each shaft arm, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm to reach the desired posture.
如图12所示的相关技术中跟随速度和测量控制偏差的关系,为在产生测量控制偏差后,在测量控制偏差较小时,由于直接使用速度环控制,电机会随着测量控制偏差的增大而增大角速度,在增大角速度时,电机输出的扭矩并不能克服摩擦力带动电机转动,从而导致电机发热的问题,而如图11中经过改进的控制偏差与跟随速度曲线,在云台的测量控制偏差较小时,保证电机输出的角速度基本维持在初始速度,变化波动平稳,从而避免产生电机处于一直输出较大扭矩却没有动作的情况,保证了电机不会大量发热。As shown in Figure 12, the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating. As shown in Figure 11, the improved control deviation and follow the speed curve, in the pan/tilt When the measurement and control deviation is small, it is ensured that the angular speed output by the motor is basically maintained at the initial speed, and the fluctuations are stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it is guaranteed that the motor will not generate a lot of heat.
其中,控制偏差与跟随速度曲线为根据克服静摩擦力的扭矩进行重新设计得到的,在检测到的云台的测量控制偏差处于预设范围时,使轴臂对应的电机不会输出较小的期望速度,而当云台的测量控制偏差进处于预设范围外时,可以控制轴臂以较大的期望速度运行,从而克服静摩擦力,上述预设范围可以为0≤|X|<R,其中X为预设的测量控制偏差值,当测量控制偏差值X处于0≤|X|<R之间时,可以认为云台的测量控制偏差处于预设范围内且较小;当测量控制偏差值X处于|X|≥R时,可以认为云台的 测量控制偏差处于预设范围外,即测量控制偏差较大。Among them, the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force. When the measured control deviation of the detected PTZ is in the preset range, the motor corresponding to the shaft arm will not output a small expectation Speed, and when the measurement control deviation of the pan/tilt is outside the preset range, the shaft arm can be controlled to run at a larger desired speed to overcome the static friction force. The preset range can be 0≤|X|<R, where X is the preset measurement control deviation value. When the measurement control deviation value X is between 0≤|X|<R, it can be considered that the measurement control deviation of the pan/tilt is within the preset range and is small; when the measurement control deviation value When X is in |X|≥R, it can be considered that the measurement control deviation of the pan/tilt is outside the preset range, that is, the measurement control deviation is relatively large.
在本申请的另一个实施例中,优选地,测量控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;测量控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。In another embodiment of the present application, preferably, when the measurement control deviation is within the preset range, the corresponding shaft arm following speed changes smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm follows Speed and control deviation are roughly positively correlated.
在该实施例中,当云台的测量控制偏差值X处于0≤|X|<R之间时,云台不会控制轴臂跟随速度增大,即当测量控制偏差处于预设范围内的较小的情况下,不会控制电机输出较大扭矩,当测量控制偏差值处于|X|≥R时,控制轴臂对应的电机输出扭矩以克服摩擦力,且轴臂跟随速度随着控制偏差的增大而增大,即控制轴臂跟随速度增大使电机以更大的扭矩进行输出,从而实现减少云台的测量控制偏差。In this embodiment, when the measurement control deviation value X of the pan/tilt is between 0≤|X|<R, the pan/tilt will not control the axis arm to increase the following speed, that is, when the measurement control deviation is within the preset range If it is smaller, the motor will not be controlled to output a large torque. When the measured control deviation is |X|≥R, the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation The increase and increase of the control shaft arm follow the speed to make the motor output with greater torque, so as to reduce the measurement and control deviation of the PTZ.
在本申请的另一个实施例中,优选地,处理器12通过以下过程获取得到控制偏差与跟随速度曲线:获取预存储在云台的存储器内的控制偏差与跟随速度曲线;或者,获取云台的通信装置接收到的控制指令中的控制偏差与跟随速度曲线。In another embodiment of the present application, preferably, the processor 12 obtains the control deviation and the following speed curve through the following process: obtains the control deviation and the following speed curve pre-stored in the memory of the pan-tilt; or, obtains the pan-tilt The control deviation and following speed curve in the control command received by the communication device.
在该实施例中,用于处理器12进行运算处理的控制偏差与跟随速度曲线可以存储在云台内的存储器14中,也可以利用云台的通信装置接收外部传输来的控制指令中携带的,接收外部传输来的控制偏差与跟随速度曲线可以实现随时对该曲线进行更新,从而实现随着实际使用情况进行调整曲线。In this embodiment, the control deviation and follow-up speed curve used for the processor 12 to perform arithmetic processing can be stored in the memory 14 in the pan/tilt, or the communication device of the pan/tilt may be used to receive the control instructions transmitted from the outside. , Receiving the control deviation and following speed curve transmitted from the outside can update the curve at any time, so as to adjust the curve according to the actual use.
在本申请的另一个实施例中,优选地,云台的通信装置能够与体感控制器进行通信,处理器12通过以下过程获得云台的目标姿态:接收体感控制器发送的云台测量数据;根据云台测量数据确认云台的目标姿态。In another embodiment of the present application, preferably, the communication device of the pan/tilt can communicate with the motion sensing controller, and the processor 12 obtains the target posture of the pan/tilt through the following process: receiving pan/tilt measurement data sent by the motion sensing controller; Confirm the target attitude of the gimbal according to the measurement data of the gimbal.
在该实施例中,处理器12通过体感控制器获取云台目标姿态,体感控制器包括传感器,传感器包括惯性测量单元和指南针,能够测量体感控制器的姿态信息和速度信息,并根据姿态信息和速度信息可以确定云台测量数据,体感控制器中还包括发射器,发射器为无线信号发射器,体感控制器通过发射器将云台测量数据发送至云台,云台根据云台测量数据确定云台的目标姿态。In this embodiment, the processor 12 obtains the target posture of the pan/tilt through the somatosensory controller. The somatosensory controller includes a sensor, and the sensor includes an inertial measurement unit and a compass. It can measure the posture information and speed information of the somatosensory controller, and according to the posture information and Speed information can determine the measurement data of the pan/tilt. The somatosensory controller also includes a transmitter. The transmitter is a wireless signal transmitter. The somatosensory controller sends the measurement data of the pan/tilt to the pan/tilt through the transmitter, and the pan/tilt determines the data based on the measurement data of the pan/tilt. The target posture of the gimbal.
其中,体感控制器还包括设置面板,使用户直接通过设置面板输入相应设置,相应的设置信息中包括云台测量数据,并通过发射器将包括云台测量数据的设置信息发送给云台,云台根据云台测量数据确定云台的目标姿态。Among them, the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel. The corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter. The platform determines the target attitude of the platform based on the measurement data of the platform.
在本申请的另一个实施例中,优选地,云台测量数据为云台的角速度数据,处理器12还用于:根据云台的角速度数据,确定云台的目标角速度;对云台的目标角速度进行积分,以确定云台的目标姿态。In another embodiment of the present application, preferably, the measurement data of the pan/tilt is the angular velocity data of the pan/tilt, and the processor 12 is further configured to: determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt; The angular velocity is integrated to determine the target attitude of the gimbal.
在该实施例中,云台测量数据为角速度数据,角速度信息为体感控制器在大地坐标系下的角速度,通过惯性测量单元中的加速度计测量得到重力方向向量,通过指南针得到地磁方向,处理器12通过将重力方向和地磁方向进行差积分获得正东方向向量,再将重力方向向量和正东方向向量进行差积分获得正北方向向量,利用重力方向向量、正北方向向量、正东方向向量构成参考空间姿态余弦矩阵,将参考空间姿态余弦矩阵转换成姿态四元数,将姿态四元数进行扩展卡尔曼滤波器融合滤波,获得最终的目标姿态信息,通过体感控制器对云台进行控制,可以使用户与云台之间的交互体验更好,提高用户的使用体验。In this embodiment, the PTZ measurement data is angular velocity data, and the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system. The gravity direction vector is measured by the accelerometer in the inertial measurement unit, and the geomagnetic direction is obtained by the compass. 12 The positive east direction vector is obtained by the difference integration of the gravity direction and the geomagnetic direction, and then the positive north direction vector is obtained by the difference integration of the gravity direction vector and the true east direction vector, which is composed of the gravity direction vector, the true north direction vector, and the true east direction vector The reference space attitude cosine matrix, the reference space attitude cosine matrix is converted into an attitude quaternion, the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information, and the pan/tilt is controlled by the motion sensing controller. It can make the interaction experience between the user and the PTZ better and improve the user experience.
在本申请的另一个实施例中,优选地,云台的通信装置能够与终端设备进行通信,处理器12通过以下过程获得云台的目标姿态:控制通信装置接收终端设备发送的控制指令,控制指令中包括云台的目标姿态;云台的目标姿态为终端设备根据操控指令的运动轨迹生成,操控指令由终端设备的设置面板接收。In another embodiment of the present application, preferably, the communication device of the pan-tilt can communicate with the terminal device, and the processor 12 obtains the target posture of the pan-tilt through the following process: control the communication device to receive the control instruction sent by the terminal device, and control The instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
在该实施例中,处理器12通过云台的通信装置获取云台目标姿态,处理器12可以接收用户通过终端的设置面板数据输入实现对云台控制的操控指令,其中操控指令包括控制云台动作的运动轨迹,终端可以根据运动轨迹模拟生成出云台根据该操控指令进行运动后的姿态,即为云台的目标姿态,将云台的目标姿态加入到控制指令中,并通过终端自身的通信装置与云台的通信装置进行通信连接,并将控制指令发送至云台,从而实现云台获取到云台的目标姿态,云台与其他终端进行连接,从而实现了远程控制云台的效果,例如用户可以使用电脑或者移动终端进行控制云台的动作。In this embodiment, the processor 12 obtains the target posture of the pan/tilt through the communication device of the pan/tilt, and the processor 12 can receive the control instructions of the user to realize the control of the pan/tilt through the setting panel data input of the terminal, wherein the control instructions include controlling the pan/tilt. For the motion trajectory of the action, the terminal can simulate the motion trajectory to generate the posture of the gimbal after moving according to the control instruction, which is the target posture of the gimbal. The target posture of the gimbal is added to the control instruction and passed through the terminal’s own The communication device communicates with the communication device of the pan-tilt, and sends control instructions to the pan-tilt, so that the pan-tilt obtains the target posture of the pan-tilt, and the pan-tilt connects with other terminals to achieve the effect of remote control of the pan-tilt For example, users can use a computer or mobile terminal to control the PTZ.
在本申请的另一个实施例中,优选地,处理器12通过以下过程获得云台的目标姿态:接收云台的控制手柄接收到的设置指令,设置指令中包括云台的目标姿态。In another embodiment of the present application, preferably, the processor 12 obtains the target attitude of the pan/tilt head through the following process: receiving a setting instruction received by the control handle of the pan/tilt head, and the setting instruction includes the target attitude of the pan/tilt tip.
在该实施例中,处理器12通过云台自身带有的控制手柄获取云台目标姿态,云台自身带有操控云台动作的控制手柄,且控制手柄带有设置面板,处理 器12获取用户通过设置面板输入的设置指令,用户可以通过该控制手柄直接向云台发送带有云台的目标姿态的设置指令,设置手柄可以为与云台相连接的结构,适用于手持云台,并将设置手柄设置在握杆位置,可以通过操作设置手柄对云台的姿态进行调整。In this embodiment, the processor 12 obtains the target posture of the pan/tilt through the control handle of the pan/tilt itself. The pan/tilt itself has a control handle for controlling the movement of the pan/tilt, and the control handle has a setting panel. The processor 12 acquires the user Through the setting command input by the setting panel, the user can directly send the setting command of the target posture with the PTZ to the PTZ through the control handle. The setting handle can be a structure connected with the PTZ, suitable for hand-held PTZ The setting handle is set at the grip position, and the posture of the PTZ can be adjusted by operating the setting handle.
在本申请的另一个实施例中,优选地,接收云台的控制手柄的实际姿态,将控制手柄的实际姿态作为云台的目标姿态。In another embodiment of the present application, preferably, the actual posture of the control handle of the pan/tilt is received, and the actual posture of the control handle is used as the target posture of the pan/tilt.
在该实施例中,云台自身带有感应式的控制手柄,该控制手柄中包括惯性测量单元,可以对控制手柄的姿态进行检测,用户改变控制手柄的姿态时,处理器12通过惯性测量单元测量并记录控制手柄的姿态,同时将控制手柄的姿态作为云台的目标姿态,体感式的控制手柄不需要用户通过面板输入各种参数,直接将体感式的手柄本身的姿态作为云台的目标姿态,简化了用户对云台姿态的设置,方便用户进行操作,省去了大量繁琐的操作,从而提高了用户的使用体验。In this embodiment, the pan/tilt has an inductive control handle. The control handle includes an inertial measurement unit, which can detect the attitude of the control handle. When the user changes the attitude of the control handle, the processor 12 uses the inertial measurement unit. Measure and record the posture of the control handle, and use the posture of the control handle as the target posture of the pan/tilt. The somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the posture of the somatosensory handle itself as the target of the gimbal. The posture simplifies the user's setting of the PTZ posture, facilitates the user's operation, saves a lot of tedious operations, and improves the user's experience.
在本申请的另一个实施例中,优选地,处理器12通过以下过程获得基座的测量姿态:获取云台的测量姿态及关节角;根据云台的测量姿态及关节角,确认基座的测量姿态;其中,关节角是云台的多个轴臂相对于云台的关节坐标系的角度。In another embodiment of the present application, preferably, the processor 12 obtains the measured posture of the base through the following process: obtains the measured posture and joint angle of the pan/tilt; Measure the posture; where the joint angle is the angle of the multiple axis arms of the pan/tilt with respect to the joint coordinate system of the pan/tilt.
在本申请的另一个实施例中,优选地,云台包括惯性测量单元,处理器12执行获取云台的测量姿态及关节角的过程,具体包括:控制惯性测量单元获取云台的测量姿态及关节角。In another embodiment of the present application, preferably, the pan/tilt includes an inertial measurement unit, and the processor 12 executes the process of acquiring the measured attitude and joint angle of the pan/tilt, specifically including: controlling the inertial measurement unit to acquire the measured attitude of the pan/tilt and Joint angle.
在该实施例中,关节角是多个轴臂对于云台的关节坐标系的角度,基座为云台中用于放置摄像头的结构,由于基座与轴臂相连,因此基座的姿态可由云台的姿态和关节角确定得出,云台中设有惯性测量单元,处理器12接收利用惯性测量单元可以获取到云台的测量姿态和关节角,处理器12根据接收到的云台的测量姿态以及关节角确定基座的测量姿态。In this embodiment, the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt. The base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined. The platform is equipped with an inertial measurement unit. The processor 12 receives and uses the inertial measurement unit to obtain the measured posture and joint angle of the platform. The processor 12 receives the measured posture of the platform And the joint angle determines the measurement attitude of the base.
在本申请的另一个实施例中,优选地,基于云台的测量控制偏差处于预设范围之外的情况,处理器12还用于:根据云台的目标姿态确认多个电机的驱动扭矩;控制多个电机输出驱动扭矩。In another embodiment of the present application, preferably, based on the situation that the measurement control deviation of the pan/tilt is outside the preset range, the processor 12 is further configured to: confirm the driving torque of the multiple motors according to the target posture of the pan/tilt; Control multiple motors to output drive torque.
在该实施例中,处理器12判断云台的测量控制偏差是否处于预设范围之 内,当云台的测量控制偏差属于预设范围之内时,可以判定云台的位置误差不大,此时不需要改变多个电机的转速,使多个电机保持初始最低转速即可,即使多个电机输出指定扭矩,当判断到云台的测量控制偏差处于预设范围之外时,可以认为云台的位置误差过大,此时需要控制多个电机加大扭矩从而加快多个电机的转速,使得云台尽快恢复到目标姿态,解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题,同时还可以保证云台姿态存在较大误差时可以快速达到预设的目标姿态,即在保证云台调整速度的同时,还解决了由于静摩擦力过大导致电机发热功耗上升的问题。In this embodiment, the processor 12 determines whether the measurement control deviation of the pan/tilt is within the preset range. When the measurement control deviation of the pan/tilt falls within the preset range, it can be determined that the position error of the pan/tilt is not large. When it is not necessary to change the speed of multiple motors, it is enough to keep multiple motors at the initial minimum speed. Even if multiple motors output specified torque, when it is determined that the measurement control deviation of the pan/tilt is outside the preset range, the pan/tilt can be considered The position error of the motor is too large. At this time, it is necessary to control multiple motors to increase the torque to accelerate the speed of multiple motors, so that the pan/tilt can return to the target attitude as soon as possible, and solve the problem of the motor outputting a large torque without overcoming the static friction for a long time. The problem of heat generation and increased power consumption can also be ensured that the preset target attitude can be quickly reached when there is a large error in the gimbal attitude. That is, while ensuring the adjustment speed of the gimbal, it also solves the problem of excessive static friction. The problem of rising heat power consumption.
在本申请的另一个实施例中,优选地,处理器12执行根据云台的目标姿态确认多个电机的驱动扭矩的过程,具体包括:根据云台的目标姿态确定多个轴臂的位置误差;根据多个轴臂的位置误差,确认多个轴臂的目标角速度;根据多个轴臂的目标角速度及多个轴臂的测量角速度,确认多个电机的驱动扭矩。In another embodiment of the present application, preferably, the processor 12 executes the process of confirming the driving torques of the multiple motors according to the target posture of the pan/tilt, which specifically includes: determining the position errors of the multiple shaft arms according to the target posture of the pan/tilt. ; According to the position error of multiple shaft arms, confirm the target angular velocity of multiple shaft arms; according to the target angular velocity of multiple shaft arms and the measured angular velocity of multiple shaft arms, confirm the drive torque of multiple motors.
在该实施例中,采用了如图15和图16所示的控制方法,处理器12先对云台中多个轴臂进行位置误差进行确定,通过云台的目标姿态可以确定每个轴臂的位置误差,根据每个轴臂的位置误差,确认每个轴臂的目标角速度,云台的传感器会测量到每个轴臂的测量角速度,根据测量角速度和目标角速度得到角速度的误差,根据角速度的误差可以计算得到电机需要具体扭矩得到使角速度达到目标角速度,从而确定了每个电机的驱动扭矩,并根据驱动扭矩控制电机输出驱动扭矩,从而实现了在云台姿态误差较小时,处理器12不会控制电机输出较小的角速度,因此不会在静摩擦力较大的情况下电机长时间输出较大扭矩,进而减少了电机由于静摩擦力的阻碍未转动而导致的发热以及功耗上升的情况,在减少了电能消耗的同时,还延长了云台中电机的使用寿命,从而提高了用户的使用体验。In this embodiment, the control method shown in Fig. 15 and Fig. 16 is adopted. The processor 12 first determines the position error of multiple shaft arms in the pan/tilt. The target posture of the pan/tilt can determine the position of each shaft arm. Position error, according to the position error of each axle arm, confirm the target angular velocity of each axle arm, the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity. The error can be calculated to obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so that when the PTZ attitude error is small, the processor 12 does not It will control the motor to output a small angular velocity, so the motor will not output a large torque for a long time when the static friction is large, thereby reducing the heat generated by the motor due to the resistance of the static friction and the increase in power consumption. While reducing power consumption, it also prolongs the service life of the motor in the pan/tilt, thereby improving the user experience.
具体地,如图15所示的云台电机的电流位置双环控制框图,云台接收外部指令,确定云台的目标姿态,云台的目标姿态与基座的测量姿态作差可以得到一个云台的测量控制偏差,根据这个得到的云台的测量控制偏差确定电机的角速度输出,上述控制方法会使电机随着测量控制偏差的增大从而对输出 的角速度进行增大,但在角速度未达到可以克服静摩擦力时电机并不能产生动作,在上述控制方法的基础上再次加入一个控制器,如图16所示的控制框图,可以使云台的测量控制偏差在处于指定预设范围内时,电机输出的角速度不发生变化,从而避免了在测量控制偏差较小时仅通过速度环控制导致的电机发热以及功耗上升的问题。Specifically, as shown in Figure 15 is the current position double-loop control block diagram of the pan/tilt motor. The pan/tilt receives an external command to determine the target attitude of the pan/tilt. The difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt. According to the measurement control deviation of the pan/tilt, the angular velocity output of the motor is determined. The above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action. On the basis of the above control method, a controller is added again, as shown in the control block diagram in Figure 16, which can make the measurement and control deviation of the pan/tilt be within the specified preset range. The output angular velocity does not change, thus avoiding the problem of motor heating and power consumption increase caused by speed loop control only when the measurement control deviation is small.
如图13和图14所示,图13中为使用电流位置双环控制下,电机的扭矩随测量控制偏差变化的曲线,在测量控制偏差较小时,扭矩有存在突然快速上升的情况,此时为电机输出角速度一直处于上升阶段,但输出扭矩并未克服电机的静摩擦力,因此扭矩不断增大,此时电机会大量发热,影响电机的使用寿命还加大了耗电量,图14中为使用上述任一实施例中控制方法下,电机的扭矩随测量控制偏差变化的曲线,可以看出即使在测量控制偏差较小的情况下,扭矩也基本维持在一个值附近,且最大扭矩远远小于如图13中使用电流位置双环控制的曲线中的最大扭矩。As shown in Figure 13 and Figure 14, Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control. When the measurement control deviation is small, the torque may rise suddenly and rapidly. The output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase. At this time, the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption. Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
在本申请的另一个实施例中,优选地,处理器12执行根据云台的目标姿态确定多个轴臂的位置误差的过程,具体包括:根据云台的目标姿态与云台的测量姿态确认云台姿态误差;根据预设算法对云台姿态误差进行转换以确认多个轴臂的位置误差。In another embodiment of the present application, preferably, the processor 12 executes the process of determining the position errors of the multiple axis arms according to the target attitude of the pan/tilt, specifically including: confirming the target attitude of the pan/tilt and the measured attitude of the pan/tilt. PTZ attitude error: Convert the PTZ attitude error according to the preset algorithm to confirm the position error of multiple axis arms.
在本申请的另一个实施例中,优选地,预设算法为雅克比逆矩阵算法。In another embodiment of the present application, preferably, the preset algorithm is the Jacobian inverse matrix algorithm.
在该实施例中,由于云台中存在多个轴臂,处理器12在对云台整体姿态进行控制时,云台中每个轴臂的位置误差均不相同,因此需要对云台中每个轴臂的姿态均进行控制,处理器12在对云台每个轴臂的位置误差进行确定时,可以根据云台的目标姿态和云台的测量姿态计算得出云台的姿态误差,并通过雅可比矩阵的逆矩阵根据云台的姿态误差对多个轴臂的位置误差进行计算,其中雅可比逆矩阵可以将空间坐标系经计算转化为二维坐标系,通过雅可比逆矩阵可以将整个云台的位置误差转化为每个轴臂所对应的二维的误差,从而得到云台每个轴臂的位置误差,处理器12通过控制每个轴臂所对应的电机以不同扭矩进行输出,从而实现了精准的控制云台的整体姿态。In this embodiment, since there are multiple pivot arms in the pan/tilt, when the processor 12 controls the overall posture of the pan/tilt, the position error of each pivot arm in the pan/tilt is not the same. When the processor 12 determines the position error of each axis arm of the pan/tilt, it can calculate the attitude error of the pan/tilt according to the target attitude of the pan/tilt and the measured attitude of the pan/tilt, and use the Jacobian The inverse matrix of the matrix calculates the position error of multiple axis arms according to the attitude error of the pan/tilt. The Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system through calculation. The entire pan/tilt can be transformed by the Jacobian inverse matrix. The position error is converted into a two-dimensional error corresponding to each shaft arm, so as to obtain the position error of each shaft arm of the pan/tilt. The processor 12 controls the motor corresponding to each shaft arm to output with different torques, thereby achieving In order to accurately control the overall posture of the PTZ.
如图10所示,本申请第三方面的实施例提供了一种云台20,包括多个轴臂,多个轴臂,包括偏航轴臂222、俯仰轴臂224及横滚轴臂226;As shown in FIG. 10, the embodiment of the third aspect of the present application provides a pan/tilt head 20, which includes multiple shaft arms, multiple shaft arms, including a yaw shaft arm 222, a pitch shaft arm 224, and a roll shaft arm 226 ;
多个电机,驱动多个轴臂转动多个电机,多个电机分别为偏航电机242,俯仰电机244,横滚电机246;Multiple motors, driving multiple shaft arms to rotate multiple motors, the multiple motors are respectively yaw motor 242, pitch motor 244, and roll motor 246;
基座,基座与偏航轴臂相连接;Base, the base is connected with the yaw shaft arm;
控制器,用于根据云台的目标姿态与基座的测量姿态确认云台的测量控制偏差;基于云台的测量控制偏差处于预设范围的情况,控制多个电机输出指定扭矩,以分别驱动多个轴臂转动。The controller is used to confirm the measurement and control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measured attitude of the base; based on the situation that the measurement and control deviation of the pan/tilt is in the preset range, it controls multiple motors to output specified torque to drive separately Multiple shaft arms rotate.
本申请提供的云台中,包括上述任一实施例中的控制器10,由偏航轴臂、俯仰轴臂及横滚轴臂组成的多个轴臂,在云台的空间坐标系中,俯仰轴沿着x轴旋转,控制基座俯仰,横滚轴沿着z轴旋转,可以控制基座前后滚转,偏航轴沿着y轴旋转,可以控制基座左右滚转,和用于驱动多个轴臂的多个电机,每个电机控制一个轴臂的旋转,并且由于基座与偏航轴连接,通过三个电机分别控制偏航轴臂、俯仰轴臂及横滚轴臂从而控制基座的姿态,通过令控制器10获取到的基座的测量姿态和输入的云台的目标姿态获取测量控制偏差,其中基座的测量姿态为云台动作后基座的实际姿态,云台的目标姿态为根据操作指令所期待的预设姿态,由于云台基座与轴臂或者其他活动位置存在各种摩擦力,很容易产生使测量姿态与云台的目标姿态存在偏差,根据基座的测量姿态与云台的目标姿态进行对比可以得出测量控制偏差,在控制电机进行低速动作时,由于电机的静摩擦力很大,可能会导致电机长时间输出大扭矩力矩,但是电机并未发生实际动作导致了电机发热,功耗上升,因此对测量控制偏差设置一个预设范围,判断测量控制偏差是否处于预设范围内,如果测量控制偏差处于范围外可以认为电机并未克服摩擦力发生实际动作,则控制电机直接输出预设好的指定扭矩,从而驱动多个轴臂转动,使在云台姿态误差较小时,控制电机以最小速度进行输出,避免了电机在未发生实际动作的情况下长时间输出较大扭矩,防止在误差较小的情况下电机发热导致的功耗上升。The pan/tilt head provided in this application includes the controller 10 in any of the above embodiments, multiple shaft arms composed of a yaw axis arm, a pitch axis arm, and a roll axis arm. In the space coordinate system of the pan/tilt, the pitch The axis rotates along the x axis to control the pitch of the base, the roll axis rotates along the z axis, which can control the base to roll back and forth, the yaw axis rotates along the y axis, which can control the base to roll left and right, and is used to drive Multiple motors of multiple shaft arms, each motor controls the rotation of one shaft arm, and because the base is connected to the yaw axis, three motors are used to control the yaw shaft arm, pitch shaft arm and roll shaft arm respectively. The attitude of the base is obtained by making the measured attitude of the base acquired by the controller 10 and the input target attitude of the pan/tilt to obtain the measurement control deviation, wherein the measured attitude of the base is the actual attitude of the base after the pan/tilt moves. The target posture of is the preset posture expected according to the operation instructions. Due to the various friction forces between the gimbal base and the pivot arm or other active positions, it is easy to cause deviations between the measured posture and the target posture of the gimbal. Comparing the measured attitude with the target attitude of the gimbal can get the measurement control deviation. When controlling the motor for low-speed action, due to the large static friction of the motor, it may cause the motor to output a large torque for a long time, but the motor does not occur The actual action caused the motor to heat up and the power consumption increased. Therefore, set a preset range for the measurement control deviation to determine whether the measurement control deviation is within the preset range. If the measurement control deviation is outside the range, it can be considered that the motor has not overcome the friction force. Action, the motor is controlled to directly output the preset specified torque, thereby driving the rotation of multiple shaft arms, so that when the attitude error of the pan/tilt is small, the motor is controlled to output at the minimum speed, avoiding the fact that the motor does not actually move. Long-term output of large torque can prevent the increase of power consumption caused by motor heating when the error is small.
具体实施例中,控制器10接收一个控制指令,按照控制指令控制多个电机控制对应的云台多个轴臂进行运动,其中控制指令中包含有控制轴臂的期望位置,但是由于电机自身内部的静摩擦力较大,导致轴臂的实际运动位置并未达到期望位置,传感器检测到轴臂运动的实际位置后,根据每 个轴臂的期望位置和每个轴臂的实际位置确定云台的测量控制偏差,也就是云台的位置误差,判断云台的测量控制误差是否处于预设范围内,如果处于预设范围外,可以认为姿态误差较大,则直接控制电机输出指定扭矩驱动轴臂转动至期望姿态,从而避免了在云台的较小姿态误差时电机输出并由非常小的期望速度,同时在云台存在较大姿态误差时可以产生足以克服静摩擦力的大角速度,从而解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题。In a specific embodiment, the controller 10 receives a control instruction, and controls multiple motors to control the corresponding PTZ multiple axis arms to move according to the control instruction. The control instruction contains the desired position of the control axis arm, but due to the internal motor The static friction force is large, which causes the actual movement position of the shaft arm to not reach the expected position. After the sensor detects the actual position of the shaft arm movement, the pan/tilt head is determined according to the expected position of each shaft arm and the actual position of each shaft arm. Measurement control deviation, that is, the position error of the pan/tilt, judge whether the measurement control error of the pan/tilt is within the preset range, if it is outside the preset range, it can be considered that the attitude error is large, then directly control the motor to output the specified torque to drive the shaft arm Rotate to the desired attitude, so as to avoid the motor output and the very small expected speed when the pan/tilt has a small attitude error. At the same time, it can generate a large angular velocity sufficient to overcome the static friction when the pan/tilt has a large attitude error. The problem of heat generation and increased power consumption caused by the large torque output of the motor without overcoming the static friction force for a long time.
在本申请的一个实施例中,优选地,控制器10执行基于云台的测量控制偏差处于预设范围的情况,控制多个电机输出指定扭矩的过程,具体包括:根据测量控制偏差与控制偏差与跟随速度曲线,确定测量控制偏差处于预设范围内;其中,控制偏差与跟随速度曲线为多个轴臂中任一个的轴臂跟随速度与云台的控制偏差的关系曲线;根据测量控制偏差相对应的轴臂跟随速度,确定指定扭矩;控制多个电机输出指定扭矩。In an embodiment of the present application, preferably, the controller 10 executes the process of controlling a plurality of motors to output a specified torque based on the measurement control deviation of the pan/tilt head in the preset range, which specifically includes: according to the measurement control deviation and the control deviation With the following speed curve, it is determined that the measurement control deviation is within the preset range; the control deviation and following speed curve is the relationship curve between the shaft arm following speed of any one of the multiple shaft arms and the control deviation of the pan/tilt; according to the measurement control deviation The corresponding shaft arm follows the speed to determine the specified torque; controls multiple motors to output the specified torque.
在该实施例中,根据如图11所示的控制偏差与跟随速度曲线,其中控制偏差与跟随速度曲线可以用于云台中任意一个轴臂在控制时的电机输出的跟随速度与云台的测量控制偏差的关系曲线,基座的测量姿态包括每个轴臂的基座的测量姿态,控制器10根据每个轴臂的测量姿态和云台的目标姿态确定了每个轴臂的测量控制偏差,根据每个云台的测量控制偏差通过控制偏差与跟随速度曲线可以得到每个轴臂相对应的电机输出跟随速度,从而确定控制每个轴臂转动的电机的输出扭矩,进而使每个电机控制每个轴臂达到期望姿态。In this embodiment, according to the control deviation and following speed curve as shown in Figure 11, the control deviation and following speed curve can be used to measure the following speed of the motor output of any axis arm in the pan/tilt during control and the measurement of the pan/tilt. The relationship curve of the control deviation. The measured attitude of the base includes the measured attitude of the base of each axle arm. The controller 10 determines the measured control deviation of each axle arm according to the measured attitude of each axle arm and the target attitude of the pan/tilt. According to the measured control deviation of each pan/tilt, the output following speed of the motor corresponding to each shaft arm can be obtained through the control deviation and following speed curve, so as to determine the output torque of the motor that controls the rotation of each shaft arm, and then make each motor Control each shaft arm to achieve the desired posture.
在该实施例中,根据如图11所示的控制偏差与跟随速度曲线,其中控制偏差与跟随速度曲线可以用于云台中任意一个轴臂在控制时的跟随速度与测量控制偏差的关系曲线,基座的测量姿态包括每个轴臂的基座的测量姿态,并根据每个轴臂的测量姿态和目标姿态确定了每个轴臂的测量控制偏差,根据每个测量控制偏差通过控制偏差与跟随速度曲线可以得到每个轴臂相对应的跟随速度,从而确定控制每个轴臂转动的电机的输出扭矩,进而使每个电机控制每个轴臂达到期望姿态。In this embodiment, according to the control deviation and following speed curve as shown in Figure 11, the control deviation and following speed curve can be used for the relationship curve between the following speed and the measurement control deviation of any axis arm in the pan/tilt during control. The measurement attitude of the base includes the measurement attitude of the base of each axle arm, and the measurement control deviation of each axle arm is determined according to the measurement attitude of each axle arm and the target attitude. According to each measurement control deviation, the control deviation is compared with the Following the speed curve can obtain the corresponding follow speed of each shaft arm, so as to determine the output torque of the motor that controls the rotation of each shaft arm, so that each motor can control each shaft arm to reach the desired posture.
如图12所示的相关技术中跟随速度和测量控制偏差的关系,为在产生 测量控制偏差后,在测量控制偏差较小时,由于直接使用速度环控制,电机会随着测量控制偏差的增大而增大角速度,在增大角速度时,电机输出的存在扭矩并不能克服摩擦力带动电机转动,从而导致电机发热的问题,而如图11中经过改进的控制偏差与跟随速度曲线,在云台的测量控制偏差较小时,保证电机输出的角速度基本维持在初始速度,变化波动平稳,从而避免产生电机处于一直输出较大扭矩却没有动作的情况,保证了电机不会大量发热。As shown in Figure 12, the relationship between following speed and measurement control deviation in the related technology is that after the measurement control deviation is generated, when the measurement control deviation is small, because the speed loop control is directly used, the motor will increase with the measurement control deviation While increasing the angular velocity, when the angular velocity is increased, the torque output by the motor cannot overcome the friction to drive the motor to rotate, which leads to the problem of motor heating. As shown in Figure 11, the improved control deviation and follow the speed curve, in the pan/tilt When the measurement control deviation is small, it is ensured that the angular velocity of the motor output is basically maintained at the initial speed, and the fluctuation fluctuation is stable, so as to avoid the situation where the motor is always outputting a large torque but does not act, and it ensures that the motor does not generate a lot of heat.
其中,控制偏差与跟随速度曲线为根据克服静摩擦力的扭矩进行重新设计得到的,在检测到的云台的测量控制偏差处于预设范围时,使轴臂对应的电机不会输出较小的期望速度,而当云台的测量控制偏差处于预设范围外时,可以控制轴臂以较大的期望速度运行,从而克服静摩擦力,上述预设范围可以为0≤|X|<R,其中X为预设的测量控制偏差值,当测量控制偏差值X处于0≤|X|<R之间时,可以认为云台的测量控制偏差处于预设范围内且较小;当测量控制偏差值X处于|X|≥R时,可以认为云台的测量控制偏差处于预设范围外,即测量控制偏差较大。Among them, the control deviation and the following speed curve are redesigned based on the torque that overcomes the static friction force. When the measured control deviation of the detected PTZ is in the preset range, the motor corresponding to the shaft arm will not output a small expectation When the measurement and control deviation of the pan/tilt is outside the preset range, the shaft arm can be controlled to run at a larger desired speed to overcome the static friction. The preset range can be 0≤|X|<R, where X It is the preset measurement control deviation value. When the measurement control deviation value X is between 0≤|X|<R, it can be considered that the measurement control deviation of the pan/tilt is within the preset range and is small; when the measurement control deviation value X When |X|≥R, it can be considered that the measurement control deviation of the pan/tilt is outside the preset range, that is, the measurement control deviation is relatively large.
在本申请的另一个实施例中,优选地,测量控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;测量控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。In another embodiment of the present application, preferably, when the measurement control deviation is within the preset range, the corresponding shaft arm following speed changes smoothly; when the measurement control deviation is outside the preset range, the corresponding shaft arm follows Speed and control deviation are roughly positively correlated.
在该实施例中,当云台的测量控制偏差值X处于0≤|X|<R之间时,云台不会控制轴臂跟随速度增长,即当测量控制偏差处于预设范围内的较小的情况下,不会控制电机输出较大扭矩,当测量控制偏差值处于|X|≥R时,控制轴臂对应的电机输出扭矩以克服摩擦力,且轴臂跟随速度随着控制偏差的增大而增大,即控制轴臂跟随速度增大使电机以更大的扭矩进行输出,从而实现减少云台的测量控制偏差。In this embodiment, when the measurement control deviation value X of the pan/tilt is between 0≤|X|<R, the pan/tilt will not control the follow-up speed increase of the shaft arm, that is, when the measurement control deviation is within the preset range, In the small case, the motor will not be controlled to output a large torque. When the measured control deviation value is |X|≥R, the motor output torque corresponding to the shaft arm is controlled to overcome the friction, and the shaft arm follows the speed with the control deviation Increase and increase, that is, the increase in the follow-up speed of the control shaft arm causes the motor to output with greater torque, thereby reducing the measurement and control deviation of the PTZ.
在本申请的另一个实施例中,优选地,控制器10通过以下过程获取得到控制偏差与跟随速度曲线:获取预存储在云台的存储器内的控制偏差与跟随速度曲线;或者,获取云台的通信装置接收到的控制指令中的控制偏差与跟随速度曲线。In another embodiment of the present application, preferably, the controller 10 obtains the control deviation and the following speed curve through the following process: obtains the control deviation and the following speed curve pre-stored in the memory of the pan/tilt; or, obtains the pan/tilt The control deviation and following speed curve in the control command received by the communication device.
在该实施例中,用于控制器10进行运算处理的控制偏差与跟随速度曲线 可以存储在云台内的存储器中,也可以利用云台的通信装置接收外部传输来的控制指令中携带的,接收外部传输来的控制偏差与跟随速度曲线可以实现随时对该曲线进行更新,从而实现随着实际使用情况进行调整曲线。In this embodiment, the control deviation and follow-up speed curve used for the arithmetic processing of the controller 10 can be stored in the memory in the pan-tilt, or can be carried in the control instructions transmitted from the outside by the communication device of the pan-tilt, Receiving the control deviation and following speed curve transmitted from the outside can update the curve at any time, so as to adjust the curve according to actual usage.
在本申请的另一个实施例中,优选地,云台包括通信装置,通信装置能够与体感控制器进行通信,云台的目标姿态通过以下过程获得:接收体感控制器发送的云台测量数据;根据云台测量数据确认云台的目标姿态。In another embodiment of the present application, preferably, the pan/tilt includes a communication device that can communicate with the somatosensory controller, and the target posture of the pan/tilt is obtained by the following process: receiving measurement data of the pan/tilt sent by the somatosensory controller; Confirm the target attitude of the gimbal according to the measurement data of the gimbal.
在该实施例中,控制器10通过体感控制器获取云台目标姿态,体感控制器包括传感器,传感器包括惯性测量组件和指南针,能够测量体感控制器的姿态信息和速度信息,并根据姿态信息和速度信息可以确定云台测量数据,体感控制器中还包括发射器,发射器为无线信号发射器,体感控制器通过发射器将云台测量数据发送至云台,云台根据云台测量数据确定云台的目标姿态。In this embodiment, the controller 10 obtains the target posture of the pan/tilt through the somatosensory controller. The somatosensory controller includes a sensor, and the sensor includes an inertial measurement component and a compass. It can measure the attitude information and speed information of the somatosensory controller, and according to the attitude information and Speed information can determine the measurement data of the pan/tilt. The somatosensory controller also includes a transmitter. The transmitter is a wireless signal transmitter. The somatosensory controller sends the measurement data of the pan/tilt to the pan/tilt through the transmitter, and the pan/tilt determines the data based on the measurement data of the pan/tilt. The target posture of the gimbal.
其中,体感控制器还包括设置面板,使用户直接通过设置面板输入相应设置,相应的设置信息中包括云台测量数据,并通过发射器将包括云台测量数据的设置信息发送给云台,云台根据云台测量数据确定云台的目标姿态。Among them, the somatosensory controller also includes a setting panel, allowing the user to directly input corresponding settings through the setting panel. The corresponding setting information includes PTZ measurement data, and the setting information including the PTZ measurement data is sent to the PTZ through the transmitter. The platform determines the target attitude of the platform based on the measurement data of the platform.
在本申请的另一个实施例中,云台测量数据为云台的角速度数据,控制器10还用于:根据云台的角速度数据,确定云台的目标角速度;对云台的目标角速度进行积分,以确定云台的目标姿态。In another embodiment of the present application, the measurement data of the pan/tilt is the angular velocity data of the pan/tilt, and the controller 10 is also used to: determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt; and integrate the target angular velocity of the pan/tilt To determine the target posture of the gimbal.
在该实施例中,云台测量数据为角速度数据,角速度信息为体感控制器在大地坐标系下的角速度,通过惯性测量组件中的加速度计测量得到重力方向向量,通过指南针得到地磁方向,控制器10通过将重力方向和地磁方向进行差积分获得正东方向向量,再将重力方向向量和正东方向向量进行差积分获得正北方向向量,利用重力方向向量、正北方向向量、正东方向向量构成参考空间姿态余弦矩阵,将参考空间姿态余弦矩阵转换成姿态四元数,将姿态四元数进行扩展卡尔曼滤波器融合滤波,获得最终的目标姿态信息,通过体感控制器对云台进行控制,可以使用户与云台之间的交互体验更好,提高用户的使用体验。In this embodiment, the PTZ measurement data is the angular velocity data, and the angular velocity information is the angular velocity of the somatosensory controller in the geodetic coordinate system. The gravity direction vector is measured by the accelerometer in the inertial measurement component, and the geomagnetic direction is obtained by the compass. 10 The positive east direction vector is obtained by differential integration of the gravity direction and the geomagnetic direction, and then the positive north direction vector is obtained by the difference integration of the gravity direction vector and the true east direction vector, which is composed of the gravity direction vector, the true north direction vector, and the true east direction vector The reference space attitude cosine matrix, the reference space attitude cosine matrix is converted into an attitude quaternion, the attitude quaternion is subjected to extended Kalman filter fusion filtering to obtain the final target attitude information, and the pan/tilt is controlled by the motion sensing controller. It can make the interaction experience between the user and the PTZ better and improve the user experience.
在本申请的另一个实施例中,优选地,云台包括通信装置,通信装置能够与终端设备进行通信,控制器10通过以下过程获得云台的目标姿态:控制通信装置接收终端设备发送的控制指令,控制指令中包括云台的目标姿态;云台的目标姿态为终端设备根据操控指令的运动轨迹生成,操控指令由终端设备的 设置面板接收。In another embodiment of the present application, preferably, the pan-tilt includes a communication device that can communicate with the terminal device, and the controller 10 obtains the target posture of the pan-tilt through the following process: control the communication device to receive the control sent by the terminal device Instruction, the control instruction includes the target posture of the pan/tilt; the target posture of the pan/tilt is generated by the terminal device according to the motion track of the control instruction, and the control instruction is received by the setting panel of the terminal device.
在该实施例中,云台还包括用于与其他设备进行通信的通信装置,控制器10通过云台的通信装置获取云台目标姿态,控制器10可以接收用户通过终端的设置面板数据输入实现对云台控制的操控指令,其中操控指令包括控制云台动作的运动轨迹,终端可以根据运动轨迹模拟生成出云台根据该操控指令进行运动后的姿态,即为云台的目标姿态,将云台的目标姿态加入到控制指令中,并通过终端自身的通信装置与云台的通信装置进行通信连接,并将控制指令发送至云台,从而实现云台获取到云台的目标姿态,云台与其他终端进行连接,从而实现了远程控制云台的效果,例如用户可以使用电脑或者移动终端进行控制云台的动作。In this embodiment, the pan-tilt also includes a communication device for communicating with other devices. The controller 10 obtains the target posture of the pan-tilt through the communication device of the pan-tilt, and the controller 10 can receive data input from the user through the terminal's setting panel. The control instruction for the control of the pan/tilt, where the control instruction includes the movement trajectory for controlling the movement of the pan/tilt. The terminal can simulate the movement trajectory to generate the movement of the pan/tilt according to the control instruction, which is the target attitude of the pan/tilt. The target posture of the platform is added to the control instruction, and the terminal’s own communication device communicates with the communication device of the PTZ, and the control instruction is sent to the PTZ, so that the PTZ can obtain the target posture of the PTZ. Connect with other terminals to achieve the effect of remote control of the PTZ. For example, the user can use a computer or mobile terminal to control the PTZ.
在本申请的另一个实施例中,优选地,控制器10通过以下过程获得云台的目标姿态:获取云台的控制手柄接收到的设置指令,设置指令中包括云台的目标姿态。In another embodiment of the present application, preferably, the controller 10 obtains the target attitude of the pan/tilt head through the following process: obtains the setting instruction received by the control handle of the pan/tilt head, and the setting instruction includes the target attitude of the pan/tilt head.
在该实施例中,控制器10通过云台自身带有的控制手柄获取云台目标姿态,云台自身带有操控云台动作的控制手柄,且控制手柄带有设置面板,控制器10获取用户通过设置面板输入的设置指令,用户可以通过该控制手柄直接向云台发送带有云台的目标姿态的设置指令,设置手柄可以为与云台相连接的结构,适用于手持云台,并将设置手柄设置在握杆位置,可以通过操作设置手柄对云台的姿态进行调整。In this embodiment, the controller 10 acquires the target posture of the pan/tilt through the control handle of the pan/tilt itself. The pan/tilt itself has a control handle for controlling the movements of the pan/tilt, and the control handle has a setting panel. The controller 10 acquires the user Through the setting command input by the setting panel, the user can directly send the setting command of the target posture with the PTZ to the PTZ through the control handle. The setting handle can be a structure connected with the PTZ, suitable for hand-held PTZ The setting handle is set at the grip position, and the posture of the PTZ can be adjusted by operating the setting handle.
在本申请的另一个实施例中,优选地,控制器10通过以下过程获得云台的目标姿态:接收云台的控制手柄的实际姿态,将控制手柄的实际姿态作为云台的目标姿态。In another embodiment of the present application, preferably, the controller 10 obtains the target attitude of the pan/tilt head through the following process: receiving the actual attitude of the control handle of the pan/tilt head, and using the actual attitude of the control handle as the target attitude of the pan/tilt head.
在该实施例中,云台自身带有感应式的控制手柄,该控制手柄中包括惯性测量组件,可以对控制手柄的姿态进行检测,用户改变控制手柄的姿态时,控制器10通过惯性测量组件测量并记录控制手柄的姿态,同时将控制手柄的姿态作为云台的目标姿态,体感式的控制手柄不需要用户通过面板输入各种参数,直接将体感式的手柄本身的姿态作为云台的目标姿态,简化了用户对云台姿态的设置,方便用户进行操作,省去了大量繁琐的操作,从而提高了用户的使用体验。In this embodiment, the pan/tilt has an inductive control handle, which includes an inertial measurement component, which can detect the attitude of the control handle. When the user changes the attitude of the control handle, the controller 10 uses the inertial measurement component Measure and record the posture of the control handle, and use the posture of the control handle as the target posture of the pan/tilt. The somatosensory control handle does not require the user to input various parameters through the panel, and directly uses the posture of the somatosensory handle itself as the target of the gimbal. The posture simplifies the user's setting of the PTZ posture, facilitates the user's operation, saves a lot of tedious operations, and improves the user's experience.
在本申请的另一个实施例中,优选地,云台还包括:惯性测量单元,用于获取云台的测量姿态及关节角,并向控制器10发送云台的测量姿态及关节角;控制器10还用于根据云台的测量姿态及关节角,确认基座的测量姿态;其中,关节角是多个轴臂相对于云台的关节坐标系的角度。In another embodiment of the present application, preferably, the pan/tilt head further includes: an inertial measurement unit, used to obtain the measured attitude and joint angle of the pan/tilt head, and send the measured attitude and joint angle of the pan/tilt head to the controller 10; control; The device 10 is also used to confirm the measured posture of the base according to the measured posture and joint angle of the pan/tilt; where the joint angle is the angle of the multiple axis arms relative to the joint coordinate system of the gimbal.
在该实施例中,关节角是多个轴臂对于云台的关节坐标系的角度,基座为云台中用于放置摄像头的结构,由于基座与轴臂相连,因此基座的姿态可由云台的姿态和关节角确定得出,云台中设有惯性测量组件,控制器10接收利用惯性测量组件可以获取到云台的测量姿态和关节角,控制器10根据接收到的云台的测量姿态以及关节角确定基座的测量姿态。In this embodiment, the joint angle is the angle of the multiple pivot arms with respect to the joint coordinate system of the pan/tilt. The base is the structure used to place the camera in the pan/tilt. Since the base is connected to the pivot arm, the posture of the base can be determined by the cloud. The posture and joint angle of the platform are determined. The platform is equipped with an inertial measurement component. The controller 10 can obtain the measured posture and joint angle of the platform based on the received measurement posture of the platform. And the joint angle determines the measurement attitude of the base.
在本申请的另一个实施例中,优选地,基于云台的测量控制偏差处于预设范围之外的情况,控制器10还用于:根据云台的目标姿态确认多个电机的驱动扭矩;控制多个电机输出驱动扭矩。In another embodiment of the present application, preferably, based on the situation that the measured control deviation of the pan/tilt is outside the preset range, the controller 10 is further configured to: confirm the driving torque of the multiple motors according to the target posture of the pan/tilt; Control multiple motors to output drive torque.
在该实施例中,控制器10判断云台的测量控制偏差是否处于预设范围之内,当云台的测量控制偏差属于预设范围之内时,可以判定云台的位置误差不大,此时不需要改变多个电机的转速,使多个电机保持初始最低转速即可,即使多个电机输出指定扭矩,当判断到云台的测量控制偏差处于预设范围之外时,可以认为云台的位置误差过大,此时需要控制多个电机加大扭矩从而加快多个电机的转速,使得云台尽快恢复到目标姿态,解决了电机长时间在未克服静摩擦力情况下输出较大扭矩导致的发热以及功耗上升的问题,同时还可以保证云台姿态存在较大误差时可以快速达到预设的目标姿态,即在保证云台调整速度的同时,还解决了由于静摩擦力过大导致电机发热功耗上升的问题。In this embodiment, the controller 10 determines whether the measurement control deviation of the pan/tilt is within the preset range. When the measurement control deviation of the pan/tilt is within the preset range, it can be determined that the position error of the pan/tilt is not large. When it is not necessary to change the speed of multiple motors, it is enough to keep multiple motors at the initial minimum speed. Even if multiple motors output specified torque, when it is determined that the measurement control deviation of the pan/tilt is outside the preset range, the pan/tilt can be considered The position error of the motor is too large. At this time, it is necessary to control multiple motors to increase the torque to accelerate the speed of multiple motors, so that the pan/tilt can return to the target attitude as soon as possible, and solve the problem of the motor outputting a large torque without overcoming the static friction for a long time. The problem of heat generation and increased power consumption can also be ensured that the preset target attitude can be quickly reached when there is a large error in the gimbal attitude. That is, while ensuring the adjustment speed of the gimbal, it also solves the problem of excessive static friction. The problem of rising heat power consumption.
在本申请的另一个实施例中,优选地,控制器10执行根据云台的目标姿态确认多个电机的驱动扭矩的过程,具体包括:根据云台的目标姿态确定多个轴臂的位置误差;根据多个轴臂的位置误差,确认多个轴臂的目标角速度;根据多个轴臂的目标角速度及多个轴臂的测量角速度,确认多个电机的驱动扭矩。In another embodiment of the present application, preferably, the controller 10 executes the process of confirming the driving torque of the multiple motors according to the target posture of the pan/tilt, which specifically includes: determining the position error of the multiple shaft arms according to the target posture of the pan/tilt. ; According to the position error of multiple shaft arms, confirm the target angular velocity of multiple shaft arms; according to the target angular velocity of multiple shaft arms and the measured angular velocity of multiple shaft arms, confirm the drive torque of multiple motors.
在该实施例中,采用了如图15和图16所示的控制方法,控制器10先对云台中多个轴臂进行位置误差进行确定,通过云台的目标姿态可以确定每个轴臂的位置误差,根据每个轴臂的位置误差,确认每个轴臂的目标角速度,云台 的传感器会测量到每个轴臂的测量角速度,根据测量角速度和目标角速度得到角速度的误差,根据角速度的误差可以计算得到电机需要具体扭矩得到使角速度达到目标角速度,从而确定了每个电机的驱动扭矩,并根据驱动扭矩控制电机输出驱动扭矩,从而实现了在云台姿态误差较小时,控制器10不会控制电机输出较小的角速度,因此不会在静摩擦力较大的情况下电机长时间输出较大扭矩,进而减少了电机由于静摩擦力的阻碍未转动而导致的发热以及功耗上升的情况,在减少了电能消耗的同时,还延长了云台中电机的使用寿命,从而提高了用户的使用体验。In this embodiment, the control method shown in Fig. 15 and Fig. 16 is adopted. The controller 10 first determines the position error of multiple axis arms in the pan/tilt. The target posture of the pan/tilt can determine the position of each axis arm. Position error, according to the position error of each axle arm, confirm the target angular velocity of each axle arm, the sensor of the pan-tilt will measure the measured angular velocity of each axle arm, and get the angular velocity error according to the measured angular velocity and the target angular velocity. The error can be calculated to obtain the specific torque required by the motor to obtain the angular velocity to reach the target angular velocity, thereby determining the drive torque of each motor, and controlling the output drive torque of the motor according to the drive torque, so as to realize that when the PTZ attitude error is small, the controller 10 does not It will control the motor to output a small angular velocity, so the motor will not output a large torque for a long time when the static friction is large, thereby reducing the heat generated by the motor due to the resistance of the static friction and the increase in power consumption. While reducing power consumption, it also prolongs the service life of the motor in the pan/tilt, thereby improving the user experience.
具体地,如图15所示的云台电机的电流位置双环控制框图,云台接收外部指令,确定云台的目标姿态,云台的目标姿态与基座的测量姿态作差可以得到一个云台的测量控制偏差,根据这个得到的云台的测量控制偏差确定电机的角速度输出,上述控制方法会使电机随着测量控制偏差的增大从而对输出的角速度进行增大,但在角速度未达到可以克服静摩擦力时电机并不能产生动作,在上述控制方法的基础上再次加入一个控制器,如图16所示的控制框图,可以使云台的测量控制偏差在处于指定预设范围内时,电机输出的角速度不发生变化,从而避免了在测量控制偏差较小时仅通过速度环控制导致的电机发热以及功耗上升的问题。Specifically, as shown in Figure 15 is the current position double-loop control block diagram of the pan/tilt motor. The pan/tilt receives an external command to determine the target attitude of the pan/tilt. The difference between the target attitude of the pan/tilt and the measured attitude of the base can get a pan/tilt. According to the measurement control deviation of the pan/tilt, the angular velocity output of the motor is determined. The above control method will make the motor increase the angular velocity of the output as the measurement control deviation increases, but the angular velocity is not reached. When the static friction force is overcome, the motor cannot produce action. On the basis of the above control method, a controller is added again, as shown in the control block diagram in Figure 16, which can make the measurement and control deviation of the pan/tilt be within the specified preset range. The output angular velocity does not change, thus avoiding the problem of motor heating and power consumption increase caused by speed loop control only when the measurement control deviation is small.
如图13和图14所示,图13中为使用电流位置双环控制下,电机的扭矩随测量控制偏差变化的曲线,在测量控制偏差较小时,扭矩有存在突然快速上升的情况,此时为电机输出角速度一直处于上升阶段,但输出扭矩并未克服电机的静摩擦力,因此扭矩不断增大,此时电机会大量发热,影响电机的使用寿命还加大了耗电量,图14中为使用上述任一实施例中控制方法下,电机的扭矩随测量控制偏差变化的曲线,可以看出即使在测量控制偏差较小的情况下,扭矩也基本维持在一个值附近,且最大扭矩远远小于如图13中使用电流位置双环控制的曲线中的最大扭矩。As shown in Figure 13 and Figure 14, Figure 13 is the curve of the torque of the motor with the measurement control deviation under the current position dual-loop control. When the measurement control deviation is small, the torque may rise suddenly and rapidly. The output angular speed of the motor has been in the rising stage, but the output torque has not overcome the static friction of the motor, so the torque continues to increase. At this time, the motor will generate a lot of heat, which affects the service life of the motor and increases the power consumption. Figure 14 is used In the control method of any of the above embodiments, the torque of the motor varies with the measured control deviation. It can be seen that even when the measured control deviation is small, the torque is basically maintained near a value, and the maximum torque is much smaller than As shown in Figure 13, the maximum torque in the curve using the current position double loop control.
在本申请的另一个实施例中,优选地,控制器10执行根据云台的目标姿态确定多个轴臂的位置误差的过程,具体包括:根据云台的目标姿态与云台的测量姿态确认云台姿态误差;根据预设算法对云台姿态误差进行转换以确认多个轴臂的位置误差。In another embodiment of the present application, preferably, the controller 10 executes the process of determining the position errors of the multiple axis arms according to the target posture of the pan/tilt, specifically including: confirming the target posture of the pan/tilt and the measured posture of the pan/tilt. PTZ attitude error: Convert the PTZ attitude error according to the preset algorithm to confirm the position error of multiple axis arms.
在本申请的另一个实施例中,优选地,预设算法为雅克比逆矩阵算法。In another embodiment of the present application, preferably, the preset algorithm is the Jacobian inverse matrix algorithm.
在该实施例中,由于云台中存在多个轴臂,控制器10在对云台整体姿态进行控制时,云台中每个轴臂的位置误差均不相同,因此需要对云台中每个轴臂的姿态均进行控制,控制器10在对云台每个轴臂的位置误差进行确定时,可以根据云台的目标姿态和云台的测量姿态计算得出云台的姿态误差,并通过雅可比矩阵的逆矩阵根据云台的姿态误差对多个轴臂的位置误差进行计算,其中雅可比逆矩阵可以将空间坐标系经计算转化为二维坐标系,通过雅可比逆矩阵可以将整个云台的位置误差转化为每个轴臂所对应的二维的误差,从而得到云台每个轴臂的位置误差,控制器10通过控制每个轴臂所对应的电机以不同扭矩进行输出,从而实现了精准的控制云台的整体姿态。In this embodiment, because there are multiple pivot arms in the pan/tilt, when the controller 10 controls the overall posture of the pan/tilt, the position error of each pivot arm in the pan/tilt is not the same. When determining the position error of each axis arm of the gimbal, the controller 10 can calculate the attitude error of the gimbal according to the target posture of the gimbal and the measured posture of the gimbal, and use the Jacobian The inverse matrix of the matrix calculates the position error of multiple axis arms according to the attitude error of the pan/tilt. The Jacobian inverse matrix can convert the space coordinate system into a two-dimensional coordinate system through calculation. The entire pan/tilt can be transformed by the Jacobian inverse matrix. The position error of each axis arm is converted into a two-dimensional error corresponding to each axis arm, so as to obtain the position error of each axis arm of the pan/tilt. The controller 10 controls the motor corresponding to each axis arm to output with different torques to achieve In order to accurately control the overall posture of the PTZ.
本申请的第四方面的实施例提出了一种无人移动平台,包括上述任一实施例中的云台,因而具备上述任一实施例中云台的有益效果,在此不再赘述。The embodiment of the fourth aspect of the present application proposes an unmanned mobile platform that includes the pan/tilt in any of the above embodiments, and thus has the beneficial effects of the pan/tilt in any of the above embodiments, and will not be repeated here.
本申请的第五方面的实施例提出了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例的云台控制方法。因而具备上述任一实施例中的云台控制方法的有益效果,在此不再赘述。The embodiment of the fifth aspect of the present application proposes a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the pan/tilt control method of any of the above embodiments is implemented. Therefore, it has the beneficial effects of the pan-tilt control method in any of the above-mentioned embodiments, which will not be repeated here.
具体地,计算机可读存储介质可以包括能够存储或传输信息的任何介质。计算机可读存储介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。Specifically, a computer-readable storage medium may include any medium capable of storing or transmitting information. Examples of computer-readable storage media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
在本申请中,术语“多个”则指两个或两个以上,除非另有明确的限定。术语“安装”、“相连”、“连接”、“固定”等术语均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接;“相连”可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, the term "plurality" refers to two or more than two, unless specifically defined otherwise. The terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be It is directly connected or indirectly connected through an intermediary. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
在本说明书的描述中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in this application In at least one embodiment or example. In this specification, the schematic representations of the above-mentioned terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the application, and are not used to limit the application. For those skilled in the art, the application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.

Claims (46)

  1. 一种云台的控制方法,所述云台包括基座、多个轴臂及多个电机,所述多个电机用于分别驱动所述多个轴臂转动,其特征在于,所述控制方法包括:A control method of a pan/tilt head, the pan/tilt head includes a base, a plurality of shaft arms, and a plurality of motors, and the plurality of motors are used to drive the plurality of shaft arms to rotate, and the control method is characterized in that include:
    根据所述云台的目标姿态与所述基座的测量姿态确认所述云台的测量控制偏差;Confirm the measurement control deviation of the pan/tilt head according to the target attitude of the pan/tilt head and the measured attitude of the base;
    基于所述云台的测量控制偏差处于预设范围的情况,控制所述多个电机输出指定扭矩,以分别驱动所述多个轴臂转动。Based on the condition that the measurement control deviation of the pan/tilt head is in a preset range, the multiple motors are controlled to output a specified torque to drive the multiple shaft arms to rotate respectively.
  2. 根据权利要求1所述的云台的控制方法,其特征在于,所述基于所述云台的测量控制偏差处于预设范围的情况,控制所述多个电机输出指定扭矩的过程,具体包括:The control method of the pan/tilt head according to claim 1, wherein the process of controlling the multiple motors to output a specified torque based on the condition that the measurement control deviation of the pan/tilt head is within a preset range specifically includes:
    根据所述测量控制偏差及控制偏差与跟随速度曲线,确定所述测量控制偏差处于预设范围内;其中,所述控制偏差与跟随速度曲线为所述多个轴臂中任一个的轴臂跟随速度与云台的控制偏差的关系曲线;According to the measurement control deviation and the control deviation and following speed curve, it is determined that the measurement control deviation is within a preset range; wherein, the control deviation and following speed curve is the shaft arm following of any one of the plurality of shaft arms The relationship curve between the speed and the control deviation of the pan/tilt;
    根据所述测量控制偏差相对应的轴臂跟随速度,确定所述指定扭矩;Determine the specified torque according to the shaft arm following speed corresponding to the measured control deviation;
    控制所述多个电机输出所述指定扭矩。The plurality of motors are controlled to output the specified torque.
  3. 根据权利要求2所述的云台的控制方法,其特征在于,The method of controlling a pan/tilt head according to claim 2, wherein:
    所述控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。When the control deviation is within the preset range, the corresponding shaft arm following speed fluctuates smoothly; when the control deviation is outside the preset range, the corresponding shaft arm following speed and the control deviation are roughly in a positive correlation.
  4. 根据权利要求2所述的云台的控制方法,其特征在于,所述控制偏差与跟随速度曲线通过以下过程获取得到:The control method of the pan/tilt head according to claim 2, wherein the control deviation and the following speed curve are obtained through the following process:
    获取预存储在所述云台的存储器内的所述控制偏差与跟随速度曲线;或者获取所述云台的通信装置接收到的控制指令中的所述控制偏差与跟随速度曲线。Obtain the control deviation and following speed curve pre-stored in the memory of the pan/tilt head; or obtain the control deviation and following speed curve in the control instruction received by the communication device of the pan/tilt head.
  5. 根据权利要求1所述的云台的控制方法,其特征在于,所述云台的通信装置能够与体感控制器进行通信,所述云台的目标姿态通过以下过程获得:The control method of the pan/tilt head according to claim 1, wherein the communication device of the pan/tilt head can communicate with a motion sensing controller, and the target posture of the pan/tilt head is obtained through the following process:
    接收所述体感控制器发送的云台测量数据;Receiving pan-tilt measurement data sent by the somatosensory controller;
    根据所述云台测量数据确认所述云台的目标姿态。Confirm the target posture of the pan/tilt based on the measurement data of the pan/tilt.
  6. 根据权利要求5所述的云台的控制方法,其特征在于,所述云台测量数据为所述云台的角速度数据,所述根据所述云台测量数据确认所述云台的目标姿态的过程,具体包括:The control method of the pan/tilt head according to claim 5, wherein the measurement data of the pan/tilt head is the angular velocity data of the pan/tilt head, and the target attitude of the pan/tilt head is confirmed according to the measurement data of the pan/tilt head. The process includes:
    根据所述云台的角速度数据,确定所述云台的目标角速度;Determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt;
    对所述云台的目标角速度进行积分,以确定所述云台的目标姿态。The target angular velocity of the pan/tilt is integrated to determine the target attitude of the pan/tilt.
  7. 根据权利要求1所述的云台的控制方法,其特征在于,所述云台的通信装置能够与终端设备进行通信,所述云台的目标姿态通过以下过程获得:The control method of the pan/tilt head according to claim 1, wherein the communication device of the pan/tilt head can communicate with terminal equipment, and the target posture of the pan/tilt head is obtained through the following process:
    控制所述通信装置接收所述终端设备发送的控制指令,所述控制指令中包括所述云台的目标姿态;Controlling the communication device to receive a control instruction sent by the terminal device, where the control instruction includes the target posture of the pan/tilt;
    所述云台的目标姿态为所述终端设备根据操控指令的运动轨迹生成,所述操控指令由所述终端设备的设置面板接收。The target posture of the pan/tilt head is generated by the terminal device according to the motion trajectory of a control instruction, and the control instruction is received by a setting panel of the terminal device.
  8. 根据权利要求1所述的云台的控制方法,其特征在于,所述云台的目标姿态通过以下过程获得:The method for controlling the pan/tilt head according to claim 1, wherein the target posture of the pan/tilt head is obtained through the following process:
    接收所述云台的控制手柄接收到的设置指令,所述设置指令中包括所述云台的目标姿态。Receiving a setting instruction received by a control handle of the pan/tilt head, where the setting instruction includes the target posture of the pan/tilt head.
  9. 根据权利要求1所述的云台的控制方法,其特征在于,所述云台的目标姿态通过以下过程获得:The method for controlling the pan/tilt head according to claim 1, wherein the target posture of the pan/tilt head is obtained through the following process:
    接收所述云台的控制手柄的实际姿态,将所述控制手柄的实际姿态作为所述云台的目标姿态。The actual posture of the control handle of the pan/tilt is received, and the actual posture of the control handle is used as the target posture of the pan/tilt.
  10. 根据权利要求1至9中任一项所述的云台的控制方法,其特征在于,所述基座的测量姿态通过以下过程获得:The method for controlling a pan/tilt head according to any one of claims 1 to 9, wherein the measured attitude of the base is obtained by the following process:
    获取所述云台的基座的测量姿态及关节角;Acquiring the measured posture and joint angle of the base of the pan-tilt;
    根据所述云台的基座的测量姿态及所述关节角,确认所述基座的测量姿态;其中,所述关节角是所述多个轴臂相对于所述云台的关节坐标系的角度。According to the measurement attitude of the base of the pan/tilt head and the joint angle, confirm the measurement attitude of the base; wherein the joint angle is the joint coordinate system of the plurality of shaft arms relative to the pan/tilt head angle.
  11. 根据权利要求10所述的云台的控制方法,所述云台包括惯性测量单元,其特征在于,所述获取所述云台的基座的测量姿态及关节角的过程,具体包括:The method for controlling a pan/tilt head according to claim 10, wherein the pan/tilt head includes an inertial measurement unit, wherein the process of obtaining the measured attitude and joint angle of the base of the pan/tilt head specifically includes:
    控制所述惯性测量单元获取所述云台的基座的测量姿态及关节角。Control the inertial measurement unit to obtain the measured posture and joint angle of the base of the pan/tilt.
  12. 根据权利要求1至11中任一项所述的云台的控制方法,其特征在于, 所述控制方法还包括:The control method of a pan/tilt head according to any one of claims 1 to 11, wherein the control method further comprises:
    基于所述云台的测量控制偏差处于预设范围之外的情况,根据所述云台的目标姿态确认所述多个电机的驱动扭矩;Based on the situation that the measurement control deviation of the pan/tilt is outside the preset range, confirming the driving torque of the multiple motors according to the target posture of the pan/tilt;
    控制所述多个电机输出所述驱动扭矩。The plurality of motors are controlled to output the driving torque.
  13. 根据权利要求12所述的云台的控制方法,其特征在于,根据所述云台的目标姿态确认所述多个电机的驱动扭矩的过程,包括:The method of controlling the pan/tilt head according to claim 12, wherein the process of confirming the driving torque of the multiple motors according to the target posture of the pan/tilt head includes:
    根据所述云台的目标姿态确定所述多个轴臂的位置误差;Determining the position errors of the multiple axle arms according to the target posture of the pan/tilt;
    根据所述多个轴臂的位置误差,确认所述多个轴臂的目标角速度;Confirming the target angular velocity of the multiple shaft arms according to the position errors of the multiple shaft arms;
    根据所述多个轴臂的目标角速度及所述多个轴臂的测量角速度,确认所述多个电机的驱动扭矩。Based on the target angular velocities of the plurality of shaft arms and the measured angular velocities of the plurality of shaft arms, the driving torque of the plurality of motors is confirmed.
  14. 根据权利要求13所述的云台的控制方法,其特征在于,根据所述云台的目标姿态确定所述多个轴臂的位置误差的过程,包括:The method for controlling the pan/tilt head according to claim 13, wherein the process of determining the position errors of the plurality of axle arms according to the target posture of the pan/tilt head comprises:
    根据所述云台的目标姿态与所述云台的基座的测量姿态确认云台姿态误差;Confirming the PTZ attitude error according to the target attitude of the PTZ and the measured attitude of the base of the PTZ;
    根据预设算法对所述云台姿态误差进行转换以确认所述多个轴臂的位置误差。The attitude error of the pan/tilt head is converted according to a preset algorithm to confirm the position error of the plurality of axle arms.
  15. 根据权利要求14所述的云台的控制方法,其特征在于,The method for controlling a pan/tilt head according to claim 14, wherein:
    所述预设算法为雅克比逆矩阵算法。The preset algorithm is the Jacobian inverse matrix algorithm.
  16. 一种控制器,其特征在于,包括:A controller, characterized in that it comprises:
    处理器和存储器,所述存储器中存储有计算机程序,所述处理器执行存储在所述存储器中的计算机程序以实现:A processor and a memory, wherein a computer program is stored in the memory, and the processor executes the computer program stored in the memory to realize:
    根据云台的目标姿态与基座的测量姿态确认所述云台的测量控制偏差;Confirm the measurement control deviation of the pan/tilt based on the target attitude of the pan/tilt and the measured attitude of the base;
    基于所述云台的测量控制偏差处于预设范围的情况,控制所述云台的多个电机输出指定扭矩,以分别驱动所述云台的多个轴臂转动。Based on the situation that the measurement control deviation of the pan/tilt head is within a preset range, the multiple motors of the pan/tilt head are controlled to output specified torques to drive the multiple shaft arms of the pan/tilt head to rotate respectively.
  17. 根据权利要求16所述的控制器,其特征在于,所述处理器执行基于所述云台的测量控制偏差处于预设范围的情况,控制所述云台的多个电机输出指定扭矩的过程,具体包括:The controller according to claim 16, wherein the processor executes a process of controlling a plurality of motors of the pan/tilt head to output a specified torque based on the condition that the measurement control deviation of the pan/tilt head is within a preset range, Specifically:
    根据所述测量控制偏差及控制偏差与跟随速度曲线,确定所述测量控制偏差处于预设范围内;其中,所述控制偏差与跟随速度曲线为所述多个轴臂中任 一个的轴臂跟随速度与云台的控制偏差的关系曲线;According to the measurement control deviation and the control deviation and following speed curve, it is determined that the measurement control deviation is within a preset range; wherein, the control deviation and following speed curve is the shaft arm following of any one of the plurality of shaft arms The relationship curve between the speed and the control deviation of the PTZ;
    根据所述测量控制偏差相对应的轴臂跟随速度,确定所述指定扭矩;Determine the specified torque according to the shaft arm following speed corresponding to the measured control deviation;
    控制所述多个电机输出所述指定扭矩。The plurality of motors are controlled to output the specified torque.
  18. 根据权利要求17所述的控制器,其特征在于,The controller according to claim 17, wherein:
    所述控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。When the control deviation is within the preset range, the corresponding shaft arm following speed fluctuates smoothly; when the control deviation is outside the preset range, the corresponding shaft arm following speed and the control deviation are roughly in a positive correlation.
  19. 根据权利要求17所述的控制器,其特征在于,所述处理器通过以下过程获取得到所述控制偏差与跟随速度曲线:The controller according to claim 17, wherein the processor obtains the control deviation and following speed curve through the following process:
    获取预存储在所述云台的存储器内的所述控制偏差与跟随速度曲线;或者获取所述云台的通信装置接收到的控制指令中的所述控制偏差与跟随速度曲线。Obtain the control deviation and following speed curve pre-stored in the memory of the pan/tilt head; or obtain the control deviation and following speed curve in the control instruction received by the communication device of the pan/tilt head.
  20. 根据权利要求16所述的控制器,其特征在于,所述云台的通信装置能够与体感控制器进行通信,所述处理器通过以下过程获得所述云台的目标姿态:The controller according to claim 16, wherein the communication device of the pan/tilt head can communicate with the somatosensory controller, and the processor obtains the target posture of the pan/tilt head through the following process:
    接收所述体感控制器发送的云台测量数据;Receiving pan-tilt measurement data sent by the somatosensory controller;
    根据所述云台测量数据确认所述云台的目标姿态。Confirm the target posture of the pan/tilt based on the measurement data of the pan/tilt.
  21. 根据权利要求20所述的控制器,其特征在于,所述云台测量数据为所述云台的角速度数据,所述处理器还用于:The controller according to claim 20, wherein the PTZ measurement data is angular velocity data of the PTZ, and the processor is further configured to:
    根据所述云台的角速度数据,确定所述云台的目标角速度;Determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt;
    对所述云台的目标角速度进行积分,以确定所述云台的目标姿态。The target angular velocity of the pan/tilt is integrated to determine the target attitude of the pan/tilt.
  22. 根据权利要求16所述的控制器,其特征在于,所述云台的通信装置能够与终端设备进行通信,所述处理器通过以下过程获得所述云台的目标姿态:The controller according to claim 16, wherein the communication device of the pan-tilt can communicate with terminal equipment, and the processor obtains the target posture of the pan-tilt through the following process:
    控制所述通信装置接收所述终端设备发送的控制指令,所述控制指令中包括所述云台的目标姿态;Controlling the communication device to receive a control instruction sent by the terminal device, where the control instruction includes the target posture of the pan/tilt;
    所述云台的目标姿态为所述终端设备根据操控指令的运动轨迹生成,所述操控指令由所述终端设备的设置面板接收。The target posture of the pan/tilt head is generated by the terminal device according to the motion trajectory of a control instruction, and the control instruction is received by a setting panel of the terminal device.
  23. 根据权利要求16所述的控制器,其特征在于,所述处理器通过以下 过程获得所述云台的目标姿态:The controller according to claim 16, wherein the processor obtains the target posture of the pan/tilt head through the following process:
    接收所述云台的控制手柄接收到的设置指令,所述设置指令中包括所述云台的目标姿态。Receiving a setting instruction received by a control handle of the pan/tilt head, where the setting instruction includes the target posture of the pan/tilt head.
  24. 根据权利要求16所述的控制器,其特征在于,所述处理器通过以下过程获得所述云台的目标姿态:The controller according to claim 16, wherein the processor obtains the target posture of the pan/tilt head through the following process:
    接收所述云台的控制手柄的实际姿态,将所述控制手柄的实际姿态作为所述云台的目标姿态。The actual posture of the control handle of the pan/tilt is received, and the actual posture of the control handle is used as the target posture of the pan/tilt.
  25. 根据权利要求16至24中任一项所述的控制器,其特征在于:所述处理器通过以下过程获得基座的测量姿态:The controller according to any one of claims 16 to 24, wherein the processor obtains the measured attitude of the base through the following process:
    获取所述云台的基座的测量姿态及关节角;Acquiring the measured posture and joint angle of the base of the pan-tilt;
    根据所述云台的基座的测量姿态及所述关节角,确认所述基座的测量姿态;其中,所述关节角是所述云台的多个轴臂相对于所述云台的关节坐标系的角度。According to the measured posture of the base of the pan/tilt head and the joint angle, confirm the measured posture of the base; wherein the joint angle is the joint of the multiple axis arms of the pan/tilt head relative to the head The angle of the coordinate system.
  26. 根据权利要求25所述的控制器,所述云台包括惯性测量单元,其特征在于,所述处理器执行获取所述云台的基座的测量姿态及关节角的过程,具体包括:The controller according to claim 25, wherein the pan/tilt head includes an inertial measurement unit, wherein the processor executes the process of acquiring the measured attitude and joint angle of the base of the pan/tilt head, which specifically includes:
    控制所述惯性测量单元获取所述云台的基座的测量姿态及关节角。Control the inertial measurement unit to obtain the measured posture and joint angle of the base of the pan/tilt.
  27. 根据权利要求16至26中任一项所述的控制器,其特征在于,基于所述云台的测量控制偏差处于预设范围之外的情况,所述处理器还用于:The controller according to any one of claims 16 to 26, wherein, based on the situation that the measurement control deviation of the pan/tilt head is outside a preset range, the processor is further configured to:
    根据所述云台的目标姿态确认所述多个电机的驱动扭矩;Confirming the driving torque of the multiple motors according to the target posture of the pan/tilt;
    控制所述多个电机输出所述驱动扭矩。The plurality of motors are controlled to output the driving torque.
  28. 根据权利要求27所述的控制器,其特征在于,所述处理器执行根据所述云台的目标姿态确认所述多个电机的驱动扭矩的过程,具体包括:The controller according to claim 27, wherein the processor executes the process of confirming the driving torque of the multiple motors according to the target posture of the pan/tilt head, which specifically includes:
    根据所述云台的目标姿态确定所述多个轴臂的位置误差;Determining the position errors of the multiple axle arms according to the target posture of the pan/tilt;
    根据所述多个轴臂的位置误差,确认所述多个轴臂的目标角速度;Confirming the target angular velocity of the multiple shaft arms according to the position errors of the multiple shaft arms;
    根据所述多个轴臂的目标角速度及所述多个轴臂的测量角速度,确认所述多个电机的驱动扭矩。Based on the target angular velocities of the plurality of shaft arms and the measured angular velocities of the plurality of shaft arms, the driving torque of the plurality of motors is confirmed.
  29. 根据权利要求28所述的控制器,其特征在于,所述处理器执行根据所述云台的目标姿态确定所述多个轴臂的位置误差的过程,具体包括:The controller according to claim 28, wherein the processor executes the process of determining the position errors of the plurality of axis arms according to the target posture of the pan/tilt head, which specifically includes:
    根据所述云台的目标姿态与所述云台的基座的测量姿态确认云台姿态误差;Confirming the PTZ attitude error according to the target attitude of the PTZ and the measured attitude of the base of the PTZ;
    根据预设算法对所述云台姿态误差进行转换以确认所述多个轴臂的位置误差。The attitude error of the pan/tilt head is converted according to a preset algorithm to confirm the position error of the plurality of axle arms.
  30. 根据权利要求29所述的控制器,其特征在于,The controller according to claim 29, wherein:
    所述预设算法为雅克比逆矩阵算法。The preset algorithm is the Jacobian inverse matrix algorithm.
  31. 一种云台,其特征在于,包括:A pan-tilt, characterized in that it comprises:
    多个轴臂,包括偏航轴臂、俯仰轴臂及横滚轴臂;Multiple axle arms, including yaw axle arm, pitch axle arm and roll axle arm;
    多个电机,驱动所述多个轴臂转动;Multiple motors to drive the multiple shaft arms to rotate;
    基座,所述基座与所述偏航轴臂相连接;A base, which is connected to the yaw axis arm;
    控制器,用于根据所述云台的目标姿态与所述基座的测量姿态确认所述云台的测量控制偏差;基于所述云台的测量控制偏差处于预设范围的情况,控制所述多个电机输出指定扭矩,以分别驱动所述多个轴臂转动。The controller is used for confirming the measurement control deviation of the pan/tilt head according to the target attitude of the pan/tilt head and the measurement attitude of the base; and controlling the measurement control deviation of the pan/tilt head based on the situation that the measurement control deviation of the pan/tilt The plurality of motors output designated torques to drive the plurality of shaft arms to rotate respectively.
  32. 根据权利要求31所述的云台,其特征在于,所述控制器执行基于所述云台的测量控制偏差处于预设范围的情况,控制所述多个电机输出指定扭矩的过程,具体包括:The pan/tilt head of claim 31, wherein the controller executes the process of controlling the plurality of motors to output a specified torque based on the condition that the measurement control deviation of the pan/tilt head is within a preset range, which specifically includes:
    根据所述测量控制偏差及控制偏差与跟随速度曲线,确定所述测量控制偏差处于预设范围内;其中,所述控制偏差与跟随速度曲线为所述多个轴臂中任一个的轴臂跟随速度与云台的控制偏差的关系曲线;According to the measurement control deviation and the control deviation and following speed curve, it is determined that the measurement control deviation is within a preset range; wherein, the control deviation and following speed curve is the shaft arm following of any one of the plurality of shaft arms The relationship curve between the speed and the control deviation of the pan/tilt;
    根据所述测量控制偏差相对应的轴臂跟随速度,确定所述指定扭矩;Determine the specified torque according to the shaft arm following speed corresponding to the measured control deviation;
    控制所述多个电机输出所述指定扭矩。The plurality of motors are controlled to output the specified torque.
  33. 根据权利要求32所述的云台,其特征在于,The pan/tilt according to claim 32, wherein:
    所述控制偏差处于预设范围内的情况,对应的轴臂跟随速度变化波动平稳;控制偏差处于预设范围外的情况,对应的轴臂跟随速度与控制偏差大致呈正相关关系。When the control deviation is within the preset range, the corresponding shaft arm following speed fluctuates smoothly; when the control deviation is outside the preset range, the corresponding shaft arm following speed and the control deviation are roughly in a positive correlation.
  34. 根据权利要求32所述的云台,其特征在于,所述控制器通过以下过程获取得到所述控制偏差与跟随速度曲线:The pan/tilt head according to claim 32, wherein the controller obtains the control deviation and following speed curve through the following process:
    获取预存储在所述云台的存储器内的所述控制偏差与跟随速度曲线;或者获取所述云台的通信装置接收到的控制指令中的所述控制偏差与跟随速 度曲线。Obtain the control deviation and following speed curve pre-stored in the memory of the pan/tilt head; or obtain the control deviation and following speed curve in the control instruction received by the communication device of the pan/tilt head.
  35. 根据权利要求31所述的云台,其特征在于,所述云台包括通信装置,所述通信装置能够与体感控制器进行通信,所述云台的目标姿态通过以下过程获得:The pan/tilt head of claim 31, wherein the pan/tilt head comprises a communication device capable of communicating with a motion sensing controller, and the target posture of the pan/tilt head is obtained through the following process:
    接收所述体感控制器发送的云台测量数据;Receiving pan-tilt measurement data sent by the somatosensory controller;
    根据所述云台测量数据确认所述云台的目标姿态。Confirm the target posture of the pan/tilt based on the measurement data of the pan/tilt.
  36. 根据权利要求35所述的云台,其特征在于,所述云台测量数据为所述云台的角速度数据,所述控制器还用于:The pan/tilt head of claim 35, wherein the measurement data of the pan/tilt head is angular velocity data of the pan/tilt head, and the controller is further configured to:
    根据所述云台的角速度数据,确定所述云台的目标角速度;Determine the target angular velocity of the pan/tilt according to the angular velocity data of the pan/tilt;
    对所述云台的目标角速度进行积分,以确定所述云台的目标姿态。The target angular velocity of the pan/tilt is integrated to determine the target attitude of the pan/tilt.
  37. 根据权利要求31所述的云台,其特征在于,所述云台包括通信装置,所述通信装置能够与终端设备进行通信,所述控制器通过以下过程获得所述云台的目标姿态:The pan/tilt head according to claim 31, wherein the pan/tilt head comprises a communication device capable of communicating with terminal equipment, and the controller obtains the target posture of the pan/tilt head through the following process:
    控制所述通信装置接收所述终端设备发送的控制指令,所述控制指令中包括所述云台的目标姿态;Controlling the communication device to receive a control instruction sent by the terminal device, where the control instruction includes the target posture of the pan/tilt;
    所述云台的目标姿态为所述终端设备根据操控指令的运动轨迹生成,所述操控指令由所述终端设备的设置面板接收。The target posture of the pan/tilt head is generated by the terminal device according to the motion trajectory of a control instruction, and the control instruction is received by a setting panel of the terminal device.
  38. 根据权利要求31所述的云台,其特征在于,所述控制器通过以下过程获得所述云台的目标姿态:The pan/tilt head according to claim 31, wherein the controller obtains the target posture of the pan/tilt head through the following process:
    获取所述云台的控制手柄接收到的设置指令,所述设置指令中包括所述云台的目标姿态。Acquire a setting instruction received by the control handle of the pan/tilt, where the setting instruction includes the target posture of the pan/tilt.
  39. 根据权利要求31所述的云台,其特征在于,所述控制器通过以下过程获得所述云台的目标姿态:The pan/tilt head according to claim 31, wherein the controller obtains the target posture of the pan/tilt head through the following process:
    接收所述云台的控制手柄的实际姿态,将所述控制手柄的实际姿态作为所述云台的目标姿态。The actual posture of the control handle of the pan/tilt is received, and the actual posture of the control handle is used as the target posture of the pan/tilt.
  40. 根据权利要求31至39中任一项所述的云台,其特征在于,所述云台还包括:The pan/tilt head according to any one of claims 31 to 39, wherein the pan/tilt head further comprises:
    惯性测量单元,用于获取所述云台的基座的测量姿态及关节角,并向所述控制器发送所述云台的基座的测量姿态及所述关节角;An inertial measurement unit for acquiring the measured attitude and joint angle of the base of the pan/tilt head, and sending the measured attitude of the base of the pan/tilt head and the joint angle to the controller;
    所述控制器还用于根据所述云台的基座的测量姿态及所述关节角,确认所述基座的测量姿态;其中,所述关节角是所述多个轴臂相对于所述云台的关节坐标系的角度。The controller is also used to confirm the measured attitude of the base according to the measured attitude of the base of the pan/tilt head and the joint angle; wherein, the joint angle is the relative The angle of the joint coordinate system of the gimbal.
  41. 根据权利要求31至40中任一项所述的云台,其特征在于,基于所述云台的测量控制偏差处于预设范围之外的情况,所述控制器还用于:The pan/tilt head according to any one of claims 31 to 40, characterized in that, based on the situation that the measurement control deviation of the pan/tilt head is outside a preset range, the controller is further configured to:
    根据所述云台的目标姿态确认所述多个电机的驱动扭矩;Confirming the driving torque of the multiple motors according to the target posture of the pan/tilt;
    控制所述多个电机输出所述驱动扭矩。The plurality of motors are controlled to output the driving torque.
  42. 根据权利要求41所述的云台,其特征在于,所述控制器执行根据所述云台的目标姿态确认所述多个电机的驱动扭矩的过程,具体包括:The pan/tilt head according to claim 41, wherein the controller executes the process of confirming the driving torque of the multiple motors according to the target posture of the pan/tilt head, which specifically includes:
    根据所述云台的目标姿态确定所述多个轴臂的位置误差;Determining the position errors of the multiple axle arms according to the target posture of the pan/tilt;
    根据所述多个轴臂的位置误差,确认所述多个轴臂的目标角速度;Confirming the target angular velocity of the multiple shaft arms according to the position errors of the multiple shaft arms;
    根据所述多个轴臂的目标角速度及所述多个轴臂的测量角速度,确认所述多个电机的驱动扭矩。Based on the target angular velocities of the plurality of shaft arms and the measured angular velocities of the plurality of shaft arms, the driving torque of the plurality of motors is confirmed.
  43. 根据权利要求42所述的云台,其特征在于,所述控制器执行根据所述云台的目标姿态确定所述多个轴臂的位置误差的过程,具体包括:The pan/tilt head of claim 42, wherein the controller executes the process of determining the position errors of the plurality of axle arms according to the target posture of the pan/tilt head, which specifically includes:
    根据所述云台的目标姿态与所述云台的基座的测量姿态确认云台姿态误差;Confirming the PTZ attitude error according to the target attitude of the PTZ and the measured attitude of the base of the PTZ;
    根据预设算法对所述云台姿态误差进行转换以确认所述多个轴臂的位置误差。The attitude error of the pan/tilt head is converted according to a preset algorithm to confirm the position error of the plurality of axle arms.
  44. 根据权利要求43所述的云台,其特征在于,The pan/tilt according to claim 43, wherein:
    所述预设算法为雅克比逆矩阵算法。The preset algorithm is the Jacobian inverse matrix algorithm.
  45. 一种无人移动平台,其特征在于,所述无人移动平台包括权利要求31至44中任一项所述的云台。An unmanned mobile platform, characterized in that the unmanned mobile platform comprises the pan/tilt according to any one of claims 31 to 44.
  46. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至15中任一项所述的云台的控制方法的步骤。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the steps of the pan-tilt control method according to any one of claims 1 to 15 when the computer program is executed by a processor.
PCT/CN2019/098860 2019-08-01 2019-08-01 Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium WO2021016985A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/098860 WO2021016985A1 (en) 2019-08-01 2019-08-01 Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium
CN201980029986.6A CN112154398A (en) 2019-08-01 2019-08-01 Pan-tilt control method, controller, pan-tilt, unmanned mobile platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/098860 WO2021016985A1 (en) 2019-08-01 2019-08-01 Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium

Publications (1)

Publication Number Publication Date
WO2021016985A1 true WO2021016985A1 (en) 2021-02-04

Family

ID=73891285

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098860 WO2021016985A1 (en) 2019-08-01 2019-08-01 Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium

Country Status (2)

Country Link
CN (1) CN112154398A (en)
WO (1) WO2021016985A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485465B (en) * 2021-06-01 2024-08-02 浙江大华技术股份有限公司 Camera holder control method, device, equipment and storage medium
CN117677915A (en) * 2021-10-28 2024-03-08 深圳市大疆创新科技有限公司 Cloud deck control method and device, cloud deck and computer storage medium
CN114167901A (en) * 2021-12-01 2022-03-11 重庆市亿飞智联科技有限公司 Cloud deck control method and device, electronic equipment, pod and storage medium
CN114513603B (en) * 2021-12-16 2024-07-12 深圳市睿联技术股份有限公司 Control circuit, pan-tilt camera, control method and computer readable storage medium
CN115268510B (en) * 2022-09-23 2022-12-20 天津云圣智能科技有限责任公司 Holder control method, holder control device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598077A (en) * 1993-08-19 1997-01-28 Fanuc Ltd. Control apparatus and a control method for a servomotor
CN101598947A (en) * 2009-07-07 2009-12-09 山东鲁能智能技术有限公司 A kind of method that improves positioning accuracy of position feed back holder
CN105607653A (en) * 2016-01-05 2016-05-25 深圳一电航空技术有限公司 Holder control method and system
CN106371469A (en) * 2016-11-22 2017-02-01 天津大学 Camera holder pitch angle control method
CN107223220A (en) * 2016-12-30 2017-09-29 深圳市大疆灵眸科技有限公司 Cloud platform control method, device and head
WO2019095210A1 (en) * 2017-11-16 2019-05-23 深圳市大疆创新科技有限公司 Smart glasses, method for controlling gimbal by means of same, gimbal, control method and unmanned aerial vehicle
CN110032061A (en) * 2018-01-12 2019-07-19 伊鲁米那股份有限公司 Real-time controller switching

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130111044A (en) * 2012-03-30 2013-10-10 세종대학교산학협력단 Control system and coulomb friction compensation method for uav-mounted camera gimbal subject to coulomb friction
CN106695764A (en) * 2017-02-14 2017-05-24 华南理工大学 Horizontal rotary pan-tilt based on double-thrust bearing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598077A (en) * 1993-08-19 1997-01-28 Fanuc Ltd. Control apparatus and a control method for a servomotor
CN101598947A (en) * 2009-07-07 2009-12-09 山东鲁能智能技术有限公司 A kind of method that improves positioning accuracy of position feed back holder
CN105607653A (en) * 2016-01-05 2016-05-25 深圳一电航空技术有限公司 Holder control method and system
CN106371469A (en) * 2016-11-22 2017-02-01 天津大学 Camera holder pitch angle control method
CN107223220A (en) * 2016-12-30 2017-09-29 深圳市大疆灵眸科技有限公司 Cloud platform control method, device and head
WO2019095210A1 (en) * 2017-11-16 2019-05-23 深圳市大疆创新科技有限公司 Smart glasses, method for controlling gimbal by means of same, gimbal, control method and unmanned aerial vehicle
CN110032061A (en) * 2018-01-12 2019-07-19 伊鲁米那股份有限公司 Real-time controller switching

Also Published As

Publication number Publication date
CN112154398A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2021016985A1 (en) Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium
US10890830B2 (en) Gimbal control method, gimbal control apparatus, and gimbal
EP3238524B1 (en) Moving robot and control method thereof
US11156905B2 (en) Control method for gimbal, controller, and gimbal
WO2019100249A1 (en) Method of controlling gimbal, gimbal, and unmanned aerial vehicle
WO2020215215A1 (en) Gimbal control method and device, gimbal, system and storage medium
CN104483977B (en) The dynamic surface control method without velocity feedback of a kind of steering wheel The Cloud Terrace and controller
JP2013144539A (en) Method for intuitive piloting of drone by means of remote control
CN111506094A (en) Centroid position determining method and device, foot type robot and storage medium
CN105223967A (en) A kind of camera shooting control method, device and tripod head equipment
CN113752250B (en) Control method and device for robot joint, robot and storage medium
WO2021037047A1 (en) Yaw angle correction method and apparatus for aircraft, and aircraft
WO2019148446A1 (en) Control method for gimbal capable of replacing lenses, and gimbal
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
CN108089694A (en) A kind of intelligent control method and equipment
CN114764241A (en) Motion state control method, device and equipment and readable storage medium
Wu et al. Research on the design of educational robot with four-wheel omni-direction chassis
Lu et al. iOS application for quadrotor remote control: Implementation of basic functions with iphone
WO2019061029A1 (en) Method for controlling pan-tilt, control device, and pan-tilt
WO2019140807A1 (en) Operating method for stabilizer somatosensory remote control system
WO2022137876A1 (en) Mobile object, control method for mobile object, and program
Vanin Modeling, identification and navigation of autonomous air vehicles
WO2017185521A1 (en) Unmanned aerial vehicle control method and device based on mobile terminal
JP2022032206A (en) Work support device
CN115922731B (en) Control method of robot and robot

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: 19939277

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: 19939277

Country of ref document: EP

Kind code of ref document: A1