WO2022040883A1 - Gimbal control method, gimbal control device, gimbal, and storage medium - Google Patents

Gimbal control method, gimbal control device, gimbal, and storage medium Download PDF

Info

Publication number
WO2022040883A1
WO2022040883A1 PCT/CN2020/110901 CN2020110901W WO2022040883A1 WO 2022040883 A1 WO2022040883 A1 WO 2022040883A1 CN 2020110901 W CN2020110901 W CN 2020110901W WO 2022040883 A1 WO2022040883 A1 WO 2022040883A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor assembly
attitude
angle
attitude data
pan
Prior art date
Application number
PCT/CN2020/110901
Other languages
French (fr)
Chinese (zh)
Inventor
王文杰
谢文麟
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/110901 priority Critical patent/WO2022040883A1/en
Publication of WO2022040883A1 publication Critical patent/WO2022040883A1/en

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/04Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand
    • F16M11/06Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting
    • F16M11/12Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand allowing pivoting in more than one direction
    • 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
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P5/00Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P5/00Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors
    • H02P5/46Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors for speed regulation of two or more dynamo-electric motors in relation to one another

Definitions

  • the present application relates to the technical field of PTZ control, and in particular, to a PTZ control method, a PTZ control device, a PTZ and a storage medium.
  • the present application provides a pan-tilt control method, a pan-tilt control device, a pan-tilt and a storage medium, which can detect the posture of the pan-tilt and control the pan-tilt according to the detected posture.
  • an embodiment of the present application provides a pan-tilt control method, the pan-tilt includes at least one motor component, the motor component is connected to a first axle arm and a second axle arm, and the first axle arm is provided with There is a first attitude sensor, and a second attitude sensor is arranged on the second shaft arm;
  • the PTZ control method includes:
  • the motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  • an embodiment of the present application provides a pan-tilt control device, the pan-tilt control device can be communicatively connected to the pan-tilt, and the pan-tilt includes at least one motor assembly connected to the first shaft arm and the pan-tilt.
  • a second axle arm the first axle arm is provided with a first attitude sensor, and the second axle arm is provided with a second attitude sensor;
  • the pan-tilt control device includes one or more processors, working individually or collectively, for performing the following steps:
  • the motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  • an embodiment of the present application provides a pan/tilt head, the pan/tilt head includes at least one motor assembly, the motor assembly is connected to a first shaft arm and a second shaft arm, and a first shaft arm is provided on the first shaft arm an attitude sensor, the second axle arm is provided with a second attitude sensor;
  • the pan/tilt also includes one or more processors, working individually or collectively, for performing the following steps:
  • the motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the foregoing method.
  • the embodiments of the present application provide a pan-tilt control method, a pan-tilt control device, a pan-tilt, and a storage medium.
  • FIG. 1 is a schematic flowchart of a pan-tilt control method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a load device mounted on a PTZ in an embodiment
  • FIG. 3 is a schematic structural diagram of a load device mounted on a pan/tilt in another embodiment
  • FIG. 5 is a schematic diagram of determining the joint angle of the motor assembly according to the attitude data
  • FIG. 6 is a schematic block diagram of a pan-tilt control device provided by an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a pan-tilt control method provided by an embodiment of the present application.
  • the PTZ control method can detect the attitude of the PTZ, and control the PTZ according to the detected attitude.
  • the pan/tilt 10 can mount the load device 20 , and the pan/tilt 10 is used to stabilize the load device 20 and can change the orientation and angle of the load device 20 .
  • the load device 20 may include a camera, which can capture video and/or images.
  • the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer) with a shooting function. Wait).
  • the load device 20 may also include sensors, microphones, speakers, transmitting devices, and the like.
  • connection part 11 of the pan/tilt head 10 may be connected to the load device 20 .
  • the load device 20 can also be fixedly connected to the PTZ 10, which is not limited here.
  • the gimbal 10 may be a handheld gimbal.
  • the gimbal 10 may include a hand-held portion 12 , and the user may hold the hand-held portion 12 to drive the gimbal 10 to move or hold the gimbal 10 . in a certain location.
  • the head 10 may have a base that can be placed or fixedly attached to a target object.
  • the target object may be a desktop, an unmanned aerial vehicle, an unmanned vehicle, a camera mount, and the like.
  • the embodiments of the present application only take the handheld gimbal as an example.
  • the gimbal 10 can also be mounted on a carrier such as an unmanned aerial vehicle or an unmanned vehicle.
  • the base of the gimbal 10 The seat may be the body of an unmanned aerial vehicle, an unmanned vehicle, or the like, and the embodiment of the present application does not limit the specific form of the gimbal 10 .
  • pan-tilt control method can be applied to the pan-tilt 10 or the load device 20 , and of course it can also be implemented by the pan-tilt 10 and the load device 20 jointly.
  • the pan-tilt 10 can be connected in communication with the pan-tilt control device 30 .
  • the communication connection can be realized by electrical connection or wireless communication.
  • the pan-tilt control method may be applied in the pan-tilt control apparatus 30, or implemented by the pan-tilt 10 and the pan-tilt control apparatus 30 jointly.
  • load device 20 can also be used as the PTZ control device 30 to communicate with the PTZ 10 to implement the PTZ control method.
  • the pan/tilt head 10 includes at least one motor assembly 13 , and the motor assembly 13 may include a motor, and may also include an electronic speed controller.
  • the PTZ 10 has three PTZ axes, namely the yaw axis, the roll axis, and the pitch axis, each axis is provided with a motor assembly 13, and the motor assembly 13 on each axis is used to control the axis. Perform actions to make the gimbal 10 reach the preset posture.
  • the gimbal 10 may also be a single-axis gimbal, a dual-axis gimbal, or a four-axis gimbal or the like.
  • the motor assembly 13 is connected to the shaft arm of the gimbal 10 .
  • the pivot arm may include the pivot arm between the two motor assemblies 13 , the base of the pan/tilt 10 , the hand-held portion 12 of the pan/tilt 10 , and the connection portion 11 of the pan/tilt 10 .
  • the motor assembly 13 is used to drive the shaft arm to rotate around the axis 101 of the motor assembly 13 , so that the gimbal 10 reaches a preset posture, so that the posture, such as the orientation and angle, of the load device 20 carried on the gimbal 10 can be adjusted.
  • the motor assembly 13 of the gimbal 10 can be connected between two shaft arms.
  • the shaft arm on one side of the motor assembly 13 can be called the first shaft arm 14
  • the shaft arm on the other side is the second shaft arm 14 Axle arm 15.
  • the motor assembly 13 is connected to the first axle arm 14 and the second axle arm 15 .
  • the first axis arm 14 includes the hand-held portion 12 of the pan/tilt head 10
  • the second axis arm 15 includes the axis arm between the two motor assemblies 13 , but of course it is not limited to this, for example, the first axis
  • the arm may include a pivot arm between two motor assemblies 13
  • the second pivot arm may include the hand-held portion 12 of the pan/tilt head 10 or a pivot arm connecting the hand-held portion 12 and one of the motor assemblies 13 .
  • the first axis arm 14 and the second axis arm 15 may be vertical or not.
  • the plane perpendicular to the axis of one motor assembly 13 is in a non-orthogonal relationship with the plane perpendicular to the other motor assembly 13 , which can expand the adjustment range of the center of gravity of the load device 20 and reduce the load of the motor assembly 13 .
  • a first posture sensor is provided on the first axle arm, and a second posture sensor is provided on the second axle arm.
  • the attitude sensor may be disposed in the middle of the shaft arm or at the end of the shaft arm, but of course it is not limited thereto.
  • the pan-tilt control method includes steps S110 to S140.
  • the first attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor.
  • the first attitude sensor may be an independent accelerometer, or may be an inertial measurement unit integrating a gyroscope and an accelerometer.
  • the gesture data representing the motion gesture of the first axis arm is referred to as the first gesture data.
  • the first attitude data includes acceleration and/or geomagnetic vector.
  • the second attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor.
  • the second attitude sensor may be an independent accelerometer, or may be an inertial measurement unit integrating a gyroscope and an accelerometer.
  • the gesture data representing the motion gesture of the second axis arm is referred to as the second gesture data.
  • the second attitude data includes acceleration and/or geomagnetic vector.
  • first attitude data and the second attitude data are consistent.
  • first attitude data represents the acceleration of the first axis arm
  • second attitude data represents the acceleration of the second axis arm; for example, if the first attitude data represents the geomagnetic vector of the first axle arm, then the second attitude data represents the geomagnetic vector of the second axle arm.
  • the acquisition of the attitude data of the attitude sensors on the two axle arms is used as an example for description.
  • the attitude data of the two axle arms the corresponding motor components between the two axle arms can be determined. angle information.
  • the pan/tilt head includes a plurality of motor assemblies, each motor assembly is connected between two shaft arms, each shaft arm is provided with an attitude sensor, and the attitude data of the attitude sensor on each shaft arm can be obtained. It can be understood that the angle information corresponding to the motor assembly between the two adjacent shaft arms can be determined according to the attitude data of any two adjacent shaft arms.
  • the multiple (N+1) pivot arms of the gimbal can be numbered as i, i can be 0, 1, ..., N, wherein the pivot arm numbered 0 can be the base of the gimbal Or in the hand-held part of the gimbal, N may be equal to the number of axes of the gimbal, for example, the axis arms of the three-axis gimbal are numbered 0-3 respectively.
  • the axis arm (axle arm i-1) numbered i-1 may be called the first axis arm
  • the axis arm (axle arm i) numbered i may be called the second axis arm
  • the axis arm i The motor assembly between -1 and shaft arm i may be referred to as motor assembly i. It can be understood that the first axis arm and the second axis arm do not specifically refer to a certain axis arm on the gimbal, and the first axis arm and the second axis arm may be any two adjacent axis arms of the gimbal.
  • the determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data includes: determining, according to the first attitude data, that the first shaft arm is perpendicular to the first attitude change direction of the axis; the second attitude change direction of the second shaft arm perpendicular to the axis is determined according to the second attitude data; according to the first attitude change direction and the second attitude The included angle between the changing directions determines the angle information.
  • the first attitude data of the first pivot arm 14 at a certain moment may be represented as ACC_1, and the second attitude data of the second pivot arm 15 at the same moment may be represented as ACC_2.
  • the first attitude change direction ACC_1' of the first axle arm 14 perpendicular to the axis 101 can be determined, and the second attitude data ACC_2 at the same moment can be determined.
  • the two-axis arm 15 is perpendicular to the second attitude change direction ACC_2 ′ of the axis 101 .
  • the attitude data of the attitude sensor is a vector, for example, it may include acceleration and/or geomagnetic vector.
  • the attitude data is related to the current position of the pivot arm.
  • the attitude data may include information about the movement trend of the pivot arm at the current position. Since the motor assembly is used to drive the shaft arm to rotate around the axis, the attitude change direction perpendicular to the axis determined according to the attitude data can represent the steering of the shaft arm at the current moment, which is related to the current position of the shaft arm.
  • the angle information corresponding to the motor assembly may include the joint angle of the motor assembly, and the joint angle may also be referred to as the mechanical angle of the motor assembly.
  • one of the first shaft arm and the second shaft arm is connected to the stator of the motor assembly, and the other is connected to the rotor of the motor assembly.
  • the joint angle of the middle motor assembly can be determined according to the relative positions of the two shaft arms.
  • the angle information corresponding to the motor assembly may further include a change trend of the joint angle of the motor assembly, steering, and the like.
  • the joint angle ⁇ _i of the motor assembly may be determined according to the included angle between the first attitude change direction ACC_1' and the second attitude change direction ACC_2'.
  • the gimbal when the gimbal is in use, in addition to the rotation of the motor assembly, which can change the attitude of the shaft arm, the gimbal will also affect the attitude data when driven by the user or unmanned aerial vehicle, unmanned vehicle, etc., but Since the influence of the attitude data on each axis arm in the gimbal is the same, the angle information can still be determined according to the angle between the first attitude change direction and the second attitude change direction
  • the first attitude change direction may be determined according to a first projection vector of the first attitude data on the rotation plane
  • the second attitude change direction may be determined according to the second attitude data on the rotation plane.
  • the second projection vector on is determined.
  • the rotation plane is perpendicular to the axis of the motor assembly.
  • the determining the angle information according to the angle between the first posture change direction and the second posture change direction includes: according to the difference between the first projection vector and the second projection vector; The angle between them determines the angle information corresponding to the motor assembly.
  • the projection vector of the attitude data on the rotation plane is perpendicular to the axis, which can be used as the attitude change direction, and the projection vector of the attitude data on the rotation plane can represent the current moment of the shaft arm. Steering, which is related to the current position of the axle arm.
  • the determining, according to the first attitude data, a first attitude change direction of the first shaft arm perpendicular to the axis includes: determining a first attitude direction of the first attitude data that is parallel to the axis. component; determining a first projection vector according to the difference between the first pose data and the first component.
  • A_i can be used to represent the direction of the axis of the motor assembly i.
  • A_i can be set as a unit vector whose modulo length is 1.
  • the first component parallel to the axis may be determined according to an inner product of a unit vector parallel to the axis and the first attitude data. Then, the difference between the first pose data and the first component can be used as the first projection vector.
  • determining a second posture change direction of the second shaft arm perpendicular to the axis according to the second posture data includes: determining a second posture of the second posture data that is parallel to the axis component; a second projection vector is determined according to the difference between the second pose data and the second component.
  • the second component parallel to the axis is determined according to the inner product of the unit vector and the second attitude data.
  • the joint angle ⁇ _i of the motor assembly may be determined according to the included angle between the first projection vector ACC_1' and the second projection vector ACC_2'.
  • the steering of the motor assembly may also be determined according to the outer product of the first projection vector ACC_1' and the second projection vector ACC_2' and the unit vector.
  • the joint angle zero position (mechanical zero position) of the motor assembly can be determined, that is, the absolute position of the motor assembly i when ⁇ _i is 0. Therefore, the angle information of the motor assembly may also include the zero position of the joint angle of the motor assembly.
  • the operation of the motor assembly can be controlled, the joint angle model of the gimbal can be controlled, the Jacobian matrix can be calculated, and the attitude mode of the gimbal can be controlled.
  • the working principle of the gimbal is to detect the actual posture of the load device and compare it with the target posture to obtain the control deviation, so as to perform negative feedback control, output the torque to the motor, and finally reduce the control deviation and ensure the load device.
  • the deviation between the actual attitude and the target attitude is as small as possible.
  • controlling the motor assembly according to the angle information includes: controlling the motor assembly according to the angle information, so as to stabilize the attitude of the load device mounted on the gimbal, or to make the The attitude of the payload device mounted on the gimbal moves along a preset trajectory.
  • the target controlled by the gimbal is the attitude orientation of the load device in space or running according to a certain trajectory, and by calculating the attitude error, the expected angular velocity of the load device can be obtained, and then mapped to the Jacobian matrix.
  • the joint angle space is controlled.
  • controlling the motor assembly according to the angle information includes: controlling the motor assembly according to the joint angle corresponding to the motor assembly, so that the joint angle of the motor assembly reaches a preset angle, or The joint angle of the motor assembly is adjusted according to a preset trajectory.
  • the goal of the gimbal control is that the joint angle of each axis motor is at a certain position, or runs according to a certain trajectory, and is directly controlled in the joint angle space.
  • the pan/tilt head includes at least two shaft arms and a motor assembly connected to the shaft arms, and attitude sensors are provided on the shaft arms on both sides of at least one of the motor assemblies.
  • the attitude data of the shaft arms on both sides of each motor assembly can be obtained through the attitude sensor, and the angle information corresponding to each of the motor assemblies can be determined according to the attitude data of the shaft arms on both sides, so that the angle information can be determined according to the angle
  • the information controls each of the motor assemblies, and the motor assemblies are used to drive the shaft arm to rotate about the axis of the motor assembly.
  • the current posture of the whole pan/tilt and/or the current posture of the load device carried on the pan/tilt can be determined according to the angle information of all the motor components on the pan/tilt, according to the current posture of the pan/tilt and/or the load device, and the current posture of the pan/tilt.
  • the target attitude of the load device the attitude error of the head and/or the load device can be determined, the expected angular velocity of the load device can be determined according to the attitude error, and then the target joint angle and/or target rotation speed of each of the motor components can be determined , each motor assembly is controlled according to the target joint angle and/or target rotational speed.
  • the attitude mode of the gimbal can be controlled according to the Jacobian matrix.
  • the first attitude data ACC_1 is a vector in a first coordinate system, and the first coordinate system is the coordinate system of the first attitude sensor; the second attitude The data ACC_2 is a vector in the second coordinate system, and the second coordinate system is the coordinate system of the second attitude sensor.
  • the directions of the coordinate axes of the first coordinate system are the same as the directions of the coordinate axes of the second coordinate system. Specifically, it can be achieved by making the orientation of the attitude sensors on each axle arm the same when the attitude sensors are installed on the axle arms.
  • the direction of each coordinate axis of the first coordinate system is the same as the direction of each coordinate axis of the second coordinate system.
  • the angle between the change direction and the second posture change direction determines the joint angle, for example, the joint angle and the steering of the motor assembly are directly determined according to the angle between the first projection vector and the second projection vector.
  • the pan-tilt control method before determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, the pan-tilt control method further includes: adjusting the first attitude Coordinate transformation processing is performed on the data and/or the second attitude data, so as to transform the first attitude data and the second attitude data into the same coordinate system.
  • the corresponding attitude change direction is determined according to each attitude data in the same coordinate system, and the angle information of the intermediate motor assembly is determined according to the angle between the attitude change directions of the adjacent two-axis arms.
  • the projection vector of each attitude data in the same coordinate system on the rotation plane is determined, and the angle information of the intermediate motor assembly is determined according to the angle between the projection vectors of the adjacent two axis arms.
  • the performing coordinate transformation processing on the first attitude data and/or the second attitude data includes: converting the first attitude data into a vector in the second coordinate system.
  • the amount of calculation can be saved.
  • the second attitude data can also be converted into a vector in the first coordinate system, which can also save the amount of calculation.
  • the pan/tilt head 10 includes a connecting portion 11 capable of connecting to a load device 20 , and the second shaft arm 15 is closer to the load device than the first shaft arm 14 .
  • the angle information of each motor assembly 13 in the gimbal 10 can be obtained relatively quickly.
  • the first shaft arm is connected to the stator of the motor assembly
  • the second shaft arm is connected to the rotor of the motor assembly.
  • the converting the first attitude data into a vector in the second coordinate system includes: converting the first attitude data into the first attitude data according to preset coordinate system transformation parameters A vector in a two-coordinate system.
  • the coordinate system transformation parameter is determined according to the representation of the first coordinate system in the second coordinate system when the joint angle corresponding to the motor assembly is zero.
  • the coordinate system transformation parameter may include a rotation matrix of the corresponding pan/tilt axis when the motor assembly is at a joint angle of zero.
  • the angle information corresponding to the motor assembly is determined according to the attitude data of the shaft arms on both sides of the motor assembly, so that the angle information of the pan-tilt motor can be determined without the method of "hitting the limit". It can reduce the possibility of collision of load equipment and improve user experience. Furthermore, it is not necessary to install the angle measuring device on the motor assembly, and the motor assembly does not need additional structural parts for supporting the angle measuring device, the volume of the motor can be further reduced, the number of rotating parts is reduced, and the reliability is increased. In addition, the circuit wiring can be simplified, the assembly is simple, and the man-hour cost during installation can be saved.
  • the motor assembly may also include an angle measurement device.
  • the angle measurement device and the attitude sensor can be used in combination to determine the angle information of the motor assembly, which can improve the accuracy of the angle information.
  • the angle measuring device may include at least one of the following: a Hall sensor, an encoder, and the like.
  • the pan-tilt control method further includes: determining, by the angle measuring device, an electrical angle corresponding to the motor assembly.
  • the electrical angle is not in a one-to-one correspondence with the joint angle, so the joint angle cannot be determined only based on the electrical angle.
  • the joint angle zero position and/or joint angle of the motor assembly can be determined according to the attitude data of the shaft arms on both sides of the motor assembly, and the motor assembly can be accurately determined according to the joint angle zero position and/or joint angle and the electrical angle of the motor assembly and the angle information of the gimbal motor can be determined without using the "hit limit" method.
  • controlling the motor assembly according to the angle information includes: controlling the motor assembly according to a joint angle corresponding to the motor assembly and the electrical angle.
  • a possible joint angle of the motor assembly may be determined according to the electrical angle of the motor assembly.
  • the possible joint angle is referred to as a candidate joint angle.
  • the electrical cycle of the motor assembly will change 4 times in one mechanical cycle, that is to say, the electrical angle of the motor assembly measured by the angle measuring device such as the Hall sensor corresponds to 4 candidate joint angles.
  • the candidate joint angle of the motor assembly may be determined according to the relationship between the electrical angle and the electrical angle of the motor assembly, the joint angle, and the number of pole pairs.
  • the controlling the motor assembly according to the joint angle corresponding to the motor assembly and the electrical angle includes: determining a candidate joint angle of the motor assembly according to the electrical angle; The real joint angle of the motor assembly is determined from the candidate joint angles; the motor assembly is controlled according to the real joint angle.
  • the determining the real joint angle of the motor assembly among the candidate joint angles according to the joint angle includes: determining a candidate joint angle closest to the joint angle as the real joint angle.
  • the joint angle determined according to the attitude data of the shaft arm may deviate due to factors such as errors.
  • angle information such as the joint angle of the motor assembly can be more accurately determined.
  • FIG. 6 is a schematic block diagram of a pan-tilt control apparatus 600 provided by an embodiment of the present application.
  • the pan-tilt control device 600 includes a processor 601 and a memory 602 .
  • the processor 601 and the memory 602 are connected through a bus 603, and the bus 603 is, for example, an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 601 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 602 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 602 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • the processor 601 is configured to run a computer program stored in the memory 602, and implement the aforementioned PTZ control method when executing the computer program.
  • the pan-tilt control device can be connected to the pan-tilt in communication, and it can be understood that the communication connection can be realized by electrical connection or wireless communication.
  • the PTZ control method can be applied in the PTZ control device, or implemented by the PTZ and the PTZ control device jointly.
  • the load device of the PTZ can also be used as a PTZ control device to communicate and connect with the PTZ to implement the PTZ control method.
  • the payload device may include a camera capable of shooting video and/or images, specifically, the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer, etc.) with a shooting function. It can be understood that the load device may also include a sensor, a microphone, a speaker, a transmitting device, and the like.
  • the processor 601 is configured to run a computer program stored in the memory 602, and implement the following steps when executing the computer program:
  • the motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  • pan-tilt control apparatus The specific principles and implementation manners of the pan-tilt control apparatus provided by the embodiments of the present application are similar to the pan-tilt control methods of the foregoing embodiments, and details are not described herein again.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the processor executes the program instructions, so as to realize the provision of the above embodiments.
  • the steps of the PTZ control method are described in detail below.
  • the computer-readable storage medium may be an internal storage unit of the pan-tilt control apparatus described in any of the foregoing embodiments, such as a hard disk or a memory of the pan-tilt control apparatus.
  • the computer-readable storage medium may also be an external storage device of the PTZ control device, such as a plug-in hard disk equipped on the PTZ control device, a smart memory card (Smart Media Card, SMC), a secure digital ( Secure Digital, SD) card, flash memory card (Flash Card), etc.
  • FIG. 7 is a schematic block diagram of a pan/tilt head 10 provided by an embodiment of the present application.
  • the pan/tilt 10 includes a processor 701 and a memory 702 .
  • the processor 701 and the memory 702 are connected through a bus 703, and the bus 703 is, for example, an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 701 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 702 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 702 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • the processor 701 is configured to run a computer program stored in the memory 702, and implement the aforementioned PTZ control method when executing the computer program.
  • the pan/tilt 10 can mount the load device 20 , and the pan/tilt 10 is used to stabilize the load device 20 and can change the orientation and angle of the load device 20 .
  • the load device 20 may include a camera, which can capture video and/or images, specifically, the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer) with a shooting function. Wait). It can be understood that the load device 20 may also include sensors, microphones, speakers, transmitting devices, and the like.
  • connection part 11 of the pan/tilt head 10 may be connected to the load device 20 .
  • the load device 20 can also be fixedly connected to the PTZ 10, which is not limited here.
  • the gimbal 10 may be a handheld gimbal.
  • the gimbal 10 may include a hand-held portion 12 for holding the hand-held portion 12 to drive the gimbal 10 to move or maintain the gimbal. 10 in a certain location.
  • the head 10 may have a base that can be placed or fixedly attached to a target object.
  • the target object may be a desktop, an unmanned aerial vehicle, an unmanned vehicle, a camera mount, and the like.
  • the embodiments of the present application only take the handheld gimbal as an example.
  • the gimbal 10 can also be mounted on a carrier such as an unmanned aerial vehicle or an unmanned vehicle.
  • the base of the gimbal 10 The seat may be the body of an unmanned aerial vehicle, an unmanned vehicle, or the like, and the embodiment of the present application does not limit the specific form of the gimbal 10 .
  • pan-tilt control method can be applied to the pan-tilt 10 or the load device 20 , and of course it can also be implemented by the pan-tilt 10 and the load device 20 jointly.
  • the pan-tilt 10 can be connected in communication with the pan-tilt control device 30 .
  • the communication connection can be realized by electrical connection or wireless communication.
  • the pan-tilt control method may be applied in the pan-tilt control apparatus 30, or implemented by the pan-tilt 10 and the pan-tilt control apparatus 30 jointly.
  • load device 20 can also be used as the PTZ control device 30 to communicate with the PTZ 10 to implement the PTZ control method.
  • the processor 701 is configured to run a computer program stored in the memory 702, and implement the following steps when executing the computer program:
  • the motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  • pan/tilt provided in this embodiment of the present application are similar to those of the pan/tilt in the foregoing embodiments, and details are not described herein again.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and when the computer program is executed by a processor, the processor implements the The steps of the PTZ control method provided by the above embodiments.
  • the computer-readable storage medium may be an internal storage unit of the pan/tilt described in any of the foregoing embodiments, such as a hard disk or a memory of the pan/tilt.
  • the computer-readable storage medium may also be an external storage device of the PTZ, for example, a plug-in hard disk equipped on the PTZ, a Smart Media Card (SMC), a Secure Digital (SD) ) card, Flash Card, etc.
  • SMC Smart Media Card
  • SD Secure Digital
  • the pan-tilt control device, pan-tilt, and computer-readable storage medium can determine the angle information corresponding to the motor assembly according to the attitude data of the shaft arms on both sides of the motor assembly, so that it is not necessary to pass the "collision limit" method.
  • the method determines the angle information of the gimbal motor, which can reduce the possibility of collision of the load equipment and improve the user experience.
  • the volume of the motor can be further reduced, the number of rotating parts is reduced, and the reliability is increased.
  • the circuit wiring can be simplified, the assembly is simple, and the man-hour cost during installation can be saved.

