WO2020062281A1 - Cradle head control method, cradle head, movable platform and readable storage medium - Google Patents

Cradle head control method, cradle head, movable platform and readable storage medium Download PDF

Info

Publication number
WO2020062281A1
WO2020062281A1 PCT/CN2018/109185 CN2018109185W WO2020062281A1 WO 2020062281 A1 WO2020062281 A1 WO 2020062281A1 CN 2018109185 W CN2018109185 W CN 2018109185W WO 2020062281 A1 WO2020062281 A1 WO 2020062281A1
Authority
WO
WIPO (PCT)
Prior art keywords
gimbal
angular velocity
coordinate system
joint
euler
Prior art date
Application number
PCT/CN2018/109185
Other languages
French (fr)
Chinese (zh)
Inventor
刘帅
王映知
谢振生
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201880087828.1A priority Critical patent/CN111656298A/en
Priority to PCT/CN2018/109185 priority patent/WO2020062281A1/en
Publication of WO2020062281A1 publication Critical patent/WO2020062281A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw

Definitions

  • the invention relates to the technical field of PTZ control, in particular to a control method of the PTZ, a PTZ, a computer movable platform, and a readable storage medium.
  • the PTZ has been widely used due to its stabilizing performance.
  • a camera can be mounted on the gimbal, and the camera shake usually affects the captured image or video.
  • you can set the camera on the gimbal and use the adjustment ability of the gimbal to maintain the camera's stable.
  • the PTZ can not only achieve stabilization, but also adjust the angle of the load on the PTZ.
  • a camera can be mounted on the gimbal, and the camera's shooting angle can be controlled by adjusting the angle of the gimbal.
  • the attitude of the PTZ is generally controlled to control the Euler angular velocity, so as to achieve a change in the attitude of the load, that is, the desired attitude is obtained by directly inputting the desired Euler angular velocity.
  • the user may pay more attention to the positional relationship of each axis arm of the gimbal relative to the base of the gimbal when controlling the gimbal.
  • the base is tilted, the positional relationship between each axis arm in the gimbal relative to the base of the gimbal will change, and the joint angle of the corresponding arm will change. Therefore, the expected Euler angular velocity directly input to the gimbal will change.
  • the gimbal may not be able to move to the desired attitude obtained from the directly entered desired Euler angle.
  • Embodiments of the present invention provide a control method for a PTZ, a PTZ, a movable platform, and a computer-readable storage medium.
  • the method for controlling a gimbal includes: obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system; according to the desired joint angular velocity, the gimbal joint angular coordinate system, and coordinates of the gimbal body
  • the conversion relationship between the system, the conversion relationship between the gimbal body coordinate system and the Euler coordinate system, converting the desired joint angular velocity to the desired Euler angular velocity; according to the current attitude of the gimbal and the expectation Euler angular velocity determines the desired attitude of the gimbal.
  • the pan / tilt according to the embodiment of the present invention includes a processor, and the processor is configured to:
  • the movable platform includes a main body and a pan / tilt head, the pan / tilt head is disposed on the main body, the pan / tilt head includes a processor, and the processor is configured to:
  • a computer-readable storage medium stores a computer program thereon, and the computer program can be executed by a processor to complete the control method described above.
  • a gimbal body coordinate can convert the expected joint angular velocity into the expected Euler angular velocity, and determine the desired attitude of the gimbal in combination with the current attitude of the gimbal and the expected Euler angular velocity.
  • the expected joint angular velocity is transformed by the coordinate system of the gimbal body, taking into consideration the joint space planning and the movement of the base of the gimbal, which can ensure that each axis arm of the gimbal is simultaneously Moving to the desired posture, that is, the positional relationship of each axis arm in the head relative to the base remains relatively fixed.
  • FIG. 1 is a schematic flowchart of a control method for a pan / tilt according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a movable platform according to an embodiment of the present invention.
  • FIG. 3 and 4 are schematic structural diagrams of a pan / tilt according to another embodiment of the present invention.
  • 5 to 9 are schematic flowcharts of a control method for a pan / tilt according to some embodiments of the present invention.
  • FIG. 10 is a schematic diagram of a control method of a pan / tilt according to some embodiments of the present invention.
  • FIG. 11 is a schematic flowchart of a control method for a pan / tilt according to some embodiments of the present invention.
  • FIG. 12 is a schematic diagram of a control method of a pan / tilt according to some embodiments of the present invention.
  • FIG. 13 to 22 are schematic flowcharts of a control method of a pan / tilt head according to some embodiments of the present invention.
  • FIG. 23 is a schematic diagram of a connection between a pan / tilt head and a computer-readable storage medium according to some embodiments of the present invention.
  • an embodiment of the present invention provides a control method of the PTZ 100.
  • the control method includes the following steps:
  • the gimbal 100 includes a processor 20.
  • the processor 20 is configured to: obtain a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system; The conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system, convert the desired joint angular velocity to the desired Euler angular velocity; according to the 100 The current attitude and the expected Euler angular velocity determine the desired attitude of the gimbal 100.
  • control method according to the embodiment of the present invention can be implemented by the pan / tilt head 100 according to the embodiment of the present invention, where step S10, step S20, and step S30 can be implemented by the processor 20.
  • the head 100 can be a two-axis head, or a three-axis head.
  • the pan / tilt head 100 may be a pan / tilt head 100 mounted on the body of the movable platform.
  • the movable platform may include an unmanned aerial vehicle, a robot, or a mobile cart.
  • the movable platform may be a mobile cart 1000 including a vehicle body 200 (that is, the body of the mobile platform, which is also regarded as the base of the PTZ 100), and the PTZ 100 is disposed on the vehicle body 200.
  • the PTZ 100 may be a handheld PTZ, wherein the handle of the handheld PTZ is regarded as the base of the PTZ 100.
  • the gimbal 100 may be equipped with a load 30, and the load 30 may be an imaging device 32 (such as a camera, a camcorder, a mobile phone, a tablet computer, etc.) and / or a shooting device 31, etc., which can be configured differently according to the required scene. .
  • the attitude of the load 30 may change with the attitude of the pan / tilt head 100, and the stabilization of the pan / tilt head 100 may be achieved.
  • FIG. 2 and FIG. 3 are only schematic descriptions and are not limited. After the description here, the definitions are not repeated later.
  • this embodiment further uses a pan-tilt head 100 as a three-axis pan-tilt as an example for further description.
  • the tri-axis pan / tilt (rotating about a yaw axis, a roll axis, and a pitch axis) includes at least one rotation axis structure 10.
  • Each of the rotating shaft structures 10 may include a rotating shaft motor 12 and a rotating shaft arm 14.
  • the rotating shaft structure 10 corresponding to the yaw axis may include a yaw shaft motor 122 and a yaw shaft arm 142.
  • the rotating shaft structure 10 corresponding to the roll axis may include a horizontal axis.
  • the roller motor 124 and the roll axis arm 144 The roller motor 124 and the roll axis arm 144.
  • the rotation shaft structure 10 corresponding to the pitch axis may include a pitch axis motor 126 and a pitch axis axis arm 146.
  • the yaw axis motor 122, the roll axis motor 124, and the pitch axis motor 126 correspondingly control the corresponding axis arms to rotate about the yaw axis, the roll axis, and / or the pitch axis, so that the attitude control of the gimbal 100 can be achieved.
  • a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system can be obtained, and the desired joint angular velocity is a control speed of a corresponding axis arm in the gimbal 100, and can be directly input by a user, for example,
  • the input desired joint angular velocity is 10 degrees / second, which can also be obtained by performing corresponding conversion according to the user's input operation, and can also be preset.
  • step S20 In order to accurately control the movement of the gimbal to the desired attitude, in step S20, please refer to FIG. 5.
  • the expected relationship between the angular velocity of the joint, the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body, the gimbal body coordinate system, and Pull the conversion relationship between the coordinate systems to convert the expected joint angular velocity to the expected Euler angular velocity which specifically includes the following sub-steps:
  • Z is a yaw axis
  • X is a roll axis
  • Y is a pitch axis
  • the yaw axis arm 142 is an outer frame
  • the roll axis arm 144 is a middle frame
  • the pitch axis axis arm 146 is the inner frame.
  • the yaw axis motor 122 is used to drive the yaw axis axis arm 142 to rotate to drive the roll axis motor 124 and the roll axis axis arm 144, the pitch axis motor 126 and the pitch axis axis arm 146, and the load mounted on the gimbal 100 30 turns, the roll axis motor 124 is used to drive the roll axis arm 144 to rotate, to drive the pitch axis motor 126 and the pitch axis axis arm 146, and the load 30 is rotated, and the pitch axis motor 126 is used to drive the pitch axis axis arm 146 to rotate, Rotate by driving the load 30.
  • the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body is related to the configuration of the gimbal 100, and the configuration of the gimbal is different.
  • the conversion relationship is different.
  • the rotation axis Voutz of the coordinate axis of the yaw axis joint angle is [0, 0, 1]
  • the rotation axis Vmidx of the coordinate axis of the roll axis joint angle is [1, 0, 0]
  • the pitch axis joint The rotation axis Vinny of the coordinate axis of the angle is [0, 1, 0].
  • V outz ⁇ b R y ′ * R x ′ * R z ′ * V outz
  • V midx ⁇ b R y ′ * R x ′ * V midx
  • V inny ⁇ b R y ′ * V inny
  • Ry ', Rx', and Rz ' correspond to the transpose of Ry, Rx, and Rz, respectively.
  • Ry, Rx, and Rz are the joint angle coordinate system around the Y axis (pitch axis), X axis (roll axis), and Z axis, respectively.
  • Yaw axis rotation matrix to the reference coordinate system.
  • Ry, Rx, Rz can be as follows:
  • the reference coordinate system is a coordinate system with a joint angle of 0, and A is a conversion angle of the joint angle coordinate system to the reference coordinate system.
  • step S21 the calculation formula of the expected body angular velocity W b is as follows:
  • W b R jb * W j ;
  • R jb is the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, as shown below:
  • inn_joint_ang_rad is the joint angle of the inner frame
  • mid_joint_ang_rad is the joint angle of the middle frame
  • the expected body angular velocity is converted into the expected Euler angular velocity.
  • inn_euler_ang_rad is the Euler angle of the inner frame
  • mid_euler_ang_rad is the Euler angle of the middle frame
  • the Euler angle of the inner frame and the Euler angle of the middle frame are the expected Euler angles of the gimbal 100 when the last closed loop, that is, the end of the last closed loop Shi Yuntai's real-time attitude.
  • the desired joint angular velocity can be converted into the Euler angular velocity via the gimbal body coordinate system.
  • the processor 20 is further configured to: according to the conversion relationship between the desired joint angular velocity, the PTZ joint angular coordinate system and the PTZ body coordinate system, the desired joint The angular velocity is converted into the expected body angular velocity; according to the conversion relationship between the expected body angular velocity, the gimbal body coordinate system, and the Euler coordinate system, the expected body angular velocity is converted into the desired Euler angular velocity.
  • steps S21 and S22 can be implemented by the processor 20.
  • the joint angle of the middle frame is 40 degrees
  • the joint angle of the inner frame is 40 degrees
  • the Euler angle of the inner frame is 10
  • the Euler angle of the middle frame is 0,
  • the expected joint angular velocity is [0 , 0,1].
  • the Euler angular velocity of the PTZ 100 is the joint angular velocity [0,0,1] by default.
  • the Euler angular velocity of the gimbal is [-0.3830, 0.6428, 0.6634].
  • the desired attitude of the pan / tilt head 100 may be determined according to the expected Euler angular velocity and the current attitude of the pan / tilt head 100. Assuming the movement time of the gimbal 100 is t, the expected attitude can be as follows:
  • tar_euler_roll (t) is the attitude corresponding to the roll axis in the desired attitude
  • tar_euler_pitch (t) is the component corresponding to the pitch axis in the desired attitude
  • tar_euler_yaw (t) is the component corresponding to the yaw axis in the desired attitude
  • Wx is the corresponding horizontal axis Roller expected Euler angular velocity
  • Wy is the expected Euler angular velocity corresponding to the pitch axis
  • Wz is the expected Euler angular velocity corresponding to the yaw axis
  • tar_euler_roll_init is the Euler angle corresponding to the roll axis in the current attitude
  • tar_euler_pitch_init is the current attitude
  • tar_euler_yaw_init is the Euler angle corresponding to the yaw axis in the current attitude.
  • the desired attitude of the gimbal 100 at any time that is, the desired joint angle corresponding to each axis arm in the gimbal 100 can be learned.
  • the desired posture obtained is actually the desired joint angle corresponding to the desired joint angular velocity.
  • the relationship between each axis arm in the gimbal 100 and the base of the gimbal 100 can be kept relatively stable.
  • a gimbal body coordinate can convert the expected joint angular velocity into the expected Euler angular velocity, and determine the desired attitude of the gimbal in combination with the current attitude of the gimbal and the expected Euler angular velocity.
  • the expected joint angular velocity is transformed by the coordinate system of the gimbal body, taking into account the joint space planning and the movement of the base, which can ensure that each axis arm in the gimbal can move to the desired level simultaneously
  • the attitude that is, the positional relationship of each axis arm in the head relative to the base remains relatively fixed.
  • the movable platform is a mobile trolley 1000
  • the gimbal 100 is a two-axis gimbal (taking rotation around the yaw axis and pitch axis as an example).
  • the gimbal 100 may include a yaw axis shaft arm 142 and The yaw axis motor 122, the pitch axis arm 146, and the pitch axis motor 126, and the load 30 is the shooting device 31.
  • the user can control the movement of the mobile cart 1000 and the pan / tilt 100 through a remote controller, for example, control the mobile cart 1000 to shoot on a horizontal plane.
  • the moving dolly 1000 when the moving dolly 1000 is tilted, for example, the moving dolly 1000 is moving on an inclined plane, and the pitch axis shaft arm 146 in the gimbal 100 is in the stabilization mode, if the user only controls the gimbal 100 to rotate about the yaw axis, then The control of the gimbal 100 is to use Euler angle control.
  • the rotation of the yaw axis arm 142 will cause the pitch axis arm 146 in the stabilization mode to rotate, but the pitch axis axis arm 146 will rotate around the Z axis of the world coordinate system.
  • the shooting direction of the shooting device 31 is still parallel to the horizontal direction, that is, the bullets fired by the shooting device 31 are still fired in the horizontal direction, instead of being fired by the user in a direction parallel to the inclined plane.
  • the hitting accuracy of the shooting device 31 will be low.
  • the pitch axis arm 146 when the yaw axis arm 142 is controlled as described above, since the joint angular velocity is expected to be converted via the PTZ body coordinate system, the pitch axis arm 146 will not rotate around the Z axis of the world coordinate system, and It rotates around the gimbal body and also around the Z axis of the vehicle body 200 (ie, the base of the gimbal 100). In this way, even if the mobile cart 1000 is tilted, the tilting axis arm 146 will also be tilted with the mobile cart 1000 at the same time, which is beneficial for the shooting device 31 to align with competitors on the slope.
  • the user wants to change the attitude of the shooting device 31 to the direction parallel to the inclined plane by directly inputting the Euler angular velocity and needs to control the left and right back and forth firing, the user needs to input the yaw axis axis arm 142 and the pitch axis axis arm at the same time.
  • the Euler angular speed of 146 is relatively complicated to operate, and it is not necessarily able to accurately control the pitch axis shaft arm 146, so that the attitude of the shooting device 31 is changed to a direction parallel to the inclined plane.
  • the user can only input the joint angular velocity for one axis (for example, the yaw axis), and the shooting direction of the shooting device 31 can be parallel to the slope surface and can be swung back and forth.
  • the operation is simple and easy to control.
  • the head 100 is a handheld head.
  • the head 100 may include a yaw axis arm 142 and a yaw axis motor 122, a roll axis arm 146 and a roll axis motor 126, and a pitch axis axis.
  • the arm 146 and the pitch axis motor 126, and the load 30 is the imaging device 32.
  • the user can capture static sensing data (such as pictures) or dynamic sensing data (such as videos) through the imaging device 32.
  • a desired motion path for example, the shooting path is that the imaging device 32 shoots first toward the ground and then shoots toward the sky
  • the angle of the handle's tilt is different. If the angle of the handle is different, if you continue to use the original attitude angle mode (that is, the mode controlled by directly inputting the desired Euler angle or the desired Euler angle speed), the Euler angle that can be achieved by the corresponding arm of the gimbal 100 It can be different.
  • the handle when the handle is tilted by 40 degrees and the handle is tilted by 60 degrees, if the same Euler angle or Euler angular speed that is directly input is used to control, the Euler reachable by the roll axis arm 144 in the gimbal 100 The angles are different, and even the expected Euler angle input by the user cannot be reached, so that the same video effect cannot be guaranteed in different usage scenarios.
  • a desired posture corresponding to the desired joint angle can be determined, that is, when the gimbal 100 moves to the desired posture, the gimbal 100 moves to the desired joint angular velocity.
  • Corresponding position of the desired joint angle is the same, the corresponding axis arm in the gimbal 100 can be controlled to the desired joint angle, and the cloud cannot be realized due to the different tilting angle of the handheld gimbal.
  • Expected control of the corresponding arm in the stage 100 is
  • the purpose of moving the imaging device 32 to the desired joint angle can be used to achieve the same shooting effect in different scenes.
  • control method further includes the following steps:
  • the processor 20 is further configured to control the PTZ 100 to rotate to a desired attitude according to a desired Euler angular velocity.
  • step S40 may be implemented by the processor 20.
  • the current attitude of the gimbal 100 is obtained to obtain the current Euler angle (yaw angle, roll angle, and pitch angle), and the expected Euler angle velocity is superimposed on the current Euler angle to obtain the desired Euler angle, that is The desired attitude is controlled to rotate the gimbal 100 to a desired Euler angle, thereby rotating the load 30 to a desired attitude.
  • the current attitude can be represented by Euler angles.
  • the firing direction of the current shooting device 31 is parallel to the horizontal plane, and then the expected Euler angular velocity is superimposed on the current Euler angle. Pull the angle to get the desired Euler angle.
  • the desired Euler angle can be used to indicate the desired attitude.
  • the desired attitude is such that the firing direction of the shooting device 31 is parallel to the inclined plane.
  • the gimbal 100 is controlled to rotate to the desired angle according to the closed-loop control method. Attitude, the shooting device 31 can fire a bullet in a direction parallel to the slope surface.
  • the PTZ 100 can also be controlled to rotate to the desired posture according to step S40, so that the imaging device 32 can take a video during the desired posture or move to the desired posture.
  • the speed is uniform
  • the joints are not dependent on the joint angle during the rotation. Dependence of angular accuracy is low, and makes the captured video picture smooth and smooth even more uniform.
  • it can be ensured that each axis arm moves to a specified position in the joint space during the movement time, that is, the desired joint angle position, without caring whether the base of the pan / tilt 100 is inclined.
  • step S40 controlling the pan / tilt head 100 to rotate to a desired posture according to the desired Euler angular velocity, including the following sub-steps:
  • the PTZ 100 is controlled to rotate to a desired attitude according to a desired Euler angular velocity.
  • the processor 20 is further configured to: when the preset shooting trigger event occurs, control the pan / tilt head 100 to rotate to a desired attitude according to a desired Euler angular velocity.
  • step S41 can be implemented by the processor 20.
  • the pan / tilt head 100 may be equipped with an imaging device 32. After determining the desired pose of the pan / tilt head 100 according to the current pose of the pan / tilt head 100 and the desired Euler angle, the pan / tilt head 100 may not be controlled to rotate to the desired pose immediately. That is, after determining the desired attitude of the PTZ 100, the user can first keep the current attitude of the PTZ 100 unchanged, and then pre-arrange the shooting scene or allow the person to pose the action, and then trigger it by a preset shooting trigger event The pan / tilt 100 moves to a desired posture, and during the process of the pan / tilt 100 to a desired posture, the imaging device 32 simultaneously performs a preset shooting action.
  • the shooting trigger event may be a user inputting a shooting start instruction, such as pressing a shooting button on the PTZ 100, clicking on the screen of the PTZ 100 to start shooting, issuing a predetermined shooting voice instruction, or triggering on a control terminal of the PTZ 100
  • the imaging device on the gimbal 100 performs shooting and the like.
  • the load 30 may also include an imaging device, that is, use the mobile cart 1000 to capture images and / or videos.
  • step S10 obtaining the expected joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system includes the following sub-steps:
  • S11 Receive input information for controlling the rotation speed of the PTZ 100;
  • the processor 20 is further configured to: receive input information for controlling the rotation speed of the PTZ 100; The expected joint angular velocity in the joint angular coordinate system.
  • steps S11 and S12 can be implemented by the processor 20.
  • the user can control the rotation speed of the PTZ 100.
  • the desired joint angular velocity of the PTZ 100 can be determined.
  • the input information may be input by a user at various control terminals that communicate with the PTZ 100.
  • the control terminal includes a remote controller, a mobile phone, an iPad, and a computer.
  • the user input mode may be a joystick operation of the remote controller, a display input device of the remote controller or the PTZ 100, a mobile phone interface, or a computer interface operation.
  • Each type of input information corresponds to a different processing method to obtain the desired joint angular velocity.
  • the input information includes various types, such as a joystick operation lever amount, a desired joint angle, a desired motion path, and the like.
  • the input information includes the desired joint angle.
  • the desired joint angular velocity of the PTZ 100 in the PTZ joint angle coordinate system is determined, including the following sub-steps:
  • the input information includes a desired joint angle
  • the processor 20 is further configured to determine whether the PTZ 100 is in accordance with the desired joint angle, the current posture, and the preset motion time.
  • step S121 may be implemented by the processor 20.
  • the desired joint angle may be a single input by the user. It can be understood that after the current pose of the PTZ 100 is obtained, the current joint angle of the PTZ 100 can be obtained.
  • the imaging device 32 performs shooting according to a desired movement path, and the exercise time t may be a shooting duration set by a user. For example, if the input desired joint angle is directly to the right of the current screen, and the preset movement time is 10 seconds as an example, the desired motion of the PTZ 100 is to rotate from the current joint angle to the current picture within 10 seconds. Directly to the right, the PTZ 100 forms a shooting path of the imaging device 32 during the movement.
  • the pan / tilt head may enter the preset shooting mode by default. After the shooting is completed, the pan / tilt head 100 may exit the preset.
  • the shooting mode retains the original stabilization mode or the following mode, or the PTZ 100 can remain in the preset shooting mode, which is not specifically limited here.
  • the desired joint angle includes a plurality of, and in step S121, the PTZ 100 in the PTZ joint angle coordinate system is determined according to the desired joint angle, the current posture, and the preset movement time.
  • Expected joint angular velocity including the following substeps:
  • S1211 Determine the desired joint angular velocity of the PTZ 100 in the PTZ joint angle coordinate system corresponding to each desired motion path according to the multiple desired joint angles, the current posture, and the preset motion time. Each desired motion path is based on the multiple desired joints. The angle and current attitude are determined.
  • the desired joint angle includes a plurality of points
  • the processor 20 is further configured to determine the gimbal according to the plurality of desired joint angles, a current posture, and a preset motion time.
  • 100 corresponds to the desired joint angular velocity of each desired motion path in the gimbal joint angle coordinate system, and each desired motion path is determined according to a plurality of desired joint angles and the current posture.
  • step S1211 can be implemented by the processor 20.
  • the desired joint angle may be multiple values input by the user at a single time, or multiple values input by the user multiple times.
  • the PTZ 100 is controlled to move according to the plurality of desired joint angles, and the PTZ 100 can move according to a complete desired motion path.
  • the posture corresponding to the joint angle is expected to be W1, W2, W3, W4, and W5
  • the first path may be the path between W1 and W2, and the second path is between W2 and W3.
  • the third path is the path between W3 and W4, and the fourth path is the path between W4 and W5, so that at least one desired motion path (represented by the curve Q) can be formed.
  • the user when the imaging device 32 is provided on the pan / tilt head 100, the user can set various paths according to the shooting requirements, so that the imaging device 32 on the pan / tilt 100 can move along more complicated paths at one time, and simultaneously shoot Pictures with better continuity, users can produce more interesting shooting effects by inputting multiple different desired joint angles, such as shooting effects that turn around the world.
  • the input information may include a desired motion path in addition to the desired joint angle.
  • the input information includes a desired motion path.
  • determining a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system includes the following sub-steps:
  • S123 Determine a desired joint angular velocity of the gimbal 100 in the gimbal joint angle coordinate system according to the desired joint angle, the current posture, and the preset movement time.
  • the input information includes a desired motion path
  • the processor 20 is further configured to determine the desired joint angle of the PTZ 100 according to the desired motion path;
  • the current attitude and the preset movement time determine the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system.
  • steps S122 and S123 can be implemented by the processor 20.
  • one or more desired joint angles may be determined according to a desired motion path.
  • the desired motion path may be directly a curve Q representing the motion path of the imaging device 32, and the curve Q may be input by a user in the PTZ 100 or the control terminal of the PTZ 100, or may be obtained from the PTZ Pre-stored expected motion paths within 100.
  • the state of each point in the desired motion path can be represented by the desired joint angle of the PTZ 100, but if the desired motion path includes multiple sub-paths, the expectations corresponding to the head and tail points in the multiple sub-paths can be determined The joint angle is sufficient.
  • the desired motion path may be determined according to the attitude change of the gimbal 100 when the gimbal 100 is manually moved.
  • the movement track of the imaging device 32 when the user moves the pan / tilt 100 can be recorded, and the movement track can be saved and used as a desired movement path. In this way, the user can input the desired motion path more intuitively, and the operation is simple.
  • the imaging device 32 is mounted on the pan / tilt 100, and the control method includes the following steps:
  • the imaging device 32 is mounted on the pan / tilt head 100, and the processor 20 is further configured to output the imaging device 32 during the manual movement of the pan / tilt head 100. Preview screen.
  • step S50 can be implemented by the processor 20.
  • the imaging device 32 can continue to shoot while the pan / tilt 100 is manually moved, and the user can preview whether the video captured by the path can meet the requirements through the output preview screen, and can further choose whether to use the The throbbing path serves as the desired motion path.
  • the input information may also be information input in history.
  • the desired joint angular velocity of the gimbal 100 in the gimbal joint angle coordinate system is determined according to the input information, including the following sub-steps:
  • the processor 20 is further configured to: determine a target speed mode that matches the input information among multiple historical speed modes; and determine the PTZ according to the target speed mode.
  • steps S124 and S125 can be implemented by the processor 20.
  • the desired joint angular velocity when the desired joint angular velocity is determined according to the input information of the user, after the desired joint angular velocity is determined, the desired joint angular velocity can be recorded. Through continuous accumulation, multiple desired joint angular velocities form multiple historical velocity patterns. And formed multiple historical speed modes. Therefore, when controlling the PTZ 100, the PTZ 100 can output multiple historical speed modes, and the user can meet the target speed mode required by the current control among the multiple historical speed modes. The PTZ 100 can be selected by the user The target speed mode of the PTZ camera determines the desired joint angular velocity of the gimbal 100 in the joint angular coordinate system.
  • the PTZ 100 can output multiple historical speed modes to the control terminal of the PTZ 100 and display them on the display screen of the control terminal, and then the user selects the target speed mode on the control terminal; or, the PTZ 100 can also Multiple historical speed modes are displayed on the display of the device where the PTZ 100 is located.
  • the display can be set on the handle, and the user can use the display on the handle.
  • Select a target speed mode; or, the PTZ 100 may also be provided with a speaker, and a plurality of historical speed modes are output by the speaker, and then the user selects the target speed mode.
  • the manner of interaction between the user and the control terminal and / or the PTZ 100 may include, but is not limited to, touch, somatosensory, and voice.
  • the pan-tilt head 100 shown in FIG. 3 is taken as an example for description.
  • the pan-tilt head 100 is provided with an imaging device 32.
  • the user uses the PTZ 100 to shoot, the user can input the desired joint angle to control the PTZ 100 to move to the desired joint angle for shooting.
  • the desired joint angle When the user enters the desired joint angle, according to the shooting time of the PTZ 100 and the cloud
  • the current joint angle and desired joint angle of the stage 100 can convert the corresponding desired joint angular velocity, and the speed pattern can be stored.
  • step S124 may be triggered, thereby matching a target speed pattern corresponding to the current desired joint angle among multiple historical speed modes.
  • the target speed mode includes the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system. Using the desired Euler angular velocity obtained by the conversion of the desired joint angular velocity to control the motion of the gimbal 100 can make the imaging device 32 in different scenes. , The PTZ 100 follows the same desired motion path to shoot.
  • the input information may also be a joystick operation amount. Specifically, the input information includes the amount of joystick operation.
  • the desired joint angular velocity of the PTZ 100 in the PTZ joint angular coordinate system is determined, including the following sub-steps:
  • S126 Determine a desired joint angular velocity of the pan / tilt head 100 in the joint angle coordinate system of the pan / tilt according to the correspondence between the amount of the joystick control lever and the preset joystick control lever amount and the joint angular velocity.
  • the input information includes a joystick operation lever amount
  • the processor 20 is further configured to: according to the joystick operation lever amount and the preset joystick operation lever amount and joint The correspondence between the angular velocities determines the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system.
  • step S126 may be implemented by the processor 20.
  • the amount of the joystick used to control the shaft arm is converted into the input values Raw_y and Raw_z of the two channels.
  • the input value Raw_y is the amount of joystick corresponding to the pitch axis arm 146
  • the input value Raw_z is the amount of joystick corresponding to the yaw axis arm 142.
  • the user can perform a joystick operation only on the yaw axis axis arm 142 to achieve the corresponding attitude control of the pitch axis axis arm 146, especially on the base of the pan / tilt 100 When tilted.
  • the input values Raw_y and Raw_z are subjected to a deadband limitation.
  • the dead band is limited to the minimum value of the input value. Taking the minimum input value of 1 as an example, for input values less than 1, the corresponding expected joint angular velocity is uniformly given as 0. For example, if the input value is 0.5, the desired joint angular velocity is 0, so as to prevent the joystick from triggering the step of acquiring the desired joint angular velocity of the gimbal 100 due to a small vibration input by a user.
  • step S10 the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system is obtained, including the following sub-steps:
  • step S20 the desired joint angular velocity is converted into the desired European angular velocity according to the conversion relationship between the desired joint angular velocity, the PTZ joint angular coordinate system and the PTZ body coordinate system, and the conversion relationship between the PTZ body coordinate system and the Euler coordinate system.
  • the control method further includes the following steps:
  • S60 It is detected whether the second axis arm in the gimbal 100 is in the stabilization mode, and the first axis arm is used to drive the second axis arm to rotate;
  • step S20 is triggered.
  • the processor 20 is further configured to: obtain a desired joint angular velocity of the first axis arm in the gimbal 100 in a gimbal joint angular coordinate system; and detect a cloud Whether the second axis arm in the stage 100 is in the stabilization mode, the first axis arm is used to drive the second axis arm to rotate; if so, step S20 is triggered.
  • step S60 can be implemented by the processor 20.
  • the first shaft arm is a shaft arm to be controlled
  • the second shaft arm is a shaft arm that is driven when the first shaft arm rotates.
  • the first shaft arm is an outer frame as shown in FIG. 4, and the second shaft arm is a second shaft arm.
  • the first axis arm includes a yaw axis axis arm 142
  • the second axis arm includes a pitch axis axis arm 146 and / or a roll axis axis arm 144; for example, the first axis arm It is the middle frame as shown in FIG. 4, and the second axis arm is the inner frame.
  • the PTZ 100 may include two control modes, a stabilization mode and a follow mode.
  • the stabilization mode the Euler angle of the corresponding arm in the gimbal 100 is locked.
  • the gimbal 100 can follow the target object to rotate.
  • the second axis arm in the gimbal 100 is in the stabilization mode, if the base of the gimbal 100 is tilted, the second axis arm is still around the world coordinate system while the user controls the rotation of the first axis arm.
  • the Z axis rotates, which is not good in a hit confrontation scene such as a moving cart 1000.
  • step S20 it can be further detected whether the second shaft arm is in the stabilization mode, and if so, step S20 can be triggered. If the second axis arm is not in the stabilization mode, such as in the following mode, the joint angle of the second axis arm has been locked at this time. When the trolley 1000 is moved up the slope, the rotation of the yaw axis axis arm 142 will not cause the pitch The pivot arm 146 rotates around the pitch axis without triggering step S20.
  • the pitch axis arm 146 when the pitch axis arm 146 is in the stabilization mode, that is, in the mode of locking the Euler angle, whether the mobile trolley 1000 moves on the horizontal plane or on the inclined plane, if the user moves If only the Euler angular velocity of the yaw axis is input, the Euler angle of the pitch axis arm 146 (ie, the Euler angle of the shooting device 31) will always be unchanged, for example, it will always be horizontal. This obviously does not meet the actual needs of the shooting target of the mobile trolley 1000 when going uphill (such as hitting competitors in the competition).
  • the user can enter the Euler angular velocity corresponding to the yaw axis and the Euler angular velocity corresponding to the pitch axis at the same time. So that the shooting device 31 shoots in a direction parallel to the inclined plane. However, the user needs to input two Euler angular velocities at the same time, and the operation is complicated.
  • the user can input the joint angular velocity of the yaw axis axis arm 142 and obtain the desired Euler angular velocity of the gimbal 100 through the above-mentioned conversion of S20.
  • the gimbal 100 is based on When the desired Euler angular velocity moves, the head 100 can rotate around the Z axis of the base of the head 100, so that the shooting direction of the shooting device 31 can be parallel to the inclined plane.
  • the control method further includes the following steps:
  • the processor 20 is further configured to: detect whether the base of the gimbal 100 is tilted; if yes, trigger based on the desired joint angular velocity and gimbal joint angle coordinates
  • step S70 can be implemented by the processor 20.
  • step S70 if it is detected that the base of the gimbal 100 is not tilted, it is not necessary to trigger step S20. If it is detected that the base of the gimbal 100 is tilted, step S20 is triggered.
  • the corresponding control of any of the axis arms in the head 100 has a small influence on the attitude of the other axis arms, and the Euler angle corresponding to any of the axis arms is unique. Therefore, when the base of the gimbal 100 is not tilted, the desired joint angular velocity may not be converted via the gimbal body coordinate system, and the gimbal 100 may be directly controlled using the desired joint angular velocity, or according to other input information of the user.
  • the PTZ 100 controls to reduce the consumption of unnecessary computing resources.
  • step S20 Taking the load 30 as the imaging device 32 as an example, if it is detected that the base of the gimbal 100 (in this case, the handle of the gimbal is not tilted), it is considered that the joint angle coordinate system on the handle is still coincident with the world coordinate system There is no need to trigger step S20.
  • FIG. 17 and FIG. 18 can be correspondingly combined, that is, whether the base of the gimbal 100 is tilted and whether the second axis arm in the gimbal 100 is in a stabilization mode are detected simultaneously. If both occur at the same time, the desired joint angle will be transformed via the gimbal body coordinate system, so as to reduce the waste of computing resources if the transformation is unnecessary.
  • step S70 detects whether the base of the PTZ 100 is tilted, including the following sub-steps:
  • the processor 20 is further configured to: obtain a posture parameter of the base of the gimbal 100; and determine the base of the gimbal 100 relative to the horizontal plane according to the posture parameter. Whether the included angle is greater than a preset angle threshold; if so, determine that the base is tilted.
  • steps S71 and S72 can be implemented by the processor 20.
  • the attitude parameters of the base of the gimbal 100 generally have a large difference, which can be reflected in the difference between the angle between the base of the gimbal 100 and the horizontal plane. Therefore, whether the tilt of the base can be determined by determining whether the included angle of the base of the head 100 with respect to the horizontal plane is greater than a preset angle threshold.
  • the preset angle threshold may be determined in advance based on experimental statistical data, or may be input by a user.
  • the preset angle threshold may be 0.
  • the angle of the base of the PTZ 100 with respect to the horizontal plane is greater than 0 degrees, it is determined that the base is tilted, and when the angle of the base of the PTZ 100 with respect to the horizontal plane is equal to At 0 degrees, it is considered that the base of the head 100 is not tilted.
  • the base of the pan / tilt head 100 is tilted.
  • the pan / tilt head 100 is a pan / tilt mounted on a moving cart 1000 shown in FIG. 2, such as moving
  • the driving device of the mobile trolley 1000 such as a wheel pressing on the small gravel
  • the base of the gimbal 100 may tilt.
  • the included angle of the base with respect to the horizontal plane may be small, and has little influence on the attitude control of the gimbal 100. Therefore, in order to avoid misunderstanding that the base of the PTZ 100 is tilted, the preset angle threshold may be a threshold greater than 0, and the specific numerical value may be set as required.
  • Step S20 Taking the load 30 as the shooting device 31 as an example, assuming that the preset angle threshold is 5 degrees, when the angle between the base of the gimbal 100 and the horizontal plane is less than 10 degrees, it is considered that the trolley is still moving in a relatively horizontal plane without requiring Step S20 is triggered. Taking the load 30 as the imaging device 32 as an example, when the angle between the base of the gimbal 100 and the horizontal plane is less than 5 degrees, it is considered that the handle of the hand-held gimbal is not tilted without triggering step S20.
  • determining whether the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than a preset angle threshold in step S72 includes:
  • S721 Determine whether the included angle of the base of the PTZ 100 with respect to the horizontal plane within a preset period is greater than a preset angle threshold.
  • the processor 20 is further configured to determine whether the included angle of the base of the PTZ 100 with respect to the horizontal plane within a preset time period is greater than a preset angle threshold.
  • step S721 can be implemented by the processor 20.
  • the included angle of the determined base of the PTZ 100 with respect to the horizontal plane is generally different, but the base of the PTZ 100 is tilted by mistake
  • the duration is generally shorter.
  • the preset duration may be stored in the PTZ 100 in advance or determined by user input. In one embodiment, the preset duration is 1 second, and the determination period of the attitude parameter of the base of the gimbal 100 is 0.001 second.
  • the base of the gimbal 100 is determined 1000 times relative to the horizontal plane within 1 second, If the included angles are all larger than the preset angle threshold, the base of the PTZ 100 is considered to be inclined. If one of them is determined that the included angle of the base of the PTZ 100 with respect to the horizontal plane is not larger than the preset angle threshold, for example, the 1000th time If the preset conditions are met, it is considered that the base of the gimbal 100 is tilted by mistake.
  • the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than a preset angle threshold within a preset time period, it can be considered that the base of the PTZ 100 is inclined.
  • step S20 when it is detected that the base of the gimbal 100 is tilted, it can be considered that the moving cart 1000 moves on the inclined surface, and at this time, step S20 needs to be triggered. If the included angle of the base of the PTZ 100 with respect to the horizontal plane is smaller than the preset angle threshold within a preset period, or if the included angle is continuously smaller than the preset angle threshold, step S20 is not triggered.
  • the angle between the base of the pan / tilt head 100 and the horizontal plane may be larger than a predetermined value in a short time.
  • Set the angle threshold Therefore, by setting the preset duration, it can be further accurately judged whether the base of the PTZ 100 is in a tilt situation that needs to trigger step S20.
  • the attitude parameters of the base of the PTZ 100 can be determined in the following two ways:
  • a first attitude sensor is provided on the gimbal 100.
  • the current attitude of the PTZ 100 is acquired by a first attitude sensor.
  • step S71 obtains the attitude parameters of the base of the PTZ 100, including the following sub-steps:
  • the processor 20 is further configured to determine the attitude parameters of the base of the gimbal 100 according to the current attitude of the gimbal 100.
  • step S711 may be implemented by the processor 20.
  • the first attitude sensor is set on the gimbal 100 and acquires the current attitude of the gimbal 100 in real time.
  • the first attitude sensor may be an Inertial Measurement Unit (IMU).
  • the IMU may include three single-axis accelerometers and three single-axis gyroscopes. Using the IMU to measure the angular velocity and acceleration of the gimbal 100 in the three-dimensional space, the current attitude of the gimbal 100 can be calculated by integrating.
  • the relationship between the PTZ 100 and the base of the PTZ 100 can be used to obtain the attitude parameters of the PTZ 100's base and further determine whether the PTZ 100's base has occurred. tilt.
  • a second attitude sensor is provided on the base of the PTZ 100.
  • the attitude parameter of the base of the gimbal 100 is acquired by a second attitude sensor.
  • the second attitude sensor can directly detect the attitude parameter of the base of the PTZ 100 to further determine whether the base of the PTZ 100 is tilted.
  • the second attitude sensor may be an accelerometer.
  • control method before determining the desired attitude of the PTZ 100 according to the current attitude of the PTZ 100 and the expected Euler angular velocity, that is, before step S30, the control method further includes the following steps:
  • the speed corresponding to the third axis arm in the expected Euler angular velocity is controlled to be a preset value, and the head 100 is not provided with a third axis arm.
  • the processor 20 is further configured to control the speed of the corresponding third axis arm of the desired Euler angular velocity to a preset value, and the gimbal 100 is not provided with a third axis arm. .
  • step S80 may be implemented by the processor 20.
  • the desired Euler angular velocity may correspond to three axis arms (corresponding to the yaw axis, the pitch axis, and the roll axis).
  • the speed of the third axis arm can be set to a preset value to prevent the motor torque output from being saturated and affect the control of other axis arms.
  • the preset value may be, for example, 0.
  • the Euler angular velocity of the third axis arm in the pan / tilt head 100 can also be controlled to a preset value. That is, this embodiment can be applied to a handheld gimbal.
  • the pan / tilt head 100 in the embodiment of the present invention may be a pan / tilt with any configuration, and may also be loaded with any load 30, which is applicable to a situation where the posture of the pan / tilt head 100 cannot be effectively controlled due to the tilt of the base of the pan / tilt head 100.
  • a computer-readable storage medium 300 includes a computer program that can be executed by the processor 20 to complete the control method of any one of the foregoing embodiments.
  • the computer program may be executed by the processor 20 to complete the control method described in the following steps:
  • the computer program can also be executed by the processor 20 to complete the control method described in the following steps:
  • first and second are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the technical features indicated. quantity. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "a plurality" is two or more, unless it is specifically and specifically defined otherwise.
  • the terms “installation”, “connected”, and “connected” should be understood in a broad sense unless explicitly stated and limited otherwise.
  • they may be fixed connections, or Removable connection or integral connection; can be mechanical connection, electrical connection or can communicate with each other; can be directly connected, or indirectly connected through an intermediate medium, can be the internal connection of two components or two components Interaction.
  • the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific situations.
  • Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process
  • the scope of the preferred embodiments of the present invention includes additional implementations in which the functions may be performed out of the order shown or discussed, including performing the functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention pertain.
  • Logic and / or steps represented in a flowchart or otherwise described herein, for example, a sequenced list of executable instructions that may be considered to implement a logical function, may be embodied in any computer-readable medium, For use by instruction execution systems, devices, or devices (such as computer-based systems, systems that include processing modules, or other systems that can take instructions from and execute instructions) Or equipment.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
  • computer-readable media include the following: electrical connections (control methods) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
  • each part of the embodiments of the present invention may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application-specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Studio Devices (AREA)

