WO2021007697A1 - Gimbal and control method and external control apparatus therefor - Google Patents

Gimbal and control method and external control apparatus therefor Download PDF

Info

Publication number
WO2021007697A1
WO2021007697A1 PCT/CN2019/095763 CN2019095763W WO2021007697A1 WO 2021007697 A1 WO2021007697 A1 WO 2021007697A1 CN 2019095763 W CN2019095763 W CN 2019095763W WO 2021007697 A1 WO2021007697 A1 WO 2021007697A1
Authority
WO
WIPO (PCT)
Prior art keywords
angular velocity
pan
control device
external control
tilt
Prior art date
Application number
PCT/CN2019/095763
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 CN201980032146.5A priority Critical patent/CN112166396A/en
Priority to PCT/CN2019/095763 priority patent/WO2021007697A1/en
Publication of WO2021007697A1 publication Critical patent/WO2021007697A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D13/00Control of linear speed; Control of angular speed; Control of acceleration or deceleration, e.g. of a prime mover
    • G05D13/62Control of linear speed; Control of angular speed; Control of acceleration or deceleration, e.g. of a prime mover characterised by the use of electric means, e.g. use of a tachometric dynamo, use of a transducer converting an electric value into a displacement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Definitions

  • the invention relates to the field of pan-tilt control, in particular to a pan-tilt, a control method thereof, and an external control device.
  • users control the attitude of the pan/tilt by controlling the attitude of an external control device, achieving the purpose of controlling the pan/tilt by somatosensory.
  • the external control device informs the pan/tilt of its real-time attitude, and the pan/tilt rotates directly according to the real-time attitude of the external control device.
  • the above-mentioned direct rotation method based on the real-time posture size will make the difference in the rotation speed of the gimbal at different times more obvious, resulting in uneven and non-delicate rotation of the gimbal.
  • the external control device In order to solve the problem of uneven and non-delicate speed of the gimbal, if the gimbal moves at the same speed at different times, the external control device will generate a new expected posture before the gimbal posture does not reach the current expected posture. Causes a serious problem of cloud movement delay.
  • the posture of the external control device cannot intuitively reflect how fast the user controls the external control device. Therefore, when the pan/tilt moves according to the posture of the external control device, it cannot control the movement of the pan/tilt according to the speed of the user controlling the external control device.
  • the speed of PTZ movement is inconsistent with the speed of user control. PTZ movement cannot reflect the real user control behavior, and the user experience is poor.
  • the invention provides a pan-tilt, a control method thereof, and an external control device.
  • the present invention is implemented through the following technical solutions:
  • a pan-tilt control method the pan-tilt and an external control device are communicatively connected, and the method includes:
  • the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
  • a pan-tilt which is connected to an external control device in wireless communication, the pan-tilt includes:
  • Storage device for storing program instructions
  • One or more processors call program instructions stored in the storage device, and when the program instructions are executed, the one or more processors are individually or collectively configured to implement the following operations:
  • the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
  • a pan-tilt control method which is applied to an external control device connected by pan-tilt communication, and the method includes:
  • an external control device which is connected to a pan-tilt in wireless communication, the external control device includes:
  • the PTZ of the present invention performs integration processing on the diagonal velocity of the external control device, and when determining the target attitude of the PTZ, the integration frequency of the integration processing is set to be greater than that of the PTZ and the outside.
  • Figure 1A is a structural diagram of a pan-tilt control system in an embodiment of the present invention.
  • Fig. 1B is an application scenario diagram of a pan-tilt control system in an embodiment of the present invention
  • FIG. 2 is a method flow chart of the PTZ control method on the PTZ side in an embodiment of the present invention
  • FIG. 3 is a method flow chart of the PTZ control method on the PTZ side in another embodiment of the present invention.
  • Fig. 4 is a structural block diagram of a pan-tilt in an embodiment of the present invention.
  • FIG. 5 is a method flowchart of the pan/tilt control method on the side of the external control device in an embodiment of the present invention
  • Fig. 6 is a structural block diagram of an external control device in an embodiment of the present invention.
  • 100 PTZ; 110: storage device; 120: first processor;
  • 200 external control device
  • 210 angular velocity detection sensor
  • 220 second processor.
  • the external control device sends its real-time attitude to the pan-tilt, and the pan-tilt directly rotates according to the real-time attitude of the external control device. Since there may be differences in the size of the posture at different times, if the above-mentioned method of direct rotation according to the real-time posture size is adopted, the difference in the rotation speed of the gimbal at different times may be obvious, resulting in uneven and non-fine rotation of the gimbal.
  • the posture of the external control device cannot intuitively reflect how fast the user controls the external control device. Therefore, when the pan/tilt moves according to the posture of the external control device, it cannot control the movement of the pan/tilt according to the speed of the user controlling the external control device.
  • the speed of PTZ movement is inconsistent with the speed of user control. PTZ movement cannot reflect the real user control behavior, and the user experience is poor.
  • the pan/tilt control method of the embodiment of the present invention implements the following operations on the side of the external control device: acquire the angular velocity of the external control device; send the angular velocity to the pan/tilt so that the pan/tilt based on the The angular velocity controls the attitude of the pan/tilt.
  • the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
  • the pan/tilt of the present invention performs integration processing on the diagonal velocity of the external control device, and when determining the target attitude of the pan/tilt, the integration frequency of the integration processing is set to be greater than the communication frequency between the pan/tilt and the external control device, and the pan/tilt rotates
  • the speed change of the PTZ is relatively smooth, which reduces the speed difference of the PTZ at different times, making the rotation speed of the PTZ more uniform and delicate; at the same time, the PTZ is moving based on the angular velocity of the external control device, and the speed of the PTZ movement can be compared with Corresponding to the speed at which the user controls the external control device, the pan-tilt movement can reflect the real user control behavior, thereby bringing a better user experience.
  • the pan/tilt head 100 of the embodiment of the present invention is in communication connection with the external control device 200.
  • the pan/tilt head 100 and the external control device 200 realize the communication connection based on a wireless communication method.
  • the wireless communication method may be Bluetooth, Wi-Fi or other wireless communication methods; optionally, the pan-tilt 100 and the external control device 200 realize a communication connection based on a wired communication method.
  • the external control device 200 of the embodiment of the present invention may be a mobile phone, a tablet computer, etc., and may also be a motion sensory control device of the pan/tilt head 100.
  • the external control device 200 is a mobile phone, and the user controls the pan/tilt head 100 to rotate by controlling the posture of the mobile phone.
  • the user controls the mobile phone to move forward (toward the user, that is, along the length of the mobile phone) Rotate or turn back to control the pitch angle of the pan/tilt 100; the user controls the mobile phone to turn left or right (the orientation of the display surface of the mobile phone is basically unchanged), and correspondingly controls the yaw angle of the pan/tilt 100; Control the mobile phone to turn left or right, corresponding to control the roll angle of the PTZ 100.
  • the above operations and the corresponding control angle of the PTZ 100 are also applicable.
  • the control angle of the stage 100 may have other methods, which are not specifically limited here.
  • the implementation process of the pan-tilt control method will be described in detail from the side of the pan-tilt 100 and the side of the external control device 200 respectively.
  • Fig. 2 is a method flow chart of the pan/tilt control method on the side of the pan/tilt 100 in an embodiment of the present invention; as shown in Fig. 2, the pan/tilt control method may include but is not limited to the following steps:
  • the pan/tilt 100 receives the angular velocity of the external control device 200 sent by the external control device 200.
  • the pan/tilt 100 passively receives the angular velocity of the external control device 200; optionally, When the pan-tilt 100 and the external control device 200 communicate based on Bluetooth, the pan-tilt 100 can receive the angular velocity of the external control device 200 sent by the external control device 200 via Bluetooth.
  • the pan/tilt head 100 communicates with the external control device 200 based on other communication methods, the pan/tilt head 100 receives the communication link of the angular velocity of the external control device 200 sent by the external control device 200 and changes accordingly.
  • the pan/tilt 100 reads the angular velocity of the external control device 200 from the external control device 200; optionally, the pan/tilt 100 accesses the data port of the external control device 200 at preset time intervals.
  • the station 100 actively reads the angular velocity of the external control device 200.
  • the angular velocity acquired through step S201 is the first angular velocity of the external control device 200 in its body coordinate system; wherein, the external control device 200 includes an angular velocity detection sensor, and the angular velocity acquired through step S201 is the angular velocity detection sensor The detected first angular velocity of the external control device 200 in its body coordinate system.
  • the angular velocity detection sensor can be a gyroscope or other angular velocity detection sensors.
  • the angular velocity detection sensor is a gyroscope built into the mobile phone.
  • the body coordinate system of the external control device 200 is a coordinate system established by the external control device 200 for the body as a reference.
  • the angular velocity obtained in step S201 is the second angular velocity of the external control device 200 in the absolute coordinate system, and the second angular velocity is determined according to the first angular velocity of the external control device 200 in its body coordinate system.
  • the external control device 200 includes an angular velocity detection sensor, and the first angular velocity is detected by the angular velocity detection sensor.
  • the absolute coordinate system in this embodiment may be a world coordinate system or other absolute coordinate systems. It can be understood that the coordinate system where the second angular velocity is located may be the same as the coordinate system where the angular velocity of the pan/tilt head 100 is controlled.
  • S202 Perform integration processing on the angular velocity to determine the target attitude of the pan/tilt head 100, where the integration frequency of the integration processing is greater than the communication frequency between the pan/tilt head 100 and the external control device 200;
  • the integration frequency of the integration processing is set to be greater than the communication frequency between the pan/tilt 100 and the external control device 200, and the determined target attitude of the pan/tilt 100 is a smooth transition, which reduces the pan/tilt.
  • the speed difference of the rotation of 100 at different times makes the rotation speed of the pan-tilt 100 more uniform and delicate.
  • the integration frequency of the integration process can be the default value or set by the user.
  • the integration frequency of the integration processing is 1 kHz (unit: kilohertz), and the communication frequency between the pan-tilt 100 and the external control device 200 is 20 Hz (unit: hertz).
  • the integration frequency of the integration process and the communication frequency between the pan-tilt 100 and the external control device 200 can also be set to other sizes.
  • the angular velocity obtained in step S201 is the first angular velocity omega_body(x, y, z) of the external control device 200 in its body coordinate system, and the platform 100 needs to convert the first angular velocity into an absolute coordinate system
  • the second angular velocity omega_ned(x, y, z) is lowered, and then the second angular velocity is integrated to determine the target attitude of the gimbal 100.
  • the gimbal 100 when the gimbal 100 performs integration processing on the angular velocity to determine the target attitude of the gimbal 100, it specifically includes the following steps:
  • S302 Perform integration processing on the second angular velocity to determine the target attitude of the pan-tilt 100.
  • converting the first angular velocity into the second angular velocity in the absolute coordinate system may include but not limited to steps (1) to (3):
  • the pan/tilt head 100 can access the interface of the external control device 200 to read the posture information of the external control device 200.
  • the interface can be a hardware data interface or a program interface.
  • the posture information of the external control device 200 may be sent to the pan/tilt 100 by the external control device 200.
  • the posture information may include posture quaternion, and may also include other posture information of the external control device 200.
  • the realization process of determining the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion may include but not limited to steps (21) to (22):
  • the attitude quaternion is Q_real(q 0 , q 1 , q 2 , q 3 ), and the Euler angle is euler ( ⁇ , ⁇ , ⁇ ), where, a is the rotation angle between the front and back of the body coordinate system, x, y, z are the vector representations in the corresponding directions, ⁇ , ⁇ , and ⁇ are the angle values of the corresponding roll direction and the corresponding pitch in the Euler angles. The angle of the direction and the angle value corresponding to the yaw direction.
  • determining the coordinate conversion relationship according to the Euler angle may include: setting the angle value corresponding to the yaw direction in the Euler angle to 0; according to the angle value corresponding to the roll direction in the Euler angle, the corresponding pitch The angle value of the direction and the angle value of the corresponding yaw direction determine the conversion relationship.
  • the external control device 200 When the external control device 200 is a mobile phone, set ⁇ to 0 and place the mobile phone horizontally (the mobile phone display surface is perpendicular to the horizontal plane, and the length of the mobile phone is left and right) and vertically (the mobile phone display surface is perpendicular to the horizontal plane, and the mobile phone
  • control the mobile phone When the length direction of the mobile phone is up and down), control the mobile phone to rotate forward (along the length of the mobile phone) or backward, which corresponds to the pitch angle of the pan/tilt 100; if ⁇ is not equal to 0, when the mobile phone is placed vertically, control The mobile phone rotates forward (along the length of the mobile phone) or backwards to control the pitch angle of the PTZ 100; when the mobile phone is placed horizontally, control the mobile phone to rotate forward or backward, corresponding to the yaw angle of the PTZ 100 , Resulting in inconsistent somatosensory control.
  • the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion is expressed by a cosine matrix
  • the cosine matrix for the coordinate conversion between the body coordinate system and the absolute coordinate system is expressed as:
  • R z ( ⁇ ) is the matrix corresponding to the yaw direction in the cosine matrix
  • R y ( ⁇ ) is the matrix corresponding to the pitch direction in the cosine matrix
  • R x ( ⁇ ) is the matrix corresponding to the roll direction in the cosine matrix.
  • the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion can also be expressed in other ways, and is not limited to using a cosine matrix to represent the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion.
  • the calculation method of the second angular velocity omega_ned(x,y,z) includes but is not limited to the following formula:
  • omega_ned(x,y,z) omega_body(x,y,z)*R
  • the angular velocity obtained in step S201 is the second angular velocity omega_ned(x,y,z) of the external control device 200 in the absolute coordinate system, and the pan/tilt 100 directly integrates the second angular velocity to determine The target posture of the gimbal 100.
  • step S202 can be placed in a timer to realize the cyclic integral of the angular velocity.
  • the execution process of step S202 may not be placed in the timer.
  • the pan-tilt 100 is provided with a timer, and the angular velocity is integrated by the timer to determine the target posture of the pan-tilt 100.
  • the timer defines three angular velocity variables (that is, the movement speed of the pan-tilt 100, these three angular velocity variables are all component variables of Euler angular velocity): roll angular velocity Vgx, pitch angular velocity Vgy, and yaw angular velocity Vgz, these three The angular velocity variables are continuously integrated in the timer and converted into the target attitude: roll axis attitude tar_x, pitch axis attitude tar_y and yaw axis attitude tar_z.
  • the integration frequency is equal to the working frequency of the timer; optionally, the working frequency of the timer is 1kHz. Of course, the integration frequency and the working frequency of the timer may not be equal.
  • the pan-tilt 100 is also provided with an external interrupt program.
  • the angular velocity obtained in step S201 is the first angular velocity omega_body(x,y,z) of the external control device 200 in its body coordinate system
  • the pan/tilt head 100 will convert the first angular velocity into the second angular velocity in the absolute coordinate system omega_ned(x,y,z) (in this embodiment, the second angular velocity is also Euler’s angular velocity), and then the second angular velocity is assigned to the movement velocity of the pan/tilt 100 in the external interrupt program;
  • the angular velocity obtained in step S201 is external
  • the control device 200 is set to the second angular velocity omega_ned(x, y, z) in the absolute coordinate system
  • the second angular velocity is assigned to the movement speed of the pan/tilt 100 in the external interrupt program.
  • Vgx omega_ned(x)
  • Vgy omega_ned(y)
  • Vgz omega_ned(z).
  • omega_body(x,y,z) are the roll angular velocity, pitch angular velocity, and yaw angular velocity of the external control device 200 in its body coordinate system
  • omega_ned(x,y x, y, and z in z) are the roll angular velocity, pitch angular velocity, and yaw angular velocity of the external control device 200 in the absolute coordinate system.
  • the angular velocity acquisition frequency and the communication frequency in step S201 may be equal or not equal.
  • the acquisition frequency of the angular velocity in step S201 is equal to the communication frequency, such as 20 Hz.
  • the pan-tilt control method of this embodiment may further include: if a new angular velocity is acquired, replacing the current angular velocity of the integral processing Into a new angular velocity.
  • the movement of the pan/tilt 100 is based on the real-time angular velocity of the external control device 200.
  • the movement speed of the pan/tilt 100 can correspond to the speed at which the user controls the external control device 200.
  • the movement of the pan/tilt 100 can reflect the real The user controls the behavior, thereby bringing a better user experience.
  • the pan/tilt head 100 further includes a counter, which is used to record the number of acquisitions of the new angular velocity, so as to determine the communication quality between the pan/tilt head 100 and the external control device 200.
  • the pan-tilt control method further includes: updating the count value of the counter every time a new angular velocity is acquired.
  • the initial value of the counter (the count value of the counter when the pan-tilt 100 is turned on) is 0, and the count value of the counter is increased by 1 each time a new angular velocity is acquired.
  • the counter value is reset to zero.
  • the pan-tilt 100 when the pan-tilt 100 does not acquire the attitude of the external control device 200, or the acquired attitude of the external control device 200 is 0, the pan-tilt 100 immediately stops moving. In fact, the pan-tilt 100 does not acquire the attitude.
  • the posture to the external control device 200 may be due to slow communication speed, frame drop, stable communication connection, etc., which temporarily deteriorate the communication quality between the pan/tilt 100 and the external control device 200. If the pan/tilt 100 and the external control device If the communication recovery interval between 200 is short, the pan-tilt 100 will stop moving immediately, which will cause the pan-tilt 100 to freeze immediately, which will bring a bad control experience to the user.
  • the pan-tilt 100 In order to prevent the pan-tilt 100 from getting stuck when the pan-tilt 100 does not obtain the new angular velocity, the pan-tilt 100 immediately stops moving and causes the pan-tilt 100 to freeze.
  • the pan-tilt 100 in this embodiment is based on the unupdated duration of the count value. 100 for different controls.
  • the most recently acquired angular velocity is integrated to determine the real-time target attitude of the pan/tilt head 100; according to the real-time target attitude, the pan/tilt head 100 is controlled to rotate.
  • the duration of the count value not being updated is less than or equal to the preset duration threshold, which indicates that the pan/tilt 100 has not acquired a new angular velocity. This may be the reason for the temporary deterioration of the communication quality between the pan/tilt 100 and the external control device 200.
  • the communication with the external control device 200 is actually not interrupted, and the user may still be operating the external control device 200. Therefore, the control platform 100 continues to maintain the latest angular velocity movement, which brings the user a better control experience .
  • the rotation of the pan/tilt head 100 is stopped.
  • the time period for which the count value is not updated is greater than the preset time period threshold, which indicates that the communication between the pan-tilt 100 and the external control device 200 is interrupted, and the pan-tilt 100 stops moving.
  • the size of the aforementioned preset duration threshold can be set as needed, or can be a default value.
  • the acquisition frequency of the angular velocity in step S201 and the communication frequency between the pan-tilt 100 and the external control device 200 are both 20 Hz
  • the preset duration threshold is 100 ms (unit: milliseconds), that is, the duration if the count value is not updated If it does not exceed 100ms, it is considered that the communication between the pan/tilt 100 and the external control device 200 has not been interrupted; if the count value is not updated for longer than 100ms, it is considered that the communication between the pan/tilt 100 and the external control device 200 is completely interrupted, The pan/tilt 100 needs to stop moving.
  • S203 Control the pan-tilt 100 to rotate according to the target posture.
  • the pan-tilt 100 can be controlled to move to the position corresponding to the target posture.
  • a closed-loop control method may be adopted. It is understandable that the implementation process of controlling the rotation of the pan/tilt head 100 according to the target posture is in the prior art, and the embodiment of the present invention will not be described in detail.
  • the embodiment of the present invention also provides a pan-tilt 100.
  • the pan-tilt 100 includes a storage device 110 and one or more first processors 120.
  • the storage device 110 is used to store program instructions; one or more first processors 120 call the program instructions stored in the storage device 110.
  • the one or more first processors 120 individually Or collectively configured to perform the following operations: obtain the angular velocity of the external control device 200; perform integration processing on the angular velocity to determine the target attitude of the pan/tilt 100; control the rotation of the pan/tilt 100 according to the target attitude;
  • the integration frequency is greater than the communication frequency between the pan-tilt 100 and the external control device 200.
  • the first processor 120 may implement the pan/tilt control method according to the embodiments shown in FIG. 2 and FIG. 3 of the present invention.
  • the pan/tilt control method in the foregoing embodiment may be referred to for description of the pan/tilt 100 in this embodiment.
  • the aforementioned storage device 110 may include a volatile memory (volatile memory), such as random-access memory (RAM); the storage device 110 may also include a non-volatile memory (non-volatile memory), such as flash memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the storage device 110 may also include a combination of the foregoing types of memories.
  • the aforementioned first processor 120 may be a central processing unit (CPU).
  • the first processor 120 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuit (ASIC), field-programmable gate array (field-programmable gate array) array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the pan/tilt control method of this embodiment is applied to an external control device 200 that is communicatively connected to the pan/tilt 100.
  • the external control device 200 may be a mobile phone, a tablet computer, etc., or a motion sensory control device of the pan/tilt 100.
  • the PTZ control method may include the following steps:
  • the angular velocity is the first angular velocity of the external control device 200 in its body coordinate system detected by the angular velocity detection sensor.
  • the external control device 200 includes an angular velocity detection sensor, and the first angular velocity of the external control device 200 in its body coordinate system is obtained through detection of the angular velocity detection sensor.
  • the angular velocity detection sensor can be a gyroscope or other angular velocity detection sensors.
  • the angular velocity detection sensor is a gyroscope built into the mobile phone.
  • the body coordinate system of the external control device 200 is a coordinate system established by the external control device 200 for the body as a reference.
  • the angular velocity is the second angular velocity of the external control device 200 in the absolute coordinate system.
  • the process of obtaining the angular velocity of the external control device 200 may include the following steps (1) to (2):
  • step (1) The method of obtaining the first angular velocity in step (1) is the same as the method of obtaining the first angle in the foregoing embodiment, and will not be repeated here.
  • the realization process of converting the first angular velocity to the second angular velocity through the external control device 200 is similar to the realization process of converting the first angular velocity to the second angular velocity through the pan/tilt 100 in the first embodiment, and this embodiment will not Repeat.
  • S502 Send the angular velocity to the pan-tilt 100, so that the pan-tilt 100 controls the attitude of the pan-tilt 100 according to the angular velocity.
  • the external control device 200 can send the angular velocity to the pan/tilt head 100 via Bluetooth or other communication links.
  • the angular velocity sent by the external control device 200 to the pan-tilt 100 may be the first angular velocity or the second angular velocity.
  • the angular velocity sent by the external control device 200 to the pan/tilt 100 is the second angular velocity. The process of converting the first angular velocity to the second angular velocity is placed in the external control device 200, which reduces the calculation of the pan/tilt 100 and further Optimized the control of PTZ 100.
  • the embodiment of the present invention also provides an external control device 200.
  • the external control device 200 includes an angular velocity detection sensor 210 and a second processor 220, wherein the angular velocity The detection sensor 210 is electrically coupled to the second processor 220.
  • the angular velocity detection sensor 210 may be a gyroscope or other angular velocity detection sensors.
  • the second processor 220 is configured to: obtain the angular velocity of the external control device 200 through the angular velocity detection sensor 210; and send the angular velocity to the pan-tilt 100 so that the pan-tilt 100 controls the attitude of the pan/tilt 100 according to the angular velocity.
  • the second processor 220 may implement the pan-tilt control method of the second embodiment shown in FIG. 5 of the present invention.
  • the external control device 200 of this embodiment can be described with reference to the pan-tilt control method of the second embodiment above.
  • the aforementioned second processor 220 may be a central processing unit (CPU).
  • the second processor 220 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (field-programmable gate arrays). array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the pan-tilt control method of the above-mentioned embodiment are realized.
  • the computer-readable storage medium may be the internal storage unit of the pan/tilt or external control device described in any of the foregoing embodiments, such as a hard disk or a memory.
  • the computer-readable storage medium may also be an external storage device of a pan-tilt or an external control device, such as a plug-in hard disk, a smart media card (SMC), an SD card, and a flash memory card equipped on the device (Flash Card) etc.
  • the computer-readable storage medium may also include both an internal storage unit of a pan-tilt or an external control device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the pan/tilt or external control device, and can also be used to temporarily store data that has been output or will be output.
  • the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Abstract

