WO2020042134A1 - Control method for gimbal, gimbal, and mobile platform - Google Patents

Control method for gimbal, gimbal, and mobile platform Download PDF

Info

Publication number
WO2020042134A1
WO2020042134A1 PCT/CN2018/103441 CN2018103441W WO2020042134A1 WO 2020042134 A1 WO2020042134 A1 WO 2020042134A1 CN 2018103441 W CN2018103441 W CN 2018103441W WO 2020042134 A1 WO2020042134 A1 WO 2020042134A1
Authority
WO
WIPO (PCT)
Prior art keywords
gimbal
gravity
center
axis
controlling
Prior art date
Application number
PCT/CN2018/103441
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 CN201880038809.XA priority Critical patent/CN110785725A/en
Priority to PCT/CN2018/103441 priority patent/WO2020042134A1/en
Publication of WO2020042134A1 publication Critical patent/WO2020042134A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64UUNMANNED AERIAL VEHICLES [UAV]; EQUIPMENT THEREFOR
    • B64U20/00Constructional aspects of UAVs
    • B64U20/80Arrangement of on-board electronics, e.g. avionics systems or wiring
    • B64U20/87Mounting of imaging devices, e.g. mounting of gimbals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/10Control of position or direction without using feedback
    • 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 and a mobile platform.
  • PTZ is generally used to stabilize the load.
  • the load can be a camera, mobile phone, sensor, etc. Users can carry various loads on the gimbal as needed. However, due to the uncertainty of the load, it is difficult to balance the center of gravity of the gimbal. When the gimbal is powered off or hibernated, because the gimbal's motor stops working, the gimbal will directly hit the limit (the mechanical limit of the rotating structure of the gimbal) due to its own gravity. There is a risk of damage over time. .
  • Embodiments of the present invention provide a control method for a PTZ, a PTZ and a mobile platform.
  • the method for controlling a pan / tilt includes: detecting a position of a center of gravity of the pan / tilt; if the position of the center of gravity is located on a first side or a second side of a vertical plane in which a rotation axis of the pan / tilt is located,
  • the position of the center of gravity is to plan motion parameters of the gimbal, and the first side and the second side are opposite sides; and to control the side of the gimbal to the position of the center of gravity position according to the motion parameter.
  • the gimbal includes a processor, the processor is configured to: detect a position of a center of gravity of the gimbal; if the position of the center of gravity is located on a first side or a first side of a vertical plane in which a rotation axis of the gimbal is located; On both sides, the movement parameters of the gimbal are planned according to the position of the center of gravity, and the first side and the second side are opposite sides; and the gimbal is controlled to the center of gravity according to the motion parameters. Position the side to the static equilibrium position.
  • the mobile platform according to the embodiment of the present invention includes a mobile platform body and the pan / tilt head of the foregoing embodiment, and the pan / tilt head is disposed on the mobile platform body.
  • the control method of the gimbal, the gimbal and the mobile platform according to the embodiments of the present invention can plan the motion parameters of the gimbal according to the position of the center of gravity of the gimbal to control the gimbal to move gently to the side where the center of gravity position is located to a static equilibrium position. This prevents the head from crashing due to gravity directly hitting the limit.
  • FIG. 1 is a schematic flowchart of a control method for a pan / tilt according to some embodiments of the present invention
  • FIG. 2 is a schematic structural diagram of a pan / tilt head according to some embodiments of the present invention.
  • 3 to 6 are schematic diagrams of application scenarios of a control method for a pan / tilt according to some embodiments of the present invention.
  • FIG. 7 to 14 are schematic flowcharts of a control method of a pan / tilt head according to some embodiments of the present invention.
  • connection should be understood in a broad sense, unless it is explicitly stated and limited otherwise.
  • connection may be a fixed connection, a detachable connection, or an integral unit.
  • Connection can be mechanical connection, electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction between two elements.
  • specific meanings of the above terms in the embodiments of the present invention can be understood according to specific situations.
  • a control method of the pan / tilt head 10 includes:
  • the gimbal 10 includes a processor 11.
  • the control method of the pan / tilt head 10 according to the embodiment of the present invention can be implemented by the pan / tilt head 10 according to the embodiment of the present invention.
  • the processor 11 may be used to execute the methods in 012, 014, and 016.
  • the processor 11 can be used to: detect the position of the center of gravity of the gimbal 10; if the position of the center of gravity is located on the first side or the second side of the vertical plane where the rotation axis of the gimbal 10 is located, plan the cloud according to the position of the center of gravity
  • the movement parameters of the platform 10, the first side and the second side are opposite sides; and according to the movement parameters, the head 10 is controlled to move to the side where the center of gravity is located to the static equilibrium position.
  • the head 10 may be a three-axis head, a two-axis head, a single-axis head, or the like.
  • the embodiment of the present invention is described by taking the pan-tilt head 10 as a three-axis pan-tilt head as an example.
  • the pan-tilt head 10 may be configured to rotate about the pitch axis 12, the roll axis 13, and the yaw axis 14. It can be understood that when the gimbal 10 is a two-axis gimbal, the gimbal 10 can be configured to rotate about any two of the pitch axis 12, the roll axis 13, and the yaw axis 14.
  • the pan / tilt head 10 can be configured to rotate around any one of the pitch axis 12, the roll axis 13, and the yaw axis 14. It should be noted that the above-mentioned pitch axis 12, roll axis 13 and yaw axis 14 are relative to the geodetic coordinate system.
  • the pitch axis 12 becomes a roll axis 13
  • the roll axis 13 becomes a yaw axis 14
  • the yaw axis 14 becomes a roll axis 13, and the like.
  • the pan-tilt head 10 is described as a three-axis head.
  • the shaft structure 17 in the head 10 may include a first shaft structure, a second shaft structure, and a third shaft structure.
  • the first shaft structure is used to carry the load 16, the first shaft structure is connected to the second shaft structure, and the second shaft structure is connected to the third shaft structure.
  • the position of the center of gravity of the gimbal may include the following: the position of the center of gravity of the first shaft structure and the load 16 relative to the rotation axis of the first shaft structure, the load 16, the first shaft structure, the first The position of the center of gravity of the two-axis structure relative to the rotation axis of the second-axis structure, the position of the center of gravity of the load 16, the first shaft structure, the second-axis structure, and the third-axis structure relative to the rotation shaft of the third-axis structure.
  • the corresponding structure in the gimbal 10 when the position of the center of gravity is on the vertical plane where the corresponding axis is located, it can be considered that the corresponding structure in the gimbal 10 is in a balanced state, and the corresponding structure will not occur due to gravity when the driving device 18 of the gimbal 10 is unloaded. Tilt to hit the mechanical limit. Conversely, it is considered that the position of the center of gravity of the corresponding structure in the gimbal 10 is located on one of the opposite sides of the vertical plane where the corresponding axis is located. There may be a risk of hitting the mechanical limit.
  • the head 10 can be controlled so that the head 10 moves to the position of the center of gravity. Move to the static equilibrium position on one side.
  • the gimbal 10 includes a gimbal body 15 and one or more loads 16 detachably disposed on the gimbal body 15.
  • the load 16 may be a device for obtaining external information and information, such as a camera, a mobile phone, a camera, a tablet, a sensor, and a wifi module, or may be an object such as a model arbitrarily carried by a user.
  • the user can freely mount the load 16 on the gimbal body 15 as needed. After the user installs the load 16 on the gimbal body 15 or removes the load 16 from the gimbal body 15, the position of the center of gravity of the gimbal 10 may change, such as tilting the center of gravity forward, backward, left, and right.
  • the control method of the gimbal 10 and the gimbal 10 according to the embodiment of the present invention can plan the motion parameters of the gimbal 10 according to the position of the center of gravity of the gimbal 10 to control the gimbal 10 to smoothly move to the side where the center of gravity position is located to static equilibrium Position, thereby avoiding the situation that the gimbal 10 crashes directly due to the effect of gravity.
  • the x-axis direction is consistent with the roll axis 13 direction
  • the y-axis direction is consistent with the pitch axis 12 direction
  • the z-axis direction is consistent with the yaw axis 14 direction.
  • the plane shown in FIG. 3 is a vertical plane in which the pitch axis 12 is located. Specifically, the vertical plane is relative to the horizontal plane.
  • the vertical plane in which the pitch axis 12 is located is a plane formed by passing over the pitch axis 12 and the yaw axis 14.
  • the static balance position of the gimbal 10 is that under the condition that the driving device 18 of the gimbal 10 is unloaded, the corresponding axis structure can reach the receiving force in the natural state.
  • the position where the force balances and stops rotating may include a mechanical limit position corresponding to the pitch axis 12 in the gimbal 10, such as a first side limit position (ie, A1 position), a second side limit position (ie, A2 position)
  • a mechanical limit position corresponding to the pitch axis 12 in the gimbal 10 such as a first side limit position (ie, A1 position), a second side limit position (ie, A2 position)
  • the corresponding structure corresponding to the pitch axis 12 in the head 10 moves to a position where the force is balanced due to gravity in a natural state, such as the position A0 in the direction of gravity.
  • the joint angle of the rotatable area of the gimbal 10 is less than 360 degrees, for example, the rotatable area in FIG. 4 is 45 degrees (A2 position) to 135 degrees (A1 position) (including 90 degrees to 135 degrees) , And 90 degrees to 45 degrees), that is, the joint angle of the rotatable area is 90 degrees.
  • the position of the center of gravity of the gimbal 10 is located at M1 (the positive angle with the x axis is 120 degrees), it means that the position of the center of gravity of the gimbal 10 is located at On the first side of the vertical plane where the pitch axis 12 is located, the gimbal 10 moves to the first side to the A1 position; if the position of the center of gravity of the gimbal 10 is at M2 (the positive angle with the x-axis is 60 degrees), it means that the cloud The position of the center of gravity of the platform 10 is located on the second side of the vertical plane where the pitch axis 12 is located, then the head 10 moves to the second side to the A2 position; if the position of the center of gravity of the platform 10 is at M3 (the positive angle with the x-axis is still 60 degrees), indicating that the center of gravity of the gimbal 10 is located on the first side of the vertical plane where the tilt axis 12 is located, then the gimbal 10 moves to the first side
  • the position where the corresponding structure of the head 10 is balanced due to the effect of gravity in the natural state may not be in the direction of gravity but may reach the static equilibrium in addition to the case of the position A0 described above.
  • the gimbal 10 may also move to the first side to a static equilibrium position between a straight line at the A0 position and a straight line at the M3 position.
  • the joint angle of the rotatable area of the head 10 is equal to 360 degrees, for example, the rotatable area in FIG. 5 is -90 degrees (A2 position) to 270 degrees (A1 position) (including 90 degrees to 270) Degrees, and 90 degrees to -90 degrees), if the position of the center of gravity of the gimbal 10 is at M1 (the positive angle with the x axis is 120 degrees), it means that the position of the center of gravity of the gimbal 10 is located in the vertical plane where the pitch axis 12 is located.
  • the gimbal 10 can move to the first side to the A0 / A1 / A2 position; if the position of the center of gravity of the gimbal 10 is at M2 (the positive angle with the x axis is 60 degrees), the center of gravity of the gimbal 10 If the position is located on the second side of the vertical plane where the pitch axis 12 is located, the gimbal 10 can move to the second side to the A0 / A1 / A2 position; if the position of the center of gravity of the gimbal 10 is at M3 (positive angle with the x axis) (It is still 60 degrees), indicating that the center of gravity of the gimbal 10 is located on the first side of the vertical plane where the pitch axis 12 is located, then the gimbal 10 moves to the first side to the A0 / A1 / A2 position; if the center of gravity of the gimbal 10 The position is at M4 (the positive angle with the x-axis
  • the joint angle of the pivotable area of the head 10 is greater than 360 degrees, for example, the pivotable area in FIG. 6 is -315 degrees (A2 position) to 495 degrees (A1 position) (including 90 degrees to 495) Degrees, and 90 degrees to -315 degrees), that is, the joint angle of the rotatable area is 810 degrees. If the position of the center of gravity of the gimbal 10 is located at M1 (the positive angle with the x-axis is 120 degrees), the center of gravity of the gimbal 10 The position is located on the first side of the vertical plane where the tilt axis 12 is located.
  • the head 10 can move 150 degrees to the first side to the A0 position. If the gimbal 10 is rotated from 90 degrees to 480 degrees before reaching the current position, the gimbal 10 can move 15 degrees to the first side to the A1 position; if the center of gravity position of the gimbal 10 is located at M2 (positive clamping with the x axis) The angle is 60 degrees), indicating that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the tilt axis 12 is located.
  • the gimbal 10 can move to the second side by 150 degrees to the A0 position. If the gimbal 10 is rotated from 90 degrees to -300 degrees to reach the current position, the gimbal 10 can be moved to the first position. The two sides move 15 degrees to the A2 position; if the position of the center of gravity of the gimbal 10 is located at M3 (the positive angle with the x-axis is still 60 degrees), it means that the position of the center of gravity of the gimbal 10 is located at the first of the vertical plane where the pitch axis 12 is located.
  • the gimbal 10 can be moved to the first side by 30 degrees to the A0 position. If the gimbal 10 is rotated from 90 degrees to- After reaching the current position at 300 degrees, the gimbal 10 can move 30 degrees to the A0 position to the first side; if the position of the center of gravity of the gimbal 10 is at M4 (the positive angle with the x axis is still 120 degrees), it means that the gimbal 10 The center of gravity position is located on the second side of the vertical plane where the pitch axis 12 is located.
  • the head 10 moves to the second side by 30 degrees to A0 Position, if the head 10 is rotated from 90 degrees to 480 degrees before reaching the current position, the head 10 moves to the second side by 30 degrees to the A0 position.
  • the pan / tilt head 10 is also controlled accordingly to make it reach the static equilibrium position smoothly, which can prevent the weight of the load 16 from being excessive.
  • the driving device 18 is unloaded, the corresponding structure in the head 10 collides with the corresponding mechanical limit due to the inertia effect of gravity.
  • the step (ie, 012) of detecting the position of the center of gravity of the gimbal 10 includes:
  • the processor 11 may be used to perform the method in 0121. That is, the processor 11 may be configured to detect the position of the center of gravity of the PTZ 10 when receiving a preset instruction.
  • the preset instruction may include a power-down instruction or a sleep instruction for the PTZ 10; or, the preset instruction includes a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10.
  • the preset instruction may also be other instructions input by the user.
  • the user when the user has powered on the PTZ 10, the user changes the load 16 on the PTZ 10, which may cause the position of the center of gravity of the PTZ 10 to change.
  • Inputting a corresponding instruction indicates that the position of the center of gravity of the pan / tilt head 10 needs to be re-detected to better implement attitude control of the pan / tilt head 10.
  • the shaft structure 17 of the gimbal 10 may include a pitch frame 171, a roll frame 172, and a yaw frame 173. That is, the aforementioned first axis structure is the pitch frame 171, the second axis structure is the roll frame 172, and the second axis structure is the yaw frame 173.
  • the driving device 18 of the shaft structure 17 may be a motor. In other embodiments, the driving device 18 may be a gear, a screw, or the like.
  • the driving device 18 may include a pitch motor 181, a roll motor 182, and a yaw motor 183.
  • the pitch motor 181 is used to drive the pitch frame 171 to rotate to control the pitch frame 171 and the load 16 to move around the pitch axis 12
  • the roll motor 182 is used to drive the roll frame 172 to rotate to control the roll frame 172, the pitch frame 171, and the load 16 around The roll axis 13 moves
  • the yaw motor 183 is used to drive the yaw frame 173, the roll frame 172, the pitch frame 171, and the load 16 to move around the yaw axis 14.
  • the shaft structure 17 is generally provided with a mechanical limit. When the shaft structure 17 hits the mechanical limit, it cannot move in the original direction.
  • only the tilting frame 171 may be provided with a mechanical limit; or only the roll frame 172 may be provided with a mechanical limit; or both the pitch frame 171 and the roll frame 172 may be provided with a mechanical limit.
  • the yaw frame 173 may also be provided with a mechanical limit as required. Since the yaw frame 173 is not likely to hit the mechanical limit due to gravity relative to the geodetic coordinate system, in the embodiment of the present invention, the mechanical limit is provided by the pitch frame 171 and / or the roll frame 172. As an example, the control situation of the pan / tilt head 10 will be described.
  • the power-down instruction or the sleep instruction for the PTZ 10 can be used to instruct the PTZ 10 to enter the power-off state or the hibernation state, that is, to instruct the pitch motor 181, the yaw motor 183, and the roll motor 182 to stop working.
  • the gimbal 10 will directly hit the mechanical limit of the pitch axis 12 and / or the mechanical of the roll axis 13 under the effect of its own gravity. Limit.
  • the processor 11 detects the position of the center of gravity of the PTZ 10 when receiving a power-down instruction or a sleep instruction for the PTZ 10, thereby planning the motion parameters of the PTZ 10 according to the position of the center of gravity of the PTZ 10 to control the movement of the PTZ 10 to
  • the static balance position prevents the pan / tilt head 10 from crashing due to the direct impact of gravity.
  • a power-off instruction or a sleep instruction for the driving device 18 of the corresponding shaft structure 17 in the gimbal 10 may be used to instruct the driving device 18 of the corresponding shaft structure 17 to enter a power-off state or a sleep state.
  • a power-down instruction or a sleep instruction for the driving device 18 of the tilt frame 171 in the gimbal 10 is used to instruct the driving device 18 of the tilt frame 171, that is, the pitch motor 181 enters a power-off state or a sleep state;
  • the power-off instruction or the sleep instruction of the driving device 18 of the roll frame 172 is used to instruct the driving device 18 of the roll frame 172, that is, the roll motor 182 enters a power-off state or a sleep state; for the pitch frame 171 and roll in the gimbal 10
  • the power-off instruction or the sleep instruction of the driving device 18 of the frame 172 is used to instruct the driving devices 18 of the pitch frame 171 and the roll frame 172, that is, the pitch motor 181 and the roll motor
  • the power-off or sleep command for the drive device 18 of the corresponding axis structure 17 in the gimbal 10 may not be directed to the cloud.
  • a power-off instruction or a sleep instruction of the driving device 18 of the yaw frame 173 in the stage 10 is taken into consideration.
  • the processor 11 detects the position of the center of gravity of the PTZ 10 when receiving a power-off instruction or a sleep command for the drive device 18 of the corresponding axis structure 17 in the PTZ 10, thereby planning the position of the PTZ 10 according to the position of the center of gravity of the PTZ 10
  • the movement parameters are used to control the movement of the PTZ 10 to the static equilibrium position, so as to avoid the situation that the PTZ 10 directly hits the limit due to gravity and crashes.
  • the method further includes:
  • the processor 11 may be used to perform the methods in 018 and 020. That is to say, the processor 11 may be configured to: execute a power-down instruction or a sleep instruction for the PTZ 10; or execute a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10.
  • the power-off instruction or the sleep instruction for the PTZ 10 is executed, that is, the PTZ 10 stops working as a whole;
  • the power-down instruction or the sleep instruction for the drive device 18 of the corresponding axis structure in the PTZ 10 is executed, that is, the PTZ 10
  • the corresponding axis structure stops working. In this way, after avoiding the PTZ 10 hitting the limit, it is possible to actively respond to the power-down or sleep command for the PTZ 10 or the power-down or sleep command for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10 to Reduce power consumption of the PTZ 10.
  • the processor 11 when the processor 11 receives a power-down instruction or a sleep instruction for the PTZ 10 (or a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10), it first detects Position of the center of gravity of the gimbal 10, then plan the motion parameters of the gimbal 10 according to the position of the center of gravity, and then control the gimbal 10 to move to the side of the center of gravity position to a static equilibrium position according to the motion parameters, and finally power off the gimbal 10 Instruction or sleep instruction (or execute a power-down instruction or sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the gimbal 10).
  • the processor 11 detects the position of the center of gravity of the gimbal 10 when receiving other instructions input by the user (refer to the previous description), and then plans the motion parameters of the gimbal 10 according to the position of the center of gravity, and then controls according to the motion parameters.
  • the gimbal 10 moves to the side where the center of gravity is located to the static equilibrium position, and finally executes the power-off or hibernation command for the gimbal 10 (or the power-off command for the drive device 18 of the corresponding shaft structure 17 in the gimbal 10 Or sleep instructions).
  • the step (ie, 012) of detecting the position of the center of gravity of the gimbal 10 includes:
  • the processor 11 may be used to perform the methods in 0122 and 0123. That is to say, the processor 11 may be configured to: when the error between the actual attitude and the expected attitude of the gimbal 10 is within a predetermined range, obtain the output of the driving device 18 for driving the gimbal 10 within a predetermined period of time Torque; and detecting the position of the center of gravity of the gimbal 10 based on the output torque.
  • the gimbal 10 when the gimbal 10 is powered on, the gimbal 10 may have an expected posture, which is a posture that the gimbal 10 is expected to arrive.
  • the attitude of the gimbal 10 may include a pitch attitude corresponding to the pitch axis 12, a roll attitude corresponding to the roll axis 13, and a yaw attitude corresponding to the yaw axis 14.
  • the error between the actual attitude of the gimbal 10 and the expected attitude may be The error between the actual attitude and the expected attitude of the corresponding axis in the gimbal 10.
  • the processor 11 determines whether the angle difference between the actual attitude corresponding to the pitch axis 12 and the horizontal direction is within a predetermined range. If yes, the processor 11 obtains the output torque of the pitch motor 181 within a predetermined period of time. Among them, the error between the actual attitude of the PTZ 10 and the expected attitude is within a predetermined range, which means that when the PTZ 10 is not powered off or sleeping, it will still tend to approach the expected attitude, that is, the actual attitude of the PTZ 10 and expected The attitude error is basically small, and the PTZ 10 is currently in a steady state.
  • the detection of the position of the center of gravity of the PTZ 10 is more statistically significant; and if the error between the actual attitude of the PTZ 10 and the expected attitude is within a predetermined range In addition, it means that the user may disturb the PTZ 10, so that the error between the actual attitude of the PTZ 10 and the expected attitude is too large. At this time, the detection of the position of the center of gravity of the PTZ 10 may be inaccurate. Therefore, when the error between the actual attitude and the expected attitude of the gimbal 10 is within a predetermined range, the position of the center of gravity of the gimbal 10 can be detected by counting the output torque.
  • the processor 11 determines whether the angle difference between the actual posture of the roll axis 13 and the horizontal direction is within a predetermined range. If yes, the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time. Since the embodiment of the present invention takes the pitch frame 171 and / or the roll frame 172 as an example of a mechanical limit, the processor 11 does not need to judge that the error between the actual attitude and the expected attitude of the yaw axis 14 is within a predetermined range.
  • the processor 11 may further detect the position of the center of gravity of the gimbal 10 according to the output torque. For example, the position of the center of gravity of the pitch frame 171 and the load 16 relative to the pitch axis 12 is determined based on the output torque of the pitch motor 181 within a predetermined period of time; or the roll frame 172 is determined based on the output torque of the roll motor 182 within a predetermined period of time The position of the center of gravity of the pitch frame 171 and the load 16 with respect to the roll axis 13.
  • the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
  • 01231 Calculate the average and variance of the output torque within a predetermined time period
  • 01232 When the average value is greater than a preset value and the variance is less than a predetermined value, determine that the position of the center of gravity of the head 10 is located on the first side of the vertical plane in which the rotation axis of the head 10 is located;
  • 01233 When the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the rotation axis of the gimbal 10 is located.
  • the processor 11 may be used to perform the methods in 01231, 01232, and 01233. That is to say, the processor 11 may be used to: calculate the average value and variance of the output torque within a predetermined time period; when the average value is greater than a preset value and the variance is less than a predetermined value, determine that the position of the center of gravity of the gimbal 10 is located at the gimbal 10 The first side of the vertical plane on which the rotation axis of the camera is located; and when the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second plane of the vertical plane on which the rotation axis of the gimbal 10 is located side.
  • the processor 11 After the processor 11 obtains the output torque of the pitch motor 181 within a predetermined period of time, it calculates the average value and variance of the output torque of the pitch motor 181 within a predetermined period of time. When the value and the variance are less than the predetermined value, the processor 11 determines that the position of the center of gravity of the pitch frame 171 and the load 16 (that is, the position of the center of gravity of the pitch frame 171 and the load 16) is located on the first side of the vertical plane in which the pitch axis 12 is located, that is, the pitch The center of gravity of the frame 171 and the load 16 is tilted to the left in FIG. 2 (or to the left of the z-axis in FIG.
  • the processor 11 determines the center of gravity of the tilting frame 171 and the load 16 The position is located on the second side of the vertical plane where the pitch axis 12 is located, that is, the center of gravity of the pitch frame 171 and the load 16 is tilted to the right in FIG. 2 (or to the right of the z-axis in FIG. 3).
  • the processor 11 After the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time, it calculates the average and variance of the output torque of the roll motor 182 within a predetermined period of time. When the value and the variance are smaller than the predetermined value, the processor 11 determines that the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 (that is, the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16) is located at the roll axis 13. The first side of the vertical plane, that is, the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted forward in FIG.
  • the processor 11 determines the roll
  • the positions of the center of gravity of the frame 172, the pitch frame 171, and the load 16 are located on the second side of the vertical plane on which the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are tilted backward in FIG.
  • the relationship between the magnitude of the average value of the output torque and the position of the center of gravity of the gimbal 10 can be set in addition to the above relationship.
  • the cloud can be determined when the average value is greater than a preset value and the variance is less than a predetermined value.
  • the position of the center of gravity of the platform 10 is located on the second side of the vertical plane where the rotation axis of the head 10 is located, and when the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the platform 10 is located in the rotation of the head 10
  • the first side of the vertical plane in which the shaft is located Specifically, it can be set according to needs.
  • the magnitude of the average value of the output torque and the position of the center of gravity of the gimbal 10 are a mapping relationship.
  • the position of the center of gravity of the gimbal 10 can be determined according to the average value of the output torque. The description will not be repeated later.
  • the variance may reflect the fluctuation of the output torque of the driving device 18 within a predetermined period of time.
  • the value of the variance is larger, the fluctuation of the output torque in a predetermined period of time is larger, and the credibility of the average value of the output torque in the predetermined period of time is lower; when the value of the variance is smaller, the output torque is predetermined in the predetermined period of time.
  • the smaller the fluctuation the higher the credibility of the average value of the output torque in the predetermined time period. Therefore, in the embodiment of the present invention, when the variance of the processor 11 is less than a predetermined value, the position of the center of gravity of the PTZ 10 is determined according to the average value, which is more accurate and reliable. In addition, since the processor 11 simultaneously calculates the average value and the variance of the output torque within a predetermined time period, the position of the center of gravity of the pan / tilt head 10 can be determined relatively quickly.
  • the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
  • 01234 Calculate the variance of the output torque within a predetermined time period
  • 01236 when the average value is greater than a preset value, determine that the position of the center of gravity of the gimbal 10 is located on the first side of the vertical plane in which the rotation axis of the gimbal 10 is located;
  • the processor 11 may be used to execute the methods of 01234, 01235, 01236, and 01237. That is to say, the processor 11 may be used to: calculate the variance of the output torque within a predetermined time period; when the variance is less than a predetermined value, calculate the average value of the output torque within a predetermined time period; when the average value is greater than a preset value, determine The position of the center of gravity of the head 10 is located on the first side of the vertical plane in which the rotation axis of the head 10 is located; and when the average value is less than a preset value, it is determined that the position of the center of gravity of the head 10 is located in the vertical position where the rotation axis of the head 10 is located. The second side of the straight plane.
  • the processor 11 obtains the output torque of the pitch motor 181 in a predetermined period of time, first calculates the variance of the output torque of the pitch motor 181 in the predetermined period of time, and when the variance is less than the predetermined value, then The average value of the output torque of the pitch motor 181 during the predetermined time period is further calculated.
  • the processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located in the first plane of the vertical plane where the pitch axis 12 is located. One side, that is, the center of gravity of the pitch frame 171 and the load 16 is tilted to the left in FIG.
  • the processor 11 determines that the positions of the center of gravity of the pitch frame 171 and the load 16 are located in the vertical plane where the pitch axis 12 is located.
  • the second side that is, the center of gravity of the pitch frame 171 and the load 16 is tilted right in FIG. 2.
  • the processor 11 After the processor 11 obtains the output torque of the rolling motor 182 in a predetermined period of time, it first calculates the variance of the output torque of the rolling motor 182 in the predetermined period of time. When the variance is less than a predetermined value, Furthermore, the average value of the output torque of the roll motor 182 during the predetermined time period is further calculated. When the average value is greater than a preset value, the processor 11 determines that the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the roll axis. The first side of the vertical plane where 13 is located, that is, the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted forward in FIG.
  • the processor 11 determines the roll frame 172,
  • the positions of the center of gravity of the pitch frame 171 and the load 16 are located on the second side of the vertical plane where the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are tilted backward in FIG. 2.
  • the variance may reflect the fluctuation of the output torque of the driving device 18 within a predetermined period of time.
  • the value of the variance is larger, the fluctuation of the output torque in a predetermined period of time is larger, and the credibility of the average value of the output torque in the predetermined period of time is lower; when the value of the variance is smaller, the output torque is predetermined in the predetermined period of time.
  • the smaller the fluctuation the higher the credibility of the average value of the output torque in the predetermined time period. Therefore, in the embodiment of the present invention, when the variance of the processor 11 is less than a predetermined value, the position of the center of gravity of the PTZ 10 is determined according to the average value, which is more accurate and reliable.
  • the processor 11 because the processor 11 only counts the average value of the output torque in a predetermined time period when the variance is less than a predetermined value, it can avoid counting the average value of the output torque in a predetermined time period when the variance is greater than or equal to the predetermined value, which is unnecessary. The amount of data processed.
  • the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
  • 01238 Calculate the average value of output torque within a predetermined period of time
  • 01240 When the average value is less than the preset value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the rotation axis of the gimbal 10 is located.
  • the processor 11 may be used to perform the methods in 01238, 01239, and 01240. That is to say, the processor 11 can be used to: calculate the average value of the output torque within a predetermined period of time; when the average value is greater than a preset value, determine that the position of the center of gravity of the gimbal 10 is located in the vertical position of the rotation axis of the gimbal 10 The first side of the plane; and when the average value is less than the preset value, it is determined that the position of the center of gravity of the head 10 is located on the second side of the vertical plane in which the rotation axis of the head 10 is located.
  • the processor 11 obtains the output torque of the pitch motor 181 in a predetermined period of time, it calculates an average value of the output torque of the pitch motor 181 in a predetermined period of time, and when the average value is greater than a preset value
  • the processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane in which the pitch axis 12 is located, that is, the centers of gravity of the pitch frame 171 and the load 16 are tilted to the left in FIG.
  • the processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the second side of the vertical plane where the pitch axis 12 is located, that is, the centers of gravity of the pitch frame 171 and the load 16 are tilted to the right in FIG. 2.
  • the processor 11 After the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time, it calculates the average value of the output torque of the roll motor 182 within a predetermined period of time, and when the average value is greater than a preset value At this time, the processor 11 determines that the positions of the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the first side of the vertical plane in which the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are at When the average value is less than the preset value, the processor 11 determines that the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the second side of the vertical plane where the roll axis 13 is located, that is, the horizontal The center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted backward in FIG.
  • the preset value may be zero. It can be understood that, in general, when the position of the center of gravity of the gimbal 10 is located in a vertical plane on which the rotation axis of the gimbal 10 is located, that is, when no forward tilt, backward tilt, left tilt, or backward tilt occurs, the output torque of the driving device 18 is zero. Or close to zero. Therefore, in the embodiment of the present invention, the processor 11 may take an average value according to the output torque of the driving device 18 within a predetermined period of time.
  • the average value is zero, it indicates that the position of the center of gravity of the corresponding structure in the gimbal 10 is located at the gimbal 10 If the average value of the vertical axis on which the rotation axis is located is greater than or less than zero, it indicates that the position of the center of gravity of the corresponding structure in the head 10 is located on the first side or the second side of the vertical plane on which the rotation axis of the head 10 is located.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12.
  • the steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
  • 0141 Plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10;
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • 0161 Controlling the first structure 17a to move to the side of the center of gravity position of the first structure 17a to the static equilibrium position according to the motion parameters of the first structure 17a around the pitch axis 12.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12.
  • the processor 11 may be used to execute the methods in 0141 and 0161. That is to say, the processor 11 may be used to: plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10; The motion parameter of the pitch axis 12 controls the first structure 17a to move to the side where the center of gravity position of the first structure 17a is located to the static equilibrium position.
  • the first structure 17 a may include the above-mentioned pitch frame 171 and the load 16.
  • the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control the pitch frame according to the position of the center of gravity.
  • the processor 11 plans the pitch frame according to the position of the center of gravity
  • the motion parameters of 171 and load 16 around the pitch axis 12 are used to control the pitch frame 171 and load 16 to move to the second side to the static equilibrium position.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13.
  • the steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
  • 0142 Plan the movement parameters of the second structure 17b around the roll axis 13 according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10;
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • 0162 Controlling the second structure 17b to move to the side of the center of gravity position of the second structure 17b to the static equilibrium position according to the motion parameters of the second structure 17b around the roll axis 13.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13.
  • the processor 11 may be used to execute the methods in 0142 and 0162. That is to say, the processor 11 may be used to: plan the movement parameters of the second structure 17b around the roll axis 13 according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10; and according to the second structure The movement parameter of 17b around the roll axis 13 controls the second structure 17b to move to the side where the center of gravity position of the second structure 17b is located to the static equilibrium position.
  • the second structure 17 b may include the roll frame 172, the pitch frame 171, and the load 16 described above.
  • the processor 11 plans the roll frame 172, the pitch frame 171, and the load 16 according to the position of the center of gravity.
  • the movement parameters around the roll axis 13 are used to control the roll frame 172, the pitch frame 171, and the load 16 to move toward the first side to a static equilibrium position; when the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is located in the roll
  • the processor 11 plans the movement parameters of the roll frame 172, the pitch frame 171, and the load 16 around the roll axis 13 to control the roll frame 172 and the pitch frame 171 according to the position of the center of gravity.
  • the load 16 moves to the second side to the static equilibrium position.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12 and the position of the second structure 17 b in the head 10.
  • the steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
  • 0143 Plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and relative to the roll axis 13 according to the second structure 17b in the gimbal 10 Planning the motion parameters of the second structure 17b around the roll axis 13 based on the position of the center of gravity;
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • the first structure 17a is controlled to move to the static equilibrium position to the side where the center of gravity of the first structure 17a is located according to the movement parameters of the first structure 17a around the pitch axis 12.
  • the motion parameter controls the second structure 17b to move to the side where the center of gravity position of the second structure 17b is located to the static equilibrium position.
  • the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12 and the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13 .
  • the processor 11 may be used to execute the methods in 0143 and 0163.
  • the processor 11 may be configured to plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and The position of the center of gravity of the second structure 17b relative to the roll axis 13 plans the movement parameters of the second structure 17b around the roll axis 13; and controls the first structure 17a to the first structure 17a according to the movement parameters of the first structure 17a around the pitch axis 12.
  • the side where the center of gravity is located moves to the static equilibrium position, and the second structure 17b is controlled to move to the side where the center of gravity of the second structure 17b is located to static equilibrium according to the movement parameters of the second structure 17b around the roll axis 13 position.
  • the processor 11 plans the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, as opposed to according to the second structure 17b in the gimbal 10
  • the process of planning the movement parameters of the second structure 17b around the roll axis 13 based on the position of the center of gravity of the roll axis 13 is independent and does not affect each other.
  • the processor 11 controls the first structure 17a to move to the static balance position on the side of the center of gravity position of the first structure 17a according to the motion parameter of the first structure 17a around the pitch axis 12, and around the roll axis 13 according to the second structure 17b
  • the process of controlling the movement of the second structure 17b to the side of the center of gravity position of the second structure 17b to the static equilibrium position is also independent of each other and does not affect each other.
  • the processor 11 may plan the movement parameters of the first structure 17a about the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and control the first structure 17a according to the movement parameters of the first structure 17a about the pitch axis 12.
  • a structure 17a is moved to the side where the center of gravity of the first structure 17a is located to the static equilibrium position, and the second structure 17b is planned to be horizontally orientated according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10
  • the movement parameters of the roller 13 are controlled according to the movement parameters of the second structure 17b around the roll axis 13 to move the second structure 17b to the side where the center of gravity of the second structure 17b is located to the static equilibrium position.
  • the processor 11 first relative to the pitch axis according to the first structure 17a in the gimbal 10
  • the position of the center of gravity of 12 is planned for the movement parameters of the first structure 17a around the pitch axis 12, and the first structure 17a is controlled to move to the side where the position of the center of gravity of the first structure 17a is located according to the movement parameters of the first structure 17a around the pitch axis 12.
  • the movement parameters of 17b around the roll axis 13 are controlled according to the movement parameters of the second structure 17b around the roll axis 13 to control the second structure 17b to move to the side of the center of gravity position of the second structure 17b to the static equilibrium position, and then according to the cloud No.
  • the position of the center of gravity of the structure 17a relative to the pitch axis 12 is to plan the movement parameters of the first structure 17a around the pitch axis 12, and the position of the center of gravity of the first structure 17a to the first structure 17a is controlled according to the movement parameters of the first structure 17a around the pitch axis 12. Move to the static equilibrium position on one side.
  • the working modes of the gimbal 10 include an attitude closed-loop mode and a joint angle closed-loop mode.
  • Control methods also include:
  • the current working mode of the control gimbal 10 is a joint angle closed loop mode
  • the steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
  • 0144 Determine the target joint angle of the gimbal 10 to the static equilibrium position in the joint angle closed-loop mode
  • 0145 Plan the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10;
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • the working modes of the pan / tilt head 10 include an attitude closed-loop mode and a joint angle closed-loop mode.
  • the processor 11 may be used to execute the methods in 022, 024, 0144, 0145, and 0164. That is to say, the processor 11 can be used to: obtain the current working mode of the gimbal 10; control the current working mode of the gimbal 10 to be a joint angle closed-loop mode; in the joint angle closed-loop mode, determine that the gimbal 10 reaches static equilibrium Position the target joint angle; plan the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10; and control the gimbal 10 to move to the target joint angle to the side where the center of gravity is located according to the motion parameters.
  • the process of the processor 11 controlling the current working mode of the PTZ 10 to be the joint angle closed-loop mode is: the processor 11 controls the PTZ 10 to switch from the attitude closed-loop mode to Joint angle closed-loop mode; when the current working mode of the gimbal 10 is the joint angle closed-loop mode, the process of the processor 11 controlling the current working mode of the gimbal 10 to be a joint angle closed-loop mode is: the processor 11 controls the gimbal 10 to maintain the joint angle Closed loop mode.
  • the processor 11 determines the target joint angle at which the gimbal 10 needs to reach the static equilibrium position. For example, when the positions of the center of gravity of the pitch frame 171 and the load 16 are on the first side of the vertical plane in which the pitch axis 12 is located At this time, the processor 11 plans the movement parameters of the pitch frame 171 and the load 16 around the pitch axis 12 according to the position of the center of gravity to control the pitch frame 171 and the load 16 to move to the first side to a static equilibrium position, which is the first Pitch joint angle; when the positions of the center of gravity of the pitch frame 171 and the load 16 are on the second side of the vertical plane where the pitch axis 12 is located, the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 according to the position of the center of gravity To control the pitch frame 171 and the load 16 to move to the second side to a static equilibrium position, the static balance position is the second pitch joint angle; when the roll frame a
  • the pitch frame 171 and the load 16 move to the first side to a static equilibrium position, where the static balance position is the first roll joint angle; when the roll frame 172, the pitch frame 171, and the center of gravity of the load 16 are located in the roll
  • the processor 11 plans the movement parameters of the roll frame 172, the pitch frame 171, and the load 16 around the roll axis 13 according to the position of the center of gravity to control the roll frame 172, the pitch frame 171, and the load 16 to the first Both sides move to the static equilibrium position, which is the second roll joint angle.
  • the processor 11 determines the target joint angle of the gimbal 10 according to the position of the center of gravity of the gimbal 10, and then plans the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10 to control the gimbal 10 to move to the target joint angle.
  • the working modes of the gimbal 10 include an attitude closed-loop mode and a joint angle closed-loop mode.
  • Control methods also include:
  • the steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
  • 0147 Plan the motion parameters of the PTZ 10 according to the current attitude and target attitude of the PTZ 10;
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • the working modes of the pan / tilt head 10 include an attitude closed-loop mode and a joint angle closed-loop mode.
  • the processor 11 may be used to execute the methods in 022, 028, 0146, 0147, and 0165. That is to say, the processor 11 can be used to: obtain the current working mode of the PTZ 10; control the current working mode of the PTZ 10 as an attitude closed-loop mode; in the attitude closed-loop mode, determine whether the PTZ 10 has reached the static equilibrium position Target attitude; planning the motion parameters of the gimbal 10 according to the current attitude of the gimbal 10 and the target attitude; and controlling the gimbal 10 to move to the target attitude based on the motion parameters to the side where the center of gravity is located.
  • the process of the processor 11 controlling the current working mode of the PTZ 10 to be the attitude closed-loop mode is: the processor 11 controls the PTZ 10 to maintain the attitude closed-loop mode;
  • the process of the processor 11 controlling the PTZ 10's current working mode to the attitude closed-loop mode is: the processor 11 controls the PTZ 10 to switch from the joint angle closed-loop mode to the attitude closed-loop mode.
  • the processor 11 determines the target attitude that the gimbal 10 needs to reach the static equilibrium position. For example, when the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane in which the pitch axis 12 is located, the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control according to the positions of the centers of gravity. The pitching frame 171 and the load 16 move to the first side to a static equilibrium position, where the static equilibrium position is the first pitching attitude. At this time, the roll attitude and yaw attitude of the gimbal 10 may not be limited.
  • the processor 11 plans the movement parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control the pitch frame 171 and the load according to the position of the center of gravity. 16 moves to the second side to the static equilibrium position, and the static equilibrium position is the second pitch attitude.
  • the roll attitude and yaw attitude of the gimbal 10 may not be limited; when the roll frame 172, the pitch frame When the position of the center of gravity of 171 and the load 16 is on the first side of the vertical plane where the roll axis 13 is located, the processor 11 plans the movement of the roll frame 172, the pitch frame 171, and the load 16 about the roll axis 13 according to the position of the center of gravity. Control the roll frame 172, the pitch frame 171, and the load 16 to the first side to the static equilibrium position, and the static equilibrium position is the first roll attitude.
  • the pitch attitude and yaw attitude of the gimbal 10 It may not be limited; when the center of gravity position of the roll frame 172, the pitch frame 171, and the load 16 is located on the second side of the roll axis 13, the processor 11 plans the roll frame 172, the pitch frame 171, and the load 16 according to the position of the center of gravity
  • the movement parameters around the roll axis 13 are used to control the roll frame 172, the pitch frame 171, and the load 16 to move to the second side to the static equilibrium position, which is the second roll attitude.
  • the pan / tilt head 10 The pitch attitude and yaw attitude may not be limited.
  • the motion parameters of the gimbal 10 are planned according to the current attitude and target attitude of the gimbal 10 to control the gimbal 10 to move to the target attitude.
  • the pitch motor 181, the roll motor 182, and the yaw motor 183 work together to stabilize the load 16 in a predetermined attitude.
  • the pitch motor 181 operates so that the pitch axis 12 reaches a predetermined pitch joint angle
  • the roll motor 182 operates so that the roll axis 13 reaches a predetermined roll joint angle
  • the yaw motor 183 operates so that the yaw axis 14 reaches Predetermined yaw joint angle.
  • the step of planning the motion parameters of the gimbal 10 according to the position of the center of gravity includes:
  • 0148 Plan the acceleration of the gimbal 10 according to the position of the center of gravity
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • the gimbal 10 is controlled to move to the side of the center of gravity position to the static equilibrium position according to the motion acceleration.
  • the processor 11 may be used to perform the methods in 0148 and 0166. That is to say, the processor 11 can be used for: planning the movement acceleration of the gimbal 10 according to the position of the center of gravity; and controlling the movement of the gimbal 10 to the side of the center of gravity position to the static equilibrium position according to the movement acceleration.
  • the static equilibrium position is the first pitch joint angle, such as 80 degrees
  • the current pitch of the gimbal 10 The joint angle is 20 degrees
  • the processor 11 can plan the gimbal 10 to first accelerate the movement from the current pitch joint angle with an acceleration of 2.4 degrees / second2 from the initial velocity of 0 degrees / second for 5 seconds, and then with an acceleration of -2.4 degrees / second 2 Slowly decelerate for 5 seconds, and finally reach the position of the first pitch joint angle gently.
  • the step of planning the motion parameters of the gimbal 10 according to the position of the center of gravity includes:
  • 0149 Plan the moving speed of the gimbal 10 according to the position of the center of gravity
  • the step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter including:
  • the processor 11 may be used to perform the methods in 0149 and 0167. That is to say, the processor 11 may be used for: planning the movement speed of the gimbal 10 according to the position of the center of gravity; and controlling the movement of the gimbal 10 to the side where the center of gravity position is located to the static equilibrium position according to the movement speed.
  • the static balance position is the first roll joint angle, such as 80 degrees
  • the current roll joint angle of the PTZ 10 is 20 degrees
  • the processor 11 can plan that the PTZ 10 first accelerates from the current roll joint angle from the initial speed of 0 degrees / sec to 10 degrees / sec in 5 seconds. Then, it moves at a constant speed of 10 degrees / second at an intermediate speed for 1 second, and finally decelerates from 0 degrees / second at an intermediate speed of 10 degrees / second to 0 degrees / second, and finally reaches the position of the first roll joint angle smoothly.
  • the step of controlling the head 10 to move to the side of the center of gravity position to the static equilibrium position according to the movement speed (ie, 0167) includes:
  • the processor 11 may be used to perform the methods in 01671, 01672, and 01673. That is to say, the processor 11 can be used to control the PTZ 10 to decelerate to the position of the center of gravity according to the speed of movement to the static equilibrium position; or to control the side of the PTZ 10 to the position of the center of gravity according to the speed of movement
  • the acceleration-deceleration speed is planned to move to the static equilibrium position; or the side of the gimbal 10 to the position of the center of gravity position is controlled according to the movement speed to plan the movement to the static equilibrium position according to the acceleration-uniform-deceleration speed.
  • the static equilibrium position is the second pitch joint angle, such as -80 degrees, and the current position of the gimbal 10
  • the pitch joint angle is -20 degrees.
  • the processor 11 can plan the movement speed of the gimbal 10 as follows: The first method is to first decelerate from the current pitch joint angle from the initial speed of 24 degrees / second to 0 degrees / second in 5 seconds, and finally reach the second gently. The position of the pitch joint angle; the second way is to accelerate from the current pitch joint angle from the initial velocity of 0 degrees / second to 12 degrees / second within 5 seconds, and then decelerate from 12 degrees / second within 5 seconds.
  • the third way first from the current pitch joint angle, from the initial velocity of 0 degrees / second to accelerate uniformly to 10 degrees / second in 5 seconds, Then, it moves at a constant speed of 10 degrees / second at an intermediate speed for 1 second, and finally decelerates from a middle speed of 10 degrees / second to 0 degrees / second in 5 seconds, and finally reaches the position of the second pitch joint angle gently.
  • An embodiment of the present invention further provides a mobile platform.
  • the mobile platform may include a mobile platform body and a pan / tilt according to any one of the foregoing embodiments.
  • the gimbal is set on the mobile platform body.
  • the movable platform may specifically be a movable device such as a mobile cart or a drone.
  • the pan / tilt on the mobile cart can be a two-axis pan / tilt.
  • the pan / tilt can be configured to rotate around the pitch axis and yaw axis.
  • the pan / tilt can be mounted with a shot. Device so that the mobile cart can be used in scenarios such as competitions. Of course, other loads can be freely configured by the user on the PTZ.
  • the mobile platform according to the embodiment of the present invention can plan the motion parameters of the gimbal according to the position of the center of gravity of the gimbal to control the gimbal to move gently to the side where the center of gravity is located to a static equilibrium position, thereby avoiding the gimbal directly due to gravity A crash caused by hitting a limit will help reduce the frequency of replacement of the gimbal and improve the use experience of the mobile car.
  • 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 functions may be performed out of the order shown or discussed, including performing 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.
  • 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.
  • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Remote Sensing (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Mechanical Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Studio Devices (AREA)
  • Accessories Of Cameras (AREA)

Abstract

A control method for a gimbal (10), a gimbal (10), and a mobile platform. The control method comprises: (012) detecting the position of the center of gravity of the gimbal (10); (014) if the center of gravity is located at the first side or the second side of a vertical plane where the rotating shaft of the gimbal (10) is located, planning the motion parameter of the gimbal (10) according to the position of the center of gravity, wherein the first side and the second side are opposite two sides; and (016) according to the motion parameter, controlling the gimbal (10) to move towards one side where the center of gravity is located to a static equilibrium position. By means of the control method for the gimbal (10), the gimbal (10), and the mobile platform, the present invention can plan the motion parameter of the gimbal according to the position of the center of gravity of the gimbal (10), and control the gimbal (10) to smoothly move towards one side where the center of gravity is located to the static equilibrium position, thereby avoiding the gimbal from being damaged because the gimbal (10) directly crashes into a limit position due to gravity.

Description

云台的控制方法、云台和移动平台PTZ control method, PTZ and mobile platform 技术领域Technical field
本发明涉及云台控制技术领域,特别涉及一种云台的控制方法、云台和移动平台。The invention relates to the technical field of PTZ control, in particular to a control method of the PTZ, a PTZ and a mobile platform.
背景技术Background technique
云台一般用于为负载增稳。负载可以是相机、手机、传感器等。用户可以根据需要在云台上搭载各种负载。然而,由于负载的不确定性,云台的重心很难配平。当云台下电或休眠时,由于云台的电机停止工作,云台在自身重力的作用下,会直接撞到限位(云台的旋转结构的机械限位),久而久之存在撞坏的风险。PTZ is generally used to stabilize the load. The load can be a camera, mobile phone, sensor, etc. Users can carry various loads on the gimbal as needed. However, due to the uncertainty of the load, it is difficult to balance the center of gravity of the gimbal. When the gimbal is powered off or hibernated, because the gimbal's motor stops working, the gimbal will directly hit the limit (the mechanical limit of the rotating structure of the gimbal) due to its own gravity. There is a risk of damage over time. .
发明内容Summary of the Invention
本发明实施方式提供一种云台的控制方法、云台和移动平台。Embodiments of the present invention provide a control method for a PTZ, a PTZ and a mobile platform.
本发明实施方式的云台的控制方法包括:检测所述云台的重心位置;若所述重心位置位于所述云台的转动轴所在的竖直平面的第一侧或第二侧,则根据所述重心位置规划所述云台的运动参数,所述第一侧和所述第二侧为相反的两侧;和根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。The method for controlling a pan / tilt according to an embodiment of the present invention includes: detecting a position of a center of gravity of the pan / tilt; if the position of the center of gravity is located on a first side or a second side of a vertical plane in which a rotation axis of the pan / tilt is located, The position of the center of gravity is to plan motion parameters of the gimbal, and the first side and the second side are opposite sides; and to control the side of the gimbal to the position of the center of gravity position according to the motion parameter. Move to a statically balanced position.
本发明实施方式的云台包括处理器,所述处理器用于:检测所述云台的重心位置;若所述重心位置位于所述云台的转动轴所在的竖直平面的第一侧或第二侧,则根据所述重心位置规划所述云台的运动参数,所述第一侧和所述第二侧为相反的两侧;和根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。The gimbal according to the embodiment of the present invention includes a processor, the processor is configured to: detect a position of a center of gravity of the gimbal; if the position of the center of gravity is located on a first side or a first side of a vertical plane in which a rotation axis of the gimbal is located; On both sides, the movement parameters of the gimbal are planned according to the position of the center of gravity, and the first side and the second side are opposite sides; and the gimbal is controlled to the center of gravity according to the motion parameters. Position the side to the static equilibrium position.
本发明实施方式的移动平台包括移动平台本体和上述实施方式的云台,所述云台设置在所述移动平台本体上。The mobile platform according to the embodiment of the present invention includes a mobile platform body and the pan / tilt head of the foregoing embodiment, and the pan / tilt head is disposed on the mobile platform body.
本发明实施方式的云台的控制方法、云台和移动平台能够根据云台的重心位置规划云台的运动参数,以控制云台平缓地向重心位置所在的一侧运动至静力平衡位置,从而避免云台由于重力的作用直接撞到限位而出现撞坏的情况。The control method of the gimbal, the gimbal and the mobile platform according to the embodiments of the present invention can plan the motion parameters of the gimbal according to the position of the center of gravity of the gimbal to control the gimbal to move gently to the side where the center of gravity position is located to a static equilibrium position. This prevents the head from crashing due to gravity directly hitting the limit.
本发明实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。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 some embodiments of the present invention; FIG.
图2是本发明某些实施方式的云台的结构示意图;2 is a schematic structural diagram of a pan / tilt head according to some embodiments of the present invention;
图3至图6是本发明某些实施方式的云台的控制方法的应用场景示意图;3 to 6 are schematic diagrams of application scenarios of a control method for a pan / tilt according to some embodiments of the present invention;
图7至图14是本发明某些实施方式的云台的控制方法的流程示意图。7 to 14 are schematic flowcharts of a control method of a pan / tilt head 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. 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.
在本发明的实施方式的描述中,需要理解的是,术语“上”、“前”、“后”、“左”、“右”、“水平”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明的实施方式和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的实施方式的限制。在本发明的实施方式的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the embodiments of the present invention, it should be understood that the orientations or positional relationships indicated by the terms “upper”, “front”, “rear”, “left”, “right”, and “horizontal” are based on the drawings The orientations or positional relationships shown are only for the convenience of describing the embodiments of the present invention and simplify the description, and do not indicate or imply that the device or element referred to must have a specific orientation, structure and operation in a specific orientation, and therefore cannot be understood This is a limitation on the embodiment of the present invention. 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 term “installation” should be understood in a broad sense, unless it is explicitly stated and limited otherwise. For example, it may be a fixed connection, a detachable connection, or an integral unit. Connection; it can be mechanical connection, electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction between two elements. 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.
下文的公开提供了许多不同的实施方式或例子用来实现本发明的实施方式的不同结构。为了简化本发明的实施方式的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。The following disclosure provides many different embodiments or examples for implementing different structures of the embodiments of the present invention. To simplify the disclosure of the embodiments of the present invention, the components and settings of specific examples are described below. Of course, they are merely examples and are not intended to limit the invention.
请参阅图1和图2,本发明实施方式的云台10的控制方法包括:Referring to FIG. 1 and FIG. 2, a control method of the pan / tilt head 10 according to an embodiment of the present invention includes:
012:检测云台10的重心位置;012: detecting the position of the center of gravity of the gimbal 10;
014:若重心位置位于云台10的转动轴所在的竖直平面的第一侧或第二侧,则根据重心位置规划云台10的运动参数,第一侧和第二侧为相反的两侧;和014: If the position of the center of gravity is located on the first side or the second side of the vertical plane where the rotation axis of the gimbal 10 is located, plan the motion parameters of the gimbal 10 according to the position of the center of gravity. The first and second sides are opposite sides. ;with
016:根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置。016: Control the gimbal 10 to move to the side of the center of gravity position to the static equilibrium position according to the motion parameters.
本发明实施方式的云台10包括处理器11。本发明实施方式的云台10的控制方法可由本发明实施方式的云台10实现。例如,处理器11可用于执行012、014和016中的方法。也即是说,处理器11可以用于:检测云台10的重心位置;若重心位置位 于云台10的转动轴所在的竖直平面的第一侧或第二侧,则根据重心位置规划云台10的运动参数,第一侧和第二侧为相反的两侧;和根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置。The gimbal 10 according to the embodiment of the present invention includes a processor 11. The control method of the pan / tilt head 10 according to the embodiment of the present invention can be implemented by the pan / tilt head 10 according to the embodiment of the present invention. For example, the processor 11 may be used to execute the methods in 012, 014, and 016. That is to say, the processor 11 can be used to: detect the position of the center of gravity of the gimbal 10; if the position of the center of gravity is located on the first side or the second side of the vertical plane where the rotation axis of the gimbal 10 is located, plan the cloud according to the position of the center of gravity The movement parameters of the platform 10, the first side and the second side are opposite sides; and according to the movement parameters, the head 10 is controlled to move to the side where the center of gravity is located to the static equilibrium position.
具体地,云台10可以为三轴云台、两轴云台或单轴云台等。本发明实施方式以云台10为三轴云台为例进行说明,云台10可以被配置成绕俯仰轴12、横滚轴13和偏航轴14旋转。可以理解,当云台10为两轴云台时,云台10可以被配置成绕俯仰轴12、横滚轴13和偏航轴14中的任意两个轴旋转;当云台10为单轴云台时,云台10可以被配置成绕俯仰轴12、横滚轴13和偏航轴14中的任意一个轴旋转。需要指出的是,上述俯仰轴12、横滚轴13和偏航轴14是相对于大地坐标系而言的,当云台10发生翻转等情况时,俯仰轴12、横滚轴13和偏航轴14可能会发生交换,例如,俯仰轴12变为横滚轴13、横滚轴13变为偏航轴14、偏航轴14变为横滚轴13等。Specifically, the head 10 may be a three-axis head, a two-axis head, a single-axis head, or the like. The embodiment of the present invention is described by taking the pan-tilt head 10 as a three-axis pan-tilt head as an example. The pan-tilt head 10 may be configured to rotate about the pitch axis 12, the roll axis 13, and the yaw axis 14. It can be understood that when the gimbal 10 is a two-axis gimbal, the gimbal 10 can be configured to rotate about any two of the pitch axis 12, the roll axis 13, and the yaw axis 14. When the gimbal 10 is a single axis In the case of a pan / tilt head, the pan / tilt head 10 can be configured to rotate around any one of the pitch axis 12, the roll axis 13, and the yaw axis 14. It should be noted that the above-mentioned pitch axis 12, roll axis 13 and yaw axis 14 are relative to the geodetic coordinate system. When the gimbal 10 is flipped, etc., the pitch axis 12, roll axis 13 and yaw The axis 14 may be exchanged, for example, the pitch axis 12 becomes a roll axis 13, the roll axis 13 becomes a yaw axis 14, the yaw axis 14 becomes a roll axis 13, and the like.
以云台10为三轴云台进行说明,云台10中的轴结构17可以包括第一轴结构、第二轴结构、第三轴结构。其中,第一轴结构用于搭载负载16,第一轴结构与第二轴结构连接,第二轴结构与第三轴结构连接。那么,相对云台10的转动轴而言,云台的重心位置可以包括如下:第一轴结构与负载16相对于第一轴结构的转动轴的重心位置,负载16、第一轴结构、第二轴结构相对于第二轴结构的转动轴的重心位置,负载16、第一轴结构、第二轴结构、第三轴结构相对于第三轴结构的转动轴的重心位置。其中,当上述重心位置位于相应轴所在的竖直平面上时,可以认为云台10中相应结构处于平衡状态,该相应结构在云台10的驱动装置18卸力时不会由于重力作用而发生倾斜以撞到机械限位,反之,则认为云台10中相应结构的重心位置位于相应轴所在的竖直平面的相反两侧中的其中一侧,可能存在撞到机械限位的风险。由此,当云台10中相应结构的重心位置位于相应轴所在的竖直平面的相反两侧中的其中一侧时,可以对云台10进行控制,以使得云台10向重心位置所在的一侧运动至静力平衡位置。The pan-tilt head 10 is described as a three-axis head. The shaft structure 17 in the head 10 may include a first shaft structure, a second shaft structure, and a third shaft structure. The first shaft structure is used to carry the load 16, the first shaft structure is connected to the second shaft structure, and the second shaft structure is connected to the third shaft structure. Then, relative to the rotation axis of the gimbal 10, the position of the center of gravity of the gimbal may include the following: the position of the center of gravity of the first shaft structure and the load 16 relative to the rotation axis of the first shaft structure, the load 16, the first shaft structure, the first The position of the center of gravity of the two-axis structure relative to the rotation axis of the second-axis structure, the position of the center of gravity of the load 16, the first shaft structure, the second-axis structure, and the third-axis structure relative to the rotation shaft of the third-axis structure. Wherein, when the position of the center of gravity is on the vertical plane where the corresponding axis is located, it can be considered that the corresponding structure in the gimbal 10 is in a balanced state, and the corresponding structure will not occur due to gravity when the driving device 18 of the gimbal 10 is unloaded. Tilt to hit the mechanical limit. Conversely, it is considered that the position of the center of gravity of the corresponding structure in the gimbal 10 is located on one of the opposite sides of the vertical plane where the corresponding axis is located. There may be a risk of hitting the mechanical limit. Therefore, when the position of the center of gravity of the corresponding structure in the head 10 is located on one of the opposite sides of the vertical plane where the corresponding axis is located, the head 10 can be controlled so that the head 10 moves to the position of the center of gravity. Move to the static equilibrium position on one side.
可以理解,当云台10的重心位置位于相应轴所在的竖直平面上时,说明云台10可能不存在直接撞到限位(即云台10的轴结构17的机械限位)的情况。那么此时,可以不对云台10进行相应的控制,保持云台10的当前姿态或关节角即可。It can be understood that when the position of the center of gravity of the pan / tilt head 10 is located on a vertical plane where the corresponding axis is located, it indicates that the pan / tilt head 10 may not directly hit the limit (ie, the mechanical limit of the shaft structure 17 of the head 10). Then at this time, the corresponding control of the PTZ 10 may not be performed, and the current attitude or joint angle of the PTZ 10 may be maintained.
云台10包括云台本体15和可拆卸地设置在云台本体15上的一个或多个负载16。负载16可以为相机、手机、摄像头、平板、传感器、wifi模块等获取外界信息及资讯的设备,或者,也可以是由用户任意搭载的物体,如模型。用户可以根据需要自由地在云台本体15上搭载上述负载16。在用户将上述负载16安装至云台本体15或者从云台本体15上将上述负载16拆卸下来后,云台10的重心位置可以发生变化,例如重心前倾、后倾、左倾、右倾等。本发明实施方式的云台10的控制方法和云台10能 够根据云台10的重心位置规划云台10的运动参数,以控制云台10平缓地向重心位置所在的一侧运动至静力平衡位置,从而避免云台10由于重力的作用直接撞到限位而出现撞坏的情况。The gimbal 10 includes a gimbal body 15 and one or more loads 16 detachably disposed on the gimbal body 15. The load 16 may be a device for obtaining external information and information, such as a camera, a mobile phone, a camera, a tablet, a sensor, and a wifi module, or may be an object such as a model arbitrarily carried by a user. The user can freely mount the load 16 on the gimbal body 15 as needed. After the user installs the load 16 on the gimbal body 15 or removes the load 16 from the gimbal body 15, the position of the center of gravity of the gimbal 10 may change, such as tilting the center of gravity forward, backward, left, and right. The control method of the gimbal 10 and the gimbal 10 according to the embodiment of the present invention can plan the motion parameters of the gimbal 10 according to the position of the center of gravity of the gimbal 10 to control the gimbal 10 to smoothly move to the side where the center of gravity position is located to static equilibrium Position, thereby avoiding the situation that the gimbal 10 crashes directly due to the effect of gravity.
图3中,x轴方向与横滚轴13方向一致,y轴方向与俯仰轴12方向一致,z轴方向与偏航轴14方向一致。图3示出的平面为俯仰轴12所在的竖直平面。具体地,竖直平面是相对于水平面而言的。在偏航轴14垂直于水平面时,俯仰轴12所在的竖直平面为过俯仰轴12和偏航轴14形成的平面。In FIG. 3, the x-axis direction is consistent with the roll axis 13 direction, the y-axis direction is consistent with the pitch axis 12 direction, and the z-axis direction is consistent with the yaw axis 14 direction. The plane shown in FIG. 3 is a vertical plane in which the pitch axis 12 is located. Specifically, the vertical plane is relative to the horizontal plane. When the yaw axis 14 is perpendicular to the horizontal plane, the vertical plane in which the pitch axis 12 is located is a plane formed by passing over the pitch axis 12 and the yaw axis 14.
请参阅图4至图6,以俯仰轴12为例进行说明,云台10的静力平衡位置为在云台10的驱动装置18卸力的情况下,相应轴结构能够在自然状态下达到受力平衡并停止转动的位置,例如,可以包括云台10中对应俯仰轴12的机械限位位置,如第一侧限位位置(即A1位置)、第二侧限位位置(即A2位置),又例如,可以包括云台10中对应俯仰轴12的相应结构在自然状态下由于重力的作用而运动至受力平衡的位置,如在重力方向上的A0位置。Please refer to FIGS. 4 to 6, and take the pitch axis 12 as an example for explanation. The static balance position of the gimbal 10 is that under the condition that the driving device 18 of the gimbal 10 is unloaded, the corresponding axis structure can reach the receiving force in the natural state. The position where the force balances and stops rotating, for example, may include a mechanical limit position corresponding to the pitch axis 12 in the gimbal 10, such as a first side limit position (ie, A1 position), a second side limit position (ie, A2 position) For another example, it may include that the corresponding structure corresponding to the pitch axis 12 in the head 10 moves to a position where the force is balanced due to gravity in a natural state, such as the position A0 in the direction of gravity.
请参阅图4,当云台10的能够转动区域的关节角小于360度时,例如图4中能够的转动区域为45度(A2位置)至135度(A1位置)(包括90度至135度、及90度至45度),即能够转动区域的关节角为90度,若云台10的重心位置位于M1(与x轴正向夹角为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,则云台10向第一侧运动至A1位置;若云台10的重心位置位于M2(与x轴正向夹角为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,则云台10向第二侧运动至A2位置;若云台10的重心位置位于M3(与x轴正向夹角仍为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,则云台10向第一侧运动至A0位置;若云台10的重心位置位于M4(与x轴正向夹角仍为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,则云台10向第二侧运动至A0位置。Please refer to FIG. 4, when the joint angle of the rotatable area of the gimbal 10 is less than 360 degrees, for example, the rotatable area in FIG. 4 is 45 degrees (A2 position) to 135 degrees (A1 position) (including 90 degrees to 135 degrees) , And 90 degrees to 45 degrees), that is, the joint angle of the rotatable area is 90 degrees. If the position of the center of gravity of the gimbal 10 is located at M1 (the positive angle with the x axis is 120 degrees), it means that the position of the center of gravity of the gimbal 10 is located at On the first side of the vertical plane where the pitch axis 12 is located, the gimbal 10 moves to the first side to the A1 position; if the position of the center of gravity of the gimbal 10 is at M2 (the positive angle with the x-axis is 60 degrees), it means that the cloud The position of the center of gravity of the platform 10 is located on the second side of the vertical plane where the pitch axis 12 is located, then the head 10 moves to the second side to the A2 position; if the position of the center of gravity of the platform 10 is at M3 (the positive angle with the x-axis is still 60 degrees), indicating that the center of gravity of the gimbal 10 is located on the first side of the vertical plane where the tilt axis 12 is located, then the gimbal 10 moves to the first side to the A0 position; if the center of gravity of the gimbal 10 is located at M4 (and The positive angle of the x-axis is still 120 degrees), indicating that the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the tilt axis 12 is located, and the gimbal 10 moves to the second side to A0 position.
可以理解,云台10中相应结构在自然状态下由于重力的作用而平衡的位置除了上述A0位置的情况,也有可能不在重力方向上而达到静止平衡。例如,如图4所示,假设云台10的重心位置位于M3,那么云台10也有可能向第一侧运动至A0位置所在直线与M3位置所在直线之间的一个静力平衡位置。It can be understood that the position where the corresponding structure of the head 10 is balanced due to the effect of gravity in the natural state may not be in the direction of gravity but may reach the static equilibrium in addition to the case of the position A0 described above. For example, as shown in FIG. 4, assuming that the position of the center of gravity of the gimbal 10 is located at M3, the gimbal 10 may also move to the first side to a static equilibrium position between a straight line at the A0 position and a straight line at the M3 position.
请参阅图5,当云台10的能够转动区域的关节角等于360度时,例如图5中能够转动的区域为-90度(A2位置)至270度(A1位置)(包括90度至270度、及90度至-90度),若云台10的重心位置位于M1(与x轴正向夹角为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,则云台10可以向第一侧 运动至A0/A1/A2位置;若云台10的重心位置位于M2(与x轴正向夹角为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,则云台10可以向第二侧运动至A0/A1/A2位置;若云台10的重心位置位于M3(与x轴正向夹角仍为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,则云台10向第一侧运动至A0/A1/A2位置;若云台10的重心位置位于M4(与x轴正向夹角仍为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,则云台10向第二侧运动至A0/A1/A2位置。本实施方式中,第一侧限位位置、第二侧限位位置和重心平衡位置基本重合。Please refer to FIG. 5, when the joint angle of the rotatable area of the head 10 is equal to 360 degrees, for example, the rotatable area in FIG. 5 is -90 degrees (A2 position) to 270 degrees (A1 position) (including 90 degrees to 270) Degrees, and 90 degrees to -90 degrees), if the position of the center of gravity of the gimbal 10 is at M1 (the positive angle with the x axis is 120 degrees), it means that the position of the center of gravity of the gimbal 10 is located in the vertical plane where the pitch axis 12 is located. On the first side, the gimbal 10 can move to the first side to the A0 / A1 / A2 position; if the position of the center of gravity of the gimbal 10 is at M2 (the positive angle with the x axis is 60 degrees), the center of gravity of the gimbal 10 If the position is located on the second side of the vertical plane where the pitch axis 12 is located, the gimbal 10 can move to the second side to the A0 / A1 / A2 position; if the position of the center of gravity of the gimbal 10 is at M3 (positive angle with the x axis) (It is still 60 degrees), indicating that the center of gravity of the gimbal 10 is located on the first side of the vertical plane where the pitch axis 12 is located, then the gimbal 10 moves to the first side to the A0 / A1 / A2 position; if the center of gravity of the gimbal 10 The position is at M4 (the positive angle with the x-axis is still 120 degrees), indicating that the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the pitch axis 12 is located, then the gimbal 10 moves to the second side to A0 / A1 / A2 . In this embodiment, the first side limit position, the second side limit position, and the center of gravity balance position substantially coincide.
请参阅图6,当云台10的能够转动区域的关节角大于360度时,例如图6中能够的转动区域为-315度(A2位置)至495度(A1位置)(包括90度至495度、及90度至-315度),即能够转动区域的关节角为810度,若云台10的重心位置位于M1(与x轴正向夹角为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,进一步地,若云台10是由90度转动至120度才到达当前位置,则云台10可以向第一侧运动150度至A0位置,若云台10是由90度转动至480度才到达当前位置,则云台10可以向第一侧运动15度至A1位置;若云台10的重心位置位于M2(与x轴正向夹角为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,进一步地,若云台10是由90度转动至60度才到达当前位置,则云台10可以向第二侧运动150度至A0位置,若云台10是由90度转动至-300度才到达当前位置,则云台10可以向第二侧运动15度至A2位置;若云台10的重心位置位于M3(与x轴正向夹角仍为60度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第一侧,进一步地,若云台10是由90度转动至60度才到达当前位置,则云台10可以向第一侧运动30度至A0位置,若云台10是由90度转动至-300度才到达当前位置,则云台10可以向第一侧运动30度至A0位置;若云台10的重心位置位于M4(与x轴正向夹角仍为120度),说明云台10的重心位置位于俯仰轴12所在的竖直平面的第二侧,进一步地,若云台10是由90度转动至120度才到达当前位置,则云台10向第二侧运动30度至A0位置,若云台10是由90度转动至480度才到达当前位置,则云台10向第二侧运动30度至A0位置。Please refer to FIG. 6, when the joint angle of the pivotable area of the head 10 is greater than 360 degrees, for example, the pivotable area in FIG. 6 is -315 degrees (A2 position) to 495 degrees (A1 position) (including 90 degrees to 495) Degrees, and 90 degrees to -315 degrees), that is, the joint angle of the rotatable area is 810 degrees. If the position of the center of gravity of the gimbal 10 is located at M1 (the positive angle with the x-axis is 120 degrees), the center of gravity of the gimbal 10 The position is located on the first side of the vertical plane where the tilt axis 12 is located. Further, if the head 10 is rotated from 90 degrees to 120 degrees before reaching the current position, the head 10 can move 150 degrees to the first side to the A0 position. If the gimbal 10 is rotated from 90 degrees to 480 degrees before reaching the current position, the gimbal 10 can move 15 degrees to the first side to the A1 position; if the center of gravity position of the gimbal 10 is located at M2 (positive clamping with the x axis) The angle is 60 degrees), indicating that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the tilt axis 12 is located. Further, if the gimbal 10 is rotated from 90 degrees to 60 degrees before reaching the current position, the gimbal 10 can move to the second side by 150 degrees to the A0 position. If the gimbal 10 is rotated from 90 degrees to -300 degrees to reach the current position, the gimbal 10 can be moved to the first position. The two sides move 15 degrees to the A2 position; if the position of the center of gravity of the gimbal 10 is located at M3 (the positive angle with the x-axis is still 60 degrees), it means that the position of the center of gravity of the gimbal 10 is located at the first of the vertical plane where the pitch axis 12 is located. One side, further, if the gimbal 10 is rotated from 90 degrees to 60 degrees before reaching the current position, the gimbal 10 can be moved to the first side by 30 degrees to the A0 position. If the gimbal 10 is rotated from 90 degrees to- After reaching the current position at 300 degrees, the gimbal 10 can move 30 degrees to the A0 position to the first side; if the position of the center of gravity of the gimbal 10 is at M4 (the positive angle with the x axis is still 120 degrees), it means that the gimbal 10 The center of gravity position is located on the second side of the vertical plane where the pitch axis 12 is located. Further, if the head 10 is rotated from 90 degrees to 120 degrees before reaching the current position, the head 10 moves to the second side by 30 degrees to A0 Position, if the head 10 is rotated from 90 degrees to 480 degrees before reaching the current position, the head 10 moves to the second side by 30 degrees to the A0 position.
可以理解,针对云台10的能够转动区域的关节角大于等于360度的情况,同样对云台10进行相应的控制,以使其平缓地到达静力平衡位置,可以防止由于负载16的重量过大而在驱动装置18卸力的情况下,云台10中的相应结构由于重力产生的惯性作用而撞到对应的机械限位的情况。例如,当云台10中相应结构对应的机械限位位置与在自然状态下由于重力的作用而运动至受力平衡的位置距离较近时,在驱动装 置18卸力时,很有可能撞到相应的机械限位,但通过控制云台10平缓地到达上述在自然状态下受力平衡的位置,可以防止云台10中的相应结构由于撞到对应的机械限位而损坏的情况的发生。It can be understood that for the case where the joint angle of the pan / tilt head 10's rotatable area is greater than or equal to 360 degrees, the pan / tilt head 10 is also controlled accordingly to make it reach the static equilibrium position smoothly, which can prevent the weight of the load 16 from being excessive. When the driving device 18 is unloaded, the corresponding structure in the head 10 collides with the corresponding mechanical limit due to the inertia effect of gravity. For example, when the mechanical limit position corresponding to the corresponding structure in the gimbal 10 is close to the position where the force is balanced due to the action of gravity in the natural state, when the driving device 18 is unloaded, it is likely to hit Corresponding mechanical limit, but by controlling the pan / tilt head 10 to slowly reach the position where the force is balanced in the natural state, the corresponding structure in the pan / tilt head 10 can be prevented from being damaged due to hitting the corresponding mechanical limit.
请参阅图2和图7,在某些实施方式中,检测云台10的重心位置的步骤(即012)包括:Please refer to FIG. 2 and FIG. 7. In some embodiments, the step (ie, 012) of detecting the position of the center of gravity of the gimbal 10 includes:
0121:在接收到预设指令时,检测云台10的重心位置。0121: When the preset instruction is received, the position of the center of gravity of the PTZ 10 is detected.
在某些实施方式中,处理器11可用于执行0121中的方法。也即是说,处理器11可以用于在接收到预设指令时,检测云台10的重心位置。In some embodiments, the processor 11 may be used to perform the method in 0121. That is, the processor 11 may be configured to detect the position of the center of gravity of the PTZ 10 when receiving a preset instruction.
具体地,预设指令可包括针对云台10的下电指令或休眠指令;或者,预设指令包括针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令。Specifically, the preset instruction may include a power-down instruction or a sleep instruction for the PTZ 10; or, the preset instruction includes a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10.
可以理解,预设指令还可以为用户输入的其它指令,例如,在云台10已上电时,用户更换云台10上的负载16,导致云台10的重心位置可能发生变化时,用户可以输入相应指令指示云台10的重心位置需要重新进行检测,以较好地实现对云台10的姿态控制。It can be understood that the preset instruction may also be other instructions input by the user. For example, when the user has powered on the PTZ 10, the user changes the load 16 on the PTZ 10, which may cause the position of the center of gravity of the PTZ 10 to change. Inputting a corresponding instruction indicates that the position of the center of gravity of the pan / tilt head 10 needs to be re-detected to better implement attitude control of the pan / tilt head 10.
请参阅图2,云台10的轴结构17可包括俯仰框架171、横滚框架172和偏航框架173。也即是说,前述第一轴结构为俯仰框架171,第二轴结构为横滚框架172,第二轴结构为偏航框架173。轴结构17的驱动装置18可以为电机。在其他实施方式中,驱动装置18也可以为齿轮或丝杆等。当轴结构17包括俯仰框架171、横滚框架172和偏航框架173时,驱动装置18可包括俯仰电机181、横滚电机182和偏航电机183。俯仰电机181用于驱动俯仰框架171转动以控制俯仰框架171和负载16绕俯仰轴12运动,横滚电机182用于驱动横滚框架172转动以控制横滚框架172、俯仰框架171和负载16绕横滚轴13运动,偏航电机183用于驱动偏航框架173、横滚框架172、俯仰框架171和负载16绕偏航轴14运动。轴结构17一般设置有机械限位,当轴结构17撞到机械限位后,无法再沿原方向进行运动。本发明实施方式中,可以仅俯仰框架171设置有机械限位;或者,可以仅横滚框架172设置有机械限位;或者,可以俯仰框架171和横滚框架172均设置有机械限位。当然,在其他实施方式中,偏航框架173也可以根据需要设置机械限位。由于相对于大地坐标系而言,偏航框架173不会由于重力的作用而出现可能重击机械限位的情况,本发明实施方式以俯仰框架171和/或横滚框架172设置有机械限位为例,对云台10的控制情况进行说明。Referring to FIG. 2, the shaft structure 17 of the gimbal 10 may include a pitch frame 171, a roll frame 172, and a yaw frame 173. That is, the aforementioned first axis structure is the pitch frame 171, the second axis structure is the roll frame 172, and the second axis structure is the yaw frame 173. The driving device 18 of the shaft structure 17 may be a motor. In other embodiments, the driving device 18 may be a gear, a screw, or the like. When the shaft structure 17 includes a pitch frame 171, a roll frame 172, and a yaw frame 173, the driving device 18 may include a pitch motor 181, a roll motor 182, and a yaw motor 183. The pitch motor 181 is used to drive the pitch frame 171 to rotate to control the pitch frame 171 and the load 16 to move around the pitch axis 12, and the roll motor 182 is used to drive the roll frame 172 to rotate to control the roll frame 172, the pitch frame 171, and the load 16 around The roll axis 13 moves, and the yaw motor 183 is used to drive the yaw frame 173, the roll frame 172, the pitch frame 171, and the load 16 to move around the yaw axis 14. The shaft structure 17 is generally provided with a mechanical limit. When the shaft structure 17 hits the mechanical limit, it cannot move in the original direction. In the embodiment of the present invention, only the tilting frame 171 may be provided with a mechanical limit; or only the roll frame 172 may be provided with a mechanical limit; or both the pitch frame 171 and the roll frame 172 may be provided with a mechanical limit. Of course, in other embodiments, the yaw frame 173 may also be provided with a mechanical limit as required. Since the yaw frame 173 is not likely to hit the mechanical limit due to gravity relative to the geodetic coordinate system, in the embodiment of the present invention, the mechanical limit is provided by the pitch frame 171 and / or the roll frame 172. As an example, the control situation of the pan / tilt head 10 will be described.
针对云台10的下电指令或休眠指令可以用于指示云台10进入下电状态或休眠状态,即指示俯仰电机181、偏航电机183和横滚电机182均停止工作。此时,若俯仰电机181、偏航电机183和横滚电机182停止工作,云台10在自身重力的作用下,会 直接撞到俯仰轴12的机械限位和/或横滚轴13的机械限位。因此,处理器11在接收到针对云台10的下电指令或休眠指令时检测云台10的重心位置,从而根据云台10的重心位置规划云台10的运动参数以控制云台10运动至静力平衡位置,避免云台10由于重力的作用直接撞到限位而出现撞坏的情况。The power-down instruction or the sleep instruction for the PTZ 10 can be used to instruct the PTZ 10 to enter the power-off state or the hibernation state, that is, to instruct the pitch motor 181, the yaw motor 183, and the roll motor 182 to stop working. At this time, if the pitch motor 181, yaw motor 183, and roll motor 182 stop working, the gimbal 10 will directly hit the mechanical limit of the pitch axis 12 and / or the mechanical of the roll axis 13 under the effect of its own gravity. Limit. Therefore, the processor 11 detects the position of the center of gravity of the PTZ 10 when receiving a power-down instruction or a sleep instruction for the PTZ 10, thereby planning the motion parameters of the PTZ 10 according to the position of the center of gravity of the PTZ 10 to control the movement of the PTZ 10 to The static balance position prevents the pan / tilt head 10 from crashing due to the direct impact of gravity.
针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令可以用于指示相应轴结构17的驱动装置18进入下电状态或休眠状态。例如,针对云台10中俯仰框架171的驱动装置18的下电指令或休眠指令用于指示俯仰框架171的驱动装置18,即俯仰电机181进入下电状态或休眠状态;针对云台10中横滚框架172的驱动装置18的下电指令或休眠指令用于指示横滚框架172的驱动装置18,即横滚电机182进入下电状态或休眠状态;针对云台10中俯仰框架171和横滚框架172的驱动装置18的下电指令或休眠指令用于指示俯仰框架171和横滚框架172的驱动装置18,即俯仰电机181和横滚电机182均进入下电状态或休眠状态等。由于本发明实施方式以俯仰框架171和/或横滚框架172设置有机械限位为例,因而,针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令可不将针对云台10中偏航框架173的驱动装置18的下电指令或休眠指令纳入考虑。在接收到针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令时,若相应轴结构17的驱动装置18停止工作,云台10在自身重力的作用下,会直接撞到俯仰轴12的机械限位和/或横滚轴13的机械限位。因此,处理器11在接收到针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令时检测云台10的重心位置,从而根据云台10的重心位置规划云台10的运动参数以控制云台10运动至静力平衡位置,避免云台10由于重力的作用直接撞到限位而出现撞坏的情况。A power-off instruction or a sleep instruction for the driving device 18 of the corresponding shaft structure 17 in the gimbal 10 may be used to instruct the driving device 18 of the corresponding shaft structure 17 to enter a power-off state or a sleep state. For example, a power-down instruction or a sleep instruction for the driving device 18 of the tilt frame 171 in the gimbal 10 is used to instruct the driving device 18 of the tilt frame 171, that is, the pitch motor 181 enters a power-off state or a sleep state; The power-off instruction or the sleep instruction of the driving device 18 of the roll frame 172 is used to instruct the driving device 18 of the roll frame 172, that is, the roll motor 182 enters a power-off state or a sleep state; for the pitch frame 171 and roll in the gimbal 10 The power-off instruction or the sleep instruction of the driving device 18 of the frame 172 is used to instruct the driving devices 18 of the pitch frame 171 and the roll frame 172, that is, the pitch motor 181 and the roll motor 182 both enter a power-off state or a sleep state. Since the embodiment of the present invention takes as an example the mechanical limit of the pitch frame 171 and / or the roll frame 172, the power-off or sleep command for the drive device 18 of the corresponding axis structure 17 in the gimbal 10 may not be directed to the cloud. A power-off instruction or a sleep instruction of the driving device 18 of the yaw frame 173 in the stage 10 is taken into consideration. When receiving a power-off or sleep command for the driving device 18 of the corresponding shaft structure 17 in the gimbal 10, if the driving device 18 of the corresponding shaft structure 17 stops working, the gimbal 10 will directly impact under its own gravity. To the mechanical limit of the pitch axis 12 and / or the mechanical limit of the roll axis 13. Therefore, the processor 11 detects the position of the center of gravity of the PTZ 10 when receiving a power-off instruction or a sleep command for the drive device 18 of the corresponding axis structure 17 in the PTZ 10, thereby planning the position of the PTZ 10 according to the position of the center of gravity of the PTZ 10 The movement parameters are used to control the movement of the PTZ 10 to the static equilibrium position, so as to avoid the situation that the PTZ 10 directly hits the limit due to gravity and crashes.
请参阅图2和图8,在某些实施方式中,在根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)之后,方法还包括:Please refer to FIG. 2 and FIG. 8. In some embodiments, after the step (ie, 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, the method further includes:
018:执行针对云台10的下电指令或休眠指令;或者018: execute the power-off or hibernation command for the PTZ 10; or
020:执行针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令。020: Execute a power-off instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the gimbal 10.
在某些实施方式中,处理器11可用于执行018和020中的方法。也即是说,处理器11可以用于:执行针对云台10的下电指令或休眠指令;或者执行针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令。In some embodiments, the processor 11 may be used to perform the methods in 018 and 020. That is to say, the processor 11 may be configured to: execute a power-down instruction or a sleep instruction for the PTZ 10; or execute a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10.
具体地,执行针对云台10的下电指令或休眠指令,即云台10整体停止工作;执行针对云台10中相应轴结构的驱动装置18的下电指令或休眠指令,即云台10中相应轴结构停止工作。如此,可以在避免云台10撞击限位之后,积极响应针对云台10的下电指令或休眠指令、或针对云台10中相应轴结构17的驱动装置18的下电指令 或休眠指令,以降低云台10的功耗。Specifically, the power-off instruction or the sleep instruction for the PTZ 10 is executed, that is, the PTZ 10 stops working as a whole; the power-down instruction or the sleep instruction for the drive device 18 of the corresponding axis structure in the PTZ 10 is executed, that is, the PTZ 10 The corresponding axis structure stops working. In this way, after avoiding the PTZ 10 hitting the limit, it is possible to actively respond to the power-down or sleep command for the PTZ 10 or the power-down or sleep command for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10 to Reduce power consumption of the PTZ 10.
在一个实施方式中,处理器11在接收到针对云台10的下电指令或休眠指令(或针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令)时,先检测云台10的重心位置,然后根据重心位置规划云台10的运动参数,再根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置,最后执行针对云台10的下电指令或休眠指令(或执行针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令)。In one embodiment, when the processor 11 receives a power-down instruction or a sleep instruction for the PTZ 10 (or a power-down instruction or a sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the PTZ 10), it first detects Position of the center of gravity of the gimbal 10, then plan the motion parameters of the gimbal 10 according to the position of the center of gravity, and then control the gimbal 10 to move to the side of the center of gravity position to a static equilibrium position according to the motion parameters, and finally power off the gimbal 10 Instruction or sleep instruction (or execute a power-down instruction or sleep instruction for the drive device 18 of the corresponding shaft structure 17 in the gimbal 10).
在另一个实施方式中,处理器11在接收到用户输入的其它指令(参前)时,先检测云台10的重心位置,然后根据重心位置规划云台10的运动参数,再根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置,最后执行针对云台10的下电指令或休眠指令(或执行针对云台10中相应轴结构17的驱动装置18的下电指令或休眠指令)。In another embodiment, the processor 11 detects the position of the center of gravity of the gimbal 10 when receiving other instructions input by the user (refer to the previous description), and then plans the motion parameters of the gimbal 10 according to the position of the center of gravity, and then controls according to the motion parameters. The gimbal 10 moves to the side where the center of gravity is located to the static equilibrium position, and finally executes the power-off or hibernation command for the gimbal 10 (or the power-off command for the drive device 18 of the corresponding shaft structure 17 in the gimbal 10 Or sleep instructions).
请参阅图2和图9,在某些实施方式中,检测云台10的重心位置的步骤(即012)包括:Please refer to FIG. 2 and FIG. 9. In some embodiments, the step (ie, 012) of detecting the position of the center of gravity of the gimbal 10 includes:
0122:在云台10的实际姿态与预期姿态之间的误差处于预定范围内时,获取用于驱动云台10的驱动装置18在预定时间段内的输出扭矩;和0122: when the error between the actual attitude and the expected attitude of the gimbal 10 is within a predetermined range, obtain the output torque of the driving device 18 for driving the gimbal 10 within a predetermined time period; and
0123:根据输出扭矩检测云台10的重心位置。0123: The position of the center of gravity of the gimbal 10 is detected based on the output torque.
在某些实施方式中,处理器11可用于执行0122和0123中的方法。也即是说,处理器11可以用于:在云台10的实际姿态与预期姿态之间的误差处于预定范围内时,获取用于驱动云台10的驱动装置18在预定时间段内的输出扭矩;和根据输出扭矩检测云台10的重心位置。In some embodiments, the processor 11 may be used to perform the methods in 0122 and 0123. That is to say, the processor 11 may be configured to: when the error between the actual attitude and the expected attitude of the gimbal 10 is within a predetermined range, obtain the output of the driving device 18 for driving the gimbal 10 within a predetermined period of time Torque; and detecting the position of the center of gravity of the gimbal 10 based on the output torque.
具体地,在云台10上电时,云台10可以具有预期姿态,该预期姿态是期望云台10到达的一个姿态。云台10的姿态可以包括对应俯仰轴12的俯仰姿态、对应横滚轴13的横滚姿态、对应偏航轴14的偏航姿态,云台10的实际姿态与预期姿态之间的误差可以为云台10中对应相应轴的实际姿态与预期姿态之间的误差。以俯仰轴12为例,假设对应俯仰轴12的预期姿态当前为水平方向(例如南北方向),处理器11判断对应俯仰轴12的实际姿态与水平方向之间的角度差是否处于预定范围内,若是,则处理器11获取俯仰电机181在预定时间段内的输出扭矩。其中,云台10的实际姿态与预期姿态之间的误差处于预定范围内,意味着云台10在未下电或休眠时,仍会倾向于靠近预期姿态,即云台10的实际姿态与预期姿态的误差基本不大,云台10当前处于稳态,此时,对云台10的重心位置的检测更具有统计意义;而若云台10的实际姿态与预期姿态之间的误差处于预定范围外,则意味着可能用户扰乱了云台10,以使得 云台10的实际姿态与预期姿态的误差过大,此时,云台10的重心位置的检测可能不准。因此,可以在云台10的实际姿态与预期姿态之间的误差处于预定范围内时,才统计输出扭矩对云台10的重心位置进行检测。Specifically, when the gimbal 10 is powered on, the gimbal 10 may have an expected posture, which is a posture that the gimbal 10 is expected to arrive. The attitude of the gimbal 10 may include a pitch attitude corresponding to the pitch axis 12, a roll attitude corresponding to the roll axis 13, and a yaw attitude corresponding to the yaw axis 14. The error between the actual attitude of the gimbal 10 and the expected attitude may be The error between the actual attitude and the expected attitude of the corresponding axis in the gimbal 10. Taking the pitch axis 12 as an example, assuming that the expected attitude corresponding to the pitch axis 12 is currently in a horizontal direction (such as a north-south direction), the processor 11 determines whether the angle difference between the actual attitude corresponding to the pitch axis 12 and the horizontal direction is within a predetermined range. If yes, the processor 11 obtains the output torque of the pitch motor 181 within a predetermined period of time. Among them, the error between the actual attitude of the PTZ 10 and the expected attitude is within a predetermined range, which means that when the PTZ 10 is not powered off or sleeping, it will still tend to approach the expected attitude, that is, the actual attitude of the PTZ 10 and expected The attitude error is basically small, and the PTZ 10 is currently in a steady state. At this time, the detection of the position of the center of gravity of the PTZ 10 is more statistically significant; and if the error between the actual attitude of the PTZ 10 and the expected attitude is within a predetermined range In addition, it means that the user may disturb the PTZ 10, so that the error between the actual attitude of the PTZ 10 and the expected attitude is too large. At this time, the detection of the position of the center of gravity of the PTZ 10 may be inaccurate. Therefore, when the error between the actual attitude and the expected attitude of the gimbal 10 is within a predetermined range, the position of the center of gravity of the gimbal 10 can be detected by counting the output torque.
以横滚轴13为例,假设横滚轴13的预期姿态当前为水平方向(例如东西方向),处理器11判断横滚轴13的实际姿态与水平方向之间的角度差是否处于预定范围内,若是,则处理器11获取横滚电机182在预定时间段内的输出扭矩。由于本发明实施方式以俯仰框架171和/或横滚框架172设置有机械限位为例,因而,处理器11无需判断偏航轴14的实际姿态与预期姿态之间的误差处于预定范围内。Taking the roll axis 13 as an example, assuming that the expected posture of the roll axis 13 is currently in a horizontal direction (e.g., east-west direction), the processor 11 determines whether the angle difference between the actual posture of the roll axis 13 and the horizontal direction is within a predetermined range. If yes, the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time. Since the embodiment of the present invention takes the pitch frame 171 and / or the roll frame 172 as an example of a mechanical limit, the processor 11 does not need to judge that the error between the actual attitude and the expected attitude of the yaw axis 14 is within a predetermined range.
在获取驱动装置18在预定时间段内的输出扭矩后,处理器11进一步可根据输出扭矩检测云台10的重心位置。例如,根据俯仰电机181在预定时间段内的输出扭矩判断俯仰框架171和负载16相对于俯仰轴12的重心位置;或者,根据横滚电机182在预定时间段内的输出扭矩判断横滚框架172、俯仰框架171和负载16相对于横滚轴13的重心位置。After acquiring the output torque of the driving device 18 within a predetermined period of time, the processor 11 may further detect the position of the center of gravity of the gimbal 10 according to the output torque. For example, the position of the center of gravity of the pitch frame 171 and the load 16 relative to the pitch axis 12 is determined based on the output torque of the pitch motor 181 within a predetermined period of time; or the roll frame 172 is determined based on the output torque of the roll motor 182 within a predetermined period of time The position of the center of gravity of the pitch frame 171 and the load 16 with respect to the roll axis 13.
请参阅图2和图10,在某些实施方式中,根据输出扭矩检测云台10的重心位置的步骤(即0123)包括:Referring to FIG. 2 and FIG. 10, in some embodiments, the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
01231:统计预定时间段内输出扭矩的平均值和方差;01231: Calculate the average and variance of the output torque within a predetermined time period;
01232:在平均值大于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和01232: When the average value is greater than a preset value and the variance is less than a predetermined value, determine that the position of the center of gravity of the head 10 is located on the first side of the vertical plane in which the rotation axis of the head 10 is located; and
01233:在平均值小于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。01233: When the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the rotation axis of the gimbal 10 is located.
在某些实施方式中,处理器11可用于执行01231、01232和01233中的方法。也即是说,处理器11可以用于:统计预定时间段内输出扭矩的平均值和方差;在平均值大于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和在平均值小于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。In some embodiments, the processor 11 may be used to perform the methods in 01231, 01232, and 01233. That is to say, the processor 11 may be used to: calculate the average value and variance of the output torque within a predetermined time period; when the average value is greater than a preset value and the variance is less than a predetermined value, determine that the position of the center of gravity of the gimbal 10 is located at the gimbal 10 The first side of the vertical plane on which the rotation axis of the camera is located; and when the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second plane of the vertical plane on which the rotation axis of the gimbal 10 is located side.
具体地,以俯仰轴12为例,处理器11获取俯仰电机181在预定时间段内的输出扭矩后,统计预定时间段内俯仰电机181的输出扭矩的平均值和方差,当平均值大于预设值而方差小于预定值时,处理器11确定俯仰框架171和负载16的重心位置(即俯仰框架171和负载16共同的重心位置)位于俯仰轴12所在的竖直平面的第一侧,即俯仰框架171和负载16的重心在图2中左倾(或者图3中z轴的左侧);当平均值小于预设值而方差小于预定值时,处理器11确定俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧,即俯仰框架171和负载16的重心在图2 中右倾(或者图3中z轴的右侧)。Specifically, taking the pitch axis 12 as an example, after the processor 11 obtains the output torque of the pitch motor 181 within a predetermined period of time, it calculates the average value and variance of the output torque of the pitch motor 181 within a predetermined period of time. When the value and the variance are less than the predetermined value, the processor 11 determines that the position of the center of gravity of the pitch frame 171 and the load 16 (that is, the position of the center of gravity of the pitch frame 171 and the load 16) is located on the first side of the vertical plane in which the pitch axis 12 is located, that is, the pitch The center of gravity of the frame 171 and the load 16 is tilted to the left in FIG. 2 (or to the left of the z-axis in FIG. 3); when the average value is less than a preset value and the variance is less than a predetermined value, the processor 11 determines the center of gravity of the tilting frame 171 and the load 16 The position is located on the second side of the vertical plane where the pitch axis 12 is located, that is, the center of gravity of the pitch frame 171 and the load 16 is tilted to the right in FIG. 2 (or to the right of the z-axis in FIG. 3).
以横滚轴13为例,处理器11获取横滚电机182在预定时间段内的输出扭矩后,统计预定时间段内横滚电机182的输出扭矩的平均值和方差,当平均值大于预设值而方差小于预定值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置(即横滚框架172、俯仰框架171和负载16共同的重心位置)位于横滚轴13所在的竖直平面的第一侧,即横滚框架172、俯仰框架171和负载16的重心在图2中前倾;当平均值小于预设值而方差小于预定值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第二侧,即横滚框架172、俯仰框架171和负载16的重心在图2中后倾。Taking the roll axis 13 as an example, after the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time, it calculates the average and variance of the output torque of the roll motor 182 within a predetermined period of time. When the value and the variance are smaller than the predetermined value, the processor 11 determines that the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 (that is, the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16) is located at the roll axis 13. The first side of the vertical plane, that is, the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted forward in FIG. 2; when the average value is less than a preset value and the variance is less than a predetermined value, the processor 11 determines the roll The positions of the center of gravity of the frame 172, the pitch frame 171, and the load 16 are located on the second side of the vertical plane on which the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are tilted backward in FIG.
可以理解,输出扭矩的平均值的大小与云台10的重心位置之间的关系可以进行除上述关系外的设置,例如,可以是在平均值大于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧,而在平均值小于预设值而方差小于预定值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧。具体可以根据需要设置,输出扭矩的平均值的大小与云台10的重心位置是一种映射关系,能够根据输出扭矩的平均值的大小确定云台10的重心位置即可,此处说明之后,在后面即不再重复进行说明。It can be understood that the relationship between the magnitude of the average value of the output torque and the position of the center of gravity of the gimbal 10 can be set in addition to the above relationship. For example, the cloud can be determined when the average value is greater than a preset value and the variance is less than a predetermined value. The position of the center of gravity of the platform 10 is located on the second side of the vertical plane where the rotation axis of the head 10 is located, and when the average value is less than a preset value and the variance is less than a predetermined value, it is determined that the position of the center of gravity of the platform 10 is located in the rotation of the head 10 The first side of the vertical plane in which the shaft is located. Specifically, it can be set according to needs. The magnitude of the average value of the output torque and the position of the center of gravity of the gimbal 10 are a mapping relationship. The position of the center of gravity of the gimbal 10 can be determined according to the average value of the output torque. The description will not be repeated later.
可以理解,方差可以体现驱动装置18的输出扭矩在预定时间段内的波动大小。当方差的值越大时,预定时间段内输出扭矩的波动越大,该预定时间段内输出扭矩的平均值的可信度越低;当方差的值越小时,预定时间段内输出扭矩的波动越小,该预定时间段内输出扭矩的平均值的可信度越高。因此,本发明实施方式中,处理器11在方差小于预定值时,根据平均值来判断云台10的重心位置,较为准确可靠。另外,由于处理器11同时统计预定时间段内输出扭矩的平均值和方差,因而可以较快的确定云台10的重心位置。It can be understood that the variance may reflect the fluctuation of the output torque of the driving device 18 within a predetermined period of time. When the value of the variance is larger, the fluctuation of the output torque in a predetermined period of time is larger, and the credibility of the average value of the output torque in the predetermined period of time is lower; when the value of the variance is smaller, the output torque is predetermined in the predetermined period of time. The smaller the fluctuation, the higher the credibility of the average value of the output torque in the predetermined time period. Therefore, in the embodiment of the present invention, when the variance of the processor 11 is less than a predetermined value, the position of the center of gravity of the PTZ 10 is determined according to the average value, which is more accurate and reliable. In addition, since the processor 11 simultaneously calculates the average value and the variance of the output torque within a predetermined time period, the position of the center of gravity of the pan / tilt head 10 can be determined relatively quickly.
请参阅图2和图10,在某些实施方式中,根据输出扭矩检测云台10的重心位置的步骤(即0123)包括:Referring to FIG. 2 and FIG. 10, in some embodiments, the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
01234:统计预定时间段内输出扭矩的方差;01234: Calculate the variance of the output torque within a predetermined time period;
01235:在方差小于预定值时,统计预定时间段内输出扭矩的平均值;01235: When the variance is less than a predetermined value, the average value of the output torque within a predetermined period of time is counted;
01236:在平均值大于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和01236: when the average value is greater than a preset value, determine that the position of the center of gravity of the gimbal 10 is located on the first side of the vertical plane in which the rotation axis of the gimbal 10 is located; and
01237:在平均值小于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。01237: When the average value is less than the preset value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the rotation axis of the gimbal 10 is located.
在某些实施方式中,处理器11可用于执行01234、01235、01236和01237中的 方法。也即是说,处理器11可以用于:统计预定时间段内输出扭矩的方差;在方差小于预定值时,统计预定时间段内输出扭矩的平均值;在平均值大于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和在平均值小于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。In some embodiments, the processor 11 may be used to execute the methods of 01234, 01235, 01236, and 01237. That is to say, the processor 11 may be used to: calculate the variance of the output torque within a predetermined time period; when the variance is less than a predetermined value, calculate the average value of the output torque within a predetermined time period; when the average value is greater than a preset value, determine The position of the center of gravity of the head 10 is located on the first side of the vertical plane in which the rotation axis of the head 10 is located; and when the average value is less than a preset value, it is determined that the position of the center of gravity of the head 10 is located in the vertical position where the rotation axis of the head 10 is located. The second side of the straight plane.
具体地,以俯仰轴12为例,处理器11获取俯仰电机181在预定时间段内的输出扭矩后,先统计预定时间段内俯仰电机181的输出扭矩的方差,当方差小于预定值时,再进一步统计该预定时间段内俯仰电机181的输出扭矩的平均值,当平均值大于预设值时,处理器11确定俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧,即俯仰框架171和负载16的重心在图2中左倾;当平均值小于预设值时,处理器11确定俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧,即俯仰框架171和负载16的重心在图2中右倾。Specifically, taking the pitch axis 12 as an example, after the processor 11 obtains the output torque of the pitch motor 181 in a predetermined period of time, first calculates the variance of the output torque of the pitch motor 181 in the predetermined period of time, and when the variance is less than the predetermined value, then The average value of the output torque of the pitch motor 181 during the predetermined time period is further calculated. When the average value is greater than a preset value, the processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located in the first plane of the vertical plane where the pitch axis 12 is located. One side, that is, the center of gravity of the pitch frame 171 and the load 16 is tilted to the left in FIG. 2; when the average value is less than a preset value, the processor 11 determines that the positions of the center of gravity of the pitch frame 171 and the load 16 are located in the vertical plane where the pitch axis 12 is located. The second side, that is, the center of gravity of the pitch frame 171 and the load 16 is tilted right in FIG. 2.
再以横滚轴13为例,处理器11获取横滚电机182在预定时间段内的输出扭矩后,先统计预定时间段内横滚电机182的输出扭矩的方差,当方差小于预定值时,再进一步统计该预定时间段内横滚电机182的输出扭矩的平均值,当平均值大于预设值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第一侧,即横滚框架172、俯仰框架171和负载16的重心在图2中前倾;当平均值小于预设值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第二侧,即横滚框架172、俯仰框架171和负载16的重心在图2中后倾。Taking the rolling axis 13 as an example again, after the processor 11 obtains the output torque of the rolling motor 182 in a predetermined period of time, it first calculates the variance of the output torque of the rolling motor 182 in the predetermined period of time. When the variance is less than a predetermined value, Furthermore, the average value of the output torque of the roll motor 182 during the predetermined time period is further calculated. When the average value is greater than a preset value, the processor 11 determines that the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the roll axis. The first side of the vertical plane where 13 is located, that is, the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted forward in FIG. 2; when the average value is less than a preset value, the processor 11 determines the roll frame 172, The positions of the center of gravity of the pitch frame 171 and the load 16 are located on the second side of the vertical plane where the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are tilted backward in FIG. 2.
可以理解,方差可以体现驱动装置18的输出扭矩在预定时间段内的波动大小。当方差的值越大时,预定时间段内输出扭矩的波动越大,该预定时间段内输出扭矩的平均值的可信度越低;当方差的值越小时,预定时间段内输出扭矩的波动越小,该预定时间段内输出扭矩的平均值的可信度越高。因此,本发明实施方式中,处理器11在方差小于预定值时,根据平均值来判断云台10的重心位置,较为准确可靠。另外,由于处理器11在方差小于预定值时,才统计预定时间段内输出扭矩的平均值,因而可以避免在方差大于或等于预定值时统计预定时间段内输出扭矩的平均值,增加不必要的数据处理量。It can be understood that the variance may reflect the fluctuation of the output torque of the driving device 18 within a predetermined period of time. When the value of the variance is larger, the fluctuation of the output torque in a predetermined period of time is larger, and the credibility of the average value of the output torque in the predetermined period of time is lower; when the value of the variance is smaller, the output torque is predetermined in the predetermined period of time. The smaller the fluctuation, the higher the credibility of the average value of the output torque in the predetermined time period. Therefore, in the embodiment of the present invention, when the variance of the processor 11 is less than a predetermined value, the position of the center of gravity of the PTZ 10 is determined according to the average value, which is more accurate and reliable. In addition, because the processor 11 only counts the average value of the output torque in a predetermined time period when the variance is less than a predetermined value, it can avoid counting the average value of the output torque in a predetermined time period when the variance is greater than or equal to the predetermined value, which is unnecessary. The amount of data processed.
请参阅图2和图10,在某些实施方式中,根据输出扭矩检测云台10的重心位置的步骤(即0123)包括:Referring to FIG. 2 and FIG. 10, in some embodiments, the step (ie, 0123) of detecting the position of the center of gravity of the gimbal 10 according to the output torque includes:
01238:统计预定时间段内输出扭矩的平均值;01238: Calculate the average value of output torque within a predetermined period of time;
01239:在平均值大于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和01239: when the average value is greater than the preset value, determine that the position of the center of gravity of the gimbal 10 is located on the first side of the vertical plane in which the rotation axis of the gimbal 10 is located; and
01240:在平均值小于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。01240: When the average value is less than the preset value, it is determined that the position of the center of gravity of the gimbal 10 is located on the second side of the vertical plane where the rotation axis of the gimbal 10 is located.
在某些实施方式中,处理器11可用于执行01238、01239和01240中的方法。也即是说,处理器11可以用于:统计预定时间段内输出扭矩的平均值;在平均值大于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第一侧;和在平均值小于预设值时,确定云台10的重心位置位于云台10的转动轴所在的竖直平面的第二侧。In some embodiments, the processor 11 may be used to perform the methods in 01238, 01239, and 01240. That is to say, the processor 11 can be used to: calculate the average value of the output torque within a predetermined period of time; when the average value is greater than a preset value, determine that the position of the center of gravity of the gimbal 10 is located in the vertical position of the rotation axis of the gimbal 10 The first side of the plane; and when the average value is less than the preset value, it is determined that the position of the center of gravity of the head 10 is located on the second side of the vertical plane in which the rotation axis of the head 10 is located.
具体地,以俯仰轴12为例,处理器11获取俯仰电机181在预定时间段内的输出扭矩后,统计预定时间段内俯仰电机181的输出扭矩的平均值,当平均值大于预设值时,处理器11确定俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧,即俯仰框架171和负载16的重心在图2中左倾;当平均值小于预设值时,处理器11确定俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧,即俯仰框架171和负载16的重心在图2中右倾。Specifically, taking the pitch axis 12 as an example, after the processor 11 obtains the output torque of the pitch motor 181 in a predetermined period of time, it calculates an average value of the output torque of the pitch motor 181 in a predetermined period of time, and when the average value is greater than a preset value The processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane in which the pitch axis 12 is located, that is, the centers of gravity of the pitch frame 171 and the load 16 are tilted to the left in FIG. 2; when the average value is less than a preset value At this time, the processor 11 determines that the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the second side of the vertical plane where the pitch axis 12 is located, that is, the centers of gravity of the pitch frame 171 and the load 16 are tilted to the right in FIG. 2.
再以横滚轴13为例,处理器11获取横滚电机182在预定时间段内的输出扭矩后,统计预定时间段内横滚电机182的输出扭矩的平均值,当平均值大于预设值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第一侧,即横滚框架172、俯仰框架171和负载16的重心在图2中前倾;当平均值小于预设值时,处理器11确定横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第二侧,即横滚框架172、俯仰框架171和负载16的重心在图2中后倾。Taking the roll axis 13 as an example again, after the processor 11 obtains the output torque of the roll motor 182 within a predetermined period of time, it calculates the average value of the output torque of the roll motor 182 within a predetermined period of time, and when the average value is greater than a preset value At this time, the processor 11 determines that the positions of the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the first side of the vertical plane in which the roll axis 13 is located, that is, the centers of gravity of the roll frame 172, the pitch frame 171, and the load 16 are at When the average value is less than the preset value, the processor 11 determines that the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the second side of the vertical plane where the roll axis 13 is located, that is, the horizontal The center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is tilted backward in FIG.
在某些实施方式中,上述预设值可以为零。可以理解,一般情况下,当云台10的重心位置位于云台10的转动轴所在的竖直平面,即未发生前倾、后倾、左倾或后倾时,驱动装置18的输出扭矩为零或者接近于零。因此,本发明实施方式中,处理器11可根据驱动装置18在预定时间段内的输出扭矩取平均值,若该平均值为零,则表明云台10中相应结构的重心位置位于云台10的转动轴所在的竖直平面,若该平均值大于或小于零,则表明云台10中相应结构的重心位置位于云台10的转动轴所在的竖直平面的第一侧或第二侧。In some embodiments, the preset value may be zero. It can be understood that, in general, when the position of the center of gravity of the gimbal 10 is located in a vertical plane on which the rotation axis of the gimbal 10 is located, that is, when no forward tilt, backward tilt, left tilt, or backward tilt occurs, the output torque of the driving device 18 is zero. Or close to zero. Therefore, in the embodiment of the present invention, the processor 11 may take an average value according to the output torque of the driving device 18 within a predetermined period of time. If the average value is zero, it indicates that the position of the center of gravity of the corresponding structure in the gimbal 10 is located at the gimbal 10 If the average value of the vertical axis on which the rotation axis is located is greater than or less than zero, it indicates that the position of the center of gravity of the corresponding structure in the head 10 is located on the first side or the second side of the vertical plane on which the rotation axis of the head 10 is located.
请参阅图2和图11,在某些实施方式中,云台10的重心位置包括云台10中的第一结构17a相对于俯仰轴12的重心位置。根据重心位置规划云台10的运动参数的步骤包括:Please refer to FIG. 2 and FIG. 11. In some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12. The steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
0141:根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数;0141: Plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0161:根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置。0161: Controlling the first structure 17a to move to the side of the center of gravity position of the first structure 17a to the static equilibrium position according to the motion parameters of the first structure 17a around the pitch axis 12.
在某些实施方式中,云台10的重心位置包括云台10中的第一结构17a相对于俯仰轴12的重心位置。处理器11可用于执行0141和0161中的方法。也即是说,处理器11可以用于:根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数;和根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置。In some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12. The processor 11 may be used to execute the methods in 0141 and 0161. That is to say, the processor 11 may be used to: plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10; The motion parameter of the pitch axis 12 controls the first structure 17a to move to the side where the center of gravity position of the first structure 17a is located to the static equilibrium position.
具体地,第一结构17a可包括上述俯仰框架171和负载16。当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第一侧运动至静力平衡位置;当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第二侧运动至静力平衡位置。Specifically, the first structure 17 a may include the above-mentioned pitch frame 171 and the load 16. When the positions of the center of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane where the pitch axis 12 is located, the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control the pitch frame according to the position of the center of gravity. 171 and load 16 move to the first side to the static equilibrium position; when the center of gravity of the pitch frame 171 and the load 16 is on the second side of the vertical plane where the pitch axis 12 is located, the processor 11 plans the pitch frame according to the position of the center of gravity The motion parameters of 171 and load 16 around the pitch axis 12 are used to control the pitch frame 171 and load 16 to move to the second side to the static equilibrium position.
请参阅图2和图11,在某些实施方式中,云台10的重心位置包括云台10中的第二结构17b相对于横滚轴13的重心位置。根据重心位置规划云台10的运动参数的步骤包括:Referring to FIGS. 2 and 11, in some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13. The steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
0142:根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数;0142: Plan the movement parameters of the second structure 17b around the roll axis 13 according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0162:根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置。0162: Controlling the second structure 17b to move to the side of the center of gravity position of the second structure 17b to the static equilibrium position according to the motion parameters of the second structure 17b around the roll axis 13.
在某些实施方式中,云台10的重心位置包括云台10中的第二结构17b相对于横滚轴13的重心位置。处理器11可用于执行0142和0162中的方法。也即是说,处理器11可以用于:根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数;和根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置。In some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13. The processor 11 may be used to execute the methods in 0142 and 0162. That is to say, the processor 11 may be used to: plan the movement parameters of the second structure 17b around the roll axis 13 according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10; and according to the second structure The movement parameter of 17b around the roll axis 13 controls the second structure 17b to move to the side where the center of gravity position of the second structure 17b is located to the static equilibrium position.
具体地,第二结构17b可包括上述横滚框架172、俯仰框架171和负载16。当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第 一侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚框架172、俯仰框架171和负载16向第一侧运动至静力平衡位置;当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第二侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚框架172、俯仰框架171和负载16向第二侧运动至静力平衡位置。Specifically, the second structure 17 b may include the roll frame 172, the pitch frame 171, and the load 16 described above. When the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the first side of the vertical plane where the roll axis 13 is located, the processor 11 plans the roll frame 172, the pitch frame 171, and the load 16 according to the position of the center of gravity. The movement parameters around the roll axis 13 are used to control the roll frame 172, the pitch frame 171, and the load 16 to move toward the first side to a static equilibrium position; when the position of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 is located in the roll When the second side of the vertical plane where the axis 13 is located, the processor 11 plans the movement parameters of the roll frame 172, the pitch frame 171, and the load 16 around the roll axis 13 to control the roll frame 172 and the pitch frame 171 according to the position of the center of gravity. The load 16 moves to the second side to the static equilibrium position.
请参阅图2和图11,在某些实施方式中,云台10的重心位置包括云台10中的第一结构17a相对于俯仰轴12的重心位置和云台10中的第二结构17b相对于横滚轴13的重心位置。根据重心位置规划云台10的运动参数的步骤包括:Please refer to FIG. 2 and FIG. 11. In some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12 and the position of the second structure 17 b in the head 10. At the center of gravity of the roll axis 13. The steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
0143:根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,并根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数;0143: Plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and relative to the roll axis 13 according to the second structure 17b in the gimbal 10 Planning the motion parameters of the second structure 17b around the roll axis 13 based on the position of the center of gravity;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0163:根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置,并根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置。0163: The first structure 17a is controlled to move to the static equilibrium position to the side where the center of gravity of the first structure 17a is located according to the movement parameters of the first structure 17a around the pitch axis 12. The motion parameter controls the second structure 17b to move to the side where the center of gravity position of the second structure 17b is located to the static equilibrium position.
在某些实施方式中,云台10的重心位置包括云台10中的第一结构17a相对于俯仰轴12的重心位置和云台10中的第二结构17b相对于横滚轴13的重心位置。处理器11可用于执行0143和0163中的方法。也即是说,处理器11可以用于:根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,并根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数;和根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置,并根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置。In some embodiments, the position of the center of gravity of the head 10 includes the position of the center of gravity of the first structure 17 a in the head 10 relative to the pitch axis 12 and the position of the center of gravity of the second structure 17 b in the head 10 relative to the roll axis 13 . The processor 11 may be used to execute the methods in 0143 and 0163. That is to say, the processor 11 may be configured to plan the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and The position of the center of gravity of the second structure 17b relative to the roll axis 13 plans the movement parameters of the second structure 17b around the roll axis 13; and controls the first structure 17a to the first structure 17a according to the movement parameters of the first structure 17a around the pitch axis 12. The side where the center of gravity is located moves to the static equilibrium position, and the second structure 17b is controlled to move to the side where the center of gravity of the second structure 17b is located to static equilibrium according to the movement parameters of the second structure 17b around the roll axis 13 position.
具体地,上述对0141和0142的解释说明,也适用于本发明实施方式。需要指出是,处理器11根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,与根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数的过程是相互独立、互不影响的。处理器11根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结 构17a的重心位置所在的一侧运动至静力平衡位置,与根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置的过程也是相互独立、互不影响的。处理器11可以在根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置的同时,根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数,根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置。或者,在时间允许的前提下,即能确保俯仰框架171和横滚框架172均不会撞到机械限位的前提下,处理器11先根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置,再根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数,根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置;或者,先根据云台10中的第二结构17b相对于横滚轴13的重心位置规划第二结构17b绕横滚轴13的运动参数,根据第二结构17b绕横滚轴13的运动参数控制第二结构17b向第二结构17b的重心位置所在的一侧运动至静力平衡位置,再根据云台10中的第一结构17a相对于俯仰轴12的重心位置规划第一结构17a绕俯仰轴12的运动参数,根据第一结构17a绕俯仰轴12的运动参数控制第一结构17a向第一结构17a的重心位置所在的一侧运动至静力平衡位置。Specifically, the above explanations of 0141 and 0142 also apply to the embodiments of the present invention. It should be noted that the processor 11 plans the movement parameters of the first structure 17a around the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, as opposed to according to the second structure 17b in the gimbal 10 The process of planning the movement parameters of the second structure 17b around the roll axis 13 based on the position of the center of gravity of the roll axis 13 is independent and does not affect each other. The processor 11 controls the first structure 17a to move to the static balance position on the side of the center of gravity position of the first structure 17a according to the motion parameter of the first structure 17a around the pitch axis 12, and around the roll axis 13 according to the second structure 17b The process of controlling the movement of the second structure 17b to the side of the center of gravity position of the second structure 17b to the static equilibrium position is also independent of each other and does not affect each other. The processor 11 may plan the movement parameters of the first structure 17a about the pitch axis 12 according to the position of the center of gravity of the first structure 17a relative to the pitch axis 12 in the gimbal 10, and control the first structure 17a according to the movement parameters of the first structure 17a about the pitch axis 12. A structure 17a is moved to the side where the center of gravity of the first structure 17a is located to the static equilibrium position, and the second structure 17b is planned to be horizontally orientated according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10 The movement parameters of the roller 13 are controlled according to the movement parameters of the second structure 17b around the roll axis 13 to move the second structure 17b to the side where the center of gravity of the second structure 17b is located to the static equilibrium position. Or, under the premise of time, that is, to ensure that neither the pitch frame 171 nor the roll frame 172 will hit the mechanical limit, the processor 11 first relative to the pitch axis according to the first structure 17a in the gimbal 10 The position of the center of gravity of 12 is planned for the movement parameters of the first structure 17a around the pitch axis 12, and the first structure 17a is controlled to move to the side where the position of the center of gravity of the first structure 17a is located according to the movement parameters of the first structure 17a around the pitch axis 12. Balance position, and then plan the movement parameters of the second structure 17b around the roll axis 13 according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the head 10, and according to the movement parameters of the second structure 17b around the roll axis 13 Control the second structure 17b to move to the static equilibrium position to the side where the center of gravity of the second structure 17b is located; or, first plan the second structure according to the position of the center of gravity of the second structure 17b relative to the roll axis 13 in the gimbal 10 The movement parameters of 17b around the roll axis 13 are controlled according to the movement parameters of the second structure 17b around the roll axis 13 to control the second structure 17b to move to the side of the center of gravity position of the second structure 17b to the static equilibrium position, and then according to the cloud No. 1 in Taiwan The position of the center of gravity of the structure 17a relative to the pitch axis 12 is to plan the movement parameters of the first structure 17a around the pitch axis 12, and the position of the center of gravity of the first structure 17a to the first structure 17a is controlled according to the movement parameters of the first structure 17a around the pitch axis 12. Move to the static equilibrium position on one side.
请参阅图2和图12,在某些实施方式中,云台10的工作模式包括姿态闭环模式和关节角闭环模式。控制方法还包括:Please refer to FIG. 2 and FIG. 12. In some embodiments, the working modes of the gimbal 10 include an attitude closed-loop mode and a joint angle closed-loop mode. Control methods also include:
022:获取云台10的当前工作模式;022: Obtain the current working mode of the PTZ 10;
024:控制云台10的当前工作模式为关节角闭环模式;024: The current working mode of the control gimbal 10 is a joint angle closed loop mode;
根据重心位置规划云台10的运动参数的步骤包括:The steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
0144:在关节角闭环模式下,确定云台10到达静力平衡位置的目标关节角;0144: Determine the target joint angle of the gimbal 10 to the static equilibrium position in the joint angle closed-loop mode;
0145:根据云台10的当前关节角和目标关节角规划云台10的运动参数;0145: Plan the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0164:根据运动参数控制云台10向重心位置所在的一侧运动至目标关节角。0164: Control the gimbal 10 to the target joint angle to the side where the center of gravity is located according to the motion parameters.
在某些实施方式中,云台10的工作模式包括姿态闭环模式和关节角闭环模式。 处理器11可用于执行022、024、0144、0145和0164中的方法。也即是说,处理器11可以用于:获取云台10的当前工作模式;控制云台10的当前工作模式为关节角闭环模式;在关节角闭环模式下,确定云台10到达静力平衡位置的目标关节角;根据云台10的当前关节角和目标关节角规划云台10的运动参数;和根据运动参数控制云台10向重心位置所在的一侧运动至目标关节角。In some embodiments, the working modes of the pan / tilt head 10 include an attitude closed-loop mode and a joint angle closed-loop mode. The processor 11 may be used to execute the methods in 022, 024, 0144, 0145, and 0164. That is to say, the processor 11 can be used to: obtain the current working mode of the gimbal 10; control the current working mode of the gimbal 10 to be a joint angle closed-loop mode; in the joint angle closed-loop mode, determine that the gimbal 10 reaches static equilibrium Position the target joint angle; plan the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10; and control the gimbal 10 to move to the target joint angle to the side where the center of gravity is located according to the motion parameters.
具体地,在云台10的当前工作模式为姿态闭环模式时,处理器11控制云台10的当前工作模式为关节角闭环模式的过程为:处理器11控制云台10由姿态闭环模式切换为关节角闭环模式;在云台10的当前工作模式为关节角闭环模式时,处理器11控制云台10的当前工作模式为关节角闭环模式的过程为:处理器11控制云台10保持关节角闭环模式。Specifically, when the current working mode of the PTZ 10 is the attitude closed-loop mode, the process of the processor 11 controlling the current working mode of the PTZ 10 to be the joint angle closed-loop mode is: the processor 11 controls the PTZ 10 to switch from the attitude closed-loop mode to Joint angle closed-loop mode; when the current working mode of the gimbal 10 is the joint angle closed-loop mode, the process of the processor 11 controlling the current working mode of the gimbal 10 to be a joint angle closed-loop mode is: the processor 11 controls the gimbal 10 to maintain the joint angle Closed loop mode.
在关节角闭环模式下,处理器11确定云台10需要到达静力平衡位置的目标关节角,例如,当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第一侧运动至静力平衡位置,该静力平衡位置为第一俯仰关节角;当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第二侧运动至静力平衡位置,该静力平衡位置为第二俯仰关节角;当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第一侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚框架172、俯仰框架171和负载16向第一侧运动至静力平衡位置,该静力平衡位置为第一横滚关节角;当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13的第二侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚框架172、俯仰框架171和负载16向第二侧运动至静力平衡位置,该静力平衡位置为第二横滚关节角。In the joint angle closed-loop mode, the processor 11 determines the target joint angle at which the gimbal 10 needs to reach the static equilibrium position. For example, when the positions of the center of gravity of the pitch frame 171 and the load 16 are on the first side of the vertical plane in which the pitch axis 12 is located At this time, the processor 11 plans the movement parameters of the pitch frame 171 and the load 16 around the pitch axis 12 according to the position of the center of gravity to control the pitch frame 171 and the load 16 to move to the first side to a static equilibrium position, which is the first Pitch joint angle; when the positions of the center of gravity of the pitch frame 171 and the load 16 are on the second side of the vertical plane where the pitch axis 12 is located, the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 according to the position of the center of gravity To control the pitch frame 171 and the load 16 to move to the second side to a static equilibrium position, the static balance position is the second pitch joint angle; when the roll frame 172, the pitch frame 171, and the center of gravity of the load 16 are located on the roll axis When the first side of the vertical plane where 13 is located, the processor 11 plans the movement parameters of the roll frame 172, the pitch frame 171, and the load 16 around the roll axis 13 to control the roll frame according to the position of the center of gravity. 172. The pitch frame 171 and the load 16 move to the first side to a static equilibrium position, where the static balance position is the first roll joint angle; when the roll frame 172, the pitch frame 171, and the center of gravity of the load 16 are located in the roll When the second side of the axis 13, the processor 11 plans the movement parameters of the roll frame 172, the pitch frame 171, and the load 16 around the roll axis 13 according to the position of the center of gravity to control the roll frame 172, the pitch frame 171, and the load 16 to the first Both sides move to the static equilibrium position, which is the second roll joint angle.
处理器11根据云台10的重心位置确定云台10的目标关节角后,再根据云台10的当前关节角和目标关节角规划云台10的运动参数以控制云台10运动至上述目标关节角。The processor 11 determines the target joint angle of the gimbal 10 according to the position of the center of gravity of the gimbal 10, and then plans the motion parameters of the gimbal 10 according to the current joint angle and the target joint angle of the gimbal 10 to control the gimbal 10 to move to the target joint angle.
请参阅图2和图12,在某些实施方式中,云台10的工作模式包括姿态闭环模式和关节角闭环模式。控制方法还包括:Please refer to FIG. 2 and FIG. 12. In some embodiments, the working modes of the gimbal 10 include an attitude closed-loop mode and a joint angle closed-loop mode. Control methods also include:
022:获取云台10的当前工作模式;022: Obtain the current working mode of the PTZ 10;
028:控制云台10的当前工作模式为姿态闭环模式;028: Control the current working mode of the pan / tilt head 10 as an attitude closed loop mode;
根据重心位置规划云台10的运动参数的步骤包括:The steps of planning the motion parameters of the gimbal 10 according to the position of the center of gravity include:
0146:在姿态闭环模式下,确定云台10到达静力平衡位置的目标姿态;0146: Determine the target attitude of the PTZ 10 to the static equilibrium position in the attitude closed-loop mode;
0147:根据云台10的当前姿态和目标姿态规划云台10的运动参数;0147: Plan the motion parameters of the PTZ 10 according to the current attitude and target attitude of the PTZ 10;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0165:根据运动参数控制云台10向重心位置所在的一侧运动至目标姿态。0165: Control the pan / tilt head 10 to the side where the center of gravity is located to the target attitude according to the motion parameter.
在某些实施方式中,云台10的工作模式包括姿态闭环模式和关节角闭环模式。处理器11可用于执行022、028、0146、0147和0165中的方法。也即是说,处理器11可以用于:获取云台10的当前工作模式;控制云台10的当前工作模式为姿态闭环模式;在姿态闭环模式下,确定云台10到达静力平衡位置的目标姿态;根据云台10的当前姿态和目标姿态规划云台10的运动参数;和根据运动参数控制云台10向重心位置所在的一侧运动至目标姿态。In some embodiments, the working modes of the pan / tilt head 10 include an attitude closed-loop mode and a joint angle closed-loop mode. The processor 11 may be used to execute the methods in 022, 028, 0146, 0147, and 0165. That is to say, the processor 11 can be used to: obtain the current working mode of the PTZ 10; control the current working mode of the PTZ 10 as an attitude closed-loop mode; in the attitude closed-loop mode, determine whether the PTZ 10 has reached the static equilibrium position Target attitude; planning the motion parameters of the gimbal 10 according to the current attitude of the gimbal 10 and the target attitude; and controlling the gimbal 10 to move to the target attitude based on the motion parameters to the side where the center of gravity is located.
具体地,在云台10的当前工作模式为姿态闭环模式时,处理器11控制云台10的当前工作模式为姿态闭环模式的过程为:处理器11控制云台10保持姿态闭环模式;在云台10的当前工作模式为关节角闭环模式时,处理器11控制云台10的当前工作模式为姿态闭环模式的过程为:处理器11控制云台10由关节角闭环模式切换为姿态闭环模式。Specifically, when the current working mode of the PTZ 10 is the attitude closed-loop mode, the process of the processor 11 controlling the current working mode of the PTZ 10 to be the attitude closed-loop mode is: the processor 11 controls the PTZ 10 to maintain the attitude closed-loop mode; When the current working mode of the platform 10 is the joint angle closed-loop mode, the process of the processor 11 controlling the PTZ 10's current working mode to the attitude closed-loop mode is: the processor 11 controls the PTZ 10 to switch from the joint angle closed-loop mode to the attitude closed-loop mode.
在姿态闭环模式下,处理器11确定云台10需要到达静力平衡位置的目标姿态。例如,当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第一侧运动至静力平衡位置,该静力平衡位置为第一俯仰姿态,此时,云台10的横滚姿态、偏航姿态可以不做限定;当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧时,处理器11根据该重心位置规划俯仰框架171和负载16绕俯仰轴12的运动参数以控制俯仰框架171和负载16向第二侧运动至静力平衡位置,该静力平衡位置为第二俯仰姿态,此时,云台10的横滚姿态、偏航姿态可以不做限定;当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在的竖直平面的第一侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚框架172、俯仰框架171和负载16向第一侧运动至静力平衡位置,该静力平衡位置为第一横滚姿态,此时,云台10的俯仰姿态、偏航姿态可以不做限定;当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13的第二侧时,处理器11根据该重心位置规划横滚框架172、俯仰框架171和负载16绕横滚轴13的运动参数以控制横滚 框架172、俯仰框架171和负载16向第二侧运动至静力平衡位置,该静力平衡位置为第二横滚姿态,此时,云台10的俯仰姿态、偏航姿态可以不做限定。In the attitude closed-loop mode, the processor 11 determines the target attitude that the gimbal 10 needs to reach the static equilibrium position. For example, when the positions of the centers of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane in which the pitch axis 12 is located, the processor 11 plans the motion parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control according to the positions of the centers of gravity. The pitching frame 171 and the load 16 move to the first side to a static equilibrium position, where the static equilibrium position is the first pitching attitude. At this time, the roll attitude and yaw attitude of the gimbal 10 may not be limited. When the positions of the centers of gravity of 171 and load 16 are on the second side of the vertical plane where the pitch axis 12 is located, the processor 11 plans the movement parameters of the pitch frame 171 and the load 16 around the pitch axis 12 to control the pitch frame 171 and the load according to the position of the center of gravity. 16 moves to the second side to the static equilibrium position, and the static equilibrium position is the second pitch attitude. At this time, the roll attitude and yaw attitude of the gimbal 10 may not be limited; when the roll frame 172, the pitch frame When the position of the center of gravity of 171 and the load 16 is on the first side of the vertical plane where the roll axis 13 is located, the processor 11 plans the movement of the roll frame 172, the pitch frame 171, and the load 16 about the roll axis 13 according to the position of the center of gravity. Control the roll frame 172, the pitch frame 171, and the load 16 to the first side to the static equilibrium position, and the static equilibrium position is the first roll attitude. At this time, the pitch attitude and yaw attitude of the gimbal 10 It may not be limited; when the center of gravity position of the roll frame 172, the pitch frame 171, and the load 16 is located on the second side of the roll axis 13, the processor 11 plans the roll frame 172, the pitch frame 171, and the load 16 according to the position of the center of gravity The movement parameters around the roll axis 13 are used to control the roll frame 172, the pitch frame 171, and the load 16 to move to the second side to the static equilibrium position, which is the second roll attitude. At this time, the pan / tilt head 10 The pitch attitude and yaw attitude may not be limited.
处理器11根据云台10的重心位置确定云台10的目标姿态后,再根据云台10的当前姿态和目标姿态规划云台10的运动参数以控制云台10运动至上述目标姿态。After the processor 11 determines the target attitude of the gimbal 10 according to the position of the center of gravity of the gimbal 10, the motion parameters of the gimbal 10 are planned according to the current attitude and target attitude of the gimbal 10 to control the gimbal 10 to move to the target attitude.
可以理解,在上述姿态闭环模式下,俯仰电机181、横滚电机182和偏航电机183配合工作以将负载16稳定在预定姿态。在上述关节角闭环模式下,俯仰电机181工作使得俯仰轴12到达预定俯仰关节角,横滚电机182工作使得横滚轴13到达预定横滚关节角,偏航电机183工作使得偏航轴14到达预定偏航关节角。It can be understood that, in the attitude closed-loop mode, the pitch motor 181, the roll motor 182, and the yaw motor 183 work together to stabilize the load 16 in a predetermined attitude. In the above-mentioned joint angle closed-loop mode, the pitch motor 181 operates so that the pitch axis 12 reaches a predetermined pitch joint angle, the roll motor 182 operates so that the roll axis 13 reaches a predetermined roll joint angle, and the yaw motor 183 operates so that the yaw axis 14 reaches Predetermined yaw joint angle.
请参阅图2和图13,在某些实施方式中,根据重心位置规划云台10的运动参数的步骤包括:Please refer to FIG. 2 and FIG. 13. In some embodiments, the step of planning the motion parameters of the gimbal 10 according to the position of the center of gravity includes:
0148:根据重心位置规划云台10的运动加速度;0148: Plan the acceleration of the gimbal 10 according to the position of the center of gravity;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0166:根据运动加速度控制云台10向重心位置所在的一侧运动至静力平衡位置。0166: The gimbal 10 is controlled to move to the side of the center of gravity position to the static equilibrium position according to the motion acceleration.
在某些实施方式中,处理器11可用于执行0148和0166中的方法。也即是说,处理器11可以用于:根据重心位置规划云台10的运动加速度;和根据运动加速度控制云台10向重心位置所在的一侧运动至静力平衡位置。In some embodiments, the processor 11 may be used to perform the methods in 0148 and 0166. That is to say, the processor 11 can be used for: planning the movement acceleration of the gimbal 10 according to the position of the center of gravity; and controlling the movement of the gimbal 10 to the side of the center of gravity position to the static equilibrium position according to the movement acceleration.
例如,当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第一侧时,则静力平衡位置为第一俯仰关节角,例如80度,而云台10的当前俯仰关节角为20度,因此处理器11可以规划云台10先从当前俯仰关节角以加速度2.4度/秒2由初速度0度/秒匀加速运动5秒,再以加速度-2.4度/秒2匀减速运动5秒,最终平缓的到达第一俯仰关节角所在的位置。For example, when the positions of the center of gravity of the pitch frame 171 and the load 16 are located on the first side of the vertical plane where the pitch axis 12 is located, the static equilibrium position is the first pitch joint angle, such as 80 degrees, and the current pitch of the gimbal 10 The joint angle is 20 degrees, so the processor 11 can plan the gimbal 10 to first accelerate the movement from the current pitch joint angle with an acceleration of 2.4 degrees / second2 from the initial velocity of 0 degrees / second for 5 seconds, and then with an acceleration of -2.4 degrees / second 2 Slowly decelerate for 5 seconds, and finally reach the position of the first pitch joint angle gently.
请参阅图2和图13,在某些实施方式中,根据重心位置规划云台10的运动参数的步骤包括:Please refer to FIG. 2 and FIG. 13. In some embodiments, the step of planning the motion parameters of the gimbal 10 according to the position of the center of gravity includes:
0149:根据重心位置规划云台10的运动速度;0149: Plan the moving speed of the gimbal 10 according to the position of the center of gravity;
根据运动参数控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即016)包括:The step (i.e., 016) of controlling the PTZ 10 to move to the static equilibrium position according to the motion parameter, including:
0167:根据运动速度控制云台10向重心位置所在的一侧运动至静力平衡位置。0167: Control the PTZ 10 to move to the side of the center of gravity position to the static equilibrium position according to the movement speed.
在某些实施方式中,处理器11可用于执行0149和0167中的方法。也即是说,处理器11可以用于:根据重心位置规划云台10的运动速度;和根据运动速度控制云台10向重心位置所在的一侧运动至静力平衡位置。In some embodiments, the processor 11 may be used to perform the methods in 0149 and 0167. That is to say, the processor 11 may be used for: planning the movement speed of the gimbal 10 according to the position of the center of gravity; and controlling the movement of the gimbal 10 to the side where the center of gravity position is located to the static equilibrium position according to the movement speed.
例如,当横滚框架172、俯仰框架171和负载16的重心位置位于横滚轴13所在 的竖直平面的第一侧时,则静力平衡位置为第一横滚关节角,例如80度,而云台10的当前横滚关节角为20度,因此处理器11可以规划云台10先从当前横滚关节角,由初速度0度/秒在5秒内匀加速至10度/秒,然后再以中间速度10度/秒匀速运动1秒,最后由中间速度10度/秒在5秒内匀减速至0度/秒,最终平缓地到达第一横滚关节角所在的位置。For example, when the positions of the center of gravity of the roll frame 172, the pitch frame 171, and the load 16 are located on the first side of the vertical plane in which the roll axis 13 is located, the static balance position is the first roll joint angle, such as 80 degrees, The current roll joint angle of the PTZ 10 is 20 degrees, so the processor 11 can plan that the PTZ 10 first accelerates from the current roll joint angle from the initial speed of 0 degrees / sec to 10 degrees / sec in 5 seconds. Then, it moves at a constant speed of 10 degrees / second at an intermediate speed for 1 second, and finally decelerates from 0 degrees / second at an intermediate speed of 10 degrees / second to 0 degrees / second, and finally reaches the position of the first roll joint angle smoothly.
请参阅图2和图14,在某些实施方式中,根据运动速度控制云台10向重心位置所在的一侧运动至静力平衡位置的步骤(即0167)包括:Please refer to FIG. 2 and FIG. 14. In some embodiments, the step of controlling the head 10 to move to the side of the center of gravity position to the static equilibrium position according to the movement speed (ie, 0167) includes:
01671:根据运动速度控制云台10向重心位置所在的一侧减速运动至静力平衡位置;或者01671: Control the PTZ 10 to decelerate to the position of the center of gravity to the static equilibrium position according to the speed of movement; or
01672:根据运动速度控制云台10向重心位置所在的一侧根据加速-减速的速度规划运动至静力平衡位置;或者01672: Control the side of the gimbal 10 to the center of gravity position based on the speed of movement to plan the movement to the static equilibrium position according to the acceleration-deceleration speed; or
01673:根据运动速度控制云台10向重心位置所在的一侧根据加速-匀速-减速的速度规划运动至静力平衡位置。01673: According to the speed of movement, control the side of the PTZ 10 to the center of gravity position to plan the movement to the static equilibrium position according to the acceleration-uniform-deceleration speed.
在某些实施方式中,处理器11可用于执行01671、01672和01673中的方法。也即是说,处理器11可以用于:根据运动速度控制云台10向重心位置所在的一侧减速运动至静力平衡位置;或者根据运动速度控制云台10向重心位置所在的一侧根据加速-减速的速度规划运动至静力平衡位置;或者根据运动速度控制云台10向重心位置所在的一侧根据加速-匀速-减速的速度规划运动至静力平衡位置。In some embodiments, the processor 11 may be used to perform the methods in 01671, 01672, and 01673. That is to say, the processor 11 can be used to control the PTZ 10 to decelerate to the position of the center of gravity according to the speed of movement to the static equilibrium position; or to control the side of the PTZ 10 to the position of the center of gravity according to the speed of movement The acceleration-deceleration speed is planned to move to the static equilibrium position; or the side of the gimbal 10 to the position of the center of gravity position is controlled according to the movement speed to plan the movement to the static equilibrium position according to the acceleration-uniform-deceleration speed.
例如,当俯仰框架171和负载16的重心位置位于俯仰轴12所在的竖直平面的第二侧时,则静力平衡位置为第二俯仰关节角,例如-80度,而云台10的当前俯仰关节角为-20度。For example, when the positions of the center of gravity of the pitch frame 171 and the load 16 are on the second side of the vertical plane where the pitch axis 12 is located, the static equilibrium position is the second pitch joint angle, such as -80 degrees, and the current position of the gimbal 10 The pitch joint angle is -20 degrees.
处理器11可以规划云台10的运动速度如下:第一种方式,先从当前俯仰关节角,由初速度24度/秒在5秒内匀减速至0度/秒,最终平缓地到达第二俯仰关节角所在的位置;第二种方式,先从当前俯仰关节角,由初速度0度/秒在5秒内匀加速至12度/秒,再由12度/秒在5秒内匀减速至0度/秒,最终平缓的到达第二俯仰关节角所在的位置;第三种方式,先从当前俯仰关节角,由初速度0度/秒在5秒内匀加速至10度/秒,然后再以中间速度10度/秒匀速运动1秒,最后由中间速度10度/秒在5秒内匀减速至0度/秒,最终平缓地到达第二俯仰关节角所在的位置。The processor 11 can plan the movement speed of the gimbal 10 as follows: The first method is to first decelerate from the current pitch joint angle from the initial speed of 24 degrees / second to 0 degrees / second in 5 seconds, and finally reach the second gently. The position of the pitch joint angle; the second way is to accelerate from the current pitch joint angle from the initial velocity of 0 degrees / second to 12 degrees / second within 5 seconds, and then decelerate from 12 degrees / second within 5 seconds. To 0 degrees / second, and finally reached the position of the second pitch joint angle gently; the third way, first from the current pitch joint angle, from the initial velocity of 0 degrees / second to accelerate uniformly to 10 degrees / second in 5 seconds, Then, it moves at a constant speed of 10 degrees / second at an intermediate speed for 1 second, and finally decelerates from a middle speed of 10 degrees / second to 0 degrees / second in 5 seconds, and finally reaches the position of the second pitch joint angle gently.
本发明实施方式还提供一种移动平台,该移动平台可以包括移动平台本体和上述任一实施方式的云台。云台设置在移动平台本体上。该可移动平台具体可以是移动小车、无人机等能够移动的装置。An embodiment of the present invention further provides a mobile platform. The mobile platform may include a mobile platform body and a pan / tilt according to any one of the foregoing embodiments. The gimbal is set on the mobile platform body. The movable platform may specifically be a movable device such as a mobile cart or a drone.
具体的,当可移动平台是移动小车时,移动小车上的云台可以为两轴云台,该云 台可以被配置成绕俯仰轴、偏航轴旋转,该云台上可以挂载有射击装置,以使得移动小车可以用于对抗比赛等场景。当然,云台上也可以由用户自由配置其它负载。Specifically, when the movable platform is a mobile cart, the pan / tilt on the mobile cart can be a two-axis pan / tilt. The pan / tilt can be configured to rotate around the pitch axis and yaw axis. The pan / tilt can be mounted with a shot. Device so that the mobile cart can be used in scenarios such as competitions. Of course, other loads can be freely configured by the user on the PTZ.
本发明实施方式的移动平台能够根据云台的重心位置规划云台的运动参数,以控制云台平缓地向重心位置所在的一侧运动至静力平衡位置,从而避免云台由于重力的作用直接撞到限位而出现撞坏的情况,有利于降低云台的更换频率,提高移动小车的使用体验。The mobile platform according to the embodiment of the present invention can plan the motion parameters of the gimbal according to the position of the center of gravity of the gimbal to control the gimbal to move gently to the side where the center of gravity is located to a static equilibrium position, thereby avoiding the gimbal directly due to gravity A crash caused by hitting a limit will help reduce the frequency of replacement of the gimbal and improve the use experience of the mobile car.
在本说明书的描述中,参考术语“某些实施方式”等的描述意指结合所述实施方式或示例描述的具体特征、结构或者特点包含于本发明的至少一个实施方式中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式。而且,描述的具体特征、结构或者特点可以在任何的一个或多个实施方式中以合适的方式结合。In the description of this specification, the description with reference to the term "certain embodiments" and the like means that specific features, structures, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment. Moreover, the specific features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。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 functions may be performed out of the order shown or discussed, including performing 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. Embodiments are subject to change, modification, replacement, and modification.

Claims (39)

  1. 一种云台的控制方法,其特征在于,所述控制方法包括:A control method for a pan / tilt head, characterized in that the control method includes:
    检测所述云台的重心位置;Detecting the position of the center of gravity of the pan / tilt;
    若所述重心位置位于所述云台的转动轴所在的竖直平面的第一侧或第二侧,则根据所述重心位置规划所述云台的运动参数,所述第一侧和所述第二侧为相反的两侧;和If the position of the center of gravity is located on the first side or the second side of the vertical plane in which the rotation axis of the gimbal is located, then the motion parameters of the gimbal are planned according to the position of the center of gravity, and the first side and the The second side is the opposite side; and
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。Controlling the pan / tilt head to move to the side where the center of gravity position is located to a static equilibrium position according to the motion parameter.
  2. 根据权利要求1所述的控制方法,其特征在于,所述检测所述云台的重心位置的步骤包括:The control method according to claim 1, wherein the step of detecting the position of the center of gravity of the gimbal comprises:
    在接收到预设指令时,检测所述云台的重心位置。When a preset instruction is received, the position of the center of gravity of the gimbal is detected.
  3. 根据权利要求2所述的控制方法,其特征在于,所述预设指令包括针对所述云台的下电指令或休眠指令;或者The control method according to claim 2, wherein the preset instruction comprises a power-off instruction or a sleep instruction for the PTZ; or
    所述预设指令包括接收到针对所述云台中相应轴结构的驱动装置的下电指令或休眠指令。The preset instruction includes receiving a power-down instruction or a sleep instruction for a driving device of a corresponding axis structure in the gimbal.
  4. 根据权利要求1所述的控制方法,其特征在于,在所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤之后,所述方法还包括:The control method according to claim 1, wherein after the step of controlling the pan-tilt to move to a side of the center of gravity position to a static equilibrium position according to the motion parameter, the method further include:
    执行针对所述云台的下电指令或休眠指令;或者Execute a power-off instruction or a sleep instruction for the PTZ; or
    执行针对所述云台中相应轴结构的驱动装置的下电指令或休眠指令。A power-off instruction or a sleep instruction for a drive device of a corresponding axis structure in the gimbal is executed.
  5. 根据权利要求1所述的控制方法,其特征在于,所述检测所述云台的重心位置的步骤包括:The control method according to claim 1, wherein the step of detecting the position of the center of gravity of the gimbal comprises:
    在所述云台的实际姿态与预期姿态之间的误差处于预定范围内时,获取用于驱动所述云台的驱动装置在预定时间段内的输出扭矩;和When the error between the actual attitude and the expected attitude of the gimbal is within a predetermined range, obtaining an output torque of a driving device for driving the gimbal within a predetermined time period; and
    根据所述输出扭矩检测所述云台的重心位置。Detecting the position of the center of gravity of the gimbal according to the output torque.
  6. 根据权利要求5所述的控制方法,其特征在于,所述根据所述输出扭矩检测所 述云台的重心位置的步骤包括:The control method according to claim 5, wherein the step of detecting the position of the center of gravity of the gimbal based on the output torque comprises:
    统计所述预定时间段内所述输出扭矩的平均值和方差;Statistics the average value and variance of the output torque in the predetermined time period;
    在所述平均值大于预设值而所述方差小于预定值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value and the variance is less than a predetermined value, determining that the position of the center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值而所述方差小于所述预定值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第二侧。When the average value is smaller than the preset value and the variance is smaller than the predetermined value, it is determined that the position of the center of gravity of the head is located on the second side of the vertical plane in which the rotation axis of the head is located.
  7. 根据权利要求5所述的控制方法,其特征在于,所述根据所述输出扭矩检测所述云台的重心位置的步骤包括:The control method according to claim 5, wherein the step of detecting the position of the center of gravity of the gimbal based on the output torque comprises:
    统计所述预定时间段内所述输出扭矩的方差;Statistics the variance of the output torque in the predetermined time period;
    在所述方差小于预定值时,统计所述预定时间段内所述输出扭矩的平均值;When the variance is less than a predetermined value, averaging the average value of the output torque in the predetermined time period;
    在所述平均值大于预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value, determining that a position of a center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第二侧。When the average value is smaller than the preset value, it is determined that the position of the center of gravity of the gimbal is located on the second side of the vertical plane where the rotation axis of the gimbal is located.
  8. 根据权利要求5所述的控制方法,其特征在于,所述根据所述输出扭矩检测所述云台的重心位置的步骤包括:The control method according to claim 5, wherein the step of detecting the position of the center of gravity of the gimbal based on the output torque comprises:
    统计所述预定时间段内所述输出扭矩的平均值;Statistics the average value of the output torque in the predetermined time period;
    在所述平均值大于预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value, determining that a position of a center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第二侧。When the average value is smaller than the preset value, it is determined that the position of the center of gravity of the gimbal is located on the second side of the vertical plane where the rotation axis of the gimbal is located.
  9. 根据权利要求5-8任意一项所述的控制方法,其特征在于,所述驱动装置为电机。The control method according to any one of claims 5 to 8, wherein the driving device is a motor.
  10. 根据权利要求5-8任意一项所述的控制方法,其特征在于,所述云台的重心位置包括所述云台中的第一结构相对于俯仰轴的重心位置;The control method according to any one of claims 5 to 8, wherein the position of the center of gravity of the head includes the position of the center of gravity of the first structure in the head relative to the pitch axis;
    所述根据所述重心位置规划所述云台的运动参数的步骤包括:The step of planning motion parameters of the gimbal according to the position of the center of gravity includes:
    根据所述云台中的第一结构相对于俯仰轴的重心位置规划所述第一结构绕所述俯仰轴的运动参数;Planning the motion parameters of the first structure around the pitch axis according to the position of the center of gravity of the first structure relative to the pitch axis in the gimbal;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述第一结构绕所述俯仰轴的运动参数控制所述第一结构向所述第一结构的重心位置所在的一侧运动至静力平衡位置。Controlling the first structure to move to the side of the center of gravity position of the first structure to a static equilibrium position according to a movement parameter of the first structure around the pitch axis.
  11. 根据权利要求5-8任意一项所述的控制方法,其特征在于,所述云台的重心位置包括所述云台中的第二结构相对于横滚轴的重心位置;The control method according to any one of claims 5 to 8, wherein the position of the center of gravity of the head includes the position of the center of gravity of the second structure in the head relative to the roll axis;
    所述根据所述重心位置规划所述云台的运动参数的步骤包括:The step of planning motion parameters of the gimbal according to the position of the center of gravity includes:
    根据所述云台中的第二结构相对于横滚轴的重心位置规划所述第二结构绕所述横滚轴的运动参数;Planning the movement parameters of the second structure around the roll axis according to the position of the center of gravity of the second structure relative to the roll axis in the head;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述第二结构绕所述横滚轴的运动参数控制所述第二结构向所述第二结构的重心位置所在的一侧运动至静力平衡位置。Controlling the second structure to move to the side of the center of gravity position of the second structure to the static equilibrium position according to the movement parameters of the second structure around the roll axis.
  12. 根据权利要求5-8任意一项所述的控制方法,其特征在于,所述云台的重心位置包括所述云台中的第一结构相对于俯仰轴的重心位置和所述云台中的第二结构相对于横滚轴的重心位置;The control method according to any one of claims 5 to 8, wherein the position of the center of gravity of the head includes the position of the center of gravity of the first structure in the head relative to the pitch axis and the second position in the head of the head. The position of the center of gravity of the structure relative to the roll axis;
    所述根据所述重心位置规划所述云台的运动参数的步骤包括:The step of planning motion parameters of the gimbal according to the position of the center of gravity includes:
    根据所述云台中的第一结构相对于俯仰轴的重心位置规划所述第一结构绕所述俯仰轴的运动参数,并根据所述云台中的第二结构相对于横滚轴的重心位置规划所述第二结构绕所述横滚轴的运动参数;Planning the movement parameters of the first structure around the pitch axis according to the position of the center of gravity of the first structure in the gimbal relative to the pitch axis, and planning the position of the center of gravity of the second structure in the gimbal relative to the roll axis Motion parameters of the second structure around the roll axis;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述第一结构绕所述俯仰轴的运动参数控制所述第一结构向所述第一结构的重心位置所在的一侧运动至静力平衡位置,并根据所述第二结构绕所述横滚轴的运动参数控制所述第二结构向所述第二结构的重心位置所在的一侧运动至静力平衡位置。Controlling the first structure to move to the side where the center of gravity of the first structure is located according to the motion parameter of the first structure around the pitch axis, and to orbit the static structure according to the second structure The motion parameter of the roll axis controls the second structure to move to the side where the center of gravity of the second structure is located to the static equilibrium position.
  13. 根据权利要求6-8任意一项所述的控制方法,其特征在于,所述预设值为零。The control method according to any one of claims 6 to 8, wherein the preset value is zero.
  14. 根据权利要求1所述的控制方法,其特征在于,所述云台的工作模式包括姿 态闭环模式和关节角闭环模式,所述控制方法还包括:The control method according to claim 1, wherein the working mode of the pan / tilt head includes a posture closed-loop mode and a joint angle closed-loop mode, and the control method further comprises:
    获取所述云台的当前工作模式;Obtaining the current working mode of the PTZ;
    控制所述云台的当前工作模式为所述关节角闭环模式;Controlling the current working mode of the gimbal to the joint angle closed-loop mode;
    所述根据所述重心位置规划所述云台的运动参数的步骤包括:The step of planning motion parameters of the gimbal according to the position of the center of gravity includes:
    在所述关节角闭环模式下,确定所述云台到达所述静力平衡位置的目标关节角;In the joint angle closed-loop mode, determining a target joint angle at which the gimbal reaches the static equilibrium position;
    根据所述云台的当前关节角和所述目标关节角规划所述云台的运动参数;Planning the motion parameters of the gimbal according to the current joint angle of the gimbal and the target joint angle;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至所述目标关节角。Controlling the gimbal to move to the target joint angle to the side where the center of gravity position is located according to the motion parameter.
  15. 根据权利要求1所述的控制方法,其特征在于,所述云台的工作模式包括姿态闭环模式和关节角闭环模式,所述控制方法还包括:The control method according to claim 1, wherein the working mode of the pan / tilt head includes an attitude closed-loop mode and a joint angle closed-loop mode, and the control method further comprises:
    获取所述云台的当前工作模式;Obtaining the current working mode of the PTZ;
    控制所述云台的当前工作模式为姿态闭环模式;Controlling the current working mode of the pan / tilt to be an attitude closed-loop mode;
    所述根据所述重心位置规划所述云台的运动参数的步骤包括:The step of planning motion parameters of the gimbal according to the position of the center of gravity includes:
    在所述姿态闭环模式下,确定所述云台到达所述静力平衡位置的目标姿态;Determining the target attitude of the gimbal to the static equilibrium position in the attitude closed-loop mode;
    根据所述云台的当前姿态和所述目标姿态规划所述云台的运动参数;Planning the motion parameters of the gimbal according to the current attitude of the gimbal and the target attitude;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至所述目标姿态。Controlling the pan / tilt to move to the target attitude to the side where the center of gravity position is located according to the motion parameter.
  16. 根据权利要求1所述的控制方法,其特征在于,所述根据所述重心位置规划所述云台的运动参数的步骤包括:The control method according to claim 1, wherein the step of planning motion parameters of the pan / tilt according to the position of the center of gravity comprises:
    根据所述重心位置规划所述云台的运动加速度;Planning the movement acceleration of the gimbal according to the position of the center of gravity;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述运动加速度控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。And controlling the gimbal to move to the static equilibrium position to the side where the center of gravity position is located according to the motion acceleration.
  17. 根据权利要求1所述的控制方法,其特征在于,所述根据所述重心位置规划 所述云台的运动参数的步骤包括:The control method according to claim 1, wherein the step of planning motion parameters of the gimbal according to the position of the center of gravity comprises:
    根据所述云台的重心位置规划所述云台的运动速度;Planning the movement speed of the gimbal according to the position of the center of gravity of the gimbal;
    所述根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The step of controlling the gimbal to move to the side of the center of gravity position to the static equilibrium position according to the motion parameter includes:
    根据所述运动速度控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。Controlling the pan-tilt head to move to the static equilibrium position to the side where the center of gravity position is located according to the moving speed.
  18. 根据权利要求17所述的控制方法,其特征在于,所述根据所述运动速度控制所述云台向所述重心位置所在的一侧运动至静力平衡位置的步骤包括:The control method according to claim 17, wherein the step of controlling the gimbal to move to the side where the center of gravity position is located to the static equilibrium position according to the movement speed comprises:
    根据所述运动速度控制所述云台向所述重心位置所在的一侧减速运动至静力平衡位置;或者Controlling the gimbal to decelerate to the static balance position to the side where the center of gravity position is located according to the movement speed; or
    根据所述运动速度控制所述云台向所述重心位置所在的一侧根据加速-减速的速度规划运动至静力平衡位置;或者Controlling the pan-tilt head to the side where the center of gravity is located according to the movement speed to plan the movement to a static equilibrium position according to the acceleration-deceleration speed; or
    根据所述运动速度控制所述云台向所述重心位置所在的一侧根据加速-匀速-减速的速度规划运动至静力平衡位置。Control the pan / tilt head to the side where the center of gravity position is located according to the movement speed to plan the movement to the static equilibrium position according to the acceleration-uniform-deceleration speed.
  19. 根据权利要求1所述的控制方法,其特征在于,所述云台包括云台本体和可拆卸地设置在所述云台本体上的一个或多个负载。The control method according to claim 1, wherein the pan / tilt head comprises a pan / tilt head body and one or more loads detachably disposed on the pan / tilt head body.
  20. 一种云台,其特征在于,所述云台包括处理器,所述处理器用于:A pan / tilt head characterized in that the pan / tilt head includes a processor, and the processor is used for:
    检测所述云台的重心位置;Detecting the position of the center of gravity of the pan / tilt;
    若所述重心位置位于所述云台的转动轴所在的竖直平面的第一侧或第二侧,则根据所述重心位置规划所述云台的运动参数,所述第一侧和所述第二侧为相反的两侧;和If the position of the center of gravity is located on the first side or the second side of the vertical plane in which the rotation axis of the gimbal is located, then the motion parameters of the gimbal are planned according to the position of the center of gravity, and the first side and the The second side is the opposite side; and
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。Controlling the pan / tilt head to move to the side where the center of gravity position is located to a static equilibrium position according to the motion parameter.
  21. 根据权利要求20所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 20, wherein the processor is further configured to:
    在接收到预设指令时,检测所述云台的重心位置。When a preset instruction is received, the position of the center of gravity of the gimbal is detected.
  22. 根据权利要求21所述的云台,其特征在于,所述预设指令包括针对所述云台的下电指令或休眠指令;或者The PTZ according to claim 21, wherein the preset instruction comprises a power-off instruction or a sleep instruction for the PTZ; or
    所述预设指令包括针对所述云台中相应轴结构的驱动装置的下电指令或休眠指令。The preset instruction includes a power-off instruction or a sleep instruction for a driving device of a corresponding axis structure in the gimbal.
  23. 根据权利要求20所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 20, wherein the processor is further configured to:
    执行针对所述云台的下电指令或休眠指令;或者Execute a power-off instruction or a sleep instruction for the PTZ; or
    执行针对所述云台中相应轴结构的驱动装置的下电指令或休眠指令。A power-off instruction or a sleep instruction for a drive device of a corresponding axis structure in the gimbal is executed.
  24. 根据权利要求20所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 20, wherein the processor is further configured to:
    在所述云台的实际姿态与预期姿态之间的误差处于预定范围内时,获取用于驱动所述云台的驱动装置在预定时间段内的输出扭矩;和When the error between the actual attitude and the expected attitude of the gimbal is within a predetermined range, obtaining an output torque of a driving device for driving the gimbal within a predetermined time period; and
    根据所述输出扭矩检测所述云台的重心位置。Detecting the position of the center of gravity of the gimbal according to the output torque.
  25. 根据权利要求24所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 24, wherein the processor is further configured to:
    统计所述预定时间段内所述输出扭矩的平均值和方差;Statistics the average value and variance of the output torque in the predetermined time period;
    在所述平均值大于预设值而所述方差小于预定值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value and the variance is less than a predetermined value, determining that the position of the center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值而所述方差小于所述预定值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第二侧。When the average value is smaller than the preset value and the variance is smaller than the predetermined value, it is determined that the position of the center of gravity of the head is located on the second side of the vertical plane in which the rotation axis of the head is located.
  26. 根据权利要求24所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 24, wherein the processor is further configured to:
    统计所述预定时间段内所述输出扭矩的方差;Statistics the variance of the output torque in the predetermined time period;
    在所述方差小于预定值时,统计所述预定时间段内所述输出扭矩的平均值;When the variance is less than a predetermined value, averaging the average value of the output torque in the predetermined time period;
    在所述平均值大于预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value, determining that a position of a center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第二侧。When the average value is smaller than the preset value, it is determined that the position of the center of gravity of the gimbal is located on the second side of the vertical plane where the rotation axis of the gimbal is located.
  27. 根据权利要求24所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 24, wherein the processor is further configured to:
    统计所述预定时间段内所述输出扭矩的平均值;Statistics the average value of the output torque in the predetermined time period;
    在所述平均值大于预设值时,确定所述云台的重心位置位于所述云台的转动轴所在的竖直平面的第一侧;和When the average value is greater than a preset value, determining that a position of a center of gravity of the gimbal is located on a first side of a vertical plane in which a rotation axis of the gimbal is located; and
    在所述平均值小于所述预设值时,确定所述云台的重心位置位于所述云台的转动 轴所在的竖直平面的第二侧。When the average value is smaller than the preset value, it is determined that the position of the center of gravity of the gimbal is located on the second side of the vertical plane in which the rotation axis of the gimbal is located.
  28. 根据权利要求24-27任意一项所述的云台,其特征在于,所述驱动装置为电机。The gimbal according to any one of claims 24-27, wherein the driving device is a motor.
  29. 根据权利要求24-27任意一项所述的云台,其特征在于,所述云台的重心位置包括所述云台中的第一结构相对于俯仰轴的重心位置;所述处理器还用于:The gimbal according to any one of claims 24-27, wherein the position of the center of gravity of the gimbal includes the position of the center of gravity of the first structure in the gimbal relative to the pitch axis; the processor is further configured to: :
    根据所述云台中的第一结构相对于俯仰轴的重心位置规划所述第一结构绕所述俯仰轴的运动参数;和Planning the motion parameters of the first structure around the pitch axis based on the position of the center of gravity of the first structure relative to the pitch axis in the gimbal; and
    根据所述第一结构绕所述俯仰轴的运动参数控制所述第一结构向所述第一结构的重心位置所在的一侧运动至静力平衡位置。Controlling the first structure to move to the side of the center of gravity position of the first structure to a static equilibrium position according to a movement parameter of the first structure around the pitch axis.
  30. 根据权利要求24-27任意一项所述的云台,其特征在于,所述云台的重心位置包括所述云台中的第二结构相对于横滚轴的重心位置;所述处理器还用于:The gimbal according to any one of claims 24-27, wherein the position of the center of gravity of the gimbal includes the position of the center of gravity of the second structure in the gimbal relative to the roll axis; the processor further uses to:
    根据所述云台中的第二结构相对于横滚轴的重心位置规划所述第二结构绕所述横滚轴的运动参数;和Planning the movement parameters of the second structure around the roll axis based on the position of the center of gravity of the second structure relative to the roll axis in the head; and
    根据所述第二结构绕所述横滚轴的运动参数控制所述第二结构向所述第二结构的重心位置所在的一侧运动至静力平衡位置。Controlling the second structure to move to the side of the center of gravity position of the second structure to the static equilibrium position according to the movement parameters of the second structure around the roll axis.
  31. 根据权利要求24-27任意一项所述的云台,其特征在于,所述云台的重心位置包括所述云台中的第一结构相对于俯仰轴的重心位置和所述云台中的第二结构相对于横滚轴的重心位置;所述处理器还用于:The gimbal according to any one of claims 24-27, wherein the position of the center of gravity of the gimbal includes the position of the center of gravity of the first structure in the gimbal relative to the pitch axis and the second position in the gimbal The position of the structure relative to the center of gravity of the roll axis; the processor is further configured to:
    根据所述云台中的第一结构相对于俯仰轴的重心位置规划所述第一结构绕所述俯仰轴的运动参数,并根据所述云台中的第二结构相对于横滚轴的重心位置规划所述第二结构绕所述横滚轴的运动参数;和Planning the movement parameters of the first structure around the pitch axis according to the position of the center of gravity of the first structure in the gimbal relative to the pitch axis, and planning the position of the center of gravity of the second structure in the gimbal relative to the roll axis Motion parameters of the second structure around the roll axis; and
    根据所述第一结构绕所述俯仰轴的运动参数控制所述第一结构向所述第一结构的重心位置所在的一侧运动至静力平衡位置,并根据所述第二结构绕所述横滚轴的运动参数控制所述第二结构向所述第二结构的重心位置所在的一侧运动至静力平衡位置。Controlling the first structure to move to the side where the center of gravity of the first structure is located according to the motion parameter of the first structure around the pitch axis, and to orbit the static structure according to the second structure The motion parameter of the roll axis controls the second structure to move to the side where the center of gravity of the second structure is located to the static equilibrium position.
  32. 根据权利要求25-27任意一项所述的云台,其特征在于,所述预设值为零。The gimbal according to any one of claims 25-27, wherein the preset value is zero.
  33. 根据权利要求20所述的云台,其特征在于,所述云台的工作模式包括姿态闭环模式和关节角闭环模式,所述处理器还用于:The gimbal of claim 20, wherein the working mode of the gimbal comprises a closed-loop attitude mode and a closed-loop joint angle mode, and the processor is further configured to:
    获取所述云台的当前工作模式;Obtaining the current working mode of the PTZ;
    控制所述云台的当前工作模式为所述关节角闭环模式;Controlling the current working mode of the gimbal to the joint angle closed-loop mode;
    在所述关节角闭环模式下,确定所述云台到达所述静力平衡位置的目标关节角;In the joint angle closed-loop mode, determining a target joint angle at which the gimbal reaches the static equilibrium position;
    根据所述云台的当前关节角和所述目标关节角规划所述云台的运动参数;和Planning motion parameters of the gimbal based on the current joint angle of the gimbal and the target joint angle; and
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至所述目标关节角。Controlling the gimbal to move to the target joint angle to the side where the center of gravity position is located according to the motion parameter.
  34. 根据权利要求20所述的云台,其特征在于,所述云台的工作模式包括姿态闭环模式和关节角闭环模式,所述处理器还用于:The gimbal of claim 20, wherein the working mode of the gimbal comprises a closed-loop attitude mode and a closed-loop joint angle mode, and the processor is further configured to:
    获取所述云台的当前工作模式;Obtaining the current working mode of the PTZ;
    控制所述云台的当前工作模式为姿态闭环模式;Controlling the current working mode of the pan / tilt to be an attitude closed-loop mode;
    在所述姿态闭环模式下,确定所述云台到达所述静力平衡位置的目标姿态;Determining the target attitude of the gimbal to the static equilibrium position in the attitude closed-loop mode;
    根据所述云台的当前姿态和所述目标姿态规划所述云台的运动参数;和Planning the motion parameters of the gimbal according to the current attitude of the gimbal and the target attitude; and
    根据所述运动参数控制所述云台向所述重心位置所在的一侧运动至所述目标姿态。Controlling the pan / tilt to move to the target attitude to the side where the center of gravity position is located according to the motion parameter.
  35. 根据权利要求20所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 20, wherein the processor is further configured to:
    根据所述重心位置规划所述云台的运动加速度;和Planning the movement acceleration of the gimbal according to the position of the center of gravity; and
    根据所述运动加速度控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。And controlling the gimbal to move to the static equilibrium position to the side where the center of gravity position is located according to the motion acceleration.
  36. 根据权利要求20所述的云台,其特征在于,所述处理器还用于:The gimbal of claim 20, wherein the processor is further configured to:
    根据所述云台的重心位置规划所述云台的运动速度;和Planning the movement speed of the gimbal according to the position of the center of gravity of the gimbal; and
    根据所述运动速度控制所述云台向所述重心位置所在的一侧运动至静力平衡位置。Controlling the pan-tilt head to move to the static equilibrium position to the side where the center of gravity position is located according to the moving speed.
  37. 根据权利要求36所述的云台,其特征在于,所述处理器还用于:The PTZ according to claim 36, wherein the processor is further configured to:
    根据所述运动速度控制所述云台向所述重心位置所在的一侧减速运动至静力平衡位置;或者Controlling the gimbal to decelerate to the static balance position to the side where the center of gravity position is located according to the movement speed; or
    根据所述运动速度控制所述云台向所述重心位置所在的一侧根据加速-减速的速 度规划运动至静力平衡位置;或者Controlling the pan-tilt head to the side where the center of gravity is located according to the movement speed to plan the movement to the static equilibrium position according to the acceleration-deceleration speed; or
    根据所述运动速度控制所述云台向所述重心位置所在的一侧根据加速-匀速-减速的速度规划运动至静力平衡位置。Control the pan / tilt head to the side where the center of gravity position is located according to the movement speed to plan the movement to the static equilibrium position according to the acceleration-uniform-deceleration speed.
  38. 根据权利要求20所述的云台,其特征在于,所述云台包括云台本体和可拆卸地设置在所述云台本体上的一个或多个负载。The gimbal of claim 20, wherein the gimbal comprises a gimbal body and one or more loads detachably disposed on the gimbal body.
  39. 一种移动平台,其特征在于,所述移动平台包括:A mobile platform is characterized in that the mobile platform includes:
    移动平台本体;和Mobile platform ontology; and
    权利要求20-38任意一项所述的云台,所述云台设置在所述移动平台本体上。The gimbal according to any one of claims 20 to 38, wherein the gimbal is disposed on the mobile platform body.
PCT/CN2018/103441 2018-08-31 2018-08-31 Control method for gimbal, gimbal, and mobile platform WO2020042134A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880038809.XA CN110785725A (en) 2018-08-31 2018-08-31 Control method of holder, holder and mobile platform
PCT/CN2018/103441 WO2020042134A1 (en) 2018-08-31 2018-08-31 Control method for gimbal, gimbal, and mobile platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103441 WO2020042134A1 (en) 2018-08-31 2018-08-31 Control method for gimbal, gimbal, and mobile platform

Publications (1)

Publication Number Publication Date
WO2020042134A1 true WO2020042134A1 (en) 2020-03-05

Family

ID=69383253

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103441 WO2020042134A1 (en) 2018-08-31 2018-08-31 Control method for gimbal, gimbal, and mobile platform

Country Status (2)

Country Link
CN (1) CN110785725A (en)
WO (1) WO2020042134A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638730B (en) * 2020-05-25 2023-07-25 浙江大华技术股份有限公司 Double-cradle head control method and device, electronic equipment and storage medium
WO2022077357A1 (en) * 2020-10-15 2022-04-21 深圳市大疆创新科技有限公司 Detection method and apparatus for gimbal, and gimbal, movable platform and storage medium
WO2022141459A1 (en) * 2020-12-31 2022-07-07 深圳市大疆创新科技有限公司 Gimbal and leveling method and control method therefor, and leveling electric motor and gimbal assembly
WO2022261959A1 (en) * 2021-06-18 2022-12-22 深圳市大疆创新科技有限公司 Leveling method and gimbal
CN117716159A (en) * 2021-09-07 2024-03-15 深圳市大疆创新科技有限公司 Tripod head leveling method, tripod head control device, tripod head and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070084979A1 (en) * 2005-08-10 2007-04-19 Sachtler Gmbh & Co. Kg Camera tripod head
US20090263118A1 (en) * 2008-04-10 2009-10-22 Mckay Thomas L Camera-mounting head with balance control
CN105173100A (en) * 2015-08-04 2015-12-23 致导科技(北京)有限公司 Unmanned plane cloud deck and unmanned plane
CN204989989U (en) * 2015-08-04 2016-01-20 浙江宇视科技有限公司 Tripod head camera
CN205989817U (en) * 2016-05-10 2017-03-01 湖南浩官科技有限公司 A kind of unmanned vehicle camera compatibility wireless tripod head
CN206202715U (en) * 2016-11-30 2017-05-31 深圳市大疆创新科技有限公司 Capture apparatus and unmanned vehicle
CN107111322A (en) * 2016-12-12 2017-08-29 深圳市大疆创新科技有限公司 Head and its operating method, control method, and use its movable equipment
CN108253271A (en) * 2016-12-29 2018-07-06 昊翔电能运动科技(昆山)有限公司 Hand-held holder method for adjusting gravity center

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206068A1 (en) * 2016-05-31 2017-12-07 深圳市大疆灵眸科技有限公司 Adjustment method, system and device for gimbal platform and gimbal platform
CN206115284U (en) * 2016-08-29 2017-04-19 武汉智能鸟无人机有限公司 But centrobaric tripod head structure of automatically regulated camera
WO2018076366A1 (en) * 2016-10-31 2018-05-03 深圳市大疆灵眸科技有限公司 Pan-tilt device, photography device, stability augmentation system and mobile carrier
CN108459622B (en) * 2017-02-21 2021-05-07 昊翔电能运动科技(昆山)有限公司 Load gravity center adjusting system and method of self-stabilizing cradle head
CN107463187A (en) * 2017-09-21 2017-12-12 桂林师范高等专科学校 Head stability augmentation system
CN108184061B (en) * 2017-12-31 2020-06-02 深圳市越疆科技有限公司 Tracking control method and device for handheld cloud deck, handheld cloud deck and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070084979A1 (en) * 2005-08-10 2007-04-19 Sachtler Gmbh & Co. Kg Camera tripod head
US20090263118A1 (en) * 2008-04-10 2009-10-22 Mckay Thomas L Camera-mounting head with balance control
CN105173100A (en) * 2015-08-04 2015-12-23 致导科技(北京)有限公司 Unmanned plane cloud deck and unmanned plane
CN204989989U (en) * 2015-08-04 2016-01-20 浙江宇视科技有限公司 Tripod head camera
CN205989817U (en) * 2016-05-10 2017-03-01 湖南浩官科技有限公司 A kind of unmanned vehicle camera compatibility wireless tripod head
CN206202715U (en) * 2016-11-30 2017-05-31 深圳市大疆创新科技有限公司 Capture apparatus and unmanned vehicle
CN107111322A (en) * 2016-12-12 2017-08-29 深圳市大疆创新科技有限公司 Head and its operating method, control method, and use its movable equipment
CN108253271A (en) * 2016-12-29 2018-07-06 昊翔电能运动科技(昆山)有限公司 Hand-held holder method for adjusting gravity center

Also Published As

Publication number Publication date
CN110785725A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
WO2020042134A1 (en) Control method for gimbal, gimbal, and mobile platform
US10953998B2 (en) Systems and methods for providing stability support
US20200213518A1 (en) Method for controlling gimbal, gimbal controller, and gimbal
CN107003678B (en) Control method, device, equipment and moveable platform
WO2019210467A1 (en) Pan-tilt control method and apparatus, pan-tilt system, unmanned aerial vehicle and computer-readable storage medium
WO2020042064A1 (en) Cradle head control method and device, cradle head system and unmanned aerial vehicle
EP3839691A1 (en) Gimbal control method and device, gimbal, system and storage medium
WO2019119201A1 (en) Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium
WO2019100249A1 (en) Method of controlling gimbal, gimbal, and unmanned aerial vehicle
WO2020140295A1 (en) Handheld gimbal control method and handheld gimbal
WO2019227347A1 (en) Gimbal control method, gimbal, photography device, and readable storage medium
WO2020181531A1 (en) Gimbal center of gravity trim method, gimbal, and client
WO2019126932A1 (en) Cradle head control method and control device
TW201643579A (en) System and method for automatically driving UAV
WO2020062298A1 (en) Gimbal and control method therefor, and movable platform
WO2017177369A1 (en) Tracking shooting control method and system for stabilizer
CN108696674A (en) Gravity center adjusting mechanism and related photographing device
WO2020042159A1 (en) Rotation control method and apparatus for gimbal, control device, and mobile platform
TWI709011B (en) Method for calculating and controlling UAV heading
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
CN107237971A (en) Boat-carrying based on gyroscope attitude detection is from steady head
JP2020058596A (en) robot
WO2022134036A1 (en) Movable platform and control method and device therefor
WO2020000233A1 (en) Moving platform and control method thereof
US20210333803A1 (en) Information processing device, information processing method, and unmanned aerial vehicle

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

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

Country of ref document: EP

Kind code of ref document: A1