Abstract

A cradle head (100) control method, a cradle head (100), a movable platform, and a readable storage medium (300). The control method comprises: obtaining a desired joint angular velocity of a cradle head (100) in a cradle head joint angular coordinate system (S10); according to the conversion relationship between the desired joint angular velocity, the cradle head joint angular coordinate system, and a cradle head body coordinate system, and the conversion relationship between the cradle head body coordinate system and a Euler coordinate system, converting the desired joint angular velocity into a desired Euler angular velocity (S20); according to the current state of the cradle head (100) and the desired Euler angular velocity, determining the desired state of the cradle head (100) (S30).

Description

云台的控制方法、云台、可移动平台及可读存储介质Control method of PTZ, PTZ, movable platform and readable storage medium 技术领域Technical field
本发明涉及云台控制技术领域,特别涉及一种云台的控制方法、云台、计算机可移动平台及可读存储介质。The invention relates to the technical field of PTZ control, in particular to a control method of the PTZ, a PTZ, a computer movable platform, and a readable storage medium.
背景技术Background technique
目前,云台由于其增稳性能得到了广泛的应用。例如,云台上可以搭载有相机,而相机的抖动通常会影响拍摄的图像或视频,为了提高相机的防抖能力,可以将相机设置在云台上,利用云台的调节能力来保持相机的稳定。At present, the PTZ has been widely used due to its stabilizing performance. For example, a camera can be mounted on the gimbal, and the camera shake usually affects the captured image or video. In order to improve the anti-shake ability of the camera, you can set the camera on the gimbal and use the adjustment ability of the gimbal to maintain the camera's stable.
在实际应用中,云台不仅可以实现增稳,也可以实现云台上搭载的负载的角度调节。例如,云台上可以搭载有相机,可以通过调节云台的角度来实现相机的拍摄角度的控制。In practical applications, the PTZ can not only achieve stabilization, but also adjust the angle of the load on the PTZ. For example, a camera can be mounted on the gimbal, and the camera's shooting angle can be controlled by adjusting the angle of the gimbal.
在常规云台的控制过程中,一般为控制欧拉角速度来调控云台的姿态,以达到负载的姿态变化,即通过直接输入期望欧拉角速度以得到期望姿态。然而,在云台的某些状态下,例如云台的基座发生倾斜时,用户在控制云台时可能更关注云台中各个轴臂相对云台的基座的位置关系,但在云台的基座发生倾斜时,云台中各个轴臂之间的相对云台的基座的位置关系会发生变化,且相应轴臂的关节角发生变化,从而在利用直接输入的期望欧拉角速度对云台进行控制时,云台可能无法运动至由直接输入的期望欧拉角得到的期望姿态。In the conventional PTZ control process, the attitude of the PTZ is generally controlled to control the Euler angular velocity, so as to achieve a change in the attitude of the load, that is, the desired attitude is obtained by directly inputting the desired Euler angular velocity. However, in some states of the gimbal, such as when the base of the gimbal is tilted, the user may pay more attention to the positional relationship of each axis arm of the gimbal relative to the base of the gimbal when controlling the gimbal. When the base is tilted, the positional relationship between each axis arm in the gimbal relative to the base of the gimbal will change, and the joint angle of the corresponding arm will change. Therefore, the expected Euler angular velocity directly input to the gimbal will change. When controlling, the gimbal may not be able to move to the desired attitude obtained from the directly entered desired Euler angle.
发明内容Summary of the Invention
本发明实施方式提供一种云台的控制方法、云台、可移动平台及计算机可读存储介质。Embodiments of the present invention provide a control method for a PTZ, a PTZ, a movable platform, and a computer-readable storage medium.
本发明实施方式的云台的控制方法包括:获取所述云台在云台关节角坐标系中的期望关节角速度;依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度;依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。The method for controlling a gimbal according to an embodiment of the present invention includes: obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system; according to the desired joint angular velocity, the gimbal joint angular coordinate system, and coordinates of the gimbal body The conversion relationship between the system, the conversion relationship between the gimbal body coordinate system and the Euler coordinate system, converting the desired joint angular velocity to the desired Euler angular velocity; according to the current attitude of the gimbal and the expectation Euler angular velocity determines the desired attitude of the gimbal.
本发明实施方式的云台包括处理器,所述处理器用于:The pan / tilt according to the embodiment of the present invention includes a processor, and the processor is configured to:
获取所述云台在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system;
依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧 拉角速度;Convert the desired joint according to the desired joint angular velocity, the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system Conversion of angular velocity to desired Euler angular velocity;
依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。Determining a desired attitude of the pan / tilt according to the current attitude of the pan / tilt and the expected Euler angular velocity.
本发明实施方式的可移动平台包括本体及云台,所述云台设置在所述本体上,所述云台包括处理器,所述处理器用于:The movable platform according to the embodiment of the present invention includes a main body and a pan / tilt head, the pan / tilt head is disposed on the main body, the pan / tilt head includes a processor, and the processor is configured to:
获取所述云台在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system;
依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度;Convert the desired joint according to the desired joint angular velocity, the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system Conversion of angular velocity to desired Euler angular velocity;
依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。Determining a desired attitude of the pan / tilt according to the current attitude of the pan / tilt and the expected Euler angular velocity.
本发明实施方式的计算机可读存储介质,其上存储有计算机程序,所述计算机程序可被处理器执行以完成上述控制方法。A computer-readable storage medium according to an embodiment of the present invention stores a computer program thereon, and the computer program can be executed by a processor to complete the control method described above.
本发明实施方式的一种云台的控制方法、云台、可移动平台和计算机可读存储介质中,依据云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,可以将期望关节角速度转换为期望欧拉角速度,并结合云台的当前姿态、期望欧拉角速度来确定云台的期望姿态。如此,即使云台的基座发生倾斜,但将期望关节角速度经由云台本体坐标系的转换方式,综合考虑了关节空间的规划以及云台的基座的运动,可以保证云台中各个轴臂同时运动至期望姿态,即使得云台中各个轴臂相对基座的位置关系保持相对固定。According to a method for controlling a gimbal, a gimbal, a movable platform, and a computer-readable storage medium according to an embodiment of the present invention, according to a conversion relationship between a gimbal joint angle coordinate system and a gimbal body coordinate system, a gimbal body coordinate The conversion relationship between the system and the Euler coordinate system can convert the expected joint angular velocity into the expected Euler angular velocity, and determine the desired attitude of the gimbal in combination with the current attitude of the gimbal and the expected Euler angular velocity. In this way, even if the base of the gimbal is tilted, the expected joint angular velocity is transformed by the coordinate system of the gimbal body, taking into consideration the joint space planning and the movement of the base of the gimbal, which can ensure that each axis arm of the gimbal is simultaneously Moving to the desired posture, that is, the positional relationship of each axis arm in the head relative to the base remains relatively fixed.
本发明实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the embodiments of the present invention will be given in part in the following description, part of which will become apparent from the following description, or be learned through practice of the present invention.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本发明的上述和/或附加的方面和优点可以从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, wherein:
图1是本发明实施方式的云台的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a control method for a pan / tilt according to an embodiment of the present invention; FIG.
图2是本发明实施方式的可移动平台的结构示意图;2 is a schematic structural diagram of a movable platform according to an embodiment of the present invention;
图3和图4是本发明其他实施方式的云台的结构示意图;3 and 4 are schematic structural diagrams of a pan / tilt according to another embodiment of the present invention;
图5至图9是本发明某些实施方式的云台的控制方法的流程示意图;5 to 9 are schematic flowcharts of a control method for a pan / tilt according to some embodiments of the present invention;
图10是本发明某些实施方式的云台的控制方法的场景示意图;FIG. 10 is a schematic diagram of a control method of a pan / tilt according to some embodiments of the present invention; FIG.
图11是本发明某些实施方式的云台的控制方法的流程示意图;11 is a schematic flowchart of a control method for a pan / tilt according to some embodiments of the present invention;
图12是本发明某些实施方式的云台的控制方法的场景示意图;FIG. 12 is a schematic diagram of a control method of a pan / tilt according to some embodiments of the present invention; FIG.
图13至图22是本发明某些实施方式的云台的控制方法的流程示意图;和13 to 22 are schematic flowcharts of a control method of a pan / tilt head according to some embodiments of the present invention; and
图23是本发明某些实施方式的云台和计算机可读存储介质的连接示意图。FIG. 23 is a schematic diagram of a connection between a pan / tilt head and a computer-readable storage medium according to some embodiments of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施方式,实施方式的示例在附图中示出,其中,相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
请参阅图1至图3,本发明实施例提供一种云台100的控制方法。控制方法包括以下步骤:Please refer to FIG. 1 to FIG. 3, an embodiment of the present invention provides a control method of the PTZ 100. The control method includes the following steps:
S10,获取云台100在云台关节角坐标系中的期望关节角速度;S10. Obtain the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system;
S20,依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度;S20. Convert the expected joint angular velocity to the expected Euler according to the expected joint angular velocity, the conversion relationship between the PTZ joint angular coordinate system and the PTZ body coordinate system, and the conversion relationship between the PTZ body coordinate system and the Euler coordinate system. Angular velocity
S30,依据云台100的当前姿态及期望欧拉角速度,确定云台100的期望姿态。S30. Determine a desired attitude of the gimbal 100 according to the current attitude of the gimbal 100 and the expected Euler angular velocity.
请继续参阅图2和图3,本发明实施方式的云台100包括处理器20,处理器20用于:获取云台100在云台关节角坐标系中的期望关节角速度;依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度;依据云台100的当前姿态及期望欧拉角速度,确定云台100的期望姿态。Please continue to refer to FIG. 2 and FIG. 3. The gimbal 100 according to the embodiment of the present invention includes a processor 20. The processor 20 is configured to: obtain a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system; The conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system, convert the desired joint angular velocity to the desired Euler angular velocity; according to the 100 The current attitude and the expected Euler angular velocity determine the desired attitude of the gimbal 100.
也即是说,本发明实施方式的控制方法可以由本发明实施方式的云台100实现,其中,步骤S10、步骤S20及步骤S30可以由处理器20实现。That is to say, the control method according to the embodiment of the present invention can be implemented by the pan / tilt head 100 according to the embodiment of the present invention, where step S10, step S20, and step S30 can be implemented by the processor 20.
本发明实施例中,云台100可以为两轴云台,也可以为三轴云台。云台100可以为安装在可移动平台的本体上的云台100。可移动平台可以包括无人飞行器、机器人、或移动小车等。如图2所示,可移动平台可以为移动小车1000,包括车体200(即可移动平台的本体,也即视为云台100的基座),云台100设置在车体200上。如图3所示,云台100可以为手持云台,其中,手持云台的手柄视为云台100的基座。In the embodiment of the present invention, the head 100 can be a two-axis head, or a three-axis head. The pan / tilt head 100 may be a pan / tilt head 100 mounted on the body of the movable platform. The movable platform may include an unmanned aerial vehicle, a robot, or a mobile cart. As shown in FIG. 2, the movable platform may be a mobile cart 1000 including a vehicle body 200 (that is, the body of the mobile platform, which is also regarded as the base of the PTZ 100), and the PTZ 100 is disposed on the vehicle body 200. As shown in FIG. 3, the PTZ 100 may be a handheld PTZ, wherein the handle of the handheld PTZ is regarded as the base of the PTZ 100.
其中,云台100上可以搭载有负载30,负载30可以为成像装置32(如相机、摄录机、手机、平板电脑等)和/或射击装置31等,具体可以根据需要场景进行不同的配置。负载30的姿态可随云台100的姿态发生变化,并可以由云台100实现增稳。The gimbal 100 may be equipped with a load 30, and the load 30 may be an imaging device 32 (such as a camera, a camcorder, a mobile phone, a tablet computer, etc.) and / or a shooting device 31, etc., which can be configured differently according to the required scene. . The attitude of the load 30 may change with the attitude of the pan / tilt head 100, and the stabilization of the pan / tilt head 100 may be achieved.
可以理解,图2、图3中所示处理器的位置仅为示意性说明,并不进行限定,此处说明之后,在后面即不再重复限定。It can be understood that the positions of the processors shown in FIG. 2 and FIG. 3 are only schematic descriptions and are not limited. After the description here, the definitions are not repeated later.
请结合图4,本实施例以云台100为三轴云台为例进一步说明,该三轴云台(绕偏 航轴、横滚轴、俯仰轴转动)包括至少一个转轴结构10。每一个转轴结构10可包括转轴电机12及转轴轴臂14,对应偏航轴的转轴结构10可以包括偏航轴电机122和偏航轴轴臂142,对应横滚轴的转轴结构10可以包括横滚轴电机124和横滚轴轴臂144,对应俯仰轴的转轴结构10可以包括俯仰轴电机126和俯仰轴轴臂146。通过偏航轴电机122、横滚轴电机124和俯仰轴电机126对应控制相应轴臂绕偏航轴、横滚轴和/或俯仰轴转动,可以实现云台100的姿态控制。With reference to FIG. 4, this embodiment further uses a pan-tilt head 100 as a three-axis pan-tilt as an example for further description. The tri-axis pan / tilt (rotating about a yaw axis, a roll axis, and a pitch axis) includes at least one rotation axis structure 10. Each of the rotating shaft structures 10 may include a rotating shaft motor 12 and a rotating shaft arm 14. The rotating shaft structure 10 corresponding to the yaw axis may include a yaw shaft motor 122 and a yaw shaft arm 142. The rotating shaft structure 10 corresponding to the roll axis may include a horizontal axis. The roller motor 124 and the roll axis arm 144. The rotation shaft structure 10 corresponding to the pitch axis may include a pitch axis motor 126 and a pitch axis axis arm 146. The yaw axis motor 122, the roll axis motor 124, and the pitch axis motor 126 correspondingly control the corresponding axis arms to rotate about the yaw axis, the roll axis, and / or the pitch axis, so that the attitude control of the gimbal 100 can be achieved.
具体的,本实施例中,可以获取云台100在云台关节角坐标系中的期望关节角速度,该期望关节角速度为云台100中相应轴臂的控制速度,可以由用户直接输入,例如,输入的期望关节角速度为10度/秒,也可以为根据用户的输入操作进行相应的转换得到,还可以为预先设置。通过结合期望关节角速度以及相应的控制时长,可以确定云台100的预期需要控制的姿态。Specifically, in this embodiment, a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system can be obtained, and the desired joint angular velocity is a control speed of a corresponding axis arm in the gimbal 100, and can be directly input by a user, for example, The input desired joint angular velocity is 10 degrees / second, which can also be obtained by performing corresponding conversion according to the user's input operation, and can also be preset. By combining the desired joint angular velocity and the corresponding control duration, the expected attitude of the PTZ 100 to be controlled can be determined.
为了精准控制云台运动至期望姿态,在步骤S20中,请参阅图5,依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度,具体包括以下子步骤:In order to accurately control the movement of the gimbal to the desired attitude, in step S20, please refer to FIG. 5. According to the expected relationship between the angular velocity of the joint, the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body, the gimbal body coordinate system, and Pull the conversion relationship between the coordinate systems to convert the expected joint angular velocity to the expected Euler angular velocity, which specifically includes the following sub-steps:
S21,依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系,将期望关节角速度转换成期望本体角速度。S21: Convert the desired joint angular velocity to the desired body angular velocity according to the conversion relationship between the desired joint angular velocity, the gimbal joint angular coordinate system, and the gimbal body coordinate system.
以图4中所示的ZXY三轴云台100的构型为例。其中,假设Z为偏航轴,X为横滚轴,Y为俯仰轴,在该构型中,偏航轴轴臂142为外框,横滚轴轴臂144为中框,俯仰轴轴臂146为内框。偏航轴电机122用于驱动偏航轴轴臂142转动,以驱动横滚轴电机124和横滚轴轴臂144、俯仰轴电机126和俯仰轴轴臂146以及搭载在云台100上的负载30转动,横滚轴电机124用于驱动横滚轴轴臂144转动,以驱动俯仰轴电机126和俯仰轴轴臂146以及负载30转动,俯仰轴电机126用于驱动俯仰轴轴臂146转动,以驱动负载30转动。Take the configuration of the ZXY three-axis head 100 shown in FIG. 4 as an example. Among them, it is assumed that Z is a yaw axis, X is a roll axis, and Y is a pitch axis. In this configuration, the yaw axis arm 142 is an outer frame, the roll axis arm 144 is a middle frame, and the pitch axis axis arm 146 is the inner frame. The yaw axis motor 122 is used to drive the yaw axis axis arm 142 to rotate to drive the roll axis motor 124 and the roll axis axis arm 144, the pitch axis motor 126 and the pitch axis axis arm 146, and the load mounted on the gimbal 100 30 turns, the roll axis motor 124 is used to drive the roll axis arm 144 to rotate, to drive the pitch axis motor 126 and the pitch axis axis arm 146, and the load 30 is rotated, and the pitch axis motor 126 is used to drive the pitch axis axis arm 146 to rotate, Rotate by driving the load 30.
其中,在将期望关节角速度转换为期望欧拉角速度的过程中,云台关节角坐标系和云台本体坐标系之间的转换关系与云台100的构型相关,云台的构型不同,其转换关系不同。Among them, in the process of converting the expected joint angular velocity to the expected Euler angular velocity, the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body is related to the configuration of the gimbal 100, and the configuration of the gimbal is different. The conversion relationship is different.
本实施例中,偏航轴关节角的坐标轴的旋转轴Voutz为[0,0,1],横滚轴关节角的坐标轴的旋转轴Vmidx为[1,0,0],俯仰轴关节角的坐标轴的旋转轴Vinny为[0,1,0]。将Voutz、Vmidx、Vinny分别转换至云台本体坐标系:In this embodiment, the rotation axis Voutz of the coordinate axis of the yaw axis joint angle is [0, 0, 1], the rotation axis Vmidx of the coordinate axis of the roll axis joint angle is [1, 0, 0], and the pitch axis joint The rotation axis Vinny of the coordinate axis of the angle is [0, 1, 0]. Transform Voutz, Vmidx, Vinny to the PTZ body coordinate system:
V outz→b=R y'*R x'*R z'*V outz V outz → b = R y ′ * R x ′ * R z ′ * V outz
V midx→b=R y'*R x'*V midx V midx → b = R y ′ * R x ′ * V midx
V inny→b=R y'*V inny V inny → b = R y ′ * V inny
其中,Ry'、Rx'、Rz'分别对应Ry、Rx、Rz的转置,Ry、Rx、Rz分别为关节角坐标系绕Y轴(俯仰轴)、X轴(横滚轴)、Z轴(偏航轴)到参考坐标系的旋转矩阵。例如,Ry、Rx、Rz可分别如下:Among them, Ry ', Rx', and Rz 'correspond to the transpose of Ry, Rx, and Rz, respectively. Ry, Rx, and Rz are the joint angle coordinate system around the Y axis (pitch axis), X axis (roll axis), and Z axis, respectively. (Yaw axis) rotation matrix to the reference coordinate system. For example, Ry, Rx, Rz can be as follows:
Figure PCTCN2018109185-appb-000001
Figure PCTCN2018109185-appb-000001
Figure PCTCN2018109185-appb-000002
Figure PCTCN2018109185-appb-000002
Figure PCTCN2018109185-appb-000003
Figure PCTCN2018109185-appb-000003
其中,参考坐标系为关节角为0的坐标系,A为关节角坐标系到参考坐标系的转换角度。The reference coordinate system is a coordinate system with a joint angle of 0, and A is a conversion angle of the joint angle coordinate system to the reference coordinate system.
在步骤S21中,期望本体角速度W b的计算公式如下: In step S21, the calculation formula of the expected body angular velocity W b is as follows:
W b=R j-b*W jW b = R jb * W j ;
其中,R j-b为云台关节角坐标系和云台本体坐标系之间的转换关系,如下所示: Among them, R jb is the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, as shown below:
Figure PCTCN2018109185-appb-000004
Figure PCTCN2018109185-appb-000004
其中,inn_joint_ang_rad为内框关节角,mid_joint_ang_rad为中框关节角。Among them, inn_joint_ang_rad is the joint angle of the inner frame, and mid_joint_ang_rad is the joint angle of the middle frame.
针对两轴云台,云台关节角坐标系和云台本体坐标系之间的转换关系R j→b的转换如下: For the two-axis gimbal, the transformation relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system R j → b is as follows:
Figure PCTCN2018109185-appb-000005
Figure PCTCN2018109185-appb-000005
S22,依据期望本体角速度、云台本体坐标系和欧拉坐标系之间的转换关系,将期望本体角速度转换成期望欧拉角速度。S22. According to the conversion relationship between the expected body angular velocity, the gimbal body coordinate system, and the Euler coordinate system, the expected body angular velocity is converted into the expected Euler angular velocity.
在该步骤中,期望欧拉角速度
Figure PCTCN2018109185-appb-000006
的计算公式如下:
In this step, the Euler angular velocity is expected
Figure PCTCN2018109185-appb-000006
The calculation formula is as follows:
Figure PCTCN2018109185-appb-000007
Figure PCTCN2018109185-appb-000007
其中,
Figure PCTCN2018109185-appb-000008
为云台本体坐标系和欧拉坐标系之间的转换关系,具体如下:
among them,
Figure PCTCN2018109185-appb-000008
The conversion relationship between the gimbal body coordinate system and Euler coordinate system is as follows:
Figure PCTCN2018109185-appb-000009
Figure PCTCN2018109185-appb-000009
其中,inn_euler_ang_rad为内框欧拉角,mid_euler_ang_rad为中框欧拉角,内框欧拉角和中框欧拉角均为上一次闭环时云台100的期望欧拉角,也即上一次闭环结束时云台的实时姿态。Among them, inn_euler_ang_rad is the Euler angle of the inner frame, mid_euler_ang_rad is the Euler angle of the middle frame, and the Euler angle of the inner frame and the Euler angle of the middle frame are the expected Euler angles of the gimbal 100 when the last closed loop, that is, the end of the last closed loop Shi Yuntai's real-time attitude.
如此,通过步骤S21及步骤S22,可以将期望关节角速度经由云台本体坐标系转换为欧拉角速度。In this way, through steps S21 and S22, the desired joint angular velocity can be converted into the Euler angular velocity via the gimbal body coordinate system.
其中,请继续参阅图2和图3,在本实施例中,处理器20还用于:依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系,将期望关节角速度转换成期望本体角速度;依据期望本体角速度、云台本体坐标系和欧拉坐标系之间的转换关系,将期望本体角速度转换成期望欧拉角速度。Wherein, please continue to refer to FIG. 2 and FIG. 3. In this embodiment, the processor 20 is further configured to: according to the conversion relationship between the desired joint angular velocity, the PTZ joint angular coordinate system and the PTZ body coordinate system, the desired joint The angular velocity is converted into the expected body angular velocity; according to the conversion relationship between the expected body angular velocity, the gimbal body coordinate system, and the Euler coordinate system, the expected body angular velocity is converted into the desired Euler angular velocity.
也即是说,步骤S21及步骤S22可以由处理器20实现。That is, steps S21 and S22 can be implemented by the processor 20.
在一具体实施中,依据上述转换关系,假设中框关节角为40度、内框关节角为40度,内框欧拉角为10,中框欧拉角为0,期望关节角速度为[0,0,1],若不经过上述坐标系之间的转换,则云台100的欧拉角速度默认为关节角速度[0,0,1]。而经过上述坐标系之间的转换后,云台的欧拉角速度为[-0.3830,0.6428,0.6634]。In a specific implementation, according to the above conversion relationship, it is assumed that the joint angle of the middle frame is 40 degrees, the joint angle of the inner frame is 40 degrees, the Euler angle of the inner frame is 10, the Euler angle of the middle frame is 0, and the expected joint angular velocity is [0 , 0,1]. Without the conversion between the above coordinate systems, the Euler angular velocity of the PTZ 100 is the joint angular velocity [0,0,1] by default. After the conversion between the above coordinate systems, the Euler angular velocity of the gimbal is [-0.3830, 0.6428, 0.6634].
进一步的,本实施例中,在确定期望欧拉角速度后,可以依据期望欧拉角速度和云台100的当前姿态,确定云台100的期望姿态。假设云台100的运动时长为t,期望姿态可如下所示:Further, in this embodiment, after the desired Euler angular velocity is determined, the desired attitude of the pan / tilt head 100 may be determined according to the expected Euler angular velocity and the current attitude of the pan / tilt head 100. Assuming the movement time of the gimbal 100 is t, the expected attitude can be as follows:
Figure PCTCN2018109185-appb-000010
Figure PCTCN2018109185-appb-000010
其中,tar_euler_roll(t)为期望姿态中对应横滚轴的姿态,tar_euler_pitch(t)为期望姿态中对应俯仰轴的分量,tar_euler_yaw(t)为期望姿态中对应偏航轴的分量,Wx为对应横滚轴的期望欧拉角速度,Wy为对应俯仰轴的期望欧拉角速度,Wz为对应偏航轴的期望欧拉角速度,tar_euler_roll_init为当前姿态中对应横滚轴的欧拉角,tar_euler_pitch_init为当前姿态中对应俯仰轴的欧拉角,tar_euler_yaw_init为当前姿态中对应偏航轴的欧拉角。Among them, tar_euler_roll (t) is the attitude corresponding to the roll axis in the desired attitude, tar_euler_pitch (t) is the component corresponding to the pitch axis in the desired attitude, tar_euler_yaw (t) is the component corresponding to the yaw axis in the desired attitude, and Wx is the corresponding horizontal axis Roller expected Euler angular velocity, Wy is the expected Euler angular velocity corresponding to the pitch axis, Wz is the expected Euler angular velocity corresponding to the yaw axis, tar_euler_roll_init is the Euler angle corresponding to the roll axis in the current attitude, and tar_euler_pitch_init is the current attitude The Euler angle corresponding to the pitch axis, tar_euler_yaw_init is the Euler angle corresponding to the yaw axis in the current attitude.
综上,根据云台100的运动时长t以及期望关节角,可获悉云台100在任意时刻的期望姿态,也即,云台100中各个轴臂对应的期望关节角。In summary, according to the movement time t of the gimbal 100 and the desired joint angle, the desired attitude of the gimbal 100 at any time, that is, the desired joint angle corresponding to each axis arm in the gimbal 100 can be learned.
结合上述例子,以图4为例,若以期望关节角速度为[0,0,1]为期望欧拉角速度,可 知,在俯仰轴轴臂146发生转动时,其它轴臂的欧拉角保持不变,且在云台100的基座发生倾斜时,为了保持欧拉角,其它轴臂会发生转动,而其它轴臂发生转动后,其它轴臂并不能保持与云台100的基座之间的相对位置关系,无法与基座发生同步转动,导致在某些场景下无法有效利用云台的控制,且在继续对其它轴臂进行控制时,由于其它轴臂发生转动导致的关节角变化,在进行姿态控制时可能由于关节角的机械限位而无法按照预定路径进行运动,也不利于某些情境下需要忽略云台100的基座的倾斜的应用。With reference to the above example, taking FIG. 4 as an example, if the desired joint angular velocity is [0,0,1] as the desired Euler angular velocity, it can be seen that when the pitch axis shaft arm 146 rotates, the Euler angles of the other axis arms remain unchanged. Changes, and when the base of the gimbal 100 is tilted, in order to maintain the Euler angle, other shaft arms will rotate, and after the other arm is rotated, the other shaft arms cannot be held between the base of the gimbal 100 The relative position relationship of the axis cannot be synchronized with the base, which makes it impossible to effectively use the control of the gimbal in some scenarios, and when the other axis arms continue to be controlled, the joint angle changes due to the rotation of other axis arms. When performing attitude control, it may not be able to move according to a predetermined path due to the mechanical limitation of the joint angle, and it is not conducive to applications in which the tilt of the base of the gimbal 100 needs to be ignored in some situations.
而利用期望关节角速度经由上述转换后,得到的期望姿态实际为运动至期望关节角速度对应的期望关节角。如此,通过考虑云台100的基座的运动,使得云台100中各个轴臂与云台100的基座之间的关系可以保持相对稳定,则通过期望关节角速度以及运动时长的控制,可以预估云台100的运动路径,并不会由于云台100的基座的倾斜而出现无法到达期望姿态的现象。After using the desired joint angular velocity through the above conversion, the desired posture obtained is actually the desired joint angle corresponding to the desired joint angular velocity. In this way, by considering the movement of the base of the gimbal 100, the relationship between each axis arm in the gimbal 100 and the base of the gimbal 100 can be kept relatively stable. By controlling the expected joint angular velocity and movement duration, it is possible to predict Estimating the movement path of the pan / tilt head 100 will not cause the desired posture to occur due to the tilt of the base of the pan / tilt head 100.
本发明实施方式的一种云台的控制方法、云台、可移动平台和计算机可读存储介质中,依据云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,可以将期望关节角速度转换为期望欧拉角速度,并结合云台的当前姿态、期望欧拉角速度来确定云台的期望姿态。如此,即使云台的基座发生倾斜,但将期望关节角速度经由云台本体坐标系的转换方式,综合考虑了关节空间的规划以及基座的运动,可以保证云台中各个轴臂同时运动至期望姿态,即使得云台中各个轴臂相对基座的位置关系保持相对固定。进一步的,在具体应用场景中,借由期望关节角,且将期望关节角速度经由云台本体坐标系转换为期望欧拉角速度,可以具有如下效果:According to a method for controlling a gimbal, a gimbal, a movable platform, and a computer-readable storage medium according to an embodiment of the present invention, according to a conversion relationship between a gimbal joint angle coordinate system and a gimbal body coordinate system, a gimbal body coordinate The conversion relationship between the system and the Euler coordinate system can convert the expected joint angular velocity into the expected Euler angular velocity, and determine the desired attitude of the gimbal in combination with the current attitude of the gimbal and the expected Euler angular velocity. In this way, even if the base of the gimbal is tilted, the expected joint angular velocity is transformed by the coordinate system of the gimbal body, taking into account the joint space planning and the movement of the base, which can ensure that each axis arm in the gimbal can move to the desired level simultaneously The attitude, that is, the positional relationship of each axis arm in the head relative to the base remains relatively fixed. Further, in a specific application scenario, by expected joint angle and converting the desired joint angular velocity into the desired Euler angular velocity via the gimbal body coordinate system, the following effects can be achieved:
1、如图2实施例,可移动平台为移动小车1000,云台100为两轴云台(以绕偏航轴及俯仰轴转动为例),云台100可以包括偏航轴轴臂142和偏航轴电机122、俯仰轴轴臂146和俯仰轴电机126,负载30为射击装置31。用户可以通过遥控器控制移动小车1000以及云台100的运动,例如,控制移动小车1000在水平面上射击。然而,当移动小车1000发生倾斜,例如移动小车1000在斜面上移动,且云台100中的俯仰轴轴臂146处于增稳模式时,如果用户只控制云台100绕偏航轴转动,则由于云台100的控制为利用欧拉角控制,偏航轴轴臂142的转动会带动处于增稳模式下的俯仰轴轴臂146转动,但俯仰轴轴臂146会绕世界坐标系的Z轴转动,使得射击装置31的发射方向仍与水平方向平行,即射击装置31射出的子弹仍沿水平方向发出,而不是用户期望的沿平行于斜面的方向射出。如此,在移动小车100的比赛过程中,如遇到斜坡且需要在斜坡上击打竞争对手时,射击装置31的击打的准确度将较低。1. As shown in the embodiment of FIG. 2, the movable platform is a mobile trolley 1000, and the gimbal 100 is a two-axis gimbal (taking rotation around the yaw axis and pitch axis as an example). The gimbal 100 may include a yaw axis shaft arm 142 and The yaw axis motor 122, the pitch axis arm 146, and the pitch axis motor 126, and the load 30 is the shooting device 31. The user can control the movement of the mobile cart 1000 and the pan / tilt 100 through a remote controller, for example, control the mobile cart 1000 to shoot on a horizontal plane. However, when the moving dolly 1000 is tilted, for example, the moving dolly 1000 is moving on an inclined plane, and the pitch axis shaft arm 146 in the gimbal 100 is in the stabilization mode, if the user only controls the gimbal 100 to rotate about the yaw axis, then The control of the gimbal 100 is to use Euler angle control. The rotation of the yaw axis arm 142 will cause the pitch axis arm 146 in the stabilization mode to rotate, but the pitch axis axis arm 146 will rotate around the Z axis of the world coordinate system. , So that the shooting direction of the shooting device 31 is still parallel to the horizontal direction, that is, the bullets fired by the shooting device 31 are still fired in the horizontal direction, instead of being fired by the user in a direction parallel to the inclined plane. In this way, during the competition of the mobile cart 100, if a slope is encountered and a competitor needs to be hit on the slope, the hitting accuracy of the shooting device 31 will be low.
本实施例中,在对偏航轴轴臂142进行如上控制时,由于期望关节角速度经由云台本体坐标系的转换,则俯仰轴轴臂146将不会绕世界坐标系的Z轴转动,而是绕云台本体,也是绕车体200(即云台100的基座)的Z轴转动。如此,即使移动小车1000发生倾斜,俯仰轴轴臂146也将同时与移动小车1000发生倾斜,有利于射击装置31对准斜坡上的竞争对手。In this embodiment, when the yaw axis arm 142 is controlled as described above, since the joint angular velocity is expected to be converted via the PTZ body coordinate system, the pitch axis arm 146 will not rotate around the Z axis of the world coordinate system, and It rotates around the gimbal body and also around the Z axis of the vehicle body 200 (ie, the base of the gimbal 100). In this way, even if the mobile cart 1000 is tilted, the tilting axis arm 146 will also be tilted with the mobile cart 1000 at the same time, which is beneficial for the shooting device 31 to align with competitors on the slope.
同时,如果用户欲通过直接输入欧拉角速度控制射击装置31的姿态改变为平行于斜面的方向且需要控制进行左右来回扫射时,用户则需要同时输入针对偏航轴轴臂142及俯仰轴轴臂146的欧拉角速度,操作较为复杂,且并不一定能够准确控制俯仰轴轴臂146,使得射击装置31的姿态改变为平行于斜面的方向。At the same time, if the user wants to change the attitude of the shooting device 31 to the direction parallel to the inclined plane by directly inputting the Euler angular velocity and needs to control the left and right back and forth firing, the user needs to input the yaw axis axis arm 142 and the pitch axis axis arm at the same time. The Euler angular speed of 146 is relatively complicated to operate, and it is not necessarily able to accurately control the pitch axis shaft arm 146, so that the attitude of the shooting device 31 is changed to a direction parallel to the inclined plane.
然而,采用本发明实施例的云台100的控制方法,用户可以只输入针对一个轴(例如偏航轴)的关节角速度,就可以实现射击装置31的发射方向与斜坡面平行且能够左右来回扫射的目的,而不需要同时针对两个轴的欧拉角速度进行输入,操作简单、易控。However, with the control method of the gimbal 100 according to the embodiment of the present invention, the user can only input the joint angular velocity for one axis (for example, the yaw axis), and the shooting direction of the shooting device 31 can be parallel to the slope surface and can be swung back and forth. Without the need to input the Euler angular velocity of two axes at the same time, the operation is simple and easy to control.
2、如图3实施例,云台100为手持云台,云台100可以包括偏航轴轴臂142和偏航轴电机122、横滚轴轴臂146和横滚轴电机126、俯仰轴轴臂146和俯仰轴电机126,负载30为成像装置32。用户可以通过成像装置32拍摄静态感应数据(如图片)或者动态感应数据(如视频)。当用户需要具有特定效果的视频时,例如依据期望运动路径(例如拍摄路径为成像装置32先朝向地面拍摄,然后再朝向天空拍摄)来拍摄,以制造出天旋地转的视频效果。然而,在拍摄过程中,可能存在用户手握手持云台的手柄的姿态不同,例如,手柄倾斜的角度不同。在手柄倾斜的角度不同的情况下,如果继续使用原本的姿态角模式(即通过直接输入期望欧拉角或期望欧拉角速度进行控制的模式),云台100相应轴臂可达到的欧拉角可以不同,例如,手柄倾斜40度与手柄倾斜60度时,若以同一直接输入的期望欧拉角或期望欧拉角速度进行控制,则云台100中横滚轴轴臂144可到达的欧拉角角度不同,甚至无法到达用户输入的期望欧拉角,从而无法保证在不同的使用场景中拍摄出同样的视频效果。2. As shown in the embodiment of FIG. 3, the head 100 is a handheld head. The head 100 may include a yaw axis arm 142 and a yaw axis motor 122, a roll axis arm 146 and a roll axis motor 126, and a pitch axis axis. The arm 146 and the pitch axis motor 126, and the load 30 is the imaging device 32. The user can capture static sensing data (such as pictures) or dynamic sensing data (such as videos) through the imaging device 32. When a user needs a video with a specific effect, for example, according to a desired motion path (for example, the shooting path is that the imaging device 32 shoots first toward the ground and then shoots toward the sky) to create a video effect that rotates around the world. However, during the shooting process, there may be different gestures of the user's hand shaking the gimbal's handle, for example, the angle of the handle's tilt is different. If the angle of the handle is different, if you continue to use the original attitude angle mode (that is, the mode controlled by directly inputting the desired Euler angle or the desired Euler angle speed), the Euler angle that can be achieved by the corresponding arm of the gimbal 100 It can be different. For example, when the handle is tilted by 40 degrees and the handle is tilted by 60 degrees, if the same Euler angle or Euler angular speed that is directly input is used to control, the Euler reachable by the roll axis arm 144 in the gimbal 100 The angles are different, and even the expected Euler angle input by the user cannot be reached, so that the same video effect cannot be guaranteed in different usage scenarios.
本实施例中,通过将期望关节角速度经由云台本体坐标系的转换,可以确定由期望关节角对应的期望姿态,即在云台100运动至期望姿态时,为云台100运动至期望关节角速度对应的期望关节角的位置。如此,无论手持云台是否发生倾斜,或倾斜角度是否相同,均可以控制云台100中的相应轴臂运动至由期望关节角,不会出现由于手持云台的倾斜角度不同而导致无法实现云台100中相应轴臂的预期控制。In this embodiment, by transforming the desired joint angular velocity through the coordinate system of the gimbal body, a desired posture corresponding to the desired joint angle can be determined, that is, when the gimbal 100 moves to the desired posture, the gimbal 100 moves to the desired joint angular velocity. Corresponding position of the desired joint angle. In this way, no matter whether the handheld gimbal is tilted or the tilt angle is the same, the corresponding axis arm in the gimbal 100 can be controlled to the desired joint angle, and the cloud cannot be realized due to the different tilting angle of the handheld gimbal. Expected control of the corresponding arm in the stage 100.
因此,只要获取的期望关节角速度相同,即使手持云台发生倾斜,也可以利用成像装置32运动至期望关节角的目的,来实现在不同的场景下具有同样的拍摄效果。Therefore, as long as the obtained desired joint angular velocity is the same, even if the handheld head is tilted, the purpose of moving the imaging device 32 to the desired joint angle can be used to achieve the same shooting effect in different scenes.
基于上述内容,下面将相应结合上述两个应用场景对本发明实施例进行具体说明:Based on the foregoing, the embodiments of the present invention will be specifically described in combination with the above two application scenarios accordingly:
请参阅图6,在本实施例中,在依据云台100的当前姿态及期望欧拉角速度,确定云台100的期望姿态之后,即在步骤S30之后,控制方法还包括以下步骤:Referring to FIG. 6, in this embodiment, after determining the desired attitude of the PTZ 100 according to the current attitude of the PTZ 100 and the expected Euler angular velocity, that is, after step S30, the control method further includes the following steps:
S40,按照期望欧拉角速度,控制云台100转动至期望姿态。S40. Control the PTZ 100 to rotate to a desired attitude according to the desired Euler angular velocity.
请继续参阅图2、图3和图6,在本实施例中,处理器20还用于:按照期望欧拉角速度,控制云台100转动至期望姿态。Please continue to refer to FIG. 2, FIG. 3, and FIG. 6. In this embodiment, the processor 20 is further configured to control the PTZ 100 to rotate to a desired attitude according to a desired Euler angular velocity.
也即是说,步骤S40可以由处理器20实现。That is, step S40 may be implemented by the processor 20.
在获得期望欧拉角速度
Figure PCTCN2018109185-appb-000011
后,获取云台100的当前姿态,从而得到当前欧拉角(偏航角、横滚角以及俯仰角),将期望欧拉角速度叠加到当前欧拉角上,从而得到期望欧拉角,即期望姿态,控制云台100转动至期望欧拉角,从而将负载30转动至期望姿态。
After getting the desired Euler angular velocity
Figure PCTCN2018109185-appb-000011
Then, the current attitude of the gimbal 100 is obtained to obtain the current Euler angle (yaw angle, roll angle, and pitch angle), and the expected Euler angle velocity is superimposed on the current Euler angle to obtain the desired Euler angle, that is The desired attitude is controlled to rotate the gimbal 100 to a desired Euler angle, thereby rotating the load 30 to a desired attitude.
继续以负载30为射击装置31为例,检测云台100的当前姿态,当前姿态可以由欧拉角表示,例如当前射击装置31的发射方向与水平面平行,然后将期望欧拉角速度叠加到当前欧拉角上,以得到期望欧拉角,期望欧拉角则可用于表示期望姿态,例如期望姿态为使得射击装置31的发射方向与斜面平行,最后根据闭环控制的方法控制云台100转动到期望姿态,则射击装置31可以朝平行斜坡面的方向发射子弹。Continue to take the load 30 as the shooting device 31 as an example to detect the current attitude of the gimbal 100. The current attitude can be represented by Euler angles. For example, the firing direction of the current shooting device 31 is parallel to the horizontal plane, and then the expected Euler angular velocity is superimposed on the current Euler angle. Pull the angle to get the desired Euler angle. The desired Euler angle can be used to indicate the desired attitude. For example, the desired attitude is such that the firing direction of the shooting device 31 is parallel to the inclined plane. Finally, the gimbal 100 is controlled to rotate to the desired angle according to the closed-loop control method. Attitude, the shooting device 31 can fire a bullet in a direction parallel to the slope surface.
同理,当负载30为成像装置32时,也可以按照步骤S40控制云台100转动至期望姿态,以使成像装置32能够处于期望姿态或运动至期望姿态的过程中拍摄视频。同时,按照期望欧拉角速度控制云台100运动至期望姿态的过程中,速度均匀,且在控制云台100运动至期望姿态的过程中,由于不依赖于转动过程中的关节角,则对关节角精度的依赖性较低,并使得拍摄的视频画面流畅、平滑度均匀性较高。同时,可以保证各个轴臂在运动时长内,在关节空间均运动到指定位置,即期望关节角位置,而不用关心云台100的基座是否发生倾斜。Similarly, when the load 30 is the imaging device 32, the PTZ 100 can also be controlled to rotate to the desired posture according to step S40, so that the imaging device 32 can take a video during the desired posture or move to the desired posture. At the same time, in the process of controlling the movement of the PTZ 100 to the desired attitude according to the expected Euler angular velocity, the speed is uniform, and in the process of controlling the movement of the PTZ 100 to the desired attitude, the joints are not dependent on the joint angle during the rotation. Dependence of angular accuracy is low, and makes the captured video picture smooth and smooth even more uniform. At the same time, it can be ensured that each axis arm moves to a specified position in the joint space during the movement time, that is, the desired joint angle position, without caring whether the base of the pan / tilt 100 is inclined.
请参阅图7,在本实施例中,步骤S40中按照期望欧拉角速度,控制云台100转动至期望姿态,包括以下子步骤:Referring to FIG. 7, in this embodiment, in step S40, controlling the pan / tilt head 100 to rotate to a desired posture according to the desired Euler angular velocity, including the following sub-steps:
S41,在发生预设拍摄触发事件时,按照期望欧拉角速度,控制云台100转动至期望姿态。S41. When a preset shooting trigger event occurs, the PTZ 100 is controlled to rotate to a desired attitude according to a desired Euler angular velocity.
请继续参阅图2、图3和图7,在本实施例中,处理器20还用于:在发生预设拍摄触发事件时,按照期望欧拉角速度,控制云台100转动至期望姿态。Please continue to refer to FIG. 2, FIG. 3 and FIG. 7. In this embodiment, the processor 20 is further configured to: when the preset shooting trigger event occurs, control the pan / tilt head 100 to rotate to a desired attitude according to a desired Euler angular velocity.
也即是说,步骤S41可以由处理器20实现。That is, step S41 can be implemented by the processor 20.
结合图3,云台100上可以搭载有成像装置32,在依据云台100的当前姿态以及期望欧拉角,确定云台100的期望姿态后,可以不立刻控制云台100转动至期望姿态, 即用户可以在确定云台100的期望姿态后,先保持云台100的当前姿态不变,进而对拍摄场景进行预先的布置或者允许被拍摄人摆好动作后,再通过预设的拍摄触发事件触发云台100运动至期望姿态,而在云台100运动至期望姿态的过程中,成像装置32同时进行预设的拍摄动作。With reference to FIG. 3, the pan / tilt head 100 may be equipped with an imaging device 32. After determining the desired pose of the pan / tilt head 100 according to the current pose of the pan / tilt head 100 and the desired Euler angle, the pan / tilt head 100 may not be controlled to rotate to the desired pose immediately. That is, after determining the desired attitude of the PTZ 100, the user can first keep the current attitude of the PTZ 100 unchanged, and then pre-arrange the shooting scene or allow the person to pose the action, and then trigger it by a preset shooting trigger event The pan / tilt 100 moves to a desired posture, and during the process of the pan / tilt 100 to a desired posture, the imaging device 32 simultaneously performs a preset shooting action.
其中,拍摄触发事件可以是用户输入拍摄开始指令,例如在云台100上按下拍摄按键、在云台100的屏幕上点击开始拍摄、发出预定的拍摄语音指令、在云台100的控制终端触发云台100上的成像装置进行拍摄等。The shooting trigger event may be a user inputting a shooting start instruction, such as pressing a shooting button on the PTZ 100, clicking on the screen of the PTZ 100 to start shooting, issuing a predetermined shooting voice instruction, or triggering on a control terminal of the PTZ 100 The imaging device on the gimbal 100 performs shooting and the like.
可以理解,在图3所示实施例中,负载30也可以包括成像装置,即利用移动小车1000进行图像和/或视频的拍摄。It can be understood that, in the embodiment shown in FIG. 3, the load 30 may also include an imaging device, that is, use the mobile cart 1000 to capture images and / or videos.
请参阅图8,在步骤S10中,获取云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 8, in step S10, obtaining the expected joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system includes the following sub-steps:
S11,接收用于控制云台100的转动速度的输入信息;S11: Receive input information for controlling the rotation speed of the PTZ 100;
S12,根据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度。S12. Determine the desired joint angular velocity of the gimbal 100 in the gimbal joint angle coordinate system according to the input information.
请继续参阅图2、图3和图8,在本实施例中,处理器20还用于:接收用于控制云台100的转动速度的输入信息;根据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度。Please continue to refer to FIG. 2, FIG. 3 and FIG. 8. In this embodiment, the processor 20 is further configured to: receive input information for controlling the rotation speed of the PTZ 100; The expected joint angular velocity in the joint angular coordinate system.
也即是说,步骤S11及步骤S12可以由处理器20实现。That is, steps S11 and S12 can be implemented by the processor 20.
具体的,用户可以对云台100的转动速度进行控制。依据用户的输入信息,可以确定云台100的期望关节角速度。其中,输入信息可以为用户在各种与云台100通讯的控制终端的输入。控制终端包括遥控器、手机、ipad、计算机等。用户输入的方式可以为遥控器的摇杆操作,遥控器或云台100的显示输入设备、手机界面或者计算机界面操作等。每一种输入信息对应不同的处理方式,以获得期望关节角速度。Specifically, the user can control the rotation speed of the PTZ 100. According to the user's input information, the desired joint angular velocity of the PTZ 100 can be determined. The input information may be input by a user at various control terminals that communicate with the PTZ 100. The control terminal includes a remote controller, a mobile phone, an iPad, and a computer. The user input mode may be a joystick operation of the remote controller, a display input device of the remote controller or the PTZ 100, a mobile phone interface, or a computer interface operation. Each type of input information corresponds to a different processing method to obtain the desired joint angular velocity.
在本实施例中,输入信息包括多种,例如摇杆操作杆量、期望关节角、期望运动路径等。In this embodiment, the input information includes various types, such as a joystick operation lever amount, a desired joint angle, a desired motion path, and the like.
接下来针对不同的输入信息,说明多个不同的获取期望关节角速度的方式。Next, for different input information, a plurality of different ways of obtaining a desired joint angular velocity are explained.
请参阅图9,输入信息包括期望关节角,步骤S12中根据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 9, the input information includes the desired joint angle. According to the input information in step S12, the desired joint angular velocity of the PTZ 100 in the PTZ joint angle coordinate system is determined, including the following sub-steps:
S121,依据期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中的期望关节角速度。S121. Determine a desired joint angular velocity of the gimbal 100 in a gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
请继续参阅图2、图3和图9,在本实施例中,输入信息包括期望关节角,处理器20还用于:依据期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中的期望关节角速度。Please continue to refer to FIG. 2, FIG. 3 and FIG. 9. In this embodiment, the input information includes a desired joint angle, and the processor 20 is further configured to determine whether the PTZ 100 is in accordance with the desired joint angle, the current posture, and the preset motion time. The expected joint angular velocity in the gimbal joint angular coordinate system.
也即是说,步骤S121可以由处理器20实现。That is, step S121 may be implemented by the processor 20.
具体地,期望关节角可以为用户的单次输入。可以理解,在获取到云台100的当前姿态后,即可获取云台100的当前关节角。结合用户输入的期望关节角、云台100的当前关节角,以及预设的运动时间,就可以计算出期望关节角速度。假如,云台100的当前关节角为W1,期望关节角为W2,预设的运动时间为t秒,则期望关节角速度为W j=(W2-W1)/t。 Specifically, the desired joint angle may be a single input by the user. It can be understood that after the current pose of the PTZ 100 is obtained, the current joint angle of the PTZ 100 can be obtained. The desired joint angular velocity can be calculated by combining the desired joint angle input by the user, the current joint angle of the PTZ 100, and a preset exercise time. If the current joint angle of the PTZ 100 is W1, the expected joint angle is W2, and the preset movement time is t seconds, then the expected joint angular velocity is W j = (W2-W1) / t.
请结合图3及图10,以负载30为成像装置32为例,预设一云台100将当前姿态转动至期望姿态的运动时间t。在预设的运动时间t内,成像装置32按照期望运动路径进行拍摄,运动时间t可以是用户设定的拍摄时长。例如,以输入的期望关节角为朝向当前画面的正右方,预设的运动时间为10秒为例,则云台100的期望运动为在10秒内由当前关节角转动至朝向当前画面的正右方,而云台100在运动过程中,形成成像装置32的拍摄路径。Please refer to FIG. 3 and FIG. 10, taking the load 30 as the imaging device 32 as an example, and presetting a movement time t of the gimbal 100 to rotate the current posture to the desired posture. Within a preset exercise time t, the imaging device 32 performs shooting according to a desired movement path, and the exercise time t may be a shooting duration set by a user. For example, if the input desired joint angle is directly to the right of the current screen, and the preset movement time is 10 seconds as an example, the desired motion of the PTZ 100 is to rotate from the current joint angle to the current picture within 10 seconds. Directly to the right, the PTZ 100 forms a shooting path of the imaging device 32 during the movement.
可以理解,在利用云台100上的成像装置32进行拍摄时,如若获取到用户输入的期望关节角,则可以默认云台进入预设拍摄模式,拍摄结束后,云台100可以退出该预设拍摄模式,保留原来的增稳模式或跟随模式,或者,云台100可以保持在该预设拍摄模式,此处不做具体限定。It can be understood that, when using the imaging device 32 on the pan / tilt head 100 for shooting, if the desired joint angle input by the user is obtained, the pan / tilt head may enter the preset shooting mode by default. After the shooting is completed, the pan / tilt head 100 may exit the preset. The shooting mode retains the original stabilization mode or the following mode, or the PTZ 100 can remain in the preset shooting mode, which is not specifically limited here.
请参阅图11,进一步地,在本实施例中,期望关节角包括多个,步骤S121中依据期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Please refer to FIG. 11. Further, in this embodiment, the desired joint angle includes a plurality of, and in step S121, the PTZ 100 in the PTZ joint angle coordinate system is determined according to the desired joint angle, the current posture, and the preset movement time. Expected joint angular velocity, including the following substeps:
S1211,依据多个期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中相应于各个期望运动路径的期望关节角速度,各个期望运动路径为根据多个期望关节角、当前姿态确定。S1211: Determine the desired joint angular velocity of the PTZ 100 in the PTZ joint angle coordinate system corresponding to each desired motion path according to the multiple desired joint angles, the current posture, and the preset motion time. Each desired motion path is based on the multiple desired joints. The angle and current attitude are determined.
请继续参阅图2、图3和图11,在本实施例中,期望关节角包括多个,处理器20还用于:依据多个期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中相应于各个期望运动路径的期望关节角速度,各个期望运动路径为根据多个期望关节角、当前姿态确定。Please continue to refer to FIG. 2, FIG. 3, and FIG. 11. In this embodiment, the desired joint angle includes a plurality of points, and the processor 20 is further configured to determine the gimbal according to the plurality of desired joint angles, a current posture, and a preset motion time. 100 corresponds to the desired joint angular velocity of each desired motion path in the gimbal joint angle coordinate system, and each desired motion path is determined according to a plurality of desired joint angles and the current posture.
也即是说,步骤S1211可以由处理器20实现。That is, step S1211 can be implemented by the processor 20.
可以理解,期望关节角可以为用户单次输入的多个值,或者多次输入的多个值。在输入多个期望关节角后,控制云台100按照多个期望关节角运动,云台100能够按照完整的期望运动路径来运动。请结合图3及图12,若期望关节角对应的姿态依次为W1、W2、W3、W4、W5,则第一路径可以为W1与W2之间的路径,第二路径为W2与W3之间的路径,第三路径为W3与W4之间的路径,第四路径为W4与W5之间的 路径,从而可以至少形成一个的期望运动路径(由曲线Q表示)。It can be understood that the desired joint angle may be multiple values input by the user at a single time, or multiple values input by the user multiple times. After a plurality of desired joint angles are input, the PTZ 100 is controlled to move according to the plurality of desired joint angles, and the PTZ 100 can move according to a complete desired motion path. Please refer to FIG. 3 and FIG. 12, if the posture corresponding to the joint angle is expected to be W1, W2, W3, W4, and W5, the first path may be the path between W1 and W2, and the second path is between W2 and W3. The third path is the path between W3 and W4, and the fourth path is the path between W4 and W5, so that at least one desired motion path (represented by the curve Q) can be formed.
如此,结合图3,在云台100设有成像装置32时,用户可以依据拍摄需求设置各种路径,以使云台100上的成像装置32可以一次性沿较复杂路径运动,并同时拍摄出连续性较好的画面,用户通过输入多个不同的期望关节角,可以制造出更有趣地拍摄效果,例如制造天旋地转的拍摄效果。In this way, in conjunction with FIG. 3, when the imaging device 32 is provided on the pan / tilt head 100, the user can set various paths according to the shooting requirements, so that the imaging device 32 on the pan / tilt 100 can move along more complicated paths at one time, and simultaneously shoot Pictures with better continuity, users can produce more interesting shooting effects by inputting multiple different desired joint angles, such as shooting effects that turn around the world.
请参阅图13,输入信息除了为期望关节角,输入信息还可以包括期望运动路径。具体地,在本实施例中,输入信息包括期望运动路径,步骤S12中依据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 13, the input information may include a desired motion path in addition to the desired joint angle. Specifically, in this embodiment, the input information includes a desired motion path. According to the input information in step S12, determining a desired joint angular velocity of the gimbal 100 in a gimbal joint angular coordinate system includes the following sub-steps:
S122,依据期望运动路径确定云台100的期望关节角;S122. Determine a desired joint angle of the gimbal 100 according to the desired motion path;
S123,依据期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中的期望关节角速度。S123: Determine a desired joint angular velocity of the gimbal 100 in the gimbal joint angle coordinate system according to the desired joint angle, the current posture, and the preset movement time.
请继续参阅图2、图3和图13,在本实施例中,输入信息包括期望运动路径,处理器20还用于:依据期望运动路径确定云台100的期望关节角;依据期望关节角、当前姿态以及预设运动时间,确定云台100在云台关节角坐标系中的期望关节角速度。Please continue to refer to FIG. 2, FIG. 3 and FIG. 13. In this embodiment, the input information includes a desired motion path, and the processor 20 is further configured to determine the desired joint angle of the PTZ 100 according to the desired motion path; The current attitude and the preset movement time determine the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system.
也即是说,步骤S122及步骤S123可以由处理器20实现。That is, steps S122 and S123 can be implemented by the processor 20.
具体的,依据期望运动路径,可以确定一个或者多个期望关节角。继续以图12为例,期望运动路径可以直接是代表成像装置32运动路径的曲线Q,该曲线Q可以是用户在云台100或云台100的控制终端中输入的,也可以是获取云台100内预存的期望运动路径。其中,期望运动路径中的每个点的状态均可以由云台100的期望关节角来表示,但在期望运动路径中,若包括多个子路径,可以确定多个子路径中的首尾点对应的期望关节角即可。Specifically, one or more desired joint angles may be determined according to a desired motion path. Continuing with FIG. 12 as an example, the desired motion path may be directly a curve Q representing the motion path of the imaging device 32, and the curve Q may be input by a user in the PTZ 100 or the control terminal of the PTZ 100, or may be obtained from the PTZ Pre-stored expected motion paths within 100. Among them, the state of each point in the desired motion path can be represented by the desired joint angle of the PTZ 100, but if the desired motion path includes multiple sub-paths, the expectations corresponding to the head and tail points in the multiple sub-paths can be determined The joint angle is sufficient.
在一个例子中,期望运动路径可以为依据人力掰动云台100时云台100的姿态变化确定。用户通过人力掰动云台100时,可以记录用户掰动云台100时成像装置32的运动轨迹,而该运动轨迹可以保存并作为期望运动路径使用。如此,用户可以更直观地输入期望运动路径,且操作简单。In one example, the desired motion path may be determined according to the attitude change of the gimbal 100 when the gimbal 100 is manually moved. When the user moves the pan / tilt 100 manually, the movement track of the imaging device 32 when the user moves the pan / tilt 100 can be recorded, and the movement track can be saved and used as a desired movement path. In this way, the user can input the desired motion path more intuitively, and the operation is simple.
请参阅图14,进一步地,在本实施例中,云台100上搭载有成像装置32,控制方法包括以下步骤:Please refer to FIG. 14. Further, in this embodiment, the imaging device 32 is mounted on the pan / tilt 100, and the control method includes the following steps:
S50,在人力掰动云台100的过程中,输出成像装置32的预览画面。S50. During the movement of the pan / tilt 100 manually, a preview screen of the imaging device 32 is output.
请继续参阅图2、图3和图14,在本实施例中,云台100上搭载有成像装置32,处理器20还用于:在人力掰动云台100的过程中,输出成像装置32的预览画面。Please continue to refer to FIG. 2, FIG. 3, and FIG. 14. In this embodiment, the imaging device 32 is mounted on the pan / tilt head 100, and the processor 20 is further configured to output the imaging device 32 during the manual movement of the pan / tilt head 100. Preview screen.
也即是说,步骤S50可以由处理器20实现。That is, step S50 can be implemented by the processor 20.
可以理解,在人力掰动云台100的过程中,成像装置32仍可以继续拍摄,用户通 过输出的预览画面,可以预览以该路径拍摄的视频是否能够满足需求,并可以进一步选择是否需要将该被掰动的路径作为期望运动路径。It can be understood that the imaging device 32 can continue to shoot while the pan / tilt 100 is manually moved, and the user can preview whether the video captured by the path can meet the requirements through the output preview screen, and can further choose whether to use the The throbbing path serves as the desired motion path.
请参阅图15,输入信息还可以为历史输入的信息。在本实施例中,步骤S12中依据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 15, the input information may also be information input in history. In this embodiment, in step S12, the desired joint angular velocity of the gimbal 100 in the gimbal joint angle coordinate system is determined according to the input information, including the following sub-steps:
S124,在多个历史速度模式中确定与输入信息匹配的目标速度模式;S124. Determine a target speed mode that matches the input information among multiple historical speed modes;
S125,依据目标速度模式,确定云台100在云台关节角坐标系中的期望关节角速度。S125. Determine a desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system according to the target speed mode.
请继续参阅图2、图3和图15,在本实施例中,处理器20还用于:在多个历史速度模式中确定与输入信息匹配的目标速度模式;依据目标速度模式,确定云台100在云台关节角坐标系中的期望关节角速度。Please continue to refer to FIG. 2, FIG. 3, and FIG. 15. In this embodiment, the processor 20 is further configured to: determine a target speed mode that matches the input information among multiple historical speed modes; and determine the PTZ according to the target speed mode. The expected joint angular velocity of 100 in the gimbal joint angular coordinate system.
也即是说,步骤S124及步骤S125可以由处理器20实现。That is, steps S124 and S125 can be implemented by the processor 20.
具体地,当期望关节角速度为根据用户的输入信息确定时,在确定期望关节角速度后,该期望关节角速度可以被记录下来,通过不断积累,多个期望关节角速度形成多个历史速度模式。而形成多个历史速度模式。由此,在对云台100进行控制时,云台100可以输出多个历史速度模式,并由用户在多个历史速度模式中符合当前控制需要的目标速度模式,云台100则可以根据用户选择的目标速度模式确定云台100在关节角坐标系中的期望关节角速度。Specifically, when the desired joint angular velocity is determined according to the input information of the user, after the desired joint angular velocity is determined, the desired joint angular velocity can be recorded. Through continuous accumulation, multiple desired joint angular velocities form multiple historical velocity patterns. And formed multiple historical speed modes. Therefore, when controlling the PTZ 100, the PTZ 100 can output multiple historical speed modes, and the user can meet the target speed mode required by the current control among the multiple historical speed modes. The PTZ 100 can be selected by the user The target speed mode of the PTZ camera determines the desired joint angular velocity of the gimbal 100 in the joint angular coordinate system.
其中,云台100可以将多个历史速度模式输出至云台100的控制终端,并显示于控制终端的显示屏上,再由用户在控制终端选择目标速度模式;或者,云台100也可以将多个历史速度模式显示于云台100所在设备的显示屏上,结合图3,若云台100为手持云台,则其手柄上可以设有显示屏,则用户可以通过该手柄上的显示屏选择目标速度模式;或者,云台100也可以设有扬声器,并由扬声器输出多个历史速度模式,再由用户选择目标速度模式。可以理解,用户与控制终端和/或云台100的交互方式可以包括但不限于触控、体感、语音等方式。Among them, the PTZ 100 can output multiple historical speed modes to the control terminal of the PTZ 100 and display them on the display screen of the control terminal, and then the user selects the target speed mode on the control terminal; or, the PTZ 100 can also Multiple historical speed modes are displayed on the display of the device where the PTZ 100 is located. In conjunction with Figure 3, if the PTZ 100 is a handheld PTZ, the display can be set on the handle, and the user can use the display on the handle. Select a target speed mode; or, the PTZ 100 may also be provided with a speaker, and a plurality of historical speed modes are output by the speaker, and then the user selects the target speed mode. It can be understood that the manner of interaction between the user and the control terminal and / or the PTZ 100 may include, but is not limited to, touch, somatosensory, and voice.
示例性的,以图3所示的云台100为手持云台为例进行说明,云台100上搭载有成像装置32。用户在利用云台100进行拍摄时,用户可以输入期望关节角,以控制云台100为运动至期望关节角为目的进行拍摄,当用户输入期望关节角后,依据云台100的拍摄时长以及云台100的当前关节角,期望关节角可以转换对应的期望关节角速度,该速度模式可以被存储下来。在当前场景中,若用户再次输入或选择存储的某一期望关节角,可以触发步骤S124,从而在多个历史速度模式中匹配与当前的期望关节角对应的目标速度模式。该目标速度模式则包含了云台100在云台关节角坐标系中的期望 关节角速度,利用该期望关节角速度转换得到的期望欧拉角速度控制云台100运动,可以使得成像装置32在不同场景下,由云台100按照同一个期望运动路径去拍摄。Exemplarily, the pan-tilt head 100 shown in FIG. 3 is taken as an example for description. The pan-tilt head 100 is provided with an imaging device 32. When the user uses the PTZ 100 to shoot, the user can input the desired joint angle to control the PTZ 100 to move to the desired joint angle for shooting. When the user enters the desired joint angle, according to the shooting time of the PTZ 100 and the cloud The current joint angle and desired joint angle of the stage 100 can convert the corresponding desired joint angular velocity, and the speed pattern can be stored. In the current scene, if the user enters or selects a stored desired joint angle again, step S124 may be triggered, thereby matching a target speed pattern corresponding to the current desired joint angle among multiple historical speed modes. The target speed mode includes the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system. Using the desired Euler angular velocity obtained by the conversion of the desired joint angular velocity to control the motion of the gimbal 100 can make the imaging device 32 in different scenes. , The PTZ 100 follows the same desired motion path to shoot.
请参阅图16,在本实施例中,输入信息还可以为摇杆操作量。具体地,输入信息包括摇杆操作杆量,步骤S12中依据输入信息,确定云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 16, in this embodiment, the input information may also be a joystick operation amount. Specifically, the input information includes the amount of joystick operation. According to the input information in step S12, the desired joint angular velocity of the PTZ 100 in the PTZ joint angular coordinate system is determined, including the following sub-steps:
S126,依据摇杆操作杆量以及预设摇杆操作杆量与关节角速度的对应关系,确定云台100在云台关节角坐标系中的期望关节角速度。S126: Determine a desired joint angular velocity of the pan / tilt head 100 in the joint angle coordinate system of the pan / tilt according to the correspondence between the amount of the joystick control lever and the preset joystick control lever amount and the joint angular velocity.
请继续参阅图2、图3和图16,在本实施例中,输入信息包括摇杆操作杆量,处理器20还用于:依据摇杆操作杆量以及预设摇杆操作杆量与关节角速度的对应关系,确定云台100在云台关节角坐标系中的期望关节角速度。Please continue to refer to FIG. 2, FIG. 3 and FIG. 16. In this embodiment, the input information includes a joystick operation lever amount, and the processor 20 is further configured to: according to the joystick operation lever amount and the preset joystick operation lever amount and joint The correspondence between the angular velocities determines the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system.
也即是说,步骤S126可以由处理器20实现。That is, step S126 may be implemented by the processor 20.
以如图2所示为例,根据用户输入用于控制轴臂的摇杆操作杆量转换为两个通道的输入值Raw_y、Raw_z。在一个例子,可以直接将输入值Raw_y,Raw_z转换为期望关节角速度W j=[V y,V z]。在另一个例子中,也可以直接输入Raw_y,Raw_z,并对输入值Raw_y,Raw_z进行处理,以获得期望关节角速度W j=[V y,V z]。 Taking the example shown in FIG. 2 as an example, according to the user input, the amount of the joystick used to control the shaft arm is converted into the input values Raw_y and Raw_z of the two channels. In one example, the input values Raw_y, Raw_z can be directly converted to the desired joint angular velocity W j = [V y , V z ]. In another example, Raw_y, Raw_z may also be directly input, and the input values Raw_y, Raw_z may be processed to obtain a desired joint angular velocity W j = [V y , V z ].
其中,输入值Raw_y为对应俯仰轴轴臂146的操作杆量,输入值Raw_z为对应偏航轴轴臂142的操作杆量,当用户只针对俯仰轴轴臂146、偏航轴轴臂142进行摇杆操作时,其中一个轴臂对应的操作杆量为0,即对应的通道的输入值也为0。本实施例中,在移动小车1000的应用场景中,用户可以只针对偏航轴轴臂142进行摇杆操作,以实现俯仰轴轴臂146的相应姿态控制,尤其是在云台100的基座倾斜时。Among them, the input value Raw_y is the amount of joystick corresponding to the pitch axis arm 146, and the input value Raw_z is the amount of joystick corresponding to the yaw axis arm 142. When the user only performs the operation for the pitch axis arm 146 and the yaw axis arm 142 When the joystick is operated, the amount of the joystick corresponding to one of the axis arms is 0, that is, the input value of the corresponding channel is also 0. In this embodiment, in the application scenario of the mobile trolley 1000, the user can perform a joystick operation only on the yaw axis axis arm 142 to achieve the corresponding attitude control of the pitch axis axis arm 146, especially on the base of the pan / tilt 100 When tilted.
具体地,在本实施例中,对输入值Raw_y、Raw_z进行死区限制。死区限制为对输入值进行最小值限定。以设定最小的输入值为1为例,对于小于1的输入值,统一将对应的期望关节角速度赋予为0。例如,输入值为0.5,则期望关节角速度为0,从而防止摇杆因非用户输入的微小振动而触发获取云台100的期望关节角速度的步骤。接着,可以对死区限制后的输入值进行归一化处理,并利用预设摇杆操作杆量与关节角速度的对应关系进行映射处理,确定摇杆操作杆量对应的云台100在云台100关节坐标系中的期望关节角速度W j=[V y,V z]。 Specifically, in this embodiment, the input values Raw_y and Raw_z are subjected to a deadband limitation. The dead band is limited to the minimum value of the input value. Taking the minimum input value of 1 as an example, for input values less than 1, the corresponding expected joint angular velocity is uniformly given as 0. For example, if the input value is 0.5, the desired joint angular velocity is 0, so as to prevent the joystick from triggering the step of acquiring the desired joint angular velocity of the gimbal 100 due to a small vibration input by a user. Then, normalize the input value after the dead zone limit, and use the mapping relationship between the preset joystick operation lever amount and joint angular velocity to perform mapping processing to determine that the PTZ 100 corresponding to the joystick operation lever amount is on the pan The expected joint angular velocity W j = [V y , V z ] in the 100-joint coordinate system.
请参阅图17,步骤S10中获取云台100在云台关节角坐标系中的期望关节角速度,包括以下子步骤:Referring to FIG. 17, in step S10, the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system is obtained, including the following sub-steps:
S13,获取云台100中的第一轴臂在云台关节角坐标系中的期望关节角速度。S13: Obtain a desired joint angular velocity of the first axis arm in the gimbal 100 in a gimbal joint angular coordinate system.
在步骤S20依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期 望欧拉角速度之前,控制方法还包括以下步骤:In step S20, the desired joint angular velocity is converted into the desired European angular velocity according to the conversion relationship between the desired joint angular velocity, the PTZ joint angular coordinate system and the PTZ body coordinate system, and the conversion relationship between the PTZ body coordinate system and the Euler coordinate system. Before pulling the angular velocity, the control method further includes the following steps:
S60,检测云台100中第二轴臂是否处于增稳模式,第一轴臂用于带动第二轴臂转动;S60: It is detected whether the second axis arm in the gimbal 100 is in the stabilization mode, and the first axis arm is used to drive the second axis arm to rotate;
若是,则触发步骤S20。If yes, step S20 is triggered.
请继续参阅图2、图3和图17,在本实施例中,处理器20还用于:获取云台100中的第一轴臂在云台关节角坐标系中的期望关节角速度;检测云台100中第二轴臂是否处于增稳模式,第一轴臂用于带动第二轴臂转动;若是,则触发步骤S20。Please continue to refer to FIGS. 2, 3 and 17. In this embodiment, the processor 20 is further configured to: obtain a desired joint angular velocity of the first axis arm in the gimbal 100 in a gimbal joint angular coordinate system; and detect a cloud Whether the second axis arm in the stage 100 is in the stabilization mode, the first axis arm is used to drive the second axis arm to rotate; if so, step S20 is triggered.
也即是说,步骤S60可以由处理器20实现。That is, step S60 can be implemented by the processor 20.
具体的,第一轴臂为待控制的轴臂,第二轴臂为第一轴臂转动时被带动的轴臂,例如第一轴臂为如图4所示的外框,第二轴臂为中框及/或内框,即,第一轴臂包括偏航轴轴臂142,第二轴臂包括俯仰轴轴臂146和/或横滚轴轴臂144;又例如,第一轴臂为如图4所示的中框,第二轴臂为内框。Specifically, the first shaft arm is a shaft arm to be controlled, and the second shaft arm is a shaft arm that is driven when the first shaft arm rotates. For example, the first shaft arm is an outer frame as shown in FIG. 4, and the second shaft arm is a second shaft arm. Is a middle frame and / or an inner frame, that is, the first axis arm includes a yaw axis axis arm 142, and the second axis arm includes a pitch axis axis arm 146 and / or a roll axis axis arm 144; for example, the first axis arm It is the middle frame as shown in FIG. 4, and the second axis arm is the inner frame.
在实际应用中,云台100可以包括增稳模式和跟随模式这两种控制模式。在增稳模式下,云台100中相应轴臂的欧拉角被锁定,在跟随模式下,云台100可以跟随目标物体转动。当云台100中的第二轴臂为增稳模式时,如若云台100的基座发生倾斜,则在用户控制第一轴臂转动的过程中,第二轴臂仍绕世界坐标系中的Z轴旋转,这在诸如移动小车1000的击打对抗场景中并不利。因此,在步骤S20之前,可以进一步检测第二轴臂是否处于增稳模式,如果是,则可以触发步骤S20。如果第二轴臂不是处于增稳模式,例如处于跟随模式,则此时第二轴臂的关节角已经被锁定,当移动小车1000上斜面时,偏航轴轴臂142的转动不会带动俯仰轴轴臂146绕俯仰轴转动,而无需触发步骤S20。In practical applications, the PTZ 100 may include two control modes, a stabilization mode and a follow mode. In the stabilization mode, the Euler angle of the corresponding arm in the gimbal 100 is locked. In the following mode, the gimbal 100 can follow the target object to rotate. When the second axis arm in the gimbal 100 is in the stabilization mode, if the base of the gimbal 100 is tilted, the second axis arm is still around the world coordinate system while the user controls the rotation of the first axis arm. The Z axis rotates, which is not good in a hit confrontation scene such as a moving cart 1000. Therefore, before step S20, it can be further detected whether the second shaft arm is in the stabilization mode, and if so, step S20 can be triggered. If the second axis arm is not in the stabilization mode, such as in the following mode, the joint angle of the second axis arm has been locked at this time. When the trolley 1000 is moved up the slope, the rotation of the yaw axis axis arm 142 will not cause the pitch The pivot arm 146 rotates around the pitch axis without triggering step S20.
以如图2所示的云台100为例,当俯仰轴轴臂146处于增稳模式时,即处于锁定欧拉角的模式时,不论移动小车1000在水平面运动还是在斜面上运动,如果用户只输入偏航轴的欧拉角速度,则俯仰轴轴臂146的欧拉角(即射击装置31的欧拉角)将始终不变,例如始终为水平方向。而这显然不符合移动小车1000在上坡时射击目标(如击打对抗赛中的竞争对手)的实际需求,此时用户可以同时输入对应偏航轴的欧拉角速度及对应俯仰轴的欧拉角速度,以使射击装置31沿平行于斜面的方向射击。然而,用户需要同时输入两个欧拉角速度,操作复杂。Taking the gimbal 100 shown in FIG. 2 as an example, when the pitch axis arm 146 is in the stabilization mode, that is, in the mode of locking the Euler angle, whether the mobile trolley 1000 moves on the horizontal plane or on the inclined plane, if the user moves If only the Euler angular velocity of the yaw axis is input, the Euler angle of the pitch axis arm 146 (ie, the Euler angle of the shooting device 31) will always be unchanged, for example, it will always be horizontal. This obviously does not meet the actual needs of the shooting target of the mobile trolley 1000 when going uphill (such as hitting competitors in the competition). At this time, the user can enter the Euler angular velocity corresponding to the yaw axis and the Euler angular velocity corresponding to the pitch axis at the same time. So that the shooting device 31 shoots in a direction parallel to the inclined plane. However, the user needs to input two Euler angular velocities at the same time, and the operation is complicated.
较佳的,用户可以在俯仰轴轴臂146处于增稳模式时,输入偏航轴轴臂142的关节角速度,并通过上述S20的转换后得到云台100的期望欧拉角速度,云台100依据该期望欧拉角速度运动时,使得云台100可以绕云台100的基座的Z轴转动,从而使得射击装置31的射击方向可以与斜面平行。同时,用户仅需要输入一个量,即针对偏 航轴轴臂142的期望关节角速度,即可实现对偏航轴轴臂142以及俯仰轴轴臂146的控制,操作简便。请参阅图18,本实施例中,在依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度之前,即在步骤S20之前,控制方法还包括以下步骤:Preferably, when the pitch axis arm 146 is in the stabilization mode, the user can input the joint angular velocity of the yaw axis axis arm 142 and obtain the desired Euler angular velocity of the gimbal 100 through the above-mentioned conversion of S20. The gimbal 100 is based on When the desired Euler angular velocity moves, the head 100 can rotate around the Z axis of the base of the head 100, so that the shooting direction of the shooting device 31 can be parallel to the inclined plane. At the same time, the user only needs to input an amount, that is, the desired joint angular velocity of the yaw axis arm 142, to control the yaw axis axis arm 142 and the pitch axis axis arm 146, and the operation is simple and convenient. Referring to FIG. 18, in this embodiment, according to the expected joint angular velocity, the translation relationship between the joint angle coordinate system of the PTZ and the coordinate system of the PTZ body, and the transformation relationship between the coordinate system of the PTZ body and Euler coordinate system, Before converting the desired joint angular velocity to the desired Euler angular velocity, that is, before step S20, the control method further includes the following steps:
S70,检测云台100的基座是否发生倾斜;S70. Detect whether the base of the PTZ 100 is tilted.
若是,则触发依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度的步骤。If yes, trigger the conversion of the desired joint angular velocity to the expected based on the expected joint angular velocity, the conversion relationship between the PTZ joint angle coordinate system and the PTZ body coordinate system, and the conversion relationship between the PTZ body coordinate system and the Euler coordinate system. Euler angular velocity steps.
请继续参阅图2、图3和图18,在本实施例中,处理器20还用于:检测云台100的基座是否发生倾斜;若是,则触发依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度的步骤。Please continue to refer to FIG. 2, FIG. 3, and FIG. 18. In this embodiment, the processor 20 is further configured to: detect whether the base of the gimbal 100 is tilted; if yes, trigger based on the desired joint angular velocity and gimbal joint angle coordinates The conversion relationship between the system and the PTZ body coordinate system, the conversion relationship between the PTZ body coordinate system and the Euler coordinate system, the steps of converting the desired joint angular velocity into the expected Euler angular velocity.
也即是说,步骤S70可以由处理器20实现。That is, step S70 can be implemented by the processor 20.
在步骤S70中,若检测到云台100的基座未发生倾斜,此时无需触发步骤S20。若检测到云台100的基座发生倾斜,则触发步骤S20。In step S70, if it is detected that the base of the gimbal 100 is not tilted, it is not necessary to trigger step S20. If it is detected that the base of the gimbal 100 is tilted, step S20 is triggered.
具体的,当云台100的基座未发生倾斜时,云台100中任一轴臂的相应控制对其它轴臂的姿态影响较小,且任一轴臂对应的欧拉角唯一。因此,在云台100的基座未发生倾斜时,可以不对期望关节角速度经由云台本体坐标系进行转换,可以直接利用期望关节角速度对云台100进行控制,也可以根据用户的其它输入信息对云台100进行控制,以减少不必要的计算资源的耗费。Specifically, when the base of the pan / tilt head 100 does not tilt, the corresponding control of any of the axis arms in the head 100 has a small influence on the attitude of the other axis arms, and the Euler angle corresponding to any of the axis arms is unique. Therefore, when the base of the gimbal 100 is not tilted, the desired joint angular velocity may not be converted via the gimbal body coordinate system, and the gimbal 100 may be directly controlled using the desired joint angular velocity, or according to other input information of the user. The PTZ 100 controls to reduce the consumption of unnecessary computing resources.
以负载30为射击装置31为例,若检测到云台100的基座未发生倾斜,则认为移动小车1000仍在水平面上移动,此时无需将期望关节角速度转换成欧拉角速度,可以直接以期望关节角速度控制云台100,而无需触发步骤S20。Taking the load 30 as the shooting device 31 as an example, if it is detected that the base of the gimbal 100 is not tilted, it is considered that the mobile trolley 1000 is still moving on the horizontal plane. At this time, it is not necessary to convert the desired joint angular velocity into Euler angular velocity, and it can be directly It is desirable that the joint angular velocity control the PTZ 100 without triggering step S20.
以负载30为成像装置32为例,若检测到云台100的基座(此时为手持云台的手柄)未发生倾斜时,则认为手柄上的关节角坐标系仍与世界坐标系重合,而无需触发步骤S20。Taking the load 30 as the imaging device 32 as an example, if it is detected that the base of the gimbal 100 (in this case, the handle of the gimbal is not tilted), it is considered that the joint angle coordinate system on the handle is still coincident with the world coordinate system There is no need to trigger step S20.
可以理解,图17及图18所示实施例可以进行相应的结合,也即,会对云台100的基座是否发生倾斜、云台100中第二轴臂是否处于增稳模式同时检测,只有两个同时发生,才会将期望关节角经由云台本体坐标系转换,以在不必要进行转换的情况下,减少计算资源的浪费。It can be understood that the embodiments shown in FIG. 17 and FIG. 18 can be correspondingly combined, that is, whether the base of the gimbal 100 is tilted and whether the second axis arm in the gimbal 100 is in a stabilization mode are detected simultaneously. If both occur at the same time, the desired joint angle will be transformed via the gimbal body coordinate system, so as to reduce the waste of computing resources if the transformation is unnecessary.
请参阅图19,在本实施例中,步骤S70检测云台100的基座是否发生倾斜,包括 以下子步骤:Referring to FIG. 19, in this embodiment, step S70 detects whether the base of the PTZ 100 is tilted, including the following sub-steps:
S71,获取云台100的基座的姿态参数;S71. Obtain an attitude parameter of the base of the gimbal 100.
S72,依据姿态参数,判断云台100的基座相对于水平面的夹角是否大于预设角度阈值;若是,则确定基座发生倾斜。S72. Determine whether the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than a preset angle threshold according to the attitude parameter; if yes, determine that the base is tilted.
请继续参阅图2、图3和图19,在本实施例中,处理器20还用于:获取云台100的基座的姿态参数;依据姿态参数,判断云台100的基座相对于水平面的夹角是否大于预设角度阈值;若是,则确定基座发生倾斜。Please continue to refer to FIG. 2, FIG. 3, and FIG. 19. In this embodiment, the processor 20 is further configured to: obtain a posture parameter of the base of the gimbal 100; and determine the base of the gimbal 100 relative to the horizontal plane according to the posture parameter. Whether the included angle is greater than a preset angle threshold; if so, determine that the base is tilted.
也即是说,步骤S71以及步骤S72可以由处理器20实现。That is, steps S71 and S72 can be implemented by the processor 20.
云台100的基座的竖直设置与倾斜设置相比较,云台100的基座的姿态参数一般会有较大差异,其可以体现为云台100的基座与水平面的夹角不同。因此,可以通过判断云台100的基座相对于水平面的夹角是否大于预设角度阈值来判断基座是否发生倾斜。Compared with the vertical setting and the tilt setting of the base of the gimbal 100, the attitude parameters of the base of the gimbal 100 generally have a large difference, which can be reflected in the difference between the angle between the base of the gimbal 100 and the horizontal plane. Therefore, whether the tilt of the base can be determined by determining whether the included angle of the base of the head 100 with respect to the horizontal plane is greater than a preset angle threshold.
具体的,预设角度阈值可以为依据实验统计数据预先确定,也可以为用户输入。例如,预设角度阈值可以为0,当云台100的基座相对于水平面的夹角大于0度时,则确定基座发生倾斜,而当云台100的基座相对与水平面的夹角等于0度时,则认为云台100的基座未发生倾斜。Specifically, the preset angle threshold may be determined in advance based on experimental statistical data, or may be input by a user. For example, the preset angle threshold may be 0. When the angle of the base of the PTZ 100 with respect to the horizontal plane is greater than 0 degrees, it is determined that the base is tilted, and when the angle of the base of the PTZ 100 with respect to the horizontal plane is equal to At 0 degrees, it is considered that the base of the head 100 is not tilted.
在某些实施方式中,误认为云台100的基座发生倾斜的可能性也会有,例如,当云台100为安装在如图2所示的移动小车1000上的云台时,如移动小车1000在移动的过程中,若地面有小碎石,且移动小车1000的驱动装置诸如车轮压过小碎石时,也有可能会导致云台100的基座发生倾斜,但云台100的基座相对于水平面的夹角可能较小,与云台100的姿态控制影响不大。因此,为了避免误认为云台100的基座发生倾斜,预设角度阈值可以为大于0的阈值,具体数值大小可以根据需要进行设定。In some embodiments, there is also a possibility that the base of the pan / tilt head 100 is tilted. For example, when the pan / tilt head 100 is a pan / tilt mounted on a moving cart 1000 shown in FIG. 2, such as moving During the movement of the trolley 1000, if there is small gravel on the ground, and the driving device of the mobile trolley 1000, such as a wheel pressing on the small gravel, may cause the base of the gimbal 100 to tilt, but the base of the gimbal 100 may tilt. The included angle of the base with respect to the horizontal plane may be small, and has little influence on the attitude control of the gimbal 100. Therefore, in order to avoid misunderstanding that the base of the PTZ 100 is tilted, the preset angle threshold may be a threshold greater than 0, and the specific numerical value may be set as required.
以负载30为射击装置31为例,假设预设角度阈值为5度,当云台100的基座相对与水平面的夹角小于10度时,则认为小车仍在较为水平的平面运动,而无需触发步骤S20。再以负载30为成像装置32为例,当云台100的基座相对与水平面的夹角小于5度时,则认为手持云台的手柄未倾斜,而无需触发步骤S20。Taking the load 30 as the shooting device 31 as an example, assuming that the preset angle threshold is 5 degrees, when the angle between the base of the gimbal 100 and the horizontal plane is less than 10 degrees, it is considered that the trolley is still moving in a relatively horizontal plane without requiring Step S20 is triggered. Taking the load 30 as the imaging device 32 as an example, when the angle between the base of the gimbal 100 and the horizontal plane is less than 5 degrees, it is considered that the handle of the hand-held gimbal is not tilted without triggering step S20.
请参阅图20,进一步地,在本实施例中,步骤S72判断云台100的基座相对于水平面的夹角是否大于预设角度阈值包括:Referring to FIG. 20, further, in this embodiment, determining whether the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than a preset angle threshold in step S72 includes:
S721,判断预设时长内云台100的基座相对于水平面的夹角是否均大于预设角度阈值。S721: Determine whether the included angle of the base of the PTZ 100 with respect to the horizontal plane within a preset period is greater than a preset angle threshold.
请继续参阅图2、图3和图20,在本实施例中,处理器20还用于:判断预设时长内云台100的基座相对于水平面的夹角是否均大于预设角度阈值。Please continue to refer to FIG. 2, FIG. 3, and FIG. 20. In this embodiment, the processor 20 is further configured to determine whether the included angle of the base of the PTZ 100 with respect to the horizontal plane within a preset time period is greater than a preset angle threshold.
也即是说,步骤S721可以由处理器20实现。That is, step S721 can be implemented by the processor 20.
在某些实施方式中,云台100的基座误发生倾斜时,确定的云台100的基座相对于水平面的夹角一般也会有较大差异,但是云台100的基座误发生倾斜的持续时间一般比较短。为了区分云台100的基座发生倾斜和云台100的基座误发生倾斜,可以判断预设时长内云台100的基座相对于水平面的夹角是否均大于预设角度阈值。在预设时长内云台100的基座相对于水平面的夹角均大于预设角度阈值时,可以认为此时云台100的基座发生倾斜。在预设时长内云台100的基座相对于水平面的夹角并非均大于预设角度阈值时,则可以认为云台100的基座误发生倾斜。其中,预设时长可以预先保存在云台100中或由用户输入确定。在一个实施例中,预设时长为1秒,云台100的基座的姿态参数的确定周期为0.001秒,则在1秒内,若1000次确定的云台100的基座相对于水平面的夹角均大于预设角度阈值,则认为云台100的基座发生倾斜,若其中有一次确定的云台100的基座相对于水平面的夹角不大于预设角度阈值,例如第1000次不符合预设条件,则认为是云台100的基座误发生倾斜,可以在下一次云台100的基座相对于水平面的夹角大于预设角度阈值时,重新判断预设时长内云台100的基座相对于水平面的夹角是否均大于预设角度阈值,即在下一次云台100的基座相对于水平面的夹角大于预设角度阈值时重新开始计时。In some implementations, when the base of the PTZ 100 is tilted by mistake, the included angle of the determined base of the PTZ 100 with respect to the horizontal plane is generally different, but the base of the PTZ 100 is tilted by mistake The duration is generally shorter. In order to distinguish whether the base of the pan / tilt head 100 is inclined and the base of the pan / tilt 100 is erroneously tilted, it can be determined whether the included angle of the base of the pan / tilt 100 with respect to the horizontal plane is greater than a preset angle threshold within a preset period of time. When the included angle of the base of the pan / tilt head 100 with respect to the horizontal plane is greater than a preset angle threshold within a preset duration, it can be considered that the base of the pan / tilt head 100 is tilted at this time. When the included angle of the base of the gimbal 100 with respect to the horizontal plane is not all greater than a preset angle threshold within a preset time period, it can be considered that the base of the gimbal 100 is tilted by mistake. The preset duration may be stored in the PTZ 100 in advance or determined by user input. In one embodiment, the preset duration is 1 second, and the determination period of the attitude parameter of the base of the gimbal 100 is 0.001 second. In one second, if the base of the gimbal 100 is determined 1000 times relative to the horizontal plane within 1 second, If the included angles are all larger than the preset angle threshold, the base of the PTZ 100 is considered to be inclined. If one of them is determined that the included angle of the base of the PTZ 100 with respect to the horizontal plane is not larger than the preset angle threshold, for example, the 1000th time If the preset conditions are met, it is considered that the base of the gimbal 100 is tilted by mistake. The next time the angle of the base of the gimbal 100 with respect to the horizontal plane is greater than a preset angle threshold, a new determination of the Whether the included angle of the base with respect to the horizontal plane is greater than a preset angle threshold, that is, when the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than the preset angle threshold, the timing is restarted.
如此,在预设时长内,若云台100的基座相对于水平面的夹角均大于预设角度阈值,则可以认为云台100的基座发生倾斜。In this way, if the included angle of the base of the PTZ 100 with respect to the horizontal plane is greater than a preset angle threshold within a preset time period, it can be considered that the base of the PTZ 100 is inclined.
以负载30为射击装置31为例,当检测到云台100的基座发生倾斜时,则可以认为移动小车1000在斜面上运动,此时,需要触发步骤S20。而在预设时长内,若云台100的基座相对于水平面的夹角出现小于预设角度阈值的情况,或者该夹角持续小于预设角度阈值的情况,则不触发步骤S20。Taking the load 30 as the shooting device 31 as an example, when it is detected that the base of the gimbal 100 is tilted, it can be considered that the moving cart 1000 moves on the inclined surface, and at this time, step S20 needs to be triggered. If the included angle of the base of the PTZ 100 with respect to the horizontal plane is smaller than the preset angle threshold within a preset period, or if the included angle is continuously smaller than the preset angle threshold, step S20 is not triggered.
示例性的,当移动小车1000为处于碾压石块等误认为云台100的基座发生倾斜的状态时,有可能会使云台100的基座在短时间内与水平面的夹角大于预设角度阈值。因此,通过设定预设时长,能够进一步地准确地判断云台100的基座是否处于需要触发步骤S20的倾斜情况。Exemplarily, when the moving trolley 1000 is in a state that the base of the pan / tilt head 100 is tilted, such as rolling stones, the angle between the base of the pan / tilt head 100 and the horizontal plane may be larger than a predetermined value in a short time. Set the angle threshold. Therefore, by setting the preset duration, it can be further accurately judged whether the base of the PTZ 100 is in a tilt situation that needs to trigger step S20.
在本实施例中,确定云台100的基座的姿态参数可以有以下两种方式:In this embodiment, the attitude parameters of the base of the PTZ 100 can be determined in the following two ways:
第一种方式:云台100上设有第一姿态传感器。云台100的当前姿态为通过第一姿态传感器采集。请参阅图21,步骤S71获取云台100的基座的姿态参数,包括以下子步骤:First method: a first attitude sensor is provided on the gimbal 100. The current attitude of the PTZ 100 is acquired by a first attitude sensor. Referring to FIG. 21, step S71 obtains the attitude parameters of the base of the PTZ 100, including the following sub-steps:
S711,依据云台100的当前姿态确定云台100的基座的姿态参数。S711. Determine a posture parameter of the base of the PTZ 100 according to the current posture of the PTZ 100.
请继续参阅图2、图3和图21,在本实施例中,处理器20还用于:依据云台100 的当前姿态确定云台100的基座的姿态参数。Please continue to refer to FIG. 2, FIG. 3, and FIG. 21. In this embodiment, the processor 20 is further configured to determine the attitude parameters of the base of the gimbal 100 according to the current attitude of the gimbal 100.
也即是说,步骤S711可以由处理器20实现。That is, step S711 may be implemented by the processor 20.
第一姿态传感器设置在云台100上并实时获取云台100的当前姿态。其中,第一姿态传感器可以为惯性测量单元(Inertial Measurement Unit,IMU)。IMU可包括三个单轴的加速度计和三个单轴的陀螺仪。利用IMU测量云台100在三维空间中的角速度和加速度,即可利用积分的方式解算出云台100的当前姿态。The first attitude sensor is set on the gimbal 100 and acquires the current attitude of the gimbal 100 in real time. The first attitude sensor may be an Inertial Measurement Unit (IMU). The IMU may include three single-axis accelerometers and three single-axis gyroscopes. Using the IMU to measure the angular velocity and acceleration of the gimbal 100 in the three-dimensional space, the current attitude of the gimbal 100 can be calculated by integrating.
在获取到云台100的当前姿态时,可以利用云台100与云台100的基座之间的关系,获取云台100的基座的姿态参数,并进一步判断云台100的基座是否发生倾斜。When the current attitude of the PTZ 100 is obtained, the relationship between the PTZ 100 and the base of the PTZ 100 can be used to obtain the attitude parameters of the PTZ 100's base and further determine whether the PTZ 100's base has occurred. tilt.
第二种方式:云台100的基座上设有第二姿态传感器。云台100的基座的姿态参数为通过第二姿态传感器采集。Second method: A second attitude sensor is provided on the base of the PTZ 100. The attitude parameter of the base of the gimbal 100 is acquired by a second attitude sensor.
也即,第二姿态传感器可以直接检测云台100的基座的姿态参数,以进一步判断云台100的基座是否发生倾斜。其中,第二姿态传感器可以为加速度计。That is, the second attitude sensor can directly detect the attitude parameter of the base of the PTZ 100 to further determine whether the base of the PTZ 100 is tilted. The second attitude sensor may be an accelerometer.
请参阅图22,在本实施例中,在依据云台100的当前姿态及期望欧拉角速度,确定云台100的期望姿态之前,即步骤S30之前,控制方法还包括以下步骤:Please refer to FIG. 22. In this embodiment, before determining the desired attitude of the PTZ 100 according to the current attitude of the PTZ 100 and the expected Euler angular velocity, that is, before step S30, the control method further includes the following steps:
S80,控制期望欧拉角速度中对应第三轴臂的速度为预设值,云台100未设有第三轴臂。In S80, the speed corresponding to the third axis arm in the expected Euler angular velocity is controlled to be a preset value, and the head 100 is not provided with a third axis arm.
请继续参阅图2和图22,在本实施例中,处理器20还用于:控制期望欧拉角速度中对应第三轴臂的速度为预设值,云台100未设有第三轴臂。Please continue to refer to FIG. 2 and FIG. 22. In this embodiment, the processor 20 is further configured to control the speed of the corresponding third axis arm of the desired Euler angular velocity to a preset value, and the gimbal 100 is not provided with a third axis arm. .
也即是说,步骤S80可以由处理器20实现。That is, step S80 may be implemented by the processor 20.
在获得期望欧拉角速度后,该期望欧拉角速度可以对应三个轴臂(对应偏航轴、俯仰轴和横滚轴)。然而,在两轴云台100或者只需控制云台100的两个轴臂的情况时,以对应偏航轴和俯仰轴为例,即使横滚轴对应的轴臂实际不存在,但由于计算欧拉角的原因,横滚轴对应的轴臂仍可以具有期望欧拉角速度。此时,可以将第三轴臂的速度设定为预设值,以防止电机扭矩输出饱和,影响对其他轴臂的控制。After the desired Euler angular velocity is obtained, the desired Euler angular velocity may correspond to three axis arms (corresponding to the yaw axis, the pitch axis, and the roll axis). However, in the case of the two-axis gimbal 100 or only the control of the two arm of the gimbal 100, taking the corresponding yaw axis and pitch axis as examples, even if the axis arm corresponding to the roll axis does not actually exist, but due to the calculation For Euler angle reasons, the axis arm corresponding to the roll axis can still have the desired Euler angular velocity. At this time, the speed of the third axis arm can be set to a preset value to prevent the motor torque output from being saturated and affect the control of other axis arms.
其中,预设值可以为诸如0。The preset value may be, for example, 0.
可以理解,若图3中的云台100不为三轴云台时,也可以控制云台100中第三轴臂的欧拉角速度为预设值。即本实施例可以适用于手持云台。It can be understood that if the pan / tilt head 100 in FIG. 3 is not a three-axis pan / tilt head, the Euler angular velocity of the third axis arm in the pan / tilt head 100 can also be controlled to a preset value. That is, this embodiment can be applied to a handheld gimbal.
可以理解,上述实施例中的不同之处,在可能的情况下,能够进行相应结合,以得到本文中未描述的其它实施例。本发明实施例中的云台100可以为任意构型的云台,也可以搭载任意负载30,可以适用于由于云台100的基座倾斜而导致无法有效控制云台100的姿态的情况。It can be understood that, where possible, the differences in the above embodiments can be correspondingly combined to obtain other embodiments not described herein. The pan / tilt head 100 in the embodiment of the present invention may be a pan / tilt with any configuration, and may also be loaded with any load 30, which is applicable to a situation where the posture of the pan / tilt head 100 cannot be effectively controlled due to the tilt of the base of the pan / tilt head 100.
请参阅图23,本发明实施方式的计算机可读存储介质300包括计算机程序,所述 计算机程序可被处理器20执行以完成上述任意一种实施方式的控制方法。Referring to FIG. 23, a computer-readable storage medium 300 according to an embodiment of the present invention includes a computer program that can be executed by the processor 20 to complete the control method of any one of the foregoing embodiments.
例如,请结合图1和图23,计算机程序可被处理器20执行以完成以下步骤所述的控制方法:For example, in conjunction with FIG. 1 and FIG. 23, the computer program may be executed by the processor 20 to complete the control method described in the following steps:
S10,获取云台100在云台关节角坐标系中的期望关节角速度;S10. Obtain the desired joint angular velocity of the gimbal 100 in the gimbal joint angular coordinate system;
S20,依据期望关节角速度、云台关节角坐标系和云台本体坐标系之间的转换关系、云台本体坐标系和欧拉坐标系之间的转换关系,将期望关节角速度转换为期望欧拉角速度;S20. Convert the expected joint angular velocity to the expected Euler according to the expected joint angular velocity, the conversion relationship between the PTZ joint angular coordinate system and the PTZ body coordinate system, and the conversion relationship between the PTZ body coordinate system and the Euler coordinate system. Angular velocity
S30,依据云台100的当前姿态及期望欧拉角速度,确定云台100的期望姿态。S30. Determine a desired attitude of the gimbal 100 according to the current attitude of the gimbal 100 and the expected Euler angular velocity.
再例如,请结合图6和图23,计算机程序还可被处理器20执行以完成以下步骤所述的控制方法:For another example, in conjunction with FIG. 6 and FIG. 23, the computer program can also be executed by the processor 20 to complete the control method described in the following steps:
S40,按照期望欧拉角速度,控制云台100转动至期望姿态。S40. Control the PTZ 100 to rotate to a desired attitude according to the desired Euler angular velocity.
在本发明的实施方式的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明的实施方式的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the embodiments of the present invention, it should be understood that the terms “first” and “second” are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the technical features indicated. quantity. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "a plurality" is two or more, unless it is specifically and specifically defined otherwise.
在本发明的实施方式的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明的实施方式中的具体含义。In the description of the embodiments of the present invention, it should be noted that the terms "installation", "connected", and "connected" should be understood in a broad sense unless explicitly stated and limited otherwise. For example, they may be fixed connections, or Removable connection or integral connection; can be mechanical connection, electrical connection or can communicate with each other; can be directly connected, or indirectly connected through an intermediate medium, can be the internal connection of two components or two components Interaction. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific situations.
本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, the descriptions with reference to the terms “one embodiment”, “some embodiments”, “exemplary embodiments”, “examples”, “specific examples” or “some examples” mean that the embodiments are combined with the embodiments The specific features, structures, materials, or characteristics described by the examples are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same implementation or example. Moreover, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more implementations or examples.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能, 这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process And, the scope of the preferred embodiments of the present invention includes additional implementations in which the functions may be performed out of the order shown or discussed, including performing the functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理模块的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(控制方法),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。Logic and / or steps represented in a flowchart or otherwise described herein, for example, a sequenced list of executable instructions that may be considered to implement a logical function, may be embodied in any computer-readable medium, For use by instruction execution systems, devices, or devices (such as computer-based systems, systems that include processing modules, or other systems that can take instructions from and execute instructions) Or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connections (control methods) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
应当理解,本发明的实施方式的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the embodiments of the present invention may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application-specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本发明的各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps carried by the methods in the foregoing embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium. The program is When executed, one or a combination of the steps of the method embodiment is included. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.
尽管上面已经示出和描述了本发明的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施实施进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present invention. Those skilled in the art can interpret the above within the scope of the present invention. Implementation Implement changes, modifications, replacements, and variations.

