WO2019227384A1 - Pan-tilt control method and pan-tilt - Google Patents

Pan-tilt control method and pan-tilt Download PDF

Info

Publication number
WO2019227384A1
WO2019227384A1 PCT/CN2018/089232 CN2018089232W WO2019227384A1 WO 2019227384 A1 WO2019227384 A1 WO 2019227384A1 CN 2018089232 W CN2018089232 W CN 2018089232W WO 2019227384 A1 WO2019227384 A1 WO 2019227384A1
Authority
WO
WIPO (PCT)
Prior art keywords
attitude
gimbal
joint angle
pan
driver
Prior art date
Application number
PCT/CN2018/089232
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/CN2018/089232 priority Critical patent/WO2019227384A1/en
Priority to CN201880016955.2A priority patent/CN110431507A/en
Publication of WO2019227384A1 publication Critical patent/WO2019227384A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • G05D3/20Control of position or direction using feedback using a digital comparing device

Abstract

A pan-tilt control method. The pan-tilt comprises a base, at least one rotating shaft sequentially connected to the base, and a load apparatus connected to an end of the rotating shaft, wherein the rotating shaft is provided with a driver. The method comprises: acquiring an initial posture of the pan-tilt and a current posture of the pan-tilt; calculating a driving amount of the driver at the at least one rotating shaft according to a posture difference between the current posture of the pan-tilt head and the initial posture of the pan-tilt head; and controlling the driver so that same drives, in accordance with the driving amount, the at least one rotating shaft to move.

Description