Abstract

A gimbal control method, the gimbal comprising a motor assembly and shaft arms provided with attitude sensors, and said method comprising: acquiring first attitude data of a first attitude sensor (S110); acquiring second attitude data of a second attitude sensor (S120); determining angle information corresponding to the motor assembly according to the first attitude data and the second attitude data (S130); and controlling the motor assembly according to the angle information (S140). The present application can detect the attitude of a gimbal and control the gimbal. Also provided are a device, a gimbal and a storage medium.

Description

云台控制方法、云台控制装置、云台和存储介质PTZ control method, PTZ control device, PTZ and storage medium 技术领域technical field
本申请涉及云台控制技术领域,尤其涉及一种云台控制方法、云台控制装置、云台和存储介质。The present application relates to the technical field of PTZ control, and in particular, to a PTZ control method, a PTZ control device, a PTZ and a storage medium.
背景技术Background technique
在相关技术中,基于机械角度和电角度之间存在对应关系,提出通过霍尔传感器计算得出云台电机的电角度,再进一步基于上述对应关系计算得出机械角度。然而对于具有两个以上极对的云台电机而言,电角度与机械角度并不是一一对应的,从而仅根据电角度并无法确定机械角度。为了确定机械角度,相关技术中还提出一种“撞限位”方法,在“撞限位”的过程中记录电角度和机械角度的对应关系。In the related art, based on the corresponding relationship between the mechanical angle and the electrical angle, it is proposed to calculate the electrical angle of the gimbal motor by using the Hall sensor, and further calculate the mechanical angle based on the above-mentioned corresponding relationship. However, for a gimbal motor with more than two pole pairs, the electrical angle and the mechanical angle are not in a one-to-one correspondence, so the mechanical angle cannot be determined based on the electrical angle alone. In order to determine the mechanical angle, a "hitting limit" method is also proposed in the related art, and the corresponding relationship between the electrical angle and the mechanical angle is recorded in the process of "hitting the limit".
然而,在上述描述的“撞限位”方法中,由于需要首先控制云台转向其中一个限位,再转向另一个限位,还要多次采样,以记录电角度和机械角度的对应关系,因此,相关技术中机械角度的计算过程较为繁杂,效率较低;同时,随着云台撞击限位的次数增多,云台的结构稳定性也将受到影响。However, in the above-described "hit limit" method, since it is necessary to control the gimbal to turn to one limit position first, and then turn to the other limit position, multiple sampling is required to record the corresponding relationship between the electrical angle and the mechanical angle. Therefore, the calculation process of the mechanical angle in the related art is complicated and the efficiency is low; at the same time, as the number of times the gimbal hits the limit increases, the structural stability of the gimbal will also be affected.
发明内容SUMMARY OF THE INVENTION
基于此,本申请提供了一种云台控制方法、云台控制装置、云台和存储介质,能够检测云台的姿态,根据检测的姿态对云台进行控制。Based on this, the present application provides a pan-tilt control method, a pan-tilt control device, a pan-tilt and a storage medium, which can detect the posture of the pan-tilt and control the pan-tilt according to the detected posture.
第一方面,本申请实施例提供了一种云台控制方法,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;In a first aspect, an embodiment of the present application provides a pan-tilt control method, the pan-tilt includes at least one motor component, the motor component is connected to a first axle arm and a second axle arm, and the first axle arm is provided with There is a first attitude sensor, and a second attitude sensor is arranged on the second shaft arm;
所述云台控制方法包括:The PTZ control method includes:
获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
第二方面,本申请实施例提供了一种云台控制装置,所述云台控制装置能够与云台通信连接,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;In a second aspect, an embodiment of the present application provides a pan-tilt control device, the pan-tilt control device can be communicatively connected to the pan-tilt, and the pan-tilt includes at least one motor assembly connected to the first shaft arm and the pan-tilt. a second axle arm, the first axle arm is provided with a first attitude sensor, and the second axle arm is provided with a second attitude sensor;
所述云台控制装置包括一个或多个处理器,单独或共同地工作,用于执行以下步骤:The pan-tilt control device includes one or more processors, working individually or collectively, for performing the following steps:
获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
第三方面,本申请实施例提供了一种云台,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;In a third aspect, an embodiment of the present application provides a pan/tilt head, the pan/tilt head includes at least one motor assembly, the motor assembly is connected to a first shaft arm and a second shaft arm, and a first shaft arm is provided on the first shaft arm an attitude sensor, the second axle arm is provided with a second attitude sensor;
所述云台还包括一个或多个处理器,单独或共同地工作,用于执行以下步骤:The pan/tilt also includes one or more processors, working individually or collectively, for performing the following steps:
获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器 实现上述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the foregoing method.
本申请实施例提供了一种云台控制方法、云台控制装置、云台和存储介质,通过根据电机组件两侧轴臂的姿态数据确定电机组件对应的角度信息,从而可以不需要通过“撞限位”的方法确定云台电机的角度信息,可以减少负载设备碰撞的可能性,提升用户体验。而且可以不需要在电机组件安装角度测量装置,电机组件不需要额外的结构件用于支持角度测量装置,电机的体积可以进一步减小,减少了旋转部件,增加了可靠性。并且电路走线可以简化,组装简单,可以节省安装时的工时成本。The embodiments of the present application provide a pan-tilt control method, a pan-tilt control device, a pan-tilt, and a storage medium. By determining the angle information corresponding to the motor assembly according to the attitude data of the shaft arms on both sides of the motor assembly, there is no need to pass the "collision" The "limit" method determines the angle information of the gimbal motor, which can reduce the possibility of collision of the load equipment and improve the user experience. Furthermore, it is not necessary to install the angle measuring device on the motor assembly, and the motor assembly does not need additional structural parts for supporting the angle measuring device, the volume of the motor can be further reduced, the number of rotating parts is reduced, and the reliability is increased. In addition, the circuit wiring can be simplified, the assembly is simple, and the man-hour cost during installation can be saved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请实施例的公开内容。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the disclosure of the embodiments of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本申请实施例提供的一种云台控制方法的流程示意图;1 is a schematic flowchart of a pan-tilt control method provided by an embodiment of the present application;
图2是一实施方式中云台搭载负载设备的结构示意图;2 is a schematic structural diagram of a load device mounted on a PTZ in an embodiment;
图3是另一实施方式中云台搭载负载设备的结构示意图;3 is a schematic structural diagram of a load device mounted on a pan/tilt in another embodiment;
图4是一实施方式姿态数据的示意图;4 is a schematic diagram of attitude data in one embodiment;
图5是根据姿态数据确定电机组件关节角度的示意图;5 is a schematic diagram of determining the joint angle of the motor assembly according to the attitude data;
图6是本申请实施例提供的一种云台控制装置的示意性框图;6 is a schematic block diagram of a pan-tilt control device provided by an embodiment of the present application;
图7是本申请实施例提供的一种可移动平台的示意性框图。FIG. 7 is a schematic block diagram of a movable platform provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are for illustration only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to the actual situation.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
请参阅图1,图1是本申请实施例提供的一种云台控制方法的流程示意图。云台控制方法能够检测云台的姿态,以及根据检测的姿态对云台进行控制。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a pan-tilt control method provided by an embodiment of the present application. The PTZ control method can detect the attitude of the PTZ, and control the PTZ according to the detected attitude.
如图2所示,云台10能够搭载负载设备20,云台10用于稳定负载设备20并能够改变负载设备20的朝向、角度。示例性的,负载设备20可以包括相机,其能够拍摄视频及/或图像,具体地,相机可以为单反相机、摄像机、卡片相机、监控摄像头或者具有拍摄功能的电子设备(例如,手机、平板电脑等)。可以理解的,负载设备20也可以包括传感器、麦克风、扬声器、发射装置等。As shown in FIG. 2 , the pan/tilt 10 can mount the load device 20 , and the pan/tilt 10 is used to stabilize the load device 20 and can change the orientation and angle of the load device 20 . Exemplarily, the load device 20 may include a camera, which can capture video and/or images. Specifically, the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer) with a shooting function. Wait). It can be understood that the load device 20 may also include sensors, microphones, speakers, transmitting devices, and the like.
示例性的,如图2所示,云台10的连接部11可以连接负载设备20。当然负载设备20也可以固定连接在云台10上,在此不做限制。Exemplarily, as shown in FIG. 2 , the connection part 11 of the pan/tilt head 10 may be connected to the load device 20 . Of course, the load device 20 can also be fixedly connected to the PTZ 10, which is not limited here.
示例性的,如图2所示,云台10可以为手持云台,具体的,云台10可以包括手持部12,用户可以手持该手持部12,以带动云台10移动或者保持云台10在某一位置。在一些实施方式中,云台10可以具有基座,该基座能够放置或固定连接在目标物体上。示例性的,目标物体可以为桌面、无人飞行器、无人车、相机支架等。Exemplarily, as shown in FIG. 2 , the gimbal 10 may be a handheld gimbal. Specifically, the gimbal 10 may include a hand-held portion 12 , and the user may hold the hand-held portion 12 to drive the gimbal 10 to move or hold the gimbal 10 . in a certain location. In some embodiments, the head 10 may have a base that can be placed or fixedly attached to a target object. Exemplarily, the target object may be a desktop, an unmanned aerial vehicle, an unmanned vehicle, a camera mount, and the like.
需要说明的是,本申请实施例中仅以手持云台为例,在实际应用中,云台10还可以挂载在无人机、无人车等载体上,此时,云台10的基座可以为无人机、无人车等的机体,本申请实施例对云台10的具体形式并不做限制。It should be noted that the embodiments of the present application only take the handheld gimbal as an example. In practical applications, the gimbal 10 can also be mounted on a carrier such as an unmanned aerial vehicle or an unmanned vehicle. At this time, the base of the gimbal 10 The seat may be the body of an unmanned aerial vehicle, an unmanned vehicle, or the like, and the embodiment of the present application does not limit the specific form of the gimbal 10 .
可以理解的,云台控制方法可以应用在云台10中,也可以应用在负载设备20中,当然也可以由云台10和负载设备20共同执行实现。It can be understood that the pan-tilt control method can be applied to the pan-tilt 10 or the load device 20 , and of course it can also be implemented by the pan-tilt 10 and the load device 20 jointly.
在一些实施方式中,如图3所示,云台10能够与云台控制装置30通信连接,可以理解的,通信连接可以是通过电连接实现,也可以通过无线通信实现。云台控制方法可以应用在云台控制装置30中,或者由云台10和云台控制装置30共同执行实现。In some embodiments, as shown in FIG. 3 , the pan-tilt 10 can be connected in communication with the pan-tilt control device 30 . It can be understood that the communication connection can be realized by electrical connection or wireless communication. The pan-tilt control method may be applied in the pan-tilt control apparatus 30, or implemented by the pan-tilt 10 and the pan-tilt control apparatus 30 jointly.
可以理解的,负载设备20也可以作为云台控制装置30与云台10通信连接,而实现云台控制方法。It can be understood that the load device 20 can also be used as the PTZ control device 30 to communicate with the PTZ 10 to implement the PTZ control method.
具体的,如图2所示,云台10包括至少一个电机组件13,电机组件13可以包括电机,还可以包括电子调速器。Specifically, as shown in FIG. 2 , the pan/tilt head 10 includes at least one motor assembly 13 , and the motor assembly 13 may include a motor, and may also include an electronic speed controller.
示例性的,云台10具有三个云台轴,分别为yaw轴、roll轴、pitch轴,每一轴上均设有一个电机组件13,每一轴上的电机组件13用以控制该轴进行动作,以使云台10达到预设姿态。在其他实施方式中,云台10也可以为单轴云台、双轴云台,或者可以为四轴云台等。Exemplarily, the PTZ 10 has three PTZ axes, namely the yaw axis, the roll axis, and the pitch axis, each axis is provided with a motor assembly 13, and the motor assembly 13 on each axis is used to control the axis. Perform actions to make the gimbal 10 reach the preset posture. In other embodiments, the gimbal 10 may also be a single-axis gimbal, a dual-axis gimbal, or a four-axis gimbal or the like.
具体的,电机组件13连接云台10的轴臂。轴臂可以包括两个电机组件13之间的轴臂、云台10的基座、云台10的手持部12、云台10的连接部11。Specifically, the motor assembly 13 is connected to the shaft arm of the gimbal 10 . The pivot arm may include the pivot arm between the two motor assemblies 13 , the base of the pan/tilt 10 , the hand-held portion 12 of the pan/tilt 10 , and the connection portion 11 of the pan/tilt 10 .
电机组件13用于驱动轴臂绕电机组件13的轴线101转动,以使云台10达到预设姿态,从而可以调节云台10搭载的负载设备20的姿态,如朝向、角度。The motor assembly 13 is used to drive the shaft arm to rotate around the axis 101 of the motor assembly 13 , so that the gimbal 10 reaches a preset posture, so that the posture, such as the orientation and angle, of the load device 20 carried on the gimbal 10 can be adjusted.
云台10的电机组件13可以连接在两个轴臂之间,在本申请实施例中,可以称电机组件13一侧的轴臂为第一轴臂14,另一侧的轴臂为第二轴臂15。The motor assembly 13 of the gimbal 10 can be connected between two shaft arms. In the embodiment of the present application, the shaft arm on one side of the motor assembly 13 can be called the first shaft arm 14 , and the shaft arm on the other side is the second shaft arm 14 Axle arm 15.
示例性的,电机组件13连接第一轴臂14和第二轴臂15。具体的,如图2所示,第一轴臂14包括云台10的手持部12,第二轴臂15包括两个电机组件13之间的轴臂,当然也不限于此,例如第一轴臂可以包括两个电机组件13之间的轴臂,第二轴臂可以包括云台10的手持部12或者包括连接手持部12和其中一个电机组件13的轴臂。Exemplarily, the motor assembly 13 is connected to the first axle arm 14 and the second axle arm 15 . Specifically, as shown in FIG. 2 , the first axis arm 14 includes the hand-held portion 12 of the pan/tilt head 10 , and the second axis arm 15 includes the axis arm between the two motor assemblies 13 , but of course it is not limited to this, for example, the first axis The arm may include a pivot arm between two motor assemblies 13 , and the second pivot arm may include the hand-held portion 12 of the pan/tilt head 10 or a pivot arm connecting the hand-held portion 12 and one of the motor assemblies 13 .
示例性的,云台10在调节负载设备20的姿态时,第一轴臂14和第二轴臂15可以垂直,也可以不垂直。如图2所示,垂直于其中一个电机组件13的轴线的平面与垂直于另一个电机组件13的平面为非正交关系,可以扩大负载设备20的重心的调整范围并降低电机组件13的负荷。Exemplarily, when the head 10 adjusts the attitude of the load device 20, the first axis arm 14 and the second axis arm 15 may be vertical or not. As shown in FIG. 2 , the plane perpendicular to the axis of one motor assembly 13 is in a non-orthogonal relationship with the plane perpendicular to the other motor assembly 13 , which can expand the adjustment range of the center of gravity of the load device 20 and reduce the load of the motor assembly 13 .
在本申请实施例中,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器。示例性的,姿态传感器可以设置在轴臂的中部、也可以设置在轴臂的端部,当然也不限于此。In the embodiment of the present application, a first posture sensor is provided on the first axle arm, and a second posture sensor is provided on the second axle arm. Exemplarily, the attitude sensor may be disposed in the middle of the shaft arm or at the end of the shaft arm, but of course it is not limited thereto.
如图1所示,本申请实施例的云台控制方法包括步骤S110至步骤S140。As shown in FIG. 1 , the pan-tilt control method according to the embodiment of the present application includes steps S110 to S140.
S110、获取所述第一姿态传感器的第一姿态数据。S110. Acquire first attitude data of the first attitude sensor.
在一些实施方式中,所述第一姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器。In some embodiments, the first attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor.
示例性的,第一姿态传感器可以为独立的加速度计,或者可以为集成陀螺 仪和加速度计的惯性测量单元。Exemplarily, the first attitude sensor may be an independent accelerometer, or may be an inertial measurement unit integrating a gyroscope and an accelerometer.
为了描述方便,本申请实施例中将表示第一轴臂运动姿态的姿态数据称为第一姿态数据。For the convenience of description, in this embodiment of the present application, the gesture data representing the motion gesture of the first axis arm is referred to as the first gesture data.
示例性的,所述第一姿态数据包括加速度和/或地磁矢量。Exemplarily, the first attitude data includes acceleration and/or geomagnetic vector.
S120、获取所述第二姿态传感器的第二姿态数据。S120. Acquire second attitude data of the second attitude sensor.
示例性的,所述第二姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器。Exemplarily, the second attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor.
示例性的,第二姿态传感器可以为独立的加速度计,或者可以为集成陀螺仪和加速度计的惯性测量单元。Exemplarily, the second attitude sensor may be an independent accelerometer, or may be an inertial measurement unit integrating a gyroscope and an accelerometer.
为了描述方便,本申请实施例中将表示第二轴臂运动姿态的姿态数据称为第二姿态数据。For the convenience of description, in the embodiment of the present application, the gesture data representing the motion gesture of the second axis arm is referred to as the second gesture data.
示例性的,所述第二姿态数据包括加速度和/或地磁矢量。Exemplarily, the second attitude data includes acceleration and/or geomagnetic vector.
可以理解的,上述第一姿态数据和第二姿态数据的物理意义保持一致,例如,若第一姿态数据表示第一轴臂的加速度,则第二姿态数据表示第二轴臂的加速度;又例如,若第一姿态数据表示第一轴臂的地磁矢量,则第二姿态数据表示第二轴臂的地磁矢量。It can be understood that the physical meanings of the first attitude data and the second attitude data are consistent. For example, if the first attitude data represents the acceleration of the first axis arm, the second attitude data represents the acceleration of the second axis arm; for example, , if the first attitude data represents the geomagnetic vector of the first axle arm, then the second attitude data represents the geomagnetic vector of the second axle arm.
S130、根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息。S130. Determine angle information corresponding to the motor assembly according to the first attitude data and the second attitude data.
为了描述方便,本申请实施例中以获取其中两个轴臂上的姿态传感器的姿态数据为例进行说明,根据这两个轴臂的姿态数据可以确定这两个轴臂之间电机组件对应的角度信息。For the convenience of description, in the embodiment of the present application, the acquisition of the attitude data of the attitude sensors on the two axle arms is used as an example for description. According to the attitude data of the two axle arms, the corresponding motor components between the two axle arms can be determined. angle information.
在一些实施方式中,云台包括多个电机组件,各电机组件连接在两个轴臂之间,各轴臂上均设有姿态传感器,可以获取每个轴臂上的姿态传感器的姿态数据。可以理解的,根据任意两个相邻轴臂的姿态数据均可以确定这两个相邻轴臂之间电机组件对应的角度信息。In some embodiments, the pan/tilt head includes a plurality of motor assemblies, each motor assembly is connected between two shaft arms, each shaft arm is provided with an attitude sensor, and the attitude data of the attitude sensor on each shaft arm can be obtained. It can be understood that the angle information corresponding to the motor assembly between the two adjacent shaft arms can be determined according to the attitude data of any two adjacent shaft arms.
示例性的,可以将云台的多个(N+1个)轴臂编号为i,i可以为0,1,…,N,其中编号为0的轴臂可以为所述云台的基座或所述云台的手持部,N可以等于云台的轴数,例如三轴云台的轴臂编号分别为0-3。Exemplarily, the multiple (N+1) pivot arms of the gimbal can be numbered as i, i can be 0, 1, ..., N, wherein the pivot arm numbered 0 can be the base of the gimbal Or in the hand-held part of the gimbal, N may be equal to the number of axes of the gimbal, for example, the axis arms of the three-axis gimbal are numbered 0-3 respectively.
示例性的,可以将编号为i-1的轴臂(轴臂i-1)称为第一轴臂,将编号为i的轴臂(轴臂i)称为第二轴臂,轴臂i-1和轴臂i之间的电机组件可以 称为电机组件i。可以理解的,第一轴臂、第二轴臂并不特指云台上的某个轴臂,第一轴臂、第二轴臂可以为云台的任意两个相邻轴臂。Exemplarily, the axis arm (axle arm i-1) numbered i-1 may be called the first axis arm, the axis arm (axle arm i) numbered i may be called the second axis arm, and the axis arm i The motor assembly between -1 and shaft arm i may be referred to as motor assembly i. It can be understood that the first axis arm and the second axis arm do not specifically refer to a certain axis arm on the gimbal, and the first axis arm and the second axis arm may be any two adjacent axis arms of the gimbal.
在一些实施方式中,所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息,包括:根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向;根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向;根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息。In some implementation manners, the determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data includes: determining, according to the first attitude data, that the first shaft arm is perpendicular to the first attitude change direction of the axis; the second attitude change direction of the second shaft arm perpendicular to the axis is determined according to the second attitude data; according to the first attitude change direction and the second attitude The included angle between the changing directions determines the angle information.
示例性的,如图4所示,某一时刻第一轴臂14的第一姿态数据可以表示为ACC_1,同一时刻第二轴臂15的第二姿态数据可以表示为ACC_2。Exemplarily, as shown in FIG. 4 , the first attitude data of the first pivot arm 14 at a certain moment may be represented as ACC_1, and the second attitude data of the second pivot arm 15 at the same moment may be represented as ACC_2.
如图5所示,根据第一姿态数据ACC_1可以确定所述第一轴臂14垂直于所述轴线101的第一姿态变化方向ACC_1’,根据同一时刻的第二姿态数据ACC_2可以确定所述第二轴臂15垂直于所述轴线101的第二姿态变化方向ACC_2’。As shown in FIG. 5 , according to the first attitude data ACC_1, the first attitude change direction ACC_1' of the first axle arm 14 perpendicular to the axis 101 can be determined, and the second attitude data ACC_2 at the same moment can be determined. The two-axis arm 15 is perpendicular to the second attitude change direction ACC_2 ′ of the axis 101 .
可以理解的,姿态传感器的姿态数据为矢量,例如可以包括加速度和/或地磁矢量。姿态数据和轴臂当前的位置有关,具体的,姿态数据可以包括轴臂在当前位置的运动趋势的信息。由于电机组件用于驱动轴臂绕轴线转动,根据姿态数据确定的垂直于所述轴线的姿态变化方向,可以表示轴臂在当前时刻的转向,该转向和轴臂当前的位置有关。It can be understood that the attitude data of the attitude sensor is a vector, for example, it may include acceleration and/or geomagnetic vector. The attitude data is related to the current position of the pivot arm. Specifically, the attitude data may include information about the movement trend of the pivot arm at the current position. Since the motor assembly is used to drive the shaft arm to rotate around the axis, the attitude change direction perpendicular to the axis determined according to the attitude data can represent the steering of the shaft arm at the current moment, which is related to the current position of the shaft arm.
在一些实施方式中,电机组件对应的角度信息可以包括所述电机组件的关节角度,关节角度也可称为电机组件的机械角度。In some embodiments, the angle information corresponding to the motor assembly may include the joint angle of the motor assembly, and the joint angle may also be referred to as the mechanical angle of the motor assembly.
示例性的,第一轴臂、第二轴臂中的一个连接所述电机组件的定子,另一个连接所述电机组件的转子。根据两个轴臂的相对位置可以确定中间电机组件的关节角度。在其他实施方式中,所述电机组件对应的角度信息还可以包括电机组件的关节角度的变化趋势、转向等。Exemplarily, one of the first shaft arm and the second shaft arm is connected to the stator of the motor assembly, and the other is connected to the rotor of the motor assembly. The joint angle of the middle motor assembly can be determined according to the relative positions of the two shaft arms. In other embodiments, the angle information corresponding to the motor assembly may further include a change trend of the joint angle of the motor assembly, steering, and the like.
示例性的,如图5所示,可以根据所述第一姿态变化方向ACC_1’和所述第二姿态变化方向ACC_2’之间的夹角确定电机组件的关节角度θ_i。Exemplarily, as shown in FIG. 5 , the joint angle θ_i of the motor assembly may be determined according to the included angle between the first attitude change direction ACC_1' and the second attitude change direction ACC_2'.
可以理解的,云台在使用时,除了电机组件转动可以给轴臂带来姿态的改变,云台在用户或无人飞行器、无人车等的带动下也会给姿态数据带来影响,但由于所述带动给云台中各轴臂的姿态数据的影响是相同的,因此仍可以根据第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息It is understandable that when the gimbal is in use, in addition to the rotation of the motor assembly, which can change the attitude of the shaft arm, the gimbal will also affect the attitude data when driven by the user or unmanned aerial vehicle, unmanned vehicle, etc., but Since the influence of the attitude data on each axis arm in the gimbal is the same, the angle information can still be determined according to the angle between the first attitude change direction and the second attitude change direction
示例性的,所述第一姿态变化方向可以根据所述第一姿态数据在转动平面 上的第一投影向量确定,所述第二姿态变化方向可以根据所述第二姿态数据在所述转动平面上的第二投影向量确定。其中,所述转动平面垂直于所述电机组件的轴线。Exemplarily, the first attitude change direction may be determined according to a first projection vector of the first attitude data on the rotation plane, and the second attitude change direction may be determined according to the second attitude data on the rotation plane. The second projection vector on is determined. Wherein, the rotation plane is perpendicular to the axis of the motor assembly.
示例性的,所述根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息,包括:根据所述第一投影向量和所述第二投影向量之间的角度确定所述电机组件对应的角度信息。Exemplarily, the determining the angle information according to the angle between the first posture change direction and the second posture change direction includes: according to the difference between the first projection vector and the second projection vector; The angle between them determines the angle information corresponding to the motor assembly.
由于电机组件用于驱动轴臂绕轴线转动,姿态数据在转动平面上的投影向量垂直于所述轴线,可以作为姿态变化方向,姿态数据在转动平面上的投影向量可以表示轴臂在当前时刻的转向,该转向和轴臂当前的位置有关。Since the motor assembly is used to drive the shaft arm to rotate around the axis, the projection vector of the attitude data on the rotation plane is perpendicular to the axis, which can be used as the attitude change direction, and the projection vector of the attitude data on the rotation plane can represent the current moment of the shaft arm. Steering, which is related to the current position of the axle arm.
示例性的,所述根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向,包括:确定所述第一姿态数据的平行于所述轴线的第一分量;根据所述第一姿态数据和所述第一分量的差确定第一投影向量。Exemplarily, the determining, according to the first attitude data, a first attitude change direction of the first shaft arm perpendicular to the axis includes: determining a first attitude direction of the first attitude data that is parallel to the axis. component; determining a first projection vector according to the difference between the first pose data and the first component.
具体的,电机组件的轴线的方向是确定的,可以用A_i表示电机组件i的轴线的方向。为简化计算,可以将A_i置为单位向量,其模长为1。Specifically, the direction of the axis of the motor assembly is determined, and A_i can be used to represent the direction of the axis of the motor assembly i. To simplify the calculation, A_i can be set as a unit vector whose modulo length is 1.
示例性的,可以根据与所述轴线平行的单位向量和所述第一姿态数据的内积确定平行于所述轴线的第一分量。之后可以将第一姿态数据和所述第一分量的差作为第一投影向量。Exemplarily, the first component parallel to the axis may be determined according to an inner product of a unit vector parallel to the axis and the first attitude data. Then, the difference between the first pose data and the first component can be used as the first projection vector.
同样的,可以所述根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向,包括:确定所述第二姿态数据的平行于所述轴线的第二分量;根据所述第二姿态数据和所述第二分量的差确定第二投影向量。Similarly, determining a second posture change direction of the second shaft arm perpendicular to the axis according to the second posture data includes: determining a second posture of the second posture data that is parallel to the axis component; a second projection vector is determined according to the difference between the second pose data and the second component.
示例性的,根据所述单位向量和所述第二姿态数据的内积确定平行于所述轴线的第二分量。Exemplarily, the second component parallel to the axis is determined according to the inner product of the unit vector and the second attitude data.
示例性的,如图5所示,可以根据所述第一投影向量ACC_1’和所述第二投影向量ACC_2’之间的夹角确定电机组件的关节角度θ_i。Exemplarily, as shown in FIG. 5 , the joint angle θ_i of the motor assembly may be determined according to the included angle between the first projection vector ACC_1' and the second projection vector ACC_2'.
在一些实施方式中,还可以根据第一投影向量ACC_1’和所述第二投影向量ACC_2’的外积以及所述单位向量确定电机组件的转向。In some embodiments, the steering of the motor assembly may also be determined according to the outer product of the first projection vector ACC_1' and the second projection vector ACC_2' and the unit vector.
可以理解的,根据电机组件的关节角度θ_i,可以确定电机组件的关节角零位(机械零位),即θ_i为0时电机组件i的绝对位置。所以,电机组件的角度信息也可以包括电机组件的关节角零位。It can be understood that, according to the joint angle θ_i of the motor assembly, the joint angle zero position (mechanical zero position) of the motor assembly can be determined, that is, the absolute position of the motor assembly i when θ_i is 0. Therefore, the angle information of the motor assembly may also include the zero position of the joint angle of the motor assembly.
S140、根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述 第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。S140. Control the motor assembly according to the angle information, where the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
示例性的,根据确定的关节角度,可以控制电机组件运行、进行云台关节角模型的控制,或者计算雅可比矩阵,进行云台姿态模式的控制等。Exemplarily, according to the determined joint angle, the operation of the motor assembly can be controlled, the joint angle model of the gimbal can be controlled, the Jacobian matrix can be calculated, and the attitude mode of the gimbal can be controlled.
示例性的,云台的工作原理是通过检测负载设备的实际姿态并和目标姿态做比较,求出控制偏差,以此进行负反馈控制,输出给电机力矩,最终减小控制偏差,保证负载设备的实际姿态和目标姿态偏差尽量小。Exemplarily, the working principle of the gimbal is to detect the actual posture of the load device and compare it with the target posture to obtain the control deviation, so as to perform negative feedback control, output the torque to the motor, and finally reduce the control deviation and ensure the load device. The deviation between the actual attitude and the target attitude is as small as possible.
在一些实施方式中,所述根据所述角度信息控制所述电机组件,包括:根据所述角度信息控制所述电机组件,以使所述云台搭载的负载设备的姿态稳定,或者使所述云台搭载的负载设备的姿态沿预设的轨迹运动。In some implementation manners, the controlling the motor assembly according to the angle information includes: controlling the motor assembly according to the angle information, so as to stabilize the attitude of the load device mounted on the gimbal, or to make the The attitude of the payload device mounted on the gimbal moves along a preset trajectory.
示例性的,在姿态控制模式下,云台控制的目标是负载设备在空间的姿态定向或者按照一定的轨迹运行,通过计算姿态误差,可以得到负载设备的期望角速度,然后通过雅克比矩阵映射到关节角空间进行控制。Exemplarily, in the attitude control mode, the target controlled by the gimbal is the attitude orientation of the load device in space or running according to a certain trajectory, and by calculating the attitude error, the expected angular velocity of the load device can be obtained, and then mapped to the Jacobian matrix. The joint angle space is controlled.
示例性的,所述根据所述角度信息控制所述电机组件,包括:根据所述电机组件对应的关节角度控制所述电机组件,以使所述电机组件的关节角度达到预设角度,或者使所述电机组件的关节角度按预设的轨迹调整。Exemplarily, the controlling the motor assembly according to the angle information includes: controlling the motor assembly according to the joint angle corresponding to the motor assembly, so that the joint angle of the motor assembly reaches a preset angle, or The joint angle of the motor assembly is adjusted according to a preset trajectory.
示例性的,在关节角控制模式下,云台控制的目标是各轴电机的关节角处于某一位置,或者按照一定的轨迹运行,直接在关节角空间进行控制。Exemplarily, in the joint angle control mode, the goal of the gimbal control is that the joint angle of each axis motor is at a certain position, or runs according to a certain trajectory, and is directly controlled in the joint angle space.
在一些实施方式中,所述云台包括至少两个轴臂和连接所述轴臂的电机组件,且至少一个所述电机组件两侧的轴臂上设有姿态传感器。可以通过所述姿态传感器获取各所述电机组件两侧的轴臂的姿态数据,以及根据所述两侧的轴臂的姿态数据确定各所述电机组件对应的角度信息,从而可以根据所述角度信息控制各所述电机组件,所述电机组件用于驱动轴臂绕所述电机组件的轴线转动。In some embodiments, the pan/tilt head includes at least two shaft arms and a motor assembly connected to the shaft arms, and attitude sensors are provided on the shaft arms on both sides of at least one of the motor assemblies. The attitude data of the shaft arms on both sides of each motor assembly can be obtained through the attitude sensor, and the angle information corresponding to each of the motor assemblies can be determined according to the attitude data of the shaft arms on both sides, so that the angle information can be determined according to the angle The information controls each of the motor assemblies, and the motor assemblies are used to drive the shaft arm to rotate about the axis of the motor assembly.
可以理解的,根据云台上所有电机组件的角度信息可以确定云台整体的当前姿态和/或云台搭载的负载设备的当前姿态,根据云台和/或负载设备的当前姿态,以及云台和/或负载设备的目标姿态,可以确定云台和/或负载设备的姿态误差,根据姿态误差可以确定负载设备的期望角速度,然后可以确定各所述电机组件的目标关节角度和/或目标转速,根据目标关节角度和/或目标转速对各电机组件进行控制。例如可以根据雅克比矩阵,进行云台姿态模式的控制。It can be understood that the current posture of the whole pan/tilt and/or the current posture of the load device carried on the pan/tilt can be determined according to the angle information of all the motor components on the pan/tilt, according to the current posture of the pan/tilt and/or the load device, and the current posture of the pan/tilt. And/or the target attitude of the load device, the attitude error of the head and/or the load device can be determined, the expected angular velocity of the load device can be determined according to the attitude error, and then the target joint angle and/or target rotation speed of each of the motor components can be determined , each motor assembly is controlled according to the target joint angle and/or target rotational speed. For example, the attitude mode of the gimbal can be controlled according to the Jacobian matrix.
在一些实施方式中,如图4所示,所述第一姿态数据ACC_1为第一坐标系 中的矢量,所述第一坐标系为所述第一姿态传感器的坐标系;所述第二姿态数据ACC_2为第二坐标系中的矢量,所述第二坐标系为所述第二姿态传感器的坐标系。In some embodiments, as shown in FIG. 4 , the first attitude data ACC_1 is a vector in a first coordinate system, and the first coordinate system is the coordinate system of the first attitude sensor; the second attitude The data ACC_2 is a vector in the second coordinate system, and the second coordinate system is the coordinate system of the second attitude sensor.
在一些实施方式中,所述电机组件对应的关节角度为零时,所述第一坐标系的各坐标轴的方向与所述第二坐标系的各坐标轴的方向均相同。具体可以通过在轴臂安装姿态传感器时,使得各轴臂上姿态传感器的朝向相同来实现。In some embodiments, when the joint angle corresponding to the motor assembly is zero, the directions of the coordinate axes of the first coordinate system are the same as the directions of the coordinate axes of the second coordinate system. Specifically, it can be achieved by making the orientation of the attitude sensors on each axle arm the same when the attitude sensors are installed on the axle arms.
示例性的,电机组件对应的关节角度为零时,所述第一坐标系的各坐标轴的方向与所述第二坐标系的各坐标轴的方向均相同,可以直接根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述关节角度,例如直接根据第一投影向量和第二投影向量之间的角度确定所述关节角度和电机组件的转向。Exemplarily, when the joint angle corresponding to the motor assembly is zero, the direction of each coordinate axis of the first coordinate system is the same as the direction of each coordinate axis of the second coordinate system. The angle between the change direction and the second posture change direction determines the joint angle, for example, the joint angle and the steering of the motor assembly are directly determined according to the angle between the first projection vector and the second projection vector.
在另一些实施方式中,在所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息之前,所述云台控制方法还包括:对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,以将所述第一姿态数据和所述第二姿态数据转换至同一坐标系中。In some other implementations, before determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, the pan-tilt control method further includes: adjusting the first attitude Coordinate transformation processing is performed on the data and/or the second attitude data, so as to transform the first attitude data and the second attitude data into the same coordinate system.
示例性的,根据同一坐标系中的各姿态数据确定对应的姿态变化方向,根据相邻两轴臂的姿态变化方向之间的夹角确定中间电机组件的角度信息。例如,确定同一坐标系中的各姿态数据在转动平面上的投影向量,根据相邻两轴臂的投影向量之间的夹角确定中间电机组件的角度信息。Exemplarily, the corresponding attitude change direction is determined according to each attitude data in the same coordinate system, and the angle information of the intermediate motor assembly is determined according to the angle between the attitude change directions of the adjacent two-axis arms. For example, the projection vector of each attitude data in the same coordinate system on the rotation plane is determined, and the angle information of the intermediate motor assembly is determined according to the angle between the projection vectors of the adjacent two axis arms.
示例性的,所述对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,包括:将所述第一姿态数据转换为所述第二坐标系中的矢量。通过将各轴臂的姿态数据统一到其中一个轴臂的坐标系中,可以节省计算量。可以理解的,也可以将将所述第而姿态数据转换为所述第一坐标系中的矢量,也可以节省计算量。Exemplarily, the performing coordinate transformation processing on the first attitude data and/or the second attitude data includes: converting the first attitude data into a vector in the second coordinate system. By unifying the attitude data of each axis arm into the coordinate system of one of the axis arms, the amount of calculation can be saved. It can be understood that the second attitude data can also be converted into a vector in the first coordinate system, which can also save the amount of calculation.
在一些实施方式中,如图2所示,所述云台10包括能够连接负载设备20的连接部11,所述第二轴臂15较所述第一轴臂14靠近所述负载设备。在将第一姿态数据转换为所述第二坐标系中的矢量后,可以较为快速的得到云台10中各电机组件13的角度信息。In some embodiments, as shown in FIG. 2 , the pan/tilt head 10 includes a connecting portion 11 capable of connecting to a load device 20 , and the second shaft arm 15 is closer to the load device than the first shaft arm 14 . After the first attitude data is converted into a vector in the second coordinate system, the angle information of each motor assembly 13 in the gimbal 10 can be obtained relatively quickly.
示例性的,所述第一轴臂连接所述电机组件的定子,所述第二轴臂连接所述电机组件的转子。将第一姿态数据转换为所述第二坐标系中的矢量,可以更 快速的得到电机组件的转子和定子之间的角度关系。Exemplarily, the first shaft arm is connected to the stator of the motor assembly, and the second shaft arm is connected to the rotor of the motor assembly. By converting the first attitude data into a vector in the second coordinate system, the angular relationship between the rotor and the stator of the motor assembly can be obtained more quickly.
在一些实施方式中,所述将所述第一姿态数据转换为所述第二坐标系中的矢量,包括:根据预设的坐标系变换参数,将所述第一姿态数据转换为所述第二坐标系中的矢量。In some embodiments, the converting the first attitude data into a vector in the second coordinate system includes: converting the first attitude data into the first attitude data according to preset coordinate system transformation parameters A vector in a two-coordinate system.
示例性的,所述坐标系变换参数根据所述电机组件对应的关节角度为零时,所述第一坐标系在所述第二坐标系中的表示确定。Exemplarily, the coordinate system transformation parameter is determined according to the representation of the first coordinate system in the second coordinate system when the joint angle corresponding to the motor assembly is zero.
示例性的,坐标系变换参数可以包括相应云台轴在电机组件在关节角度为零时的旋转矩阵。Exemplarily, the coordinate system transformation parameter may include a rotation matrix of the corresponding pan/tilt axis when the motor assembly is at a joint angle of zero.
本申请实施例提供的云台控制方法,通过根据电机组件两侧轴臂的姿态数据确定电机组件对应的角度信息,从而可以不需要通过“撞限位”的方法确定云台电机的角度信息,可以减少负载设备碰撞的可能性,提升用户体验。而且可以不需要在电机组件安装角度测量装置,电机组件不需要额外的结构件用于支持角度测量装置,电机的体积可以进一步减小,减少了旋转部件,增加了可靠性。并且电路走线可以简化,组装简单,可以节省安装时的工时成本。In the pan-tilt control method provided by the embodiment of the present application, the angle information corresponding to the motor assembly is determined according to the attitude data of the shaft arms on both sides of the motor assembly, so that the angle information of the pan-tilt motor can be determined without the method of "hitting the limit". It can reduce the possibility of collision of load equipment and improve user experience. Furthermore, it is not necessary to install the angle measuring device on the motor assembly, and the motor assembly does not need additional structural parts for supporting the angle measuring device, the volume of the motor can be further reduced, the number of rotating parts is reduced, and the reliability is increased. In addition, the circuit wiring can be simplified, the assembly is simple, and the man-hour cost during installation can be saved.
在一些实施方式中,所述电机组件也可以包括角度测量装置。可以通过角度测量装置和姿态传感器组合使用,确定电机组件的角度信息,可以提升角度信息的准确性。In some embodiments, the motor assembly may also include an angle measurement device. The angle measurement device and the attitude sensor can be used in combination to determine the angle information of the motor assembly, which can improve the accuracy of the angle information.
示例性的,所述角度测量装置可以包括一下至少一种:霍尔传感器、编码器等。Exemplarily, the angle measuring device may include at least one of the following: a Hall sensor, an encoder, and the like.
示例性的,所述云台控制方法还包括:通过所述角度测量装置确定所述电机组件对应的电角度。对于具有两个以上极对的云台电机而言,电角度与关节角度并不是一一对应的,从而仅根据电角度并无法确定关节角度。通过根据电机组件两侧轴臂的姿态数据可以确定电机组件的关节角零位和/或关节角度,根据该关节角零位和/或关节角度,以及电机组件的电角度可以准确地确定电机组件的关节角度,而且可以不需要通过“撞限位”的方法确定云台电机的角度信息。Exemplarily, the pan-tilt control method further includes: determining, by the angle measuring device, an electrical angle corresponding to the motor assembly. For a gimbal motor with more than two pole pairs, the electrical angle is not in a one-to-one correspondence with the joint angle, so the joint angle cannot be determined only based on the electrical angle. The joint angle zero position and/or joint angle of the motor assembly can be determined according to the attitude data of the shaft arms on both sides of the motor assembly, and the motor assembly can be accurately determined according to the joint angle zero position and/or joint angle and the electrical angle of the motor assembly and the angle information of the gimbal motor can be determined without using the "hit limit" method.
在一些实施方式中,所述根据所述角度信息控制所述电机组件,包括:根据所述电机组件对应的关节角度和所述电角度控制所述电机组件。In some embodiments, the controlling the motor assembly according to the angle information includes: controlling the motor assembly according to a joint angle corresponding to the motor assembly and the electrical angle.
示例性的,根据电机组件的电角度可以确定电机组件可能的关节角度,为了描述方便,将该可能的关节角度称为候选关节角度。当电机组件具有4个极 对时,电机组件在一个机械周期内,电周期都将变化4次,也就是说,通过霍尔传感器等角度测量装置所测量出来的电机组件的电角度分别对应4种候选关节角度。Exemplarily, a possible joint angle of the motor assembly may be determined according to the electrical angle of the motor assembly. For the convenience of description, the possible joint angle is referred to as a candidate joint angle. When the motor assembly has 4 pole pairs, the electrical cycle of the motor assembly will change 4 times in one mechanical cycle, that is to say, the electrical angle of the motor assembly measured by the angle measuring device such as the Hall sensor corresponds to 4 candidate joint angles.
示例性的,可以根据所述电角度与所述电机组件的电角度、关节角度,以及极对数三者之间的关系,确定所述电机组件的候选关节角度。Exemplarily, the candidate joint angle of the motor assembly may be determined according to the relationship between the electrical angle and the electrical angle of the motor assembly, the joint angle, and the number of pole pairs.
示例性的,所述根据所述电机组件对应的关节角度和所述电角度控制所述电机组件,包括:根据所述电角度确定所述电机组件的候选关节角度;根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度;根据所述真实关节角度控制所述电机组件。Exemplarily, the controlling the motor assembly according to the joint angle corresponding to the motor assembly and the electrical angle includes: determining a candidate joint angle of the motor assembly according to the electrical angle; The real joint angle of the motor assembly is determined from the candidate joint angles; the motor assembly is controlled according to the real joint angle.
示例性的,所述根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度,包括:确定最接近所述关节角度的候选关节角度为所述真实关节角度。Exemplarily, the determining the real joint angle of the motor assembly among the candidate joint angles according to the joint angle includes: determining a candidate joint angle closest to the joint angle as the real joint angle.
在一些实施方式中,根据轴臂的姿态数据确定的关节角度会因误差等因素产生偏差,通过综合电机组件的电角度,可以更准确的确定电机组件的关节角度等角度信息。In some implementations, the joint angle determined according to the attitude data of the shaft arm may deviate due to factors such as errors. By synthesizing the electrical angle of the motor assembly, angle information such as the joint angle of the motor assembly can be more accurately determined.
请结合上述实施例参阅图6,图6是本申请实施例提供的云台控制装置600的示意性框图。该云台控制装置600包括处理器601和存储器602。Please refer to FIG. 6 in conjunction with the above embodiment. FIG. 6 is a schematic block diagram of a pan-tilt control apparatus 600 provided by an embodiment of the present application. The pan-tilt control device 600 includes a processor 601 and a memory 602 .
示例性的,处理器601和存储器602通过总线603连接,该总线603比如为I2C(Inter-integrated Circuit)总线。Exemplarily, the processor 601 and the memory 602 are connected through a bus 603, and the bus 603 is, for example, an I2C (Inter-integrated Circuit) bus.
具体地,处理器601可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 601 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
具体地,存储器602可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 602 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
其中,所述处理器601用于运行存储在存储器602中的计算机程序,并在执行所述计算机程序时实现前述的云台控制方法。The processor 601 is configured to run a computer program stored in the memory 602, and implement the aforementioned PTZ control method when executing the computer program.
具体的,云台控制装置能够与云台通信连接,可以理解的,通信连接可以是通过电连接实现,也可以通过无线通信实现。云台控制方法可以应用在云台控制装置中,或者由云台和云台控制装置共同执行实现。Specifically, the pan-tilt control device can be connected to the pan-tilt in communication, and it can be understood that the communication connection can be realized by electrical connection or wireless communication. The PTZ control method can be applied in the PTZ control device, or implemented by the PTZ and the PTZ control device jointly.
可以理解的,云台的负载设备也可以作为云台控制装置与云台通信连接, 而实现云台控制方法。It can be understood that the load device of the PTZ can also be used as a PTZ control device to communicate and connect with the PTZ to implement the PTZ control method.
负载设备可以包括相机,其能够拍摄视频及/或图像,具体地,相机可以为单反相机、摄像机、卡片相机、监控摄像头或者具有拍摄功能的电子设备(例如,手机、平板电脑等)。可以理解的,负载设备也可以包括传感器、麦克风、扬声器、发射装置等。The payload device may include a camera capable of shooting video and/or images, specifically, the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer, etc.) with a shooting function. It can be understood that the load device may also include a sensor, a microphone, a speaker, a transmitting device, and the like.
示例性的,所述处理器601用于运行存储在存储器602中的计算机程序,并在执行所述计算机程序时实现如下步骤:Exemplarily, the processor 601 is configured to run a computer program stored in the memory 602, and implement the following steps when executing the computer program:
获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
本申请实施例提供的云台控制装置的具体原理和实现方式均与前述实施例的云台控制方法类似,此处不再赘述。The specific principles and implementation manners of the pan-tilt control apparatus provided by the embodiments of the present application are similar to the pan-tilt control methods of the foregoing embodiments, and details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的云台控制方法的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and the processor executes the program instructions, so as to realize the provision of the above embodiments. The steps of the PTZ control method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的云台控制装置的内部存储单元,例如所述云台控制装置的硬盘或内存。所述计算机可读存储介质也可以是所述云台控制装置的外部存储设备,例如所述云台控制装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the pan-tilt control apparatus described in any of the foregoing embodiments, such as a hard disk or a memory of the pan-tilt control apparatus. The computer-readable storage medium may also be an external storage device of the PTZ control device, such as a plug-in hard disk equipped on the PTZ control device, a smart memory card (Smart Media Card, SMC), a secure digital ( Secure Digital, SD) card, flash memory card (Flash Card), etc.
请参阅图7,图7是本申请实施例提供的云台10的示意性框图。该云台10包括处理器701和存储器702。Please refer to FIG. 7 . FIG. 7 is a schematic block diagram of a pan/tilt head 10 provided by an embodiment of the present application. The pan/tilt 10 includes a processor 701 and a memory 702 .
示例性的,处理器701和存储器702通过总线703连接,该总线703比如为I2C(Inter-integrated Circuit)总线。Exemplarily, the processor 701 and the memory 702 are connected through a bus 703, and the bus 703 is, for example, an I2C (Inter-integrated Circuit) bus.
具体地,处理器701可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 701 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU) or a digital signal processor (Digital Signal Processor, DSP) or the like.
具体地,存储器702可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 702 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
其中,所述处理器701用于运行存储在存储器702中的计算机程序,并在执行所述计算机程序时实现前述的云台控制方法。The processor 701 is configured to run a computer program stored in the memory 702, and implement the aforementioned PTZ control method when executing the computer program.
如图2所示,云台10能够搭载负载设备20,云台10用于稳定负载设备20并能够改变负载设备20的朝向、角度。示例性的,负载设备20可以包括相机,其能够拍摄视频及/或图像,具体地,相机可以为单反相机、摄像机、卡片相机、监控摄像头或者具有拍摄功能的电子设备(例如,手机、平板电脑等)。可以理解的,负载设备20也可以包括传感器、麦克风、扬声器、发射装置等。As shown in FIG. 2 , the pan/tilt 10 can mount the load device 20 , and the pan/tilt 10 is used to stabilize the load device 20 and can change the orientation and angle of the load device 20 . Exemplarily, the load device 20 may include a camera, which can capture video and/or images, specifically, the camera may be a single-lens reflex camera, a video camera, a card camera, a surveillance camera, or an electronic device (eg, a mobile phone, a tablet computer) with a shooting function. Wait). It can be understood that the load device 20 may also include sensors, microphones, speakers, transmitting devices, and the like.
示例性的,如图2所示,云台10的连接部11可以连接负载设备20。当然负载设备20也可以固定连接在云台10上,在此不做限制。Exemplarily, as shown in FIG. 2 , the connection part 11 of the pan/tilt head 10 may be connected to the load device 20 . Of course, the load device 20 can also be fixedly connected to the PTZ 10, which is not limited here.
示例性的,如图2所示,云台10可以为手持云台,具体的,云台10可以包括手持部12,用于可以手持该手持部12,以带动云台10移动或者保持云台10在某一位置。在一些实施方式中,云台10可以具有基座,该基座能够放置或固定连接在目标物体上。示例性的,目标物体可以为桌面、无人飞行器、无人车、相机支架等。Exemplarily, as shown in FIG. 2 , the gimbal 10 may be a handheld gimbal. Specifically, the gimbal 10 may include a hand-held portion 12 for holding the hand-held portion 12 to drive the gimbal 10 to move or maintain the gimbal. 10 in a certain location. In some embodiments, the head 10 may have a base that can be placed or fixedly attached to a target object. Exemplarily, the target object may be a desktop, an unmanned aerial vehicle, an unmanned vehicle, a camera mount, and the like.
需要说明的是,本申请实施例中仅以手持云台为例,在实际应用中,云台10还可以挂载在无人机、无人车等载体上,此时,云台10的基座可以为无人机、无人车等的机体,本申请实施例对云台10的具体形式并不做限制。It should be noted that the embodiments of the present application only take the handheld gimbal as an example. In practical applications, the gimbal 10 can also be mounted on a carrier such as an unmanned aerial vehicle or an unmanned vehicle. At this time, the base of the gimbal 10 The seat may be the body of an unmanned aerial vehicle, an unmanned vehicle, or the like, and the embodiment of the present application does not limit the specific form of the gimbal 10 .
可以理解的,云台控制方法可以应用在云台10中,也可以应用在负载设备20中,当然也可以由云台10和负载设备20共同执行实现。It can be understood that the pan-tilt control method can be applied to the pan-tilt 10 or the load device 20 , and of course it can also be implemented by the pan-tilt 10 and the load device 20 jointly.
在一些实施方式中,如图3所示,云台10能够与云台控制装置30通信连接,可以理解的,通信连接可以是通过电连接实现,也可以通过无线通信实现。云台控制方法可以应用在云台控制装置30中,或者由云台10和云台控制装置30共同执行实现。In some embodiments, as shown in FIG. 3 , the pan-tilt 10 can be connected in communication with the pan-tilt control device 30 . It can be understood that the communication connection can be realized by electrical connection or wireless communication. The pan-tilt control method may be applied in the pan-tilt control apparatus 30, or implemented by the pan-tilt 10 and the pan-tilt control apparatus 30 jointly.
可以理解的,负载设备20也可以作为云台控制装置30与云台10通信连接,而实现云台控制方法。It can be understood that the load device 20 can also be used as the PTZ control device 30 to communicate with the PTZ 10 to implement the PTZ control method.
示例性的,所述处理器701用于运行存储在存储器702中的计算机程序,并在执行所述计算机程序时实现如下步骤:Exemplarily, the processor 701 is configured to run a computer program stored in the memory 702, and implement the following steps when executing the computer program:
获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
本申请实施例提供的云台的具体原理和实现方式均与前述实施例的云台类似,此处不再赘述。The specific principles and implementation manners of the pan/tilt provided in this embodiment of the present application are similar to those of the pan/tilt in the foregoing embodiments, and details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述计算机程序被处理器执行时使所述处理器实现上述实施例提供的云台控制方法的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and when the computer program is executed by a processor, the processor implements the The steps of the PTZ control method provided by the above embodiments.
其中,所述计算机可读存储介质可以是前述任一实施例所述的云台的内部存储单元,例如所述云台的硬盘或内存。所述计算机可读存储介质也可以是所述云台的外部存储设备,例如所述云台上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the computer-readable storage medium may be an internal storage unit of the pan/tilt described in any of the foregoing embodiments, such as a hard disk or a memory of the pan/tilt. The computer-readable storage medium may also be an external storage device of the PTZ, for example, a plug-in hard disk equipped on the PTZ, a Smart Media Card (SMC), a Secure Digital (SD) ) card, Flash Card, etc.
本申请实施例提供的云台控制装置、云台、计算机可读存储介质,通过根据电机组件两侧轴臂的姿态数据确定电机组件对应的角度信息,从而可以不需要通过“撞限位”的方法确定云台电机的角度信息,可以减少负载设备碰撞的可能性,提升用户体验。而且可以不需要在电机组件安装角度测量装置,电机组件不需要额外的结构件用于支持角度测量装置,电机的体积可以进一步减小,减少了旋转部件,增加了可靠性。并且电路走线可以简化,组装简单,可以节省安装时的工时成本。The pan-tilt control device, pan-tilt, and computer-readable storage medium provided by the embodiments of the present application can determine the angle information corresponding to the motor assembly according to the attitude data of the shaft arms on both sides of the motor assembly, so that it is not necessary to pass the "collision limit" method. The method determines the angle information of the gimbal motor, which can reduce the possibility of collision of the load equipment and improve the user experience. Furthermore, it is not necessary to install the angle measuring device on the motor assembly, and the motor assembly does not need additional structural parts for supporting the angle measuring device, the volume of the motor can be further reduced, the number of rotating parts is reduced, and the reliability is increased. In addition, the circuit wiring can be simplified, the assembly is simple, and the man-hour cost during installation can be saved.
应当理解,在此本申请中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。It should be understood that the terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application.
还应当理解,在本申请和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this application and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (76)

  1. 一种云台控制方法,其特征在于,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;A pan-tilt control method, characterized in that the pan-tilt comprises at least one motor component, the motor component is connected with a first axle arm and a second axle arm, and a first attitude sensor is provided on the first axle arm, A second attitude sensor is provided on the second shaft arm;
    所述云台控制方法包括:The PTZ control method includes:
    获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
    获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
    根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
    根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  2. 根据权利要求1所述的控制方法,其特征在于,所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息,包括:The control method according to claim 1, wherein the determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data comprises:
    根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向;determining a first attitude change direction of the first shaft arm perpendicular to the axis according to the first attitude data;
    根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向;determining a second attitude change direction of the second shaft arm perpendicular to the axis according to the second attitude data;
    根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息。The angle information is determined according to the included angle between the first attitude change direction and the second attitude change direction.
  3. 根据权利要求2所述的控制方法,其特征在于,所述第一姿态变化方向根据所述第一姿态数据在转动平面上的第一投影向量确定,所述第二姿态变化方向根据所述第二姿态数据在所述转动平面上的第二投影向量确定,所述转动平面垂直于所述电机组件的轴线。The control method according to claim 2, wherein the first attitude change direction is determined according to a first projection vector of the first attitude data on the rotation plane, and the second attitude change direction is determined according to the first attitude change direction. The second projection vector of the two attitude data on the rotation plane is determined, and the rotation plane is perpendicular to the axis of the motor assembly.
  4. 根据权利要求2或3所述的控制方法,其特征在于,所述根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向,包括:The control method according to claim 2 or 3, wherein the determining, according to the first attitude data, the first attitude change direction of the first shaft arm perpendicular to the axis comprises:
    确定所述第一姿态数据的平行于所述轴线的第一分量;determining a first component of the first pose data parallel to the axis;
    根据所述第一姿态数据和所述第一分量的差确定第一投影向量;determining a first projection vector according to the difference between the first attitude data and the first component;
    所述根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态 变化方向,包括:The determining of the second attitude change direction of the second shaft arm perpendicular to the axis according to the second attitude data includes:
    确定所述第二姿态数据的平行于所述轴线的第二分量;determining a second component of the second pose data parallel to the axis;
    根据所述第二姿态数据和所述第二分量的差确定第二投影向量。A second projection vector is determined based on the difference between the second pose data and the second component.
  5. 根据权利要求4所述的控制方法,其特征在于,所述确定所述第一姿态数据的平行于所述轴线的第一分量,包括:The control method according to claim 4, wherein the determining the first component of the first attitude data parallel to the axis comprises:
    根据与所述轴线平行的单位向量和所述第一姿态数据的内积确定平行于所述轴线的第一分量;determining a first component parallel to the axis according to an inner product of a unit vector parallel to the axis and the first attitude data;
    所述确定所述第二姿态数据的平行于所述轴线的第二分量,包括:The determining of a second component of the second attitude data parallel to the axis includes:
    根据所述单位向量和所述第二姿态数据的内积确定平行于所述轴线的第二分量。A second component parallel to the axis is determined from the inner product of the unit vector and the second pose data.
  6. 根据权利要求3-5中任一项所述的控制方法,其特征在于,所述根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息,包括:The control method according to any one of claims 3-5, wherein the determining the angle information according to the angle between the first attitude change direction and the second attitude change direction includes the following steps: :
    根据所述第一投影向量和所述第二投影向量之间的角度确定所述电机组件对应的角度信息。The angle information corresponding to the motor assembly is determined according to the angle between the first projection vector and the second projection vector.
  7. 根据权利要求1-6中任一项所述的控制方法,其特征在于,所述第一姿态数据为第一坐标系中的矢量,所述第一坐标系为所述第一姿态传感器的坐标系;所述第二姿态数据为第二坐标系中的矢量,所述第二坐标系为所述第二姿态传感器的坐标系。The control method according to any one of claims 1-6, wherein the first attitude data is a vector in a first coordinate system, and the first coordinate system is the coordinates of the first attitude sensor system; the second attitude data is a vector in a second coordinate system, and the second coordinate system is the coordinate system of the second attitude sensor.
  8. 根据权利要求7所述的控制方法,其特征在于,所述第一姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器;所述第二姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器。The control method according to claim 7, wherein the first attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor; the second attitude sensor includes at least one of the following: Accelerometer, gyroscope, electronic compass, geomagnetic sensor.
  9. 根据权利要求7所述的控制方法,其特征在于,所述第一姿态数据包括加速度和/或地磁矢量;所述第二姿态数据包括加速度和/或地磁矢量。The control method according to claim 7, wherein the first attitude data includes acceleration and/or geomagnetic vector; the second attitude data includes acceleration and/or geomagnetic vector.
  10. 根据权利要求1-9中任一项所述的控制方法,其特征在于,所述角度信息包括所述电机组件对应的关节角度、转向、关节角零位中的至少一种。The control method according to any one of claims 1-9, wherein the angle information includes at least one of the joint angle, steering, and joint angle zero position corresponding to the motor assembly.
  11. 根据权利要求7-9中任一项所述的控制方法,其特征在于,所述电机组件对应的关节角度为零时,所述第一坐标系的各坐标轴的方向与所述第二坐标系的各坐标轴的方向均相同。The control method according to any one of claims 7-9, wherein when the joint angle corresponding to the motor assembly is zero, the direction of each coordinate axis of the first coordinate system and the second coordinate The directions of each coordinate axis of the system are the same.
  12. 根据权利要求7-9中任一项所述的控制方法,其特征在于,在所述根据 所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息之前,所述云台控制方法还包括:The control method according to any one of claims 7-9, wherein before the determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, the The PTZ control method also includes:
    对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,以将所述第一姿态数据和所述第二姿态数据转换至同一坐标系中。Coordinate conversion processing is performed on the first attitude data and/or the second attitude data, so as to convert the first attitude data and the second attitude data into the same coordinate system.
  13. 根据权利要求12所述的控制方法,其特征在于,所述对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,包括:The control method according to claim 12, wherein the performing coordinate transformation processing on the first attitude data and/or the second attitude data comprises:
    将所述第一姿态数据转换为所述第二坐标系中的矢量。Converting the first pose data to a vector in the second coordinate system.
  14. 根据权利要求13所述的控制方法,其特征在于,所述将所述第一姿态数据转换为所述第二坐标系中的矢量,包括:The control method according to claim 13, wherein the converting the first attitude data into a vector in the second coordinate system comprises:
    根据预设的坐标系变换参数,将所述第一姿态数据转换为所述第二坐标系中的矢量。The first attitude data is converted into a vector in the second coordinate system according to preset coordinate system transformation parameters.
  15. 根据权利要求14所述的控制方法,其特征在于,所述坐标系变换参数根据所述电机组件对应的关节角度为零时,所述第一坐标系在所述第二坐标系中的表示确定。The control method according to claim 14, wherein the coordinate system transformation parameter is determined according to the representation of the first coordinate system in the second coordinate system when the joint angle corresponding to the motor assembly is zero. .
  16. 根据权利要求1-15中任一项所述的控制方法,其特征在于,所述第一轴臂和所述第二轴臂包括两个所述电机组件之间的轴臂、所述云台的基座、所述云台的手持部、所述云台的连接部。The control method according to any one of claims 1-15, wherein the first shaft arm and the second shaft arm comprise a shaft arm between the two motor assemblies, the pan/tilt head The base, the hand-held part of the PTZ, and the connecting part of the PTZ.
  17. 根据权利要求1-16中任一项所述的控制方法,其特征在于,所述云台包括能够连接负载设备的连接部,所述第二轴臂较所述第一轴臂靠近所述负载设备。The control method according to any one of claims 1-16, wherein the pan/tilt head comprises a connecting portion capable of being connected to a load device, and the second axle arm is closer to the load than the first axle arm equipment.
  18. 根据权利要求1-17中任一项所述的控制方法,其特征在于,所述第一轴臂连接所述电机组件的定子,所述第二轴臂连接所述电机组件的转子。The control method according to any one of claims 1-17, wherein the first shaft arm is connected to a stator of the motor assembly, and the second shaft arm is connected to a rotor of the motor assembly.
  19. 根据权利要求1-18中任一项所述的控制方法,其特征在于,所述电机组件包括角度测量装置,所述云台控制方法还包括:The control method according to any one of claims 1-18, wherein the motor assembly includes an angle measuring device, and the pan-tilt control method further includes:
    通过所述角度测量装置确定所述电机组件对应的电角度。The electrical angle corresponding to the motor assembly is determined by the angle measuring device.
  20. 根据权利要求19所述的控制方法,其特征在于,所述根据所述角度信息控制所述电机组件,包括:The control method according to claim 19, wherein the controlling the motor assembly according to the angle information comprises:
    根据所述电机组件对应的关节角度和所述电角度控制所述电机组件。The motor assembly is controlled according to the corresponding joint angle of the motor assembly and the electrical angle.
  21. 根据权利要求20所述的控制方法,其特征在于,所述根据所述电机组件对应的关节角度和所述电角度控制所述电机组件,包括:The control method according to claim 20, wherein the controlling the motor assembly according to the joint angle corresponding to the motor assembly and the electrical angle comprises:
    根据所述电角度确定所述电机组件的候选关节角度;determining a candidate joint angle of the motor assembly according to the electrical angle;
    根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度;determining a true joint angle of the motor assembly in the candidate joint angles according to the joint angle;
    根据所述真实关节角度控制所述电机组件。The motor assembly is controlled according to the real joint angle.
  22. 根据权利要求21所述的控制方法,其特征在于,所述根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度,包括:The control method according to claim 21, wherein the determining the real joint angle of the motor assembly from the candidate joint angles according to the joint angle comprises:
    确定最接近所述关节角度的候选关节角度为所述真实关节角度。A candidate joint angle closest to the joint angle is determined as the true joint angle.
  23. 根据权利要求21所述的控制方法,其特征在于,所述根据所述电角度确定所述电机组件的候选关节角度,包括:The control method according to claim 21, wherein the determining the candidate joint angle of the motor assembly according to the electrical angle comprises:
    根据所述电角度与所述电机组件的电角度、关节角度,以及极对数三者之间的关系,确定所述电机组件的候选关节角度。According to the relationship between the electrical angle and the electrical angle of the motor assembly, the joint angle, and the number of pole pairs, a candidate joint angle of the motor assembly is determined.
  24. 根据权利要求1-23中任一项所述的控制方法,其特征在于,所述根据所述角度信息控制所述电机组件,包括:The control method according to any one of claims 1-23, wherein the controlling the motor assembly according to the angle information comprises:
    根据所述角度信息控制所述电机组件,以使所述云台搭载的负载设备的姿态稳定,或者使所述云台搭载的负载设备的姿态沿预设的轨迹运动。The motor assembly is controlled according to the angle information, so as to stabilize the attitude of the load device mounted on the gimbal, or to make the attitude of the load device mounted on the gimbal move along a preset trajectory.
  25. 根据权利要求1-24中任一项所述的控制方法,其特征在于,所述根据所述角度信息控制所述电机组件,包括:The control method according to any one of claims 1-24, wherein the controlling the motor assembly according to the angle information comprises:
    根据所述电机组件对应的关节角度控制所述电机组件,以使所述电机组件的关节角度达到预设角度,或者使所述电机组件的关节角度按预设的轨迹调整。The motor assembly is controlled according to the joint angle corresponding to the motor assembly, so that the joint angle of the motor assembly reaches a preset angle, or the joint angle of the motor assembly is adjusted according to a preset trajectory.
  26. 一种云台控制装置,其特征在于,所述云台控制装置能够与云台通信连接,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;A pan-tilt control device, characterized in that the pan-tilt control device can be communicated and connected with the pan-tilt, the pan-tilt includes at least one motor assembly, and the motor assembly is connected to the first shaft arm and the second shaft arm, so The first axle arm is provided with a first attitude sensor, and the second axle arm is provided with a second attitude sensor;
    所述云台控制装置包括一个或多个处理器,单独或共同地工作,用于执行以下步骤:The pan-tilt control device includes one or more processors, working individually or collectively, for performing the following steps:
    获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
    获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
    根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
    根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  27. 根据权利要求26所述的云台控制装置,其特征在于,所述处理器执行所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息时,用于执行:The pan-tilt control device according to claim 26, wherein when the processor executes the determining of the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, the processor is used for: implement:
    根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向;determining a first attitude change direction of the first shaft arm perpendicular to the axis according to the first attitude data;
    根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向;determining a second attitude change direction of the second shaft arm perpendicular to the axis according to the second attitude data;
    根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息。The angle information is determined according to the included angle between the first attitude change direction and the second attitude change direction.
  28. 根据权利要求27所述的云台控制装置,其特征在于,所述第一姿态变化方向根据所述第一姿态数据在转动平面上的第一投影向量确定,所述第二姿态变化方向根据所述第二姿态数据在所述转动平面上的第二投影向量确定,所述转动平面垂直于所述电机组件的轴线。The pan-tilt control device according to claim 27, wherein the first attitude change direction is determined according to the first projection vector of the first attitude data on the rotation plane, and the second attitude change direction is determined according to the A second projection vector of the second attitude data on the rotation plane is determined, and the rotation plane is perpendicular to the axis of the motor assembly.
  29. 根据权利要求27或28所述的云台控制装置,其特征在于,所述处理器执行所述根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向时,用于执行:The pan-tilt control device according to claim 27 or 28, wherein the processor executes the determining, according to the first attitude data, a first attitude change direction of the first shaft arm perpendicular to the axis when used to execute:
    确定所述第一姿态数据的平行于所述轴线的第一分量;determining a first component of the first pose data parallel to the axis;
    根据所述第一姿态数据和所述第一分量的差确定第一投影向量;determining a first projection vector according to the difference between the first attitude data and the first component;
    所述根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向时,用于执行:When the second attitude change direction of the second shaft arm perpendicular to the axis is determined according to the second attitude data, it is used to execute:
    确定所述第二姿态数据的平行于所述轴线的第二分量;determining a second component of the second pose data parallel to the axis;
    根据所述第二姿态数据和所述第二分量的差确定第二投影向量。A second projection vector is determined based on the difference between the second pose data and the second component.
  30. 根据权利要求29所述的云台控制装置,其特征在于,所述处理器执行所述确定所述第一姿态数据的平行于所述轴线的第一分量时,用于执行:The PTZ control device according to claim 29, wherein when the processor executes the determining of the first component of the first attitude data that is parallel to the axis, the processor is configured to execute:
    根据与所述轴线平行的单位向量和所述第一姿态数据的内积确定平行于所述轴线的第一分量;determining a first component parallel to the axis according to an inner product of a unit vector parallel to the axis and the first attitude data;
    所述确定所述第二姿态数据的平行于所述轴线的第二分量时,用于执行:The determining of the second component of the second attitude data that is parallel to the axis is used to execute:
    根据所述单位向量和所述第二姿态数据的内积确定平行于所述轴线的第二分量。A second component parallel to the axis is determined from the inner product of the unit vector and the second pose data.
  31. 根据权利要求28-30中任一项所述的云台控制装置,其特征在于,所述 处理器执行所述根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息时,用于执行:The pan-tilt control device according to any one of claims 28-30, wherein the processor executes the method according to the angle between the first attitude change direction and the second attitude change direction When the angle information is determined, it is used to execute:
    根据所述第一投影向量和所述第二投影向量之间的角度确定所述电机组件对应的角度信息。The angle information corresponding to the motor assembly is determined according to the angle between the first projection vector and the second projection vector.
  32. 根据权利要求26-31中任一项所述的云台控制装置,其特征在于,所述第一姿态数据为第一坐标系中的矢量,所述第一坐标系为所述第一姿态传感器的坐标系;所述第二姿态数据为第二坐标系中的矢量,所述第二坐标系为所述第二姿态传感器的坐标系。The pan-tilt control device according to any one of claims 26-31, wherein the first attitude data is a vector in a first coordinate system, and the first coordinate system is the first attitude sensor The second attitude data is a vector in the second coordinate system, and the second coordinate system is the coordinate system of the second attitude sensor.
  33. 根据权利要求32所述的云台控制装置,其特征在于,所述第一姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器;所述第二姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器。The pan-tilt control device according to claim 32, wherein the first attitude sensor comprises at least one of the following: an accelerometer, a gyroscope, an electronic compass, a geomagnetic sensor; the second attitude sensor comprises at least one of the following Species: accelerometer, gyroscope, electronic compass, geomagnetic sensor.
  34. 根据权利要求32所述的云台控制装置,其特征在于,所述第一姿态数据包括加速度和/或地磁矢量;所述第二姿态数据包括加速度和/或地磁矢量。The pan-tilt control device according to claim 32, wherein the first attitude data includes acceleration and/or geomagnetic vector; the second attitude data includes acceleration and/or geomagnetic vector.
  35. 根据权利要求26-34中任一项所述的云台控制装置,其特征在于,所述角度信息包括所述电机组件对应的关节角度、转向、关节角零位中的至少一种。The pan-tilt control device according to any one of claims 26-34, wherein the angle information includes at least one of the joint angle, steering, and joint angle zero position corresponding to the motor assembly.
  36. 根据权利要求32-34中任一项所述的云台控制装置,其特征在于,所述电机组件对应的关节角度为零时,所述第一坐标系的各坐标轴的方向与所述第二坐标系的各坐标轴的方向均相同。The pan-tilt control device according to any one of claims 32-34, wherein when the joint angle corresponding to the motor assembly is zero, the direction of each coordinate axis of the first coordinate system is the same as that of the first coordinate system. Each coordinate axis of the two coordinate system has the same direction.
  37. 根据权利要求32-34中任一项所述的云台控制装置,其特征在于,在所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息之前,所述处理器还用于执行:The pan-tilt control device according to any one of claims 32 to 34, wherein, before determining the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, The processor is also used to execute:
    对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,以将所述第一姿态数据和所述第二姿态数据转换至同一坐标系中。Coordinate conversion processing is performed on the first attitude data and/or the second attitude data, so as to convert the first attitude data and the second attitude data into the same coordinate system.
  38. 根据权利要求37所述的云台控制装置,其特征在于,所述处理器执行所述对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理时,用于执行:The PTZ control device according to claim 37, wherein when the processor executes the coordinate transformation processing on the first attitude data and/or the second attitude data, the processor is configured to execute:
    将所述第一姿态数据转换为所述第二坐标系中的矢量。Converting the first pose data to a vector in the second coordinate system.
  39. 根据权利要求38所述的云台控制装置,其特征在于,所述处理器执行所述将所述第一姿态数据转换为所述第二坐标系中的矢量时,用于执行:The PTZ control device according to claim 38, wherein when the processor executes the converting the first attitude data into a vector in the second coordinate system, the processor is configured to execute:
    根据预设的坐标系变换参数,将所述第一姿态数据转换为所述第二坐标系 中的矢量。According to preset coordinate system transformation parameters, the first attitude data is converted into a vector in the second coordinate system.
  40. 根据权利要求39所述的云台控制装置,其特征在于,所述坐标系变换参数根据所述电机组件对应的关节角度为零时,所述第一坐标系在所述第二坐标系中的表示确定。The pan-tilt control device according to claim 39, wherein when the coordinate system transformation parameter is zero according to the joint angle corresponding to the motor assembly, the first coordinate system is in the second coordinate system. Indicates OK.
  41. 根据权利要求26-40中任一项所述的云台控制装置,其特征在于,所述第一轴臂和所述第二轴臂包括两个所述电机组件之间的轴臂、所述云台的基座、所述云台的手持部、所述云台的连接部。The pan/tilt control device according to any one of claims 26-40, wherein the first shaft arm and the second shaft arm comprise a shaft arm between the two motor assemblies, the The base of the gimbal, the hand-held part of the gimbal, and the connecting part of the gimbal.
  42. 根据权利要求26-41中任一项所述的云台控制装置,其特征在于,所述云台包括能够连接负载设备的连接部,所述第二轴臂较所述第一轴臂靠近所述负载设备。The pan-tilt control device according to any one of claims 26-41, wherein the pan-tilt comprises a connecting portion capable of being connected to a load device, and the second pivot arm is closer to the first pivot arm than the first pivot arm. the load equipment.
  43. 根据权利要求26-42中任一项所述的云台控制装置,其特征在于,所述第一轴臂连接所述电机组件的定子,所述第二轴臂连接所述电机组件的转子。The pan-tilt control device according to any one of claims 26-42, wherein the first shaft arm is connected to the stator of the motor assembly, and the second shaft arm is connected to the rotor of the motor assembly.
  44. 根据权利要求26-43中任一项所述的云台控制装置,其特征在于,所述电机组件包括角度测量装置,所述处理器还用于执行:The pan-tilt control device according to any one of claims 26-43, wherein the motor assembly comprises an angle measuring device, and the processor is further configured to execute:
    通过所述角度测量装置确定所述电机组件对应的电角度。The electrical angle corresponding to the motor assembly is determined by the angle measuring device.
  45. 根据权利要求44所述的云台控制装置,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The pan-tilt control device according to claim 44, wherein when the processor executes the control of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述电机组件对应的关节角度和所述电角度控制所述电机组件。The motor assembly is controlled according to the corresponding joint angle of the motor assembly and the electrical angle.
  46. 根据权利要求45所述的云台控制装置,其特征在于,所述处理器执行所述根据所述电机组件对应的关节角度和所述电角度控制所述电机组件时,用于执行:The pan-tilt control device according to claim 45, wherein when the processor executes the control of the motor assembly according to the joint angle corresponding to the motor assembly and the electrical angle, the processor is configured to execute:
    根据所述电角度确定所述电机组件的候选关节角度;determining a candidate joint angle of the motor assembly according to the electrical angle;
    根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度;determining a true joint angle of the motor assembly in the candidate joint angles according to the joint angle;
    根据所述真实关节角度控制所述电机组件。The motor assembly is controlled according to the real joint angle.
  47. 根据权利要求46所述的云台控制装置,其特征在于,所述处理器执行所述根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度时,用于执行:The pan-tilt control device according to claim 46, wherein when the processor executes the determination of the real joint angle of the motor assembly from the candidate joint angles according to the joint angle, the processor is configured to execute:
    确定最接近所述关节角度的候选关节角度为所述真实关节角度。A candidate joint angle closest to the joint angle is determined as the true joint angle.
  48. 根据权利要求46所述的云台控制装置,其特征在于,所述处理器执行 所述根据所述电角度确定所述电机组件的候选关节角度时,用于执行:The pan-tilt control device according to claim 46, wherein when the processor executes the determination of the candidate joint angle of the motor assembly according to the electrical angle, the processor is configured to execute:
    根据所述电角度与所述电机组件的电角度、关节角度,以及极对数三者之间的关系,确定所述电机组件的候选关节角度。According to the relationship between the electrical angle and the electrical angle of the motor assembly, the joint angle, and the number of pole pairs, a candidate joint angle of the motor assembly is determined.
  49. 根据权利要求26-48中任一项所述的云台控制装置,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The pan-tilt control device according to any one of claims 26-48, wherein when the processor executes the control of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述角度信息控制所述电机组件,以使所述云台搭载的负载设备的姿态稳定,或者使所述云台搭载的负载设备的姿态沿预设的轨迹运动。The motor assembly is controlled according to the angle information, so as to stabilize the attitude of the load device mounted on the gimbal, or to make the attitude of the load device mounted on the gimbal move along a preset trajectory.
  50. 根据权利要求26-49中任一项所述的云台控制装置,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The PTZ control device according to any one of claims 26-49, wherein when the processor executes the control of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述电机组件对应的关节角度控制所述电机组件,以使所述电机组件的关节角度达到预设角度,或者使所述电机组件的关节角度按预设的轨迹调整。The motor assembly is controlled according to the joint angle corresponding to the motor assembly, so that the joint angle of the motor assembly reaches a preset angle, or the joint angle of the motor assembly is adjusted according to a preset trajectory.
  51. 一种云台,其特征在于,所述云台包括至少一个电机组件,所述电机组件连接第一轴臂和第二轴臂,所述第一轴臂上设有第一姿态传感器,所述第二轴臂上设有第二姿态传感器;A pan/tilt head, characterized in that the pan/tilt head includes at least one motor assembly, the motor assembly is connected to a first axle arm and a second axle arm, the first axle arm is provided with a first attitude sensor, the A second attitude sensor is arranged on the second shaft arm;
    所述云台还包括一个或多个处理器,单独或共同地工作,用于执行以下步骤:The pan/tilt also includes one or more processors, working individually or collectively, for performing the following steps:
    获取所述第一姿态传感器的第一姿态数据;acquiring first attitude data of the first attitude sensor;
    获取所述第二姿态传感器的第二姿态数据;acquiring second attitude data of the second attitude sensor;
    根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息;Determine the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data;
    根据所述角度信息控制所述电机组件,所述电机组件用于驱动所述第一轴臂和所述第二轴臂中的一个绕所述电机组件的轴线转动。The motor assembly is controlled according to the angle information, and the motor assembly is used to drive one of the first shaft arm and the second shaft arm to rotate around the axis of the motor assembly.
  52. 根据权利要求51所述的云台,其特征在于,所述处理器执行所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息时,用于执行:The pan/tilt according to claim 51, wherein when the processor executes the determining of the angle information corresponding to the motor assembly according to the first attitude data and the second attitude data, the processor is configured to execute:
    根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向;determining a first attitude change direction of the first shaft arm perpendicular to the axis according to the first attitude data;
    根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向;determining a second attitude change direction of the second shaft arm perpendicular to the axis according to the second attitude data;
    根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述 角度信息。The angle information is determined according to the included angle between the first attitude change direction and the second attitude change direction.
  53. 根据权利要求52所述的云台,其特征在于,所述第一姿态变化方向根据所述第一姿态数据在转动平面上的第一投影向量确定,所述第二姿态变化方向根据所述第二姿态数据在所述转动平面上的第二投影向量确定,所述转动平面垂直于所述电机组件的轴线。The gimbal according to claim 52, wherein the first attitude change direction is determined according to a first projection vector of the first attitude data on the rotation plane, and the second attitude change direction is determined according to the first attitude change direction. The second projection vector of the two attitude data on the rotation plane is determined, and the rotation plane is perpendicular to the axis of the motor assembly.
  54. 根据权利要求52或53所述的云台,其特征在于,所述处理器执行所述根据所述第一姿态数据确定所述第一轴臂垂直于所述轴线的第一姿态变化方向时,用于执行:The pan/tilt according to claim 52 or 53, wherein when the processor executes the step of determining the first attitude change direction of the first shaft arm perpendicular to the axis according to the first attitude data, Used to execute:
    确定所述第一姿态数据的平行于所述轴线的第一分量;determining a first component of the first pose data parallel to the axis;
    根据所述第一姿态数据和所述第一分量的差确定第一投影向量;determining a first projection vector according to the difference between the first attitude data and the first component;
    所述根据所述第二姿态数据确定所述第二轴臂垂直于所述轴线的第二姿态变化方向时,用于执行:When the second attitude change direction of the second shaft arm perpendicular to the axis is determined according to the second attitude data, it is used to execute:
    确定所述第二姿态数据的平行于所述轴线的第二分量;determining a second component of the second pose data parallel to the axis;
    根据所述第二姿态数据和所述第二分量的差确定第二投影向量。A second projection vector is determined based on the difference between the second pose data and the second component.
  55. 根据权利要求54所述的云台,其特征在于,所述处理器执行所述确定所述第一姿态数据的平行于所述轴线的第一分量时,用于执行:The PTZ according to claim 54, wherein when the processor executes the determining of the first component of the first attitude data parallel to the axis, the processor is configured to execute:
    根据与所述轴线平行的单位向量和所述第一姿态数据的内积确定平行于所述轴线的第一分量;determining a first component parallel to the axis according to an inner product of a unit vector parallel to the axis and the first attitude data;
    所述确定所述第二姿态数据的平行于所述轴线的第二分量时,用于执行:The determining of the second component of the second attitude data that is parallel to the axis is used to execute:
    根据所述单位向量和所述第二姿态数据的内积确定平行于所述轴线的第二分量。A second component parallel to the axis is determined from the inner product of the unit vector and the second pose data.
  56. 根据权利要求53-55中任一项所述的云台,其特征在于,所述处理器执行所述根据所述第一姿态变化方向和所述第二姿态变化方向之间的夹角确定所述角度信息时,用于执行:The pan/tilt according to any one of claims 53-55, wherein the processor executes the determining of the predetermined position according to the angle between the first attitude change direction and the second attitude change direction. When describing the angle information, it is used to execute:
    根据所述第一投影向量和所述第二投影向量之间的角度确定所述电机组件对应的角度信息。The angle information corresponding to the motor assembly is determined according to the angle between the first projection vector and the second projection vector.
  57. 根据权利要求51-56中任一项所述的云台,其特征在于,所述第一姿态数据为第一坐标系中的矢量,所述第一坐标系为所述第一姿态传感器的坐标系;所述第二姿态数据为第二坐标系中的矢量,所述第二坐标系为所述第二姿态传感器的坐标系。The PTZ according to any one of claims 51 to 56, wherein the first attitude data is a vector in a first coordinate system, and the first coordinate system is the coordinates of the first attitude sensor system; the second attitude data is a vector in a second coordinate system, and the second coordinate system is the coordinate system of the second attitude sensor.
  58. 根据权利要求57所述的云台,其特征在于,所述第一姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器;所述第二姿态传感器包括以下至少一种:加速度计、陀螺仪、电子罗盘、地磁传感器。The pan/tilt according to claim 57, wherein the first attitude sensor includes at least one of the following: an accelerometer, a gyroscope, an electronic compass, and a geomagnetic sensor; the second attitude sensor includes at least one of the following: Accelerometer, gyroscope, electronic compass, geomagnetic sensor.
  59. 根据权利要求57所述的云台,其特征在于,所述第一姿态数据包括加速度和/或地磁矢量;所述第二姿态数据包括加速度和/或地磁矢量。The pan/tilt according to claim 57, wherein the first attitude data includes acceleration and/or geomagnetic vector; the second attitude data includes acceleration and/or geomagnetic vector.
  60. 根据权利要求51-59中任一项所述的云台,其特征在于,所述角度信息包括所述电机组件对应的关节角度、转向、关节角零位中的至少一种。The pan/tilt head according to any one of claims 51-59, wherein the angle information includes at least one of joint angle, steering, and joint angle zero position corresponding to the motor assembly.
  61. 根据权利要求57-59中任一项所述的云台,其特征在于,所述电机组件对应的关节角度为零时,所述第一坐标系的各坐标轴的方向与所述第二坐标系的各坐标轴的方向均相同。The pan/tilt head according to any one of claims 57-59, wherein when the joint angle corresponding to the motor assembly is zero, the direction of each coordinate axis of the first coordinate system and the second coordinate The directions of each coordinate axis of the system are the same.
  62. 根据权利要求57-59中任一项所述的云台,其特征在于,在所述根据所述第一姿态数据和所述第二姿态数据确定所述电机组件对应的角度信息之前,所述处理器还用于执行:The PTZ according to any one of claims 57-59, characterized in that, before the angle information corresponding to the motor assembly is determined according to the first attitude data and the second attitude data, the Processors are also used to execute:
    对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理,以将所述第一姿态数据和所述第二姿态数据转换至同一坐标系中。Coordinate conversion processing is performed on the first attitude data and/or the second attitude data, so as to convert the first attitude data and the second attitude data into the same coordinate system.
  63. 根据权利要求62所述的云台,其特征在于,所述处理器执行所述对所述第一姿态数据和/或所述第二姿态数据进行坐标转换处理时,用于执行:The PTZ according to claim 62, wherein when the processor performs the coordinate transformation processing on the first attitude data and/or the second attitude data, the processor is configured to perform:
    将所述第一姿态数据转换为所述第二坐标系中的矢量。Converting the first pose data to a vector in the second coordinate system.
  64. 根据权利要求63所述的云台,其特征在于,所述处理器执行所述将所述第一姿态数据转换为所述第二坐标系中的矢量时,用于执行:The PTZ according to claim 63, wherein when the processor executes the converting the first attitude data into a vector in the second coordinate system, the processor is configured to execute:
    根据预设的坐标系变换参数,将所述第一姿态数据转换为所述第二坐标系中的矢量。The first attitude data is converted into a vector in the second coordinate system according to preset coordinate system transformation parameters.
  65. 根据权利要求64所述的云台,其特征在于,所述坐标系变换参数根据所述电机组件对应的关节角度为零时,所述第一坐标系在所述第二坐标系中的表示确定。The gimbal according to claim 64, wherein the coordinate system transformation parameter is determined according to the representation of the first coordinate system in the second coordinate system when the joint angle corresponding to the motor assembly is zero. .
  66. 根据权利要求51-65中任一项所述的云台,其特征在于,所述第一轴臂和所述第二轴臂包括两个所述电机组件之间的轴臂、所述云台的基座、所述云台的手持部、所述云台的连接部。The pan/tilt according to any one of claims 51-65, wherein the first pivot arm and the second pivot arm comprise a pivot arm between the two motor assemblies, the pan/tilt The base, the hand-held part of the PTZ, and the connecting part of the PTZ.
  67. 根据权利要求51-66中任一项所述的云台,其特征在于,所述云台包括能够连接负载设备的连接部,所述第二轴臂较所述第一轴臂靠近所述负载设备。The pan/tilt head according to any one of claims 51-66, wherein the pan/tilt head comprises a connecting portion capable of connecting a load device, and the second axle arm is closer to the load than the first axle arm equipment.
  68. 根据权利要求51-67中任一项所述的云台,其特征在于,所述第一轴臂连接所述电机组件的定子,所述第二轴臂连接所述电机组件的转子。The head according to any one of claims 51-67, wherein the first shaft arm is connected to the stator of the motor assembly, and the second shaft arm is connected to the rotor of the motor assembly.
  69. 根据权利要求51-68中任一项所述的云台,其特征在于,所述电机组件包括角度测量装置,所述处理器还用于执行:The pan/tilt according to any one of claims 51-68, wherein the motor assembly includes an angle measuring device, and the processor is further configured to execute:
    通过所述角度测量装置确定所述电机组件对应的电角度。The electrical angle corresponding to the motor assembly is determined by the angle measuring device.
  70. 根据权利要求69所述的云台,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The pan/tilt according to claim 69, wherein when the processor executes the control of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述电机组件对应的关节角度和所述电角度控制所述电机组件。The motor assembly is controlled according to the corresponding joint angle of the motor assembly and the electrical angle.
  71. 根据权利要求70所述的云台,其特征在于,所述处理器执行所述根据所述电机组件对应的关节角度和所述电角度控制所述电机组件时,用于执行:The gimbal according to claim 70, wherein when the processor executes the control of the motor assembly according to the joint angle corresponding to the motor assembly and the electrical angle, the processor is configured to execute:
    根据所述电角度确定所述电机组件的候选关节角度;determining a candidate joint angle of the motor assembly according to the electrical angle;
    根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度;determining a true joint angle of the motor assembly in the candidate joint angles according to the joint angle;
    根据所述真实关节角度控制所述电机组件。The motor assembly is controlled according to the real joint angle.
  72. 根据权利要求71所述的云台,其特征在于,所述处理器执行所述根据所述关节角度在所述候选关节角度中确定所述电机组件的真实关节角度时,用于执行:The pan/tilt according to claim 71, wherein when the processor executes the determining of the real joint angle of the motor assembly from the candidate joint angles according to the joint angle, the processor is configured to execute:
    确定最接近所述关节角度的候选关节角度为所述真实关节角度。A candidate joint angle closest to the joint angle is determined as the true joint angle.
  73. 根据权利要求71所述的云台,其特征在于,所述处理器执行所述根据所述电角度确定所述电机组件的候选关节角度时,用于执行:The gimbal according to claim 71, wherein when the processor executes the determining the candidate joint angle of the motor assembly according to the electrical angle, the processor is configured to execute:
    根据所述电角度与所述电机组件的电角度、关节角度,以及极对数三者之间的关系,确定所述电机组件的候选关节角度。According to the relationship between the electrical angle and the electrical angle of the motor assembly, the joint angle, and the number of pole pairs, a candidate joint angle of the motor assembly is determined.
  74. 根据权利要求51-73中任一项所述的云台,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The PTZ according to any one of claims 51-73, wherein when the processor executes the controlling of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述角度信息控制所述电机组件,以使所述云台搭载的负载设备的姿态稳定,或者使所述云台搭载的负载设备的姿态沿预设的轨迹运动。The motor assembly is controlled according to the angle information, so as to stabilize the attitude of the load device mounted on the gimbal, or to make the attitude of the load device mounted on the gimbal move along a preset trajectory.
  75. 根据权利要求51-74中任一项所述的云台,其特征在于,所述处理器执行所述根据所述角度信息控制所述电机组件时,用于执行:The PTZ according to any one of claims 51-74, wherein when the processor executes the controlling of the motor assembly according to the angle information, the processor is configured to execute:
    根据所述电机组件对应的关节角度控制所述电机组件,以使所述电机组件的关节角度达到预设角度,或者使所述电机组件的关节角度按预设的轨迹调整。The motor assembly is controlled according to the joint angle corresponding to the motor assembly, so that the joint angle of the motor assembly reaches a preset angle, or the joint angle of the motor assembly is adjusted according to a preset trajectory.
  76. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-25中任一项所述的云台控制方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method described in any one of claims 1-25. The PTZ control method described above.