Claims (64)

  1. 一种云台的控制方法,其特征在于,所述控制方法包括:A control method for a pan / tilt head, characterized in that the control method includes:
    获取所述云台在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system;
    依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度;Convert the desired joint according to the desired joint angular velocity, the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system Conversion of angular velocity to desired Euler angular velocity;
    依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。Determining a desired attitude of the pan / tilt according to the current attitude of the pan / tilt and the expected Euler angular velocity.
  2. 根据权利要求1所述的控制方法,其特征在于,在所述依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态之后,所述控制方法还包括:The control method according to claim 1, wherein after determining the desired attitude of the gimbal according to the current attitude of the gimbal and the expected Euler angular velocity, the control method further comprises:
    按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。Controlling the head to rotate to the desired attitude according to the desired Euler angular velocity.
  3. 根据权利要求2所述的控制方法,其特征在于,所述按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态包括:The control method according to claim 2, wherein the controlling the pan / tilt head to rotate to the desired attitude according to the desired Euler angular velocity comprises:
    在发生预设拍摄触发事件时,按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。When a preset shooting trigger event occurs, the pan / tilt is controlled to rotate to the desired attitude according to the desired Euler angular velocity.
  4. 根据权利要求1所述的控制方法,其特征在于,所述获取所述云台在云台关节角坐标系中的期望关节角速度包括:The control method according to claim 1, wherein the obtaining a desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system comprises:
    接收用于控制所述云台的转动速度的输入信息;Receiving input information for controlling a rotation speed of the head;
    依据所述输入信息,确定所述云台在所述云台关节角坐标系中的期望关节角速度。According to the input information, a desired joint angular velocity of the gimbal in the gimbal joint angular coordinate system is determined.
  5. 根据权利要求4所述的控制方法,其特征在于,所述输入信息包括期望关节角,所述依据所述输入信息,确定所述云台在所述云台关节角坐标系中的期望关节角速度包括:The control method according to claim 4, wherein the input information includes a desired joint angle, and the desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system is determined according to the input information. include:
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在所述云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  6. 根据权利要求5所述的控制方法,其特征在于,所述期望关节角包括多个,所述依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在所述云台关节角坐标系中的期望关节角速度包括:The control method according to claim 5, wherein the desired joint angle includes a plurality of, and the determining is performed on the pan / tilt head based on the desired joint angle, the current posture, and a preset exercise time. The expected joint angular velocity in the gimbal joint angular coordinate system includes:
    依据多个所述期望关节角、所述当前姿态以及所述预设运动时间,确定所述云台在所 述云台关节角坐标系中相应于各个期望运动路径的期望关节角速度,各个所述期望运动路径为根据多个所述期望关节角、所述当前姿态确定。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system corresponding to each desired motion path according to a plurality of the desired joint angle, the current posture, and the preset movement time, each of the The desired motion path is determined according to a plurality of the desired joint angles and the current posture.
  7. 根据权利要求4所述的控制方法,其特征在于,所述输入信息包括期望运动路径,所述依据所述输入信息,确定所述云台在云台关节角坐标系中的期望关节角速度包括:The control method according to claim 4, wherein the input information includes a desired motion path, and determining the desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system based on the input information includes:
    依据所述期望运动路径确定所述云台的期望关节角;Determining a desired joint angle of the gimbal according to the desired motion path;
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  8. 根据权利要求7所述的控制方法,其特征在于,所述期望运动路径为依据人力掰动所述云台时所述云台的姿态变化确定。The control method according to claim 7, wherein the desired motion path is determined according to a change in attitude of the pan / tilt when a human moves the pan / tilt.
  9. 根据权利要求8所述的控制方法,其特征在于,所述云台上搭载有成像装置,所述控制方法还包括:The control method according to claim 8, wherein an imaging device is mounted on the gimbal, and the control method further comprises:
    在人力掰动所述云台的过程中,输出所述成像装置的预览画面。In the process of manually moving the pan / tilt, a preview screen of the imaging device is output.
  10. 根据权利要求4所述的控制方法,其特征在于,所述依据所述输入信息,确定所述云台在所述云台关节角坐标系中的期望关节角速度包括:The control method according to claim 4, wherein determining the expected joint angular velocity of the gimbal in the gimbal joint angle coordinate system based on the input information comprises:
    在多个历史速度模式中确定与所述输入信息匹配的目标速度模式;Determining a target speed pattern matching the input information among a plurality of historical speed patterns;
    依据所述目标速度模式,确定所述云台在云台关节角坐标系中的期望关节角速度。According to the target speed mode, a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system is determined.
  11. 根据权利要求4所述的控制方法,其特征在于,所述输入信息包括摇杆操作杆量,所述依据所述输入信息,确定所述云台在云台关节角坐标系中的期望关节角速度包括:The control method according to claim 4, wherein the input information includes a joystick operation lever amount, and the desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system is determined according to the input information. include:
    依据所述摇杆操作杆量以及预设摇杆操作杆量与关节角速度的对应关系,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system according to the correspondence between the amount of the joystick control lever and the preset joystick control lever amount and the joint angular velocity.
  12. 根据权利要求1所述的控制方法,其特征在于,所述获取所述云台在云台关节角坐标系中的期望关节角速度包括:The control method according to claim 1, wherein the obtaining a desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system comprises:
    获取所述云台中的第一轴臂在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the first axis arm in the gimbal in a gimbal joint angular coordinate system;
    在所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度之前,所述控制方法还包括:According to the conversion relationship between the desired joint angular velocity, the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system, Before the desired joint angular velocity is converted into the desired Euler angular velocity, the control method further includes:
    检测所述云台中的第二轴臂是否处于增稳模式,所述第一轴臂用于带动所述第二轴臂转动;Detecting whether a second axis arm in the gimbal is in a stabilization mode, and the first axis arm is used to drive the second axis arm to rotate;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  13. 根据权利要求12所述的控制方法,其特征在于,所述第一轴臂包括偏航轴轴臂,所述第二轴臂包括俯仰轴轴臂和/或横滚轴轴臂。The control method according to claim 12, wherein the first axis arm comprises a yaw axis axis arm, and the second axis arm comprises a pitch axis axis arm and / or a roll axis axis arm.
  14. 根据权利要求1至13中任一项所述的控制方法,其特征在于,所述云台上搭载有射击装置。The control method according to any one of claims 1 to 13, wherein a shooting device is mounted on the head.
  15. 根据权利要求1至13中任一项所述的控制方法,其特征在于,在所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度之前,所述控制方法还包括:The control method according to any one of claims 1 to 13, characterized in that, according to the conversion relationship between the desired joint angular velocity, the gimbal joint angle coordinate system and the gimbal body coordinate system, Before the conversion relationship between the gimbal body coordinate system and the Euler coordinate system, before converting the desired joint angular velocity to the desired Euler angular velocity, the control method further includes:
    检测所述云台的基座是否发生倾斜;Detecting whether the base of the gimbal is tilted;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  16. 根据权利要求15所述的控制方法,其特征在于,所述检测所述云台的基座是否发生倾斜包括:The control method according to claim 15, wherein the detecting whether the base of the pan / tilt is tilted comprises:
    获取所述云台的基座的姿态参数;Acquiring attitude parameters of the base of the gimbal;
    依据所述姿态参数,判断所述云台的基座相对于水平面的夹角是否大于预设角度阈值;Determining whether the included angle of the base of the head relative to the horizontal plane is greater than a preset angle threshold according to the attitude parameter;
    若是,则确定所述基座发生倾斜。If yes, it is determined that the base is tilted.
  17. 根据权利要求16所述的控制方法,其特征在于,所述判断所述云台的基座相对于水平面的夹角是否大于预设角度阈值包括:The control method according to claim 16, wherein the determining whether an included angle of the base of the head relative to a horizontal plane is greater than a preset angle threshold comprises:
    判断预设时长内所述云台的基座相对于水平面的夹角是否均大于预设角度阈值。It is determined whether an included angle of the base of the pan / tilt head with respect to a horizontal plane within a preset time period is greater than a preset angle threshold.
  18. 根据权利要求16所述的控制方法,其特征在于,所述云台上设有第一姿态传感器, 所述云台的当前姿态为通过所述第一姿态传感器采集,所述获取所述云台的基座的姿态参数包括:The control method according to claim 16, wherein a first posture sensor is provided on the pan / tilt head, and the current posture of the pan / tilt head is acquired by the first posture sensor, and the acquiring the pan / tilt head The attitude parameters of the base include:
    依据所述云台的当前姿态确定所述云台的基座的姿态参数。The attitude parameter of the base of the gimbal is determined according to the current attitude of the gimbal.
  19. 根据权利要求16所述的控制方法,其特征在于,所述云台的基座上设有第二姿态传感器,所述云台的基座的姿态参数为通过所述第二姿态传感器采集。The control method according to claim 16, wherein a second attitude sensor is provided on a base of the pan / tilt head, and an attitude parameter of the base of the pan / tilt head is collected by the second attitude sensor.
  20. 根据权利要求1所述的控制方法,其特征在于,在所述依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态之前,所述控制方法还包括:The control method according to claim 1, before the determining the desired attitude of the gimbal according to the current attitude of the gimbal and the expected Euler angular velocity, the control method further comprises:
    控制所述期望欧拉角速度中对应第三轴臂的速度为预设值,所述云台未设有所述第三轴臂。The speed of the corresponding third axis arm in the desired Euler angular velocity is controlled to a preset value, and the head is not provided with the third axis arm.
  21. 根据权利要求20所述的控制方法,其特征在于,所述第三轴臂包括横滚轴轴臂。The control method according to claim 20, wherein the third axis arm comprises a roll axis axis arm.
  22. 一种云台,其特征在于,所述云台包括处理器,所述处理器用于:A pan / tilt head characterized in that the pan / tilt head includes a processor, and the processor is used for:
    获取所述云台在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system;
    依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度;Convert the desired joint according to the desired joint angular velocity, the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system Conversion of angular velocity to desired Euler angular velocity;
    依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。Determining a desired attitude of the pan / tilt according to the current attitude of the pan / tilt and the expected Euler angular velocity.
  23. 根据权利要求22所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 22, wherein the processor is further configured to:
    按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。Controlling the head to rotate to the desired attitude according to the desired Euler angular velocity.
  24. 根据权利要求23所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 23, wherein the processor is further configured to:
    在发生预设拍摄触发事件时,按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。When a preset shooting trigger event occurs, the pan / tilt is controlled to rotate to the desired attitude according to the desired Euler angular velocity.
  25. 根据权利要求22所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 22, wherein the processor is further configured to:
    接收用于控制所述云台的转动速度的输入信息;Receiving input information for controlling a rotation speed of the head;
    依据所述输入信息,确定所述云台在所述云台关节角坐标系中的期望关节角速度。According to the input information, a desired joint angular velocity of the gimbal in the gimbal joint angular coordinate system is determined.
  26. 根据权利要求25所述的云台,其特征在于,所述输入信息包括期望关节角,所述处理器还用于:The gimbal of claim 25, wherein the input information includes a desired joint angle, and the processor is further configured to:
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在所述云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  27. 根据权利要求26所述的云台,其特征在于,所述期望关节角包括多个,所述处理器还用于:The gimbal of claim 26, wherein the desired joint angle comprises a plurality of, and the processor is further configured to:
    依据多个所述期望关节角、所述当前姿态以及所述预设运动时间,确定所述云台在所述云台关节角坐标系中相应于各个期望运动路径的期望关节角速度,各个所述期望运动路径为根据多个所述期望关节角、所述当前姿态确定。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system corresponding to each desired motion path according to a plurality of the desired joint angle, the current posture, and the preset movement time, each of the The desired motion path is determined according to a plurality of the desired joint angles and the current posture.
  28. 根据权利要求25所述的云台,其特征在于,所述输入信息包括期望运动路径,所述处理器还用于:The gimbal of claim 25, wherein the input information includes a desired motion path, and the processor is further configured to:
    依据所述期望运动路径确定所述云台的期望关节角;Determining a desired joint angle of the gimbal according to the desired motion path;
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  29. 根据权利要求28所述的云台,其特征在于,所述期望运动路径为依据人力掰动所述云台时所述云台的姿态变化确定。The gimbal of claim 28, wherein the desired motion path is determined based on a change in attitude of the gimbal when a human is moving the gimbal.
  30. 根据权利要求29所述的云台,其特征在于,所述云台上搭载有成像装置,所述处理器还用于:The gimbal of claim 29, wherein an imaging device is mounted on the gimbal, and the processor is further configured to:
    在人力掰动所述云台的过程中,输出所述成像装置的预览画面。In the process of manually moving the pan / tilt, a preview screen of the imaging device is output.
  31. 根据权利要求25所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 25, wherein the processor is further configured to:
    在多个历史速度模式中确定与所述输入信息匹配的目标速度模式;Determining a target speed pattern matching the input information among a plurality of historical speed patterns;
    依据所述目标速度模式,确定所述云台在云台关节角坐标系中的期望关节角速度。According to the target speed mode, a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system is determined.
  32. 根据权利要求25所述的云台,其特征在于,所述输入信息包括摇杆操作杆量,所述处理器还用于:The gimbal of claim 25, wherein the input information includes a joystick operation lever amount, and the processor is further configured to:
    依据所述摇杆操作杆量以及预设摇杆操作杆量与关节角速度的对应关系,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system according to the correspondence between the amount of the joystick control lever and the preset joystick control lever amount and the joint angular velocity.
  33. 根据权利要求22所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 22, wherein the processor is further configured to:
    获取所述云台中的第一轴臂在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the first axis arm in the gimbal in a gimbal joint angular coordinate system;
    检测所述云台中的第二轴臂是否处于增稳模式,所述第一轴臂用于带动所述第二轴臂转动;Detecting whether a second axis arm in the gimbal is in a stabilization mode, and the first axis arm is used to drive the second axis arm to rotate;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  34. 根据权利要求33所述的云台,其特征在于,所述第一轴臂包括偏航轴轴臂,所述第二轴臂包括俯仰轴轴臂和/或横滚轴轴臂。The gimbal of claim 33, wherein the first axis arm comprises a yaw axis axis arm, and the second axis arm comprises a pitch axis axis arm and / or a roll axis axis arm.
  35. 根据权利要求22至34中任一项所述的云台,其特征在于,所述云台上搭载有射击装置。The gimbal according to any one of claims 22 to 34, wherein a shooting device is mounted on the gimbal.
  36. 根据权利要求22至34中任一项所述的云台,其特征在于,所述处理器还用于:The gimbal according to any one of claims 22 to 34, wherein the processor is further configured to:
    检测所述云台的基座是否发生倾斜;Detecting whether the base of the gimbal is tilted;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  37. 根据权利要求36所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 36, wherein the processor is further configured to:
    获取所述云台的基座的姿态参数;Acquiring attitude parameters of the base of the gimbal;
    依据所述姿态参数,判断所述云台的基座相对于水平面的夹角是否大于预设角度阈值;Determining whether the included angle of the base of the head relative to the horizontal plane is greater than a preset angle threshold according to the attitude parameter;
    若是,则确定所述基座发生倾斜。If yes, it is determined that the base is tilted.
  38. 根据权利要求37所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 37, wherein the processor is further configured to:
    判断预设时长内所述云台的基座相对于水平面的夹角是否均大于预设角度阈值。It is determined whether an included angle of the base of the pan / tilt head with respect to a horizontal plane within a preset time period is greater than a preset angle threshold.
  39. 根据权利要求37所述的云台,其特征在于,所述云台上设有第一姿态传感器,所述云台的当前姿态为通过所述第一姿态传感器采集,所述处理器还用于:The pan / tilt head according to claim 37, wherein a first posture sensor is provided on the pan / tilt head, and a current posture of the pan / tilt head is acquired by the first posture sensor, and the processor is further configured to: :
    依据所述云台的当前姿态确定所述云台的基座的姿态参数。The attitude parameter of the base of the gimbal is determined according to the current attitude of the gimbal.
  40. 根据权利要求37所述的云台,其特征在于,所述云台的基座上设有第二姿态传感器,所述云台的基座的姿态参数为通过所述第二姿态传感器采集。The gimbal of claim 37, wherein a second attitude sensor is provided on a base of the gimbal, and an attitude parameter of the base of the gimbal is collected by the second attitude sensor.
  41. 根据权利要求22所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 22, wherein the processor is further configured to:
    控制所述期望欧拉角速度中对应第三轴臂的速度为预设值,所述云台未设有所述第三轴臂。The speed of the corresponding third axis arm in the desired Euler angular velocity is controlled to a preset value, and the head is not provided with the third axis arm.
  42. 根据权利要求41所述的云台,其特征在于,所述第三轴臂包括横滚轴轴臂。The head of claim 41, wherein the third axis arm comprises a roll axis axis arm.
  43. 一种可移动平台,其特征在于,包括:A movable platform, comprising:
    本体;及The ontology; and
    云台,所述云台设置在所述本体上,所述云台包括处理器,所述处理器用于:A gimbal, the gimbal being disposed on the body, the gimbal comprising a processor, the processor being configured to:
    获取所述云台在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system;
    依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度;Convert the desired joint according to the desired joint angular velocity, the conversion relationship between the gimbal joint angle coordinate system and the gimbal body coordinate system, and the conversion relationship between the gimbal body coordinate system and Euler coordinate system Conversion of angular velocity to desired Euler angular velocity;
    依据所述云台的当前姿态及所述期望欧拉角速度,确定所述云台的期望姿态。Determining a desired attitude of the pan / tilt according to the current attitude of the pan / tilt and the expected Euler angular velocity.
  44. 根据权利要求43所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 43, wherein the processor is further configured to:
    按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。Controlling the head to rotate to the desired attitude according to the desired Euler angular velocity.
  45. 根据权利要求44所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 44, wherein the processor is further configured to:
    在发生预设拍摄触发事件时,按照所述期望欧拉角速度,控制所述云台转动至所述期望姿态。When a preset shooting trigger event occurs, the pan / tilt is controlled to rotate to the desired attitude according to the desired Euler angular velocity.
  46. 根据权利要求43所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 43, wherein the processor is further configured to:
    接收用于控制所述云台的转动速度的输入信息;Receiving input information for controlling a rotation speed of the head;
    依据所述输入信息,确定所述云台在所述云台关节角坐标系中的期望关节角速度。According to the input information, a desired joint angular velocity of the gimbal in the gimbal joint angular coordinate system is determined.
  47. 根据权利要求46所述的可移动平台,其特征在于,所述输入信息包括期望关节角,所述处理器还用于:The movable platform according to claim 46, wherein the input information includes a desired joint angle, and the processor is further configured to:
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在所述云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  48. 根据权利要求47所述的可移动平台,其特征在于,所述期望关节角包括多个,所述处理器还用于:The movable platform according to claim 47, wherein the desired joint angle comprises a plurality of, and the processor is further configured to:
    依据多个所述期望关节角、所述当前姿态以及所述预设运动时间,确定所述云台在所述云台关节角坐标系中相应于各个期望运动路径的期望关节角速度,各个所述期望运动路径为根据多个所述期望关节角、所述当前姿态确定。Determining a desired joint angular velocity of the gimbal in the gimbal joint angle coordinate system corresponding to each desired motion path according to a plurality of the desired joint angle, the current posture, and the preset movement time, The desired motion path is determined according to a plurality of the desired joint angles and the current posture.
  49. 根据权利要求46所述的可移动平台,其特征在于,所述输入信息包括期望运动路径,所述处理器还用于:The movable platform according to claim 46, wherein the input information includes a desired motion path, and the processor is further configured to:
    依据所述期望运动路径确定所述云台的期望关节角;Determining a desired joint angle of the gimbal according to the desired motion path;
    依据所述期望关节角、所述当前姿态以及预设运动时间,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angle coordinate system according to the desired joint angle, the current posture, and a preset motion time.
  50. 根据权利要求49所述的可移动平台,其特征在于,所述期望运动路径为依据人力掰动所述云台时所述云台的姿态变化确定。The movable platform according to claim 49, wherein the desired motion path is determined based on a change in attitude of the pan / tilt when a human moves the pan / tilt.
  51. 根据权利要求50所述的可移动平台,其特征在于,所述云台上搭载有成像装置,所述处理器还用于:The movable platform according to claim 50, wherein an imaging device is mounted on the gimbal, and the processor is further configured to:
    在人力掰动所述云台的过程中,输出所述成像装置的预览画面。In the process of manually moving the pan / tilt, a preview screen of the imaging device is output.
  52. 根据权利要求46所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 46, wherein the processor is further configured to:
    在多个历史速度模式中确定与所述输入信息匹配的目标速度模式;Determining a target speed pattern matching the input information among a plurality of historical speed patterns;
    依据所述目标速度模式,确定所述云台在云台关节角坐标系中的期望关节角速度。According to the target speed mode, a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system is determined.
  53. 根据权利要求46所述的可移动平台,其特征在于,所述输入信息包括摇杆操作杆量,所述处理器还用于:The movable platform according to claim 46, wherein the input information includes a joystick operation lever amount, and the processor is further configured to:
    依据所述摇杆操作杆量以及预设摇杆操作杆量与关节角速度的对应关系,确定所述云台在云台关节角坐标系中的期望关节角速度。Determining a desired joint angular velocity of the gimbal in a gimbal joint angular coordinate system according to the correspondence between the amount of the joystick control lever and the preset joystick control lever amount and the joint angular velocity.
  54. 根据权利要求43所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 43, wherein the processor is further configured to:
    获取所述云台中的第一轴臂在云台关节角坐标系中的期望关节角速度;Obtaining a desired joint angular velocity of the first axis arm in the gimbal in a gimbal joint angular coordinate system;
    检测所述云台中的第二轴臂是否处于增稳模式,所述第一轴臂用于带动所述第二轴臂转动;Detecting whether a second axis arm in the gimbal is in a stabilization mode, and the first axis arm is used to drive the second axis arm to rotate;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  55. 根据权利要求54所述的可移动平台,其特征在于,所述第一轴臂包括偏航轴轴臂,所述第二轴臂包括俯仰轴轴臂和/或横滚轴轴臂。The movable platform according to claim 54, wherein the first axis arm comprises a yaw axis axis arm, and the second axis arm comprises a pitch axis axis arm and / or a roll axis axis arm.
  56. 根据权利要求43至55中任一项所述的可移动平台,其特征在于,所述云台上搭载有射击装置。The movable platform according to any one of claims 43 to 55, wherein a shooting device is mounted on the head.
  57. 根据权利要求43至55中任一项所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to any one of claims 43 to 55, wherein the processor is further configured to:
    检测所述云台的基座是否发生倾斜;Detecting whether the base of the gimbal is tilted;
    若是,则触发所述依据所述期望关节角速度、所述云台关节角坐标系和云台本体坐标系之间的转换关系、所述云台本体坐标系和欧拉坐标系之间的转换关系,将所述期望关节角速度转换为期望欧拉角速度的步骤。If yes, triggering the conversion relationship between the joint angle coordinate system of the gimbal and the coordinate system of the gimbal body according to the expected joint angular velocity, the conversion relationship between the coordinate system of the gimbal body and Euler coordinate system Step of converting the desired joint angular velocity into a desired Euler angular velocity.
  58. 根据权利要求57所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 57, wherein the processor is further configured to:
    获取所述云台的基座的姿态参数;Acquiring attitude parameters of the base of the gimbal;
    依据所述姿态参数,判断所述云台的基座相对于水平面的夹角是否大于预设角度阈值;Determining whether the included angle of the base of the head relative to the horizontal plane is greater than a preset angle threshold according to the attitude parameter;
    若是,则确定所述基座发生倾斜。If yes, it is determined that the base is tilted.
  59. 根据权利要求58所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 58, wherein the processor is further configured to:
    判断预设时长内所述云台的基座相对于水平面的夹角是否均大于预设角度阈值。It is determined whether an included angle of the base of the pan / tilt head with respect to a horizontal plane within a preset time period is greater than a preset angle threshold.
  60. 根据权利要求58所述的可移动平台,其特征在于,所述云台上设有第一姿态传感器,所述云台的当前姿态为通过所述第一姿态传感器采集,所述处理器还用于:The movable platform according to claim 58, wherein a first attitude sensor is provided on the gimbal, and the current attitude of the gimbal is acquired by the first attitude sensor, and the processor further uses to:
    依据所述云台的当前姿态确定所述云台的基座的姿态参数。The attitude parameter of the base of the gimbal is determined according to the current attitude of the gimbal.
  61. 根据权利要求58所述的可移动平台,其特征在于,所述云台的基座上设有第二姿态传感器,所述云台的基座的姿态参数为通过所述第二姿态传感器采集。The movable platform according to claim 58, wherein a second attitude sensor is provided on a base of the pan / tilt head, and an attitude parameter of the base of the pan / tilt head is collected by the second attitude sensor.
  62. 根据权利要求43所述的可移动平台,其特征在于,所述处理器还用于:The movable platform according to claim 43, wherein the processor is further configured to:
    控制所述期望欧拉角速度中对应第三轴臂的速度为预设值,所述云台未设有所述第三轴臂。The speed of the corresponding third axis arm in the desired Euler angular velocity is controlled to a preset value, and the head is not provided with the third axis arm.
  63. 根据权利要求62所述的可移动平台,其特征在于,所述第三轴臂包括横滚轴轴臂。The movable platform of claim 62, wherein the third axis arm comprises a roll axis axis arm.
  64. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序可被处理器执行以完成权利要求1至21中任一项所述的控制方法。A computer-readable storage medium storing a computer program, wherein the computer program is executable by a processor to complete the control method according to any one of claims 1 to 21.