一种云台控制方法及云台PTZ control method and PTZ 技术领域Technical field
本公开涉及云台领域,尤其涉及一种云台控制方法及云台。The present disclosure relates to the field of gimbals, and in particular, to a gimbal control method and a gimbal.
背景技术Background technique
在日常生活使用中,人们使用手机、相机等拍摄设备直接拍摄时,容易因手持不稳而出现画面抖动的情况,导致不能拍摄出理想的图片或视频,因此,通过云台等稳定器搭载拍摄设备进行拍摄以保证拍摄设备的构图稳定,已经成为现在常见的拍摄方式。但是,现有的云台中,往往只有几种固定的模式供用户选择,例如横拍、竖拍或手电筒模式,达到某一种角度上的增稳。用户在使用过程中,只能够控制手机、相机等朝向一个特定的方向或只在某一个转轴上实现跟随,不能够满足用户任意构图的需求或第一人称视角拍摄的需求。In daily use, when people use mobile phones, cameras and other shooting devices to shoot directly, it is easy to shake the screen due to instability in their hands, which makes it impossible to take ideal pictures or videos. Therefore, shooting with stabilizers such as gimbals Equipment to shoot to ensure the stability of the composition of the shooting equipment has become a common shooting method now. However, in the existing PTZ, there are often only a few fixed modes for users to choose, such as horizontal, vertical, or flashlight modes, to achieve stabilization at a certain angle. During use, the user can only control the mobile phone, camera, etc. to face a specific direction or only follow on a certain rotation axis, and cannot meet the needs of the user's arbitrary composition or the needs of first-person perspective shooting.
公开内容Public content
有鉴于此,本公开提供了一种云台控制方法和云台,能够实现任意角度上的增稳和跟随,从而满足用户任意构图的需求和第一人称视角拍摄的需求。In view of this, the present disclosure provides a PTZ control method and a PTZ, which can achieve stabilization and follow at any angle, thereby satisfying the user's need for arbitrary composition and the need for first-person perspective shooting.
本公开实施例提供了一种云台控制方法,所述云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置,所述转轴处设置有驱动器,所述方法包括:获取所述云台的初始姿态和所述云台的当前姿态;根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。An embodiment of the present disclosure provides a method for controlling a pan / tilt head. The pan / tilt head includes a base, at least one rotating shaft connected to the base in sequence, and a load device connected to the end of the rotating shaft. A driver is disposed at the rotating shaft. The method includes: obtaining an initial attitude of the gimbal and a current attitude of the gimbal; and calculating a position at the at least one rotation axis based on a difference between the attitude of the current gimbal and the initial attitude of the gimbal. A driving amount of the driver; controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
本公开实施例还提供了一种云台,所述云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置,所述转轴处设置有驱动器,所述云台还包括:存储器,用于存储可执行指令;处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:获取所述云台的初始姿态和所述云台的当前姿态;根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。An embodiment of the present disclosure further provides a pan / tilt head. The pan / tilt head includes a base, at least one rotating shaft connected to the base in sequence, and a load device connected to the end of the rotating shaft. A driver is provided at the rotating shaft. The pan / tilt head further includes: a memory for storing executable instructions; a processor for executing the executable instructions stored in the memory to perform the following operations: obtaining an initial attitude of the pan / tilt and the cloud The current attitude of the stage; calculating the driving amount of the driver at the at least one rotation axis according to the attitude difference between the current attitude of the gimbal and the initial attitude of the gimbal; controlling the driver to drive according to the driving amount The at least one rotating shaft moves.
本公开实施例还提供了一种计算机可读存储介质,其存储有可执行指令,所述可执行指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行以上任一所述的云台控制方法。An embodiment of the present disclosure further provides a computer-readable storage medium that stores executable instructions. When the executable instructions are executed by one or more processors, the one or more processors can execute the foregoing. Any one of the pan / tilt control methods.
从上述技术方案可以看出,本公开实施例至少具有以下有益效果:根据云台的当前姿态和云台的初始姿态的姿态差,确定驱动量,并控制驱动器按照驱动量驱动转轴运动,使得负载装置的姿态跟随基座的姿态,以此负载装置能够实现任意的构图或任意的第一人称视角的拍摄。As can be seen from the above technical solutions, the embodiments of the present disclosure have at least the following beneficial effects: determining the driving amount according to the attitude difference between the current attitude of the gimbal and the initial attitude of the gimbal, and controlling the driver to drive the shaft to move according to the driving amount, so that The attitude of the device follows the attitude of the base, so that the load device can realize arbitrary composition or arbitrary first-person perspective shooting.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the description. Together with the following specific embodiments, the drawings are used to explain the present disclosure, but do not constitute a limitation on the present disclosure. In the drawings:
图1为本公开实施例的三轴云台的结构图。FIG. 1 is a structural diagram of a three-axis head in an embodiment of the present disclosure.
图2为本公开实施例的云台控制方法的流程图。FIG. 2 is a flowchart of a gimbal control method according to an embodiment of the present disclosure.
图3为步骤S202的子步骤的流程图。FIG. 3 is a flowchart of the sub-steps of step S202.
图4为第一种方案的云台跟随的流程示意图。FIG. 4 is a schematic flowchart of a gimbal following the first solution.
图5为图4中相机的目标姿态四元数的确定示意图。FIG. 5 is a schematic diagram of determining a target attitude quaternion of the camera in FIG. 4.
图6为第二种方案的云台跟随的流程示意图。FIG. 6 is a schematic flowchart of a gimbal following the second solution.
图7为图6中目标关节角的确定示意图。FIG. 7 is a schematic diagram of determining a target joint angle in FIG. 6.
图8为本公开实施例的云台的示意图。FIG. 8 is a schematic diagram of a pan / tilt according to an embodiment of the present disclosure.
图9为本公开另一实施例的云台的示意图。FIG. 9 is a schematic diagram of a pan / tilt according to another embodiment of the present disclosure.
【符号说明】【Symbol Description】
101、横滚轴驱动器   102、偏航轴驱动器101 、 Rolling axis driver 102 、 Yaw axis driver
103、俯仰轴驱动器   104、手柄103 、 Pitch axis driver 104 、 Handle
105、基座           106、相机105. Dock 106, camera
具体实施方式Detailed ways
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件 的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used herein, the terms "including", "comprising" and the like indicate the presence of stated features, steps, operations, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted to have meanings consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。本领域技术人员还应理解,实质上任意表示两个或更多可选项目的转折连词和/或短语,无论是在说明书、权利要求书还是附图中,都应被理解为给出了包括这些项目之一、这些项目任一方、或两个项目的可能性。例如,短语“A或B”应当被理解为包括“A”或“B”、或“A和B”的可能性。Where expressions such as "at least one of A, B, C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "having A, B, and C "A system of at least one of" shall include, but is not limited to, a system with A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc. ). Where expressions such as "at least one of A, B, or C" are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "having A, B, or C "A system of at least one of" shall include, but is not limited to, a system with A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc. ). Those skilled in the art should also understand that inflection conjunctions and / or phrases that essentially arbitrarily represent two or more optional items, whether in the description, claims, or drawings, should be understood as giving the inclusion of these The possibility of one of these projects, either of them, or both. For example, the phrase "A or B" should be understood to include the possibility of "A" or "B", or "A and B".
本公开一实施例提供了一种云台控制方法,该云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置,所述转轴处设置有驱动器,该方法包括:获取所述云台的初始姿态和所述云台的当前姿态;根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。An embodiment of the present disclosure provides a method for controlling a pan / tilt head. The pan / tilt head includes a base, at least one rotating shaft connected to the base in sequence, and a load device connected to the end of the rotating shaft. A driver is disposed at the rotating shaft. The method includes: obtaining an initial attitude of the gimbal and a current attitude of the gimbal; and calculating a position at the at least one rotation axis based on a difference in attitude between the current attitude of the gimbal and the initial attitude of the gimbal. The driving amount of the driver; controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
需要说明的是,转轴的个数可以为两个或者三个,本公开以三轴云台为例进行描述。负载装置一般为相机、摄像机或者其他拍摄设备,本公开以相机为例进行说明。详见图1,本公开实施例的三轴云台包括三个转轴,即横滚轴、偏航轴和俯仰轴,三轴驱动器即横滚轴驱动器101、偏航轴驱动器102和俯仰轴驱动器103分别位于横滚轴、偏航轴和俯仰轴上;与各 转轴相连的基座105、连接于转轴末端的相机106、与基座固接的手柄104。It should be noted that the number of the rotating shafts may be two or three, and the present disclosure takes a three-axis gimbal as an example for description. The load device is generally a camera, a video camera, or other photographing equipment, and this disclosure uses a camera as an example for description. See FIG. 1 for details. The three-axis head of the embodiment of the present disclosure includes three rotation axes, that is, a roll axis, a yaw axis, and a pitch axis. A three-axis driver is a roll axis driver 101, a yaw axis driver 102, and a pitch axis driver. 103 is located on a roll axis, a yaw axis, and a pitch axis, respectively; a base 105 connected to each rotation axis, a camera 106 connected to the end of the rotation axis, and a handle 104 fixed to the base.
图2为本公开实施例的云台控制方法的流程图,如图2所示,该方法包括步骤S201~S203。FIG. 2 is a flowchart of a PTZ control method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes steps S201 to S203.
在步骤S201中,获取所述云台的初始姿态和所述云台的当前姿态。In step S201, an initial attitude of the gimbal and a current attitude of the gimbal are acquired.
一般云台的初始姿态和当前姿态可以通过传感器获得,所述传感器有两类。第一类为设置于基座上和相机上的传感器,获取基座的姿态作为云台的初始姿态,相机的姿态作为云台的当前姿态;第二类为设置于至少一个转轴处的传感器,用于获取转轴的初始时刻和当前时刻的关节角作为云台的初始姿态和当前姿态。两类传感器对应两种控制方案,第一种为整体姿态闭环控制,第二种为关节角闭环控制。The initial attitude and current attitude of a general gimbal can be obtained by sensors, and there are two types of sensors. The first type is a sensor provided on the base and the camera, and the attitude of the base is obtained as the initial attitude of the gimbal, and the attitude of the camera is used as the current attitude of the gimbal; the second type is a sensor provided on at least one axis It is used to obtain the initial time and the joint angle of the current time as the initial and current attitude of the gimbal. Two types of sensors correspond to two control schemes. The first is closed-loop control of the overall attitude and the second is closed-loop control of the joint angle.
这里,云台的初始姿态指的是一个控制周期开始时,开始时的基座的姿态或转轴的关节角,云台的当前姿态指的是在这个控制周期内的某一时刻的基座的姿态或转轴的关节角。可以理解的是,在一个控制周期中云台的当前姿态可以和云台的初始姿态不同。具体的在一个控制周期中的云台控制方法将在下文对图4和图6的说明中提到。Here, the initial attitude of the gimbal refers to the attitude of the base or the joint angle of the rotating shaft at the beginning of a control cycle, and the current attitude of the gimbal refers to the base of the base at a certain time during this control cycle. The joint angle of the attitude or pivot. It can be understood that the current attitude of the gimbal in a control cycle can be different from the initial attitude of the gimbal. The specific PTZ control method in a control cycle will be mentioned in the following description of FIG. 4 and FIG. 6.
在步骤S202中,根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少个转轴处的所述驱动器(可以为电机)的驱动量,驱动量指驱动器驱动转轴转动的角度。以三轴云台为例,云台的三个轴横滚轴、偏航轴和俯仰轴处的转轴电机分别按照计算得到的驱动量驱动各个转轴转动一定的角度后,云台将由当前姿态转动至当前姿态和初始姿态之间的中间姿态。这里的中间姿态可以是当前姿态和初始姿态变化范围中的任一个姿态。由此,云台可以平滑地跟随初始姿态,避免例如自拍杆式的刚性跟随运动而导致的相机拍摄抖动、成像不清、损坏驱动器的问题。In step S202, the driving amount of the driver (which may be a motor) at the at least one rotation axis is calculated according to the attitude difference between the current attitude of the gimbal and the initial attitude of the gimbal. The driving amount refers to the driving of the driver The rotation angle of the shaft. Take the three-axis gimbal as an example, the three axis of the gimbal's roll axis, yaw axis and pitch axis respectively drive the rotation axis by a certain angle according to the calculated driving amount, the gimbal will rotate from the current attitude To the intermediate pose between the current pose and the initial pose. The intermediate posture here may be any one of the current posture and the initial posture variation range. As a result, the gimbal can smoothly follow the initial posture, avoiding problems such as camera shake, unclear imaging, and damage to the driver caused by, for example, a rigid following movement of a selfie stick.
对于第一种方案,所述姿态差为基座的姿态和相机的姿态的姿态差异值。对于第二种方案,姿态差为初始关节角与当前关节角的关节角差异值。For the first solution, the attitude difference is an attitude difference between the attitude of the base and the attitude of the camera. For the second scheme, the pose difference is the joint angle difference between the initial joint angle and the current joint angle.
在步骤S203中,控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。In step S203, the driver is controlled to drive the at least one rotating shaft to move according to the driving amount.
在本公开的一些实施例中,该方法在步骤S201之前还可以包括步骤S200,确定所述云台进入跟随模式。In some embodiments of the present disclosure, before step S201, the method may further include step S200 to determine that the PTZ enters a follow mode.
跟随模式指,当与基座固接的手柄调整时,基座的姿态改变时,相机 能够随着当前基座的姿态平滑地调整自身的姿态,以控制和基座姿态的姿态差保持在预设的阈值范围之内,这样相机就能实现任意的构图或任意的第一人称视角的拍摄,同时获取的画面也能够受用户控制,达到更好的成像效果。由此,控制驱动器按照驱动量驱动至少一个转轴运动,在步骤S203之后,能够使得云台的当前姿态跟随云台的初始姿态。Following mode means that when the handle fixed to the base is adjusted and the attitude of the base is changed, the camera can smoothly adjust its own attitude with the current attitude of the base to maintain the attitude difference between the control and the base attitude Within the set threshold, the camera can achieve arbitrary composition or arbitrary first-person perspective shooting, and the acquired images can also be controlled by the user to achieve better imaging results. Therefore, the control driver drives at least one rotating shaft to move according to the driving amount, and after step S203, the current attitude of the gimbal can follow the initial attitude of the gimbal.
请参照图3,在一些实施例中,步骤S202还包括以下子步骤:Referring to FIG. 3, in some embodiments, step S202 further includes the following sub-steps:
S2021:根据所述云台的当前姿态和所述云台的初始姿态的姿态差,确定云台的目标姿态。S2021: Determine a target attitude of the gimbal according to a difference between a current attitude of the gimbal and an initial attitude of the gimbal.
由于用户控制与基座固接的手柄转动,带动云台转动,因此,云台的当前姿态与其初始姿态存在姿态差异值,即姿态差。根据该姿态差确定云台的目标姿态。两种方案的云台的目标姿态的确定方法不一样,具体的确定方法将在后续说明。Because the user controls the rotation of the handle fixedly connected to the base to drive the gimbal to rotate, there is a difference in attitude between the current attitude of the gimbal and its initial attitude, that is, the attitude difference. The target attitude of the gimbal is determined according to the attitude difference. The determination methods of the target poses of the two solutions are different, and the specific determination methods will be described later.
S2022:根据所述目标姿态计算所述至少一个转轴处的所述驱动器的驱动量。S2022: Calculate a driving amount of the driver at the at least one rotating shaft according to the target attitude.
云台从当前姿态运动到目标姿态将会有一个姿态变化,将这个姿态变化分解至俯仰轴、横滚轴和偏航轴这三个转轴的方向,若三个轴向上都有姿态变化的分量,则这三个转轴的三个驱动器都有对应的不为0的驱动量;若目标姿态在某个轴向上没有分量,则该转轴的驱动器对应的驱动量为0。There will be a change in attitude from the current attitude of the gimbal to the target attitude. This attitude change will be decomposed into the directions of the three rotation axes of the pitch axis, roll axis and yaw axis. Component, the three drives of the three rotating shafts have corresponding driving amounts other than 0; if the target attitude has no component in a certain axis, the corresponding driving amount of the driving of the rotating shaft is 0.
实施例1Example 1
在实施例1中,将结合图4详细介绍第一种方案的具体实施方式。图4为第一种方案的云台跟随的流程示意图,如图4所示,该方案具体包括以下步骤:In Embodiment 1, a specific implementation manner of the first solution will be described in detail with reference to FIG. 4. Figure 4 is a schematic diagram of the flow followed by the PTZ in the first solution. As shown in Figure 4, the solution specifically includes the following steps:
步骤S401,确定所述云台进入跟随模式。Step S401: It is determined that the PTZ enters a follow mode.
跟随模式指,当与基座固接的手柄调整时,基座的姿态改变时,相机能够随着当前基座的姿态平滑地调整自身的姿态,以控制和基座姿态的姿态差保持在预设的姿态差阈值范围之内,这样相机就能实现任意的构图或任意的第一人称视角的拍摄,同时获取的画面也能够受用户控制,达到更好的成像效果。在一些实施例中,用户可以通过云台上的对应的控制模块控制云台进入跟随模式,也可以通过连接云台的遥控装置或手机APP等外部控制模块控制云台进入跟随模式。Following mode means that when the handle fixed to the base is adjusted and the attitude of the base is changed, the camera can smoothly adjust its own attitude with the current attitude of the base to maintain the attitude difference between the control and the base attitude Within the range of the attitude difference threshold, the camera can achieve arbitrary composition or arbitrary first-person perspective shooting, and the acquired images can also be controlled by the user to achieve better imaging effects. In some embodiments, the user can control the PTZ to follow the mode through the corresponding control module on the PTZ, and can also control the PTZ to enter the follow mode through an external control module such as a remote control device connected to the PTZ or a mobile phone APP.
步骤S402,确定基座的姿态和相机的姿态。Step S402: Determine the posture of the base and the posture of the camera.
所述云台的初始姿态包括所述基座的姿态,所述云台的当前姿态包括所述相机的姿态。将传感器分别设置在基座和相机的重心上,该传感器可以为惯性测量单元(IMU),IMU一般采用多轴磁传感器,本质上是精准度极高的小型指南针,指示方向和速度,以此获取基座的姿态和云台的姿态,获取基座的姿态和云台的姿态。需要说明的是,该传感器也可以为磁罗盘传感器、GNSS模块、加速度计和陀螺仪,在此不再赘述。The initial pose of the gimbal includes the pose of the base, and the current pose of the gimbal includes the pose of the camera. Set the sensors on the center of gravity of the base and the camera respectively. The sensor can be an inertial measurement unit (IMU). The IMU generally uses a multi-axis magnetic sensor, which is essentially a small compass with extremely high accuracy. It indicates the direction and speed. Get the attitude of the base and the attitude of the gimbal, get the attitude of the base and the attitude of the gimbal. It should be noted that the sensor may also be a magnetic compass sensor, a GNSS module, an accelerometer, and a gyroscope, and details are not described herein again.
步骤S403,计算基座的姿态和相机的姿态的姿态差。In step S403, the attitude difference between the attitude of the base and the attitude of the camera is calculated.
所述姿态差为基座的姿态和相机的姿态的姿态差异值。举例来说,云台的当前姿态在横滚轴上的分量为逆时针方向90°,云台的初始姿态在横滚轴上的分量为0°,姿态差即为90°。The attitude difference is an attitude difference between the attitude of the base and the attitude of the camera. For example, the component of the current attitude of the gimbal on the roll axis is 90 ° counterclockwise, the component of the initial attitude of the gimbal on the roll axis is 0 °, and the attitude difference is 90 °.
步骤S404,判断姿态差是否在姿态差阈值范围内。In step S404, it is determined whether the attitude difference is within the attitude difference threshold.
为了防止过于刚性地跟随初始姿态的问题,云台控制方法还包括姿态差阈值范围,具体包括:确定所述姿态差是否在姿态差阈值范围内,若所述姿态差超过所述姿态差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量,即进行步骤S405~S408,以此实现相机对基座的跟随;若所述姿态差不超过所述姿态差阈值范围,则重新获取所述基座的姿态和所述相机的姿态,即返回至步骤S402。In order to prevent the problem of following the initial attitude too rigidly, the PTZ control method further includes an attitude difference threshold range, which specifically includes: determining whether the attitude difference is within the attitude difference threshold range, and if the attitude difference exceeds the attitude difference threshold range , Then calculate the driving amount of the driver at the at least one rotation axis, that is, perform steps S405 to S408 to implement the camera to follow the base; if the attitude difference does not exceed the attitude difference threshold range, restart Acquire the posture of the base and the posture of the camera, and return to step S402.
姿态差阈值范围可以根据用户的实际需求进行调整,一般与应用场景有关。若在某些应用场景中,例如极限运动中,用户希望有更好的第一人称视角拍摄同时保证一定的增稳效果避免画面过于抖动,则该姿态差阈值范围就会选择相对较小的范围;又例如,在日常的手持云台拍摄过程中,用户希望有更好的稳定画面同时保证一定的第一人称效果,则该姿态差阈值范围就会选择相对较大的范围。在一些场景中,可以认为姿态差阈值范围越小,云台跟随越趋近于刚性跟随,越能够实现第一人称的效果;姿态差阈值范围越大,云台跟随越趋近于增稳,越能够实现平稳画面。The attitude difference threshold range can be adjusted according to the actual needs of the user, and is generally related to the application scenario. If in some application scenarios, such as extreme sports, the user wishes to have a better first-person perspective shooting while ensuring a certain stabilization effect to avoid too much jitter in the picture, the relatively small range of the attitude difference threshold range will be selected; For another example, in the daily shooting process of a handheld PTZ, if the user wants a better stable picture while ensuring a certain first-person effect, the threshold range of the attitude difference will choose a relatively large range. In some scenarios, it can be considered that the smaller the range of the attitude difference threshold, the closer the gimbal follower is to the rigid follower, and the more the first person effect can be achieved; the larger the range of the attitude difference threshold, the closer the gimbal follower is to stabilization, Can achieve a smooth picture.
在步骤S405中,确定基座姿态四元数和相机姿态四元数。In step S405, the base attitude quaternion and the camera attitude quaternion are determined.
在现在大多数的云台的实际应用中,均是使用欧拉角来显示云台姿态的。使用欧拉角显示云台姿态的好处在于非常直观,用户能够从偏航角、俯仰角、横滚角的数值来直观地得知云台的姿态。然而,使用欧拉角姿态 在本公开实施例中存在着若干问题。如果使用欧拉角来进行姿态计算,在通过目标姿态确定驱动量的过程中,会出现奇异和多解的问题,导致不能很好地确定各个轴的驱动量,影响用户体验。为了克服上述缺点,本公开实施例引进四元数,确定基座姿态四元数和相机姿态四元数,实现整个空间任意方向的姿态运算。In most practical applications of gimbals today, Euler angles are used to display gimbal attitude. The advantage of using Euler angles to display the attitude of the gimbal is that it is very intuitive. Users can intuitively know the attitude of the gimbal from the values of yaw, pitch, and roll angles. However, there are several problems with using Euler angle poses in embodiments of the present disclosure. If the Euler angle is used for attitude calculation, in the process of determining the driving amount through the target attitude, problems of singularity and multiple solutions will occur, resulting in a failure to determine the driving amount of each axis well and affecting the user experience. In order to overcome the above disadvantages, the embodiment of the present disclosure introduces a quaternion, determines the base attitude quaternion and the camera attitude quaternion, and realizes attitude calculation in any direction in the entire space.
更具体地,当所述姿态差超过所述姿态差阈值范围,计算所述至少一个转轴处的所述驱动器的驱动量之前,可以根据所述基座姿态四元数和相机姿态四元数,通过平滑插值算法计算所述相机的目标姿态四元数,即进行步骤S406的操作。More specifically, when the attitude difference exceeds the attitude difference threshold range, before calculating the driving amount of the driver at the at least one rotation axis, the attitude quaternion of the base and the camera attitude quaternion may be used, The target attitude quaternion of the camera is calculated by a smooth interpolation algorithm, that is, the operation of step S406 is performed.
请参照图5,假设基座姿态四元数表示为q 0,相机姿态四元数表示为q 1,在当前姿态q 0和目标姿态q 1之间,采用四元数平滑插值算法slerp,如以下计算公式计算中间姿态即相机姿态的目标四元数q tPlease refer to FIG. 5. Assume that the quaternion of the base attitude is represented by q 0 and the quaternion of the camera attitude is represented by q 1. Between the current pose q 0 and the target pose q 1 , the quaternion smooth interpolation algorithm slerp is used, The following calculation formula calculates the target quaternion q t of the intermediate pose, that is, the camera pose:
Figure PCTCN2018089232-appb-000001
Figure PCTCN2018089232-appb-000001
其中t为0到1之间变化的时间参数,ω为方向q 0、q 1之间的角度差。 Where t is a time parameter that varies between 0 and 1, and ω is the angular difference between the directions q 0 and q 1 .
在确定相机的目标姿态四元数之后,根据所述目标姿态四元数确定唯一对应的相机的目标姿态,此时该目标姿态的确定更为准确且高效,驱动器的转动更为平滑缓慢,能够实现跟随模式,防止转轴的刚性运动带来的多种问题。至此,完成步骤S406的操作。After determining the target attitude quaternion of the camera, the unique corresponding target attitude of the camera is determined according to the target attitude quaternion. At this time, the determination of the target attitude is more accurate and efficient, and the rotation of the driver is smoother and slower. Achieve follow mode to prevent multiple problems caused by rigid movement of the shaft. So far, the operation of step S406 is completed.
在步骤S407中,根据目标姿态,计算出所述至少一个转轴处的所述驱动器的驱动量。In step S407, the driving amount of the driver at the at least one rotating shaft is calculated according to the target attitude.
具体地,云台从当前姿态运动到目标姿态将会有一个姿态变化,将这个姿态变化分解至俯仰轴、横滚轴和偏航轴这三个转轴的方向,若三个轴向上都有姿态变化的分量,则这三个转轴的三个驱动器都有对应的不为0的驱动量;若目标姿态在某个轴向上没有分量,则该转轴的驱动器对应的驱动量为0。Specifically, there will be a change in attitude from the current attitude of the gimbal to the target attitude. This attitude change will be decomposed into the directions of the three rotation axes of the pitch axis, roll axis, and yaw axis. For the component of the attitude change, the three drives of the three rotating shafts have corresponding driving amounts other than 0; if the target attitude has no component in a certain axis, the corresponding driving amount of the driving of the rotating shaft is 0.
在步骤S408中,根据步骤S407得到的各驱动器的驱动量,控制三轴驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述相机运动到所述目标姿态,完成对基座的跟随。In step S408, according to the driving amount of each driver obtained in step S407, the three-axis driver is controlled to drive the at least one rotating shaft to move according to the driving amount, so that the camera moves to the target attitude, and the following of the base is completed. .
如图4所示的流程图只是对一个控制周期中第一种方案的过程的具体介绍,还需说明的是,在第一种方案可以包括多个控制周期,从而实现相机对基座的实时跟随。具体的,从步骤S402进行到后面的步骤并返回步骤S402可以认为是一个控制周期。关于其他控制周期的具体实现,本公开在此不再赘述。The flowchart shown in FIG. 4 is only a specific introduction to the process of the first scheme in one control cycle. It should also be noted that the first scheme can include multiple control cycles, so as to realize the real-time camera-to-base follow. Specifically, proceeding from step S402 to the subsequent steps and returning to step S402 may be considered as a control cycle. Regarding the specific implementation of other control cycles, this disclosure will not repeat them here.
实施例2Example 2
在实施例2中,将结合图6详细说明第二种方案的具体实施。图6为第二种方案的云台跟随的流程示意图,如图6所示,该方案具体包括以下步骤:In Embodiment 2, the specific implementation of the second solution will be described in detail with reference to FIG. 6. Figure 6 is a schematic diagram of the flow following the PTZ of the second solution. As shown in Figure 6, the solution specifically includes the following steps:
步骤S601,确定所述云台进入跟随模式。跟随模式指,当与基座固接的手柄调整时,基座的姿态改变时,转轴的当前关节角能够根据初始关节角进行调整,以当前关节角和初始关节角的关节角差值保持在一预设的关节角偏差阈值范围之内,这样相机就能实现任意的构图或任意的第一人称视角的拍摄,同时获取的画面也能够受用户控制,达到更好的成像效果。In step S601, it is determined that the PTZ enters a follow mode. The following mode means that when the handle fixed to the base is adjusted and the attitude of the base is changed, the current joint angle of the rotating shaft can be adjusted according to the initial joint angle, and the joint angle difference between the current joint angle and the initial joint angle is maintained at Within a preset range of the joint angle deviation threshold, the camera can achieve arbitrary composition or arbitrary first-person perspective shooting, and the acquired images can also be controlled by the user to achieve better imaging effects.
步骤S602,根据传感器数据确定初始关节角和当前关节角。Step S602: Determine an initial joint angle and a current joint angle according to the sensor data.
所述云台的初始姿态包括所述至少一个转轴处的初始关节角,所述云台的当前姿态包括所述至少一个转轴处的当前关节角。通过在三个转轴上分别设置传感器,该传感器可以为霍尔传感器、光电传感器或磁编码计中的至少一种,可以理解的是,这三种传感器设置在转轴上,在三个转轴上的驱动器转动时,通过磁场的变化、光信号的变化,可以测量出三轴的关节角。The initial posture of the pan / tilt head includes an initial joint angle at the at least one rotation axis, and the current posture of the pan / tilt head includes a current joint angle at the at least one rotation axis. By setting sensors on the three rotating shafts separately, the sensors can be at least one of a Hall sensor, a photoelectric sensor, or a magnetic encoder. It can be understood that these three sensors are provided on the rotating shafts. When the driver rotates, the joint angle of the three axes can be measured by the change of the magnetic field and the change of the light signal.
步骤S603,计算初始关节角和当前关节角的关节角差值。Step S603: Calculate a joint angle difference between the initial joint angle and the current joint angle.
姿态差为所述至少一个转轴处的关节角差值,举例来说,当前关节角为逆时针方向90°,初始关节角为0°,关节角差值即为90°,所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述相机的姿态跟随所述基座的姿态。The attitude difference is the joint angle difference at the at least one rotation axis. For example, the current joint angle is 90 ° counterclockwise, the initial joint angle is 0 °, and the joint angle difference is 90 °. The driver drives the at least one rotating shaft to move according to the driving amount, so as to make the attitude of the camera follow the attitude of the base.
步骤S604,判断关节角差值是否在关节角偏差阈值范围内。In step S604, it is determined whether the joint angle difference is within a joint angle deviation threshold range.
在本公开的一些实施例中,还可以设置一个关节角偏差阈值范围,从而防止姿态差过大或者过小带来的误差问题,并判断关节角差值是否在该关节角偏差阈值范围内,若所述关节角差值超过所述关节角偏差阈值范围, 则计算所述至少一个转轴处的所述驱动器的驱动量;若所述关节角差值不超过所述关节角偏差阈值范围,则重新获取至少一个转轴处的所述初始关节角和所述当前关节角,以此实现相机对基座的跟随。In some embodiments of the present disclosure, a joint angle deviation threshold range may also be set, so as to prevent an error problem caused by too large or too small a posture difference, and determine whether the joint angle difference value is within the joint angle deviation threshold range. If the joint angle difference exceeds the joint angle deviation threshold range, calculating the driving amount of the driver at the at least one rotation axis; if the joint angle difference does not exceed the joint angle deviation threshold range, then Re-acquire the initial joint angle and the current joint angle at at least one rotation axis, so as to implement the camera to follow the base.
可以理解的是,关节角偏差阈值范围可以根据用户的实际需求进行调整,一般与应用场景有关。若在某些应用场景中,例如极限运动中,用户希望有更好的第一人称视角拍摄同时保证一定的增稳效果避免画面过于抖动,则该关节角偏差阈值范围就会选择相对较小的范围;又例如,在日常的手持云台拍摄过程中,用户希望有更好的稳定画面同时保证一定的第一人称效果,则该关节角偏差阈值范围就会选择相对较大的范围。在一些场景中,可以认为关节角偏差阈值范围越小,云台跟随越趋近于刚性跟随,越能够实现第一人称的效果;关节角偏差阈值范围越大,云台跟随越趋近于增稳,越能够实现平稳画面。It can be understood that the threshold range of the joint angle deviation can be adjusted according to the actual needs of the user, and is generally related to the application scenario. If in some application scenarios, such as extreme sports, the user wishes to have a better first-person perspective while ensuring a certain stabilizing effect to avoid too much jitter in the picture, the joint angle deviation threshold range will choose a relatively small range ; For another example, in the daily handheld PTZ shooting process, the user wants a better stable picture while ensuring a certain first-person effect, then the joint angle deviation threshold range will choose a relatively large range. In some scenarios, it can be considered that the smaller the range of the joint angle deviation threshold, the closer the gimbal follower is to the rigid follower, and the more the first-person effect can be achieved; the larger the range of the joint angle deviation threshold, the closer the gimbal follower is to stabilization , The more able to achieve a smooth picture.
步骤S605,通过插值算法计算至少一个转轴处的目标关节角。In step S605, a target joint angle at least one rotation axis is calculated by an interpolation algorithm.
与第一种方案不同的是,由于第二种方案直接得到关节角,因此无需引进四元数,只需引进插值算法,可以提高计算效率,同时,还能确定更为平滑的目标关节角,便于之后驱动器驱动转轴更平滑、缓慢地运动,能够实现跟随模式,防止转轴的刚性运动带来的多种问题。Different from the first scheme, because the second scheme directly obtains the joint angle, there is no need to introduce quaternions, and only the interpolation algorithm is needed to improve the calculation efficiency. At the same time, it can determine a smoother target joint angle. It is convenient for the driver to drive the rotating shaft to move more smoothly and slowly later, and it can implement the following mode to prevent various problems caused by the rigid movement of the rotating shaft.
请参照图7,假设云台的其中一个转轴的初始关节角表示为0 0,当前关节角表示为θ 1,在初始关节角θ 0和当前关节角θ 1之间,采用插值算法,可以计算得到目标关节角θ t(即步骤S2022中的目标姿态)。具体的,由于关节角本身属于标量,目标关节角的插值算法可以采用任何已知的插值算法,例如平滑插值算法。对于多轴云台,各个转轴处的关节角跟随均可以采用本实施例,此处不再赘述。 Please refer to FIG. 7. Assume that the initial joint angle of one of the rotation axes of the gimbal is represented by 0 0 and the current joint angle is represented by θ 1. Between the initial joint angle θ 0 and the current joint angle θ 1 , an interpolation algorithm can be used to calculate The target joint angle θ t (that is, the target posture in step S2022) is obtained. Specifically, since the joint angle itself is a scalar, the interpolation algorithm of the target joint angle may adopt any known interpolation algorithm, such as a smooth interpolation algorithm. For a multi-axis pan / tilt head, the joint angle following at each rotation axis can be adopted in this embodiment, which is not repeated here.
步骤S606,计算至少一个转轴处的驱动器的驱动量。In step S606, the driving amount of the driver at the at least one rotating shaft is calculated.
在步骤S605中确定各个转轴的目标关节角之后,根据当前关节角和目标关节角的角度差(即步骤S2022中的姿态变化),即可确定各个转轴处的驱动器的驱动量。After determining the target joint angle of each rotation axis in step S605, the driving amount of the driver at each rotation axis can be determined according to the angle difference between the current joint angle and the target joint angle (that is, the posture change in step S2022).
步骤S607,控制驱动器按照驱动量驱动至少一个转轴运动。In step S607, the control driver drives at least one rotating shaft to move according to the driving amount.
根据步骤S606中确定的三轴驱动器的驱动量,控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述转轴转动至目标关节角,实现相机对于基座的跟随。具体的,从步骤S602进行到后面的步骤并返回步骤S602可以认为是一个控制周期。关于其他控制周期的具体实现,本公开在此不再赘述。According to the driving amount of the three-axis driver determined in step S606, the driver is controlled to drive the at least one rotating shaft to move according to the driving amount, so that the rotating shaft is rotated to a target joint angle, and the camera follows the base. Specifically, proceeding from step S602 to the subsequent steps and returning to step S602 may be considered as a control cycle. Regarding the specific implementation of other control cycles, this disclosure will not repeat them here.
如图6所示的流程图只是对一个控制周期中第二种方案的过程的具体介绍,还需说明的是,在第二种方案可以包括多个控制周期,从而实现相机对基座的跟随,关于其他控制周期的具体实现,本公开在此不再赘述。至此,本公开实施例的第二种方案的介绍完毕。The flowchart shown in FIG. 6 is only a specific introduction to the process of the second scheme in one control cycle. It should also be noted that the second scheme can include multiple control cycles, so that the camera follows the base. Regarding the specific implementation of other control cycles, this disclosure will not repeat them here. So far, the introduction of the second solution of the embodiment of the present disclosure is completed.
本公开另一实施例提供了一种云台,所述云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置(以相机为例),所述转轴处设置有驱动器(以三轴驱动器为例),所述云台还包括:存储器,用于存储可执行指令;处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:获取所述云台的初始姿态和所述云台的当前姿态;根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。Another embodiment of the present disclosure provides a pan / tilt head. The pan / tilt head includes a base, at least one rotating shaft sequentially connected to the base, and a load device (taking a camera as an example) connected to the end of the rotating shaft. A drive is provided at the rotating shaft (taking a three-axis drive as an example), and the pan / tilt head further includes: a memory for storing executable instructions; a processor for executing the executable instructions stored in the memory to execute The operation is as follows: obtaining the initial attitude of the gimbal and the current attitude of the gimbal; and calculating the at the at least one rotation axis according to a difference in attitude between the current attitude of the gimbal and the initial attitude of the gimbal. A driving amount of the driver; controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
一般云台的初始姿态和当前姿态可以通过传感器获得,所述传感器有两类。第一类为设置于基座上和相机上的传感器,获取基座的姿态作为云台的初始姿态,相机的姿态作为云台的当前姿态;第二类为设置于至少一个转轴处的传感器,用于获取转轴的初始时刻和当前时刻的关节角作为云台的初始姿态和当前姿态。两类传感器对应两种控制方案,第一种为整体姿态闭环控制,第二种为关节角闭环控制。The initial attitude and current attitude of a general gimbal can be obtained by sensors, and there are two types of sensors. The first type is a sensor provided on the base and the camera, and the attitude of the base is obtained as the initial attitude of the gimbal, and the attitude of the camera is used as the current attitude of the gimbal; the second type is a sensor provided on at least one rotation axis, It is used to obtain the initial time and the joint angle of the current time as the initial and current attitude of the gimbal. Two types of sensors correspond to two control schemes. The first is closed-loop control of the overall attitude and the second is closed-loop control of the joint angle.
这里,云台的初始姿态指的是一个控制周期开始时,开始时的基座的姿态或转轴的关节角,云台的当前姿态指的是在这个控制周期内的某一时刻的基座的姿态或转轴的关节角。可以理解的是,在一个控制周期中云台的当前姿态可以和云台的初始姿态不同。具体的在一个控制周期中的云台控制方法详见实施例1和实施例2。Here, the initial attitude of the gimbal refers to the attitude of the base or the joint angle of the rotating shaft at the beginning of a control cycle, and the current attitude of the gimbal refers to the base of the base at a certain time during this control cycle. The joint angle of the attitude or pivot. It can be understood that the current attitude of the gimbal in a control cycle can be different from the initial attitude of the gimbal. For details of the PTZ control method in a control cycle, see Embodiment 1 and Embodiment 2.
所述处理器还用于根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器(可以为电机)的驱动 量,驱动量指驱动器驱动转轴转动的角度。The processor is further configured to calculate a driving amount of the driver (which may be a motor) at the at least one rotation axis according to a difference between an attitude of the current attitude of the gimbal and an initial attitude of the gimbal. The angle that the driver drives the shaft to rotate.
以三轴云台为例,云台的三个轴横滚轴、偏航轴和俯仰轴处的转轴电机分别按照计算得到的驱动量驱动各个转轴转动一定的角度后,云台将由当前姿态转动至当前姿态和初始姿态之间的中间姿态。这里的中间姿态可以是当前姿态和初始姿态变化范围中的任一个姿态。由此,云台可以平滑地跟随初始姿态,避免例如自拍杆式的刚性跟随运动而导致的相机拍摄抖动、成像不清、损坏驱动器的问题。Take the three-axis gimbal as an example, the three axis of the gimbal's roll axis, yaw axis and pitch axis respectively drive the rotation axis by a certain angle according to the calculated driving amount, the gimbal will rotate from the current attitude To the intermediate pose between the current pose and the initial pose. The intermediate posture here may be any one of the current posture and the initial posture variation range. As a result, the gimbal can smoothly follow the initial posture, avoiding problems such as camera shake, unclear imaging, and damage to the driver caused by, for example, a rigid following movement of a selfie stick.
对于第一种方案,所述姿态差为基座的姿态和相机的姿态的姿态差异值。举例来说,云台的当前姿态在横滚轴上的分量为逆时针方向90°,云台的初始姿态在横滚轴上的分量为0°,姿态差即为90°。For the first solution, the attitude difference is an attitude difference between the attitude of the base and the attitude of the camera. For example, the component of the current attitude of the gimbal on the roll axis is 90 ° counterclockwise, the component of the initial attitude of the gimbal on the roll axis is 0 °, and the attitude difference is 90 °.
对于第二种方案,姿态差为初始关节角与当前关节角的关节角差异值。举例来说,对于某一转轴来说,当前关节角为逆时针方向90°,初始关节角为0°,关节角差值即为90°。For the second scheme, the pose difference is the joint angle difference between the initial joint angle and the current joint angle. For example, for a certain rotation axis, the current joint angle is 90 ° counterclockwise, the initial joint angle is 0 °, and the joint angle difference is 90 °.
在确定三轴的三个驱动器对应的驱动量之后,控制驱动器按照驱动量确定转轴运动。需要说明的是,云台从当前姿态运动到目标姿态将会有一个姿态变化,将这个姿态变化分解至俯仰轴、横滚轴和偏航轴这三个转轴的方向,若三个轴向上都有姿态变化的分量,则这三个转轴的三个驱动器都有对应的不为0的驱动量;若目标姿态在某个轴向上没有分量,则该转轴的驱动器对应的驱动量为0。After determining the driving amounts corresponding to the three drivers of the three axes, the controlling driver determines the rotation axis movement according to the driving amounts. It should be noted that there will be a change in attitude from the current attitude of the gimbal to the target attitude. This attitude change is decomposed into the directions of the three rotation axes of the pitch axis, roll axis and yaw axis. Both have components of attitude change, then the three drives of the three rotation shafts have corresponding non-zero driving amounts; if the target attitude has no component in a certain axis, the corresponding driving amount of the drives of the rotating shaft is 0 .
所述处理器还用于确定所述云台进入跟随模式。跟随模式指,当与基座固接的手柄调整时,基座的姿态改变时,相机能够随着当前基座的姿态平滑地调整自身的姿态,以控制和基座姿态的姿态差保持在预设的阈值范围之内,这样相机就能实现任意的构图或任意的第一人称视角的拍摄,同时获取的画面也能够受用户控制,达到更好的成像效果。由此,在控制驱动器按照驱动量驱动至少一个转轴运动之后,能够使得云台的当前姿态跟随云台的初始姿态。The processor is further configured to determine that the gimbal enters a follow mode. Following mode means that when the handle fixed to the base is adjusted and the attitude of the base is changed, the camera can smoothly adjust its own attitude with the current attitude of the base to maintain the attitude difference between the control and the base attitude Within the set threshold, the camera can achieve arbitrary composition or arbitrary first-person perspective shooting, and the acquired images can also be controlled by the user to achieve better imaging results. Therefore, after controlling the driver to drive the at least one rotating shaft according to the driving amount, the current attitude of the gimbal can follow the initial attitude of the gimbal.
所述处理器还用于根据所述云台的当前姿态和所述云台的初始姿态的姿态差,确定云台的目标姿态;根据所述目标姿态计算所述至少一个转轴处的所述驱动器的驱动量。The processor is further configured to determine a target attitude of the gimbal according to a difference in attitude between the current attitude of the gimbal and an initial attitude of the gimbal; and calculate the driver at the at least one rotation axis according to the target attitude. The amount of drive.
由于用户控制与基座固接的手柄转动,带动云台转动,因此,云台的 当前姿态与其初始姿态存在姿态差异值,即姿态差。根据该姿态差确定云台的目标姿态。两种方案的具体过程请参照前述实施例1和实施例2中对图4和图6的描述。Because the user controls the rotation of the handle fixed to the base to drive the PTZ to rotate, there is a difference in attitude between the current attitude of the PTZ and its initial attitude, that is, the attitude difference. The target attitude of the gimbal is determined according to the attitude difference. For the specific processes of the two solutions, please refer to the description of FIG. 4 and FIG. 6 in the foregoing embodiment 1 and embodiment 2.
图8为本公开实施例云台的示意图,如图8所示,硬件结构包括处理器802。处理器802可以是单个CPU(中央处理单元),但也可以包括两个或更多个处理单元。例如,处理器802可以包括通用微处理器、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))。FIG. 8 is a schematic diagram of a gimbal according to an embodiment of the present disclosure. As shown in FIG. 8, the hardware structure includes a processor 802. The processor 802 may be a single CPU (Central Processing Unit), but may also include two or more processing units. For example, the processor 802 may include a general-purpose microprocessor, an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)).
存储器801可以是非易失性或易失性可读存储介质,例如是电可擦除可编程只读存储器(EEPROM)、闪存、和/或硬盘驱动器。可读存储介质包括计算机程序,该计算机程序包括代码/计算机可读指令,其在由处理器802执行时使得硬件结构和/或包括硬件结构在内的设备可以执行例如上面结合图2所描述的流程及其任何变形。The memory 801 may be a non-volatile or volatile readable storage medium, such as an electrically erasable and programmable read-only memory (EEPROM), a flash memory, and / or a hard disk drive. The readable storage medium includes a computer program including code / computer-readable instructions that, when executed by the processor 802, enables a hardware structure and / or a device including the hardware structure to execute, for example, the above described in conjunction with FIG. 2 Process and any distortions.
本公开实施例根据云台的当前姿态和云台的初始姿态的姿态差,确定驱动量,并控制驱动器按照驱动量驱动转轴运动,使得负载装置的姿态跟随基座的姿态,以此负载装置能够实现任意的构图或任意的第一人称视角的拍摄。The embodiment of the present disclosure determines the driving amount according to the attitude difference between the current attitude of the gimbal and the initial attitude of the gimbal, and controls the driver to drive the shaft movement according to the driving amount, so that the attitude of the load device follows the attitude of the base, so that the load device can Achieve arbitrary composition or arbitrary first-person perspective shooting.
本公开另一实施例提供了一种计算机可读存储介质,如图9所示,其上存储有可执行指令,所述指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行如图2所示的步骤:Another embodiment of the present disclosure provides a computer-readable storage medium, as shown in FIG. 9, on which executable instructions are stored. When the instructions are executed by one or more processors, the one or Multiple processors perform the steps shown in Figure 2:
获取所述云台的初始姿态和所述云台的当前姿态;Acquiring an initial posture of the pan / tilt head and a current posture of the pan / tilt head;
根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;Calculating a driving amount of the driver at the at least one rotation axis according to a difference in attitude between the current attitude of the head and the initial attitude of the head;
控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
在本公开的一些实施例中,所述云台控制方法还包括:确定所述云台进入跟随模式;所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述云台的当前姿态跟随所述云台的初始姿态。In some embodiments of the present disclosure, the pan / tilt head control method further includes: determining that the pan / tilt head enters a follow mode; and controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so as to make all The current attitude of the gimbal follows the initial attitude of the gimbal.
在本公开的一些实施例中,所述云台控制方法还包括:根据所述云台的当前姿态和所述云台的初始姿态的姿态差,确定云台的目标姿态;根据所述目标姿态计算所述至少一个转轴处的所述驱动器的驱动量。In some embodiments of the present disclosure, the pan / tilt head control method further includes: determining a target pose of the pan / tilt according to a pose difference between a current pose of the pan / tilt and an initial pose of the pan / tilt; and according to the target pose Calculating a driving amount of the driver at the at least one rotating shaft.
在本公开的一些实施例中,所述云台的初始姿态包括所述基座的姿态, 所述云台的当前姿态包括所述负载装置的姿态。In some embodiments of the present disclosure, the initial posture of the pan / tilt head includes the posture of the base, and the current posture of the pan / tilt head includes the posture of the load device.
在本公开的一些实施例中,通过设置于所述基座和所述负载装置上的传感器,获取所述基座的姿态和所述负载装置的姿态。In some embodiments of the present disclosure, the posture of the base and the posture of the load device are acquired by sensors provided on the base and the load device.
在本公开的一些实施例中,所述传感器包括惯性测量单元。In some embodiments of the present disclosure, the sensor includes an inertial measurement unit.
在本公开的一些实施例中,所述云台控制方法还包括:确定所述姿态差是否在姿态差阈值范围内,若所述姿态差超过所述姿态差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量;若所述姿态差不超过所述姿态差阈值范围,则重新获取所述基座的姿态和所述负载装置的姿态。In some embodiments of the present disclosure, the pan / tilt control method further comprises: determining whether the attitude difference is within an attitude difference threshold range, and if the attitude difference exceeds the attitude difference threshold range, calculating the at least one The drive amount of the driver at the rotating shaft; if the attitude difference does not exceed the attitude difference threshold range, re-acquire the attitude of the base and the attitude of the load device.
在本公开的一些实施例中,所述云台控制方法还包括:确定基座姿态四元数和负载装置姿态四元数;根据所述基座姿态四元数和负载装置姿态四元数,通过平滑插值算法计算所述负载装置的目标姿态四元数。In some embodiments of the present disclosure, the gimbal control method further includes: determining a quaternion of the base attitude and a quaternion of the loading device attitude; and according to the quaternion of the base attitude and the quaternion of the loading device attitude, The target attitude quaternion of the load device is calculated by a smooth interpolation algorithm.
在本公开的一些实施例中,所述云台控制方法还包括:根据所述目标姿态四元数确定所述负载装置的目标姿态,并计算所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述负载装置运动到所述目标姿态。In some embodiments of the present disclosure, the gimbal control method further includes: determining a target attitude of the load device according to the target attitude quaternion, and calculating a driving amount of the driver at the at least one rotation axis. Controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so that the load device moves to the target attitude.
在本公开的一些实施例中,所述云台的初始姿态包括所述至少一个转轴处的初始关节角,所述云台的当前姿态包括所述至少一个转轴处的当前关节角;所述姿态差包括所述至少一个转轴处的关节角差值;所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述负载装置的姿态跟随所述基座的姿态。In some embodiments of the present disclosure, the initial posture of the pan / tilt head includes an initial joint angle at the at least one rotation axis, and the current posture of the pan / tilt head includes a current joint angle at the at least one rotation axis; the posture The difference includes a joint angle difference at the at least one rotation shaft; the controlling the driver drives the at least one rotation shaft to move according to the driving amount, so that the attitude of the load device follows the attitude of the base.
在本公开的一些实施例中,通过设置于所述至少一个转轴处的传感器,获取所述转轴的初始关节角和当前关节角。In some embodiments of the present disclosure, an initial joint angle and a current joint angle of the rotation axis are obtained by a sensor provided at the at least one rotation axis.
在本公开的一些实施例中,所述传感器包括霍尔传感器、光电传感器或磁编码计中的至少一种。In some embodiments of the present disclosure, the sensor includes at least one of a Hall sensor, a photoelectric sensor, or a magnetic encoder.
在本公开的一些实施例中,所述云台控制方法还包括:确定所述关节角差值是否在关节角偏差阈值范围内,若所述关节角差值超过所述关节角偏差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量;若所述姿态差不超过所述姿态差阈值范围,则重新获取至少一个转轴处的所述初始关节角和所述当前关节角。In some embodiments of the present disclosure, the pan / tilt control method further includes: determining whether the joint angle difference value is within a joint angle deviation threshold range, and if the joint angle difference value exceeds the joint angle deviation threshold range, Then calculating the driving amount of the driver at the at least one rotation axis; if the attitude difference does not exceed the attitude difference threshold range, re-obtain the initial joint angle and the current joint angle at least one rotation axis.
在本公开的一些实施例中,所述云台控制方法还包括:根据所述初始 关节角和所述当前关节角,通过插值算法计算所述至少一个转轴处的目标关节角。In some embodiments of the present disclosure, the gimbal control method further includes: calculating a target joint angle at the at least one rotation axis by an interpolation algorithm according to the initial joint angle and the current joint angle.
在本公开的一些实施例中,所述云台控制方法,还包括:根据所述目标关节角确定所述至少一个转轴处的所述驱动器的驱动量;控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述转轴转动至目标关节角。In some embodiments of the present disclosure, the gimbal control method further includes: determining a driving amount of the driver at the at least one rotation axis according to the target joint angle; and controlling the driver to drive according to the driving amount. The at least one rotation axis moves so that the rotation axis rotates to a target joint angle.
图2中示出了云台控制方法的流程图。应理解,流程图中的一些方框或其组合可以由可执行指令来实现。这些可执行程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器。The flowchart of the control method of the pan / tilt is shown in FIG. 2. It should be understood that some blocks or combinations thereof in the flowcharts may be implemented by executable instructions. These executable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing device.
因此,本公开实施例的云台控制方法可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开实施例可以采取存储有可执行指令的计算机可读存储介质的形式,该计算机可读存储介质可供指令执行系统(例如,一个或多个处理器)使用或者结合指令执行系统使用。在本公开实施例的上下文中,计算机可读存储介质可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,计算机可读存储介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。计算机可读存储介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。Therefore, the PTZ control method in the embodiment of the present disclosure may be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the embodiments of the present disclosure may take the form of a computer-readable storage medium storing executable instructions, and the computer-readable storage medium may be used by or in combination with an instruction execution system (for example, one or more processors). . In the context of embodiments of the present disclosure, a computer-readable storage medium may be any medium capable of containing, storing, transmitting, propagating, or transmitting instructions. For example, computer-readable storage media may include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, devices, or propagation media. Specific examples of computer-readable storage media include: magnetic storage devices such as magnetic tapes or hard disk drives (HDD); optical storage devices such as optical disks (CD-ROM); memories such as random access memory (RAM) or flash memory; and / or Wired / wireless communication link.
本公开实施例根据云台的当前姿态和云台的初始姿态的姿态差,确定驱动量,并控制驱动器按照驱动量驱动转轴运动,使得负载装置的姿态跟随基座的姿态,以此负载装置能够实现任意的构图或任意的第一人称视角的拍摄。The embodiment of the present disclosure determines the driving amount according to the attitude difference between the current attitude of the gimbal and the initial attitude of the gimbal, and controls the driver to drive the shaft movement according to the driving amount, so that the attitude of the load device follows the attitude of the base, so that the load device can Achieve arbitrary composition or arbitrary first-person perspective shooting.
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, only the above-mentioned division of the functional modules is used as an example. In practical applications, the above-mentioned functions can be allocated by different functional modules according to needs. The internal structure is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的 普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;在不冲突的情况下,本公开实施例中的特征可以任意组合;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than limiting them. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be replaced equivalently; without conflict, the features in the embodiments of the present disclosure can be arbitrarily combined; and these modifications or replacements The essence of the corresponding technical solutions does not depart from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (31)

  1. 一种云台控制方法,所述云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置,所述转轴处设置有驱动器,其特征在于,所述方法包括:A method for controlling a pan / tilt head. The pan / tilt head includes a base, at least one rotating shaft connected to the base in sequence, and a load device connected to the end of the rotating shaft. A driver is disposed at the rotating shaft, and the characteristic is that: Methods include:
    获取所述云台的初始姿态和所述云台的当前姿态;Acquiring an initial posture of the pan / tilt head and a current posture of the pan / tilt head;
    根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;Calculating a driving amount of the driver at the at least one rotation axis according to a difference in attitude between the current attitude of the head and the initial attitude of the head;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
  2. 根据权利要求1所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a pan / tilt according to claim 1, further comprising:
    确定所述云台进入跟随模式;Determining that the gimbal enters a follow mode;
    所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述云台的当前姿态跟随所述云台的初始姿态。The controlling the driver drives the at least one rotating shaft to move according to the driving amount, so that the current posture of the pan / tilt head follows the initial posture of the pan / tilt head.
  3. 根据权利要求1所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a pan / tilt according to claim 1, further comprising:
    根据所述云台的当前姿态和所述云台的初始姿态的姿态差,确定云台的目标姿态;Determining a target attitude of the gimbal according to a difference in attitude between the current attitude of the gimbal and the initial attitude of the gimbal;
    根据所述目标姿态计算所述至少一个转轴处的所述驱动器的驱动量。A driving amount of the driver at the at least one rotating shaft is calculated according to the target attitude.
  4. 根据权利要求1所述的云台控制方法,其特征在于,所述云台的初始姿态包括所述基座的姿态,所述云台的当前姿态包括所述负载装置的姿态。The control method for a pan / tilt head according to claim 1, wherein an initial posture of the pan / tilt head includes a posture of the base, and a current posture of the pan / tilt head includes a posture of the load device.
  5. 根据权利要求4所述的云台控制方法,其特征在于,通过设置于所述基座和所述负载装置上的传感器,获取所述基座的姿态和所述负载装置的姿态。The method of controlling a pan / tilt according to claim 4, wherein the attitude of the base and the attitude of the load device are obtained by sensors provided on the base and the load device.
  6. 根据权利要求5所述的云台控制方法,其特征在于,所述传感器包括惯性测量单元。The gimbal control method according to claim 5, wherein the sensor comprises an inertial measurement unit.
  7. 根据权利要求4所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a pan / tilt according to claim 4, further comprising:
    确定所述姿态差是否在姿态差阈值范围内,Determining whether the attitude difference is within a range of the attitude difference threshold,
    若所述姿态差超过所述姿态差阈值范围,则计算所述至少一个转轴处 的所述驱动器的驱动量;If the attitude difference exceeds the attitude difference threshold range, calculating a driving amount of the driver at the at least one rotation axis;
    若所述姿态差不超过所述姿态差阈值范围,则重新获取所述基座的姿态和所述负载装置的姿态。If the attitude difference does not exceed the attitude difference threshold range, the attitude of the base and the attitude of the load device are obtained again.
  8. 根据权利要求4所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a pan / tilt according to claim 4, further comprising:
    确定基座姿态四元数和负载装置姿态四元数;Determine the quaternion of the attitude of the base and the attitude of the load device;
    根据所述基座姿态四元数和负载装置姿态四元数,通过平滑插值算法计算所述负载装置的目标姿态四元数。According to the base attitude quaternion and the load device attitude quaternion, the target attitude quaternion of the load device is calculated by a smooth interpolation algorithm.
  9. 根据权利要求8所述的云台控制方法,其特征在于,所述云台控制方法,还包括:The method of controlling a pan / tilt according to claim 8, further comprising:
    根据所述目标姿态四元数确定所述负载装置的目标姿态,并计算所述至少一个转轴处的所述驱动器的驱动量;Determining a target attitude of the load device according to the target attitude quaternion, and calculating a driving amount of the driver at the at least one rotation axis;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述负载装置运动到所述目标姿态。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so that the load device moves to the target attitude.
  10. 根据权利要求1所述的云台控制方法,其特征在于,所述云台的初始姿态包括所述至少一个转轴处的初始关节角,所述云台的当前姿态包括所述至少一个转轴处的当前关节角;The control method of a pan / tilt head according to claim 1, wherein an initial posture of the pan / tilt head includes an initial joint angle at the at least one rotation axis, and a current posture of the pan / tilt head includes the at least one rotation axis Current joint angle
    所述姿态差包括所述至少一个转轴处的关节角差值;The attitude difference includes a joint angle difference value at the at least one rotation axis;
    所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述负载装置的姿态跟随所述基座的姿态。The controlling the driver drives the at least one rotating shaft to move according to the driving amount, so that the attitude of the load device follows the attitude of the base.
  11. 根据权利要求10所述的云台控制方法,其特征在于,通过设置于所述至少一个转轴处的传感器,获取所述转轴的初始关节角和当前关节角。The method of controlling a pan / tilt according to claim 10, wherein an initial joint angle and a current joint angle of the rotation axis are obtained through a sensor provided at the at least one rotation axis.
  12. 根据权利要求11所述的云台控制方法,其特征在于,所述传感器包括霍尔传感器、光电传感器或磁编码计中的至少一种。The gimbal control method according to claim 11, wherein the sensor comprises at least one of a Hall sensor, a photoelectric sensor, or a magnetic encoder.
  13. 根据权利要求10所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a PTZ according to claim 10, wherein the method of controlling the PTZ further comprises:
    确定所述关节角差值是否在关节角偏差阈值范围内,Determining whether the joint angle difference is within a joint angle deviation threshold range,
    若所述关节角差值超过所述关节角偏差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量;If the joint angle difference exceeds the joint angle deviation threshold range, calculating a driving amount of the driver at the at least one rotation axis;
    若所述姿态差不超过所述姿态差阈值范围,则重新获取至少一个转轴 处的所述初始关节角和所述当前关节角。If the attitude difference does not exceed the attitude difference threshold range, the initial joint angle and the current joint angle at at least one rotation axis are re-obtained.
  14. 根据权利要求10所述的云台控制方法,其特征在于,所述云台控制方法还包括:The method of controlling a PTZ according to claim 10, wherein the method of controlling the PTZ further comprises:
    根据所述初始关节角和所述当前关节角,计算所述至少一个转轴处的目标关节角。Calculating a target joint angle at the at least one rotation axis according to the initial joint angle and the current joint angle.
  15. 根据权利要求14所述的云台控制方法,其特征在于,所述云台控制方法,还包括:The control method for a pan / tilt according to claim 14, further comprising:
    根据所述目标关节角确定所述至少一个转轴处的所述驱动器的驱动量;Determining a driving amount of the driver at the at least one rotation axis according to the target joint angle;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述转轴转动至目标关节角。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so that the rotating shaft is rotated to a target joint angle.
  16. 一种云台,所述云台包括基座、依次连接于基座上的至少一个转轴和连接于所述转轴末端的负载装置,所述转轴处设置有驱动器,其特征在于,所述云台还包括:A pan / tilt head includes a base, at least one rotating shaft connected to the base in sequence, and a load device connected to the end of the rotating shaft. A driver is disposed at the rotating shaft, and the head is characterized in that: Also includes:
    存储器,用于存储可执行指令;Memory for storing executable instructions;
    处理器,用于执行所述存储器中存储的所述可执行指令,以执行如下操作:A processor, configured to execute the executable instructions stored in the memory to perform the following operations:
    获取所述云台的初始姿态和所述云台的当前姿态;Acquiring an initial posture of the pan / tilt head and a current posture of the pan / tilt head;
    根据所述云台的当前姿态和所述云台的初始姿态的姿态差,计算所述至少一个转轴处的所述驱动器的驱动量;Calculating a driving amount of the driver at the at least one rotation axis according to a difference in attitude between the current attitude of the head and the initial attitude of the head;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount.
  17. 根据权利要求16所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 16, wherein the processor is further configured to:
    确定所述云台进入跟随模式;Determining that the gimbal enters a follow mode;
    所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述负载装置的姿态跟随所述基座的姿态。The controlling the driver drives the at least one rotating shaft to move according to the driving amount, so that the attitude of the load device follows the attitude of the base.
  18. 根据权利要求16所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 16, wherein the processor is further configured to:
    根据所述云台的当前姿态和所述云台的初始姿态的姿态差,确定云台的目标姿态;Determining a target attitude of the gimbal according to a difference in attitude between the current attitude of the gimbal and the initial attitude of the gimbal;
    根据所述目标姿态计算所述至少一个转轴处的所述驱动器的驱动量。A driving amount of the driver at the at least one rotating shaft is calculated according to the target attitude.
  19. 根据权利要求16所述的云台,其特征在于,所述云台的初始姿态 包括所述基座的姿态,所述云台的当前姿态包括所述负载装置的姿态。The gimbal of claim 16, wherein the initial attitude of the gimbal includes the attitude of the base, and the current attitude of the gimbal includes the attitude of the load device.
  20. 根据权利要求19所述的云台,其特征在于,所述基座和所述负载装置上设置有传感器,用于获取所述基座的姿态和所述负载装置的姿态。The gimbal of claim 19, wherein a sensor is provided on the base and the load device to acquire a posture of the base and a posture of the load device.
  21. 根据权利要求20所述的云台,其特征在于,所述传感器包括惯性测量单元。The gimbal of claim 20, wherein the sensor comprises an inertial measurement unit.
  22. 根据权利要求19所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 19, wherein the processor is further configured to:
    确定所述姿态差是否在姿态差阈值范围内,Determining whether the attitude difference is within a range of the attitude difference threshold,
    若所述姿态差超过所述姿态差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量;If the attitude difference exceeds the attitude difference threshold range, calculating a driving amount of the driver at the at least one rotation axis;
    若所述姿态差不超过所述姿态差阈值范围,则重新获取所述基座的姿态和所述负载装置的姿态。If the attitude difference does not exceed the attitude difference threshold range, the attitude of the base and the attitude of the load device are obtained again.
  23. 根据权利要求19所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 19, wherein the processor is further configured to:
    确定基座姿态四元数和负载装置姿态四元数;Determine the quaternion of the attitude of the base and the attitude of the load device;
    根据所述基座姿态四元数和负载装置姿态四元数,通过平滑插值算法计算所述负载装置的目标姿态四元数。According to the base attitude quaternion and the load device attitude quaternion, the target attitude quaternion of the load device is calculated by a smooth interpolation algorithm.
  24. 根据权利要求23所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 23, wherein the processor is further configured to:
    根据所述目标姿态四元数确定所述负载装置的目标姿态,并计算所述至少一个转轴处的所述驱动器的驱动量;Determining a target attitude of the load device according to the target attitude quaternion, and calculating a driving amount of the driver at the at least one rotation axis;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述负载装置运动到所述目标姿态。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so that the load device moves to the target attitude.
  25. 根据权利要求16所述的云台,其特征在于,所述云台的初始姿态包括所述至少一个转轴处的初始关节角,所述云台的当前姿态包括所述至少一个转轴处的当前关节角;The gimbal of claim 16, wherein the initial pose of the gimbal includes an initial joint angle at the at least one rotation axis, and the current pose of the gimbal includes a current joint at the at least one rotation axis angle;
    所述姿态差包括所述至少一个转轴处的关节角差值;The attitude difference includes a joint angle difference value at the at least one rotation axis;
    所述控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,用于使得所述负载装置的姿态跟随所述基座的姿态。The controlling the driver drives the at least one rotating shaft to move according to the driving amount, so that the attitude of the load device follows the attitude of the base.
  26. 根据权利要求25所述的云台,其特征在于,所述至少一个转轴处设置有传感器,用于获取所述转轴的初始关节角和当前关节角。The gimbal according to claim 25, wherein a sensor is provided at the at least one rotation axis to obtain an initial joint angle and a current joint angle of the rotation axis.
  27. 根据权利要求26所述的云台,其特征在于,所述传感器包括霍尔传感器、光电传感器或磁编码计中的至少一种。The gimbal of claim 26, wherein the sensor comprises at least one of a Hall sensor, a photoelectric sensor, or a magnetic encoder.
  28. 根据权利要求25所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 25, wherein the processor is further configured to:
    确定所述关节角差值是否在关节角偏差阈值范围内,Determining whether the joint angle difference is within a joint angle deviation threshold range,
    若所述关节角差值超过所述关节角偏差阈值范围,则计算所述至少一个转轴处的所述驱动器的驱动量;If the joint angle difference exceeds the joint angle deviation threshold range, calculating a driving amount of the driver at the at least one rotation axis;
    若所述姿态差不超过所述姿态差阈值范围,则重新获取至少一个转轴处的所述初始关节角和所述当前关节角。If the attitude difference does not exceed the attitude difference threshold range, the initial joint angle and the current joint angle at least one rotation axis are re-obtained.
  29. 根据权利要求25所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 25, wherein the processor is further configured to:
    根据所述初始关节角和所述当前关节角,计算所述至少一个转轴处的目标关节角。Calculating a target joint angle at the at least one rotation axis according to the initial joint angle and the current joint angle.
  30. 根据权利要求29所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 29, wherein the processor is further configured to:
    根据所述目标关节角确定所述至少一个转轴处的所述驱动器的驱动量;Determining a driving amount of the driver at the at least one rotation axis according to the target joint angle;
    控制所述驱动器按照所述驱动量驱动所述至少一个转轴运动,使得所述转轴转动至目标关节角。Controlling the driver to drive the at least one rotating shaft to move according to the driving amount, so that the rotating shaft is rotated to a target joint angle.
  31. 一种计算机可读存储介质,其特征在于,其存储有可执行指令,所述可执行指令在由一个或多个处理器执行时,可以使所述一个或多个处理器执行如权利要求1至15中任一所述的云台控制方法。A computer-readable storage medium, characterized in that it stores executable instructions, and when the executable instructions are executed by one or more processors, the one or more processors can execute the instructions as claimed in claim 1 The method of controlling a gimbal according to any one of to 15.