A gimbal and a control method therefor. A gimbal and an external control apparatus therefor are also comprised, wherein the gimbal and the external control apparatus are in communication connection. The method comprises: acquiring an angular velocity of an external control apparatus; performing integration processing on the angular velocity, and determining a target attitude of a gimbal; and controlling, according to the target attitude, the gimbal to rotate, wherein the integration frequency of the integration processing is greater than the communication frequency between the gimbal and the external control apparatus. The movement velocity of the present gimbal can correspond to the speed of an external control apparatus controlled by a user, and the rotation velocity is relatively uniform.

Description

云台及其控制方法、外置控制装置PTZ and its control method and external control device 技术领域Technical field
本发明涉及云台控制领域,尤其涉及一种云台及其控制方法、外置控制装置。The invention relates to the field of pan-tilt control, in particular to a pan-tilt, a control method thereof, and an external control device.
背景技术Background technique
目前,用户通过控制外置控制装置的姿态来控制云台的姿态,实现了体感控制云台的目的。通常,外置控制装置将其实时姿态告知云台,云台根据外置控制装置的实时姿态大小直接转动。然而,通常情况下,不同时刻的姿态大小可能存在差异,上述根据实时姿态大小直接转动方式,会使得云台在不同时刻的转动速度差异较为明显,导致云台转动的速度不均匀、不细腻。At present, users control the attitude of the pan/tilt by controlling the attitude of an external control device, achieving the purpose of controlling the pan/tilt by somatosensory. Usually, the external control device informs the pan/tilt of its real-time attitude, and the pan/tilt rotates directly according to the real-time attitude of the external control device. However, under normal circumstances, there may be differences in the size of the posture at different times. The above-mentioned direct rotation method based on the real-time posture size will make the difference in the rotation speed of the gimbal at different times more obvious, resulting in uneven and non-delicate rotation of the gimbal.
为解决上述云台速度不均匀、不细腻的问题,若云台在不同时刻采用同一速度运动,则会存在云台姿态在未达到当前期望姿态前,外置控制装置即产生新的期望姿态,导致云运动延时较为严重的问题。In order to solve the problem of uneven and non-delicate speed of the gimbal, if the gimbal moves at the same speed at different times, the external control device will generate a new expected posture before the gimbal posture does not reach the current expected posture. Causes a serious problem of cloud movement delay.
另外,外置控制装置的姿态无法直观反映用户控制外置控制装置的快慢,因此,云台在根据外置控制装置的姿态运动时,不能根据用户控制外置控制装置的快慢对应控制云台运动的快慢,导致云台运动的快慢与用户控制速度的快慢不一致,云台运动无法体现真实的用户控制行为,用户体验较差。In addition, the posture of the external control device cannot intuitively reflect how fast the user controls the external control device. Therefore, when the pan/tilt moves according to the posture of the external control device, it cannot control the movement of the pan/tilt according to the speed of the user controlling the external control device. The speed of PTZ movement is inconsistent with the speed of user control. PTZ movement cannot reflect the real user control behavior, and the user experience is poor.
发明内容Summary of the invention
本发明提供一种云台及其控制方法、外置控制装置。The invention provides a pan-tilt, a control method thereof, and an external control device.
具体地,本发明是通过如下技术方案实现的:Specifically, the present invention is implemented through the following technical solutions:
根据本发明的第一方面,提供一种云台控制方法,所述云台与外置控制装置通信连接,所述方法包括:According to the first aspect of the present invention, there is provided a pan-tilt control method, the pan-tilt and an external control device are communicatively connected, and the method includes:
获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
对所述角速度进行积分处理,确定所述云台的目标姿态;Performing integral processing on the angular velocity to determine the target attitude of the pan/tilt;
根据所述目标姿态,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target posture;
其中,所述积分处理的积分频率大于所述云台与所述外置控制装置之间的通信频率。Wherein, the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
根据本发明的第二方面,提供一种云台,与外置控制装置无线通信连接,所述云台包括:According to a second aspect of the present invention, there is provided a pan-tilt, which is connected to an external control device in wireless communication, the pan-tilt includes:
存储装置,用于存储程序指令;Storage device for storing program instructions;
一个或多个处理器,调用所述存储装置中存储的程序指令,当所述程序指令被执行时,所述一个或多个处理器单独地或共同地被配置成用于实施如下操作:One or more processors call program instructions stored in the storage device, and when the program instructions are executed, the one or more processors are individually or collectively configured to implement the following operations:
获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
对所述角速度进行积分处理,确定所述云台的目标姿态;Performing integral processing on the angular velocity to determine the target attitude of the pan/tilt;
根据所述目标姿态,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target posture;
其中,所述积分处理的积分频率大于所述云台与所述外置控制装置之间的通信频率。Wherein, the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
根据本发明的第三方面,提供一种云台控制方法,所述方法应用于云台通信连接的外置控制装置,所述方法包括:According to a third aspect of the present invention, there is provided a pan-tilt control method, which is applied to an external control device connected by pan-tilt communication, and the method includes:
获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
发送所述角速度至所述云台,使得所述云台根据所述角速度控制所述云台的姿态。Send the angular velocity to the pan/tilt, so that the pan/tilt controls the attitude of the pan/tilt according to the angular velocity.
根据本发明的第四方面,提供一种外置控制装置,与云台无线通信连接,所述外置控制装置包括:According to a fourth aspect of the present invention, there is provided an external control device, which is connected to a pan-tilt in wireless communication, the external control device includes:
角速度检测传感器;以及Angular velocity detection sensor; and
处理器,与所述角速度检测传感器电耦合连接,所述处理器用于:A processor electrically coupled to the angular velocity detection sensor, and the processor is configured to:
通过所述角速度检测传感器获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device through the angular velocity detection sensor;
发送所述角速度至所述云台,使得所述云台根据所述角速度控制所述云台的姿态。Send the angular velocity to the pan/tilt, so that the pan/tilt controls the attitude of the pan/tilt according to the angular velocity.
由以上本发明实施例提供的技术方案可见,本发明的云台在对外置控制装置的对角速度进行积分处理,确定云台的目标姿态时,将积分处理的积分频率设置成大于云台与外置控制装置之间的通信频率,云台转动的速度变化较为平滑,减小了云台不同时刻的速度差异,使得云台转动的速度较为均匀和细腻;同时,云台基于外置控制装置的角速度进行运动,云台运动的速度快慢能够与用户控制外置控制装置的快慢相对应,云台运动能够体现真实的用户控制行为,从而带来较佳的用户体验。It can be seen from the technical solutions provided by the above embodiments of the present invention that the PTZ of the present invention performs integration processing on the diagonal velocity of the external control device, and when determining the target attitude of the PTZ, the integration frequency of the integration processing is set to be greater than that of the PTZ and the outside. The communication frequency between the control devices, the speed of the pan/tilt rotation changes smoothly, which reduces the speed difference of the pan/tilt at different times, and makes the speed of the pan/tilt rotation more uniform and delicate; at the same time, the pan/tilt is based on the external control device. Movement at an angular velocity, the speed of the pan/tilt movement can correspond to the speed at which the user controls the external control device, and the movement of the pan/tilt can reflect the real user control behavior, thereby bringing a better user experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1A是本发明一实施例中的云台控制系统的结构图;Figure 1A is a structural diagram of a pan-tilt control system in an embodiment of the present invention;
图1B是本发明一实施例中云台控制系统的应用场景图;Fig. 1B is an application scenario diagram of a pan-tilt control system in an embodiment of the present invention;
图2是本发明一实施例中的云台控制方法在云台侧的方法流程图;2 is a method flow chart of the PTZ control method on the PTZ side in an embodiment of the present invention;
图3是本发明另一实施例中的云台控制方法在云台侧的方法流程图;FIG. 3 is a method flow chart of the PTZ control method on the PTZ side in another embodiment of the present invention;
图4是本发明一实施例中的云台的结构框图;Fig. 4 is a structural block diagram of a pan-tilt in an embodiment of the present invention;
图5是本发明一实施例中的云台控制方法在外置控制装置侧的方法流程图;FIG. 5 is a method flowchart of the pan/tilt control method on the side of the external control device in an embodiment of the present invention;
图6是本发明一实施例中的外置控制装置的结构框图。Fig. 6 is a structural block diagram of an external control device in an embodiment of the present invention.
附图标记:Reference signs:
100:云台;110:存储装置;120:第一处理器;100: PTZ; 110: storage device; 120: first processor;
200:外置控制装置;210:角速度检测传感器;220:第二处理器。200: external control device; 210: angular velocity detection sensor; 220: second processor.
具体实施方式Detailed ways
目前,外置控制装置会将其实时姿态发送至云台,再由云台根据外置控制装置的实时姿态大小直接转动。由于不同时刻的姿态大小可能存在差异,若采用上述根据实时姿态大小直接转动的方式,可能会导致云台在不同时刻的转动速度差异较为明显,导致云台转动的速度不均匀、不细腻。Currently, the external control device sends its real-time attitude to the pan-tilt, and the pan-tilt directly rotates according to the real-time attitude of the external control device. Since there may be differences in the size of the posture at different times, if the above-mentioned method of direct rotation according to the real-time posture size is adopted, the difference in the rotation speed of the gimbal at different times may be obvious, resulting in uneven and non-fine rotation of the gimbal.
另外,外置控制装置的姿态无法直观反映用户控制外置控制装置的快慢,因此,云台在根据外置控制装置的姿态运动时,不能根据用户控制外置控制装置的快慢对应控制云台运动的快慢,导致云台运动的快慢与用户控制速度的快慢不一致,云台运动无法体现真实的用户控制行为,用户体验较差。In addition, the posture of the external control device cannot intuitively reflect how fast the user controls the external control device. Therefore, when the pan/tilt moves according to the posture of the external control device, it cannot control the movement of the pan/tilt according to the speed of the user controlling the external control device. The speed of PTZ movement is inconsistent with the speed of user control. PTZ movement cannot reflect the real user control behavior, and the user experience is poor.
针对上述问题,本发明实施例的云台控制方法,在外置控制装置侧实施如下操作:获取所述外置控制装置的角速度;发送所述角速度至所述云台,使得所述云台根据所述角速度控制所述云台的姿态。在云台侧实施如下操作:获取所述外置控制装置的角速度;对所述角速度进行积分处理,确定所述云台的目标姿态;根据所述目标姿态,控制所述云台转动;其中,所述积分处理的积分频率大于所述云台与所述外置控制装置之间的通信频率。In view of the above-mentioned problems, the pan/tilt control method of the embodiment of the present invention implements the following operations on the side of the external control device: acquire the angular velocity of the external control device; send the angular velocity to the pan/tilt so that the pan/tilt based on the The angular velocity controls the attitude of the pan/tilt. Perform the following operations on the pan/tilt side: obtain the angular velocity of the external control device; perform integral processing on the angular velocity to determine the target attitude of the pan/tilt; control the rotation of the pan/tilt according to the target attitude; wherein, The integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
本发明的云台在对外置控制装置的对角速度进行积分处理,确定云台的目标姿态时,将积分处理的积分频率设置成大于云台与外置控制装置之间的通信频率,云台转动的速度变化较为平滑,减小了云台不同时刻的速度差异,使得云台转动的速度较为均匀和细腻;同时,云台基于外置控制装置的角速度进行运动,云台运动的速度快慢能够与用户控制外置控制装置的快慢相对应,云台运动能够体现真实的用户控制行为,从而带来较佳的用户体验。The pan/tilt of the present invention performs integration processing on the diagonal velocity of the external control device, and when determining the target attitude of the pan/tilt, the integration frequency of the integration processing is set to be greater than the communication frequency between the pan/tilt and the external control device, and the pan/tilt rotates The speed change of the PTZ is relatively smooth, which reduces the speed difference of the PTZ at different times, making the rotation speed of the PTZ more uniform and delicate; at the same time, the PTZ is moving based on the angular velocity of the external control device, and the speed of the PTZ movement can be compared with Corresponding to the speed at which the user controls the external control device, the pan-tilt movement can reflect the real user control behavior, thereby bringing a better user experience.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施 例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。It should be noted that, in the case of no conflict, the following embodiments and features in the implementation can be combined with each other.
参见图1A,本发明实施例的云台100与外置控制装置200通信连接,可选的,云台100与外置控制装置200基于无线通信方式实现通信连接,该无线通信方式可以为蓝牙、wifi或其他无线通信方式;可选的,云台100与外置控制装置200基于有线通信方式实现通信连接。1A, the pan/tilt head 100 of the embodiment of the present invention is in communication connection with the external control device 200. Optionally, the pan/tilt head 100 and the external control device 200 realize the communication connection based on a wireless communication method. The wireless communication method may be Bluetooth, Wi-Fi or other wireless communication methods; optionally, the pan-tilt 100 and the external control device 200 realize a communication connection based on a wired communication method.
本发明实施例的外置控制装置200可以为手机、平板电脑等,也可以为云台100的体感控制装置。The external control device 200 of the embodiment of the present invention may be a mobile phone, a tablet computer, etc., and may also be a motion sensory control device of the pan/tilt head 100.
在图1B所示的实施例中,外置控制装置200为手机,用户通过控制手机的姿态来控制云台100转动。可选的,当手机的显示面朝向用户,且手机竖直放置(如图1B所示的手机放置方向)时,用户控制手机向前(朝向用户的方向,也即沿着手机的长度方向)转动或向后转动,对应控制云台100的俯仰角;用户控制手机向左转动或向右转动(手机的显示面的朝向基本不变),对应控制云台100的偏航角;用户控制手机向左翻动或向右翻动,对应控制云台100的横滚角。可以理解,当手机的显示面朝向天空端或地面端,且手机水平放置时,上述操作以及对应的云台100的控制角度也是可以适用的,当然,在实际应用中,上述操作以及对应的云台100的控制角度可以有其它方式,此处不做具体限定。In the embodiment shown in FIG. 1B, the external control device 200 is a mobile phone, and the user controls the pan/tilt head 100 to rotate by controlling the posture of the mobile phone. Optionally, when the display surface of the mobile phone faces the user, and the mobile phone is placed vertically (as shown in Figure 1B in the mobile phone placement direction), the user controls the mobile phone to move forward (toward the user, that is, along the length of the mobile phone) Rotate or turn back to control the pitch angle of the pan/tilt 100; the user controls the mobile phone to turn left or right (the orientation of the display surface of the mobile phone is basically unchanged), and correspondingly controls the yaw angle of the pan/tilt 100; Control the mobile phone to turn left or right, corresponding to control the roll angle of the PTZ 100. It can be understood that when the display surface of the mobile phone faces the sky or the ground and the mobile phone is placed horizontally, the above operations and the corresponding control angle of the PTZ 100 are also applicable. Of course, in actual applications, the above operations and the corresponding cloud The control angle of the stage 100 may have other methods, which are not specifically limited here.
实施例一和实施例二将分别从云台100侧、外置控制装置200侧对云台控制方法的实现过程进行详细描述。In the first embodiment and the second embodiment, the implementation process of the pan-tilt control method will be described in detail from the side of the pan-tilt 100 and the side of the external control device 200 respectively.
实施例一Example one
图2是本发明一实施例中的云台控制方法在云台100侧的方法流程图;如图2所示,所述云台控制方法可以包括但不限于如下步骤:Fig. 2 is a method flow chart of the pan/tilt control method on the side of the pan/tilt 100 in an embodiment of the present invention; as shown in Fig. 2, the pan/tilt control method may include but is not limited to the following steps:
S201:获取外置控制装置200的角速度;S201: Obtain the angular velocity of the external control device 200;
在某些实施例中,云台100接收外置控制装置200发送的该外置控制装置200的角速度,本实施例中,云台100被动的接收外置控制装置200的角速度;可选的,当云台100与外置控制装置200基于蓝牙通信时,云台100可以通过蓝牙接收外置控制装置200发送的外置控制装置200的角速度。当然,当云台100与外置控制装置200基于其他通信方式通信时,云台100接收外置控制装置200发送的外置控制装置200的角速度的通信链路相应变化。In some embodiments, the pan/tilt 100 receives the angular velocity of the external control device 200 sent by the external control device 200. In this embodiment, the pan/tilt 100 passively receives the angular velocity of the external control device 200; optionally, When the pan-tilt 100 and the external control device 200 communicate based on Bluetooth, the pan-tilt 100 can receive the angular velocity of the external control device 200 sent by the external control device 200 via Bluetooth. Of course, when the pan/tilt head 100 communicates with the external control device 200 based on other communication methods, the pan/tilt head 100 receives the communication link of the angular velocity of the external control device 200 sent by the external control device 200 and changes accordingly.
在某些实施例中,云台100从外置控制装置200读取该外置控制装置200的角速度;可选的,云台100按照预设时间间隔访问外置控制装置200的数据端口,云台 100主动读取该外置控制装置200的角速度。In some embodiments, the pan/tilt 100 reads the angular velocity of the external control device 200 from the external control device 200; optionally, the pan/tilt 100 accesses the data port of the external control device 200 at preset time intervals. The station 100 actively reads the angular velocity of the external control device 200.
在某些实施例中,通过步骤S201获取角速度为外置控制装置200在其体坐标系下的第一角速度;其中,外置控制装置200包括角速度检测传感器,通过步骤S201获取角速度为角速度检测传感器检测的外置控制装置200在其体坐标系下的第一角速度。该角速度检测传感器可以为陀螺仪,也可以为其他角速度检测传感器。例如,当外置控制装置200为手机时,角速度检测传感器为手机内置的陀螺仪。需要说明的是,外置控制装置200的体坐标系是以外置控制装置200为机体为参照建立的坐标系。In some embodiments, the angular velocity acquired through step S201 is the first angular velocity of the external control device 200 in its body coordinate system; wherein, the external control device 200 includes an angular velocity detection sensor, and the angular velocity acquired through step S201 is the angular velocity detection sensor The detected first angular velocity of the external control device 200 in its body coordinate system. The angular velocity detection sensor can be a gyroscope or other angular velocity detection sensors. For example, when the external control device 200 is a mobile phone, the angular velocity detection sensor is a gyroscope built into the mobile phone. It should be noted that the body coordinate system of the external control device 200 is a coordinate system established by the external control device 200 for the body as a reference.
在某些实施例中,通过步骤S201获取角速度为外置控制装置200在绝对坐标系下的第二角速度,该第二角速度根据外置控制装置200在其体坐标系下的第一角速度确定。其中,外置控制装置200包括角速度检测传感器,第一角速度由角速度检测传感器检测获得。本实施例的绝对坐标系可以为世界坐标系,也可以为其他绝对坐标系。可以理解的是,第二角速度所在的坐标系可以与用于控制云台100的角速度所在的坐标系相同。In some embodiments, the angular velocity obtained in step S201 is the second angular velocity of the external control device 200 in the absolute coordinate system, and the second angular velocity is determined according to the first angular velocity of the external control device 200 in its body coordinate system. The external control device 200 includes an angular velocity detection sensor, and the first angular velocity is detected by the angular velocity detection sensor. The absolute coordinate system in this embodiment may be a world coordinate system or other absolute coordinate systems. It can be understood that the coordinate system where the second angular velocity is located may be the same as the coordinate system where the angular velocity of the pan/tilt head 100 is controlled.
S202:对角速度进行积分处理,确定云台100的目标姿态,其中,积分处理的积分频率大于云台100与外置控制装置200之间的通信频率;S202: Perform integration processing on the angular velocity to determine the target attitude of the pan/tilt head 100, where the integration frequency of the integration processing is greater than the communication frequency between the pan/tilt head 100 and the external control device 200;
在对角速度进行积分处理时,将积分处理的积分频率设置成大于云台100与外置控制装置200之间的通信频率,确定的云台100的目标姿态是平滑过渡的,减小了云台100在不同时刻转动的速度差异,使得云台100转动的速度较为均匀和细腻。本实施例中,积分处理的积分区间对应的积分时长△t=1/积分频率。积分处理的积分频率可以为默认数值,也可以由用户设定。可选的,积分处理的积分频率为1kHz(单位:千赫兹),云台100与外置控制装置200之间的通信频率为20Hz(单位:赫兹)。当然,积分处理的积分频率、云台100与外置控制装置200之间的通信频率也可以设置为其他大小。When the angular velocity is integrated, the integration frequency of the integration processing is set to be greater than the communication frequency between the pan/tilt 100 and the external control device 200, and the determined target attitude of the pan/tilt 100 is a smooth transition, which reduces the pan/tilt. The speed difference of the rotation of 100 at different times makes the rotation speed of the pan-tilt 100 more uniform and delicate. In this embodiment, the integration duration corresponding to the integration interval of the integration processing is Δt=1/integration frequency. The integration frequency of the integration process can be the default value or set by the user. Optionally, the integration frequency of the integration processing is 1 kHz (unit: kilohertz), and the communication frequency between the pan-tilt 100 and the external control device 200 is 20 Hz (unit: hertz). Of course, the integration frequency of the integration process and the communication frequency between the pan-tilt 100 and the external control device 200 can also be set to other sizes.
在某些实施例中,步骤S201获取的角速度为外置控制装置200在其体坐标系下的第一角速度omega_body(x,y,z),云台100需要将第一角速度转换成绝对坐标系下的第二角速度omega_ned(x,y,z),再对第二角速度进行积分处理,确定云台100的目标姿态。参见图3,云台100在对角速度进行积分处理,确定云台100的目标姿态时,具体包括如下步骤,In some embodiments, the angular velocity obtained in step S201 is the first angular velocity omega_body(x, y, z) of the external control device 200 in its body coordinate system, and the platform 100 needs to convert the first angular velocity into an absolute coordinate system The second angular velocity omega_ned(x, y, z) is lowered, and then the second angular velocity is integrated to determine the target attitude of the gimbal 100. Referring to FIG. 3, when the gimbal 100 performs integration processing on the angular velocity to determine the target attitude of the gimbal 100, it specifically includes the following steps:
S301:将第一角速度转换成绝对坐标系下的第二角速度;S301: Convert the first angular velocity to the second angular velocity in the absolute coordinate system;
S302:对第二角速度进行积分处理,确定云台100的目标姿态。S302: Perform integration processing on the second angular velocity to determine the target attitude of the pan-tilt 100.
下面,详细介绍将外置控制装置200在其体坐标系下的第一角速度omega_body(x,y,z)转换成绝对坐标系下的第二角速度omega_ned(x,y,z)的实现过程。In the following, the implementation process of converting the first angular velocity omega_body (x, y, z) of the external control device 200 in its body coordinate system into the second angular velocity omega_ned (x, y, z) in the absolute coordinate system will be described in detail.
可选的,将第一角速度转换成绝对坐标系下的第二角速度可以包括但不限于步 骤(1)~(3):Optionally, converting the first angular velocity into the second angular velocity in the absolute coordinate system may include but not limited to steps (1) to (3):
(1)、获取外置控制装置200的姿态信息;(1) Obtain posture information of the external control device 200;
云台100可访问外置控制装置200的接口,以读取该外置控制装置200的姿态信息。该接口可以为硬件数据接口,也可以为程序接口。当然,外置控制装置200的姿态信息可以由外置控制装置200发送至云台100。The pan/tilt head 100 can access the interface of the external control device 200 to read the posture information of the external control device 200. The interface can be a hardware data interface or a program interface. Of course, the posture information of the external control device 200 may be sent to the pan/tilt 100 by the external control device 200.
其中,姿态信息可以包括姿态四元数,也可以包括外置控制装置200的其他姿态信息。Among them, the posture information may include posture quaternion, and may also include other posture information of the external control device 200.
(2)、根据姿态信息,确定体坐标系与绝对坐标系进行坐标转换的转换关系;(2) According to the posture information, determine the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion;
其中,根据姿态信息,确定体坐标系与绝对坐标系进行坐标转换的转换关系的实现过程可以包括但不限于步骤(21)~(22):Among them, according to the posture information, the realization process of determining the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion may include but not limited to steps (21) to (22):
(21)、将姿态四元数转换成欧拉角;(21) Convert the attitude quaternion into Euler angles;
本实施例中,姿态四元数为Q_real(q 0,q 1,q 2,q 3),欧拉角为euler(φ,θ,ψ),其中,
Figure PCTCN2019095763-appb-000001
a为机体坐标系在前后两次之间的旋转角度,x、y、z分别为对应方向上的向量表示,φ、θ、ψ分别为欧拉角中对应横滚方向的角度值、对应俯仰方向的角度、对应偏航方向的角度值。
In this embodiment, the attitude quaternion is Q_real(q 0 , q 1 , q 2 , q 3 ), and the Euler angle is euler (φ, θ, ψ), where,
Figure PCTCN2019095763-appb-000001
a is the rotation angle between the front and back of the body coordinate system, x, y, z are the vector representations in the corresponding directions, φ, θ, and ψ are the angle values of the corresponding roll direction and the corresponding pitch in the Euler angles. The angle of the direction and the angle value corresponding to the yaw direction.
本实施例中,将姿态四元数转换成欧拉角公式为:In this embodiment, the formula for converting the attitude quaternion into Euler angles is:
Figure PCTCN2019095763-appb-000002
Figure PCTCN2019095763-appb-000002
θ=-arcsin(2(q 1q 3-q 0q 2)) θ=-arcsin(2(q 1 q 3 -q 0 q 2 ))
Figure PCTCN2019095763-appb-000003
Figure PCTCN2019095763-appb-000003
(22)、根据欧拉角,确定转换关系。(22) Determine the conversion relationship according to Euler angle.
在某些实施例中,根据欧拉角,确定坐标转换关系可以包括:将欧拉角中对应偏航方向的角度值设为0;根据欧拉角中对应横滚方向的角度值、对应俯仰方向的角度值以及对应偏航方向的角度值,确定转换关系。当外置控制装置200为手机时,将ψ设置为0,在手机横放(手机显示面垂直于水平面,且手机的长度方向为左右方向)和竖放(手机显示面垂直于水平面,且手机的长度方向为上下方向)时,控制手机向前转动(沿着手机的长度方向)或向后转动,均对应控制云台100的俯仰角;若ψ不等于0,则手机竖放时,控制手机向前转动(沿着手机的长度方向)或向后转动,对应控制云台100的俯仰角;手机横放时,控制手机向前转动或向后转动,对应控制云台100的偏航角,导致体感控制不统一。In some embodiments, determining the coordinate conversion relationship according to the Euler angle may include: setting the angle value corresponding to the yaw direction in the Euler angle to 0; according to the angle value corresponding to the roll direction in the Euler angle, the corresponding pitch The angle value of the direction and the angle value of the corresponding yaw direction determine the conversion relationship. When the external control device 200 is a mobile phone, set ψ to 0 and place the mobile phone horizontally (the mobile phone display surface is perpendicular to the horizontal plane, and the length of the mobile phone is left and right) and vertically (the mobile phone display surface is perpendicular to the horizontal plane, and the mobile phone When the length direction of the mobile phone is up and down), control the mobile phone to rotate forward (along the length of the mobile phone) or backward, which corresponds to the pitch angle of the pan/tilt 100; if ψ is not equal to 0, when the mobile phone is placed vertically, control The mobile phone rotates forward (along the length of the mobile phone) or backwards to control the pitch angle of the PTZ 100; when the mobile phone is placed horizontally, control the mobile phone to rotate forward or backward, corresponding to the yaw angle of the PTZ 100 , Resulting in inconsistent somatosensory control.
本实施例中,体坐标系与绝对坐标系进行坐标转换的转换关系采用余弦矩阵表示,体坐标系与绝对坐标系进行坐标转换的余弦矩阵表示为:In this embodiment, the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion is expressed by a cosine matrix, and the cosine matrix for the coordinate conversion between the body coordinate system and the absolute coordinate system is expressed as:
Figure PCTCN2019095763-appb-000004
Figure PCTCN2019095763-appb-000004
其中,R z(ψ)为余弦矩阵中对应偏航方向的矩阵; Among them, R z (ψ) is the matrix corresponding to the yaw direction in the cosine matrix;
R y(θ)为余弦矩阵中对应俯仰方向的矩阵; R y (θ) is the matrix corresponding to the pitch direction in the cosine matrix;
R x(φ)为余弦矩阵中对应横滚方向的矩阵。 R x (φ) is the matrix corresponding to the roll direction in the cosine matrix.
可以理解的,体坐标系与绝对坐标系进行坐标转换的转换关系也可采用其他表示方式,不限于采用余弦矩阵表示体坐标系与绝对坐标系进行坐标转换的转换关系。It is understandable that the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion can also be expressed in other ways, and is not limited to using a cosine matrix to represent the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion.
(3)、根据转换关系和第一角速度,得到第二角速度。(3) According to the conversion relationship and the first angular velocity, the second angular velocity is obtained.
第二角速度omega_ned(x,y,z)的计算方式包括但不限于如下公式:The calculation method of the second angular velocity omega_ned(x,y,z) includes but is not limited to the following formula:
omega_ned(x,y,z)=omega_body(x,y,z)*Romega_ned(x,y,z)=omega_body(x,y,z)*R
可以理解地,上述步骤(1)~(3)也可以在外置控制器中实现。Understandably, the above steps (1) to (3) can also be implemented in an external controller.
在某些实施例中,步骤S201获取的角速度为外置控制装置200在绝对坐标系下的第二角速度omega_ned(x,y,z),云台100直接对第二角速进行积分处理,确定云台100的目标姿态。In some embodiments, the angular velocity obtained in step S201 is the second angular velocity omega_ned(x,y,z) of the external control device 200 in the absolute coordinate system, and the pan/tilt 100 directly integrates the second angular velocity to determine The target posture of the gimbal 100.
此外,可以将步骤S202的执行过程放在定时器中,实现了角速度的循环积分。当然,步骤S202的执行过程也可以不放在定时器中。In addition, the execution process of step S202 can be placed in a timer to realize the cyclic integral of the angular velocity. Of course, the execution process of step S202 may not be placed in the timer.
在某些实施例中,云台100设有定时器,通过定时器对角速度进行积分处理,确定云台100的目标姿态。可选的,定时器定义三个角速度变量(即云台100运动速度,这三个角速度变量均为欧拉角速度的分量变量):横滚角速度Vgx、俯仰角速度Vgy以及偏航角速度Vgz,这三个角速度变量在定时器中不断循环积分,对应转换成目标姿态:横滚轴姿态tar_x,俯仰轴姿态tar_y以及偏航轴姿态tar_z。In some embodiments, the pan-tilt 100 is provided with a timer, and the angular velocity is integrated by the timer to determine the target posture of the pan-tilt 100. Optionally, the timer defines three angular velocity variables (that is, the movement speed of the pan-tilt 100, these three angular velocity variables are all component variables of Euler angular velocity): roll angular velocity Vgx, pitch angular velocity Vgy, and yaw angular velocity Vgz, these three The angular velocity variables are continuously integrated in the timer and converted into the target attitude: roll axis attitude tar_x, pitch axis attitude tar_y and yaw axis attitude tar_z.
可选的,积分频率与定时器的工作频率大小相等;可选的,定时器的工作频率为1kHz。当然,积分频率与定时器的工作频率大小也可以不相等。Optionally, the integration frequency is equal to the working frequency of the timer; optionally, the working frequency of the timer is 1kHz. Of course, the integration frequency and the working frequency of the timer may not be equal.
可选的,云台100还设有外部中断程序。当步骤S201获取的角速度为外置控制装置200在其体坐标系下的第一角速度omega_body(x,y,z)时,云台100会将第一角速度转换成绝对坐标系下的第二角速度omega_ned(x,y,z)(本实施例中,第二角速度也为欧拉角速度),再在外部中断程序中将第二角速度赋值给云台100运动速度;当步骤S201获取的角速度为外置控制装置200在绝对坐标系下的第二角速度omega_ned(x,y,z) 时,在外部中断程序中将第二角速度赋值给云台100运动速度。将第二角速度赋值给云台100运动速度时,具体的,Vgx=omega_ned(x)、Vgy=omega_ned(y)、Vgz=omega_ned(z)。Optionally, the pan-tilt 100 is also provided with an external interrupt program. When the angular velocity obtained in step S201 is the first angular velocity omega_body(x,y,z) of the external control device 200 in its body coordinate system, the pan/tilt head 100 will convert the first angular velocity into the second angular velocity in the absolute coordinate system omega_ned(x,y,z) (in this embodiment, the second angular velocity is also Euler’s angular velocity), and then the second angular velocity is assigned to the movement velocity of the pan/tilt 100 in the external interrupt program; when the angular velocity obtained in step S201 is external When the control device 200 is set to the second angular velocity omega_ned(x, y, z) in the absolute coordinate system, the second angular velocity is assigned to the movement speed of the pan/tilt 100 in the external interrupt program. When assigning the second angular velocity to the movement speed of the pan-tilt 100, specifically, Vgx=omega_ned(x), Vgy=omega_ned(y), and Vgz=omega_ned(z).
需要说明的是,omega_body(x,y,z)中的x、y、z分别为外置控制装置200在其体坐标系下的横滚角速度、俯仰角速度、偏航角速度;omega_ned(x,y,z)中的x、y、z分别为外置控制装置200在绝对坐标系下的横滚角速度、俯仰角速度、偏航角速度。It should be noted that x, y, and z in omega_body(x,y,z) are the roll angular velocity, pitch angular velocity, and yaw angular velocity of the external control device 200 in its body coordinate system; omega_ned(x,y x, y, and z in z) are the roll angular velocity, pitch angular velocity, and yaw angular velocity of the external control device 200 in the absolute coordinate system.
另外,步骤S201中角速度的获取频率与通信频率大小可以相等,也可以不相等。In addition, the angular velocity acquisition frequency and the communication frequency in step S201 may be equal or not equal.
在某些实施例中,步骤S201中角速度的获取频率与通信频率大小相等,如20Hz,本实施例的云台控制方法还可以包括:若获取到新的角速度,则将积分处理的当前角速度替换成新的角速度。本实施例中,云台100运动是基于外置控制装置200的实时角速度的,云台100运动的速度快慢能够与用户控制外置控制装置200的快慢相对应,云台100运动能够体现真实的用户控制行为,从而带来较佳的用户体验。In some embodiments, the acquisition frequency of the angular velocity in step S201 is equal to the communication frequency, such as 20 Hz. The pan-tilt control method of this embodiment may further include: if a new angular velocity is acquired, replacing the current angular velocity of the integral processing Into a new angular velocity. In this embodiment, the movement of the pan/tilt 100 is based on the real-time angular velocity of the external control device 200. The movement speed of the pan/tilt 100 can correspond to the speed at which the user controls the external control device 200. The movement of the pan/tilt 100 can reflect the real The user controls the behavior, thereby bringing a better user experience.
进一步的,在某些实施例中,云台100还包括计数器,计数器用于记录新的角速度的获取次数,从而判断云台100和外置控制装置200之间的通信质量。在本实施例中,所述云台控制方法还包括:在每次获取到新的角速度时,更新计数器的计数值。可选的,计数器的初始值(云台100开启时计数器的计数值)为0,在每次获取到新的角速度时,计数器的计数值加1。当云台100关机时,计数器的计数值重新清零。Further, in some embodiments, the pan/tilt head 100 further includes a counter, which is used to record the number of acquisitions of the new angular velocity, so as to determine the communication quality between the pan/tilt head 100 and the external control device 200. In this embodiment, the pan-tilt control method further includes: updating the count value of the counter every time a new angular velocity is acquired. Optionally, the initial value of the counter (the count value of the counter when the pan-tilt 100 is turned on) is 0, and the count value of the counter is increased by 1 each time a new angular velocity is acquired. When the pan-tilt 100 is shut down, the counter value is reset to zero.
相关技术中,当云台100未获取到外置控制装置200的姿态,或者获取到的外置控制装置200的姿态大小为0时,云台100立即停止运动,实际上,云台100未获取到外置控制装置200的姿态可能是由于通信速度慢、掉帧、通信连接稳定等导致云台100和外置控制装置200之间的通信质量暂时变差,如果云台100和外置控制装置200之间的通信恢复间隔较短,则云台100立即停止运动会导致云台100即刻卡顿,给用户带来不好的控制体验。In the related art, when the pan-tilt 100 does not acquire the attitude of the external control device 200, or the acquired attitude of the external control device 200 is 0, the pan-tilt 100 immediately stops moving. In fact, the pan-tilt 100 does not acquire the attitude. The posture to the external control device 200 may be due to slow communication speed, frame drop, stable communication connection, etc., which temporarily deteriorate the communication quality between the pan/tilt 100 and the external control device 200. If the pan/tilt 100 and the external control device If the communication recovery interval between 200 is short, the pan-tilt 100 will stop moving immediately, which will cause the pan-tilt 100 to freeze immediately, which will bring a bad control experience to the user.
为防止云台100未获取到新的角速度时,云台100立即停止运动导致的云台100卡顿情况的发生,本实施例的云台100基于计数值的未更新的时长大小,对云台100进行不同的控制。In order to prevent the pan-tilt 100 from getting stuck when the pan-tilt 100 does not obtain the new angular velocity, the pan-tilt 100 immediately stops moving and causes the pan-tilt 100 to freeze. The pan-tilt 100 in this embodiment is based on the unupdated duration of the count value. 100 for different controls.
可选的,若计数值未更新的时长小于或等于预设时长阈值,则对最近一次获取的角速度进行积分处理,确定云台100的实时目标姿态;根据实时目标姿态,控制云台100转动。计数值未更新的时长小于或等于预设时长阈值,这表明云台100未获取到新的角速度可能是云台100和外置控制装置200之间的通信质量暂时变差的原因,云台100和外置控制装置200之间的通信实际未中断,且用户可能还在操作外置控制装置200,因此,控制云台100继续保持最近一次获取的角速度运动,给用户带来较佳的控制体验。Optionally, if the time period during which the count value is not updated is less than or equal to the preset time threshold value, the most recently acquired angular velocity is integrated to determine the real-time target attitude of the pan/tilt head 100; according to the real-time target attitude, the pan/tilt head 100 is controlled to rotate. The duration of the count value not being updated is less than or equal to the preset duration threshold, which indicates that the pan/tilt 100 has not acquired a new angular velocity. This may be the reason for the temporary deterioration of the communication quality between the pan/tilt 100 and the external control device 200. The communication with the external control device 200 is actually not interrupted, and the user may still be operating the external control device 200. Therefore, the control platform 100 continues to maintain the latest angular velocity movement, which brings the user a better control experience .
可选的,若计数值未更新的时长大于预设时长阈值,则停止云台100的转动。计数值未更新的时长大于预设时长阈值,这表明云台100和外置控制装置200之间的通信中断了,云台100停止运动。Optionally, if the time period during which the count value is not updated is greater than the preset time period threshold, the rotation of the pan/tilt head 100 is stopped. The time period for which the count value is not updated is greater than the preset time period threshold, which indicates that the communication between the pan-tilt 100 and the external control device 200 is interrupted, and the pan-tilt 100 stops moving.
上述预设时长阈值的大小可以根据需要设置,也可以为默认数值大小。可选的,步骤S201中角速度的获取频率以及云台100与外置控制装置200之间的通信频率均为20Hz,预设时长阈值为100ms(单位:毫秒),即若计数值未更新的时长不超过100ms,则认为云台100与外置控制装置200之间的通信未中断;若计数值未更新的时长大于100ms,则认为云台100与外置控制装置200之间的通信完全中断,需要云台100停止运动。The size of the aforementioned preset duration threshold can be set as needed, or can be a default value. Optionally, the acquisition frequency of the angular velocity in step S201 and the communication frequency between the pan-tilt 100 and the external control device 200 are both 20 Hz, and the preset duration threshold is 100 ms (unit: milliseconds), that is, the duration if the count value is not updated If it does not exceed 100ms, it is considered that the communication between the pan/tilt 100 and the external control device 200 has not been interrupted; if the count value is not updated for longer than 100ms, it is considered that the communication between the pan/tilt 100 and the external control device 200 is completely interrupted, The pan/tilt 100 needs to stop moving.
S203:根据目标姿态,控制云台100转动。S203: Control the pan-tilt 100 to rotate according to the target posture.
通过上述步骤S203,即可控制云台100运动至目标姿态对应的位置。Through the above step S203, the pan-tilt 100 can be controlled to move to the position corresponding to the target posture.
云台100在根据目标姿态,控制云台100转动时,可以采用闭环控制方式。可以理解地,根据目标姿态,控制云台100转动的实现过程为现有技术,本发明实施例不作详细描述。When the pan/tilt head 100 controls the rotation of the pan/tilt head 100 according to the target posture, a closed-loop control method may be adopted. It is understandable that the implementation process of controlling the rotation of the pan/tilt head 100 according to the target posture is in the prior art, and the embodiment of the present invention will not be described in detail.
对应于上述实施例的云台控制方法,本发明实施例还提供一种云台100,参见图4,该云台100包括:存储装置110和一个或多个第一处理器120。Corresponding to the pan-tilt control method of the foregoing embodiment, the embodiment of the present invention also provides a pan-tilt 100. Referring to FIG. 4, the pan-tilt 100 includes a storage device 110 and one or more first processors 120.
其中,存储装置110,用于存储程序指令;一个或多个第一处理器120,调用存储装置110中存储的程序指令,当程序指令被执行时,一个或多个第一处理器120单独地或共同地被配置成用于实施如下操作:获取外置控制装置200的角速度;对角速度进行积分处理,确定云台100的目标姿态;根据目标姿态,控制云台100转动;其中,积分处理的积分频率大于云台100与外置控制装置200之间的通信频率。The storage device 110 is used to store program instructions; one or more first processors 120 call the program instructions stored in the storage device 110. When the program instructions are executed, the one or more first processors 120 individually Or collectively configured to perform the following operations: obtain the angular velocity of the external control device 200; perform integration processing on the angular velocity to determine the target attitude of the pan/tilt 100; control the rotation of the pan/tilt 100 according to the target attitude; The integration frequency is greater than the communication frequency between the pan-tilt 100 and the external control device 200.
第一处理器120可以实现如本发明图2、图3所示实施例的云台控制方法,可参见上述实施例的云台控制方法对本实施例的云台100进行说明。The first processor 120 may implement the pan/tilt control method according to the embodiments shown in FIG. 2 and FIG. 3 of the present invention. The pan/tilt control method in the foregoing embodiment may be referred to for description of the pan/tilt 100 in this embodiment.
上述存储装置110可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储装置110也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储装置110还可以包括上述种类的存储器的组合。The aforementioned storage device 110 may include a volatile memory (volatile memory), such as random-access memory (RAM); the storage device 110 may also include a non-volatile memory (non-volatile memory), such as flash memory. A memory (flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the storage device 110 may also include a combination of the foregoing types of memories.
上述第一处理器120可以是中央处理器(central processing unit,CPU)。该第一处理器120还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可 以是任何常规的处理器等。The aforementioned first processor 120 may be a central processing unit (CPU). The first processor 120 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuit (ASIC), field-programmable gate array (field-programmable gate array) array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
实施例二Example two
本实施例的云台控制方法应用于云台100通信连接的外置控制装置200,该外置控制装置200可以为手机、平板电脑等,也可以为云台100的体感控制装置。参见图5,所述云台控制方法可以包括如下步骤:The pan/tilt control method of this embodiment is applied to an external control device 200 that is communicatively connected to the pan/tilt 100. The external control device 200 may be a mobile phone, a tablet computer, etc., or a motion sensory control device of the pan/tilt 100. Referring to Figure 5, the PTZ control method may include the following steps:
S501:获取外置控制装置200的角速度;S501: Obtain the angular velocity of the external control device 200;
在某些实施例中,角速度为角速度检测传感器检测的外置控制装置200在其体坐标系下的第一角速度。可选的,外置控制装置200包括角速度检测传感器,通过角速度检测传感器检测获得外置控制装置200在其体坐标系下的第一角速度。该角速度检测传感器可以为陀螺仪,也可以为其他角速度检测传感器。例如,当外置控制装置200为手机时,角速度检测传感器为手机内置的陀螺仪。需要说明的是,外置控制装置200的体坐标系是以外置控制装置200为机体为参照建立的坐标系。In some embodiments, the angular velocity is the first angular velocity of the external control device 200 in its body coordinate system detected by the angular velocity detection sensor. Optionally, the external control device 200 includes an angular velocity detection sensor, and the first angular velocity of the external control device 200 in its body coordinate system is obtained through detection of the angular velocity detection sensor. The angular velocity detection sensor can be a gyroscope or other angular velocity detection sensors. For example, when the external control device 200 is a mobile phone, the angular velocity detection sensor is a gyroscope built into the mobile phone. It should be noted that the body coordinate system of the external control device 200 is a coordinate system established by the external control device 200 for the body as a reference.
在某些实施例中,角速度为外置控制装置200在绝对坐标系下的第二角速度。获取外置控制装置200的角速度的过程可以包括如下步骤(1)~(2):In some embodiments, the angular velocity is the second angular velocity of the external control device 200 in the absolute coordinate system. The process of obtaining the angular velocity of the external control device 200 may include the following steps (1) to (2):
(1)、获取外置控制装置200在其体坐标系下的第一角速度;(1) Obtain the first angular velocity of the external control device 200 in its body coordinate system;
步骤(1)中获取第一角速度的方式与上述实施例中获取第一角度的方式相同,此处不再赘述。The method of obtaining the first angular velocity in step (1) is the same as the method of obtaining the first angle in the foregoing embodiment, and will not be repeated here.
(2)、将外置控制装置200的体坐标系下的第一角速度转换成绝对坐标系下的第二角速度。(2) Convert the first angular velocity in the body coordinate system of the external control device 200 into the second angular velocity in the absolute coordinate system.
其中,通过外置控制装置200将第一角速度转换成第二角速度的实现过程与上述实施例一中通过云台100将第一角速度转换成第二角速度的实现过程相类似,本实施例不再赘述。Wherein, the realization process of converting the first angular velocity to the second angular velocity through the external control device 200 is similar to the realization process of converting the first angular velocity to the second angular velocity through the pan/tilt 100 in the first embodiment, and this embodiment will not Repeat.
S502:发送角速度至云台100,使得云台100根据角速度控制云台100的姿态。S502: Send the angular velocity to the pan-tilt 100, so that the pan-tilt 100 controls the attitude of the pan-tilt 100 according to the angular velocity.
外置控制装置200可以通过蓝牙或其他通信链路发送角速度至云台100。The external control device 200 can send the angular velocity to the pan/tilt head 100 via Bluetooth or other communication links.
并且,外置控制装置200发送至云台100的角速度可以为第一角速度,也可以为第二角速度。本实施例中,外置控制装置200发送至云台100的角速度为第二角速度,将第一角速度转换至第二角速度的过程放在外置控制装置200中,减少了云台100的运算,进一步优化了云台100的控制。In addition, the angular velocity sent by the external control device 200 to the pan-tilt 100 may be the first angular velocity or the second angular velocity. In this embodiment, the angular velocity sent by the external control device 200 to the pan/tilt 100 is the second angular velocity. The process of converting the first angular velocity to the second angular velocity is placed in the external control device 200, which reduces the calculation of the pan/tilt 100 and further Optimized the control of PTZ 100.
对应于本实施例的云台控制方法,本发明实施例还提供一种外置控制装置200,参见图6,该外置控制装置200包括角速度检测传感器210以及第二处理器220,其中,角速度检测传感器210与第二处理器220电耦合连接。该角速度检测传感器210可以为陀螺仪,也可以为其他角速度检测传感器。Corresponding to the pan/tilt control method of this embodiment, the embodiment of the present invention also provides an external control device 200. Referring to FIG. 6, the external control device 200 includes an angular velocity detection sensor 210 and a second processor 220, wherein the angular velocity The detection sensor 210 is electrically coupled to the second processor 220. The angular velocity detection sensor 210 may be a gyroscope or other angular velocity detection sensors.
第二处理器220用于:通过角速度检测传感器210获取外置控制装置200的角速度;发送角速度至云台100,使得云台100根据角速度控制云台100的姿态。The second processor 220 is configured to: obtain the angular velocity of the external control device 200 through the angular velocity detection sensor 210; and send the angular velocity to the pan-tilt 100 so that the pan-tilt 100 controls the attitude of the pan/tilt 100 according to the angular velocity.
第二处理器220可以实现如本发明图5所示实施例二的云台控制方法,可参见上述实施例二的云台控制方法对本实施例的外置控制装置200进行说明。The second processor 220 may implement the pan-tilt control method of the second embodiment shown in FIG. 5 of the present invention. The external control device 200 of this embodiment can be described with reference to the pan-tilt control method of the second embodiment above.
上述第二处理器220可以是中央处理器(central processing unit,CPU)。该第二处理器220还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The aforementioned second processor 220 may be a central processing unit (CPU). The second processor 220 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (field-programmable gate arrays). array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
此外,本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例的云台控制方法的步骤。In addition, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the pan-tilt control method of the above-mentioned embodiment are realized.
所述计算机可读存储介质可以是前述任一实施例所述的云台或外置控制装置的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是云台或外置控制装置的外部存储设备,例如所述设备上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、SD卡、闪存卡(Flash Card)等。进一步的,所述计算机可读存储介质还可以既包括云台或外置控制装置的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述云台或外置控制装置所需的其他程序和数据,还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be the internal storage unit of the pan/tilt or external control device described in any of the foregoing embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of a pan-tilt or an external control device, such as a plug-in hard disk, a smart media card (SMC), an SD card, and a flash memory card equipped on the device (Flash Card) etc. Further, the computer-readable storage medium may also include both an internal storage unit of a pan-tilt or an external control device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the pan/tilt or external control device, and can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above-disclosed are only some embodiments of the present invention, which of course cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (52)

  1. 一种云台控制方法,其特征在于,所述云台与外置控制装置通信连接,所述方法包括:A method for controlling a pan-tilt, characterized in that the pan-tilt is communicatively connected with an external control device, and the method includes:
    获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
    对所述角速度进行积分处理,确定所述云台的目标姿态;Performing integral processing on the angular velocity to determine the target attitude of the pan/tilt;
    根据所述目标姿态,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target posture;
    其中,所述积分处理的积分频率大于所述云台与所述外置控制装置之间的通信频率。Wherein, the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
  2. 根据权利要求1所述的方法,其特征在于,所述云台设有定时器,所述对所述角速度进行积分处理,确定所述云台的目标姿态,包括:The method according to claim 1, wherein the pan/tilt is equipped with a timer, and the integral processing of the angular velocity to determine the target posture of the pan/tilt comprises:
    通过所述定时器对所述角速度进行积分处理,确定所述云台的目标姿态。The angular velocity is integrated by the timer to determine the target posture of the pan/tilt.
  3. 根据权利要求2所述的方法,其特征在于,所述积分频率与所述定时器的工作频率大小相等。The method according to claim 2, wherein the integration frequency is equal to the working frequency of the timer.
  4. 根据权利要求2所述的方法,其特征在于,所述角速度的获取频率与所述通信频率大小相等;The method according to claim 2, wherein the acquisition frequency of the angular velocity is equal to the communication frequency;
    所述方法还包括:The method also includes:
    若获取到新的角速度,则将所述积分处理的当前角速度替换成所述新的角速度。If a new angular velocity is obtained, the current angular velocity of the integration process is replaced with the new angular velocity.
  5. 根据权利要求4所述的方法,其特征在于,所述云台包括计数器,所述计数器用于记录所述新的角速度的获取次数;The method according to claim 4, wherein the pan-tilt includes a counter, and the counter is used to record the number of acquisitions of the new angular velocity;
    所述方法还包括:The method also includes:
    在每次获取到所述新的角速度时,更新所述计数器的计数值。Each time the new angular velocity is acquired, the count value of the counter is updated.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    若所述计数值未更新的时长小于或等于预设时长阈值,则对最近一次获取的角速度进行所述积分处理,确定所述云台的实时目标姿态;If the time period during which the count value has not been updated is less than or equal to the preset time period threshold, performing the integration processing on the most recently acquired angular velocity to determine the real-time target attitude of the pan/tilt;
    根据所述实时目标姿态,控制所述云台转动。Control the rotation of the pan/tilt according to the real-time target posture.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    若所述计数值未更新的时长大于预设时长阈值,则停止所述云台的转动。If the time period during which the count value is not updated is greater than the preset time period threshold, the rotation of the pan/tilt is stopped.
  8. 根据权利要求1所述的方法,其特征在于,所述外置控制装置包括角速度检测传感器,所述角速度为所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度;The method according to claim 1, wherein the external control device comprises an angular velocity detection sensor, and the angular velocity is the first value of the external control device in its body coordinate system detected by the angular velocity detection sensor. Angular velocity
    所述对所述角速度进行积分处理,确定所述云台的目标姿态,包括:The performing integration processing on the angular velocity to determine the target posture of the pan/tilt includes:
    将所述第一角速度转换成绝对坐标系下的第二角速度;Converting the first angular velocity into a second angular velocity in an absolute coordinate system;
    对所述第二角速度进行积分处理,确定所述云台的目标姿态。Perform integration processing on the second angular velocity to determine the target posture of the pan/tilt.
  9. 根据权利要求8所述的方法,其特征在于,所述将所述第一角速度转换成绝对坐标系下的第二角速度,包括:The method according to claim 8, wherein the converting the first angular velocity into a second angular velocity in an absolute coordinate system comprises:
    获取所述外置控制装置的姿态信息;Acquiring posture information of the external control device;
    根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系;Determine the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion according to the posture information;
    根据所述转换关系和所述第一角速度,得到所述第二角速度。According to the conversion relationship and the first angular velocity, the second angular velocity is obtained.
  10. 根据权利要求9所述的方法,其特征在于,所述姿态信息包括姿态四元数,所述根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系,包括:The method according to claim 9, wherein the posture information includes a posture quaternion, and the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion is determined according to the posture information, include:
    将所述姿态四元数转换成欧拉角;Converting the attitude quaternion into Euler angles;
    根据所述欧拉角,确定所述转换关系。According to the Euler angle, the conversion relationship is determined.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述欧拉角,确定所述坐标转换关系,包括:The method according to claim 10, wherein the determining the coordinate conversion relationship according to the Euler angles comprises:
    将所述欧拉角中对应偏航方向的角度值设为0;Set the angle value corresponding to the yaw direction in the Euler angle to 0;
    根据所述欧拉角中对应横滚方向的角度值、对应俯仰方向的角度值以及对应偏航方向的角度值,确定所述转换关系。The conversion relationship is determined according to the angle value corresponding to the roll direction, the angle value corresponding to the pitch direction, and the angle value corresponding to the yaw direction in the Euler angles.
  12. 根据权利要求1所述的方法,其特征在于,所述角速度为所述外置控制装置在绝对坐标系下的第二角速度。The method according to claim 1, wherein the angular velocity is the second angular velocity of the external control device in an absolute coordinate system.
  13. 根据权利要求12所述的方法,其特征在于,所述外置控制装置包括角速度检测传感器,所述第二角速度为根据所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度确定。The method according to claim 12, wherein the external control device comprises an angular velocity detection sensor, and the second angular velocity is based on the detection of the angular velocity detection sensor by the external control device in its body coordinate system The first angular velocity is determined.
  14. 根据权利要求8或13所述的方法,其特征在于,所述角速度检测传感器为陀螺仪。The method according to claim 8 or 13, wherein the angular velocity detection sensor is a gyroscope.
  15. 根据权利要求1所述的方法,其特征在于,所述获取所述外置控制装置的角速度,包括:The method according to claim 1, wherein the obtaining the angular velocity of the external control device comprises:
    通过蓝牙接收所述外置控制装置发送的所述外置控制装置的角速度。The angular velocity of the external control device sent by the external control device is received via Bluetooth.
  16. 根据权利要求1所述的方法,其特征在于,所述外置控制装置为手机。The method according to claim 1, wherein the external control device is a mobile phone.
  17. 一种云台,其特征在于,所述云台与外置控制装置通信连接,所述云台包括:A pan-tilt, characterized in that the pan-tilt is in communication connection with an external control device, and the pan-tilt includes:
    存储装置,用于存储程序指令;Storage device for storing program instructions;
    一个或多个处理器,调用所述存储装置中存储的程序指令,当所述程序指令被执行时,所述一个或多个处理器单独地或共同地被配置成用于实施如下操作:One or more processors call program instructions stored in the storage device, and when the program instructions are executed, the one or more processors are individually or collectively configured to implement the following operations:
    获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
    对所述角速度进行积分处理,确定所述云台的目标姿态;Performing integral processing on the angular velocity to determine the target attitude of the pan/tilt;
    根据所述目标姿态,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target posture;
    其中,所述积分处理的积分频率大于所述云台与所述外置控制装置之间的通信频率。Wherein, the integration frequency of the integration processing is greater than the communication frequency between the pan-tilt and the external control device.
  18. 根据权利要求17所述的云台,其特征在于,所述云台设有定时器,所述一个或多个处理器在对所述角速度进行积分处理,确定所述云台的目标姿态时,单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 17, wherein the pan/tilt head is provided with a timer, and when the one or more processors perform integration processing on the angular velocity to determine the target attitude of the pan/tilt head, Separately or collectively are further configured to perform the following operations:
    通过所述定时器对所述角速度进行积分处理,确定所述云台的目标姿态。The angular velocity is integrated by the timer to determine the target posture of the pan/tilt.
  19. 根据权利要求18所述的云台,其特征在于,所述积分频率与所述定时器的工作频率大小相等。The pan/tilt head according to claim 18, wherein the integration frequency is equal to the working frequency of the timer.
  20. 根据权利要求18所述的云台,其特征在于,所述角速度的获取频率与所述通信频率大小相等;The pan/tilt platform according to claim 18, wherein the acquisition frequency of the angular velocity is equal to the communication frequency;
    所述一个或多个处理器单独地或共同地被进一步配置成用于实施如下操作:The one or more processors, individually or collectively, are further configured to perform the following operations:
    若获取到新的角速度,则将所述积分处理的当前角速度替换成所述新的角速度。If a new angular velocity is obtained, the current angular velocity of the integration process is replaced with the new angular velocity.
  21. 根据权利要求20所述的云台,其特征在于,所述云台包括计数器,所述计数器用于记录所述新的角速度的获取次数;The pan/tilt head according to claim 20, wherein the pan/tilt head comprises a counter, and the counter is used to record the number of acquisitions of the new angular velocity;
    所述一个或多个处理器单独地或共同地被进一步配置成用于实施如下操作:The one or more processors, individually or collectively, are further configured to perform the following operations:
    在每次获取到所述新的角速度时,更新所述计数器的计数值。Each time the new angular velocity is acquired, the count value of the counter is updated.
  22. 根据权利要求21所述的云台,其特征在于,所述一个或多个处理器单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 21, wherein the one or more processors are separately or collectively further configured to perform the following operations:
    若所述计数值未更新的时长小于或等于预设时长阈值,则对最近一次获取的角速度进行所述积分处理,确定所述云台的实时目标姿态;If the time period during which the count value has not been updated is less than or equal to the preset time period threshold, performing the integration processing on the most recently acquired angular velocity to determine the real-time target attitude of the pan/tilt;
    根据所述实时目标姿态,控制所述云台转动。Control the rotation of the pan/tilt according to the real-time target posture.
  23. 根据权利要求22所述的云台,其特征在于,所述一个或多个处理器单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 22, wherein the one or more processors are separately or collectively further configured to perform the following operations:
    若所述计数值未更新的时长大于预设时长阈值,则停止所述云台的转动。If the time period during which the count value is not updated is greater than the preset time period threshold, the rotation of the pan/tilt is stopped.
  24. 根据权利要求17所述的云台,其特征在于,所述外置控制装置包括角速度检测传感器,所述角速度为所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度;The pan/tilt head according to claim 17, wherein the external control device comprises an angular velocity detection sensor, and the angular velocity is the first position of the external control device in its body coordinate system detected by the angular velocity detection sensor. Angular velocity
    所述一个或多个处理器在对所述角速度进行积分处理,确定所述云台的目标姿态时,单独地或共同地被进一步配置成用于实施如下操作:When the one or more processors perform integration processing on the angular velocity to determine the target attitude of the pan/tilt head, they are further configured individually or collectively to implement the following operations:
    将所述第一角速度转换成绝对坐标系下的第二角速度;Converting the first angular velocity into a second angular velocity in an absolute coordinate system;
    对所述第二角速度进行积分处理,确定所述云台的目标姿态。Perform integration processing on the second angular velocity to determine the target posture of the pan/tilt.
  25. 根据权利要求24所述的云台,其特征在于,所述一个或多个处理器在将所述第一角速度转换成绝对坐标系下的第二角速度时,单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 24, wherein when the one or more processors convert the first angular velocity into the second angular velocity in an absolute coordinate system, they are further configured individually or collectively to Used to implement the following operations:
    获取所述外置控制装置的姿态信息;Acquiring posture information of the external control device;
    根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系;Determine the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion according to the posture information;
    根据所述转换关系和所述第一角速度,得到所述第二角速度。According to the conversion relationship and the first angular velocity, the second angular velocity is obtained.
  26. 根据权利要求25所述的云台,其特征在于,所述姿态信息包括姿态四元数,所述一个或多个处理器在根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系时,单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 25, wherein the posture information includes a posture quaternion, and the one or more processors are determining the body coordinate system and the absolute coordinate according to the posture information. When the system performs the conversion relationship of coordinate conversion, it is separately or collectively further configured to implement the following operations:
    将所述姿态四元数转换成欧拉角;Converting the attitude quaternion into Euler angles;
    根据所述欧拉角,确定所述转换关系。According to the Euler angle, the conversion relationship is determined.
  27. 根据权利要求26所述的云台,其特征在于,所述一个或多个处理器在根据所述欧拉角,确定所述坐标转换关系时,单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 26, wherein when the one or more processors determine the coordinate conversion relationship according to the Euler angle, they are separately or collectively further configured to implement Do as follows:
    将所述欧拉角中对应偏航方向的角度值设为0;Set the angle value corresponding to the yaw direction in the Euler angle to 0;
    根据所述欧拉角中对应横滚方向的角度值、对应俯仰方向的角度值以及对应偏航方向的角度值,确定所述转换关系。The conversion relationship is determined according to the angle value corresponding to the roll direction, the angle value corresponding to the pitch direction, and the angle value corresponding to the yaw direction in the Euler angles.
  28. 根据权利要求17所述的云台,其特征在于,所述角速度为所述外置控制装置在绝对坐标系下的第二角速度。The pan/tilt head of claim 17, wherein the angular velocity is the second angular velocity of the external control device in an absolute coordinate system.
  29. 根据权利要求28所述的云台,其特征在于,所述外置控制装置包括角速度检测传感器,所述第二角速度为根据所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度确定。The pan/tilt head according to claim 28, wherein the external control device comprises an angular velocity detection sensor, and the second angular velocity is measured by the external control device in its body coordinate system based on the angular velocity detection sensor. The first angular velocity is determined.
  30. 根据权利要求24或29所述的云台,其特征在于,所述角速度检测传感器为陀螺仪。The pan/tilt head according to claim 24 or 29, wherein the angular velocity detection sensor is a gyroscope.
  31. 根据权利要求17所述的云台,其特征在于,所述一个或多个处理器在获取所述外置控制装置的角速度时,单独地或共同地被进一步配置成用于实施如下操作:The pan/tilt head according to claim 17, wherein when the one or more processors acquire the angular velocity of the external control device, they are separately or collectively further configured to perform the following operations:
    通过蓝牙接收所述外置控制装置发送的所述外置控制装置的角速度。The angular velocity of the external control device sent by the external control device is received via Bluetooth.
  32. 根据权利要求17所述的云台,其特征在于,所述外置控制装置为手机。The pan-tilt according to claim 17, wherein the external control device is a mobile phone.
  33. 一种云台控制方法,其特征在于,所述方法应用于云台通信连接的外置控制装置,所述方法包括:A pan-tilt control method, characterized in that the method is applied to an external control device connected to the pan-tilt communication, and the method includes:
    获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device;
    发送所述角速度至所述云台,使得所述云台根据所述角速度控制所述云台的姿态。Send the angular velocity to the pan/tilt, so that the pan/tilt controls the attitude of the pan/tilt according to the angular velocity.
  34. 根据权利要求33所述的方法,其特征在于,所述外置控制装置包括角速度检测传感器,所述角速度为所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度。The method of claim 33, wherein the external control device comprises an angular velocity detection sensor, and the angular velocity is the first value of the external control device in its body coordinate system detected by the angular velocity detection sensor. Angular velocity.
  35. 根据权利要求33所述的方法,其特征在于,所述角速度为所述外置控制装置在绝对坐标系下的第二角速度。The method according to claim 33, wherein the angular velocity is the second angular velocity of the external control device in an absolute coordinate system.
  36. 根据权利要求35所述的方法,其特征在于,所述获取所述外置控制装置的角速度,包括:The method according to claim 35, wherein said obtaining the angular velocity of the external control device comprises:
    获取所述外置控制装置在其体坐标系下的第一角速度;Acquiring the first angular velocity of the external control device in its body coordinate system;
    将所述外置控制装置的体坐标系下的第一角速度转换成所述绝对坐标系下的第二角速度。The first angular velocity in the body coordinate system of the external control device is converted into the second angular velocity in the absolute coordinate system.
  37. 根据权利要求36所述的方法,其特征在于,所述将所述外置控制装置的体坐标系下的第一角速度转换成绝对坐标系下的第二角速度,包括:The method according to claim 36, wherein the converting the first angular velocity in the body coordinate system of the external control device into the second angular velocity in the absolute coordinate system comprises:
    获取所述外置控制装置的姿态信息;Acquiring posture information of the external control device;
    根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系;Determine the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion according to the posture information;
    根据所述转换关系和所述第一角速度,得到所述第二角速度。According to the conversion relationship and the first angular velocity, the second angular velocity is obtained.
  38. 根据权利要求37所述的方法,其特征在于,所述姿态信息包括姿态四元数,所述根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系,包括:The method according to claim 37, wherein the posture information comprises a posture quaternion, and the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion is determined according to the posture information, include:
    将所述姿态四元数转换成欧拉角;Converting the attitude quaternion into Euler angles;
    根据所述欧拉角,确定所述转换关系。According to the Euler angle, the conversion relationship is determined.
  39. 根据权利要求38所述的方法,其特征在于,所述根据所述欧拉角,确定所述转换关系,包括:The method of claim 38, wherein the determining the conversion relationship according to the Euler angle comprises:
    将所述欧拉角中对应偏航方向的角度值设为0;Set the angle value corresponding to the yaw direction in the Euler angle to 0;
    根据所述欧拉角中对应横滚方向的角度值、对应俯仰方向的角度值以及对应偏航方向的角度值,确定所述转换关系。The conversion relationship is determined according to the angle value corresponding to the roll direction, the angle value corresponding to the pitch direction, and the angle value corresponding to the yaw direction in the Euler angles.
  40. 根据权利要求33所述的方法,其特征在于,所述发送所述角速度至所述云台,包括:The method according to claim 33, wherein the sending the angular velocity to the pan/tilt head comprises:
    通过蓝牙发送所述角速度至所述云台。Send the angular velocity to the pan/tilt via Bluetooth.
  41. 根据权利要求33所述的方法,其特征在于,所述外置控制装置为手机。The method according to claim 33, wherein the external control device is a mobile phone.
  42. 根据权利要求33所述的方法,其特征在于,所述角速度检测传感器为陀螺仪。The method according to claim 33, wherein the angular velocity detection sensor is a gyroscope.
  43. 一种外置控制装置,与云台无线通信连接,其特征在于,所述外置控制装置包括:An external control device is connected to the pan/tilt in wireless communication, characterized in that the external control device includes:
    角速度检测传感器;以及Angular velocity detection sensor; and
    处理器,与所述角速度检测传感器电耦合连接,所述处理器被配置成用于实施如下操作:A processor electrically coupled to the angular velocity detection sensor, and the processor is configured to implement the following operations:
    通过所述角速度检测传感器获取所述外置控制装置的角速度;Acquiring the angular velocity of the external control device through the angular velocity detection sensor;
    发送所述角速度至所述云台,使得所述云台根据所述角速度控制所述云台的姿态。Send the angular velocity to the pan/tilt, so that the pan/tilt controls the attitude of the pan/tilt according to the angular velocity.
  44. 根据权利要求43所述的外置控制装置,其特征在于,所述外置控制装置包括角速度检测传感器,所述角速度为所述角速度检测传感器检测的所述外置控制装置在其体坐标系下的第一角速度。The external control device according to claim 43, wherein the external control device comprises an angular velocity detection sensor, and the angular velocity is detected by the angular velocity detection sensor in its body coordinate system. The first angular velocity.
  45. 根据权利要求43所述的外置控制装置,其特征在于,所述角速度为所述外置控制装置在绝对坐标系下的第二角速度。The external control device of claim 43, wherein the angular velocity is a second angular velocity of the external control device in an absolute coordinate system.
  46. 根据权利要求45所述的外置控制装置,其特征在于,所述处理器在获取所述外置控制装置的角速度时,被进一步配置成用于实施如下操作:The external control device according to claim 45, wherein the processor is further configured to perform the following operations when acquiring the angular velocity of the external control device:
    获取所述外置控制装置在其体坐标系下的第一角速度;Acquiring the first angular velocity of the external control device in its body coordinate system;
    将所述外置控制装置的体坐标系下的第一角速度转换成所述绝对坐标系下的第二角速度。The first angular velocity in the body coordinate system of the external control device is converted into the second angular velocity in the absolute coordinate system.
  47. 根据权利要求46所述的外置控制装置,其特征在于,所述处理器在将所述外 置控制装置的体坐标系下的第一角速度转换成绝对坐标系下的第二角速度时,被进一步配置成用于实施如下操作:The external control device according to claim 46, wherein when the processor converts the first angular velocity in the body coordinate system of the external control device into the second angular velocity in the absolute coordinate system, it is It is further configured to implement the following operations:
    获取所述外置控制装置的姿态信息;Acquiring posture information of the external control device;
    根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系;Determine the conversion relationship between the body coordinate system and the absolute coordinate system for coordinate conversion according to the posture information;
    根据所述转换关系和所述第一角速度,得到所述第二角速度。According to the conversion relationship and the first angular velocity, the second angular velocity is obtained.
  48. 根据权利要求47所述的外置控制装置,其特征在于,所述姿态信息包括姿态四元数,所述处理器在根据所述姿态信息,确定所述体坐标系与所述绝对坐标系进行坐标转换的转换关系时,被进一步配置成用于实施如下操作:The external control device according to claim 47, wherein the posture information includes a posture quaternion, and the processor determines the body coordinate system and the absolute coordinate system according to the posture information. When the transformation relationship of the coordinate transformation, it is further configured to implement the following operations:
    将所述姿态四元数转换成欧拉角;Converting the attitude quaternion into Euler angles;
    根据所述欧拉角,确定所述转换关系。According to the Euler angle, the conversion relationship is determined.
  49. 根据权利要求48所述的外置控制装置,其特征在于,所述处理器在根据所述欧拉角,确定所述转换关系时,被进一步配置成用于实施如下操作:The external control device according to claim 48, wherein the processor is further configured to perform the following operations when determining the conversion relationship according to the Euler angle:
    将所述欧拉角中对应偏航方向的角度值设为0;Set the angle value corresponding to the yaw direction in the Euler angle to 0;
    根据所述欧拉角中对应横滚方向的角度值、对应俯仰方向的角度值以及对应偏航方向的角度值,确定所述转换关系。The conversion relationship is determined according to the angle value corresponding to the roll direction, the angle value corresponding to the pitch direction, and the angle value corresponding to the yaw direction in the Euler angles.
  50. 根据权利要求43所述的外置控制装置,其特征在于,所述处理器在发送所述角速度至所述云台时,被进一步配置成用于实施如下操作:The external control device according to claim 43, wherein the processor is further configured to perform the following operations when sending the angular velocity to the pan/tilt head:
    通过蓝牙发送所述角速度至所述云台。Send the angular velocity to the pan/tilt via Bluetooth.
  51. 根据权利要求43所述的外置控制装置,其特征在于,所述外置控制装置为手机。The external control device of claim 43, wherein the external control device is a mobile phone.
  52. 根据权利要求43所述的外置控制装置,其特征在于,所述角速度检测传感器为陀螺仪。The external control device of claim 43, wherein the angular velocity detection sensor is a gyroscope.
PCT/CN2019/095763 2019-07-12 2019-07-12 Gimbal and control method and external control apparatus therefor WO2021007697A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980032146.5A CN112166396A (en) 2019-07-12 2019-07-12 Cloud deck and control method and external control device thereof
PCT/CN2019/095763 WO2021007697A1 (en) 2019-07-12 2019-07-12 Gimbal and control method and external control apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/095763 WO2021007697A1 (en) 2019-07-12 2019-07-12 Gimbal and control method and external control apparatus therefor

Publications (1)

Publication Number Publication Date
WO2021007697A1 true WO2021007697A1 (en) 2021-01-21

Family

ID=73859690

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095763 WO2021007697A1 (en) 2019-07-12 2019-07-12 Gimbal and control method and external control apparatus therefor

Country Status (2)

Country Link
CN (1) CN112166396A (en)
WO (1) WO2021007697A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1138461A (en) * 1997-07-18 1999-02-12 Canon Inc Supported state discrimination device and image blurring correction device
US8005635B2 (en) * 2007-08-14 2011-08-23 Ching-Fang Lin Self-calibrated azimuth and attitude accuracy enhancing method and system (SAAAEMS)
CN102355574A (en) * 2011-10-17 2012-02-15 上海大学 Image stabilizing method of airborne tripod head moving target autonomous tracking system
CN108885493A (en) * 2017-12-22 2018-11-23 深圳市大疆创新科技有限公司 Method, holder, motion sensing control device and the system of motion sensing control device control holder
CN109000612A (en) * 2018-06-19 2018-12-14 深圳市道通智能航空技术有限公司 Angle evaluation method, device, camera assembly and the aircraft of equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069012A (en) * 2018-01-23 2019-07-30 北京京东尚科信息技术有限公司 Control amount for inhibiting noise determines method and apparatus, attitude control system
WO2021232273A1 (en) * 2020-05-20 2021-11-25 深圳市大疆创新科技有限公司 Unmanned aerial vehicle and control method and apparatus therefor, remote control terminal, and unmanned aerial vehicle system
CN113282005A (en) * 2021-05-26 2021-08-20 惠州中国科学院遥感与数字地球研究所空间信息技术研究院 Brushless holder regulation and control method and device, computer equipment and storage medium
CN113791640A (en) * 2021-09-10 2021-12-14 深圳市道通智能航空技术股份有限公司 Image acquisition method and device, aircraft and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1138461A (en) * 1997-07-18 1999-02-12 Canon Inc Supported state discrimination device and image blurring correction device
US8005635B2 (en) * 2007-08-14 2011-08-23 Ching-Fang Lin Self-calibrated azimuth and attitude accuracy enhancing method and system (SAAAEMS)
CN102355574A (en) * 2011-10-17 2012-02-15 上海大学 Image stabilizing method of airborne tripod head moving target autonomous tracking system
CN108885493A (en) * 2017-12-22 2018-11-23 深圳市大疆创新科技有限公司 Method, holder, motion sensing control device and the system of motion sensing control device control holder
CN109000612A (en) * 2018-06-19 2018-12-14 深圳市道通智能航空技术有限公司 Angle evaluation method, device, camera assembly and the aircraft of equipment

Also Published As

Publication number Publication date
CN112166396A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
JP6410923B2 (en) Tracking control device, tracking control method, tracking control program, and automatic tracking imaging system
JP6211536B2 (en) Apparatus and method for controlling rotation of display image
US20150341536A1 (en) Systems and methods for orienting an image
WO2020215215A1 (en) Gimbal control method and device, gimbal, system and storage medium
WO2017020150A1 (en) Image processing method, device and camera
US20210180743A1 (en) Gimbal control method, gimbal control device, gimbal system, and unmanned aerial vehicle
US10866492B2 (en) Method and system for controlling tracking photographing of stabilizer
WO2019126932A1 (en) Cradle head control method and control device
WO2016000194A1 (en) Photographing control method, device and pan-tilt device
KR20060093242A (en) Observation system capable of masking privacy zone and method to setting masking zone
JP2018206365A (en) Method for processing image, device, and electronic device
WO2015103835A1 (en) Method and device for controlling azimuth of pan/tilt camera device
WO2018191969A1 (en) Camera mount control method and device
WO2020041969A1 (en) Method for marking target position of gimbal, gimbal, and camera device
WO2020237493A1 (en) Zero calibration method for gimbal and gimbal
US20210243357A1 (en) Photographing control method, mobile platform, control device, and storage medium
WO2018209592A1 (en) Movement control method for robot, robot and controller
WO2020062281A1 (en) Cradle head control method, cradle head, movable platform and readable storage medium
KR101989087B1 (en) Distortion correction method and distortion correction system for projection display using personal digital imaging device
WO2021134644A1 (en) Gimbal control method and gimbal
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
WO2019148348A1 (en) Tripod head control method and apparatus
WO2019227410A1 (en) Attitude conversion method, attitude display method, and pan-tilt system
WO2021232273A1 (en) Unmanned aerial vehicle and control method and apparatus therefor, remote control terminal, and unmanned aerial vehicle system
WO2021007697A1 (en) Gimbal and control method and external control apparatus therefor

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

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

Country of ref document: EP

Kind code of ref document: A1