PCT/CN2018/109185 2018-09-30 2018-09-30 Cradle head control method, cradle head, movable platform and readable storage medium WO2020062281A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880087828.1A CN111656298A (en) 2018-09-30 2018-09-30 Control method of holder, movable platform and readable storage medium
PCT/CN2018/109185 WO2020062281A1 (en) 2018-09-30 2018-09-30 Cradle head control method, cradle head, movable platform and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/109185 WO2020062281A1 (en) 2018-09-30 2018-09-30 Cradle head control method, cradle head, movable platform and readable storage medium

Publications (1)

Publication Number Publication Date
WO2020062281A1 true WO2020062281A1 (en) 2020-04-02

Family

ID=69950953

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109185 WO2020062281A1 (en) 2018-09-30 2018-09-30 Cradle head control method, cradle head, movable platform and readable storage medium

Country Status (2)

Country Link
CN (1) CN111656298A (en)
WO (1) WO2020062281A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021243527A1 (en) * 2020-06-01 2021-12-09 深圳市大疆创新科技有限公司 Gimbal control method, handheld gimbal, and computer-readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114585881A (en) * 2020-10-29 2022-06-03 深圳市大疆创新科技有限公司 Control method of holder, equipment and storage medium
CN115008468A (en) * 2022-07-04 2022-09-06 中国科学院沈阳自动化研究所 Mechanical arm attitude speed planning control method
CN115268510B (en) * 2022-09-23 2022-12-20 天津云圣智能科技有限责任公司 Holder control method, holder control device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310680A1 (en) * 2007-06-18 2008-12-18 Honda Elesys Co., Ltd. Frontal View Imaging and Control Device Installed on Movable Object
CN105588562A (en) * 2015-12-16 2016-05-18 北京理工大学 Method for modulating angular movement of isolation carrier in inertial navigation system through rotation
JP2016086212A (en) * 2014-10-23 2016-05-19 キヤノン株式会社 Monitoring camera
CN105643589A (en) * 2016-03-08 2016-06-08 北京工业大学 Autonomous obstacle removal type intelligent vehicle system
CN108513610A (en) * 2017-04-21 2018-09-07 深圳市大疆灵眸科技有限公司 A kind of holder Attitude estimation method, apparatus and corresponding holder
CN108549399A (en) * 2018-05-23 2018-09-18 深圳市道通智能航空技术有限公司 Vehicle yaw corner correcting method, device and aircraft

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000083244A (en) * 1998-09-04 2000-03-21 Canon Inc Camera device, video transmitter, video receiver, method for controlling attitude of camera, video display method and storage medium
EP3549872B1 (en) * 2011-09-09 2021-02-24 SZ DJI Osmo Technology Co., Ltd. Dual-axis platform for use in a small unmanned aerial vehicle and tri-axis platform for use in a small unmanned aerial vehicle
CN205490863U (en) * 2015-12-23 2016-08-17 大连海事大学 On -board video machinery is steady for instance system based on inertial sensor
CN207809802U (en) * 2017-11-29 2018-09-04 云南电网有限责任公司玉溪供电局 A kind of aircraft inclination flight Self-stabilization holder
CN107968915B (en) * 2017-12-04 2020-02-14 国网山东省电力公司电力科学研究院 Real-time control system and method for underwater robot camera pan-tilt

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310680A1 (en) * 2007-06-18 2008-12-18 Honda Elesys Co., Ltd. Frontal View Imaging and Control Device Installed on Movable Object
JP2016086212A (en) * 2014-10-23 2016-05-19 キヤノン株式会社 Monitoring camera
CN105588562A (en) * 2015-12-16 2016-05-18 北京理工大学 Method for modulating angular movement of isolation carrier in inertial navigation system through rotation
CN105643589A (en) * 2016-03-08 2016-06-08 北京工业大学 Autonomous obstacle removal type intelligent vehicle system
CN108513610A (en) * 2017-04-21 2018-09-07 深圳市大疆灵眸科技有限公司 A kind of holder Attitude estimation method, apparatus and corresponding holder
CN108549399A (en) * 2018-05-23 2018-09-18 深圳市道通智能航空技术有限公司 Vehicle yaw corner correcting method, device and aircraft

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021243527A1 (en) * 2020-06-01 2021-12-09 深圳市大疆创新科技有限公司 Gimbal control method, handheld gimbal, and computer-readable storage medium

