Positioning method, device, electronic device and storage medium
Through the combination of two omnidirectional wheels and a gyroscope, the driving distance, correction distance and rotation angle are processed, which solves the problem of low accuracy of existing satellite positioning technology during slow motion and achieves higher positioning accuracy.
Patent Information
- Application Number
- CN202210349665.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-02
AI Technical Summary
The existing GPS or Beidou satellite positioning technology has low positioning accuracy and unreliability during slow motion. There is an urgent need for a method to improve positioning accuracy.
Using a positioning method that combines two omnidirectional wheels and a gyroscope, the encoder is used to obtain the driving distance of the omnidirectional wheels and the range-measuring gyroscope is used to obtain the correction distance. It is combined with the angle-measuring gyroscope to obtain the rotation angle. These data are processed to obtain the object to be positioned. target location information.
The accuracy of positioning is improved, especially when the object to be positioned performs a rotation action, its position can be determined more accurately.
Smart Images

Figure CN114674315B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of positioning systems, and in particular to a positioning method, device, electronic equipment and storage medium. Background Art
[0002] With the development of science and technology and the improvement of people's living standards, more and more people use intelligent navigation systems to navigate and find targets. Positioning technology is an important technology in the process of movement. Commonly used positioning technologies include GPS or Beidou satellite positioning technology, which has low positioning accuracy and is difficult to guarantee reliability for slow-moving objects.
[0003] Therefore, there is an urgent need for a positioning method that can improve accuracy to solve the above technical problems. Summary of the invention
[0004] The embodiments of the present invention provide a positioning method, a device, an electronic device and a storage medium, which realize the positioning of an object to be positioned and improve the accuracy of positioning.
[0005] In a first aspect, an embodiment of the present invention provides a positioning method, comprising: for two omnidirectional wheels, obtaining the travel distance of the omnidirectional wheels through an encoder, and obtaining the correction distance of the omnidirectional wheels through a distance measuring gyroscope; obtaining the rotation angle of the object to be positioned through an angle measuring gyroscope; for the travel distance and correction distance of each omnidirectional wheel, processing the travel distance and correction distance of each omnidirectional wheel to obtain a processing result; obtaining the target position information of the object to be positioned based on the rotation angle and the processing results of the two omnidirectional wheels; wherein the two omnidirectional wheels are orthogonally arranged and serve as driven wheels of the object to be positioned, the main rotating shaft of each omnidirectional wheel is coaxially connected to the rotating shaft of the encoder, the rotating shaft of the distance measuring gyroscope is coaxially connected to the main rotating shaft of the omnidirectional wheel, and the angle measuring gyroscope is located at the intersection of the two omnidirectional wheels and is vertically arranged.
[0006] Preferably, the processing of the driving distance and the correction distance of each omnidirectional wheel to obtain a processing result includes: filtering the driving distance and the correction distance of each omnidirectional wheel to obtain a filtering result.
[0007] Preferably, the driving distance and the correction distance refer to the distances in the object coordinate system of the object to be positioned, the object coordinate system comprising an X-coordinate axis and a Y-coordinate axis parallel to the horizontal plane, the X-coordinate axis being orthogonal to the Y-coordinate axis; the two omnidirectional wheels comprising a first omnidirectional wheel and a second omnidirectional wheel; when the first omnidirectional wheel is parallel to the X-coordinate axis, the driving distance of the first omnidirectional wheel is a first driving sub-distance, and the correction distance of the first omnidirectional wheel is a first correction sub-distance; when the second omnidirectional wheel is parallel to the Y-coordinate axis, the driving distance of the second omnidirectional wheel is a second driving sub-distance, and the correction distance of the second omnidirectional wheel is a second correction sub-distance.
[0008] Preferably, for the driving distance and correction distance of each omnidirectional wheel, the driving distance and correction distance of each omnidirectional wheel are processed to obtain a processing result, including: filtering the first driving sub-distance and the first correction sub-distance to obtain the first distance; filtering the second driving sub-distance and the second correction sub-distance to obtain the second distance.
[0009] Preferably, the rotation angle refers to the angle of rotation of the omnidirectional wheel in the object coordinate system; the target position information of the object to be located is obtained based on the processing results of the rotation angle and the two omnidirectional wheels, including: when the object to be located is detected to have a rotation action, the rotation angle corresponding to the rotation action in the object coordinate system is obtained by the angle measuring gyroscope; the rotation angle is decomposed into the world coordinate system to obtain a first angle in the direction of the X1 coordinate axis and a second angle in the direction of the Y1 coordinate axis; the first distance and the second distance are processed based on the first angle to obtain a first target sub-distance; the first distance and the second distance are processed based on the second angle to obtain a second target sub-distance; the target position information is obtained based on the first target sub-distance and the second target sub-distance; wherein the world coordinate system includes an X1 coordinate axis and a Y1 coordinate axis parallel to the horizontal plane, the X1 coordinate axis and the Y1 coordinate axis are orthogonal, and at the initial moment, the coordinate axes of the world coordinate system coincide with those of the object coordinate system.
[0010] Preferably, obtaining the travel distance of the omnidirectional wheel through an encoder comprises: obtaining position information of a code disk of the encoder: Wherein, T represents the time corresponding to the time when the omnidirectional wheel travels to the current position starting from the starting position of the object to be located, ω represents the motor speed of the object to be located, and θ represents the position information; the number of pulses received at the time T is obtained based on the position information: N represents the number of pulses emitted by the code disc per rotation, n represents the number of pulses received at time T, and ceil represents a rounding function; the first angular velocity of the omnidirectional wheel is obtained based on the number of pulses obtained: t is the period of the encoder pulse, ω1 represents the first angular velocity; based on the first angular velocity, the travel distance of the omnidirectional wheel is obtained: R is the radius of the omnidirectional wheel, ΔT represents the travel time of the omnidirectional wheel, and s1 represents the travel distance.
[0011] Preferably, obtaining the correction distance of the omnidirectional wheel by using a distance measuring gyroscope comprises: measuring a second angular velocity of the omnidirectional wheel by using a distance measuring gyroscope, and obtaining the correction distance of the omnidirectional wheel based on the second angular velocity: s2=ω2TR, wherein s2 represents the correction distance, and ω2 represents the second angular velocity of the omnidirectional wheel.
[0012] Preferably, the distance measuring gyroscope and the side angle gyroscope are both solid-state wave gyroscopes, and the solid-state wave gyroscope is located in a constant temperature box; the constant temperature box in which the distance measuring gyroscope is placed is coaxially connected to the main rotating shaft of the omnidirectional wheel, and the constant temperature box in which the angle measuring gyroscope is placed is located at the intersection of the two omnidirectional wheels and is arranged vertically.
[0013] In the second aspect, an embodiment of the present invention further provides a positioning device, comprising: two omnidirectional wheels, the two omnidirectional wheels are orthogonally arranged, connected to the object to be positioned, and serve as the driven wheels of the object to be positioned; two encoders, the rotating shaft of each encoder is coaxially connected to the main rotating shaft of the omnidirectional wheel, and is used to obtain the travel distance of the omnidirectional wheel; two distance measuring gyroscopes, the rotating shaft of each distance measuring gyroscope is coaxially connected to the main rotating shaft of the omnidirectional wheel, and is used to obtain the correction distance of the omnidirectional wheel; an angle measuring gyroscope, located at the intersection of the two omnidirectional wheels and vertically arranged, and is used to obtain the rotation angle of the object to be positioned; a data processing module, which is used to process the travel distance and correction distance of each omnidirectional wheel to obtain a processing result; a position information acquisition module, which is used to obtain the target position information of the object to be positioned based on the rotation angle and the processing results of the two omnidirectional wheels.
[0014] The technical solution of the embodiment of the present invention obtains the target position information of the object to be located by obtaining the distance between two orthogonally arranged omnidirectional wheels as the driven wheels of the object to be located. Specifically, the travel distance of the omnidirectional wheel is obtained by an encoder coaxially connected to each omnidirectional wheel, and the correction distance is obtained by a distance measuring gyroscope coaxially connected to each omnidirectional wheel. The travel distance and the correction distance of each omnidirectional wheel are processed to obtain a processing result, and the rotation angle of the object to be located is obtained based on the angle measuring gyroscope, and the target position information of the object to be located is obtained based on the rotation angle and the processing results of the two omnidirectional wheels. Among them, the angle measuring gyroscope is at an orthogonal position of the two omnidirectional wheels and is vertically arranged. The technical solution of the embodiment of the present invention realizes the positioning of the object to be located and improves the accuracy of positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] in:
[0017] Figure 1 This is a flow chart of a positioning method in Embodiment 1 of the present invention;
[0018] Figure 2 It is a schematic diagram of a correction distance of an omnidirectional wheel in the first embodiment of the present invention;
[0019] Figure 3 This is a partial structural diagram of a positioning system in Embodiment 1 of the present invention;
[0020] Figure 4 A schematic diagram of the position of a thermostatic box in a positioning system in Embodiment 1 of the present invention;
[0021] Figure 5 It is a schematic axial cross-sectional view of a constant temperature box and a solid wave gyroscope in the first embodiment of the present invention;
[0022] Figure 6 This is a flow chart of a positioning method in Embodiment 2 of the present invention;
[0023] Figure 7 A curve diagram of an experimental comparison in Example 2 of the present invention;
[0024] Figure 8 This is a schematic diagram of the structure of a positioning device in Embodiment 3 of the present invention;
[0025] Explanation of the reference numerals: 1 - code disc frame, 2 - omnidirectional wheel, 3 - encoder, 4 - constant temperature box, 5 - solid state wave gyroscope. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of a positioning method provided by an embodiment of the present invention. This embodiment is applicable to the case of positioning an object to be positioned. The method can be executed by a positioning device, which can be implemented in the form of software and / or hardware.
[0029] like Figure 1 As shown, the positioning method of the embodiment of the present invention specifically includes the following steps:
[0030] S110 , for the two omnidirectional wheels 2 , the travel distance of the omnidirectional wheels 2 is obtained through the encoder 3 , and the correction distance of the omnidirectional wheels 2 is obtained through the distance measuring gyroscope 4 .
[0031] Among them, the omnidirectional wheel 2 refers to a roller that can move in any direction. The encoder 3 is a device that compiles and converts signals or data into a signal form that can be used for communication, transmission and storage. The object to be located refers to an object whose position information needs to be determined, which can be a vehicle, a movable robot, etc. The two omnidirectional wheels 2 are arranged orthogonally and serve as driven wheels of the object to be located, and move with the movement of the object to be located. The main rotating shaft of each omnidirectional wheel 2 is coaxially connected to the rotating shaft of the encoder 3. The distance measuring gyroscope 4 refers to a gyroscope that measures the moving distance of the omnidirectional wheel 2. The distance measuring gyroscope 4 can be a solid wave gyroscope 5. The rotating shaft of the distance measuring gyroscope 4 is coaxially connected to the main rotating shaft of the omnidirectional wheel 2. The distance measuring gyroscope 4 can measure the distance traveled by the omnidirectional wheel 2, that is, the correction distance. It should be understood that the omnidirectional wheel acts as a driven wheel of the object to be located, and when the object to be located sends movement or rotation, the driven wheel also changes accordingly.
[0032] Specifically, two orthogonally arranged omnidirectional wheels 2 move with the movement of the object to be located, and the travel distance is obtained through the coaxial encoder 3 arranged on each omnidirectional wheel 2, that is, the travel distance in two orthogonal directions is obtained. The correction distance is obtained through the distance measuring gyroscope 4 arranged on each omnidirectional wheel 2, that is, the correction distance in two orthogonal directions is obtained. Through step S110, the travel distance and correction distance of each omnidirectional wheel 2 can be used to prepare for determining the target position information of the object to be located as described below.
[0033] Furthermore, in the embodiment of the present invention, the encoder 3 may be a photoelectric encoder 3 including a code disc for measuring angular displacement. Obtaining the travel distance of the omnidirectional wheel 2 through the encoder 3 includes:
[0034] Get the position information of the code disk of encoder 3:
[0035]
[0036] Wherein, T represents the time from the starting position of the object to be positioned, and the time corresponding to the omnidirectional wheel 2 driving to the current position, ω represents the speed of the motor of the object to be positioned, and θ represents the position information.
[0037] The number of pulses received at time T is obtained based on the position information:
[0038]
[0039] N represents the number of pulses emitted by the code disk per rotation, n represents the number of pulses received at time T, and ceil represents the rounding down function.
[0040] The first angular velocity of the omnidirectional wheel 2 is obtained based on the number of pulses obtained:
[0041]
[0042] t is the period of pulses emitted by encoder 3, ω1 represents the first angular velocity;
[0043] Based on the first angular velocity, the travel distance of the omnidirectional wheel 2 is obtained:
[0044]
[0045] R is the radius of the omnidirectional wheel 2 , ΔT represents the travel time of the omnidirectional wheel 2 , and s1 represents the travel distance.
[0046] The travel distance of each omnidirectional wheel 2 can be calculated by the above series of formulas.
[0047] Further, in the embodiment of the present invention, obtaining the correction distance of the omnidirectional wheel 2 by the distance measuring gyroscope 4 includes: measuring the second angular velocity of the omnidirectional wheel 2 by the distance measuring gyroscope 4, and obtaining the correction distance of the omnidirectional wheel 2 based on the second angular velocity:
[0048] s2=ω2TR,
[0049] Wherein, s2 represents the correction distance, and ω2 represents the second angular velocity of the omnidirectional wheel 2 .
[0050] The correction distance of each omnidirectional wheel 2 can be obtained by the above formula. It should be noted that the omnidirectional wheel 2 in the embodiment of the present invention does not slip. When the second angular velocity is ω2rad / s, the velocity distribution of the omnidirectional wheel 2 can be seen in Figure 2, the movement of the omnidirectional wheel 2 can be decomposed into translation and rotation, and the rotation will not produce displacement on the ground, therefore, within the time T1, the correction distance of the movement of the omnidirectional wheel 2 obtained by the distance measuring gyroscope 4 is ω2T1R. Optionally, in the embodiment of the present invention, the distance measuring gyroscope 4 uses a solid wave gyroscope 5, and the accuracy can reach 0.995, therefore, the correction distance obtained by the solid wave gyroscope 5 is more accurate, and then the processing result obtained according to the correction distance and the travel distance is also more accurate.
[0051] S120 , obtaining the rotation angle of the object to be positioned by using the angle measuring gyroscope 7 .
[0052] The angle measuring gyroscope 7 is located at the intersection of the two omnidirectional wheels 2 and is vertically arranged. Optionally, in the embodiment of the present invention, the angle measuring gyroscope 7 can be a solid wave gyroscope 5.
[0053] Specifically, the rotation angle of the object to be positioned is obtained by the angle measuring gyroscope 7. Optionally, the rotation angle of the object to be positioned can be calculated based on the measured third angular velocity and integrated.
[0054] Furthermore, in an embodiment of the present invention, two orthogonally arranged omnidirectional wheels 2, an encoder 3 and a distance measuring gyroscope 4 axially connected to the omnidirectional wheel 2, and an angle measuring gyroscope 7 constitute a positioning system. The positioning system also includes a code disc frame 1 for fixing the omnidirectional wheel 2, the encoder 3, the distance measuring gyroscope 4 and the angle measuring gyroscope 7. The omnidirectional wheel 2, the encoder 3 and the distance measuring gyroscope 4 axially connected to the omnidirectional wheel 2 are constructed on the code disc frame 1 to form a positioning system. The distance measuring gyroscope 4 and the side angle gyroscope are both solid wave gyroscopes 5, and the solid wave gyroscope 5 is located in a constant temperature box 4; the constant temperature box 4 in which the distance measuring gyroscope 4 is placed is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and the constant temperature box 4 in which the angle measuring gyroscope 7 is placed is located at the intersection of the two omnidirectional wheels 2 and is vertically arranged, see. Figure 3 , Figure 4 and Figure 5 . Figure 3 The code disc frame 1, the omnidirectional wheel 2 and the encoder 3 are shown in FIG. Figure 4 It is shown that the driving shaft of each omnidirectional wheel 2 is also coaxially connected to the thermostat 4, and a thermostat 4 is provided and placed vertically at the orthogonal point of the two omnidirectional wheels 2, and a solid wave gyroscope 5 is provided inside the thermostat 4. Figure 5 It is an axial cross-sectional view of the thermostat 4 and the solid wave gyroscope 5. The thermostat 4 is used to increase the precision of the solid wave gyroscope 5. The solid wave gyroscope 5 is placed in the thermostat 4. Compared with the traditional gyroscope, the solid wave gyroscope 5 has the advantages of high precision and good stability.
[0055] When connecting the positioning system to the object to be positioned, bolts, nuts, 3D printed parts, etc. can be used to rigidly connect the positioning system to the object to be positioned, and the positioning system to be positioned is placed at the center of the object to be positioned, so that the omnidirectional wheel 2 in the positioning system can be at the center of the object to be positioned and in contact with the ground, and then can be used as a driven wheel of the object to be positioned, and move with the movement of the object to be positioned. And before positioning, the positioning system is calibrated and zeroed. For example, the position information of the code disk of the encoder 3 in the positioning system is zeroed. It should be understood that the positioning system also includes a module for data processing, such as a single-chip microcomputer. The data processing module is used to calculate the driving distance, correction distance, rotation angle, and subsequent target position information.
[0056] S130: Process the driving distance and the correction distance of each omnidirectional wheel 2 to obtain a processing result.
[0057] The processing method may be to perform weighted summation of the driving distance and the correction distance, or to perform filtering processing on the driving distance and the correction distance.
[0058] Specifically, the travel distance and the correction distance of each omnidirectional wheel 2 are filtered to obtain a processing result, which can improve the accuracy of obtaining the travel distance of each omnidirectional wheel 2 .
[0059] S140, obtaining target position information of the object to be positioned based on the rotation angle and the processing results of the two omnidirectional wheels 2.
[0060] The target position information refers to the position information of the movement of the omnidirectional wheel 2. Optionally, the position information can be represented in the form of a coordinate system, and a world coordinate system is established to obtain the target position information in the world coordinate system.
[0061] Specifically, the target position information of the object to be positioned is obtained according to the rotation angle and the processing result of each omnidirectional wheel 2, thereby improving the accuracy of determining the target position information.
[0062] It should be noted that, in the embodiment of the present invention, the object to be located travels in a straight line, and the rotation of the object to be located can change the travel direction. For the target position information of the object to be located, it can be that during the movement of the object to be located, the travel distance, correction distance and rotation angle of the preset time period are obtained to obtain the target position information. During the straight-line travel of the object to be located, a series of travel distances, correction distances and rotation angles are recorded to obtain multiple target position information. For example, at the starting position, the object to be located travels, and the travel distances and correction distances at multiple time points are obtained to obtain a series of target position information. When the object to be located stops moving and rotates, the rotation angle is obtained and stored in the internal memory. When the object to be located travels again, a series of travel distances and correction distances are obtained, and a series of target position information is obtained based on the travel distances, correction distances and stored rotation angles. It should be noted that when the rotation angle is obtained again, the rotation angle stored in the internal memory is updated based on the rotation angle obtained again, so that the currently obtained travel distance and correction distance are processed based on the updated rotation angle to obtain the target position information.
[0063] The technical solution of the embodiment of the present invention obtains the target position information of the object to be located by obtaining the distance between the two orthogonally arranged omnidirectional wheels 2 as the driven wheels of the object to be located. Specifically, the travel distance of the omnidirectional wheel 2 is obtained by the encoder 3 coaxially connected to each omnidirectional wheel 2, and the correction distance is obtained by the distance measuring gyroscope 4 coaxially connected to each omnidirectional wheel 2. The travel distance and the correction distance of each omnidirectional wheel 2 are processed to obtain the processing result, and the rotation angle of the object to be located is obtained based on the angle measuring gyroscope 7, and the target position information of the object to be located is obtained based on the rotation angle and the processing results of the two omnidirectional wheels 2. Among them, the angle measuring gyroscope 7 is at an orthogonal position of the two omnidirectional wheels 2 and is vertically arranged. The technical solution of the embodiment of the present invention realizes the positioning of the object to be located and improves the accuracy of positioning.
[0064] Embodiment 2
[0065] Figure 6 It is a flowchart of a positioning method provided by an embodiment of the present invention. The embodiment of the present invention refines step S130 based on the optional scheme of the above embodiment, wherein the technical terms that are the same or similar to those in the above embodiment will not be repeated.
[0066] like Figure 6 As shown, the positioning method provided in the embodiment of the present invention specifically includes the following steps:
[0067] S210, for each omnidirectional wheel 2, obtaining the travel distance of the omnidirectional wheel 2 through the encoder 3, and obtaining the correction distance of the omnidirectional wheel 2 through the distance measuring gyroscope 4;
[0068] S220, obtaining the rotation angle of the object to be positioned by using the angle measuring gyroscope 7;
[0069] S230: filtering the driving distance and the correction distance of each omnidirectional wheel 2 to obtain a filtering result.
[0070] In the embodiment of the present invention, filtering refers to Kalman filtering, and of course it may also be other filtering methods with the same function.
[0071] Specifically, the travel distance and correction distance of each omnidirectional wheel 2 are used as inputs of the Kalman filter, and the filtering result is output. After filtering the correction distance and the travel distance, the filtering result is obtained. Compared with only the travel distance representing the distance moved by the omnidirectional wheel 2, the representation of the filtering result is more accurate.
[0072] Further, in the embodiment of the present invention, for the driving distance and correction distance of each omnidirectional wheel 2, the driving distance and correction distance of each omnidirectional wheel 2 are processed to obtain a processing result, including: for the driving distance and correction distance of each omnidirectional wheel 2, the driving distance and correction distance of each omnidirectional wheel 2 are filtered to obtain a filtering result. Preferably, the driving distance and correction distance refer to the distance in the object coordinate system of the object to be positioned, the object coordinate system includes an X-coordinate axis and a Y-coordinate axis parallel to the horizontal plane, and the X-coordinate axis is orthogonal to the Y-coordinate axis; the two omnidirectional wheels 2 include a first omnidirectional wheel and a second omnidirectional wheel; when the first omnidirectional wheel is parallel to the X-coordinate axis, the driving distance of the first omnidirectional wheel is a first driving sub-distance, and the correction distance of the first omnidirectional wheel is a first correction sub-distance; when the second omnidirectional wheel is parallel to the Y-coordinate axis, the driving distance of the second omnidirectional wheel is a second driving sub-distance, and the correction distance of the second omnidirectional wheel is a second correction sub-distance.
[0073] Among them, in the embodiment of the present invention, an object coordinate system is set for the object to be positioned, which belongs to the coordinate system of the object to be positioned. After preliminary calibration, the object coordinate system can send rotation as the object to be positioned rotates. In addition, a world coordinate system is also set in the embodiment of the present invention to correct the rotation of the object to be positioned.
[0074] It should be understood that one of the two omnidirectional wheels is named the first omnidirectional wheel, and the other of the two omnidirectional wheels is named the second omnidirectional wheel. The first and second here are just for distinguishing the two omnidirectional wheels, and do not have a sequence of precedence. Moreover, the first and second in the first distance, the second distance, the first running sub-distance, the second running sub-distance, the first correction sub-distance, and the second correction sub-distance that appear in the embodiments of the present invention are just for distinguishing purposes, and do not have a sequence of precedence.
[0075] Specifically, by determining the first running sub-distance and the first correction sub-distance of the first omnidirectional wheel parallel to the X-axis direction, and determining the second running sub-distance and the second correction sub-distance of the second omnidirectional wheel parallel to the Y-axis direction, preparation is made for subsequent filtering.
[0076] Furthermore, in an embodiment of the present invention, the driving distance and the correction distance of each omnidirectional wheel 2 are processed to obtain a processing result, including: filtering the first driving sub-distance and the first correction sub-distance to obtain a first distance; filtering the second driving sub-distance and the second correction sub-distance to obtain a second distance.
[0077] Specifically, the first travel sub-distance and the first correction sub-distance are filtered to obtain a first distance, that is, the distance traveled by the omnidirectional wheel 2 in the direction of the X-coordinate axis. The second travel sub-distance and the second correction sub-distance are filtered to obtain a second distance, that is, the distance traveled by the omnidirectional wheel 2 in the direction of the Y-coordinate axis.
[0078] For example, the motor speed is set to 5 rad / s, and the travel distance of the omnidirectional wheel 2 obtained by using only the encoder 3, the distance corrected by filtering and the travel distance, and the theoretical value are calculated. Figure 7 It can be seen that the distance traveled by the omnidirectional wheel 2 obtained by filtering the correction distance and the travel distance is closer to the theoretical value and has higher accuracy. It should be noted that the exemplary experiment here refers to an experiment conducted on any one omnidirectional wheel 2.
[0079] S240: Obtain target position information of the object to be positioned based on the rotation angle and the processing results of the two omnidirectional wheels 2.
[0080] Further, in an embodiment of the present invention, obtaining target position information of the object to be located based on the rotation angle and the two processing results includes: obtaining target position information of the object to be located based on the rotation angle and the two filtering results.
[0081] Specifically, when the object to be located does not rotate, the rotation angle is zero, and the target position information is obtained based on the two filtering results. When the object to be located rotates, the two filtering results are updated based on the rotation angle to obtain the target position information.
[0082] Further, in an embodiment of the present invention, the rotation angle refers to the angle of rotation of the omnidirectional wheel 2 in the object coordinate system; the target position information of the object to be located is obtained based on the processing results of the rotation angle and the two omnidirectional wheels 2, including: when it is detected that the object to be located has a rotation action, the rotation angle corresponding to the rotation action in the object coordinate system is obtained by the angle measuring gyroscope 7; the rotation angle is decomposed into the world coordinate system to obtain a first angle in the direction of the X1 coordinate axis and a second angle in the direction of the Y1 coordinate axis; based on the first angle, the first distance and the second distance are processed to obtain a first target sub-distance; based on the second angle, the first distance and the second distance are processed to obtain a second target sub-distance; based on the first target sub-distance, the target position information is obtained; wherein, the world coordinate system includes an X1 coordinate axis and a Y1 coordinate axis parallel to the horizontal plane, the X1 coordinate axis and the Y1 coordinate axis are orthogonal, and at the initial moment, the coordinate axes of the world coordinate system coincide with those of the object coordinate system.
[0083] Specifically, the rotation angle is decomposed into the world coordinate system to obtain a first angle in the X1 axis direction and a second angle in the Y1 coordinate axis direction, and the first distance and the second distance are processed based on the first angle to obtain a first target sub-distance in the X1 coordinate axis direction. Similarly, the first distance and the second distance are processed based on the second angle to obtain a second target sub-distance in the Y1 coordinate axis direction. Based on the first target sub-distance and the second target sub-distance, the target position information is obtained. The target position information of the object to be located can be determined through the world coordinate system.
[0084] Exemplarily, the object to be positioned is located in the first coordinate system in the world coordinate system. The object to be positioned first rotates β degrees in the direction of the X1 coordinate axis, and then moves from point M to point N. The travel distance and correction distance of each omnidirectional wheel 2 can be obtained in the object coordinate system, and the corresponding filtering result of each omnidirectional wheel 2 can be obtained according to the travel distance and correction distance of each omnidirectional wheel 2. The filtering result is processed by the rotation angle β to obtain the target position information in the world coordinate system.
[0085] x=lxcosβ+lycos(90-β)
[0086] y=lysin(90-β)-lxsinβ
[0087] Wherein, x represents the first target sub-distance in the world coordinate system, and y represents the second target sub-distance in the world coordinate system. lx represents the filtering result of the omnidirectional wheel 2 in the X-axis direction in the object coordinate system. ly represents the filtering result of the omnidirectional wheel 2 in the Y-axis direction in the object coordinate system.
[0088] The technical solution of the embodiment of the present invention is that two orthogonally arranged omnidirectional wheels 2 move with the object to be located, and the encoder 3 coaxially connected to each omnidirectional wheel 2 obtains the travel distance of the omnidirectional wheel 2, and the correction distance of the omnidirectional wheel 2 is obtained by the distance measuring gyroscope 4 axially connected to each omnidirectional wheel 2. The rotation angle of the object to be located is measured by the angle measuring gyroscope 7 installed at the intersection of the two omnidirectional wheels 2 and placed vertically. The filtering result is obtained according to the travel distance and the correction distance of each omnidirectional wheel 2, and the target position information of the object to be located is obtained according to the rotation angle and the two filtering results. Through the technical solution of the embodiment of the present invention, the positioning of the object to be located is realized, and the accuracy of positioning is improved.
[0089] Embodiment 3
[0090] Figure 8 This is a schematic diagram of the structure of a positioning device provided in an embodiment of the present invention. The positioning device provided in an embodiment of the present invention can execute the positioning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The device includes:
[0091] Two omnidirectional wheels 2, the two omnidirectional wheels 2 are orthogonally arranged, connected to the object to be located, and serve as driven wheels of the object to be located; two encoders 3, the rotating shaft of each encoder 3 is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and is used to obtain the travel distance of the omnidirectional wheel 2; two distance measuring gyroscopes 4, the rotating shaft of each distance measuring gyroscope 4 is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and is used to obtain the correction distance of the omnidirectional wheel 2; an angle measuring gyroscope 7, located at the intersection of the two omnidirectional wheels 2 and vertically arranged, is used to obtain the rotation angle of the object to be located; a data processing module 6, used to process the travel distance and the correction distance of each omnidirectional wheel 2 to obtain a processing result; a position information acquisition module 1, used to obtain the target position information of the object to be located based on the rotation angle and the processing results of the two omnidirectional wheels 2.
[0092] Specifically, in the embodiment of the present invention, the data processing module 6 is connected to the encoder 3, the distance measuring gyroscope 4 and the angle measuring gyroscope 7 for communication, and is used to obtain the travel distance of the omnidirectional wheel from the encoder 3, obtain the correction distance of the omnidirectional wheel from the distance measuring gyroscope 4, and obtain the rotation angle of the object to be positioned from the angle measuring gyroscope 7. Optionally, the positioning device includes a single chip microcomputer, and the single chip microcomputer includes the data processing module 6 and the position information acquisition module 1.
[0093] Furthermore, the data processing module 6 also includes: a data filtering submodule, which is used to filter the driving distance and the correction distance of each omnidirectional wheel 2 to obtain a filtering result.
[0094] Furthermore, the driving distance and the correction distance refer to the distance in the object coordinate system of the object to be positioned, the object coordinate system includes an X-axis and a Y-axis parallel to the horizontal plane, and the X-axis is orthogonal to the Y-axis; the two omnidirectional wheels 2 include a first omnidirectional wheel and a second omnidirectional wheel; when the first omnidirectional wheel is parallel to the X-axis, the driving distance of the first omnidirectional wheel is the first driving sub-distance, and the correction distance of the first omnidirectional wheel is the first correction sub-distance; when the second omnidirectional wheel is parallel to the Y-axis, the driving distance of the second omnidirectional wheel is the second driving sub-distance, and the correction distance of the second omnidirectional wheel is the second correction sub-distance; the data processing module 6 is also used to: filter the first driving sub-distance and the first correction sub-distance to obtain the first distance; filter the second driving sub-distance and the second correction sub-distance to obtain the second distance.
[0095] Furthermore, the rotation angle refers to the angle of rotation of the omnidirectional wheel 2 in the object coordinate system; the position information acquisition module 1 is also used for: when a rotation action of the object to be positioned is detected, obtaining the rotation angle corresponding to the rotation action in the object coordinate system through the angle measuring gyroscope 7; decomposing the rotation angle into the world coordinate system to obtain a first angle in the direction of the X1 coordinate axis and a second angle in the direction of the Y1 coordinate axis; processing the first distance and the second distance based on the first angle to obtain a first target sub-distance; processing the first distance and the second distance based on the second angle to obtain a second target sub-distance; obtaining target position information based on the first target sub-distance and the second target sub-distance; wherein the world coordinate system includes an X1 coordinate axis and a Y1 coordinate axis parallel to the horizontal plane, the X1 coordinate axis and the Y1 coordinate axis are orthogonal, and at the initial moment, the coordinate axes of the world coordinate system coincide with those of the object coordinate system.
[0096] Furthermore, the encoder 3 is also used to obtain the position information of the code disk: Wherein, T represents the time from the starting position of the object to be located, the time when the omnidirectional wheel 2 travels to the current position, ω represents the motor speed of the object to be located, and θ represents the position information; the number of pulses received at the time T is obtained based on the position information: N represents the number of pulses emitted per rotation of the code disk, n represents the number of pulses received at time T, and ceil represents the rounding function. The first angular velocity of the omnidirectional wheel 2 is obtained based on the number of pulses obtained: t is the period of the pulse emitted by the encoder 3, ω1 represents the first angular velocity; based on the first angular velocity, the travel distance of the omnidirectional wheel 2 is obtained: R is the radius of the omnidirectional wheel 2 , ΔT represents the travel time of the omnidirectional wheel 2 , and s1 represents the travel distance.
[0097] Furthermore, the distance measuring gyroscope 4 is also used to measure the second angular velocity of the omnidirectional wheel 2 , and obtain the correction distance of the omnidirectional wheel 2 based on the second angular velocity: s2=ω2TR, wherein s2 represents the correction distance, and ω2 represents the second angular velocity of the omnidirectional wheel 2 .
[0098] Furthermore, the distance measuring gyroscope 4 and the side angle gyroscope are both solid wave gyroscopes 5, and the solid wave gyroscope 5 is located in a constant temperature box 4; the constant temperature box 4 in which the distance measuring gyroscope 4 is placed is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and the constant temperature box 4 in which the angle measuring gyroscope 7 is placed is located at the intersection of the two omnidirectional wheels 2 and is vertically arranged.
[0099] The positioning device of the embodiment of the present invention comprises two omnidirectional wheels 2, which are arranged orthogonally and connected to the object to be positioned, and serve as the driven wheels of the object to be positioned. Two encoders 3, the rotating shaft of each encoder 3 is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and are used to obtain the travel distance of the omnidirectional wheel 2. Two distance measuring gyroscopes 4, the rotating shaft of each distance measuring gyroscope 4 is coaxially connected to the main rotating shaft of the omnidirectional wheel 2, and are used to obtain the correction distance of the omnidirectional wheel 2. An angle measuring gyroscope 7 is located at the intersection of the two omnidirectional wheels 2 and is arranged vertically, and is used to obtain the rotation angle of the object to be positioned. A data processing module 6 is used to process the travel distance and correction distance of each omnidirectional wheel 2 to obtain a processing result. A position information acquisition module 1 is used to obtain the target position information of the object to be positioned based on the rotation angle and the processing results of the two omnidirectional wheels 2. The technical solution of the embodiment of the present invention realizes the positioning of the object to be positioned and improves the accuracy of positioning.
[0100] It is worth noting that the various modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the various functional modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0101] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A positioning method, characterized in that: include: For two omnidirectional wheels, the travel distance of the omnidirectional wheels is obtained through an encoder, and the correction distance of the omnidirectional wheels is obtained through a distance measuring gyroscope; Obtain the rotation angle of the object to be positioned by using an angle measuring gyroscope; For each omnidirectional wheel's travel distance and correction distance, the travel distance and correction distance of each omnidirectional wheel are processed to obtain a processing result; Obtaining target position information of the object to be located based on the processing results of the rotation angle and the two omnidirectional wheels; The two omnidirectional wheels are orthogonally arranged and serve as driven wheels of the object to be positioned. The main rotating shaft of each omnidirectional wheel is coaxially connected to the rotating shaft of the encoder. The rotating shaft of the distance measuring gyroscope is coaxially connected to the main rotating shaft of the omnidirectional wheel. The angle measuring gyroscope is located at the intersection of the two omnidirectional wheels and is vertically arranged.
2. The method according to claim 1, characterized in that: The method processes the driving distance and the correction distance of each omnidirectional wheel to obtain a processing result, including: With respect to the travel distance and the correction distance of each omnidirectional wheel, the travel distance and the correction distance of each omnidirectional wheel are filtered to obtain a filtering result.
3. The method according to claim 2, characterized in that The driving distance and the correction distance refer to the distances in the object coordinate system of the object to be positioned, the object coordinate system includes an X-coordinate axis and a Y-coordinate axis parallel to the horizontal plane, and the X-coordinate axis is orthogonal to the Y-coordinate axis; the two omnidirectional wheels include a first omnidirectional wheel and a second omnidirectional wheel; When the first omnidirectional wheel is parallel to the X-coordinate axis, the travel distance of the first omnidirectional wheel is a first travel sub-distance, and the correction distance of the first omnidirectional wheel is a first correction sub-distance; When the second omnidirectional wheel is parallel to the Y coordinate axis, the travel distance of the second omnidirectional wheel is the second travel sub-distance, and the correction distance of the second omnidirectional wheel is the second correction sub-distance.
4. The method according to claim 3, characterized in that The method processes the driving distance and the correction distance of each omnidirectional wheel to obtain a processing result, including: Filtering the first travel sub-distance and the first correction sub-distance to obtain a first distance; The second travel sub-distance and the second correction sub-distance are filtered to obtain a second distance.
5. The method according to claim 4, characterized in that The rotation angle refers to the rotation angle of the omnidirectional wheel in the object coordinate system; The method of obtaining the target position information of the object to be located based on the processing results of the rotation angle and the two omnidirectional wheels includes: When it is detected that the object to be positioned has a rotation action, the rotation angle corresponding to the rotation action in the object coordinate system is acquired by the angle measuring gyroscope; Decomposing the rotation angle into the world coordinate system to obtain a first angle in the direction of the X1 coordinate axis and a second angle in the direction of the Y1 coordinate axis; Processing the first distance and the second distance based on the first angle to obtain a first target sub-distance; Processing the first distance and the second distance based on the second angle to obtain a second target sub-distance; Obtaining target location information based on the first target sub-distance and the second target sub-distance; The world coordinate system includes an X1 coordinate axis and a Y1 coordinate axis parallel to the horizontal plane, the X1 coordinate axis and the Y1 coordinate axis are orthogonal, and at the initial moment, the world coordinate system coincides with the coordinate axis of the object coordinate system.
6. The method according to claim 1, characterized in that The step of obtaining the travel distance of the omnidirectional wheel by using an encoder comprises: Get the position information of the encoder's code disk: Wherein, T represents the time corresponding to the time when the omnidirectional wheel travels to the current position starting from the starting position of the object to be located, ω represents the motor speed of the object to be located, and θ represents the position information; The number of pulses received at time T is obtained based on the position information: N represents the number of pulses emitted by the code disk per rotation, n represents the number of pulses received at time T, and ceil represents a rounding function; The first angular velocity of the omnidirectional wheel is obtained based on the number of pulses obtained: t is the period of pulses emitted by the encoder, and ω1 represents the first angular velocity; The travel distance of the omnidirectional wheel is obtained based on the first angular velocity: R is the radius of the omnidirectional wheel, ΔT represents the travel time of the omnidirectional wheel, and s1 represents the travel distance.
7. The method according to claim 1, characterized in that The method of obtaining the correction distance of the omnidirectional wheel by using a distance measuring gyroscope comprises: The second angular velocity of the omnidirectional wheel is measured by a distance measuring gyroscope, and a correction distance of the omnidirectional wheel is obtained based on the second angular velocity: s2=ω2TR, Wherein, s2 represents the correction distance, and ω2 represents the second angular velocity of the omnidirectional wheel.
8. The method according to claim 1, characterized in that The distance measuring gyroscope and the angle measuring gyroscope are both solid wave gyroscopes, and the solid wave gyroscope is located in a constant temperature box; the constant temperature box in which the distance measuring gyroscope is placed is coaxially connected to the main rotating shaft of the omnidirectional wheel, and the constant temperature box in which the angle measuring gyroscope is placed is located at the intersection of the two omnidirectional wheels and is vertically arranged.
9. A positioning device, characterized in that: include: Two omnidirectional wheels, which are orthogonally arranged and connected to the object to be positioned, serving as driven wheels of the object to be positioned; Two encoders, each having a rotating shaft coaxially connected to the main rotating shaft of the omnidirectional wheel, for obtaining the travel distance of the omnidirectional wheel; Two distance measuring gyroscopes, each of which has a rotating shaft coaxially connected to the main rotating shaft of the omnidirectional wheel, for obtaining a correction distance of the omnidirectional wheel; An angle measuring gyroscope, located at the intersection of the two omnidirectional wheels and arranged vertically, is used to obtain the rotation angle of the object to be positioned; A data processing module is used to process the travel distance and the correction distance of each omnidirectional wheel to obtain a processing result; The position information acquisition module is used to obtain the target position information of the object to be located based on the rotation angle and the processing results of the two omnidirectional wheels.
10. The device according to claim 9, characterized in that The data processing module also includes: Data filtering submodule: for the driving distance and correction distance of each omnidirectional wheel, the driving distance and correction distance of each omnidirectional wheel are filtered to obtain a filtering result.