PCT/CN2020/110901 2020-08-24 2020-08-24 Gimbal control method, gimbal control device, gimbal, and storage medium WO2022040883A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/110901 WO2022040883A1 (en) 2020-08-24 2020-08-24 Gimbal control method, gimbal control device, gimbal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/110901 WO2022040883A1 (en) 2020-08-24 2020-08-24 Gimbal control method, gimbal control device, gimbal, and storage medium

Publications (1)

Publication Number Publication Date
WO2022040883A1 true WO2022040883A1 (en) 2022-03-03

Family

ID=80354362

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110901 WO2022040883A1 (en) 2020-08-24 2020-08-24 Gimbal control method, gimbal control device, gimbal, and storage medium

Country Status (1)

Country Link
WO (1) WO2022040883A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978441A (en) * 2016-06-15 2016-09-28 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle/motor control device and method
CN106873641A (en) * 2017-03-20 2017-06-20 普宙飞行器科技(深圳)有限公司 The miniature head of three axles and its control method
CN106953553A (en) * 2017-03-12 2017-07-14 纳恩博(北京)科技有限公司 The control method and device of a kind of head and horizontal stage electric machine
CN206639050U (en) * 2017-03-20 2017-11-14 普宙飞行器科技(深圳)有限公司 The miniature head of three axles
CN108762324A (en) * 2018-05-23 2018-11-06 深圳市道通智能航空技术有限公司 Horizontal stage electric machine angle and angular speed evaluation method, device, holder and aircraft
CN111007889A (en) * 2019-11-04 2020-04-14 普宙飞行器科技(深圳)有限公司 Method and device for acquiring angle of rotating frame of motor shaft of holder, storage medium, electronic equipment and unmanned aerial vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978441A (en) * 2016-06-15 2016-09-28 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle/motor control device and method
CN106953553A (en) * 2017-03-12 2017-07-14 纳恩博(北京)科技有限公司 The control method and device of a kind of head and horizontal stage electric machine
CN106873641A (en) * 2017-03-20 2017-06-20 普宙飞行器科技(深圳)有限公司 The miniature head of three axles and its control method
CN206639050U (en) * 2017-03-20 2017-11-14 普宙飞行器科技(深圳)有限公司 The miniature head of three axles
CN108762324A (en) * 2018-05-23 2018-11-06 深圳市道通智能航空技术有限公司 Horizontal stage electric machine angle and angular speed evaluation method, device, holder and aircraft
CN111007889A (en) * 2019-11-04 2020-04-14 普宙飞行器科技(深圳)有限公司 Method and device for acquiring angle of rotating frame of motor shaft of holder, storage medium, electronic equipment and unmanned aerial vehicle