PCT/CN2018/089232 2018-05-31 2018-05-31 Pan-tilt control method and pan-tilt WO2019227384A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/089232 WO2019227384A1 (en) 2018-05-31 2018-05-31 Pan-tilt control method and pan-tilt
CN201880016955.2A CN110431507A (en) 2018-05-31 2018-05-31 A kind of cloud platform control method and holder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089232 WO2019227384A1 (en) 2018-05-31 2018-05-31 Pan-tilt control method and pan-tilt

Publications (1)

Publication Number Publication Date
WO2019227384A1 true WO2019227384A1 (en) 2019-12-05

Family

ID=68408088

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089232 WO2019227384A1 (en) 2018-05-31 2018-05-31 Pan-tilt control method and pan-tilt

Country Status (2)

Country Link
CN (1) CN110431507A (en)
WO (1) WO2019227384A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021134644A1 (en) * 2019-12-31 2021-07-08 深圳市大疆创新科技有限公司 Gimbal control method and gimbal
CN113168193A (en) * 2020-06-08 2021-07-23 深圳市大疆创新科技有限公司 Holder control method, handheld holder and computer readable storage medium
WO2021248287A1 (en) * 2020-06-08 2021-12-16 深圳市大疆创新科技有限公司 Gimbal control method, handheld gimbal, and computer-readable storage medium
CN113227633A (en) * 2020-08-24 2021-08-06 深圳市大疆创新科技有限公司 Pan-tilt jitter monitoring and processing method, pan-tilt and storage medium
WO2022040932A1 (en) * 2020-08-25 2022-03-03 深圳市大疆创新科技有限公司 Gimbal control method, gimbal, and storage medium
WO2022110034A1 (en) * 2020-11-27 2022-06-02 深圳市大疆创新科技有限公司 Gimbal control method and device, gimbal, and mobile platform
WO2022133732A1 (en) * 2020-12-22 2022-06-30 深圳市大疆创新科技有限公司 Detection method and apparatus for gimbal, movable platform and storage medium
CN112734653A (en) * 2020-12-23 2021-04-30 影石创新科技股份有限公司 Motion smoothing processing method, device and equipment for video image and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122172A (en) * 2010-12-31 2011-07-13 中国科学院计算技术研究所 Image pickup system and control method thereof for machine motion control
CN106500669A (en) * 2016-09-22 2017-03-15 浙江工业大学 A kind of Aerial Images antidote based on four rotor IMU parameters
CN107466385A (en) * 2016-08-03 2017-12-12 深圳市大疆灵眸科技有限公司 A kind of cloud platform control method and system
CN206988781U (en) * 2017-05-08 2018-02-09 深圳火星探索科技有限公司 A kind of hand-held head
CN207292469U (en) * 2017-08-31 2018-05-01 深圳曼塔智能科技有限公司 Multi-pose sensor cradle head device, camera and unmanned plane during flying device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346484A (en) * 2011-07-12 2012-02-08 广州灿点信息科技有限公司 Cloud deck equipment moving processing method and system
CN104486543B (en) * 2014-12-09 2020-11-27 北京时代沃林科技发展有限公司 System for controlling pan-tilt camera in touch mode of intelligent terminal
CN107883123B (en) * 2015-09-29 2019-11-01 深圳市大疆灵眸科技有限公司 Handle holder and its control method
CN105809701B (en) * 2016-03-25 2019-03-08 成都易瞳科技有限公司 Panoramic video posture scaling method
CN107077146B (en) * 2016-12-30 2020-06-05 深圳市大疆灵眸科技有限公司 Control method and control system for cradle head, cradle head and unmanned aerial vehicle
CN107145167B (en) * 2017-04-07 2020-12-29 南京邮电大学 Video target tracking method based on digital image processing technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122172A (en) * 2010-12-31 2011-07-13 中国科学院计算技术研究所 Image pickup system and control method thereof for machine motion control
CN107466385A (en) * 2016-08-03 2017-12-12 深圳市大疆灵眸科技有限公司 A kind of cloud platform control method and system
CN106500669A (en) * 2016-09-22 2017-03-15 浙江工业大学 A kind of Aerial Images antidote based on four rotor IMU parameters
CN206988781U (en) * 2017-05-08 2018-02-09 深圳火星探索科技有限公司 A kind of hand-held head
CN207292469U (en) * 2017-08-31 2018-05-01 深圳曼塔智能科技有限公司 Multi-pose sensor cradle head device, camera and unmanned plane during flying device