Also Published As

Publication number Publication date
CN111656298A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
WO2020062281A1 (en) Cradle head control method, cradle head, movable platform and readable storage medium
CN109071034B (en) Method for switching operating modes of holder, controller and image stability augmentation equipment
US9635254B2 (en) Panoramic scene capturing and browsing mobile device, system and method
WO2021026789A1 (en) Photographing method based on handheld gimbal, and handheld gimbal and storage medium
CN111279113B (en) Handheld holder control method and handheld holder
WO2019227384A1 (en) Pan-tilt control method and pan-tilt
WO2019227441A1 (en) Video control method and device of movable platform
WO2020215215A1 (en) Gimbal control method and device, gimbal, system and storage medium
WO2019051640A1 (en) Control method for pan-tilt, controller, and pan-tilt
WO2019195991A1 (en) Trajectory determination and time-lapse photography methods, device, and machine readable storage medium
US20210240059A1 (en) Imaging method and imaging system
WO2018191969A1 (en) Camera mount control method and device
US20210247783A1 (en) Method for controlling handheld gimbal, and handheld gimbal
WO2021134644A1 (en) Gimbal control method and gimbal
WO2023072088A1 (en) Focusing method and apparatus
WO2022061537A1 (en) Control method, handheld gimbal, system, and computer-readable storage medium
WO2020107284A1 (en) Mode switching method and device for tripod head, movable platform, and storage medium
WO2019227410A1 (en) Attitude conversion method, attitude display method, and pan-tilt system
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
WO2022061541A1 (en) Control method, handheld gimbal, system, and computer-readable storage medium
WO2023179440A1 (en) Shooting apparatus control method and apparatus, shooting apparatus and electronic device
WO2021026784A1 (en) Tracking photography method, gimbal control method, photographic apparatus, handheld gimbal and photographic system
WO2021146908A1 (en) Gimbal and control method therefor
WO2022041013A1 (en) Control method, handheld gimbal, system, and computer readable storage medium
WO2022021092A1 (en) Gimbal control method and apparatus, device, and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18935416

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

Country of ref document: EP

Kind code of ref document: A1