Similar Documents

Publication Publication Date Title
WO2019223270A1 (en) Method and apparatus for estimating angle and angular velocity of electric motor of gimbal, and gimbal and aerial vehicle
WO2019223271A1 (en) Correction method and device for yaw of aircraft, and aircraft
CN109000612B (en) Equipment angle estimation method and device, camera shooting assembly and aircraft
WO2018184467A1 (en) Method and device for detecting posture of ball head
WO2021027638A1 (en) Yaw angle fusion method and apparatus, and aerial vehicle
US11930273B2 (en) Vibration damping gimbal sleeve for an aerial vehicle
WO2019119896A1 (en) Method and apparatus for detecting motor rotor position, electronic device, and unmanned aircraft
US20200332944A1 (en) Control method for non-orthogonal gimbal, gimbal thereof, and storage device
US11156905B2 (en) Control method for gimbal, controller, and gimbal
CN203705964U (en) Stable closed-loop control device of airborne 3-DOF pan-tilt
US20200256506A1 (en) Method for controlling gimbal, gimbal, control system, and movable device
CN208299634U (en) A kind of motor, holder and unmanned vehicle
WO2021037047A1 (en) Yaw angle correction method and apparatus for aircraft, and aircraft
WO2019119340A1 (en) Gimbal control method and device, gimbal, and unmanned aerial vehicle
CN112720476A (en) Mechanical arm control method, mechanical arm control device, medium and electronic equipment
WO2021032201A1 (en) Yaw angle fusion method and device, and aircraft
JP2017522588A (en) Imaging control method, apparatus, and pan head apparatus
JP2017073753A (en) Correction method, program, and electronic apparatus
CN112135124A (en) Method, device and system for calibrating and detecting position of holder
WO2020019260A1 (en) Calibration method for magnetic sensor, control terminal and movable platform
CN111977006A (en) Method and device for initializing joint angle and aircraft
WO2020042159A1 (en) Rotation control method and apparatus for gimbal, control device, and mobile platform
WO2020062089A1 (en) Magnetic sensor calibration method and movable platform
WO2018191971A1 (en) Cradle head control method and cradle head
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1