Also Published As

Publication number Publication date
CN110431507A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
WO2019227384A1 (en) Pan-tilt control method and pan-tilt
CN109196266B (en) Control method of holder, holder controller and holder
US11265471B2 (en) Gimbal control method, device, gimbal, system, and storage medium
CN111279113B (en) Handheld holder control method and handheld holder
WO2018191964A1 (en) Camera mount control method, and camera mount
US20210180743A1 (en) Gimbal control method, gimbal control device, gimbal system, and unmanned aerial vehicle
WO2019227347A1 (en) Gimbal control method, gimbal, photography device, and readable storage medium
WO2019051640A1 (en) Control method for pan-tilt, controller, and pan-tilt
US20210018138A1 (en) Gimbal mode switching method, device, mobile platform and storage medium
WO2021026753A1 (en) Gimbal control method, gimbal, and computer readable storage medium
WO2020062281A1 (en) Cradle head control method, cradle head, movable platform and readable storage medium
US20220163166A1 (en) Handheld gimbal, gimbal control method and computer-readable storage medium
WO2020237493A1 (en) Zero calibration method for gimbal and gimbal
WO2018191969A1 (en) Camera mount control method and device
WO2022061537A1 (en) Control method, handheld gimbal, system, and computer-readable storage medium
WO2018191971A1 (en) Cradle head control method and cradle head
WO2021134644A1 (en) Gimbal control method and gimbal
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
WO2021248287A1 (en) Gimbal control method, handheld gimbal, and computer-readable storage medium
WO2021036947A1 (en) Auxiliary focusing method and apparatus, and unmanned aerial vehicle
WO2019205152A1 (en) Cradle head control method and cradle head
WO2021248288A1 (en) Pan/tilt control method, handheld pan/tilt and computer-readable storage medium
WO2022041013A1 (en) Control method, handheld gimbal, system, and computer readable storage medium
WO2021134643A1 (en) Method for controlling cradle head and cradle head
WO2020237570A1 (en) Control method and device for gimbal, handheld gimbal and 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: 18921184

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

Country of ref document: EP

Kind code of ref document: A1