WO2021134645A1 - Gimbal control method and gimbal - Google Patents
Gimbal control method and gimbal Download PDFInfo
- Publication number
- WO2021134645A1 WO2021134645A1 PCT/CN2019/130862 CN2019130862W WO2021134645A1 WO 2021134645 A1 WO2021134645 A1 WO 2021134645A1 CN 2019130862 W CN2019130862 W CN 2019130862W WO 2021134645 A1 WO2021134645 A1 WO 2021134645A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- axis
- posture
- pan
- target
- tilt
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 230000036544 posture Effects 0.000 claims description 282
- 238000006243 chemical reaction Methods 0.000 claims description 30
- 230000003287 optical effect Effects 0.000 claims description 11
- 238000011897 real-time detection Methods 0.000 claims description 9
- 238000003384 imaging method Methods 0.000 claims description 5
- 238000005259 measurement Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000006641 stabilisation Effects 0.000 description 3
- 238000011105 stabilization Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B64—AIRCRAFT; AVIATION; COSMONAUTICS
- B64U—UNMANNED AERIAL VEHICLES [UAV]; EQUIPMENT THEREFOR
- B64U20/00—Constructional aspects of UAVs
- B64U20/80—Arrangement of on-board electronics, e.g. avionics systems or wiring
- B64U20/87—Mounting of imaging devices, e.g. mounting of gimbals
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D3/00—Control of position or direction
- G05D3/12—Control of position or direction using feedback
- G05D3/20—Control of position or direction using feedback using a digital comparing device
Definitions
- This application relates to the field of pan-tilt, and in particular to a method for controlling a pan-tilt and a pan-tilt.
- This application provides a method for controlling a pan-tilt and a pan-tilt.
- a method for controlling a pan/tilt the pan/tilt is equipped with a photographing device, and the pan/tilt is configured to rotate around at least two axes, and the method includes:
- the shooting device When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;
- the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
- a pan-tilt including:
- a shaft assembly provided on the base, the shaft assembly is used to mount a photographing device, and the shaft assembly is configured to rotate about at least two shafts;
- a controller the controller is electrically connected to the pan-tilt, and the controller is used for:
- the shooting device When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;
- the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
- preset control instructions are used to avoid the gimbal lock problem during pan/tilt control, thereby realizing full-space vertical shooting, satisfying arbitrary The angle of the vertical shooting needs.
- Figure 1 is a perspective view of a pan-tilt in an embodiment of the present invention
- FIG. 2A is a schematic diagram of the shooting device in an embodiment of the present application when shooting in a vertical orientation
- 2B is a schematic diagram of the photographing device in an embodiment of the present application when photographing in a horizontal orientation
- FIG. 3 is a schematic flowchart of a method for controlling a pan-tilt in an embodiment of the present application
- Figure 4 is a perspective view of the handheld PTZ shown in Figure 1 when it is placed upright;
- FIG. 5 is a schematic diagram of a preset interpolation strategy in an embodiment of the present application.
- Fig. 6 is a structural block diagram of a pan-tilt in an embodiment of the present application.
- this application uses preset control commands to avoid gimbal locking problems when the camera is controlled by the camera when the camera is in the vertical orientation shooting mode, thereby realizing full-space vertical shooting and meeting the requirements for vertical shooting at any angle .
- the camera in the embodiment of the application is equipped with a camera.
- the camera is mounted on the base when the base is tilted, the camera can rotate around the world coordinate system under the control of the camera.
- the shooting device can be a camera, a SLR, a mirrorless single, a sports camera, a smart phone, and other shooting devices.
- the pan/tilt is configured to rotate around at least two axes.
- the pan/tilt head of this embodiment may be configured to rotate around two axes, or it may be configured to rotate around three axes or more than three axes.
- the pan/tilt is configured to rotate about two axes, the two axes including a yaw axis and a pitch axis.
- the pan/tilt is configured to rotate around three axes, the three axes including the yaw axis, the pitch axis, and the roll axis.
- the pan/tilt in the embodiments of the present application may be a handheld pan/tilt or an airborne pan/tilt.
- the airborne pan/tilt may be mounted on a movable platform, which may be an unmanned aerial vehicle, an unmanned vehicle, a mobile robot, etc. .
- the pan/tilt is a handheld pan/tilt, and the pan/tilt is a three-axis pan/tilt.
- the pan/tilt in this embodiment is configured to rotate around the yaw axis, pitch axis, and roll axis.
- the handheld gimbal may include an outer frame 11, a middle frame 12, and an inner frame.
- the outer frame 11 is configured to rotate about a yaw axis
- the middle frame 12 is configured to rotate about a roll axis
- the inner frame is configured to rotate about a pitch axis
- the inner frame is used to mount the camera 2.
- the outer frame 11 includes a yaw axis arm and is driven by a yaw axis motor
- the middle frame 12 includes a roll axis arm and is driven by a roll axis motor
- the inner frame includes a pitch axis arm and is driven by a pitch axis motor driven.
- the vertical orientation shooting can also be called vertical shooting.
- the shooting device in the vertical orientation means that the shooting device is installed vertically on the pan/tilt support, so as to capture a vertical image relative to the horizontal plane.
- the camera is a mobile phone.
- Figure 2A Rotate the long side 20 of the screen to the vertical direction (that is, the long side 20 of the screen is perpendicular to the horizontal plane) for shooting. That is, the camera takes the vertical orientation to take the shot.
- Horizontal orientation shooting can also be called horizontal shooting.
- the horizontal orientation shooting of the shooting device means that the shooting device is installed horizontally on the pan/tilt support, so that it can take a horizontal picture relative to the horizontal plane.
- the device is a mobile phone as an example.
- 10 is the horizontal plane
- 20 is the long side of the screen
- 30 is the short side of the screen.
- the exemplary definitions of horizontal shooting and vertical shooting can also be completely opposite to the above description.
- pan-tilt control method in the embodiment of the present application will be described below.
- FIG. 3 is a schematic flow chart of a method for controlling a pan-tilt in an embodiment of the present application; please refer to FIG. 3, the method for controlling a pan-tilt according to an embodiment of the present application may include the following steps:
- S301 Acquire the current posture of the shooting device and the target posture of the shooting device when the shooting device is in the vertical orientation shooting mode;
- the current posture and the target posture can be characterized by Euler angles, or can be characterized by quaternion.
- An inertial measurement unit (IMU, Inertial Measurement Unit) can be set on the camera, and the current posture of the camera can be obtained according to the inertial measurement unit on the camera.
- the IMU can also be set on the inner frame of the pan/tilt.
- the target posture can be acquired using different strategies.
- the target posture is determined according to the posture control amount sent by the control device of the pan/tilt head, that is, the posture of the camera is controlled by the control device.
- the control device can be a mobile terminal such as a mobile phone, a tablet computer, or a fixed terminal, or a remote control or other device capable of controlling the rotating structure, and can also be integrated on the handle of the pan-tilt.
- the control device is a remote control
- the amount of posture control is determined according to the amount of stick generated by the user operating the joystick of the remote control.
- the target posture is determined based on the real-time detected posture of the base of the pan/tilt, that is, the posture of the camera changes with the posture of the base.
- the target attitude is determined based on the attitude control amount sent by the control device of the pan/tilt and the real-time detection attitude of the base of the pan/tilt, that is, the attitude control amount of the camera is generated by the control device and the position of the base.
- the posture is decided together.
- the priority of controlling the posture of the camera by the control device is higher than the priority of the posture of the camera changing with the posture of the base, that is, when the posture sent by the control device is acquired
- the target attitude is determined according to the attitude control amount sent by the control device of the PTZ.
- the posture of the camera device changes with the posture of the base.
- the camera can only be controlled by the control device at this time.
- the target attitude is determined according to the attitude control amount sent by the control device, and the target attitude is not Will be affected by changes in the posture of the base.
- the posture of the camera will follow the change of the base's posture.
- the target posture is determined based on the real-time detection posture of the base of the pan/tilt, and the target posture will not be sent by the control device. The influence of the amount of attitude control.
- the yaw axis, roll axis, and pitch axis are all free modes.
- the roll axis is in free mode, the roll axis is used for stabilization, and the pitch axis and/or yaw axis are in follow mode.
- the free mode the base of the pan/tilt moves, but the corresponding arm of the pan/tilt does not rotate.
- the follow mode the corresponding axis moves with the movement of the base of the pan/tilt.
- the pan/tilt when the pan/tilt is in the follow mode, if the deviation between the current attitude of the camera and the real-time detection attitude of the base of the camera is less than or equal to the preset deviation threshold, there is no need to control the attitude of the camera; if the current attitude of the camera is If the deviation of the real-time detection attitude from the base of the pan/tilt head is greater than the preset deviation threshold, the attitude of the camera is controlled to follow the attitude of the base.
- S302 Determine the target joint angle of the pan/tilt according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control command, where the preset control command can make the camera in the vertical orientation shooting mode ,
- the gimbal always maintains a fixed degree of freedom of rotation during the rotation process;
- the gimbal is configured to rotate around two axes, the two axes include the yaw axis and the pitch axis, and the degree of freedom of rotation that the gimbal always maintains a fixed dimension during the rotation means: the gimbal is rotating During the process, it can always rotate around the yaw axis and pitch axis; another example, the gimbal is configured to rotate around three axes, the three axes include the yaw axis, the pitch axis and the roll axis. The gimbal is in the process of rotating
- the degree of freedom of rotation that always maintains a fixed dimension means that the gimbal can always rotate around the yaw axis, pitch axis, and roll axis during the rotation.
- the Euler angle of the camera corresponds to the rotation of the first axis, the second axis, and the third axis, where the first axis is parallel to the light of the camera.
- the axis direction, the first axis, the second axis, and the third axis are orthogonal to each other.
- the direction of the first axis, the direction of the second axis, and the direction of the third axis are determined according to the placement direction of the camera and the direction of the optical axis.
- the camera is placed in a horizontal orientation and the optical axis of the camera is parallel to In the horizontal plane, the third axis is the vertical direction, and both the first axis and the second axis are parallel to the horizontal plane.
- the first axis corresponds to the roll axis
- the second axis corresponds to the pitch axis
- the third axis corresponds to the yaw axis.
- the first axis, the second axis, and the third axis are denoted by X, Y, and Z, respectively.
- the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis.
- the Euler angle rotation sequence of the camera corresponding to the preset control instruction is determined according to the configuration of the pan/tilt head.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis.
- the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, and second axis.
- a three-axis gimbal and the gimbal is configured to rotate around the yaw axis, pitch axis, and roll axis as an example to illustrate the gimbal of the ZXY configuration and the gimbal of the YXZ configuration.
- the ZXY configuration gimbal when the gimbal is placed upright and the joint angles of the outer frame, middle frame and inner frame are all 0 degrees, the outer frame rotates around the yaw axis, the middle frame rotates around the roll axis, and the inner frame Rotate around the pitch axis.
- the handheld pan/tilt also includes a handle 3 and a screen 4 and buttons (not shown) provided on the front of the handle 3.
- the screen 4 faces the user, and the lens of the shooting device is facing away from the user.
- FIG. 4 it is a state diagram of the handheld PTZ placed upright.
- the handheld PTZ shown in Figure 4 is a ZXY configuration PTZ.
- a realization process of determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction may include but is not limited to the following steps:
- the target posture is determined according to the posture control amount sent by the control device of the pan-tilt.
- the implementation process of step (1) may include: acquiring the last target posture of the camera; determining the first Euler angle corresponding to the last target posture according to the Euler angle rotation sequence of the camera corresponding to the preset control instruction; According to the first Euler angle and the second Euler angle, the target Euler angle is determined.
- the second Euler angle is obtained by converting the attitude control amount based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction.
- the gimbal is controlled in a closed loop mode, that is, the camera is controlled by the camera to move from the current posture to the target posture.
- the final position of the camera may deviate from the target posture. Accumulation of control deviations will result in larger deviations and poor control accuracy. That is, in the last control, the camera may not be able to reach the last target posture of the camera. Therefore, in the current control, the second Euler angle corresponding to the posture control amount corresponds to the last target posture. The first Euler angle is superimposed to determine the target Euler angle, which reduces the superimposition of the deviation and makes the control more accurate.
- the last target attitude can be determined based on the attitude control amount sent by the control device of the pan/tilt, or determined based on the real-time detection attitude of the base of the pan/tilt, or based on the attitude control sent by the control device of the pan/tilt.
- the amount and the real-time detection attitude of the base of the PTZ are determined together.
- the target Euler angle is determined according to the sum of the first Euler angle and the second Euler angle.
- the target Euler angle is the sum of the first Euler angle and the second Euler angle.
- the last target posture is converted to obtain the first Euler angle of the camera, and the first Euler angle of the camera is obtained according to the preset control instruction.
- the attitude control amount is converted to obtain the second Euler angle.
- the last target attitude and attitude control amount used to control the rotation of the gimbal around an axis corresponds to a change in the Euler angle of the gimbal.
- a change in the Euler angle of the gimbal may need to control one or more joints of the gimbal.
- the first Euler angle of the camera is obtained by converting the last target posture according to the Euler angle rotation sequence of the camera corresponding to the preset control instruction, and the first Euler angle of the camera is obtained according to the preset control instruction.
- the Euler angle rotation sequence and the conversion of the attitude control amount to obtain the second Euler angle is a way to make the rotation direction of the camera more in line with the user's requirements, thus making the images captured by the camera more satisfy the user's expectations.
- the gimbal is a three-axis handheld gimbal
- the handle of the handheld gimbal is tilted at this time
- control in the corresponding attitude If the amount is only converted to a joint angle, at this time, the pitch motor can be driven to rotate, but the roll motor and yaw motor will not rotate. Because the camera rotates around the body coordinate system, the changes in the shooting screen will be more rigid and abrupt.
- the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, second axis
- the component used to control the gimbal's rotation around the yaw axis in the last target attitude is obtained by conversion based on the second axis in the Euler angle rotation sequence.
- the component used to control the rotation of the gimbal around the yaw axis in the last target attitude is converted to obtain the first Y1 component in the first Euler angles (Y1, X1, Y1).
- the component used to control the rotation of the gimbal around the pitch axis is converted to obtain the second Y1 component in the first Euler angle (Y1, X1, Y1).
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: third axis, first axis, third axis, the component used to control the gimbal's rotation around the yaw axis in the last target attitude, and
- the component that controls the rotation of the gimbal around the pitch axis is obtained by conversion based on the third axis in the Euler angle rotation sequence. Specifically, the component used to control the rotation of the gimbal around the yaw axis in the last target attitude is converted to obtain the first Z1 component in the first Euler angles (Z1, X1, Z1). The component used to control the rotation of the gimbal around the pitch axis is converted to obtain the second Z1 component in the first Euler angle (Z1, X1, Z1).
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, or: third axis, first axis, third axis, used in the last target attitude
- the components used to control the rotation of the gimbal around the roll axis are all converted based on the first axis in the Euler angle rotation sequence, that is, the component used to control the rotation of the gimbal around the roll axis in the last target attitude is converted , Get the X1 component in the first Euler angle.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, then the component of the attitude control quantity used to control the rotation of the pan/tilt around the yaw axis, and used to control The rotation component of the gimbal around the pitch axis is obtained by conversion based on the second axis in the Euler angle rotation sequence.
- the component used to control the rotation of the gimbal around the yaw axis in the attitude control variable is converted to obtain the first Y2 component in the second Euler angle (Y2, X2, Y2), and the attitude control variable is used to control the cloud
- the components of the stage rotation around the pitch axis are converted to obtain the second Y2 component in the second Euler angle (Y2, X2, Y2).
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis
- the component of the rotation of the stage around the pitch axis is obtained by conversion based on the third axis in the Euler angle rotation sequence.
- the component used to control the rotation of the gimbal around the yaw axis in the attitude control is converted to obtain the first Z2 component in the second Euler angle (Z2, X2, Z2), and the attitude control is used to control the cloud
- the components of the rotation of the station around the pitch axis are converted to obtain the second Z2 component in the second Euler angle (Z2, X2, Z2).
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the second axis, the first axis, the second axis, or: the third axis, the first axis, and the third axis.
- the components used to control the rotation of the gimbal around the roll axis are all converted based on the first axis in the Euler angle rotation sequence, that is, the component used to control the rotation of the gimbal around the roll axis in the attitude control value is converted to obtain The X2 component in the second Euler angle.
- the conversion includes the conversion of the Euler angular velocity of the pan/tilt rotation, or the conversion of the Euler angle size of the pan/tilt rotation.
- the conversion is the conversion of the Euler angular velocity of the pan/tilt rotation.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, then the components in the second Euler angle (Y2, X2, Y2) are all
- the components in the first Euler angle (Y1, X1, Y1) are also the corresponding Euler angular velocity.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis
- the components in the second Euler angle (Z2, X2, Z2) are all corresponding to the Euler angles. Pull angular velocity, the components in the first Euler angle (Z1, X1, Z1) are also corresponding Euler angular velocity.
- the conversion is the conversion of the Euler angle size of the pan/tilt rotation.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the second axis, the first axis, and the first axis.
- the components in the second Euler angles (Y2, X2, Y2) are all corresponding Euler angles
- the components in the first Euler angles (Y1, X1, Y1) are also corresponding Euler angles. Angle size.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis
- the components in the second Euler angle (Z2, X2, Z2) are all corresponding to the Euler angles.
- the size of the pull angle, the components in the first Euler angle (Z1, X1, Z1) are also the corresponding Euler angle size.
- the range of the angle value corresponding to the roll direction in the target Euler angle is 90 degrees ⁇ the first preset angle or -90 degrees ⁇ the second preset angle, that is, when the camera is controlled by the control device .
- the angle value corresponding to the roll direction in the target Euler angle is within the above-mentioned angle range (90 degrees ⁇ the first preset angle or -90 degrees ⁇ the second preset angle) to ensure that the camera is in the vertical orientation for shooting Mode.
- the camera is controlled by the control device, if the angle value corresponding to the roll direction in the target Euler angle of the camera exceeds the above-mentioned angle range, in some embodiments, the camera is controlled by the pan/tilt to exit the vertical orientation shooting mode; In some other embodiments, the value of the angle corresponding to the roll direction in the target Euler angle of the camera controlled by the pan/tilt is the limit angle of the current rotation direction corresponding to the vertical orientation shooting mode.
- the first preset angle and the second preset angle can be set as required, for example, the first preset angle and the second preset angle are both 45 degrees.
- the target posture is determined according to the real-time detection posture of the base of the pan/tilt.
- the implementation process of step (1) may include: based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction, converting the roll posture component in the target posture into 90 degrees or -90 degrees to obtain the target Euler angle.
- the Euler angle rotation sequence of the camera corresponding to the preset control command is no matter: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis.
- the posture component corresponding to one axis is maintained at 90 degrees or -90 degrees. Through such control, it is ensured that the camera is always in the vertical orientation shooting mode.
- the target Euler angle is converted into the first attitude quaternion.
- the conversion relationship between the Euler angle and the quaternion is in the prior art. No detailed introduction.
- the current attitude needs to be converted into the second attitude quaternion according to the conversion relationship between Euler angles and quaternions; if the current attitude is represented by quaternions, it is omitted The conversion process of Euler angles to quaternion above.
- the realization process of step (3) may include: determining the quaternion attitude deviation according to the first attitude quaternion and the second attitude quaternion; determining the target joint angle of the pan/tilt according to the quaternion attitude deviation.
- the quaternion attitude deviation is determined according to the difference obtained by subtracting the second attitude quaternion from the first attitude quaternion.
- the quaternion attitude deviation (first attitude quaternion-second attitude Quaternion).
- the target joint angle of the pan/tilt head is determined based on the quaternion attitude deviation and the Jacobian inverse matrix.
- the target joint angle includes the joint angle corresponding to the yaw motor, the joint angle corresponding to the roll motor, and the joint angle corresponding to the pitch motor.
- the yaw motor It is used to control the gimbal to rotate around the yaw axis
- the roll motor is used to control the gimbal to rotate around the roll axis
- the pitch motor is used to control the gimbal to rotate around the pitch axis.
- the realization process of determining the target joint angle of the pan/tilt may include:
- the preset interpolation strategy can be selected as required.
- the process of determining at least one intermediate pose between the current pose and the target pose may include: according to the current pose , The target posture and at least one time change parameter to determine at least one intermediate posture between the current posture and the target posture.
- at least one time change parameter corresponds to at least one intermediate posture in a one-to-one correspondence.
- the time change parameter includes multiple, and the direction of the posture switching from the current posture to the target posture, and the time change parameters corresponding to the multiple intermediate postures show an increasing trend.
- the current posture quaternion is represented by q 0
- the target posture quaternion is represented by q 1
- the current posture quaternion q 0 and the target posture quaternion are calculated as the following formula:
- t is a time parameter that varies from 0 to 1
- ⁇ is the angle difference between directions q 0 to q 1 , as shown in Figure 5.
- t can also be a time parameter other than 0 to 1, which represents the time when the current posture quaternion q 0 changes to the target posture quaternion q 1 , and can be converted to 0 to 1 through a normalized expression. Parameter between time changes.
- the Euler angle deviations of the postures adjacent to the position are equal; optionally, the Euler angle deviations of the postures adjacent to the position may also be unequal.
- the corresponding joint angle is determined according to the Euler angle rotation sequence of the camera corresponding to each adjacent posture and the preset control instruction; and then the direction of switching from the current posture to the target posture according to the joint angle corresponding to each adjacent posture , Control the rotation of the pan/tilt in turn to control the smooth rotation of the camera. That is, there are multiple target joint angles, which include joint angles corresponding to adjacent poses.
- At least one intermediate pose is inserted between the current pose and the target pose.
- the quaternion pose deviation corresponding to the adjacent pose is determined, and then the quaternion corresponding to the adjacent pose is determined.
- posture deviation determine the joint angles corresponding to the adjacent postures, and then according to the joint angles corresponding to each adjacent posture, the direction of switching from the current posture to the target posture is sequentially controlled to rotate the pan/tilt so that the camera rotates smoothly.
- the realization process of S303 may include: controlling the heading motor to rotate the joint angle corresponding to the heading motor, and controlling The roll motor rotates the joint angle corresponding to the roll motor, and controls the pitch motor to rotate the joint angle corresponding to the pitch motor.
- the method for controlling the pan/tilt further includes: when the camera is in the vertical orientation shooting mode, acquiring the shooting Before the current posture of the device and the target posture of the shooting device, if the first trigger instruction indicating that the shooting device enters the vertical orientation shooting mode is acquired, the shooting device is controlled to be in the vertical orientation shooting mode.
- the first trigger instruction can be generated in a variety of ways.
- the pan/tilt includes a base and a control unit provided on the base, and the first trigger instruction is generated by the user triggering the control unit.
- the control part may include keys, buttons, knobs or a combination of the above.
- the control unit in this embodiment may include one or more.
- the handheld pan/tilt may include a handle, and the control part may be provided on the handle.
- the first trigger instruction is generated by the user operating the external device and sent by the external device.
- the external device can communicate with the pan/tilt.
- the external device may include a mobile terminal such as a mobile phone and a tablet computer, a fixed terminal, or a remote control or other control device of the pan/tilt.
- the realization process of controlling the shooting device to be in the vertical orientation shooting mode may include: acquiring the current shooting mode of the shooting device; and controlling the shooting device to be in the vertical shooting mode according to the current shooting mode.
- the current shooting mode is a vertical orientation shooting mode.
- controlling the shooting device to be in the vertical orientation shooting mode may include: maintaining the shooting device in the vertical orientation shooting mode. That is, when the current shooting mode is the vertical orientation shooting mode, there is no need to switch the mode.
- controlling the shooting device to be in the vertical shooting mode may include: controlling the shooting device to switch the shooting device from the current shooting mode to the vertical shooting mode. That is, when the current shooting mode is a non-vertical-oriented shooting mode, it is necessary to switch the mode to switch the shooting device from the non-vertical-oriented shooting mode to the vertical-oriented shooting mode.
- controlling the shooting device to switch from the current shooting mode of the shooting device to the vertical orientation shooting mode may include but is not limited to the following steps:
- the gimbal is configured to rotate around two axes, the two axes include the yaw axis and the pitch axis.
- the degree of freedom of the gimbal to maintain the original dimension of rotation means: before the mode is switched, the gimbal is Rotate around the yaw axis and pitch axis; after the mode is switched, the gimbal also rotates around the yaw axis and pitch axis.
- the gimbal is configured to rotate around three axes, including the yaw axis, pitch axis, and roll axis.
- the rotation freedom of the gimbal to maintain the original dimension means: before the mode is switched, the cloud The platform rotates around the yaw axis, pitch axis and roll axis; after the mode is switched, the gimbal also rotates around the yaw axis, pitch axis and roll axis.
- the control command for switching the pan/tilt that is, the switching sequence of the Euler angle of the camera, the sequence of Euler angle rotation of the camera corresponding to the preset control command after switching needs to correspond to the vertical orientation shooting mode
- the shooting orientation of the shooting device refer to the description of the Euler angle rotation sequence of the shooting device corresponding to the preset control instruction in the embodiment of the above-mentioned target posture acquisition process.
- the control instruction of the pan/tilt is switched directly according to the first trigger instruction, it will be based on the preset Setting a control command to control the shooting device to switch from horizontal orientation shooting to vertical orientation shooting will cause the rotation axes of the two motors to overlap, which will cause the universal joint to lock up.
- the process of switching the control command of the pan/tilt head to the preset control command may include: acquiring the real-time roll posture component of the camera; if the real-time roll posture component When the preset condition is met, the control command of the pan/tilt is switched to the preset control command.
- the real-time roll posture component of the camera can be obtained according to the detection of the inertial measurement unit on the camera.
- the current shooting mode includes the horizontal orientation shooting mode
- the preset conditions include: the real-time roll attitude component is not 0 degrees, 180 or -180 degrees, that is, when the current shooting mode is the horizontal orientation shooting mode, if the real-time roll attitude component is If it is not 0 degree, 180 or -180 degree, directly switch the control command of the pan/tilt to the preset control command.
- the preset control command control the camera to switch from the horizontal orientation shooting mode to the vertical orientation shooting mode There is no problem of gimbal locking.
- control method of the pan/tilt head of this embodiment may further include: if the real-time roll posture component does not meet the preset condition, controlling the rotation of the pan/tilt so that the real-time roll posture component of the camera is offset by a preset angle, And make the real-time roll posture component of the shifted camera meet the preset condition.
- the camera When the real-time roll posture component does not meet the preset conditions, if the control command of the pan/tilt head is directly switched to the preset control command, the camera will be controlled to switch from the non-vertical orientation shooting mode to the vertical orientation according to the preset control command
- the shooting mode will cause the problem of gimbal locking; in this embodiment, when the real-time roll posture component does not meet the preset conditions, the pan-tilt is first controlled to rotate, so that the real-time roll posture component of the shooting device is shifted by the preset angle. And make the real-time roll posture component of the shifted camera meet the preset condition; then switch the control command of the pan-tilt to the preset control command. At this time, according to the preset control command, the camera is controlled from the non-vertical orientation Switching the shooting mode to the vertical orientation shooting mode will not cause the problem of gimbal locking.
- controlling the rotation of the pan/tilt so that the real-time roll posture component of the camera is shifted by a preset angle and the real-time roll posture component of the shifted camera meets the preset condition may include: according to the current shooting The control instruction corresponding to the mode controls the rotation of the pan-tilt so that the real-time roll posture component of the camera is shifted by a preset angle, and the real-time roll posture component of the shifted camera meets the preset condition.
- the Euler angle rotation sequence of the shooting device corresponding to the control command corresponding to the current shooting mode is: second axis, first axis, third axis, or third axis, first axis, The second axis.
- it is determined which of the above-mentioned Euler angle rotation sequence is the Euler angle rotation sequence of the camera corresponding to the control instruction corresponding to the current shooting mode.
- the Euler angle rotation sequence of the camera corresponding to the control command corresponding to the current shooting mode is: the third axis, the first axis, and the second axis.
- the Euler angle rotation sequence of the camera corresponding to the control command corresponding to the current shooting mode is: the second axis, the first axis, and the third axis.
- making the real-time roll posture component of the offset camera device meet the preset conditions may include: controlling the rotation of the pan/tilt according to the Euler angle rotation sequence of the third axis, the first axis, and the second axis to The real-time roll posture component of the photographing device is shifted by a preset angle, and the real-time roll posture component of the shifted photographing device meets the preset condition.
- the size of the preset angle can be set as required, for example, the preset angle can be 5 degrees or other degrees.
- the pan/tilt is controlled to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the vertical orientation shooting mode.
- the method further includes: acquiring the attitude of the base of the pan/tilt; according to the attitude of the base, controlling the optical axis direction of the photographing device through the pan/tilt to be substantially parallel to the middle plane of the base.
- the posture of the base can be directly obtained.
- an inertial measurement unit IMU
- the posture of the base is obtained through the detection of the inertial measurement unit on the base; the posture of the base It can also be obtained indirectly.
- the posture of the base is determined according to the posture of the camera.
- the base is the handle of the handheld pan/tilt.
- the handheld pan/tilt in this embodiment also includes an accelerometer, which is used to detect the posture qmesa of the camera.
- the posture of the handle is determined according to the posture of the camera and the joint angle of the gimbal.
- the joint angles of the gimbal include yaw joint angle joint_yaw, roll joint angle joint_roll and Pitch joint angle joint_pitch, each joint angle is the joint angle of the corresponding axis motor.
- q_yaw, q_roll and q_pitch are obtained.
- the conjugate or inverse of q_yaw, q_roll and q_pitch are q_yaw_inv, q_roll_inv and q_pitch_inv respectively.
- the calculation formula of the handle posture qhandle is as follows:
- joint represents the joint angle
- q represents the quaternion
- the base is a handle
- the middle plane of the base is the middle plane in the length direction of the handle.
- the implementation process may include:
- the realization process of determining the initial posture of the camera during mode switching may include: determining the posture cosine matrix according to the real-time posture; shooting corresponding to the posture cosine matrix and the preset control instruction
- the rotation sequence of the Euler angles of the device determines the initial posture of the camera when the mode is switched.
- the attitude cosine matrix is represented by a quaternion, in this article, q represents a quaternion.
- the Euler angle rotation sequence of the camera is: Z, X, Y, referred to as ZXY rotation sequence; when the camera is in the vertical orientation shooting mode, the Euler angle of the camera
- the angular rotation sequence is: Z, X, Z, referred to as ZXZ rotation sequence.
- the real-time posture of the camera is the Euler angle of the ZXY rotation sequence, assuming that the Euler angle of the ZXY rotation sequence is (Out_Z, Mid_X, Inn_Y), where Out_Z, Mid_X, Inn_Y correspond to Euler rotating around Z, X, Y Angle size, formula (4) is transformed into:
- q 0 , q 1 , q 2 , and q 3 are the four elements of a quaternion, respectively. Combining formulas (4) and (6), it can be determined:
- the initial posture of the camera can be determined when the mode is switched.
- the initial posture is the Euler angle (Out_Z, Mid_X, Inn_Z) of the ZXZ rotation sequence, where Out_Z, Mid_X, Inn_Z correspond to The Euler angle of Z, X, Z rotation.
- Out_Z, Mid_X, Inn_Z are respectively one solution of the Euler angle of the corresponding ZXZ rotation sequence, and the other solution is (-pi+Inn_Z,-Mid_X,-pi+Out_Z).
- the specific solution is based on the current base orientation and other information determine.
- the camera can be controlled by the pan-tilt to reach the initial posture, and then the camera can be controlled by the pan-tilt to reach the target posture from the initial posture to a posture of 90 degrees or -90 degrees;
- the rolling posture component is 90 degrees or -90 degree posture superposition, and the camera is controlled by the pan-tilt to reach the posture obtained by superposition.
- attitude components of the camera such as the yaw attitude component and/or the pitch attitude component, may not be controlled, or as required
- the other posture components of the control camera are preset sizes.
- the method for controlling the pan/tilt head further includes: when the shooting device is in the vertical orientation shooting mode, if a second trigger instruction instructing the shooting device to exit the vertical orientation shooting mode is obtained, controlling the shooting device to exit Vertical orientation shooting mode.
- the second trigger instruction can be generated in multiple ways.
- the pan/tilt includes a base and a control part provided on the base, and the second trigger instruction is generated by the user triggering the control part.
- the control part may include keys, buttons, knobs or a combination of the above.
- the control unit in this embodiment may include one or more.
- the handheld pan/tilt may include a handle, and the control part may be provided on the handle.
- the second trigger instruction is generated by the user operating the external device and sent by the external device.
- the external device can communicate with the pan/tilt.
- the external device may include a mobile terminal such as a mobile phone and a tablet computer, a fixed terminal, or a remote control or other control device of the pan/tilt.
- the embodiment of the present application also provides a pan/tilt head.
- the pan/tilt head includes a base, a shaft assembly, and a controller.
- the shaft assembly is arranged on the base, and the shaft assembly is used to mount the imaging device.
- the shaft assembly of this embodiment is configured to rotate around at least two axes.
- the shaft assembly is configured to rotate around a yaw axis, a pitch axis, and a roll axis; optionally, the shaft assembly is configured to rotate around a yaw axis.
- the axis and the pitch axis rotate.
- the controller is electrically connected with the pan/tilt, and optionally, the controller is arranged on the base.
- the controller is used to: when the shooting device is in the vertical orientation shooting mode, obtain the current posture of the shooting device and the target posture of the shooting device; according to the current posture, the target posture, and the Euler angle of the shooting device corresponding to the preset control instruction Rotation sequence, determine the target joint angle of the gimbal; control the rotation of the gimbal according to the target joint angle; among them, the preset control command can make the gimbal always remain fixed during the rotation of the camera when the camera is in the vertical orientation shooting mode Dimensional degrees of freedom of rotation.
- the controller in this embodiment may be a central processing unit (CPU).
- the controller may further include a hardware chip.
- the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
- the above-mentioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
- the base can be the handle of the handheld pan/tilt or be set on the handle of the handheld pan/tilt.
- an embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for controlling the pan/tilt head of the above-mentioned embodiment are realized.
- the computer-readable storage medium may be the internal storage unit of the pan/tilt head described in any of the foregoing embodiments, such as a hard disk or a memory.
- the computer-readable storage medium may also be an external storage device of the pan-tilt, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash memory card (Flash Card), etc. equipped on the device .
- the computer-readable storage medium may also include both an internal storage unit of the pan-tilt and an external storage device.
- the computer-readable storage medium is used to store the computer program and other programs and data required by the pan/tilt, and can also be used to temporarily store data that has been output or will be output.
- the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Mechanical Engineering (AREA)
- Remote Sensing (AREA)
- Aviation & Aerospace Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Accessories Of Cameras (AREA)
- Studio Devices (AREA)
Abstract
A gimbal control method and a gimbal. A camera device (2) is mounted on a gimbal, and the gimbal is configured to rotate around at least two axes. The method comprises: when the camera device (2) is in a portrait orientation photographing mode, obtaining a current attitude of the camera device (2) and a target attitude of the camera device (2) (S301); determining a target joint angle of the gimbal according to the current attitude, the target attitude, and an Euler angle rotation sequence of the camera device (2) corresponding to a preset control instruction (S302), wherein the preset control instruction can make the gimbal always maintain a rotational degree of freedom in a fixed dimension during rotation when the camera device (2) is in the portrait orientation photographing mode; and controlling rotation of the gimbal according to the target joint angle (S303). According to the present method, when the camera device (2) is in the portrait orientation photographing mode, a preset control instruction is adopted to avoid the problem of lock of a universal joint during gimbal control, thereby achieving portrait orientation photographing in the whole space and meeting requirements for portrait orientation photographing at any angle.
Description
本申请涉及云台领域,尤其涉及一种云台的控制方法和云台。This application relates to the field of pan-tilt, and in particular to a method for controlling a pan-tilt and a pan-tilt.
现有技术中,在拍摄装置处于竖直取向拍摄模式下,当云台转动至某些角度时,会导致其中两个电机的旋转轴重合,如俯仰轴电机和偏航轴电机的轴线重合,从而导致万向节锁死,云台无法切换至任意角度进行拍摄;在出现万向节锁死时,三轴云台只能在两个方向进行增稳,进而导致增稳性能下降、甚至抖动、不平滑等。In the prior art, when the camera is in the vertical orientation shooting mode, when the pan-tilt rotates to a certain angle, the rotation axes of the two motors will overlap, for example, the axes of the pitch axis motor and the yaw axis motor overlap. As a result, the gimbal is locked and the gimbal cannot be switched to any angle for shooting; when the gimbal is locked, the three-axis gimbal can only be stabilized in two directions, which leads to a decrease in stabilization performance and even jitter , Not smooth, etc.
发明内容Summary of the invention
本申请提供一种云台的控制方法和云台。This application provides a method for controlling a pan-tilt and a pan-tilt.
根据本申请的第一方面,提供一种云台的控制方法,所述云台上搭载有拍摄装置,所述云台被配置为绕至少二个轴转动,所述方法包括:According to a first aspect of the present application, there is provided a method for controlling a pan/tilt, the pan/tilt is equipped with a photographing device, and the pan/tilt is configured to rotate around at least two axes, and the method includes:
在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态;When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;
根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角;Determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction;
根据所述目标关节角,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target joint angle;
其中,所述预设控制指令能够使得在所述拍摄装置处于竖直取向拍摄模式下,所述云台在转动的过程中始终保持固定维度的转动自由度。Wherein, the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
根据本申请的第二方面,提供一种云台,所述云台包括:According to a second aspect of the present application, there is provided a pan-tilt, the pan-tilt including:
基座;Base
设置于所述基座上的轴组件,所述轴组件用于搭载拍摄装置,所述轴组件被配置为绕至少二个轴转动;和A shaft assembly provided on the base, the shaft assembly is used to mount a photographing device, and the shaft assembly is configured to rotate about at least two shafts; and
控制器,所述控制器与所述云台电连接,所述控制器用于:A controller, the controller is electrically connected to the pan-tilt, and the controller is used for:
在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态;When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;
根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角;Determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction;
根据所述目标关节角,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target joint angle;
其中,所述预设控制指令能够使得在所述拍摄装置处于竖直取向拍摄模式下,所述云台在转动的过程中始终保持固定维度的转动自由度。Wherein, the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
根据本申请实施例提供的技术方案,在拍摄装置处于竖直取向拍摄模式下,采用预设控制指令规避云台控制时的万向节锁死问题,进而实现全空间范围的竖拍,满足任意角度的竖拍需求。According to the technical solution provided by the embodiments of the present application, when the camera is in the vertical orientation shooting mode, preset control instructions are used to avoid the gimbal lock problem during pan/tilt control, thereby realizing full-space vertical shooting, satisfying arbitrary The angle of the vertical shooting needs.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本发明一实施例中的云台的立体图;Figure 1 is a perspective view of a pan-tilt in an embodiment of the present invention;
图2A是本申请一实施例中的拍摄装置以竖直取向拍摄时的示意图;2A is a schematic diagram of the shooting device in an embodiment of the present application when shooting in a vertical orientation;
图2B是本申请一实施例中的拍摄装置以水平取向拍摄时的示意图;2B is a schematic diagram of the photographing device in an embodiment of the present application when photographing in a horizontal orientation;
图3是本申请一实施例中的云台的控制方法的方法流程示意图;FIG. 3 is a schematic flowchart of a method for controlling a pan-tilt in an embodiment of the present application;
图4是图1所示的手持云台正立放置时的立体图;Figure 4 is a perspective view of the handheld PTZ shown in Figure 1 when it is placed upright;
图5是本申请一实施例中的预设插值策略的示意图;FIG. 5 is a schematic diagram of a preset interpolation strategy in an embodiment of the present application;
图6是本申请一实施例中的云台的结构框图。Fig. 6 is a structural block diagram of a pan-tilt in an embodiment of the present application.
现有技术中,在拍摄装置处于竖直取向拍摄模式下,当云台转动至某些角度时,会导致其中两个电机的旋转轴重合,如俯仰轴电机和偏航轴电机的轴线重合,从而导致万向节锁死,云台无法切换至任意角度进行拍摄;在出现万向节锁死时,三轴云台只能在两个方向进行增稳,进而导致增稳性能下降、甚至抖动、不平滑等。In the prior art, when the camera is in the vertical orientation shooting mode, when the pan-tilt rotates to a certain angle, the rotation axes of the two motors will overlap, for example, the axes of the pitch axis motor and the yaw axis motor overlap. As a result, the gimbal is locked and the gimbal cannot be switched to any angle for shooting; when the gimbal is locked, the three-axis gimbal can only be stabilized in two directions, which leads to a decrease in stabilization performance and even jitter , Not smooth, etc.
对于此,本申请在拍摄装置处于竖直取向拍摄模式下,采用预设控制指令规避云台控制时的万向节锁死问题,进而实现全空间范围的竖拍,满足任意角度的竖拍需求。In this regard, this application uses preset control commands to avoid gimbal locking problems when the camera is controlled by the camera when the camera is in the vertical orientation shooting mode, thereby realizing full-space vertical shooting and meeting the requirements for vertical shooting at any angle .
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。It should be noted that, in the case of no conflict, the following embodiments and features in the implementation can be combined with each other.
本申请实施例的云台上搭载有拍摄装置,本申请实施例中,云台搭载在基座上基座倾斜时,拍摄装置可以通过云台的控制绕世界坐标系旋转。该拍摄装置可以为摄像机、单反、微单、运动相机、智能手机等拍摄装置。The camera in the embodiment of the application is equipped with a camera. In the embodiment of the application, the camera is mounted on the base when the base is tilted, the camera can rotate around the world coordinate system under the control of the camera. The shooting device can be a camera, a SLR, a mirrorless single, a sports camera, a smart phone, and other shooting devices.
其中,云台被配置为绕至少二个轴转动。本实施例的云台可以被配置为绕两个轴转动,也可以被配置为绕三个轴或三个以上的轴转动。例如,在一些实施例中,云台被配置为绕两个轴转动,两个轴包括偏航轴和俯仰轴。在另外一些实施例中,云台被配置为绕三个轴转动,三个轴包括偏航轴、俯仰轴和横滚轴。Wherein, the pan/tilt is configured to rotate around at least two axes. The pan/tilt head of this embodiment may be configured to rotate around two axes, or it may be configured to rotate around three axes or more than three axes. For example, in some embodiments, the pan/tilt is configured to rotate about two axes, the two axes including a yaw axis and a pitch axis. In other embodiments, the pan/tilt is configured to rotate around three axes, the three axes including the yaw axis, the pitch axis, and the roll axis.
本申请实施例的云台可以为手持云台,也可以为机载云台,机载云台可以搭载在可移动平台上,该可移动平台可以为无人机、无人车、移动机器人等。The pan/tilt in the embodiments of the present application may be a handheld pan/tilt or an airborne pan/tilt. The airborne pan/tilt may be mounted on a movable platform, which may be an unmanned aerial vehicle, an unmanned vehicle, a mobile robot, etc. .
示例性的,请参见图1,云台为手持云台,且云台为三轴云台,本实施例的云台被配置为绕偏航轴、俯仰轴和横滚轴转动。手持云台可包括外框架11、中框架12和内框架,外框架11被配置为绕偏航轴转动,中框架12被配置为绕横滚轴转动,内框架被配置为绕俯仰轴转动,且内框架用于搭载拍摄装置2。其中,外框架11包括偏航轴轴臂,且由偏航轴电机驱动,中框架12包括横滚轴轴臂,且由横滚轴电机驱动,内框架包括俯仰轴轴臂,且由俯仰轴电机驱动。Exemplarily, please refer to Fig. 1. The pan/tilt is a handheld pan/tilt, and the pan/tilt is a three-axis pan/tilt. The pan/tilt in this embodiment is configured to rotate around the yaw axis, pitch axis, and roll axis. The handheld gimbal may include an outer frame 11, a middle frame 12, and an inner frame. The outer frame 11 is configured to rotate about a yaw axis, the middle frame 12 is configured to rotate about a roll axis, and the inner frame is configured to rotate about a pitch axis, And the inner frame is used to mount the camera 2. Wherein, the outer frame 11 includes a yaw axis arm and is driven by a yaw axis motor, the middle frame 12 includes a roll axis arm and is driven by a roll axis motor, and the inner frame includes a pitch axis arm and is driven by a pitch axis motor driven.
需要说明的是,竖直取向拍摄也可以称作竖拍,拍摄装置以竖直取向拍摄是指拍摄装置在云台支架上竖直安装,以便于拍摄出相对于水平面竖直的画面,示例性的,拍摄装置为手机,请参见图2A,将画面的长边20方向旋转到竖直方向(即画面的长边20垂直于水平面)进行拍摄,即为拍摄装置以竖直取向拍摄。水平取向拍摄也可以称作横拍,拍摄装置以水平取向拍摄是指拍摄装置在云台支架上水平安装,以便于拍摄出相对于水平面水平的画面,对于给定画面长宽比的,以拍摄装置为手机为例,请参见图2B,10为水平面,20画面的长边,30为画面的短边,将画面的长边20方向旋转到水平方向(即画面的长边20平行于水平面10)进行拍摄,即为拍摄装置以水平取向拍摄。当然,横拍和竖拍的示例性定义也可以与上述说明完全相反。It should be noted that the vertical orientation shooting can also be called vertical shooting. The shooting device in the vertical orientation means that the shooting device is installed vertically on the pan/tilt support, so as to capture a vertical image relative to the horizontal plane. Yes, the camera is a mobile phone. Please refer to Figure 2A. Rotate the long side 20 of the screen to the vertical direction (that is, the long side 20 of the screen is perpendicular to the horizontal plane) for shooting. That is, the camera takes the vertical orientation to take the shot. Horizontal orientation shooting can also be called horizontal shooting. The horizontal orientation shooting of the shooting device means that the shooting device is installed horizontally on the pan/tilt support, so that it can take a horizontal picture relative to the horizontal plane. For a given picture aspect ratio, take the picture The device is a mobile phone as an example. Please refer to Figure 2B. 10 is the horizontal plane, 20 is the long side of the screen, and 30 is the short side of the screen. Rotate the long side 20 of the screen to the horizontal direction (that is, the long side 20 of the screen is parallel to the horizontal plane 10). ) To shoot, that is, the camera is shooting in a horizontal orientation. Of course, the exemplary definitions of horizontal shooting and vertical shooting can also be completely opposite to the above description.
下面将阐述本申请实施例的云台的控制方法的具体实现过程。The specific implementation process of the pan-tilt control method in the embodiment of the present application will be described below.
图3是本申请一实施例中的云台的控制方法的方法流程示意图;请参见图3,本申请实施例的云台的控制方法可以包括如下步骤:FIG. 3 is a schematic flow chart of a method for controlling a pan-tilt in an embodiment of the present application; please refer to FIG. 3, the method for controlling a pan-tilt according to an embodiment of the present application may include the following steps:
S301:在拍摄装置处于竖直取向拍摄模式下,获取拍摄装置的当前姿态和拍摄装置的目标姿态;S301: Acquire the current posture of the shooting device and the target posture of the shooting device when the shooting device is in the vertical orientation shooting mode;
本实施例中,当前姿态和目标姿态可以采用欧拉角方式表征,也可以采用四元数方式表征。In this embodiment, the current posture and the target posture can be characterized by Euler angles, or can be characterized by quaternion.
可以在拍摄装置上设置惯性测量单元(IMU,Inertial measurement unit),根据拍摄装置上的惯性测量单元检测获得拍摄装置的当前姿态。当然,IMU也可以设置 于云台的内框架上。An inertial measurement unit (IMU, Inertial Measurement Unit) can be set on the camera, and the current posture of the camera can be obtained according to the inertial measurement unit on the camera. Of course, the IMU can also be set on the inner frame of the pan/tilt.
目标姿态可以采用不同的策略获取,例如,在一些实施例中,目标姿态为根据云台的控制装置发送的姿态控制量确定,即通过控制装置控制拍摄装置的姿态。控制装置可以为手机、平板电脑等可移动终端,也可以为固定终端,还可以为遥控器或其他能够控制转动结构的装置,还可以集成在云台的手柄上。示例性的,控制装置为遥控器,姿态控制量根据用户操作遥控器的摇杆产生的杆量确定。The target posture can be acquired using different strategies. For example, in some embodiments, the target posture is determined according to the posture control amount sent by the control device of the pan/tilt head, that is, the posture of the camera is controlled by the control device. The control device can be a mobile terminal such as a mobile phone, a tablet computer, or a fixed terminal, or a remote control or other device capable of controlling the rotating structure, and can also be integrated on the handle of the pan-tilt. Exemplarily, the control device is a remote control, and the amount of posture control is determined according to the amount of stick generated by the user operating the joystick of the remote control.
在另一些实施例中,目标姿态为根据云台的基座的实时检测姿态确定,即拍摄装置的姿态跟随基座的姿态变化而变化。In other embodiments, the target posture is determined based on the real-time detected posture of the base of the pan/tilt, that is, the posture of the camera changes with the posture of the base.
在另一些实施例中,目标姿态为根据云台的控制装置发送的姿态控制量和云台的基座的实时检测姿态确定,即拍摄装置的姿态由控制装置产生的姿态控制量以及基座的姿态共同决定。In other embodiments, the target attitude is determined based on the attitude control amount sent by the control device of the pan/tilt and the real-time detection attitude of the base of the pan/tilt, that is, the attitude control amount of the camera is generated by the control device and the position of the base. The posture is decided together.
示例性的,在一实施例中,通过控制装置控制拍摄装置的姿态的优先级高于拍摄装置的姿态跟随基座的姿态变化而变化的优先级,也即,当获取到控制装置发送的姿态控制量时,目标姿态为根据云台的控制装置发送的姿态控制量确定,此时,即使基座发生姿态变化,也不会影响目标姿态的大小;当控制装置未输入姿态控制量,且拍摄装置也不处于控制装置的控制下时,拍摄装置的姿态跟随基座的姿态变化而变化。Exemplarily, in one embodiment, the priority of controlling the posture of the camera by the control device is higher than the priority of the posture of the camera changing with the posture of the base, that is, when the posture sent by the control device is acquired When controlling the amount, the target attitude is determined according to the attitude control amount sent by the control device of the PTZ. At this time, even if the attitude of the base changes, it will not affect the size of the target attitude; when the control device does not input the attitude control amount, and the shooting When the device is not under the control of the control device, the posture of the camera device changes with the posture of the base.
在一些实施例中,若云台处于控制装置控制模式(即非跟随模式)下,此时,拍摄装置只能够由控制装置控制,目标姿态为根据控制装置发送的姿态控制量确定,目标姿态不会受到基座的姿态变化的影响。In some embodiments, if the pan/tilt is in the control device control mode (ie non-following mode), the camera can only be controlled by the control device at this time. The target attitude is determined according to the attitude control amount sent by the control device, and the target attitude is not Will be affected by changes in the posture of the base.
在一些实施例中,若云台处于跟随模式,则拍摄装置的姿态跟随基座的姿态变化而变化,目标姿态为根据云台的基座的实时检测姿态确定,目标姿态不会受到控制装置发送的姿态控制量的影响。In some embodiments, if the pan/tilt is in the follow mode, the posture of the camera will follow the change of the base's posture. The target posture is determined based on the real-time detection posture of the base of the pan/tilt, and the target posture will not be sent by the control device. The influence of the amount of attitude control.
示例性的,以云台被配置为绕航向轴、横滚轴和俯仰轴转动为例,在拍摄装置处于非跟随模式下,航向轴、横滚轴和俯仰轴均为自由free模式。在拍摄装置处于跟随模式下时,横滚轴为free模式,横滚轴用于增稳,俯仰轴和/或偏航轴为follow模式。其中,在free模式下,云台的基座运动,云台的对应轴臂不转动。在follow模式下,对应轴跟随云台的基座运动而运动。Exemplarily, taking the gimbal configured to rotate around the yaw axis, roll axis, and pitch axis as an example, when the camera is in the non-following mode, the yaw axis, roll axis, and pitch axis are all free modes. When the camera is in follow mode, the roll axis is in free mode, the roll axis is used for stabilization, and the pitch axis and/or yaw axis are in follow mode. Among them, in the free mode, the base of the pan/tilt moves, but the corresponding arm of the pan/tilt does not rotate. In the follow mode, the corresponding axis moves with the movement of the base of the pan/tilt.
另外,在云台处于跟随模式时,若拍摄装置的当前姿态和云台的基座的实时检测姿态的偏差小于或等于预设偏差阈值,则无需控制拍摄装置的姿态;若拍摄装置的当前姿态和云台的基座的实时检测姿态的偏差大于预设偏差阈值,则控制拍摄装置的姿态以跟随基座的姿态。In addition, when the pan/tilt is in the follow mode, if the deviation between the current attitude of the camera and the real-time detection attitude of the base of the camera is less than or equal to the preset deviation threshold, there is no need to control the attitude of the camera; if the current attitude of the camera is If the deviation of the real-time detection attitude from the base of the pan/tilt head is greater than the preset deviation threshold, the attitude of the camera is controlled to follow the attitude of the base.
S302:根据当前姿态、目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定云台的目标关节角,其中,预设控制指令能够使得在拍摄装置处于竖直 取向拍摄模式下,云台在转动的过程中始终保持固定维度的转动自由度;S302: Determine the target joint angle of the pan/tilt according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control command, where the preset control command can make the camera in the vertical orientation shooting mode , The gimbal always maintains a fixed degree of freedom of rotation during the rotation process;
示例性的,比如,云台被配置为绕两个轴转动,两个轴包括偏航轴和俯仰轴,云台在转动的过程中始终保持固定维度的转动自由度是指:云台在转动的过程中始终能够绕偏航轴和俯仰轴转动;又如,云台被配置为绕三个轴转动,三个轴包括偏航轴、俯仰轴和横滚轴,云台在转动的过程中始终保持固定维度的转动自由度是指:云台在转动的过程中始终能够绕偏航轴、俯仰轴和横滚轴转动。Exemplarily, for example, the gimbal is configured to rotate around two axes, the two axes include the yaw axis and the pitch axis, and the degree of freedom of rotation that the gimbal always maintains a fixed dimension during the rotation means: the gimbal is rotating During the process, it can always rotate around the yaw axis and pitch axis; another example, the gimbal is configured to rotate around three axes, the three axes include the yaw axis, the pitch axis and the roll axis. The gimbal is in the process of rotating The degree of freedom of rotation that always maintains a fixed dimension means that the gimbal can always rotate around the yaw axis, pitch axis, and roll axis during the rotation.
下面,将对预设控制指令进行说明。Hereinafter, the preset control command will be explained.
以云台被配置为绕三个轴转动为例,示例性的,拍摄装置的欧拉角对应第一轴、第二轴、第三轴的旋转,其中,第一轴平行于拍摄装置的光轴方向,第一轴、第二轴、第三轴分别正交。第一轴的方向、第二轴的方向和第三轴的方向是根据拍摄装置的放置方向和光轴方向确定的,示例性的,在拍摄装置以水平取向放置、且拍摄装置的光轴平行于水平面时,第三轴为竖直方向,第一轴、第二轴均平行于水平面。Taking the PTZ configured to rotate around three axes as an example, for example, the Euler angle of the camera corresponds to the rotation of the first axis, the second axis, and the third axis, where the first axis is parallel to the light of the camera. The axis direction, the first axis, the second axis, and the third axis are orthogonal to each other. The direction of the first axis, the direction of the second axis, and the direction of the third axis are determined according to the placement direction of the camera and the direction of the optical axis. Illustratively, the camera is placed in a horizontal orientation and the optical axis of the camera is parallel to In the horizontal plane, the third axis is the vertical direction, and both the first axis and the second axis are parallel to the horizontal plane.
本文中,第一轴对应横滚轴,第二轴对应俯仰轴,第三轴对应偏航轴,为方便描述,第一轴、第二轴、第三轴分别用X、Y、Z表示。In this article, the first axis corresponds to the roll axis, the second axis corresponds to the pitch axis, and the third axis corresponds to the yaw axis. For ease of description, the first axis, the second axis, and the third axis are denoted by X, Y, and Z, respectively.
在一些实施例中,预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,或第三轴、第一轴、第三轴。进一步地,根据云台的构型确定预设控制指令对应的拍摄装置的欧拉角旋转顺序是上述欧拉角旋转顺序中的哪一种,可选地,在云台为ZXY构型时,预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴。可选地,在云台为YXZ构型时,预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴。In some embodiments, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis. Further, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is determined according to the configuration of the pan/tilt head. Optionally, when the pan/tilt head is in the ZXY configuration, The Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis. Optionally, when the pan/tilt is in the YXZ configuration, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, and second axis.
以三轴云台、且云台被配置为绕偏航轴、俯仰轴和横滚轴转动为例来说明ZXY构型的云台和YXZ构型的云台。对于ZXY构型的云台,当云台正立放置、且外框架、中框架和内框架的关节角均为0度时,外框架绕偏航轴转动,中框架绕横滚轴,内框架绕俯仰轴转动。对于YXZ构型的云台,当云台正立放置、且外框架、中框架和内框架的关节角均为0度时,外框架绕俯仰轴转动,中框架绕横滚轴,内框架绕偏航轴转动。Take a three-axis gimbal and the gimbal is configured to rotate around the yaw axis, pitch axis, and roll axis as an example to illustrate the gimbal of the ZXY configuration and the gimbal of the YXZ configuration. For the ZXY configuration gimbal, when the gimbal is placed upright and the joint angles of the outer frame, middle frame and inner frame are all 0 degrees, the outer frame rotates around the yaw axis, the middle frame rotates around the roll axis, and the inner frame Rotate around the pitch axis. For a gimbal of YXZ configuration, when the gimbal is placed upright and the joint angles of the outer frame, middle frame and inner frame are all 0 degrees, the outer frame rotates around the pitch axis, the middle frame around the roll axis, and the inner frame around the The yaw axis rotates.
示例性的,沿用上述手持云台的实施例,请参见图4,手持云台还包括手柄3和设于手柄3正面的屏幕4和按键(未标出)等。手持云台正立放置时,屏幕4朝向用户,拍摄装置的镜头背对用户,如图4所示,为手持云台正立放置的状态图。图4所示的手持云台即为ZXY构型的云台。Exemplarily, following the embodiment of the aforementioned handheld pan/tilt, please refer to FIG. 4. The handheld pan/tilt also includes a handle 3 and a screen 4 and buttons (not shown) provided on the front of the handle 3. When the handheld PTZ is placed upright, the screen 4 faces the user, and the lens of the shooting device is facing away from the user. As shown in FIG. 4, it is a state diagram of the handheld PTZ placed upright. The handheld PTZ shown in Figure 4 is a ZXY configuration PTZ.
其中,一种根据当前姿态、目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定云台的目标关节角的实现过程可以包括但不限于如下步骤:Among them, a realization process of determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction may include but is not limited to the following steps:
(1)、根据目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确 定目标欧拉角;(1) Determine the target Euler angle according to the target posture and the Euler angle rotation sequence of the camera corresponding to the preset control instruction;
在一些实施例中,目标姿态为根据云台的控制装置发送的姿态控制量确定。步骤(1)的实现过程可以包括:获取拍摄装置的上一次的目标姿态;根据预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定上一次的目标姿态对应的第一欧拉角;根据第一欧拉角和第二欧拉角,确定目标欧拉角,第二欧拉角是姿态控制量基于预设控制指令对应的拍摄装置的欧拉角旋转顺序进行转换得到的。通常,云台采用闭环方式控制,即通过云台控制拍摄装置由当前姿态运动至目标姿态,然而,由于控制误差等因素影响,拍摄装置最终到达的位置可能与目标姿态存在一定的偏差,每次控制的偏差累加会导致偏差较大,控制准确度差。也即,在上一次控制时,拍摄装置不一定能够到达拍摄装置的上一次的目标姿态,因此,在当前次控制时,将姿态控制量对应的第二欧拉角与上一次的目标姿态对应的第一欧拉角进行叠加,确定目标欧拉角,减小偏差的叠加,使得控制更加准确。其中,上一次的目标姿态可以为根据云台的控制装置发送的姿态控制量确定,也可以为根据云台的基座的实时检测姿态确定,还可以为根据云台的控制装置发送的姿态控制量和云台的基座的实时检测姿态共同确定。本实施例中,目标欧拉角为根据第一欧拉角和第二欧拉角之和确定,可选地,目标欧拉角为第一欧拉角和第二欧拉角之和。In some embodiments, the target posture is determined according to the posture control amount sent by the control device of the pan-tilt. The implementation process of step (1) may include: acquiring the last target posture of the camera; determining the first Euler angle corresponding to the last target posture according to the Euler angle rotation sequence of the camera corresponding to the preset control instruction; According to the first Euler angle and the second Euler angle, the target Euler angle is determined. The second Euler angle is obtained by converting the attitude control amount based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction. Generally, the gimbal is controlled in a closed loop mode, that is, the camera is controlled by the camera to move from the current posture to the target posture. However, due to control errors and other factors, the final position of the camera may deviate from the target posture. Accumulation of control deviations will result in larger deviations and poor control accuracy. That is, in the last control, the camera may not be able to reach the last target posture of the camera. Therefore, in the current control, the second Euler angle corresponding to the posture control amount corresponds to the last target posture. The first Euler angle is superimposed to determine the target Euler angle, which reduces the superimposition of the deviation and makes the control more accurate. Among them, the last target attitude can be determined based on the attitude control amount sent by the control device of the pan/tilt, or determined based on the real-time detection attitude of the base of the pan/tilt, or based on the attitude control sent by the control device of the pan/tilt. The amount and the real-time detection attitude of the base of the PTZ are determined together. In this embodiment, the target Euler angle is determined according to the sum of the first Euler angle and the second Euler angle. Optionally, the target Euler angle is the sum of the first Euler angle and the second Euler angle.
本实施例中,根据预设控制指令对应的拍摄装置的欧拉角旋转顺序,对上一次的目标姿态进行转换得到拍摄装置的第一欧拉角,并根据预设控制指令对应的拍摄装置的欧拉角旋转顺序,对姿态控制量进行转换得到第二欧拉角。上一次的目标姿态、姿态控制量中用于控制云台绕一个轴转动分量对应云台的一个欧拉角变化,云台的一个欧拉角变化可能需要通过控制云台的一个或多个关节角实现,这种根据预设控制指令对应的拍摄装置的欧拉角旋转顺序,对上一次的目标姿态进行转换得到拍摄装置的第一欧拉角,并根据预设控制指令对应的拍摄装置的欧拉角旋转顺序,对姿态控制量进行转换得到第二欧拉角是方式能够使得拍摄装置的转动方向更加符合用户要求,因而使得拍摄装置拍摄的画面更加满足用户的预期。例如,在云台为三轴的手持云台时,假设此时手持云台的手柄倾斜,若需要通过控制装置控制手持云台上的相应轴臂绕偏航轴转动,则在相应的姿态控制量若只转换为一个关节角时,此时,可以驱动俯仰电机转动,而横滚电机以及偏航电机不会转动,由于拍摄装置围绕机体坐标系转动,拍摄画面的变化将会比较生硬、突兀,而在相应的姿态控制量转换为相应的一个欧拉角时,此时,不仅可以驱动俯仰电机转动,横滚电机以及偏航电机也可能为转动,由于拍摄装置围绕世界坐标系转动,将会达到用户期望的偏航变化,拍摄画面的变化也将会比较平滑、衔接性强。In this embodiment, according to the Euler angle rotation sequence of the camera corresponding to the preset control instruction, the last target posture is converted to obtain the first Euler angle of the camera, and the first Euler angle of the camera is obtained according to the preset control instruction. Euler angle rotation sequence, the attitude control amount is converted to obtain the second Euler angle. The last target attitude and attitude control amount used to control the rotation of the gimbal around an axis corresponds to a change in the Euler angle of the gimbal. A change in the Euler angle of the gimbal may need to control one or more joints of the gimbal. The first Euler angle of the camera is obtained by converting the last target posture according to the Euler angle rotation sequence of the camera corresponding to the preset control instruction, and the first Euler angle of the camera is obtained according to the preset control instruction. The Euler angle rotation sequence and the conversion of the attitude control amount to obtain the second Euler angle is a way to make the rotation direction of the camera more in line with the user's requirements, thus making the images captured by the camera more satisfy the user's expectations. For example, when the gimbal is a three-axis handheld gimbal, assuming that the handle of the handheld gimbal is tilted at this time, if it is necessary to control the corresponding axis arm on the handheld gimbal to rotate around the yaw axis through the control device, control in the corresponding attitude If the amount is only converted to a joint angle, at this time, the pitch motor can be driven to rotate, but the roll motor and yaw motor will not rotate. Because the camera rotates around the body coordinate system, the changes in the shooting screen will be more rigid and abrupt. , And when the corresponding attitude control value is converted to a corresponding Euler angle, not only can the pitch motor be driven to rotate, but the roll motor and the yaw motor may also rotate. As the camera rotates around the world coordinate system, the The yaw change expected by the user will be achieved, and the changes in the shooting picture will be smoother and more cohesive.
其中,若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则上一次的目标姿态中用于控制云台绕航向轴转动的分量,以及用于控制云台绕俯仰轴转动的分量,为基于欧拉角旋转顺序中的第二轴进行转换得到。具体地, 对上一次的目标姿态中用于控制云台绕航向轴转动的分量进行转换,得到第一欧拉角(Y1,X1,Y1)中首个Y1分量,对上一次的目标姿态中用于控制云台绕俯仰轴转动的分量进行转换,得到第一欧拉角(Y1,X1,Y1)中第二个Y1分量。Wherein, if the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, second axis, then the component used to control the gimbal's rotation around the yaw axis in the last target attitude, And the component used to control the rotation of the pan/tilt around the pitch axis is obtained by conversion based on the second axis in the Euler angle rotation sequence. Specifically, the component used to control the rotation of the gimbal around the yaw axis in the last target attitude is converted to obtain the first Y1 component in the first Euler angles (Y1, X1, Y1). The component used to control the rotation of the gimbal around the pitch axis is converted to obtain the second Y1 component in the first Euler angle (Y1, X1, Y1).
若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,上一次的目标姿态中用于控制云台绕航向轴转动的分量,以及用于控制云台绕俯仰轴转动的分量,为基于欧拉角旋转顺序中的第三轴进行转换得到。具体地,对上一次的目标姿态中用于控制云台绕航向轴转动的分量进行转换,得到第一欧拉角(Z1,X1,Z1)中首个Z1分量,对上一次的目标姿态中用于控制云台绕俯仰轴转动的分量进行转换,得到第一欧拉角(Z1,X1,Z1)中第二个Z1分量。If the Euler angle rotation sequence of the camera corresponding to the preset control command is: third axis, first axis, third axis, the component used to control the gimbal's rotation around the yaw axis in the last target attitude, and The component that controls the rotation of the gimbal around the pitch axis is obtained by conversion based on the third axis in the Euler angle rotation sequence. Specifically, the component used to control the rotation of the gimbal around the yaw axis in the last target attitude is converted to obtain the first Z1 component in the first Euler angles (Z1, X1, Z1). The component used to control the rotation of the gimbal around the pitch axis is converted to obtain the second Z1 component in the first Euler angle (Z1, X1, Z1).
预设控制指令对应的拍摄装置的欧拉角旋转顺序无论是:第二轴、第一轴、第二轴,还是:第三轴、第一轴、第三轴,上一次的目标姿态中用于控制云台绕横滚轴转动的分量均为基于欧拉角旋转顺序中的第一轴进行转换得到,即对上一次的目标姿态中用于控制云台绕横滚轴转动的分量进行转换,得到第一欧拉角中的X1分量。Whether the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, or: third axis, first axis, third axis, used in the last target attitude The components used to control the rotation of the gimbal around the roll axis are all converted based on the first axis in the Euler angle rotation sequence, that is, the component used to control the rotation of the gimbal around the roll axis in the last target attitude is converted , Get the X1 component in the first Euler angle.
若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则姿态控制量中用于控制云台绕航向轴转动的分量,以及用于控制云台绕俯仰轴转动的分量,为基于欧拉角旋转顺序中的第二轴进行转换得到。具体地,对姿态控制量中用于控制云台绕航向轴转动的分量进行转换,得到第二欧拉角(Y2,X2,Y2)中首个Y2分量,对姿态控制量中用于控制云台绕俯仰轴转动的分量进行转换,得到第二欧拉角(Y2,X2,Y2)中第二个Y2分量。If the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, then the component of the attitude control quantity used to control the rotation of the pan/tilt around the yaw axis, and used to control The rotation component of the gimbal around the pitch axis is obtained by conversion based on the second axis in the Euler angle rotation sequence. Specifically, the component used to control the rotation of the gimbal around the yaw axis in the attitude control variable is converted to obtain the first Y2 component in the second Euler angle (Y2, X2, Y2), and the attitude control variable is used to control the cloud The components of the stage rotation around the pitch axis are converted to obtain the second Y2 component in the second Euler angle (Y2, X2, Y2).
若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,姿态控制量中用于控制云台绕航向轴转动的分量,以及用于控制云台绕俯仰轴转动的分量,为基于欧拉角旋转顺序中的第三轴进行转换得到。具体地,对姿态控制量中用于控制云台绕航向轴转动的分量进行转换,得到第二欧拉角(Z2,X2,Z2)中首个Z2分量,对姿态控制量中用于控制云台绕俯仰轴转动的分量进行转换,得到第二欧拉角(Z2,X2,Z2)中第二个Z2分量。If the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis, the component of the attitude control quantity used to control the rotation of the gimbal around the yaw axis, and used to control the cloud The component of the rotation of the stage around the pitch axis is obtained by conversion based on the third axis in the Euler angle rotation sequence. Specifically, the component used to control the rotation of the gimbal around the yaw axis in the attitude control is converted to obtain the first Z2 component in the second Euler angle (Z2, X2, Z2), and the attitude control is used to control the cloud The components of the rotation of the station around the pitch axis are converted to obtain the second Z2 component in the second Euler angle (Z2, X2, Z2).
另外,预设控制指令对应的拍摄装置的欧拉角旋转顺序无论是:第二轴、第一轴、第二轴,还是:第三轴、第一轴、第三轴,姿态控制量中用于控制云台绕横滚轴转动的分量均为基于欧拉角旋转顺序中的第一轴进行转换得到,即对姿态控制量中用于控制云台绕横滚轴转动的分量进行转换,得到第二欧拉角中的X2分量。In addition, whether the Euler angle rotation sequence of the camera corresponding to the preset control command is: the second axis, the first axis, the second axis, or: the third axis, the first axis, and the third axis. The components used to control the rotation of the gimbal around the roll axis are all converted based on the first axis in the Euler angle rotation sequence, that is, the component used to control the rotation of the gimbal around the roll axis in the attitude control value is converted to obtain The X2 component in the second Euler angle.
需要说明的是,本实施例中,转换并不是简单的对应关系。It should be noted that, in this embodiment, the conversion is not a simple correspondence.
本实施例中,转换包括云台转动的欧拉角速度的转换,或云台转动的欧拉角大小的转换,例如,在一些实施例中,转换为云台转动的欧拉角速度的转换,示例性的,若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则第二欧拉角(Y2,X2,Y2)中的分量均为对应的欧拉角速度,第一欧拉角(Y1,X1,Y1) 中的分量也均为对应的欧拉角速度。若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,则第二欧拉角(Z2,X2,Z2)中的分量均为对应的欧拉角速度,第一欧拉角(Z1,X1,Z1)中的分量也均为对应的欧拉角速度。In this embodiment, the conversion includes the conversion of the Euler angular velocity of the pan/tilt rotation, or the conversion of the Euler angle size of the pan/tilt rotation. For example, in some embodiments, the conversion is the conversion of the Euler angular velocity of the pan/tilt rotation. For example, if the Euler angle rotation sequence of the camera corresponding to the preset control command is: second axis, first axis, second axis, then the components in the second Euler angle (Y2, X2, Y2) are all For the corresponding Euler angular velocity, the components in the first Euler angle (Y1, X1, Y1) are also the corresponding Euler angular velocity. If the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis, the components in the second Euler angle (Z2, X2, Z2) are all corresponding to the Euler angles. Pull angular velocity, the components in the first Euler angle (Z1, X1, Z1) are also corresponding Euler angular velocity.
在另外一些实施例中,转换为云台转动的欧拉角大小的转换,示例性的,若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则第二欧拉角(Y2,X2,Y2)中的分量均为对应的欧拉角大小,第一欧拉角(Y1,X1,Y1)中的分量也均为对应的欧拉角大小。若预设控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,则第二欧拉角(Z2,X2,Z2)中的分量均为对应的欧拉角大小,第一欧拉角(Z1,X1,Z1)中的分量也均为对应的欧拉角大小。In some other embodiments, the conversion is the conversion of the Euler angle size of the pan/tilt rotation. Exemplarily, if the Euler angle rotation sequence of the camera corresponding to the preset control command is: the second axis, the first axis, and the first axis. For the second axis, the components in the second Euler angles (Y2, X2, Y2) are all corresponding Euler angles, and the components in the first Euler angles (Y1, X1, Y1) are also corresponding Euler angles. Angle size. If the Euler angle rotation sequence of the camera corresponding to the preset control command is: the third axis, the first axis, and the third axis, the components in the second Euler angle (Z2, X2, Z2) are all corresponding to the Euler angles. The size of the pull angle, the components in the first Euler angle (Z1, X1, Z1) are also the corresponding Euler angle size.
本实施例中,目标欧拉角中对应横滚方向的角度值的范围为90度±第一预设角度或-90度±第二预设角度,也即,在通过控制装置控制拍摄装置时,目标欧拉角中对应横滚方向的角度值位于上述角度范围(90度±第一预设角度或-90度±第二预设角度)内,即可确保拍摄装置是处于竖直取向拍摄模式下的。在通过控制装置控制拍摄装置时,若拍摄装置的目标欧拉角中对应横滚方向的角度值超出上述角度范围,在一些实施例中,通过云台控制拍摄装置退出竖直取向拍摄模式;在另一些实施例中,通过云台控制拍摄装置的目标欧拉角中对应横滚方向的角度值为竖直取向拍摄模式对应的当前转动方向的极限角度。其中,第一预设角度、第二预设角度可以根据需要设置,例如,第一预设角度、第二预设角度均为45度。In this embodiment, the range of the angle value corresponding to the roll direction in the target Euler angle is 90 degrees ± the first preset angle or -90 degrees ± the second preset angle, that is, when the camera is controlled by the control device , The angle value corresponding to the roll direction in the target Euler angle is within the above-mentioned angle range (90 degrees ± the first preset angle or -90 degrees ± the second preset angle) to ensure that the camera is in the vertical orientation for shooting Mode. When the camera is controlled by the control device, if the angle value corresponding to the roll direction in the target Euler angle of the camera exceeds the above-mentioned angle range, in some embodiments, the camera is controlled by the pan/tilt to exit the vertical orientation shooting mode; In some other embodiments, the value of the angle corresponding to the roll direction in the target Euler angle of the camera controlled by the pan/tilt is the limit angle of the current rotation direction corresponding to the vertical orientation shooting mode. Among them, the first preset angle and the second preset angle can be set as required, for example, the first preset angle and the second preset angle are both 45 degrees.
在另一些实施例中,目标姿态为根据云台的基座的实时检测姿态确定。步骤(1)的实现过程可以包括:基于预设控制指令对应的拍摄装置的欧拉角旋转顺序,将目标姿态中的横滚姿态分量转换为90度或-90度,得到目标欧拉角。本实施例中,预设控制指令对应的拍摄装置的欧拉角旋转顺序无论是:第二轴、第一轴、第二轴,还是:第三轴、第一轴、第三轴,将第一轴对应的姿态分量保持在90度或-90度,通过这样控制,确保拍摄装置始终处于竖直取向拍摄模式下。In other embodiments, the target posture is determined according to the real-time detection posture of the base of the pan/tilt. The implementation process of step (1) may include: based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction, converting the roll posture component in the target posture into 90 degrees or -90 degrees to obtain the target Euler angle. In this embodiment, the Euler angle rotation sequence of the camera corresponding to the preset control command is no matter: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis. The posture component corresponding to one axis is maintained at 90 degrees or -90 degrees. Through such control, it is ensured that the camera is always in the vertical orientation shooting mode.
(2)、根据目标欧拉角确定第一姿态四元数;(2) Determine the first attitude quaternion according to the target Euler angle;
具体根据欧拉角与四元数之间的转换关系,将目标欧拉角转换成第一姿态四元数,欧拉角与四元数之间的转换关系为现有技术,本申请对此不作详细介绍。Specifically, according to the conversion relationship between the Euler angle and the quaternion, the target Euler angle is converted into the first attitude quaternion. The conversion relationship between the Euler angle and the quaternion is in the prior art. No detailed introduction.
(3)、根据第一姿态四元数和当前姿态对应的第二姿态四元数,确定云台的目标关节角。(3) Determine the target joint angle of the pan/tilt head according to the first posture quaternion and the second posture quaternion corresponding to the current posture.
其中,若当前姿态使用欧拉角表征,则需要根据欧拉角与四元数之间的转换关系,将当前姿态转换成第二姿态四元数;若当前姿态使用四元数表征,则省略上述欧拉角到四元数的转换过程。Among them, if the current attitude is represented by Euler angles, the current attitude needs to be converted into the second attitude quaternion according to the conversion relationship between Euler angles and quaternions; if the current attitude is represented by quaternions, it is omitted The conversion process of Euler angles to quaternion above.
步骤(3)的实现过程可以包括:根据第一姿态四元数和第二姿态四元数,确定四元数姿态偏差;根据四元数姿态偏差,确定云台的目标关节角。其中,四元数姿 态偏差为根据第一姿态四元数减去第二姿态四元数获得的差值确定,可选地,四元数姿态偏差=(第一姿态四元数-第二姿态四元数)。另外,在根据四元数姿态偏差,确定云台的目标关节角时,具体地,根据四元数姿态偏差以及雅克比逆矩阵,确定云台的目标关节角。以云台被配置为绕航向轴、横滚轴和俯仰轴转动为例,目标关节角包括航向电机对应的关节角、横滚电机对应的关节角以及俯仰电机对应的关节角,其中,航向电机用于控制云台绕航向轴转动,横滚电机用于控制云台绕横滚轴转动,俯仰电机用于控制云台绕俯仰轴转动。The realization process of step (3) may include: determining the quaternion attitude deviation according to the first attitude quaternion and the second attitude quaternion; determining the target joint angle of the pan/tilt according to the quaternion attitude deviation. Among them, the quaternion attitude deviation is determined according to the difference obtained by subtracting the second attitude quaternion from the first attitude quaternion. Optionally, the quaternion attitude deviation = (first attitude quaternion-second attitude Quaternion). In addition, when determining the target joint angle of the pan/tilt head based on the quaternion attitude deviation, specifically, the target joint angle of the pan/tilt head is determined based on the quaternion attitude deviation and the Jacobian inverse matrix. Taking the gimbal configured to rotate around the yaw axis, roll axis, and pitch axis as an example, the target joint angle includes the joint angle corresponding to the yaw motor, the joint angle corresponding to the roll motor, and the joint angle corresponding to the pitch motor. Among them, the yaw motor It is used to control the gimbal to rotate around the yaw axis, the roll motor is used to control the gimbal to rotate around the roll axis, and the pitch motor is used to control the gimbal to rotate around the pitch axis.
当前姿态不同于目标姿态时,根据当前姿态、目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定云台的目标关节角的实现过程可以包括:When the current posture is different from the target posture, according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction, the realization process of determining the target joint angle of the pan/tilt may include:
(1)、根据当前姿态、目标姿态和预设插值策略,确定位于当前姿态和目标姿态之间的至少一个中间姿态;(1) Determine at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture and the preset interpolation strategy;
预设插值策略可以根据需要选择,在一些实施例中,根据当前姿态、目标姿态和预设插值策略,确定位于当前姿态和目标姿态之间的至少一个中间姿态的实现过程可以包括:根据当前姿态、目标姿态和至少一个时间变化参数,确定位于当前姿态和目标姿态之间的至少一个中间姿态。其中,至少一个时间变化参数和至少一个中间姿态一一对应。可选地,时间变化参数包括多个,由当前姿态至目标姿态的姿态切换方向,多个中间姿态对应的时间变化参数呈递增趋势。The preset interpolation strategy can be selected as required. In some embodiments, according to the current pose, the target pose, and the preset interpolation strategy, the process of determining at least one intermediate pose between the current pose and the target pose may include: according to the current pose , The target posture and at least one time change parameter to determine at least one intermediate posture between the current posture and the target posture. Among them, at least one time change parameter corresponds to at least one intermediate posture in a one-to-one correspondence. Optionally, the time change parameter includes multiple, and the direction of the posture switching from the current posture to the target posture, and the time change parameters corresponding to the multiple intermediate postures show an increasing trend.
假设当前姿态、目标姿态以及中间姿态均由四元数表示,且当前姿态四元数表示为q
0,目标姿态四元数表示为q
1,在当前姿态四元数q
0和目标姿态四元数q
1之间,采用四元数平滑插值算法slerp,如以下计算公式计算中间姿态四元数q
t:
Assuming that the current posture, target posture, and intermediate posture are all represented by quaternions, and the current posture quaternion is represented by q 0 , the target posture quaternion is represented by q 1 , and the current posture quaternion q 0 and the target posture quaternion Between the number q 1 , the quaternion smooth interpolation algorithm slerp is used, and the intermediate posture quaternion q t is calculated as the following formula:
公式(1)中,t为0到1之间变化的时间参数,ω为方向q
0至q
1之间的角度差,如图5所示。可以理解,t也可以为0到1之外的时间参数,表示当前姿态四元数q
0变化到目标姿态四元数q
1的时间,可以通过归一化的表达方式而转换为0到1之间的时间变化参数。
In formula (1), t is a time parameter that varies from 0 to 1, and ω is the angle difference between directions q 0 to q 1 , as shown in Figure 5. It can be understood that t can also be a time parameter other than 0 to 1, which represents the time when the current posture quaternion q 0 changes to the target posture quaternion q 1 , and can be converted to 0 to 1 through a normalized expression. Parameter between time changes.
可选地,位置相邻的姿态的欧拉角偏差大小相等;可选地,位置相邻的姿态的欧拉角偏差的大小也可以不相等。Optionally, the Euler angle deviations of the postures adjacent to the position are equal; optionally, the Euler angle deviations of the postures adjacent to the position may also be unequal.
(2)、根据当前姿态、至少一个中间姿态、目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定云台的目标关节角。(2) Determine the target joint angle of the pan/tilt head according to the current posture, at least one intermediate posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction.
具体地,根据各相邻姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定对应的关节角;再根据各相邻姿态对应的关节角,由当前姿态至目标姿态的切换方向,依次控制云台转动,以控制拍摄装置平滑地转动。也即,目标关节角包括 多个,其包括相邻姿态对应的关节角。Specifically, the corresponding joint angle is determined according to the Euler angle rotation sequence of the camera corresponding to each adjacent posture and the preset control instruction; and then the direction of switching from the current posture to the target posture according to the joint angle corresponding to each adjacent posture , Control the rotation of the pan/tilt in turn to control the smooth rotation of the camera. That is, there are multiple target joint angles, which include joint angles corresponding to adjacent poses.
通过插值方式,在当前姿态和目标姿态之间插入至少一个中间姿态,根据相邻姿态对应的四元数,确定相邻姿态对应的四元数姿态偏差,再根据相邻姿态对应的四元数姿态偏差,确定相邻姿态对应的关节角,再根据各相邻姿态对应的关节角,由当前姿态至目标姿态的切换方向,依次控制云台转动,使得拍摄装置平滑地转动。By interpolation, at least one intermediate pose is inserted between the current pose and the target pose. According to the quaternion corresponding to the adjacent pose, the quaternion pose deviation corresponding to the adjacent pose is determined, and then the quaternion corresponding to the adjacent pose is determined. For posture deviation, determine the joint angles corresponding to the adjacent postures, and then according to the joint angles corresponding to each adjacent posture, the direction of switching from the current posture to the target posture is sequentially controlled to rotate the pan/tilt so that the camera rotates smoothly.
S303:根据目标关节角,控制云台转动。S303: Control the rotation of the pan/tilt according to the target joint angle.
其中,当目标关节角包括航向电机对应的关节角、横滚电机对应的关节角以及俯仰电机对应的关节角时,S303的实现过程可以包括:控制航向电机转动航向电机对应的关节角大小,控制横滚电机转动横滚电机对应的关节角大小,并控制俯仰电机转动俯仰电机对应的关节角大小。Wherein, when the target joint angle includes the joint angle corresponding to the heading motor, the joint angle corresponding to the roll motor, and the joint angle corresponding to the pitch motor, the realization process of S303 may include: controlling the heading motor to rotate the joint angle corresponding to the heading motor, and controlling The roll motor rotates the joint angle corresponding to the roll motor, and controls the pitch motor to rotate the joint angle corresponding to the pitch motor.
进一步地,在一些实施例中,在执行步骤S301之前,需要控制拍摄装置处于竖直取向拍摄模式,具体地,云台的控制方法还包括:在拍摄装置处于竖直取向拍摄模式下,获取拍摄装置的当前姿态和拍摄装置的目标姿态之前,若获取到指示拍摄装置进入竖直取向拍摄模式的第一触发指令,则控制拍摄装置处于竖直取向拍摄模式。Further, in some embodiments, before performing step S301, it is necessary to control the camera to be in the vertical orientation shooting mode. Specifically, the method for controlling the pan/tilt further includes: when the camera is in the vertical orientation shooting mode, acquiring the shooting Before the current posture of the device and the target posture of the shooting device, if the first trigger instruction indicating that the shooting device enters the vertical orientation shooting mode is acquired, the shooting device is controlled to be in the vertical orientation shooting mode.
第一触发指令的产生方式可以包括多种,例如,在其中一些实施例中,云台包括基座和设于基座上的控制部,第一触发指令由用户触发控制部产生。控制部可以包括按键、按钮、旋钮或上述组合。本实施例的控制部可以包括一个,也可以包括多个。当云台为手持云台时,手持云台可以包括手柄,控制部可以设于手柄上。在另一些实施例中,第一触发指令由用户操作外部设备产生,并由外部设备发送。该外部设备能够与云台进行通信,外部设备可以包括手机、平板电脑等可移动终端,也可以为固定终端,还可以为遥控器或其他云台的控制装置。The first trigger instruction can be generated in a variety of ways. For example, in some of the embodiments, the pan/tilt includes a base and a control unit provided on the base, and the first trigger instruction is generated by the user triggering the control unit. The control part may include keys, buttons, knobs or a combination of the above. The control unit in this embodiment may include one or more. When the pan/tilt is a handheld pan/tilt, the handheld pan/tilt may include a handle, and the control part may be provided on the handle. In some other embodiments, the first trigger instruction is generated by the user operating the external device and sent by the external device. The external device can communicate with the pan/tilt. The external device may include a mobile terminal such as a mobile phone and a tablet computer, a fixed terminal, or a remote control or other control device of the pan/tilt.
本实施例中,控制拍摄装置处于竖直取向拍摄模式的实现过程可以包括:获取拍摄装置的当前拍摄模式;根据当前拍摄模式,控制拍摄装置处于竖直取向拍摄模式。In this embodiment, the realization process of controlling the shooting device to be in the vertical orientation shooting mode may include: acquiring the current shooting mode of the shooting device; and controlling the shooting device to be in the vertical shooting mode according to the current shooting mode.
下面,阐述当前拍摄模式为竖直取向拍摄模式以及当前拍摄模式为非竖直取向的拍摄模式这两种情况下,根据当前拍摄模式,控制拍摄装置处于竖直取向拍摄模式的具体实现过程。In the following, the specific implementation process of controlling the shooting device to be in the vertical orientation shooting mode according to the current shooting mode will be described in the two cases where the current shooting mode is the vertical orientation shooting mode and the current shooting mode is the non-vertical shooting mode.
当前拍摄模式为竖直取向拍摄模式,根据当前拍摄模式,控制拍摄装置处于竖直取向拍摄模式可以包括:将拍摄装置保持在竖直取向拍摄模式。也即,当前拍摄模式为竖直取向拍摄模式时,无需进行模式切换。The current shooting mode is a vertical orientation shooting mode. According to the current shooting mode, controlling the shooting device to be in the vertical orientation shooting mode may include: maintaining the shooting device in the vertical orientation shooting mode. That is, when the current shooting mode is the vertical orientation shooting mode, there is no need to switch the mode.
当前拍摄模式为非竖直取向的拍摄模式,根据当前拍摄模式,控制拍摄装置处于竖直取向拍摄模式可以包括:控制拍摄装置由拍摄装置由当前拍摄模式切换至竖直取向拍摄模式。也即,当前拍摄模式为非竖直取向的拍摄模式时,需要进行模式切换,将拍摄装置由非竖直取向的拍摄模式切换至竖直取向拍摄模式。The current shooting mode is a non-vertical shooting mode. According to the current shooting mode, controlling the shooting device to be in the vertical shooting mode may include: controlling the shooting device to switch the shooting device from the current shooting mode to the vertical shooting mode. That is, when the current shooting mode is a non-vertical-oriented shooting mode, it is necessary to switch the mode to switch the shooting device from the non-vertical-oriented shooting mode to the vertical-oriented shooting mode.
其中,控制拍摄装置由拍摄装置由当前拍摄模式切换至竖直取向拍摄模式可以包括但不限于如下步骤:Wherein, controlling the shooting device to switch from the current shooting mode of the shooting device to the vertical orientation shooting mode may include but is not limited to the following steps:
(1)、将云台的控制指令切换至预设控制指令,使得模式切换后云台保持原有维度的转动自由度,原有维度的数量与固定维度的数量相等;(1) Switch the control instruction of the pan/tilt head to the preset control instruction, so that the pan/tilt maintains the rotational freedom of the original dimension after the mode is switched, and the number of original dimensions is equal to the number of fixed dimensions;
示例性的,比如,云台被配置为绕两个轴转动,两个轴包括偏航轴和俯仰轴,模式切换后云台保持原有维度的转动自由度是指:模式切换前,云台绕偏航轴和俯仰轴转动;模式切换后,云台也绕偏航轴和俯仰轴转动。又如,云台被配置为绕三个轴转动,三个轴包括偏航轴、俯仰轴和横滚轴,模式切换后云台保持原有维度的转动自由度是指:模式切换前,云台绕偏航轴、俯仰轴和横滚轴转动;模式切换后,云台也绕偏航轴、俯仰轴和横滚轴转动。Exemplarily, for example, the gimbal is configured to rotate around two axes, the two axes include the yaw axis and the pitch axis. After the mode is switched, the degree of freedom of the gimbal to maintain the original dimension of rotation means: before the mode is switched, the gimbal is Rotate around the yaw axis and pitch axis; after the mode is switched, the gimbal also rotates around the yaw axis and pitch axis. In another example, the gimbal is configured to rotate around three axes, including the yaw axis, pitch axis, and roll axis. After the mode is switched, the rotation freedom of the gimbal to maintain the original dimension means: before the mode is switched, the cloud The platform rotates around the yaw axis, pitch axis and roll axis; after the mode is switched, the gimbal also rotates around the yaw axis, pitch axis and roll axis.
本申请实施例中,切换云台的控制指令,也即切换拍摄装置的欧拉角旋转顺序,切换后的预设控制指令对应的拍摄装置的欧拉角旋转顺序需要根据竖直取向拍摄模式对应的拍摄装置的拍摄取向确定,可以参见上述目标姿态的获取过程的实施例中对预设控制指令对应的拍摄装置的欧拉角旋转顺序的描述。In the embodiment of the present application, the control command for switching the pan/tilt, that is, the switching sequence of the Euler angle of the camera, the sequence of Euler angle rotation of the camera corresponding to the preset control command after switching needs to correspond to the vertical orientation shooting mode For determining the shooting orientation of the shooting device, refer to the description of the Euler angle rotation sequence of the shooting device corresponding to the preset control instruction in the embodiment of the above-mentioned target posture acquisition process.
当拍摄装置当前处于水平取向拍摄模式,且拍摄装置的实时横滚姿态分量为0度、180度和-180度之一时,若直接根据第一触发指令,切换云台的控制指令,则根据预设控制指令,控制拍摄装置由水平取向拍摄切换至竖直取向拍摄会导致其中两个电机的旋转轴重合,从而导致万向节锁死。为避免模式切换时万向节锁死,本实施例中,将云台的控制指令切换至预设控制指令的实现过程可以包括:获取拍摄装置的实时横滚姿态分量;若实时横滚姿态分量满足预设条件,则将云台的控制指令切换至预设控制指令。When the camera is currently in the horizontal orientation shooting mode, and the real-time roll posture component of the camera is one of 0 degrees, 180 degrees, and -180 degrees, if the control instruction of the pan/tilt is switched directly according to the first trigger instruction, it will be based on the preset Setting a control command to control the shooting device to switch from horizontal orientation shooting to vertical orientation shooting will cause the rotation axes of the two motors to overlap, which will cause the universal joint to lock up. To avoid the universal joint from locking up during mode switching, in this embodiment, the process of switching the control command of the pan/tilt head to the preset control command may include: acquiring the real-time roll posture component of the camera; if the real-time roll posture component When the preset condition is met, the control command of the pan/tilt is switched to the preset control command.
其中,可以根据拍摄装置上的惯性测量单元检测获得拍摄装置的实时横滚姿态分量。Among them, the real-time roll posture component of the camera can be obtained according to the detection of the inertial measurement unit on the camera.
当前拍摄模式包括水平取向拍摄模式,预设条件包括:实时横滚姿态分量不为0度、180或-180度,也即,在当前拍摄模式为水平取向拍摄模式时,若实时横滚姿态分量不为0度、180或-180度,则直接将云台的控制指令切换至预设控制指令,此时,根据预设控制指令,控制拍摄装置由水平取向拍摄模式切换至竖直取向拍摄模式不存在万向节锁死的问题。The current shooting mode includes the horizontal orientation shooting mode, and the preset conditions include: the real-time roll attitude component is not 0 degrees, 180 or -180 degrees, that is, when the current shooting mode is the horizontal orientation shooting mode, if the real-time roll attitude component is If it is not 0 degree, 180 or -180 degree, directly switch the control command of the pan/tilt to the preset control command. At this time, according to the preset control command, control the camera to switch from the horizontal orientation shooting mode to the vertical orientation shooting mode There is no problem of gimbal locking.
进一步地,本实施例的云台的控制方法还可以包括:若实时横滚姿态分量不满足预设条件,则控制云台转动,以使得拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件。当实时横滚姿态分量不满足预设条件时,若直接将云台的控制指令切换至预设控制指令,则根据预设控制指令,控制拍摄装置由非竖直取向拍摄模式切换至竖直取向拍摄模式会产生万向节锁死的问题;本实施例在实时横滚姿态分量不满足预设条件时,先控制云台转动,使得拍 摄装置的实时横滚姿态分量偏移预设角度,以并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件;再将云台的控制指令切换至预设控制指令,此时,根据预设控制指令,控制拍摄装置由非竖直取向拍摄模式切换至竖直取向拍摄模式,不会产生万向节锁死的问题。Further, the control method of the pan/tilt head of this embodiment may further include: if the real-time roll posture component does not meet the preset condition, controlling the rotation of the pan/tilt so that the real-time roll posture component of the camera is offset by a preset angle, And make the real-time roll posture component of the shifted camera meet the preset condition. When the real-time roll posture component does not meet the preset conditions, if the control command of the pan/tilt head is directly switched to the preset control command, the camera will be controlled to switch from the non-vertical orientation shooting mode to the vertical orientation according to the preset control command The shooting mode will cause the problem of gimbal locking; in this embodiment, when the real-time roll posture component does not meet the preset conditions, the pan-tilt is first controlled to rotate, so that the real-time roll posture component of the shooting device is shifted by the preset angle. And make the real-time roll posture component of the shifted camera meet the preset condition; then switch the control command of the pan-tilt to the preset control command. At this time, according to the preset control command, the camera is controlled from the non-vertical orientation Switching the shooting mode to the vertical orientation shooting mode will not cause the problem of gimbal locking.
其中,控制云台转动,以使得拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件的实现过程可以包括:根据当前拍摄模式对应的控制指令,控制云台转动,以使得拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件。Wherein, controlling the rotation of the pan/tilt so that the real-time roll posture component of the camera is shifted by a preset angle and the real-time roll posture component of the shifted camera meets the preset condition may include: according to the current shooting The control instruction corresponding to the mode controls the rotation of the pan-tilt so that the real-time roll posture component of the camera is shifted by a preset angle, and the real-time roll posture component of the shifted camera meets the preset condition.
若当前拍摄模式为水平取向拍摄模式,当前拍摄模式对应的控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第三轴,或第三轴、第一轴、第二轴。进一步地,根据云台的构型确定当前拍摄模式对应的控制指令对应的拍摄装置的欧拉角旋转顺序是上述欧拉角旋转顺序中的哪一种。可选地,在云台为ZXY构型时,当前拍摄模式对应的控制指令对应的拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第二轴。可选地,在云台为YXZ构型时,当前拍摄模式对应的控制指令对应的拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第三轴。If the current shooting mode is the horizontal orientation shooting mode, the Euler angle rotation sequence of the shooting device corresponding to the control command corresponding to the current shooting mode is: second axis, first axis, third axis, or third axis, first axis, The second axis. Further, according to the configuration of the pan-tilt, it is determined which of the above-mentioned Euler angle rotation sequence is the Euler angle rotation sequence of the camera corresponding to the control instruction corresponding to the current shooting mode. Optionally, when the pan-tilt is in the ZXY configuration, the Euler angle rotation sequence of the camera corresponding to the control command corresponding to the current shooting mode is: the third axis, the first axis, and the second axis. Optionally, when the pan/tilt is in the YXZ configuration, the Euler angle rotation sequence of the camera corresponding to the control command corresponding to the current shooting mode is: the second axis, the first axis, and the third axis.
在当前拍摄模式为水平取向拍摄模式时,以ZXY构型的云台为例,根据当前拍摄模式对应的控制指令,控制云台转动,以使得拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件的实现过程可以包括:按照第三轴、第一轴、第二轴的欧拉角旋转顺序,控制云台转动,以使得拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的拍摄装置的实时横滚姿态分量满足预设条件。When the current shooting mode is the horizontal orientation shooting mode, take the ZXY configuration of the gimbal as an example, according to the control instructions corresponding to the current shooting mode, control the rotation of the gimbal to make the real-time roll posture component of the camera deviate from the preset angle , And making the real-time roll posture component of the offset camera device meet the preset conditions may include: controlling the rotation of the pan/tilt according to the Euler angle rotation sequence of the third axis, the first axis, and the second axis to The real-time roll posture component of the photographing device is shifted by a preset angle, and the real-time roll posture component of the shifted photographing device meets the preset condition.
预设角度大小可以根据需要设置,例如,预设角度可以为5度,也可以为其他度数。The size of the preset angle can be set as required, for example, the preset angle can be 5 degrees or other degrees.
(2)、根据预设控制指令,控制云台转动,使得拍摄装置的目标横滚姿态分量为90度或-90度,以使拍摄装置由当前拍摄模式切换至竖直取向拍摄模式。(2) According to a preset control instruction, control the pan/tilt to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the vertical orientation shooting mode.
在一些实施例中,根据预设控制指令,控制云台转动,使得拍摄装置的目标横滚姿态分量为90度或-90度,以使拍摄装置由当前拍摄模式切换至竖直取向拍摄模式可以进一步包括:获取云台的基座的姿态;根据基座的姿态,通过云台控制拍摄装置的光轴方向与基座的中间平面大致平行。In some embodiments, according to a preset control instruction, the pan/tilt is controlled to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the vertical orientation shooting mode. The method further includes: acquiring the attitude of the base of the pan/tilt; according to the attitude of the base, controlling the optical axis direction of the photographing device through the pan/tilt to be substantially parallel to the middle plane of the base.
本实施例中,基座的姿态可以直接获取,例如,在基座上放置惯性测量单元(IMU,Inertial measurement unit),通过基座上的惯性测量单元检测获得基座的姿态;基座的姿态也可以间接获取,可选地,根据拍摄装置的姿态,确定基座的姿态。In this embodiment, the posture of the base can be directly obtained. For example, an inertial measurement unit (IMU) is placed on the base, and the posture of the base is obtained through the detection of the inertial measurement unit on the base; the posture of the base It can also be obtained indirectly. Optionally, the posture of the base is determined according to the posture of the camera.
以手持云台为例来说明如何根据拍摄装置的姿态,确定基座的姿态。基座为手持云台的手柄,本实施例的手持云台还包括加速度计,该加速度计用于检测拍摄装置 的姿态qmesa。手柄的姿态是根据拍摄装置的姿态和云台关节角确定的,以手持云台为ZXY构型的三轴云台为例,云台关节角包括偏航关节角joint_yaw、横滚关节角joint_roll和俯仰关节角joint_pitch,各关节角即为对应轴电机的关节角。根据轴角转换公式得到q_yaw、q_roll和q_pitch,q_yaw、q_roll和q_pitch的共轭或逆分别为q_yaw_inv、q_roll_inv和q_pitch_inv。手柄的姿态qhandle的计算公式如下:Take a handheld PTZ as an example to illustrate how to determine the posture of the base according to the posture of the camera. The base is the handle of the handheld pan/tilt. The handheld pan/tilt in this embodiment also includes an accelerometer, which is used to detect the posture qmesa of the camera. The posture of the handle is determined according to the posture of the camera and the joint angle of the gimbal. Take a three-axis gimbal with a ZXY configuration as an example. The joint angles of the gimbal include yaw joint angle joint_yaw, roll joint angle joint_roll and Pitch joint angle joint_pitch, each joint angle is the joint angle of the corresponding axis motor. According to the shaft angle conversion formula, q_yaw, q_roll and q_pitch are obtained. The conjugate or inverse of q_yaw, q_roll and q_pitch are q_yaw_inv, q_roll_inv and q_pitch_inv respectively. The calculation formula of the handle posture qhandle is as follows:
qhandle=qmesa*q_pitch_inv*q_roll_inv*q_yaw_inv (2);qhandle=qmesa*q_pitch_inv*q_roll_inv*q_yaw_inv (2);
其中,joint表示关节角,q表示四元数。Among them, joint represents the joint angle, and q represents the quaternion.
沿用图1所示的手持云台的实施例,在将拍摄装置由当前拍摄模式切换至竖直取向拍摄模式时,通过控制拍摄装置的光轴方向与基座的中间平面大致平行,能够避免由于外框架与中框架的夹角较小而导致的万向节锁死问题;同时,这种设置使得云台在偏航方向具有较大的转动范围,拍摄装置的拍摄范围更广。当云台为手持云台时,基座为手柄,基座的中间平面即手柄的长度方向的中间平面。Following the embodiment of the handheld pan/tilt shown in Figure 1, when the camera is switched from the current shooting mode to the vertical orientation shooting mode, by controlling the direction of the optical axis of the camera to be approximately parallel to the middle plane of the base, it is possible to avoid The small angle between the outer frame and the middle frame causes the gimbal lock problem; at the same time, this setting allows the gimbal to have a larger rotation range in the yaw direction, and the shooting range of the camera is wider. When the pan/tilt is a handheld pan/tilt, the base is a handle, and the middle plane of the base is the middle plane in the length direction of the handle.
根据预设控制指令,控制云台转动,使得拍摄装置的目标横滚姿态分量为90度或-90度,以使拍摄装置由当前拍摄模式切换至竖直取向拍摄模式的实现过程可以包括:According to a preset control instruction, controlling the pan/tilt to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the vertical orientation shooting mode. The implementation process may include:
(1)、获取拍摄装置的实时姿态;(1) Obtain the real-time posture of the camera;
(2)、根据实时姿态以及预设控制指令,确定模式切换时拍摄装置的初始姿态;(2) Determine the initial posture of the camera when the mode is switched according to the real-time posture and preset control instructions;
本实施例中,根据实时姿态以及预设控制指令,确定模式切换时拍摄装置的初始姿态的实现过程可以包括:根据实时姿态,确定姿态余弦矩阵;根据姿态余弦矩阵以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定模式切换时拍摄装置的初始姿态。In this embodiment, according to the real-time posture and the preset control instruction, the realization process of determining the initial posture of the camera during mode switching may include: determining the posture cosine matrix according to the real-time posture; shooting corresponding to the posture cosine matrix and the preset control instruction The rotation sequence of the Euler angles of the device determines the initial posture of the camera when the mode is switched.
可选地,姿态余弦矩阵通过四元数表征,本文中,q表示四元数。Optionally, the attitude cosine matrix is represented by a quaternion, in this article, q represents a quaternion.
以云台为ZXY构型、且控制拍摄装置由水平取向拍摄切模式换至竖直取向拍摄模式为例。Take the pan-tilt in the ZXY configuration and control the shooting device to switch from the horizontal orientation shooting mode to the vertical orientation shooting mode as an example.
其中,在拍摄装置处于水平取向拍摄切模式时,拍摄装置的欧拉角旋转顺序为:Z、X、Y,简称ZXY旋转顺序;在拍摄装置处于竖直取向拍摄模式时,拍摄装置的欧拉角旋转顺序为:Z、X、Z,简称ZXZ旋转顺序。Among them, when the camera is in the horizontal orientation shooting mode, the Euler angle rotation sequence of the camera is: Z, X, Y, referred to as ZXY rotation sequence; when the camera is in the vertical orientation shooting mode, the Euler angle of the camera The angular rotation sequence is: Z, X, Z, referred to as ZXZ rotation sequence.
本实施例中,ZXY旋转顺序的欧拉角到四元数的转换公式如下:In this embodiment, the conversion formula of Euler angle to quaternion in ZXY rotation sequence is as follows:
E
ZXY=q
ZXY (3);
E ZXY =q ZXY (3);
拍摄装置的实时姿态为ZXY旋转顺序的欧拉角,假设ZXY旋转顺序的欧拉角为(Out_Z,Mid_X,Inn_Y),其中,Out_Z、Mid_X、Inn_Y对应为绕Z、X、Y转动的欧拉角大小,则公式(4)转化为:The real-time posture of the camera is the Euler angle of the ZXY rotation sequence, assuming that the Euler angle of the ZXY rotation sequence is (Out_Z, Mid_X, Inn_Y), where Out_Z, Mid_X, Inn_Y correspond to Euler rotating around Z, X, Y Angle size, formula (4) is transformed into:
在模式切换瞬间:At the moment of mode switching:
q
ZXY=q
ZXZ (5);
q ZXY = q ZXZ (5);
另外,q=[q
0,q
1,q
2,q
3] (6);
In addition, q=[q 0 ,q 1 ,q 2 ,q 3 ] (6);
q
0、q
1、q
2、q
3分别为四元数的四个元素,结合公式(4)和(6),可以确定:
q 0 , q 1 , q 2 , and q 3 are the four elements of a quaternion, respectively. Combining formulas (4) and (6), it can be determined:
q到ZXZ旋转顺序的欧拉角的转换的一个解的公式如下:The formula for a solution of the conversion of Euler angles from q to ZXZ rotation order is as follows:
结合公式(4)~(7),即可确定模式切换时拍摄装置的初始姿态,初始姿态为ZXZ旋转顺序的欧拉角(Out_Z,Mid_X,Inn_Z),其中,Out_Z、Mid_X、Inn_Z对应为绕Z、X、Z转动的欧拉角大小。Out_Z、Mid_X、Inn_Z分别为对应的ZXZ旋转顺序的欧拉角的一个解,另一个解为(-pi+Inn_Z,-Mid_X,-pi+Out_Z),具体的解根据当前基座姿态朝向等信息确定。当Mid_X为0度或±180度时,ZXZ旋转顺序的欧拉角奇异(即导致万向节锁死),不支持拍摄装置由以水平取向拍摄切换到竖直取向拍摄,此时,先在以水平取向拍摄控制Mid_X转动一定角度(离开0度或±180度区域即可),即可支持拍摄装置由以水平取向拍摄切换到竖直取向拍摄。当Mid_X不为0度,也不为±180度时,不存在ZXZ旋转顺序的欧拉角奇异问题。需要说明的是,本申请实施例中,pi=180度。Combining formulas (4) to (7), the initial posture of the camera can be determined when the mode is switched. The initial posture is the Euler angle (Out_Z, Mid_X, Inn_Z) of the ZXZ rotation sequence, where Out_Z, Mid_X, Inn_Z correspond to The Euler angle of Z, X, Z rotation. Out_Z, Mid_X, Inn_Z are respectively one solution of the Euler angle of the corresponding ZXZ rotation sequence, and the other solution is (-pi+Inn_Z,-Mid_X,-pi+Out_Z). The specific solution is based on the current base orientation and other information determine. When Mid_X is 0 degrees or ±180 degrees, the Euler angles of the ZXZ rotation sequence are singular (that is, the gimbal is locked), and the camera is not supported to switch from horizontal to vertical shooting. At this time, first When shooting in a horizontal orientation, control the Mid_X to rotate a certain angle (just leave the 0 degree or ±180 degree area), which can support the camera to switch from shooting in the horizontal orientation to shooting in the vertical orientation. When Mid_X is not 0 degrees or ±180 degrees, there is no singular Euler angle problem of the ZXZ rotation sequence. It should be noted that in the embodiment of the present application, pi=180 degrees.
(3)、根据初始姿态,控制云台转动,使得拍摄装置的目标横滚姿态分量为90 度或-90度,以使拍摄装置由当前拍摄模式切换至竖直取向拍摄模式。(3) According to the initial posture, control the rotation of the pan/tilt so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the vertical orientation shooting mode.
该步骤中,可以先通过云台控制拍摄装置到达初始姿态,再通过云台控制拍摄装置从初始姿态到达目标横滚姿态分量为90度或-90度的姿态;也可以将初始姿态与目标横滚姿态分量为90度或-90度的姿态叠加,通过云台控制拍摄装置到达叠加获得的姿态。In this step, the camera can be controlled by the pan-tilt to reach the initial posture, and then the camera can be controlled by the pan-tilt to reach the target posture from the initial posture to a posture of 90 degrees or -90 degrees; The rolling posture component is 90 degrees or -90 degree posture superposition, and the camera is controlled by the pan-tilt to reach the posture obtained by superposition.
应当理解地,在将拍摄装置由当前拍摄模式切换至竖直取向拍摄模式时,对于拍摄装置的其他姿态分量,比如偏航姿态分量和/或俯仰姿态分量,可以不进行控制,也可以根据需要控制拍摄装置的其他姿态分量为预设大小。It should be understood that when the camera is switched from the current shooting mode to the vertical orientation shooting mode, other attitude components of the camera, such as the yaw attitude component and/or the pitch attitude component, may not be controlled, or as required The other posture components of the control camera are preset sizes.
此外,在一些实施例中,云台的控制方法还包括:在拍摄装置处于竖直取向拍摄模式下,若获取到指示拍摄装置退出竖直取向拍摄模式的第二触发指令,则控制拍摄装置退出竖直取向拍摄模式。In addition, in some embodiments, the method for controlling the pan/tilt head further includes: when the shooting device is in the vertical orientation shooting mode, if a second trigger instruction instructing the shooting device to exit the vertical orientation shooting mode is obtained, controlling the shooting device to exit Vertical orientation shooting mode.
第二触发指令的产生方式可以包括多种,例如,在其中一些实施例中,云台包括基座和设于基座上的控制部,第二触发指令由用户触发控制部产生。控制部可以包括按键、按钮、旋钮或上述组合。本实施例的控制部可以包括一个,也可以包括多个。当云台为手持云台时,手持云台可以包括手柄,控制部可以设于手柄上。在另一些实施例中,第二触发指令由用户操作外部设备产生,并由外部设备发送。该外部设备能够与云台进行通信,外部设备可以包括手机、平板电脑等可移动终端,也可以为固定终端,还可以为遥控器或其他云台的控制装置。The second trigger instruction can be generated in multiple ways. For example, in some embodiments, the pan/tilt includes a base and a control part provided on the base, and the second trigger instruction is generated by the user triggering the control part. The control part may include keys, buttons, knobs or a combination of the above. The control unit in this embodiment may include one or more. When the pan/tilt is a handheld pan/tilt, the handheld pan/tilt may include a handle, and the control part may be provided on the handle. In other embodiments, the second trigger instruction is generated by the user operating the external device and sent by the external device. The external device can communicate with the pan/tilt. The external device may include a mobile terminal such as a mobile phone and a tablet computer, a fixed terminal, or a remote control or other control device of the pan/tilt.
对应于上述实施例的云台的控制方法,本申请实施例还提供一种云台,请结合图1和图6,该云台包括基座、轴组件和控制器。其中,轴组件设置于基座上,并且,轴组件用于搭载拍摄装置。本实施例的轴组件被配置为绕至少二个轴转动,可选地,轴组件被配置为绕偏航轴、俯仰轴和横滚轴转动;可选地,轴组件被配置为绕偏航轴和俯仰轴转动。控制器与云台电连接,可选地,控制器设于基座。Corresponding to the control method of the pan/tilt head in the above embodiment, the embodiment of the present application also provides a pan/tilt head. With reference to FIGS. 1 and 6, the pan/tilt head includes a base, a shaft assembly, and a controller. Wherein, the shaft assembly is arranged on the base, and the shaft assembly is used to mount the imaging device. The shaft assembly of this embodiment is configured to rotate around at least two axes. Optionally, the shaft assembly is configured to rotate around a yaw axis, a pitch axis, and a roll axis; optionally, the shaft assembly is configured to rotate around a yaw axis. The axis and the pitch axis rotate. The controller is electrically connected with the pan/tilt, and optionally, the controller is arranged on the base.
具体的,控制器用于:在拍摄装置处于竖直取向拍摄模式下,获取拍摄装置的当前姿态和拍摄装置的目标姿态;根据当前姿态、目标姿态以及预设控制指令对应的拍摄装置的欧拉角旋转顺序,确定云台的目标关节角;根据目标关节角,控制云台转动;其中,预设控制指令能够使得在拍摄装置处于竖直取向拍摄模式下,云台在转动的过程中始终保持固定维度的转动自由度。Specifically, the controller is used to: when the shooting device is in the vertical orientation shooting mode, obtain the current posture of the shooting device and the target posture of the shooting device; according to the current posture, the target posture, and the Euler angle of the shooting device corresponding to the preset control instruction Rotation sequence, determine the target joint angle of the gimbal; control the rotation of the gimbal according to the target joint angle; among them, the preset control command can make the gimbal always remain fixed during the rotation of the camera when the camera is in the vertical orientation shooting mode Dimensional degrees of freedom of rotation.
控制器的实现过程和工作原理可参见上述实施例的云台的控制方法的描述,此处不再赘述。For the implementation process and working principle of the controller, please refer to the description of the pan-tilt control method in the foregoing embodiment, which will not be repeated here.
本实施例的控制器可以是中央处理器(central processing unit,CPU)。控制器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device, CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The controller in this embodiment may be a central processing unit (CPU). The controller may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
此外,当云台为手持云台时,基座可以为手持云台的手柄,或设于手持云台的手柄上。In addition, when the pan/tilt is a handheld pan/tilt, the base can be the handle of the handheld pan/tilt or be set on the handle of the handheld pan/tilt.
此外,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例的云台的控制方法的步骤。In addition, an embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for controlling the pan/tilt head of the above-mentioned embodiment are realized.
所述计算机可读存储介质可以是前述任一实施例所述的云台的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是云台的外部存储设备,例如所述设备上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、SD卡、闪存卡(Flash Card)等。进一步的,所述计算机可读存储介质还可以既包括云台的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述云台所需的其他程序和数据,还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be the internal storage unit of the pan/tilt head described in any of the foregoing embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of the pan-tilt, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash memory card (Flash Card), etc. equipped on the device . Further, the computer-readable storage medium may also include both an internal storage unit of the pan-tilt and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the pan/tilt, and can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本申请部分实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。The above-disclosed are only some of the embodiments of this application, which of course cannot be used to limit the scope of rights of this application. Therefore, equivalent changes made in accordance with the claims of this application still fall within the scope of this application.
Claims (56)
- 一种云台的控制方法,所述云台上搭载有拍摄装置,所述云台被配置为绕至少二个轴转动,其特征在于,所述方法包括:A method for controlling a pan-tilt, the pan-tilt is equipped with a photographing device, and the pan-tilt is configured to rotate around at least two axes, characterized in that the method includes:在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态;When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角;Determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction;根据所述目标关节角,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target joint angle;其中,所述预设控制指令能够使得在所述拍摄装置处于竖直取向拍摄模式下,所述云台在转动的过程中始终保持固定维度的转动自由度。Wherein, the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
- 根据权利要求1所述的方法,其特征在于,所述拍摄装置的欧拉角对应第一轴、第二轴、第三轴的旋转,所述第一轴平行于所述拍摄装置的光轴方向,所述第一轴、所述第二轴、所述第三轴分别正交;The method according to claim 1, wherein the Euler angle of the imaging device corresponds to the rotation of the first axis, the second axis, and the third axis, and the first axis is parallel to the optical axis of the imaging device Directions, the first axis, the second axis, and the third axis are respectively orthogonal;所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,或第三轴、第一轴、第三轴。The Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis.
- 根据权利要求2所述的方法,其特征在于,在所述拍摄装置以水平取向放置、且所述拍摄装置的光轴平行于水平面时,所述第三轴为竖直方向;The method according to claim 2, wherein when the photographing device is placed in a horizontal orientation and the optical axis of the photographing device is parallel to a horizontal plane, the third axis is a vertical direction;在所述云台为ZXY构型时,所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴。When the pan-tilt is in the ZXY configuration, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the third axis, the first axis, and the third axis.
- 根据权利要求2所述的方法,其特征在于,在所述拍摄装置以水平取向放置、且所述拍摄装置的光轴平行于水平面时,所述第三轴为竖直方向;The method according to claim 2, wherein when the photographing device is placed in a horizontal orientation and the optical axis of the photographing device is parallel to a horizontal plane, the third axis is a vertical direction;在所述云台为YXZ构型时,所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴。When the pan-tilt is in the YXZ configuration, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, and second axis.
- 根据权利要求1所述的方法,其特征在于,所述根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角,包括:The method according to claim 1, wherein the target position of the pan/tilt head is determined according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction Joint angle, including:根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角;Determining the target Euler angle according to the target posture and the Euler angle rotation sequence of the photographing device corresponding to the preset control instruction;根据所述目标欧拉角确定第一姿态四元数;Determine the first attitude quaternion according to the target Euler angle;根据所述第一姿态四元数和所述当前姿态对应的第二姿态四元数,确定所述云台的目标关节角。The target joint angle of the pan/tilt head is determined according to the first posture quaternion and the second posture quaternion corresponding to the current posture.
- 根据权利要求5所述的方法,其特征在于,所述目标姿态为根据所述云台的控制装置发送的姿态控制量确定。The method according to claim 5, wherein the target posture is determined according to a posture control amount sent by a control device of the pan/tilt head.
- 根据权利要求6所述的方法,其特征在于,所述根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角,包括:The method according to claim 6, wherein the determining the target Euler angle according to the target posture and the Euler angle rotation sequence of the camera corresponding to the preset control instruction comprises:获取所述拍摄装置的上一次的目标姿态;Acquiring the last target posture of the photographing device;根据所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述上一次的目标姿态对应的第一欧拉角;Determining the first Euler angle corresponding to the last target posture according to the Euler angle rotation sequence of the photographing device corresponding to the preset control instruction;根据所述第一欧拉角和第二欧拉角,确定目标欧拉角,所述第二欧拉角是所述姿态控制量基于所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序进行转换得到的。Determine the target Euler angle according to the first Euler angle and the second Euler angle, where the second Euler angle is the Euler angle of the camera corresponding to the attitude control amount based on the preset control instruction The angular rotation sequence is converted.
- 根据权利要求7所述的方法,其特征在于,所述目标欧拉角中对应横滚方向的角度值的范围为90度±第一预设角度或-90度±第二预设角度。The method according to claim 7, wherein the range of the angle value corresponding to the roll direction in the target Euler angle is 90 degrees±the first preset angle or -90 degrees±the second preset angle.
- 根据权利要求7所述的方法,其特征在于,所述拍摄装置的欧拉角对应第一轴、第二轴、第三轴的旋转,所述第一轴平行于所述拍摄装置的光轴方向,所述第一轴、所述第二轴、所述第三轴分别正交;8. The method of claim 7, wherein the Euler angle of the camera corresponds to the rotation of the first axis, the second axis, and the third axis, and the first axis is parallel to the optical axis of the camera. Directions, the first axis, the second axis, and the third axis are respectively orthogonal;若所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则所述姿态控制量中用于控制所述云台绕航向轴转动的分量,以及用于控制所述云台绕俯仰轴转动的分量,为基于所述欧拉角旋转顺序中的第二轴进行转换得到;If the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, second axis, the attitude control variable is used to control the pan/tilt around the heading axis The rotation component and the component used to control the rotation of the pan/tilt head around the pitch axis are obtained by conversion based on the second axis in the Euler angle rotation sequence;若所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,所述姿态控制量中用于控制所述云台绕航向轴转动的分量,以及用于控制所述云台绕俯仰轴转动的分量,为基于所述欧拉角旋转顺序中的第三轴进行转换得到。If the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the third axis, the first axis, and the third axis, the attitude control variable is used to control the rotation of the pan/tilt around the yaw axis The component of and the component used to control the rotation of the pan/tilt around the pitch axis are obtained by conversion based on the third axis in the Euler angle rotation sequence.
- 根据权利要求9所述的方法,其特征在于,所述转换包括所述云台转动的欧拉角速度的转换,或,所述云台转动的欧拉角大小的转换。The method according to claim 9, wherein the conversion comprises conversion of the Euler angular velocity of the rotation of the pan/tilt, or conversion of the size of the Euler angle of the rotation of the pan/tilt.
- 根据权利要求5所述的方法,其特征在于,所述目标姿态为根据所述云台的基座的实时检测姿态确定。The method according to claim 5, wherein the target posture is determined according to the real-time detection posture of the base of the pan-tilt.
- 根据权利要求11所述的方法,其特征在于,所述根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角,包括:The method according to claim 11, wherein the determining the target Euler angle according to the target posture and the Euler angle rotation sequence of the camera corresponding to the preset control instruction comprises:基于所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,将所述目标姿态中的横滚姿态分量转换为90度或-90度,得到目标欧拉角。Based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction, the roll posture component in the target posture is converted into 90 degrees or -90 degrees to obtain the target Euler angle.
- 根据权利要求1所述的方法,其特征在于,所述当前姿态不同于所述目标姿态,所述根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角,包括:The method according to claim 1, wherein the current posture is different from the target posture, and the Euler of the camera corresponding to the current posture, the target posture, and a preset control instruction The angular rotation sequence to determine the target joint angle of the pan/tilt includes:根据所述当前姿态、所述目标姿态和预设插值策略,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态;Determining at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture, and a preset interpolation strategy;根据所述当前姿态、至少一个所述中间姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角。The target joint angle of the pan/tilt head is determined according to the current posture, at least one of the intermediate postures, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction.
- 根据权利要求13所述的方法,其特征在于,所述根据所述当前姿态、所述目标姿态和预设插值策略,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态,包括:The method according to claim 13, wherein the determining at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture, and a preset interpolation strategy, include:根据所述当前姿态、所述目标姿态和至少一个时间变化参数,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态;Determining at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture, and at least one time change parameter;其中,至少一个所述时间变化参数和至少一个中间姿态一一对应。Wherein, at least one of the time change parameters corresponds to at least one intermediate posture in a one-to-one correspondence.
- 根据权利要求14所述的方法,其特征在于,所述时间变化参数包括多个,由所述当前姿态至所述目标姿态的姿态切换方向,多个所述中间姿态对应的时间变化参数呈递增趋势。The method according to claim 14, wherein the time change parameter comprises multiple, and the direction of the posture switching from the current posture to the target posture, and the time change parameters corresponding to the multiple intermediate postures are increasing trend.
- 根据权利要求13、14或15所述的方法,其特征在于,所述位置相邻的姿态的欧拉角偏差大小相等。The method according to claim 13, 14 or 15, characterized in that the Euler angle deviations of the postures adjacent to each other are equal in magnitude.
- 根据权利要求1所述的方法,其特征在于,所述在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态之前,还包括:The method according to claim 1, characterized in that, before acquiring the current posture of the shooting device and the target posture of the shooting device when the shooting device is in a vertical orientation shooting mode, the method further comprises:在获取到指示所述拍摄装置进入竖直取向拍摄模式的触发指令时,控制所述拍摄装置处于所述竖直取向拍摄模式。When a trigger instruction instructing the shooting device to enter the vertical orientation shooting mode is acquired, the shooting device is controlled to be in the vertical orientation shooting mode.
- 根据权利要求16所述的方法,其特征在于,所述控制所述拍摄装置处于所述竖直取向拍摄模式,包括:The method according to claim 16, wherein the controlling the photographing device to be in the vertical orientation photographing mode comprises:获取所述拍摄装置的当前拍摄模式;Acquiring the current shooting mode of the shooting device;根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式。According to the current shooting mode, controlling the shooting device to be in the vertical orientation shooting mode.
- 根据权利要求18所述的方法,其特征在于,所述当前拍摄模式为竖直取向拍摄模式,所述根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式,包括:The method according to claim 18, wherein the current shooting mode is a vertical orientation shooting mode, and the controlling the shooting device to be in the vertical orientation shooting mode according to the current shooting mode comprises:将所述拍摄装置保持在所述竖直取向拍摄模式。Keep the camera in the vertical orientation shooting mode.
- 根据权利要求18所述的方法,其特征在于,所述当前拍摄模式为非竖直取向的拍摄模式,所述根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式,包括:The method according to claim 18, wherein the current shooting mode is a non-vertical shooting mode, and the shooting device is controlled to be in the vertical shooting mode according to the current shooting mode, include:控制所述拍摄装置由所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式。Controlling the photographing device to switch from the current photographing mode to the vertical orientation photographing mode by the photographing device.
- 根据权利要求20所述的方法,其特征在于,所述控制所述拍摄装置由所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式,包括:The method according to claim 20, wherein said controlling said camera to switch from said camera from said current shooting mode to said vertical orientation shooting mode comprises:将所述云台的控制指令切换至预设控制指令,使得模式切换后所述云台保持原有维度的转动自由度,所述原有维度的数量与所述固定维度的数量相等;Switching the control instruction of the pan/tilt head to a preset control instruction, so that the pan/tilt head maintains the rotation freedom of the original dimension after the mode is switched, and the number of the original dimension is equal to the number of the fixed dimension;根据所述预设控制指令,控制所述云台转动,使得所述拍摄装置的目标横滚姿态分量为90度或-90度,以使所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式。According to the preset control instruction, the pan/tilt is controlled to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the Vertical orientation shooting mode.
- 根据权利要求21所述的方法,其特征在于,所述将所述云台的控制指令切换至所述预设控制指令,包括:The method according to claim 21, wherein said switching the control instruction of the pan/tilt head to the preset control instruction comprises:获取所述拍摄装置的实时横滚姿态分量;Acquiring the real-time roll posture component of the photographing device;若所述实时横滚姿态分量满足预设条件,则将所述云台的控制指令切换至预设控制指令。If the real-time roll posture component satisfies a preset condition, the control instruction of the pan/tilt head is switched to a preset control instruction.
- 根据权利要求22所述的方法,其特征在于,所述方法还包括:The method according to claim 22, wherein the method further comprises:若所述实时横滚姿态分量不满足所述预设条件,则控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态分量满足所述预设条件。If the real-time roll posture component does not meet the preset condition, the pan/tilt is controlled to rotate so that the real-time roll posture component of the camera is shifted by a preset angle, and the shifted posture The real-time roll posture component of the camera satisfies the preset condition.
- 根据权利要求22或23所述的方法,其特征在于,所述当前拍摄模式包括水平取向拍摄模式,所述预设条件包括:所述实时横滚姿态分量不为0度、180或-180度。The method according to claim 22 or 23, wherein the current shooting mode comprises a horizontal orientation shooting mode, and the preset condition comprises: the real-time roll posture component is not 0 degree, 180 or -180 degree .
- 根据权利要求24所述的方法,其特征在于,所述控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态分量满足所述预设条件,包括:24. The method according to claim 24, wherein the control of the pan/tilt head rotates so that the real-time roll posture component of the photographing device is shifted by a preset angle, and the shifted photographing device The real-time roll attitude component of satisfies the preset conditions, including:根据所述当前拍摄模式对应的控制指令,控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态分量满足所述预设条件。According to the control instruction corresponding to the current shooting mode, the pan/tilt is controlled to rotate so that the real-time roll posture component of the shooting device is shifted by a preset angle, and the shifted real-time roll of the shooting device The posture component satisfies the preset condition.
- 根据权利要求17所述的方法,其特征在于,所述云台包括:基座和设于所述基座上的控制部,所述触发指令由用户触发所述控制部产生;或者The method according to claim 17, wherein the pan/tilt head comprises: a base and a control unit provided on the base, and the trigger instruction is generated by a user triggering the control unit; or所述触发指令由用户操作外部设备产生,并由所述外部设备发送。The trigger instruction is generated by a user operating an external device and sent by the external device.
- 根据权利要求1所述的方法,其特征在于,所述云台被配置为绕两个轴转动,两个所述轴包括偏航轴和俯仰轴。The method according to claim 1, wherein the pan/tilt is configured to rotate around two axes, the two axes including a yaw axis and a pitch axis.
- 根据权利要求1所述的方法,其特征在于,所述云台被配置为绕三个轴转动,三个所述轴包括偏航轴、俯仰轴和横滚轴。The method according to claim 1, wherein the pan-tilt is configured to rotate around three axes, and the three axes include a yaw axis, a pitch axis, and a roll axis.
- 一种云台,其特征在于,所述云台包括:A pan-tilt, characterized in that the pan-tilt includes:基座;Base设置于所述基座上的轴组件,所述轴组件用于搭载拍摄装置,所述轴组件被配置为绕至少二个轴转动;和A shaft assembly provided on the base, the shaft assembly is used to mount a photographing device, and the shaft assembly is configured to rotate about at least two shafts; and控制器,所述控制器与所述云台电连接,所述控制器用于:A controller, the controller is electrically connected to the pan-tilt, and the controller is used for:在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态;When the shooting device is in the vertical orientation shooting mode, acquiring the current posture of the shooting device and the target posture of the shooting device;根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角;Determining the target joint angle of the pan/tilt head according to the current posture, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction;根据所述目标关节角,控制所述云台转动;Controlling the rotation of the pan/tilt according to the target joint angle;其中,所述预设控制指令能够使得在所述拍摄装置处于竖直取向拍摄模式下,所述云台在转动的过程中始终保持固定维度的转动自由度。Wherein, the preset control instruction can ensure that when the camera is in the vertical orientation shooting mode, the pan/tilt head always maintains a fixed degree of rotational freedom during the rotation process.
- 根据权利要求29所述的云台,其特征在于,所述拍摄装置的欧拉角对应第一轴、第二轴、第三轴的旋转,所述第一轴平行于所述拍摄装置的光轴方向,所述第一轴、所述第二轴、所述第三轴分别正交;The pan/tilt head of claim 29, wherein the Euler angle of the imaging device corresponds to the rotation of the first axis, the second axis, and the third axis, and the first axis is parallel to the light of the imaging device. Axis direction, the first axis, the second axis, and the third axis are orthogonal to each other;所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、 第二轴,或第三轴、第一轴、第三轴。The Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the second axis, the first axis, the second axis, or the third axis, the first axis, and the third axis.
- 根据权利要求30所述的云台,其特征在于,在所述拍摄装置以水平取向放置、且所述拍摄装置的光轴平行于水平面时,所述第三轴为竖直方向;The pan/tilt head according to claim 30, wherein when the photographing device is placed in a horizontal orientation and the optical axis of the photographing device is parallel to a horizontal plane, the third axis is a vertical direction;在所述云台为ZXY构型时,所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴。When the pan-tilt is in the ZXY configuration, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the third axis, the first axis, and the third axis.
- 根据权利要求30所述的云台,其特征在于,在所述拍摄装置以水平取向放置、且所述拍摄装置的光轴平行于水平面时,所述第三轴为竖直方向;The pan/tilt head according to claim 30, wherein when the photographing device is placed in a horizontal orientation and the optical axis of the photographing device is parallel to a horizontal plane, the third axis is a vertical direction;在所述云台为YXZ构型时,所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴。When the pan-tilt is in the YXZ configuration, the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, and second axis.
- 根据权利要求29所述的云台,其特征在于,所述控制器在根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角时,具体用于:The pan/tilt head according to claim 29, wherein the controller determines the Euler angle rotation sequence of the camera corresponding to the current posture, the target posture, and a preset control instruction. The target joint angle of the gimbal is specifically used for:根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角;Determining the target Euler angle according to the target posture and the Euler angle rotation sequence of the photographing device corresponding to the preset control instruction;根据所述目标欧拉角确定第一姿态四元数;Determine the first attitude quaternion according to the target Euler angle;根据所述第一姿态四元数和所述当前姿态对应的第二姿态四元数,确定所述云台的目标关节角。The target joint angle of the pan/tilt head is determined according to the first posture quaternion and the second posture quaternion corresponding to the current posture.
- 根据权利要求33所述的云台,其特征在于,所述目标姿态为根据所述云台的控制装置发送的姿态控制量确定。The pan/tilt head according to claim 33, wherein the target attitude is determined according to the attitude control amount sent by the control device of the pan/tilt head.
- 根据权利要求34所述的云台,其特征在于,所述控制器在根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角时,具体用于:The pan/tilt head according to claim 34, wherein the controller determines the target Euler angle according to the target attitude and the Euler angle rotation sequence of the camera corresponding to the preset control instruction. Used for:获取所述拍摄装置的上一次的目标姿态;Acquiring the last target posture of the photographing device;根据所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述上一次的目标姿态对应的第一欧拉角;Determining the first Euler angle corresponding to the last target posture according to the Euler angle rotation sequence of the photographing device corresponding to the preset control instruction;根据所述第一欧拉角和第二欧拉角,确定目标欧拉角,所述第二欧拉角是所述姿态控制量基于所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序进行转换得到的。Determine the target Euler angle according to the first Euler angle and the second Euler angle, where the second Euler angle is the Euler angle of the camera corresponding to the attitude control amount based on the preset control instruction The angular rotation sequence is converted.
- 根据权利要求35所述的云台,其特征在于,所述目标欧拉角中对应横滚方向的角度值的范围为90度±第一预设角度或-90度±第二预设角度。The pan/tilt head according to claim 35, wherein the range of the angle value corresponding to the roll direction in the target Euler angle is 90°±the first preset angle or -90°±the second preset angle.
- 根据权利要求35所述的云台,其特征在于,所述拍摄装置的欧拉角对应第一轴、第二轴、第三轴的旋转,所述第一轴平行于所述拍摄装置的光轴方向,所述第一轴、所述第二轴、所述第三轴分别正交;The pan/tilt head according to claim 35, wherein the Euler angle of the photographing device corresponds to the rotation of the first axis, the second axis, and the third axis, and the first axis is parallel to the light of the photographing device. Axis direction, the first axis, the second axis, and the third axis are orthogonal to each other;若所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第二轴、第一轴、第二轴,则所述姿态控制量中用于控制所述云台绕航向轴转动的分量,以及用于控制所述云台绕俯仰轴转动的分量,为基于所述欧拉角旋转顺序中的第二轴进行转换得到;If the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: second axis, first axis, second axis, the attitude control variable is used to control the pan/tilt around the heading axis The rotation component and the component used to control the rotation of the pan/tilt head around the pitch axis are obtained by conversion based on the second axis in the Euler angle rotation sequence;若所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序为:第三轴、第一轴、第三轴,所述姿态控制量中用于控制所述云台绕航向轴转动的分量,以及用于控制所述云台绕俯仰轴转动的分量,为基于所述欧拉角旋转顺序中的第三轴进行转换得到。If the Euler angle rotation sequence of the camera corresponding to the preset control instruction is: the third axis, the first axis, and the third axis, the attitude control variable is used to control the rotation of the pan/tilt around the yaw axis The component of and the component used to control the rotation of the pan/tilt around the pitch axis are obtained by conversion based on the third axis in the Euler angle rotation sequence.
- 根据权利要求37所述的云台,其特征在于,所述转换包括所述云台转动的欧拉角速度的转换,或,所述云台转动的欧拉角大小的转换。The pan/tilt head according to claim 37, wherein the conversion includes conversion of Euler angular velocity of the rotation of the pan/tilt head, or conversion of the size of the Euler angle of the rotation of the pan/tilt head.
- 根据权利要求33所述的云台,其特征在于,所述目标姿态为根据所述云台的基座的实时检测姿态确定。The pan/tilt head according to claim 33, wherein the target posture is determined according to the real-time detection attitude of the base of the pan/tilt head.
- 根据权利要求39所述的云台,其特征在于,所述控制器在根据所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定目标欧拉角时,具体用于:The pan/tilt head according to claim 39, wherein the controller determines the target Euler angle according to the target attitude and the Euler angle rotation sequence of the camera corresponding to the preset control instruction. Used for:基于所述预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,将所述目标姿态中的横滚姿态分量转换为90度或-90度,得到目标欧拉角。Based on the Euler angle rotation sequence of the camera corresponding to the preset control instruction, the roll posture component in the target posture is converted into 90 degrees or -90 degrees to obtain the target Euler angle.
- 根据权利要求29所述的云台,其特征在于,所述当前姿态不同于所述目标姿态,所述控制器在根据所述当前姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角时,具体用于:The pan/tilt head according to claim 29, wherein the current posture is different from the target posture, and the controller performs the shooting according to the current posture, the target posture, and the preset control instruction. The Euler angle rotation sequence of the device, when determining the target joint angle of the pan/tilt, is specifically used for:根据所述当前姿态、所述目标姿态和预设插值策略,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态;Determining at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture, and a preset interpolation strategy;根据所述当前姿态、至少一个所述中间姿态、所述目标姿态以及预设控制指令对应的所述拍摄装置的欧拉角旋转顺序,确定所述云台的目标关节角。The target joint angle of the pan/tilt head is determined according to the current posture, at least one of the intermediate postures, the target posture, and the Euler angle rotation sequence of the camera corresponding to the preset control instruction.
- 根据权利要求41所述的云台,其特征在于,所述控制器在根据所述当前姿态、所述目标姿态和预设插值策略,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态时,具体用于:The pan/tilt head according to claim 41, wherein the controller determines at least one of the positions between the current posture and the target posture according to the current posture, the target posture, and a preset interpolation strategy. In an intermediate posture, it is specifically used for:根据所述当前姿态、所述目标姿态和至少一个时间变化参数,确定位于所述当前姿态和所述目标姿态之间的至少一个中间姿态;Determining at least one intermediate posture between the current posture and the target posture according to the current posture, the target posture, and at least one time change parameter;其中,至少一个所述时间变化参数和至少一个中间姿态一一对应。Wherein, at least one of the time change parameters corresponds to at least one intermediate posture in a one-to-one correspondence.
- 根据权利要求42所述的云台,其特征在于,所述时间变化参数包括多个,由所述当前姿态至所述目标姿态的姿态切换方向,多个所述中间姿态对应的时间变化参数呈递增趋势。The pan/tilt head according to claim 42, wherein the time change parameter comprises multiple, the direction of the posture switching from the current posture to the target posture, and the time change parameters corresponding to the multiple intermediate postures are Increasing trend.
- 根据权利要求41、42或43所述的云台,其特征在于,所述位置相邻的姿态的欧拉角偏差大小相等。The pan/tilt head according to claim 41, 42 or 43, wherein the Euler angle deviations of the postures adjacent to each other are equal in magnitude.
- 根据权利要求29所述的云台,其特征在于,所述控制器在所述拍摄装置处于竖直取向拍摄模式下,获取所述拍摄装置的当前姿态和所述拍摄装置的目标姿态之前,还用于:The pan/tilt head according to claim 29, characterized in that, before the controller obtains the current posture of the shooting device and the target posture of the shooting device when the shooting device is in the vertical orientation shooting mode, it also Used for:在获取到指示所述拍摄装置进入竖直取向拍摄模式的触发指令时,控制所述拍摄装置处于所述竖直取向拍摄模式。When a trigger instruction instructing the shooting device to enter the vertical orientation shooting mode is acquired, the shooting device is controlled to be in the vertical orientation shooting mode.
- 根据权利要求44所述的云台,其特征在于,所述控制器在控制所述拍摄装置 处于所述竖直取向拍摄模式时,具体用于:The pan/tilt head according to claim 44, wherein the controller is specifically configured to:获取所述拍摄装置的当前拍摄模式;Acquiring the current shooting mode of the shooting device;根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式。According to the current shooting mode, controlling the shooting device to be in the vertical orientation shooting mode.
- 根据权利要求46所述的云台,其特征在于,所述当前拍摄模式为竖直取向拍摄模式,所述控制器在根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式时,具体用于:The pan/tilt head according to claim 46, wherein the current shooting mode is a vertical orientation shooting mode, and the controller is controlling the shooting device to be in the vertical orientation shooting according to the current shooting mode. In the mode, it is specifically used for:将所述拍摄装置保持在所述竖直取向拍摄模式。Keep the camera in the vertical orientation shooting mode.
- 根据权利要求46所述的云台,其特征在于,所述当前拍摄模式为非竖直取向的拍摄模式,所述控制器在根据所述当前拍摄模式,控制所述拍摄装置处于所述竖直取向拍摄模式时,具体用于:The pan/tilt head according to claim 46, wherein the current shooting mode is a non-vertical orientation shooting mode, and the controller controls the shooting device to be in the vertical orientation according to the current shooting mode. When in orientation shooting mode, it is specifically used for:控制所述拍摄装置由所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式。Controlling the photographing device to switch from the current photographing mode to the vertical orientation photographing mode by the photographing device.
- 根据权利要求48所述的云台,其特征在于,所述控制器在控制所述拍摄装置由所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式时,具体用于:The pan/tilt head according to claim 48, wherein the controller is specifically configured to: when controlling the shooting device to switch from the shooting device from the current shooting mode to the vertical orientation shooting mode:将所述云台的控制指令切换至预设控制指令,使得模式切换后所述云台保持原有维度的转动自由度,所述原有维度的数量与所述固定维度的数量相等;Switching the control instruction of the pan/tilt head to a preset control instruction, so that the pan/tilt head maintains the original dimensional rotational freedom after the mode is switched, and the number of the original dimension is equal to the number of the fixed dimension;根据所述预设控制指令,控制所述云台转动,使得所述拍摄装置的目标横滚姿态分量为90度或-90度,以使所述拍摄装置由所述当前拍摄模式切换至所述竖直取向拍摄模式。According to the preset control instruction, the pan/tilt is controlled to rotate so that the target roll posture component of the camera is 90 degrees or -90 degrees, so that the camera can switch from the current shooting mode to the Vertical orientation shooting mode.
- 根据权利要求49所述的云台,其特征在于,所述控制器在将所述云台的控制指令切换至所述预设控制指令时,具体用于:The pan/tilt head according to claim 49, wherein the controller is specifically configured to: when switching the control instruction of the pan/tilt head to the preset control instruction:获取所述拍摄装置的实时横滚姿态分量;Acquiring the real-time roll posture component of the photographing device;若所述实时横滚姿态分量满足预设条件,则将所述云台的控制指令切换至预设控制指令。If the real-time roll posture component satisfies a preset condition, the control instruction of the pan/tilt head is switched to a preset control instruction.
- 根据权利要求50所述的云台,其特征在于,所述控制器还用于:The pan/tilt head according to claim 50, wherein the controller is further configured to:若所述实时横滚姿态分量不满足所述预设条件,则控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态分量满足所述预设条件。If the real-time roll posture component does not meet the preset condition, the pan/tilt is controlled to rotate so that the real-time roll posture component of the camera is shifted by a preset angle, and the shifted posture The real-time roll posture component of the camera satisfies the preset condition.
- 根据权利要求50或51所述的云台,其特征在于,所述当前拍摄模式包括水平取向拍摄模式,所述预设条件包括:所述实时横滚姿态分量不为0度、180或-180度。The pan/tilt head according to claim 50 or 51, wherein the current shooting mode comprises a horizontal orientation shooting mode, and the preset condition comprises: the real-time roll posture component is not 0 degree, 180 or -180 degree.
- 根据权利要求52所述的云台,其特征在于,所述控制器在控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态分量满足所述预设条件时,具体用于:The pan/tilt head according to claim 52, wherein the controller is controlling the rotation of the pan/tilt head, so that the real-time roll posture component of the photographing device is shifted by a preset angle, and the shifted When the real-time roll posture component of the photographing device satisfies the preset condition, it is specifically used for:根据所述当前拍摄模式对应的控制指令,控制所述云台转动,以使得所述拍摄装置的实时横滚姿态分量偏移预设角度,并使得偏移后的所述拍摄装置的实时横滚姿态 分量满足所述预设条件。According to the control instruction corresponding to the current shooting mode, the pan/tilt head is controlled to rotate so that the real-time roll posture component of the shooting device is shifted by a preset angle, and the shifted real-time roll of the shooting device The posture component satisfies the preset condition.
- 根据权利要求45所述的云台,其特征在于,所述云台包括:基座和设于所述基座上的控制部,所述触发指令由用户触发所述控制部产生;或者The pan/tilt head according to claim 45, wherein the pan/tilt head comprises: a base and a control part provided on the base, and the trigger instruction is generated by a user triggering the control part; or所述触发指令由用户操作外部设备产生,并由所述外部设备发送。The trigger instruction is generated by a user operating an external device and sent by the external device.
- 根据权利要求29所述的云台,其特征在于,所述云台被配置为绕两个轴转动,两个所述轴包括偏航轴和俯仰轴。The pan/tilt head of claim 29, wherein the pan/tilt head is configured to rotate about two axes, the two axes including a yaw axis and a pitch axis.
- 根据权利要求29所述的云台,其特征在于,所述云台被配置为绕三个轴转动,三个所述轴包括偏航轴、俯仰轴和横滚轴。The pan/tilt head according to claim 29, wherein the pan/tilt head is configured to rotate around three axes, and the three axes include a yaw axis, a pitch axis, and a roll axis.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/130862 WO2021134645A1 (en) | 2019-12-31 | 2019-12-31 | Gimbal control method and gimbal |
CN201980091863.5A CN113423643A (en) | 2019-12-31 | 2019-12-31 | Cloud deck control method and cloud deck |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/130862 WO2021134645A1 (en) | 2019-12-31 | 2019-12-31 | Gimbal control method and gimbal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021134645A1 true WO2021134645A1 (en) | 2021-07-08 |
Family
ID=76686166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/130862 WO2021134645A1 (en) | 2019-12-31 | 2019-12-31 | Gimbal control method and gimbal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113423643A (en) |
WO (1) | WO2021134645A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130014584A1 (en) * | 2011-07-12 | 2013-01-17 | Kabushiki Kaisha Toshiba | Tracking apparatus |
CN106249745A (en) * | 2016-07-07 | 2016-12-21 | 苏州大学 | The control method of four axle unmanned planes |
CN106681369A (en) * | 2016-12-01 | 2017-05-17 | 广州亿航智能技术有限公司 | Cloud deck gesture control method and system |
CN108318035A (en) * | 2018-01-08 | 2018-07-24 | 山东大学 | A method of avoiding universal joint deadlock in the attitude measurement algorithm based on Eulerian angles |
CN108513637A (en) * | 2017-04-21 | 2018-09-07 | 深圳市大疆创新科技有限公司 | Holder and cloud platform control method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105116926B (en) * | 2015-08-20 | 2018-05-04 | 深圳一电航空技术有限公司 | Cloud platform control method and device |
JP6369877B2 (en) * | 2017-01-04 | 2018-08-08 | エスゼット ディージェイアイ オスモ テクノロジー カンパニー リミテッドSZ DJI Osmo Technology Co., Ltd. | platform |
WO2019084709A1 (en) * | 2017-10-30 | 2019-05-09 | 深圳市大疆创新科技有限公司 | Method for controlling pan-tilt head, pan-tilt head, control system, and movable device |
CN110337560B (en) * | 2018-05-30 | 2021-06-25 | 深圳市大疆创新科技有限公司 | Control method of holder, shooting device and readable storage medium |
-
2019
- 2019-12-31 WO PCT/CN2019/130862 patent/WO2021134645A1/en active Application Filing
- 2019-12-31 CN CN201980091863.5A patent/CN113423643A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130014584A1 (en) * | 2011-07-12 | 2013-01-17 | Kabushiki Kaisha Toshiba | Tracking apparatus |
CN106249745A (en) * | 2016-07-07 | 2016-12-21 | 苏州大学 | The control method of four axle unmanned planes |
CN106681369A (en) * | 2016-12-01 | 2017-05-17 | 广州亿航智能技术有限公司 | Cloud deck gesture control method and system |
CN108513637A (en) * | 2017-04-21 | 2018-09-07 | 深圳市大疆创新科技有限公司 | Holder and cloud platform control method |
CN108318035A (en) * | 2018-01-08 | 2018-07-24 | 山东大学 | A method of avoiding universal joint deadlock in the attitude measurement algorithm based on Eulerian angles |
Also Published As
Publication number | Publication date |
---|---|
CN113423643A (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109071034B (en) | Method for switching operating modes of holder, controller and image stability augmentation equipment | |
CN111279113B (en) | Handheld holder control method and handheld holder | |
WO2020215215A1 (en) | Gimbal control method and device, gimbal, system and storage medium | |
WO2017000316A1 (en) | Gimbal for image capturing | |
WO2017020150A1 (en) | Image processing method, device and camera | |
WO2019227384A1 (en) | Pan-tilt control method and pan-tilt | |
CN110622091A (en) | Cloud deck control method, device and system, computer storage medium and unmanned aerial vehicle | |
WO2019100249A1 (en) | Method of controlling gimbal, gimbal, and unmanned aerial vehicle | |
WO2020207108A1 (en) | Image processing method, device and system, and robot | |
US20210018138A1 (en) | Gimbal mode switching method, device, mobile platform and storage medium | |
WO2020062281A1 (en) | Cradle head control method, cradle head, movable platform and readable storage medium | |
WO2021217371A1 (en) | Control method and apparatus for movable platform | |
WO2021134644A1 (en) | Gimbal control method and gimbal | |
WO2019205103A1 (en) | Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle | |
WO2021134645A1 (en) | Gimbal control method and gimbal | |
WO2021134643A1 (en) | Method for controlling cradle head and cradle head | |
CN112166280B (en) | Handheld holder and control method thereof | |
WO2021026760A1 (en) | Cradle head system and control method therefor | |
WO2021146908A1 (en) | Gimbal and control method therefor | |
WO2021026801A1 (en) | Handheld gimbal and control method therefor | |
WO2021195941A1 (en) | Control method for gimbal, gimbal, and moveble platform | |
WO2022198607A1 (en) | Handheld gimbal control method and device | |
KR20190143172A (en) | Pan-tilt-gimbal integrated system and control method thereof | |
WO2021243527A1 (en) | Gimbal control method, handheld gimbal, and computer-readable storage medium | |
WO2023065112A1 (en) | Interaction method and apparatus of following tripod head and tripod head system |
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: 19958130 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: 19958130 Country of ref document: EP Kind code of ref document: A1 |