WO2020000325A1 - Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route - Google Patents

Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route Download PDF

Info

Publication number
WO2020000325A1
WO2020000325A1 PCT/CN2018/093467 CN2018093467W WO2020000325A1 WO 2020000325 A1 WO2020000325 A1 WO 2020000325A1 CN 2018093467 W CN2018093467 W CN 2018093467W WO 2020000325 A1 WO2020000325 A1 WO 2020000325A1
Authority
WO
WIPO (PCT)
Prior art keywords
universal wheel
speed
wheel
electronic device
rotation angle
Prior art date
Application number
PCT/CN2018/093467
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 CN201880002521.7A priority Critical patent/CN109511274A/en
Priority to PCT/CN2018/093467 priority patent/WO2020000325A1/en
Priority to CN201821135954.3U priority patent/CN208705351U/en
Publication of WO2020000325A1 publication Critical patent/WO2020000325A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • G05D1/0251Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means extracting 3D information from a plurality of images taken from different locations, e.g. stereo vision
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/24Floor-sweeping machines, motor-driven
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4002Installations of electric equipment
    • A47L11/4008Arrangements of switches, indicators or the like
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4061Steering means; Means for avoiding obstacles; Details related to the place where the driver is accommodated
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4063Driving means; Transmission means therefor
    • A47L11/4066Propulsion of the whole machine
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M13/00Testing of machine parts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0223Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving speed control of the vehicle
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0259Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
    • G05D1/0285Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle using signals transmitted via a public communication network, e.g. GSM network
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
    • A47L2201/04Automatic control of the travelling movement; Automatic obstacle detection

Definitions

  • the invention relates to the field of robots, and in particular, to a universal wheel speed measurement device, method and system, a slip detection method, a movable electronic device, a path correction method and device.
  • This type of intelligent cleaning robot is usually supported by two driving wheels and a driven wheel.
  • the driving wheels are directly driven by the motor to provide forward power.
  • the driven wheels generally include universal wheels and auxiliary wheels to help maintain balance.
  • the drive wheels often slip.
  • the ground is relatively smooth or the robot is stranded.
  • the robot cannot run normally.
  • the rolling distance of the drive wheels and the robot The sliding distance is not consistent.
  • the robot control system still assumes that the robot is in a normal working state. Therefore, the robot will continue to work until the power is lower than a certain value and when it is no power, it will stop working, causing a lot of waste of electrical energy.
  • the existing cleaning robots generally determine whether the driving wheels of the robot are slipping by detecting the motion state of the universal wheel.
  • a Chinese invention patent application with patent application number 201510013410.4 discloses a universal wheel speed measurement device, which is connected to the universal wheel through a transmission mechanism.
  • the linkage disk is driven by the cam on the universal wheel
  • the up and down movement causes the flange on the linkage plate to trigger the opening and closing of the switch of the detection circuit board (for example, to trigger the blocking and turning on of the infrared signal).
  • the switch is always closed or opened, the cleaning robot is determined Slipping occurs.
  • the above structure simply judges whether the universal wheel is in motion or not, it cannot distinguish between the stopped movement state of the robot and the idling state of the driving wheel, and it cannot effectively detect the occurrence of slippage of the robot;
  • the above structure can only detect the slip phenomenon of the robot by judging the stop motion state of the universal wheel, and cannot effectively determine the situation when the speed of the universal wheel and the speed of the driving wheel are inconsistent. When this happens, the robot assumes that the robot is in a normal working state. Therefore, the robot still obtains the movement displacement of the robot at the speed of two driving wheels, causing an error;
  • the above structure obtains a discrete signal based on the rotation of the universal wheel, and there is a delay in detecting the occurrence of slippage in the robot. For example, when slippage occurs at any time, using the scheme of application number 201510013410.4 to perform slippage detection requires a long time. (For example, the set longest scrolling period of the scroll wheel) to determine when the switch is always closed or open, thereby determining that the robot is slipping and responding.
  • the purpose of the embodiments of the present invention is to provide a universal wheel speed measurement device, method and system, slip detection method, movable electronic equipment, path correction method and device, which can effectively overcome the existing technology by simply detecting whether the universal wheel is moving or not. Defects in judging whether the driving wheels of the robot are slipping, can obtain continuous signals and quantify the speed of the universal wheel, which is beneficial for subsequent applications.
  • an embodiment of the present invention provides a universal wheel speed measurement device, including a universal wheel, a transmission mechanism, a movable rod and a linear Hall sensor.
  • One end of the movable rod is provided with a magnetic element, and the movable rod The other end is connected to the universal wheel through a transmission mechanism, and the linear Hall sensor is located on one side of the movable rod and is opposite to the magnetic element; the movable rod follows the universal wheel through the transmission mechanism.
  • the rotation of the wheel makes a reciprocating circular motion, thereby driving the magnetic element to make a reciprocating circular motion toward and away from the linear Hall sensor, and the linear Hall sensor continuously outputs an analog signal value during the reciprocating circular motion of the magnetic element.
  • the universal wheel speed measuring device disclosed in the present invention is provided with a magnetic element at one end of the movable rod, and the other end is connected to the universal wheel through a transmission mechanism.
  • the Hall sensor is located on one side of the movable rod. Opposite to the magnetic element, the movable rod performs a reciprocating circular motion with the rotation of the universal wheel through the transmission mechanism, thereby driving the magnetic element to make a reciprocating circular motion toward and away from the linear Hall sensor.
  • the linear Hall sensor continuously outputs an analog signal value during the reciprocating cyclic motion of the magnetic element, which can effectively overcome the existing defects of simply judging whether the universal wheel is moving to determine whether the driving wheel of the robot is slipping. It can obtain continuous signals and quantify the speed of the universal wheel, which is beneficial for subsequent applications.
  • the transmission mechanism includes a first friction wheel and a second friction wheel, the first friction wheel and the second friction wheel are symmetrically connected through an eccentric shaft, and the eccentric shaft is in contact with the first friction wheel and The axis of the second friction wheel is asymmetric, the movable rod is in contact with the eccentric shaft, the first friction wheel and the second friction wheel are in close contact with the universal wheel, and the universal wheel During the rotation, the first friction wheel and the second friction wheel are driven to roll, thereby driving the movable rod to perform a reciprocating cycle motion with the rotation of the universal wheel.
  • the device further includes a pressing member, which is used to press the first friction wheel and the second friction wheel so that the first friction wheel and the second friction wheel are respectively connected with the first friction wheel and the second friction wheel.
  • the universal wheel abuts closely.
  • the device further includes a mounting seat, and a lower part of the mounting seat is provided with a groove for accommodating the universal wheel, and an axle of the universal wheel is fixedly engaged with a side wall of the groove.
  • the upper part of the mounting seat is provided with a receiving cavity for accommodating the first friction wheel and the second friction wheel, and the groove is provided with a symmetrical first opening and a second opening, and the first friction wheel passes through The first opening is in close contact with the universal wheel, and the second friction wheel is in close contact with the universal wheel through the second opening.
  • the pressing member includes a mounting frame and a torsion ring
  • the mounting frame includes a first connection arm, a second connection arm, and a cross beam, one end of the first connection arm and one end of the second connection arm Connected by the crossbeam, and the torsion ring is sleeved on the crossbeam
  • the first friction wheel is rotatably connected to the other end of the first connection arm through a rotation shaft thereon
  • the second friction wheel It is rotatably connected with the other end of the second connecting arm through a rotating shaft thereon.
  • a bracket is provided in the receiving cavity, and the bracket includes a first side wall, a second side wall, and a third side wall connected in sequence, and the first side wall and the third side wall are relatively distributed.
  • the beam is engaged with the groove of the first side wall and the groove of the third side wall, and the torsion ring is distributed between the first side wall and the third side wall, and the first connection
  • One end of the arm is provided with a stopper, one end of the torsion ring is in contact with the stopper, and the other end of the torsion ring is in contact with the inner surface of the second side wall, so that the torsion ring occurs.
  • the first friction wheel and the second friction wheel are deformed and a restoring force is pressed to closely contact the universal wheel.
  • the device further includes an upper cover provided with a pressing block, the pressing block is used to cooperate with the bracket to compress the other end of the torsion ring to the second side.
  • the inner surface of the wall abuts.
  • a rotation prevention post is also provided in the receiving cavity of the mounting base, a rotation prevention hole is provided on the upper cover, and the rotation prevention post is inserted into the rotation prevention hole to prevent the pressure block and The position of the bracket is shifted.
  • the rolling surfaces of the first friction wheel and the second friction wheel are both conical surfaces.
  • the upper cover is further provided with a third opening and a fourth opening, a rolling surface of the first friction wheel protrudes from the third opening, and a rolling surface of the second friction wheel is The fourth opening extends.
  • An embodiment of the present invention further provides a universal wheel speed measurement method, which is applicable to the universal wheel speed measurement device according to any one of the foregoing, and includes steps:
  • the rotation speed of the universal wheel is calculated in real time according to the rotation angle of the universal wheel relative to the initial state.
  • the universal wheel speed measurement method disclosed by the present invention obtains the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset corresponding relationship.
  • the real-time calculation of the speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state can effectively solve the problem that the prior art cannot effectively quantify the speed of the universal wheel, and calculate the speed of the universal wheel in real time for the follow-up For skid detection and path correction.
  • the correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
  • B is an analog signal value of the magnetic element sensed by the linear Hall sensor
  • a and b are adjustment parameters
  • r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, ⁇ is the rotation angle of the universal wheel with respect to the initial state, and ⁇ is the standard angle.
  • Hnow is the current magnetic field size
  • Hmin is the minimum value of the magnetic field
  • Hmid is the median value of the magnetic field
  • Hmax is the maximum value of the magnetic field
  • is the rotation angle of the universal wheel relative to the initial state.
  • U is the voltage value output by the linear Hall sensor in real time
  • t is the time
  • is the rotation angle of the universal wheel relative to the initial state
  • f ( ⁇ ) is the rotation angle of the universal wheel relative to the initial state.
  • w is the angular velocity of the universal wheel.
  • is the angular velocity of the universal wheel
  • T is the period of scanning the rotation angle of the universal wheel
  • ⁇ 1 is the rotation angle of the universal wheel detected in the previous period
  • ⁇ 2 is the rotation angle of the universal wheel detected in the current period.
  • T is far less than the rotation period of the universal wheel itself.
  • An embodiment of the invention also provides a universal wheel speed measurement system, including:
  • the universal wheel speed measurement device configured to output an analog signal value through the linear Hall sensor
  • a controller configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the rotation of the universal wheel relative to the initial state The angle calculates the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state.
  • the universal wheel speed measurement system further includes a signal collector for obtaining an analog signal value output by the linear Hall sensor during the universal wheel is moving at a uniform angular velocity at a preset speed. Curve over time
  • the controller is further configured to intercept a curve of a first period of an analog signal value of the linear Hall sensor over time, and sample the curve of the first period at a preset frequency.
  • the corresponding relationship between the sampled signal value and time is used to obtain a list of the corresponding relationship between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state;
  • the angle of rotation is equal to the product of the angular velocity and time.
  • the controller obtains a correspondence list between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state by the following formula:
  • B is an analog signal value of the magnetic element sensed by the linear Hall sensor
  • a and b are adjustment parameters
  • r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, ⁇ is the rotation angle of the universal wheel with respect to the initial state, and ⁇ is the standard angle.
  • the controller obtains the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state by the following formula:
  • Hnow is the current magnetic field size
  • Hmin is the minimum value of the magnetic field
  • Hmid is the median value of the magnetic field
  • Hmax is the maximum value of the magnetic field
  • is the rotation angle of the universal wheel relative to the initial state.
  • the controller obtains the rotation angle of the universal wheel relative to the initial state in real time to calculate the speed of the universal wheel rotation according to the following formula:
  • U is the voltage value output by the linear Hall sensor in real time
  • t is the time
  • is the rotation angle of the universal wheel relative to the initial state
  • f ( ⁇ ) is the rotation angle of the universal wheel relative to the initial state.
  • w is the angular velocity of the universal wheel.
  • the controller obtains the rotation angle of the universal wheel relative to the initial state according to the following formula to calculate the rotation speed of the universal wheel in real time:
  • is the angular velocity of the universal wheel
  • T is the period of scanning the rotation angle of the universal wheel
  • ⁇ 1 is the rotation angle of the universal wheel detected in the previous period
  • ⁇ 2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
  • An embodiment of the present invention also provides a slip detection method, which is applicable to a movable electronic device.
  • the movable electronic device includes a first driving wheel, a second driving wheel, and a universal wheel speed measurement device according to any one of the foregoing. , Including steps:
  • the slip detection method disclosed in the present invention obtains the speed of the universal wheel by changing in real time, and compares the speed of the universal wheel with the first driving wheel or the second driving according to different motion states of the movable electronic device.
  • the comparison of the wheel speed or the reference speed can effectively detect the inconsistency between the driving wheel rolling distance and the movable electronic device sliding distance.
  • the function is more complete and more conducive to popularization.
  • the correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
  • B is an analog signal value of the magnetic element sensed by the linear Hall sensor
  • a and b are adjustment parameters
  • r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, ⁇ is the rotation angle of the universal wheel with respect to the initial state, and ⁇ is the standard angle.
  • Hnow is the current magnetic field size
  • Hmin is the minimum value of the magnetic field
  • Hmid is the median value of the magnetic field
  • Hmax is the maximum value of the magnetic field
  • is the rotation angle of the universal wheel relative to the initial state.
  • U is the voltage value output by the linear Hall sensor in real time
  • t is the time
  • is the rotation angle of the universal wheel relative to the initial state
  • f ( ⁇ ) is the rotation angle of the universal wheel relative to the initial state.
  • w is the angular velocity of the universal wheel.
  • is the angular velocity of the universal wheel
  • T is the period of scanning the rotation angle of the universal wheel
  • ⁇ 1 is the rotation angle of the universal wheel detected in the previous period
  • ⁇ 2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
  • the method further includes the steps:
  • An embodiment of the present invention further provides a movable electronic device, where the movable electronic device includes a first driving wheel, a second driving wheel, a first encoder, a second encoder, and any of claims 1-10.
  • the first encoder is configured to detect the speed of the first driving wheel in real time
  • the second encoder is used to detect the speed of the second driving wheel in real time
  • the controller is configured to execute the following program modules stored in the memory:
  • the universal wheel speed calculation module is configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the universal wheel The rotation angle relative to the initial state is used to calculate the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state. ;
  • a movement mode judging module configured to determine that the movable electronic device performs a linear motion when a difference between a speed of the first driving wheel and a speed of the second driving wheel is less than a preset first speed threshold; When the difference between the speed of the first driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
  • a first difference calculating module if it is determined that the movable electronic device performs linear motion, calculating a first difference between the speed of the universal wheel and the speed of the first driving wheel or the second driving wheel at the current moment;
  • a first slip determination module configured to record a first duration when the first difference is greater than a preset first speed threshold when the first difference is greater than a preset second speed threshold; When a duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
  • a second difference calculation module configured to calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel and the speed of the second driving wheel if it is determined that the movable electronic device performs a curved movement, and calculate the current time A second difference between the speed of the universal wheel and the theoretical speed;
  • a second slip determination module configured to record a second duration when the second difference is greater than a second speed threshold when the second difference is greater than a second speed threshold; when the second duration is greater than a preset A second time threshold, it is determined that the movable electronic device is slipping.
  • the controller is further configured to execute the following program modules stored in the memory:
  • a first control module configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion forward And turning direction so that the movable electronic device backs up by K 1 cm and turns P 1 ° to avoid;
  • a second control module configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage is detected at the movable electronic device and the movable electronic device performs a linear motion backward And the direction of rotation so that the movable electronic device advances K 2 cm and turns P 2 ° to avoid;
  • a third control module configured to control the rotation speed of the first driving wheel and the second driving wheel when the movable electronic device detects slippage at any time And turning direction to make the movable electronic device back K 3 cm and turn P 3 ° to avoid;
  • a fourth control module configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curved movement backward And turn the direction so that the movable electronic device advances K 4 cm and turns P 4 ° to avoid.
  • An embodiment of the present invention further provides a path correction method, including steps:
  • An embodiment of the present invention further provides a path correcting device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • the processor is implemented when the processor executes the computer program. Path correction method as described above.
  • An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute as described above.
  • the path correction method described above is described above.
  • FIG. 1 is an exploded schematic view of a universal wheel speed measurement device in Embodiment 1 of the present invention.
  • FIG. 2 is a plan view of a mounting base in Embodiment 1 of the present invention.
  • FIG. 3 is another plan view of the mounting base in Embodiment 1 of the present invention.
  • Fig. 4 is a longitudinal sectional view of a universal wheel speed measuring device in Embodiment 1 of the present invention.
  • FIG. 5 is a perspective view of a universal wheel speed measurement device in Embodiment 1 of the present invention.
  • FIG. 6 is a schematic flowchart of a universal wheel speed measurement method in Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of a universal wheel speed measurement process in Embodiment 2 of the present invention.
  • Embodiment 8 is a schematic structural diagram of a universal wheel speed measurement system in Embodiment 3 of the present invention.
  • FIG. 9 is a schematic flowchart of a slip detection method in Embodiment 4 of the present invention.
  • FIG. 10 is a schematic diagram of a slip detection process in Embodiment 3 of the present invention.
  • FIG. 11 is a schematic structural diagram of a movable electronic device in Embodiment 5 of the present invention.
  • FIG. 12 is a schematic flowchart of a path correction method in Embodiment 6 of the present invention.
  • a universal wheel speed measurement device provided by an embodiment of the present invention includes a universal wheel 1, a transmission mechanism 2, a movable rod 3, and a linear Hall sensor 4.
  • One end of the movable rod 3 is provided with a magnetic element 5.
  • the other end of the movable rod 3 is connected to the universal wheel 1 through a transmission mechanism 2, and the linear Hall sensor 4 is located on one side of the movable rod 3 and is opposite to the magnetic element 5;
  • the rod 3 makes a reciprocating circular motion with the rotation of the universal wheel 1 through the transmission mechanism 2, thereby driving the magnetic element 5 to make a reciprocating circular motion close to and 3 away from the linear Hall sensor 4.
  • the sensor 4 continuously outputs an analog signal value during the reciprocating cycle of the magnetic element 5.
  • the magnetic element 5 includes a magnet and the like. It should be noted that, as long as the element capable of generating a magnetic field is within the protection scope of the present invention.
  • the universal wheel 1 can drive the magnetic element 5 to make a reciprocating cyclic motion toward and away from the linear Hall sensor 4, so that the linear Hall sensor 4 is in a reciprocating cyclic motion of the magnetic element 5.
  • the analog signal value is continuously output, and the analog signal value continuously changes with time, so that the speed of the scroll wheel can be calculated in real time, which facilitates the slip detection and path correction of the wheeled mobile robot.
  • the universal wheel speed measuring device further includes a mounting base 6, an upper cover 7 and a pressing member.
  • the transmission mechanism 2 includes a first friction wheel 21 and a second friction wheel 22.
  • the wheel 21 and the second friction wheel 22 are symmetrically connected through an eccentric shaft 23, and the axes of the eccentric shaft 23 and the first friction wheel 21 and the second friction wheel 22 are asymmetric, and the movable rod 3 and the eccentric shaft
  • the shaft 23 abuts, the first friction wheel 21 and the second friction wheel 22 are in close contact with the outer surface of the universal wheel 1, respectively, and the universal wheel 1 drives the first friction wheel 21 when rotating
  • the second friction wheel 22 rolls, thereby driving the movable rod 3 to perform a reciprocating cycle motion with the rotation of the universal wheel 1.
  • FIG. 1 As shown in FIG.
  • the universal wheel 1 is a drum wheel with a wide middle and narrow sides, and the first friction wheel 21 and the second friction wheel 22 are preferably rolling wheels having a tapered tooth surface to communicate with the drum.
  • the universal wheel 1 cooperates to increase the contact area between the universal wheel 1 and the first friction wheel 21 and the second friction wheel 22, thereby effectively driving the first friction wheel 21 and the second friction wheel 22 to roll. It should be noted that as long as the surfaces capable of synchronously rotating the first friction wheel 21 and the second friction wheel 22 with the universal wheel 1 are within the protection scope of the present invention.
  • a lower part of the mounting seat 6 is provided with a groove 61 for accommodating the universal wheel 1, and an axle of the universal wheel 1 is fixedly engaged with the groove 61.
  • a side wall, an upper portion of the mounting seat 6 is provided with a receiving cavity 62 for receiving the first friction wheel 21 and the second friction wheel 22, and the groove 61 is provided with a symmetrical first opening 63 and a second opening 64
  • the first friction wheel 21 is in close contact with the universal wheel 1 through the first opening 63
  • the second friction wheel 22 is in close contact with the universal wheel 1 through the second opening 64.
  • a bracket is provided in the receiving cavity 62, and the bracket includes a first side wall 621, a second side wall 622, and a third side wall 623 connected in this order, and the first side wall 621 and the third side wall 623 are relatively distributed. .
  • the pressing member is used for pressing the first friction wheel 21 and the second friction wheel 22 such that the first friction wheel 21 and the second friction wheel 22 are respectively connected to the universal joint. Wheel 1 abuts tightly.
  • the pressing member includes a mounting bracket 81 and a torsion ring 82.
  • the mounting bracket 81 includes a first connecting arm 811, a second connecting arm 812, and a cross beam 813. One end of the first connecting arm 811 and the second connecting arm 812. One end is connected by the cross beam 813, and the torsion ring 82 is sleeved on the cross beam 813, and the first friction wheel 21 is rotatably connected with the other end of the first connecting arm 811 through a rotation shaft thereon.
  • the second friction wheel 22 is rotatably connected to the other end of the second connecting arm 812 through a rotating shaft thereon.
  • the beam 813 is engaged with the groove of the first side wall 621 and the groove of the third side wall 623, and the twist ring 82 is distributed between the first side wall 621 and the third side wall 623.
  • One end of the first connecting arm 811 is provided with a stopper, one end of the torsion ring 82 is in contact with the stopper, and the other end of the torsion ring 82 is in contact with the inner surface of the second side wall 622. Therefore, the torsion ring 82 is deformed and a restoring force is generated to compress the first friction wheel 21 and the second friction wheel 22 to closely contact the universal wheel 1.
  • the upper cover 7 is provided with a pressing block 71, which is used to cooperate with the bracket to press the other end of the torsion ring 82 and the second side wall 622 abuts. .
  • An anti-rotation column 65 is also provided in the receiving cavity 62 of the mounting base 6, and an anti-rotation hole 72 is provided on the upper cover 7. The anti-rotation column 65 is inserted into the anti-rotation hole 72, which can effectively prevent all The positions of the pressing block 71 and the bracket are shifted, so that the torsion ring 82 is maintained in a deformed state to generate a restoring force to press the first friction wheel 21 and the second friction wheel 22.
  • the rotation prevention column 65 is inserted into the rotation prevention hole 72, and the pressing block 71 can cooperate with the bracket to compress the other of the torsion ring 82.
  • One end of the second side wall 622 abuts, so that the torsion ring 82 is deformed and a restoring force is generated to compress the first friction wheel 21 and the second friction wheel 22 to closely abut the universal wheel 1.
  • the universal wheel 1 rotates, the surface friction force between the universal wheel 1 and the first friction wheel 21 and the second friction wheel 22 will drive the first friction wheel 21 and the second friction wheel 22 to rotate synchronously.
  • the eccentric shaft 23 is not symmetrical with the centers of the first friction wheel 21 and the second friction wheel 22.
  • the eccentric shaft 23 is rotated around the axes of the first friction wheel 21 and the second friction wheel 22 as they rotate.
  • the cardiac connection makes a circular motion, which in turn drives the movable rod 3 abutting it to make a reciprocating circular motion.
  • the reciprocating circular motion of the movable rod 3 will drive the magnetic element 5 provided at one end to reciprocate toward and away from the linear Hall sensor 4 Cyclic motion, the magnetic field intensity sensed by the linear Hall sensor 4 is cyclically changed between gradually becoming stronger and weaker, and the linear Hall sensor 4 continuously outputs continuous changes during the reciprocating cyclic motion of the magnetic element 5 Analog signal value.
  • the universal wheel 1 stops rotating, the movable rod 3 remains motionless, and the magnetic element 5 provided at one end thereof also remains motionless.
  • the intensity of the magnetic field sensed by the linear Hall sensor 4 remains unchanged.
  • the sensor 4 outputs a constant analog signal value. According to the output analog signal value and the time change curve, the slope can be analyzed to obtain the real-time speed of the universal wheel 1, which is conducive to subsequent slip detection and path correction.
  • the upper cover 7 is further provided with a third opening 73 and a fourth opening 74, and the rolling surface of the first friction wheel 21 protrudes from the third opening 73, and the second friction wheel The rolling surface of 22 protrudes from the fourth opening 74, so that the volume of the entire device can be compressed, and the layout of the components in the receiving cavity 62 is more compact.
  • the upper cover 7 is also provided with a guide sleeve, and one end of the movable rod 3 protrudes from the guide sleeve. This setting can keep the movable rod 3 in balance and will not fall over during reciprocating circular motion.
  • FIG. 6 is a schematic flowchart of a universal wheel speed measurement method provided in Embodiment 2 of the present invention, which is applicable to the above universal wheel speed measurement device, and includes steps:
  • the real-time speed of the universal wheel 1 can be obtained by analyzing the slope of the output analog signal value and time, and analyzing its slope.
  • the angular velocity of the universal wheel 1 can be calculated by the following formula:
  • the rotation speed of the universal wheel can also be obtained by the following formula:
  • is the angular velocity of the universal wheel 1
  • T is the period for detecting the rotation angle of the universal wheel 1
  • ⁇ 1 is the rotational angle of the universal wheel detected in the previous period
  • ⁇ 2 is the universal wheel detected in the current period. Rotation angle. It should be noted that T is far less than the rotation period of the universal wheel 1 itself (for example, T ⁇ t / 100, t is the rotation period of the universal wheel 1), otherwise the calculated angular velocity will be larger error.
  • linear velocity of the universal wheel 1 can be calculated by the angular velocity of the universal wheel 1, the specific formula is:
  • v is the angular velocity of the universal wheel 1 and r is the radius of the universal wheel 1.
  • the corresponding relationship between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state is obtained by a calibration method, specifically:
  • the corresponding relationship between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 with respect to the initial state is obtained by a formula conversion method, as shown in FIG. 7,
  • the universal wheel 1 rotates, which drives the transmission mechanism to rotate.
  • the magnetic field intensity B sensed by the linear Hall sensor 44 and the displacement of the magnetic element 5 relative to the initial position are set.
  • the linear function relationship of d is:
  • a and b are adjustment parameters. As shown in FIG. 7, if the angle at which the first friction wheel 21 / the second friction wheel 22 rotates within the time ⁇ t (that is, the rotation angle of the universal wheel 1) is ⁇ , then the relationship can be obtained as:
  • B is an analog signal value of the magnet sensed by the linear Hall sensor 4
  • a and b are adjustment parameters
  • r is an axial center of the first friction wheel 21 / second friction wheel 22 and the eccentric shaft 23
  • B is an inductance intensity value sensed by the linear Hall sensor 44.
  • Hnow is the current magnetic field size
  • Hmin is the minimum value of the magnetic field
  • Hmid is the median value of the magnetic field
  • Hmax is the maximum value of the magnetic field
  • is the rotation angle of the universal wheel relative to the initial state.
  • the linear Hall sensor 4 can detect that the magnitude of the magnetic field changes with the movement of the magnetic element 5.
  • the linear Hall sensor 4 detects a periodically changing magnetic field signal.
  • each time the universal wheel 1 rotates the linear Hall sensor 4 generates a magnetic field signal with a sine-like function curve.
  • the magnetic field intensity is the largest, which is the peak of the sine-like function curve.
  • the magnetic element 5 is farthest from the linear Hall sensor 4, the magnetic field The minimum intensity is the trough of the sine-like function curve.
  • the maximum and minimum values of the magnetic field strength are related to the distance between the magnetic element 5 and the linear Hall sensor 4, since the maximum distance and minimum value of the magnetic element 5 with respect to the linear Hall sensor 4 are determined Therefore, the maximum value and the minimum value of the magnetic field strength are also easily determined.
  • Hmin is the magnetic field strength when the magnetic element 5 is farthest from the linear Hall sensor 4
  • Hmax is the magnetic field strength when the magnetic element 5 is closest to the linear Hall sensor 4
  • Hmid is the The magnetic field strength of the magnetic element 5 at the middle position between the furthest distance and the shortest distance is described
  • Hnow is the magnetic field strength obtained in real time.
  • the rotation angle of the universal wheel 1 relative to the initial state at different times can be obtained according to the time-varying inductance intensity value sensed by the linear Hall sensor 44, and the angular velocity and Line speed.
  • the universal wheel speed measurement method used in this embodiment can obtain the speed of the universal wheel 1 in real time according to the continuously changing analog signal. Compared with the prior art, which calculates the speed of the universal wheel 1 through discrete digital signals, The driving speed of the universal wheel 1 can be more accurately quantified as an effective reference for subsequent detection of slip and path correction.
  • Embodiment 8 is a schematic structural diagram of a universal wheel speed measurement system according to Embodiment 3 of the present invention, including:
  • the universal wheel speed measuring device 31 is configured to output an analog signal value through the linear Hall sensor 4.
  • the universal wheel speed measuring device 31 adopts the universal wheel speed measuring device 31 disclosed in any one of the above embodiments.
  • the controller 32 is configured to obtain the rotation angle of the universal wheel 1 relative to the initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship, and The rotation angle of the initial state in real time calculates the rotation speed of the universal wheel 1; wherein the correspondence relationship is the value of the analog signal output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state Correspondence.
  • the universal wheel speed measurement system further includes a signal collector for obtaining an analog signal value output by the linear Hall sensor 4 along with the universal wheel 1 moving at a uniform angular velocity at a preset speed.
  • a signal collector for obtaining an analog signal value output by the linear Hall sensor 4 along with the universal wheel 1 moving at a uniform angular velocity at a preset speed.
  • the controller 32 is further configured to intercept the curve of the first period of the analog signal value of the linear Hall sensor 4 with time, and sample the curve of the first period at a preset frequency. The correspondence between each sampled signal value and time is used to obtain a correspondence list between the analog signal value of the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state; wherein the universal wheel 1 The rotation angle relative to the initial state is equal to the product of the angular velocity and time.
  • the controller 32 obtains a correspondence list between the analog signal value of the linear Hall sensor 4 and the rotation angle of the universal wheel 1 with respect to the initial state by the following formula:
  • B is the analog signal value of the magnetic element 5 sensed by the linear Hall sensor 4
  • a and b are adjustment parameters
  • r is the axis of the first friction wheel / second friction wheel and the eccentricity.
  • the distance from the intersection of the straight line where the axis center of the shaft lies with the bottom surface of the movable rod to the axis center of the universal wheel, ⁇ is the rotation angle of the universal wheel relative to the initial state, and ⁇ is the standard angle.
  • controller 32 may also obtain the correspondence between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state according to the following formula:
  • Hnow is the current magnetic field size
  • Hmin is the minimum value of the magnetic field
  • Hmid is the median value of the magnetic field
  • Hmax is the maximum value of the magnetic field
  • is the rotation angle of the universal wheel 1 relative to the initial state.
  • Embodiment 9 is a schematic flowchart of a slip detection method according to Embodiment 4 of the present invention, which is applicable to a movable electronic device.
  • the movable electronic device includes a first driving wheel, a second driving wheel, and any one of the above implementations.
  • the disclosed universal wheel speed measuring device includes the steps:
  • the method disclosed in this embodiment is applicable to a Wheeled Mobile Robot (WMR).
  • the wheeled mobile robot is composed of a vehicle body, two driving wheels, and a follower wheel.
  • the follower wheel starts during the movement process. Supporting effect, its influence in the previous kinematic model is negligible.
  • research has been started on its motion state to detect the phenomenon that the robot slips or stops when it encounters an obstacle.
  • the direction and speed of the wheeled mobile robot can be controlled by controlling the rotation speed and direction of the motors of the left and right drive wheels.
  • the wheeled mobile robot When there is a speed difference between the left and right drive wheels, the wheeled mobile robot will turn, for example , The speed of the left driving wheel is -50cm / s, the speed of the right driving wheel is 50cm / s, and the wheeled mobile robot makes a turning movement at its center; and when the speed of the left driving wheel and the right driving wheel are both 50cm / s The wheeled mobile robot moves straight forward with its center.
  • first determine different motion states of the movable electronic device such as linear motion or curved motion
  • analyze whether the movable electronic device is slipping according to the situation When the movable electronic device performs a linear motion and determines that the first difference between the speed of the universal wheel and the speed of the first drive wheel or the second drive wheel is greater than a preset second speed threshold, Record the first duration of the first drive wheel or the second drive wheel for which the first difference is greater than a preset first speed threshold, and determine that the first duration is greater than a preset first time threshold
  • the movable electronic device slips; when it is determined that the movable electronic device performs a curve movement, and it is determined that the second difference between the speed of the universal wheel and the theoretical speed at the current moment is greater than a second speed threshold, the record is recorded.
  • the first driving wheel be the left driving wheel K1 in the figure
  • the second driving wheel be the left driving wheel K2 in the figure.
  • the speed of the left driving wheel K1 is 50 cm / s
  • the speed of the right driving wheel K2 is 100 cm / s
  • the distance between each point and the O point Proportional relationship for example, the distance s1 from the front universal wheel K3 to the O point is 80cm, and the distance s3 from the right drive wheel K2 to the O point is 100cm.
  • a second duration is recorded in which the second difference is greater than a preset second speed threshold, and when the second duration is greater than a preset second time threshold , It is determined that the movable electronic device 4 has slipped.
  • a preset avoidance strategy is required to get rid of the slip state, for example, when the slip of the mobile electronic device is detected at any time, and the mobile electronic device performs a linear motion forward When the mobile electronic device is controlled to back K 1 cm and turn P 1 ° to avoid;
  • the movable electronic device When it is detected that the movable electronic device slips at any time, and the movable electronic device makes a curve movement backward, the movable electronic device is controlled to advance K4cm and turn P4 ° to avoid.
  • the movable electronic device includes a first driving wheel 51, a second driving wheel 52, a first encoder 53, and a second encoding.
  • the first encoder 53 is configured to detect the speed of the first driving wheel 51 in real time
  • the second encoder 54 is configured to detect the speed of the second driving wheel 52 in real time
  • the controller 56 is configured to execute the following program modules stored in the memory 57:
  • the universal wheel speed calculation module 571 is configured to obtain the rotation angle of the universal wheel 1 from the initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship, and pass the different times
  • the rotation angle of the universal wheel 1 relative to the initial state is calculated in real time by the rotation speed of the universal wheel 1; wherein the correspondence relationship is an analog signal value output by the linear Hall sensor 4 and the universal wheel 1 Correspondence between the rotation angles relative to the initial state;
  • a movement mode judging module 572 is configured to, when a difference between the speed of the first driving wheel 51 and the speed of the second driving wheel 52 is less than a preset first speed threshold, determine that the movable electronic device does Linear motion; when the difference between the speed of the first driving wheel 51 and the speed of the second driving wheel 52 is greater than a preset first speed threshold, determining that the movable electronic device performs a curved motion;
  • the first difference calculation module 573 calculates a first speed of the universal wheel 1 and a speed of the first drive wheel 51 or the second drive wheel 52 if it is determined that the movable electronic device performs linear motion. Difference
  • a first slip determination module 574 configured to record a first duration when the first difference is greater than a preset first speed threshold when the first difference is greater than a preset second speed threshold; When the first duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
  • a second difference calculation module 575 configured to calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel 51 and the speed of the second driving wheel 52 if it is determined that the movable electronic device performs a curved movement, Calculating a second difference between the speed of the universal wheel and the theoretical speed at the current moment;
  • a second slip determination module 576 configured to record a second duration when the second difference is greater than a second speed threshold when the second difference is greater than a second speed threshold; when the second duration is greater than a predetermined time When the second time threshold is set, it is determined that the movable electronic device is slipped.
  • controller 32 is further configured to execute the following program modules:
  • a first control module configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion forward The speed and direction of rotation so that the movable electronic device backs up by K 1 cm and turns P 1 ° to avoid;
  • a second control module configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion backward; The speed and direction of rotation so that the movable electronic device advances K 2 cm to avoid turning P 2 °;
  • a third control module configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any moment The speed and direction of rotation so that the movable electronic device moves backward K 3 cm and turns P 3 ° to avoid;
  • a fourth control module configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curved movement backward;
  • the speed and direction of rotation are such that the movable electronic device advances K 4 cm and turns P 4 ° to avoid.
  • FIG. 12 is a schematic flowchart of a path correction method according to Embodiment 6 of the present invention, including steps:
  • the path recording is based on an encoder
  • the mobile electronic device slips, if the path is still recorded with the speed and displacement recorded by the encoder, a positioning error will result. Therefore, during the time when the mobile electronic device continues to slip, stopping the speed and displacement recording path recorded by the encoder can effectively correct the path of the mobile electronic device, which is important for subsequent map construction and accurate positioning. effect.
  • An embodiment of the present invention also correspondingly provides a path correction device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • a path correction device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • the processor executes the computer program, Implement the path correction method described above.
  • An embodiment of the present invention also correspondingly provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, a device where the computer-readable storage medium is located is controlled to perform the above The path correction method described.
  • An embodiment of the present invention also correspondingly provides a terminal device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor.
  • the processor is implemented when the processor executes the computer program.
  • the universal wheel speed measurement method or slip detection method according to any one of the above.
  • the schematic diagram is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine some components or different components.
  • the terminal device may further include an input / output device, a network access device, and a bus.
  • the so-called processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.
  • the processor is a control center of a terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
  • the memory may be used to store the computer program and / or module, and the processor implements the terminal by running or executing the computer program and / or module stored in the memory, and calling data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store Data (such as audio data, phone book, etc.) created based on the use of the mobile phone.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, Smart Memory Card (SMC), and Secure Digital (SD) cards.
  • non-volatile memory such as hard disks, memory, plug-in hard disks, Smart Memory Card (SMC), and Secure Digital (SD) cards.
  • Flash card Flash card
  • flash memory at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the module / unit integrated in the terminal device when the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the present invention implements all or part of the processes in the method of the foregoing embodiment, and may also be completed by a computer program instructing related hardware.
  • the computer program may be stored in a computer-readable storage medium.
  • the computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signals telecommunication signals
  • software distribution media any entity or device capable of carrying the computer program code
  • a recording medium a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media.
  • An embodiment of the present invention also provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium includes a stored computer program, wherein the computer-readable storage medium is controlled when the computer program runs.
  • the device where it is located performs the universal wheel speed measurement method or slip detection method described in any one of the above.
  • the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical Units, which can be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

Abstract

Disclosed is an apparatus for measuring the speed of a universal wheel, wherein one end of a movable rod (3) is provided with a magnetic element (5), and the other end thereof is connected to a universal wheel (1) by means of a transmission mechanism (2); a linear Hall sensor (4) is located at one side of the movable rod (3) and faces the magnetic element (5); the movable rod (3) moves, with the rotation of the universal wheel (1), in a cyclic reciprocating motion by means of the transmission mechanism (2), so as to drive the magnetic element (5) to move in a cyclic reciprocating motion close to and away from the linear Hall sensor (4); the linear Hall sensor (4) continuously outputs analog signal values during the cyclic reciprocating motion of the magnetic element (5); and the angles of rotation of the universal wheel (1), with respect to an initial state at different times, are calculated based on the analog signal values output by the linear Hall sensor (4) in real time and the preset correspondence relationship to further calculate the speed of rotation of the universal wheel (1) in real time. The apparatus can acquire continuous signals and quantize the speed of the universal wheel (1), thereby facilitating the slip detection and route correction of a wheeled mobile robot. A method and system for measuring the speed of a universal wheel, a slip detection method, a portable electronic device, and a route correction method and apparatus are further provided.

Description

万向轮测速装置、方法及系统、打滑检测方法、可移动电子设备、路径纠正方法及装置Universal wheel speed measurement device, method and system, slip detection method, movable electronic equipment, path correction method and device 技术领域Technical field
本发明涉及机器人领域,尤其涉及万向轮测速装置、方法及系统、打滑检测方法、可移动电子设备、路径纠正方法及装置。The invention relates to the field of robots, and in particular, to a universal wheel speed measurement device, method and system, a slip detection method, a movable electronic device, a path correction method and device.
背景技术Background technique
随着社会的发展和科技的进步,智能家居越来越贴近人们的生活。目前,一种智能清洁机器人正在逐渐的进入普通家庭,代替人工进行地面清洁任务。这类的智能清洁机器人通常是由两个驱动轮和一个从动轮支撑,驱动轮由马达直接驱动,用以提供前进动力,从动轮一般包括万向轮和辅助轮,用以帮助保持平衡。With the development of society and technological progress, smart homes are getting closer to people's lives. At present, an intelligent cleaning robot is gradually entering ordinary households, instead of manually performing floor cleaning tasks. This type of intelligent cleaning robot is usually supported by two driving wheels and a driven wheel. The driving wheels are directly driven by the motor to provide forward power. The driven wheels generally include universal wheels and auxiliary wheels to help maintain balance.
然而,当地面情况比较复杂时,驱动轮常会出现打滑的现象,比如地面比较光滑或者机器人被搁浅,此时,虽然驱动轮仍继续转动,但机器人无法正常行驶,驱动轮的滚动的距离和机器人滑动距离并不一致。然而,此时机器人控制系统仍默认机器人处于正常工作状态,因此,机器人会继续工作直到电量低于某个值和没电时才停止工作,从而造成电能的大量浪费。However, when the ground conditions are more complicated, the drive wheels often slip. For example, the ground is relatively smooth or the robot is stranded. At this time, although the drive wheels continue to rotate, the robot cannot run normally. The rolling distance of the drive wheels and the robot The sliding distance is not consistent. However, at this time, the robot control system still assumes that the robot is in a normal working state. Therefore, the robot will continue to work until the power is lower than a certain value and when it is no power, it will stop working, causing a lot of waste of electrical energy.
针对这一问题,现有的清洁机器人的一般通过检测万向轮的运动状态对机器人的驱动轮是否打滑进行判断。In view of this problem, the existing cleaning robots generally determine whether the driving wheels of the robot are slipping by detecting the motion state of the universal wheel.
如专利申请号201510013410.4的一个中国发明专利申请,其公开了一种万向轮测速装置,其通过传动机构和万向轮连接,万向轮滚动过程中,通过万向轮上的凸轮带动联动盘上下运动,使联动盘上的凸缘触发所述检测线路板的开关开合(例如,触发红外信号的阻断和接通),当开关一直处于闭合或断开的状态时,则判断清洁机器人发生打滑。For example, a Chinese invention patent application with patent application number 201510013410.4 discloses a universal wheel speed measurement device, which is connected to the universal wheel through a transmission mechanism. During the rolling of the universal wheel, the linkage disk is driven by the cam on the universal wheel The up and down movement causes the flange on the linkage plate to trigger the opening and closing of the switch of the detection circuit board (for example, to trigger the blocking and turning on of the infrared signal). When the switch is always closed or opened, the cleaning robot is determined Slipping occurs.
在另一专利申请号为201510291805.0的中国发明专利申请中,其公开了一种扫地机器人的万向轮运动状态检测装置,其通过传动机构和万向轮连接,卡盘和传动机构连接,万向轮滚动时通过传动装置带动卡盘水平转动,卡盘上设有多组凸齿,凸齿两侧设有射线发射器和射线接收器,当射线接收器每隔一段时间接收到射线发射器发射出来的射线时,判断卡盘为转动状态,扫地机器人处于正常移动状态;当射线接收器收不到射线或一直收到射线时,判断卡盘为停止转动状态,扫地机器人在停止移动状态或发生空转。In another Chinese invention patent application with a patent application number of 201510291805.0, it discloses a universal wheel motion state detection device for a sweeping robot, which is connected to the universal wheel through a transmission mechanism, the chuck is connected to the transmission mechanism, and the universal When the wheel rolls, the chuck is rotated horizontally through a transmission device. The chuck is provided with a plurality of sets of convex teeth, and the ray transmitter and the ray receiver are provided on both sides of the tine. When the rays come out, it is judged that the chuck is in a rotating state, and the cleaning robot is in a normal moving state; when the ray receiver cannot receive rays or keeps receiving rays, it is judged that the chuck is in a stopped state, and the cleaning robot is in a stopped state or occurs. Idling.
现有技术通过上述方法检测机器人是否打滑存在以下缺陷:In the prior art, the following methods have been used to detect whether the robot is slipping:
(1)上述结构仅简单判断万向轮的是否运动状态,不能区分机器人的停止移动状态和驱动轮发生空转状态,不能有效检测机器人发生打滑现象;(1) The above structure simply judges whether the universal wheel is in motion or not, it cannot distinguish between the stopped movement state of the robot and the idling state of the driving wheel, and it cannot effectively detect the occurrence of slippage of the robot;
(2)上述结构仅能通过万向轮的停止运动状态判断检测机器人发生打滑现象,不能有效判别对万向轮的速度和驱动轮的速度不一致时的情况。这种情况发生时,机器人默认机器人处于正常工作状态,因此,机器人仍然以两个驱动轮的速度获取机器人的移动位移,造成误差;(2) The above structure can only detect the slip phenomenon of the robot by judging the stop motion state of the universal wheel, and cannot effectively determine the situation when the speed of the universal wheel and the speed of the driving wheel are inconsistent. When this happens, the robot assumes that the robot is in a normal working state. Therefore, the robot still obtains the movement displacement of the robot at the speed of two driving wheels, causing an error;
(3)上述结构根据万向轮的转动获得的是分立的信号,对于检测机器人发生打滑现象存在延迟现象,例如,当任意时刻发生打滑,采用申请号201510013410.4的方案进行打滑检测需等待较长时间(例如,设定的滚动轮的最长滚动周期)才能判定开关一直处于闭合或断开的状态时,从而判断机器人发生打滑并做出响应。(3) The above structure obtains a discrete signal based on the rotation of the universal wheel, and there is a delay in detecting the occurrence of slippage in the robot. For example, when slippage occurs at any time, using the scheme of application number 201510013410.4 to perform slippage detection requires a long time. (For example, the set longest scrolling period of the scroll wheel) to determine when the switch is always closed or open, thereby determining that the robot is slipping and responding.
发明内容Summary of the invention
本发明实施例的目的是提供一种万向轮测速装置、方法及系统、打滑检测方法、可移动电子设备、路径纠正方法及装置,能有效克服现有技术通过仅简单检测万向轮是否运动对机器人的驱动轮是否打滑进行判断存在的缺陷,能获得连续的信号并量化万向轮的速度,利于后续的应用。The purpose of the embodiments of the present invention is to provide a universal wheel speed measurement device, method and system, slip detection method, movable electronic equipment, path correction method and device, which can effectively overcome the existing technology by simply detecting whether the universal wheel is moving or not. Defects in judging whether the driving wheels of the robot are slipping, can obtain continuous signals and quantify the speed of the universal wheel, which is beneficial for subsequent applications.
为实现上述目的,本发明实施例提供了一种万向轮测速装置,包括万向轮、传动机构、活动杆和线性霍尔传感器,所述活动杆的一端设有磁性元件,所述活动杆的另一端通过传动机构与所述万向轮连接,所述线性霍尔传感器位于所述活动杆的一侧并与所述磁性元件相对;所述活动杆通过所述传动机构随所述万向轮的转动做往复循环运动,从而带动所述磁性元件做靠近和远离所述线性霍尔传感器的往复循环运动,所述线性霍尔传感器在所述磁性元件的往复循环运动中持续输出模拟信号值。In order to achieve the above object, an embodiment of the present invention provides a universal wheel speed measurement device, including a universal wheel, a transmission mechanism, a movable rod and a linear Hall sensor. One end of the movable rod is provided with a magnetic element, and the movable rod The other end is connected to the universal wheel through a transmission mechanism, and the linear Hall sensor is located on one side of the movable rod and is opposite to the magnetic element; the movable rod follows the universal wheel through the transmission mechanism. The rotation of the wheel makes a reciprocating circular motion, thereby driving the magnetic element to make a reciprocating circular motion toward and away from the linear Hall sensor, and the linear Hall sensor continuously outputs an analog signal value during the reciprocating circular motion of the magnetic element. .
与现有技术相比,本发明公开的万向轮测速装置通过在活动杆的一端设置磁性元件,另一端通过传动机构与所述万向轮连接,霍尔传感器位于所述活动杆的一侧并与所述磁性元件相对,所述活动杆通过所述传动机构随所述万向轮 的转动做往复循环运动,从而带动所述磁性元件做靠近和远离所述线性霍尔传感器的往复循环运动,所述线性霍尔传感器在所述磁性元件的往复循环运动中持续输出模拟信号值,能有效克服现有技术通过仅简单检测万向轮是否运动对机器人的驱动轮是否打滑进行判断存在的缺陷,能获得连续的信号并量化万向轮的速度,利于后续的应用。Compared with the prior art, the universal wheel speed measuring device disclosed in the present invention is provided with a magnetic element at one end of the movable rod, and the other end is connected to the universal wheel through a transmission mechanism. The Hall sensor is located on one side of the movable rod. Opposite to the magnetic element, the movable rod performs a reciprocating circular motion with the rotation of the universal wheel through the transmission mechanism, thereby driving the magnetic element to make a reciprocating circular motion toward and away from the linear Hall sensor. The linear Hall sensor continuously outputs an analog signal value during the reciprocating cyclic motion of the magnetic element, which can effectively overcome the existing defects of simply judging whether the universal wheel is moving to determine whether the driving wheel of the robot is slipping. It can obtain continuous signals and quantify the speed of the universal wheel, which is beneficial for subsequent applications.
作为上述方案的改进,所述传动机构包括第一摩擦轮和第二摩擦轮,所述第一摩擦轮和第二摩擦轮通过偏心轴对称连接,所述偏心轴与所述第一摩擦轮和第二摩擦轮的轴心均不对称,所述活动杆与所述偏心轴抵接,所述第一摩擦轮和第二摩擦轮分别与所述万向轮紧密抵接,所述万向轮在转动时驱动所述第一摩擦轮和第二摩擦轮滚动,从而带动所述活动杆随所述万向轮的转动做往复循环运动。As an improvement of the above solution, the transmission mechanism includes a first friction wheel and a second friction wheel, the first friction wheel and the second friction wheel are symmetrically connected through an eccentric shaft, and the eccentric shaft is in contact with the first friction wheel and The axis of the second friction wheel is asymmetric, the movable rod is in contact with the eccentric shaft, the first friction wheel and the second friction wheel are in close contact with the universal wheel, and the universal wheel During the rotation, the first friction wheel and the second friction wheel are driven to roll, thereby driving the movable rod to perform a reciprocating cycle motion with the rotation of the universal wheel.
作为上述方案的改进,所述装置还包括压紧件,所述压紧件用于压紧所述第一摩擦轮和第二摩擦轮以使得所述第一摩擦轮和第二摩擦轮分别与所述万向轮紧密抵接。As an improvement of the above solution, the device further includes a pressing member, which is used to press the first friction wheel and the second friction wheel so that the first friction wheel and the second friction wheel are respectively connected with the first friction wheel and the second friction wheel. The universal wheel abuts closely.
作为上述方案的改进,所述装置还包括安装座,所述安装座的下部设有容纳所述万向轮的凹槽,所述万向轮的轮轴固定卡接于所述凹槽的侧壁,所述安装座的上部设有容纳所述第一摩擦轮和第二摩擦轮的收容腔,所述凹槽上设有对称的第一开口和第二开口,所述第一摩擦轮穿过所述第一开口与所述万向轮紧密抵接,且所述第二摩擦轮穿过第二开口与所述万向轮紧密抵接。As an improvement of the above solution, the device further includes a mounting seat, and a lower part of the mounting seat is provided with a groove for accommodating the universal wheel, and an axle of the universal wheel is fixedly engaged with a side wall of the groove. The upper part of the mounting seat is provided with a receiving cavity for accommodating the first friction wheel and the second friction wheel, and the groove is provided with a symmetrical first opening and a second opening, and the first friction wheel passes through The first opening is in close contact with the universal wheel, and the second friction wheel is in close contact with the universal wheel through the second opening.
作为上述方案的改进,所述压紧件包括安装架和扭环,所述安装架包括第一连接臂、第二连接臂和横梁,所述第一连接臂的一端和第二连接臂的一端通过所述横梁连接,且所述扭环套接在所述横梁上,所述第一摩擦轮通过其上的转轴与所述第一连接臂的另一端可转动连接,所述第二摩擦轮通过其上的转轴与所述第二连接臂的另一端可转动连接。As an improvement of the above solution, the pressing member includes a mounting frame and a torsion ring, the mounting frame includes a first connection arm, a second connection arm, and a cross beam, one end of the first connection arm and one end of the second connection arm Connected by the crossbeam, and the torsion ring is sleeved on the crossbeam, the first friction wheel is rotatably connected to the other end of the first connection arm through a rotation shaft thereon, and the second friction wheel It is rotatably connected with the other end of the second connecting arm through a rotating shaft thereon.
作为上述方案的改进,所述收容腔内设有支架,所述支架包括依次连接的第一侧壁、第二侧壁和第三侧壁,所述第一侧壁和第三侧壁相对分布,所述横梁卡接于所述第一侧壁的卡槽和第三侧壁的卡槽,所述扭环分布于所述第一侧壁和第三侧壁之间,所述第一连接臂的一端设有挡块,所述扭环的一端与所述挡块抵接,所述扭环的另一端与所述第二侧壁的内表面抵接,以使得由所述扭环发生形变并产生恢复力压紧所述第一摩擦轮和第二摩擦轮与所述万向轮紧密抵接。As an improvement of the foregoing solution, a bracket is provided in the receiving cavity, and the bracket includes a first side wall, a second side wall, and a third side wall connected in sequence, and the first side wall and the third side wall are relatively distributed. The beam is engaged with the groove of the first side wall and the groove of the third side wall, and the torsion ring is distributed between the first side wall and the third side wall, and the first connection One end of the arm is provided with a stopper, one end of the torsion ring is in contact with the stopper, and the other end of the torsion ring is in contact with the inner surface of the second side wall, so that the torsion ring occurs. The first friction wheel and the second friction wheel are deformed and a restoring force is pressed to closely contact the universal wheel.
作为上述方案的改进,所述装置还包括上盖,所述上盖上设有压块,所述压块用于与所述支架配合以压紧所述扭环的另一端所述第二侧壁的内表面抵接。As an improvement to the above solution, the device further includes an upper cover provided with a pressing block, the pressing block is used to cooperate with the bracket to compress the other end of the torsion ring to the second side. The inner surface of the wall abuts.
作为上述方案的改进,所述安装座的收容腔内还设有止转柱,所述上盖上设有止转孔,所述止转柱插入所述止转孔以防止所述压块和所述支架的位置发生偏移。As an improvement of the above solution, a rotation prevention post is also provided in the receiving cavity of the mounting base, a rotation prevention hole is provided on the upper cover, and the rotation prevention post is inserted into the rotation prevention hole to prevent the pressure block and The position of the bracket is shifted.
作为上述方案的改进,所述第一摩擦轮和第二摩擦轮的滚动面均为锥齿面。As an improvement of the foregoing solution, the rolling surfaces of the first friction wheel and the second friction wheel are both conical surfaces.
作为上述方案的改进,所述上盖还设有第三开口和第四开口,所述第一摩擦轮的滚动面从所述第三开口伸出,所述第二摩擦轮的滚动面从所述第四开口伸出。As an improvement of the above solution, the upper cover is further provided with a third opening and a fourth opening, a rolling surface of the first friction wheel protrudes from the third opening, and a rolling surface of the second friction wheel is The fourth opening extends.
本发明实施例还提供了一种万向轮测速方法,适用于上述任一项所述的万向轮测速装置,包括步骤:An embodiment of the present invention further provides a universal wheel speed measurement method, which is applicable to the universal wheel speed measurement device according to any one of the foregoing, and includes steps:
根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;Obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear hall sensor in real time and a preset correspondence relationship; wherein the correspondence relationship is an analog output of the linear hall sensor A correspondence between a signal value and a rotation angle of the universal wheel relative to an initial state;
根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度。The rotation speed of the universal wheel is calculated in real time according to the rotation angle of the universal wheel relative to the initial state.
与现有技术相比,本发明公开的万向轮测速方法通过根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度,根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度,能有效解决现有技术不能有效量化万向轮速度的问题,实时计算万向轮的速度,为后续的打滑检测和路径纠正提供参考。Compared with the prior art, the universal wheel speed measurement method disclosed by the present invention obtains the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset corresponding relationship. The real-time calculation of the speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state can effectively solve the problem that the prior art cannot effectively quantify the speed of the universal wheel, and calculate the speed of the universal wheel in real time for the follow-up For skid detection and path correction.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下步骤获取:As an improvement of the above solution, the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following steps:
在所述万向轮以预设的角速度匀速运动的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;Acquiring a time-varying curve of an analog signal value output by the linear Hall sensor during the uniform motion of the universal wheel at a preset angular velocity;
截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。Intercept the curve of the first period of the analog signal value of the linear Hall sensor with time, and sample the curve of the first period at a preset frequency. According to the signal value and time of each sample, The correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:As an improvement of the above solution, the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:As an improvement of the above solution, the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
作为上述方案的改进,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:As an improvement of the above solution, the real-time calculation of the rotation speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
Figure PCTCN2018093467-appb-000001
Figure PCTCN2018093467-appb-000001
其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
作为上述方案的改进,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:As an improvement of the above solution, the real-time calculation of the rotation speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
其中,ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。Among them, ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period. ; Wherein T is far less than the rotation period of the universal wheel itself.
发明实施例还提供了一种万向轮测速系统,包括:An embodiment of the invention also provides a universal wheel speed measurement system, including:
上述任一项所述的万向轮测速装置,用于通过所述线性霍尔传感器输出模拟信号值;The universal wheel speed measurement device according to any one of the above, configured to output an analog signal value through the linear Hall sensor;
控制器,用于根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度,根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系。A controller configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the rotation of the universal wheel relative to the initial state The angle calculates the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state.
作为上述方案的改进,所述万向轮测速系统还包括信号采集器,用于在所述万向轮以预设的角速度匀速前进的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;As an improvement of the above solution, the universal wheel speed measurement system further includes a signal collector for obtaining an analog signal value output by the linear Hall sensor during the universal wheel is moving at a uniform angular velocity at a preset speed. Curve over time
所述控制器还用于截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。The controller is further configured to intercept a curve of a first period of an analog signal value of the linear Hall sensor over time, and sample the curve of the first period at a preset frequency. The corresponding relationship between the sampled signal value and time is used to obtain a list of the corresponding relationship between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; The angle of rotation is equal to the product of the angular velocity and time.
作为上述方案的改进,所述控制器通过以下公式获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表:As an improvement of the foregoing solution, the controller obtains a correspondence list between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state by the following formula:
θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
作为上述方案的改进,所述控制器通过以下公式获取所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系:As an improvement of the above solution, the controller obtains the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state by the following formula:
θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
作为上述方案的改进,所述控制器根据以下公式获取所述万向轮相对初始状态的转动角度实时计算所述万向轮转 动的速度通过:As an improvement of the above solution, the controller obtains the rotation angle of the universal wheel relative to the initial state in real time to calculate the speed of the universal wheel rotation according to the following formula:
Figure PCTCN2018093467-appb-000002
Figure PCTCN2018093467-appb-000002
其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
所述控制器根据以下公式获取所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过:The controller obtains the rotation angle of the universal wheel relative to the initial state according to the following formula to calculate the rotation speed of the universal wheel in real time:
ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
本发明实施例还提供了一种打滑检测方法,适用于一可移动电子设备,所述可移动电子设备包括第一驱动轮、第二驱动轮和上述任一项所述的万向轮测速装置,包括步骤:An embodiment of the present invention also provides a slip detection method, which is applicable to a movable electronic device. The movable electronic device includes a first driving wheel, a second driving wheel, and a universal wheel speed measurement device according to any one of the foregoing. , Including steps:
根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;Obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear hall sensor in real time and a preset correspondence relationship; wherein the correspondence relationship is an analog output of the linear hall sensor A correspondence between a signal value and a rotation angle of the universal wheel relative to an initial state;
根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;Calculate the rotation speed of the universal wheel in real time according to the rotation angle of the universal wheel relative to the initial state;
当所述第一驱动轮的速度和所述第二驱动轮的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮的速度和所述第二驱动轮的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;When the difference between the speed of the first driving wheel and the speed of the second driving wheel is less than a preset first speed threshold, it is determined that the movable electronic device performs linear motion; when the first driving wheel When the difference between the speed of the second driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值;If it is determined that the movable electronic device performs linear motion, calculate a first difference between the speed of the universal wheel and the speed of the first driving wheel or the second driving wheel at the current moment;
当所述第一差值大于预设的第二速度阈值时,记录所述第一差值大于预设的第一速度阈值的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;When the first difference is greater than a preset second speed threshold, recording a first duration where the first difference is greater than a preset first speed threshold, and when the first duration is greater than a preset first At a time threshold, determining that the movable electronic device is slipping;
若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮的速度和第二驱动轮的速度计算所述万向轮的理论速度,计算当前时刻所述万向轮的速度和所述理论速度的第二差值;If it is determined that the movable electronic device performs a curve motion, calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel and the speed of the second driving wheel, and calculate the speed and the speed of the universal wheel at the current moment. The second difference of the theoretical speed;
当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。第一驱动轮或者第二驱动轮第一驱动轮或者第二驱动轮When the second difference is greater than the second speed threshold, record a second duration where the second difference is greater than the second speed threshold; when the second duration is greater than a preset second time threshold, then It is determined that the movable electronic device is slipped. First or second drive wheel First or second drive wheel
与现有技术相比,本发明公开的打滑检测方法通过实时获取变化的万向轮的速度,并根据可移动电子设备不同的运动状态将万向轮的速度与第一驱动轮或者第二驱动轮的速度或参考速度进行比较,能有效检测驱动轮滚动的距离和可移动电子设备滑动的距离不一致的情况,功能更完善,更利于推广使用。Compared with the prior art, the slip detection method disclosed in the present invention obtains the speed of the universal wheel by changing in real time, and compares the speed of the universal wheel with the first driving wheel or the second driving according to different motion states of the movable electronic device. The comparison of the wheel speed or the reference speed can effectively detect the inconsistency between the driving wheel rolling distance and the movable electronic device sliding distance. The function is more complete and more conducive to popularization.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下步骤获取:As an improvement of the above solution, the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following steps:
在所述万向轮以预设的角速度匀速运动的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;Acquiring a time-varying curve of an analog signal value output by the linear Hall sensor during the uniform motion of the universal wheel at a preset angular velocity;
截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。Intercept the curve of the first period of the analog signal value of the linear Hall sensor with time, and sample the curve of the first period at a preset frequency. According to the signal value and time of each sample, The correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:As an improvement of the above solution, the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
作为上述方案的改进,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关 系通过以下公式获取:As an improvement of the above solution, the corresponding relationship between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
作为上述方案的改进,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:As an improvement of the above solution, the real-time calculation of the rotation speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
Figure PCTCN2018093467-appb-000003
Figure PCTCN2018093467-appb-000003
其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
作为上述方案的改进,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:As an improvement of the above solution, the real-time calculation of the rotation speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
作为上述方案的改进,所述方法还包括步骤:As an improvement of the above solution, the method further includes the steps:
当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述可移动电子设备后退K 1cm后转弯P 1°避开; When the mobile electronic device is detected to slip at any time, and the mobile electronic device performs a linear motion forward, control the mobile electronic device to back K 1 cm and turn P 1 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述可移动电子设备前进K 2cm后转弯P 2°避开; When slippage is detected at any time of the movable electronic device, and the movable electronic device performs a linear motion backward, control the movable electronic device to advance K 2 cm and turn P 2 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述可移动电子设备后退K 3cm后转弯P 3°避开; When slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curve movement forward, control the movable electronic device to back K 3 cm and turn P 3 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述可移动电子设备前进K 4cm后转弯P 4°避开。 When it is detected that the movable electronic device slips at any time, and the movable electronic device makes a curve movement backward, control the movable electronic device to advance K 4 cm and turn P 4 ° to avoid.
本发明实施例还提供了一种可移动电子设备,所述可移动电子设备包括第一驱动轮、第二驱动轮、第一编码器、第二编码器、权利要求1-10任一项所述的万向轮测速装置、控制器和存储器;其中,An embodiment of the present invention further provides a movable electronic device, where the movable electronic device includes a first driving wheel, a second driving wheel, a first encoder, a second encoder, and any of claims 1-10. The universal wheel speed measuring device, controller and memory;
所述第一编码器,用于实时检测所述第一驱动轮的速度;The first encoder is configured to detect the speed of the first driving wheel in real time;
所述第二编码器,用于实时检测所述第二驱动轮的速度;The second encoder is used to detect the speed of the second driving wheel in real time;
所述控制器,用于执行存储在存储器中的以下程序模块:The controller is configured to execute the following program modules stored in the memory:
万向轮速度计算模块,用于根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度,并根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;The universal wheel speed calculation module is configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the universal wheel The rotation angle relative to the initial state is used to calculate the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state. ;
运动方式判断模块,用于当所述第一驱动轮的速度和所述第二驱动轮的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮的速度和所述第二驱动轮的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;A movement mode judging module, configured to determine that the movable electronic device performs a linear motion when a difference between a speed of the first driving wheel and a speed of the second driving wheel is less than a preset first speed threshold; When the difference between the speed of the first driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
第一差值计算模块,若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值;A first difference calculating module, if it is determined that the movable electronic device performs linear motion, calculating a first difference between the speed of the universal wheel and the speed of the first driving wheel or the second driving wheel at the current moment;
第一打滑判定模块,用于当所述第一差值大于预设的第二速度阈值时,记录所述第一差值大于预设的第一速度阈值的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;A first slip determination module, configured to record a first duration when the first difference is greater than a preset first speed threshold when the first difference is greater than a preset second speed threshold; When a duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
第二差值计算模块,用于若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮的速度和第二驱动轮的速度计算所述万向轮的理论速度,计算当前时刻所述万向轮的速度和所述理论速度的第二差值;A second difference calculation module, configured to calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel and the speed of the second driving wheel if it is determined that the movable electronic device performs a curved movement, and calculate the current time A second difference between the speed of the universal wheel and the theoretical speed;
第二打滑判定模块,用于当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。第一驱动轮或者第二 驱动轮A second slip determination module, configured to record a second duration when the second difference is greater than a second speed threshold when the second difference is greater than a second speed threshold; when the second duration is greater than a preset A second time threshold, it is determined that the movable electronic device is slipping. First drive wheel or second drive wheel
作为上述方案的改进,所述控制器还用于执行存储在存储器中的以下程序模块::As an improvement of the foregoing solution, the controller is further configured to execute the following program modules stored in the memory:
第一控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备后退K 1cm后转弯P 1°避开; A first control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion forward And turning direction so that the movable electronic device backs up by K 1 cm and turns P 1 ° to avoid;
第二控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备前进K 2cm后转弯P 2°避开; A second control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage is detected at the movable electronic device and the movable electronic device performs a linear motion backward And the direction of rotation so that the movable electronic device advances K 2 cm and turns P 2 ° to avoid;
第三控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备后退K 3cm后转弯P 3°避开; A third control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when the movable electronic device detects slippage at any time And turning direction to make the movable electronic device back K 3 cm and turn P 3 ° to avoid;
第四控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备前进K 4cm后转弯P 4°避开。 A fourth control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curved movement backward And turn the direction so that the movable electronic device advances K 4 cm and turns P 4 ° to avoid.
本发明实施例还提供了一种路径纠正方法,包括步骤:An embodiment of the present invention further provides a path correction method, including steps:
采用上述任意一项所述的打滑检测方法判断所述可移动电子设备是否发生打滑;Adopting the slip detection method according to any one of the above to determine whether the movable electronic device has slipped;
当任意时刻判断所述可移动电子设备发生打滑时,记录所述可移动电子设备持续打滑的时间;When it is determined at any time that the mobile electronic device is slipping, record the time during which the mobile electronic device continues to slip;
根据所述可移动电子设备持续打滑的时间对所述可移动电子设备的路径进行纠正。Correct the path of the mobile electronic device according to the time during which the mobile electronic device continues to slip.
本发明实施例还提供了一种路径纠正装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的路径纠正方法。An embodiment of the present invention further provides a path correcting device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. The processor is implemented when the processor executes the computer program. Path correction method as described above.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上所述的路径纠正方法。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute as described above. The path correction method described above.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明实施例1中一种万向轮测速装置的分解示意图。FIG. 1 is an exploded schematic view of a universal wheel speed measurement device in Embodiment 1 of the present invention.
图2是本发明实施例1中安装座的俯视图。FIG. 2 is a plan view of a mounting base in Embodiment 1 of the present invention.
图3是本发明实施例1中安装座的另一俯视图。FIG. 3 is another plan view of the mounting base in Embodiment 1 of the present invention.
图4是本发明实施例1中万向轮测速装置的纵剖面图。Fig. 4 is a longitudinal sectional view of a universal wheel speed measuring device in Embodiment 1 of the present invention.
图5是本发明实施例1中万向轮测速装置的立体图。FIG. 5 is a perspective view of a universal wheel speed measurement device in Embodiment 1 of the present invention.
图6是本发明实施例2中一种万向轮测速方法的流程示意图。6 is a schematic flowchart of a universal wheel speed measurement method in Embodiment 2 of the present invention.
图7是本发明实施例2中万向轮测速的过程示意图。7 is a schematic diagram of a universal wheel speed measurement process in Embodiment 2 of the present invention.
图8是本发明实施例3中一种万向轮测速系统的结构示意图。8 is a schematic structural diagram of a universal wheel speed measurement system in Embodiment 3 of the present invention.
图9是本发明实施例4中一种打滑检测方法的流程示意图。FIG. 9 is a schematic flowchart of a slip detection method in Embodiment 4 of the present invention.
图10是本发明实施例3中一种检测打滑的过程示意图。FIG. 10 is a schematic diagram of a slip detection process in Embodiment 3 of the present invention.
图11是本发明实施例5中一种可移动电子设备的结构示意图。FIG. 11 is a schematic structural diagram of a movable electronic device in Embodiment 5 of the present invention.
图12是本发明实施例6中一种路径纠正方法的流程示意图。FIG. 12 is a schematic flowchart of a path correction method in Embodiment 6 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1至图5,本发明实施例提供的万向轮测速装置包括万向轮1、传动机构2、活动杆3和线性霍尔传感器4,所述活动杆3的一端设有磁性元件5,所述活动杆3的另一端通过传动机构2与所述万向轮1连接,所述线性霍尔传感器4位于所述活动杆3的一侧并与所述磁性元件5相对;所述活动杆3通过所述传动机构2随所述万向轮1的转动做往复循环运动,从而带动所述磁性元件5做靠近和3远离所述线性霍尔传感器4的往复循环运动,所述线性霍尔传感器4在所述磁性元件5的往复循环运动中持续输出模拟信号值。1 to 5, a universal wheel speed measurement device provided by an embodiment of the present invention includes a universal wheel 1, a transmission mechanism 2, a movable rod 3, and a linear Hall sensor 4. One end of the movable rod 3 is provided with a magnetic element 5. , The other end of the movable rod 3 is connected to the universal wheel 1 through a transmission mechanism 2, and the linear Hall sensor 4 is located on one side of the movable rod 3 and is opposite to the magnetic element 5; The rod 3 makes a reciprocating circular motion with the rotation of the universal wheel 1 through the transmission mechanism 2, thereby driving the magnetic element 5 to make a reciprocating circular motion close to and 3 away from the linear Hall sensor 4. The sensor 4 continuously outputs an analog signal value during the reciprocating cycle of the magnetic element 5.
其中,所述磁性元件5包括磁铁等,需要说明的是,只要是能产生磁场的元件均在本发明的保护范围之内。The magnetic element 5 includes a magnet and the like. It should be noted that, as long as the element capable of generating a magnetic field is within the protection scope of the present invention.
基于上述方案,所述万向轮1能带动磁性元件5做靠近和远离所述线性霍尔传感器4的往复循环运动,从而所述 线性霍尔传感器4在所述磁性元件5的往复循环运动中持续输出模拟信号值,该模拟信号值随时间的变化而连续变化,从而可实时计算滚动轮的速度,方便轮式移动机器人的打滑检测以及路径矫正。Based on the above solution, the universal wheel 1 can drive the magnetic element 5 to make a reciprocating cyclic motion toward and away from the linear Hall sensor 4, so that the linear Hall sensor 4 is in a reciprocating cyclic motion of the magnetic element 5. The analog signal value is continuously output, and the analog signal value continuously changes with time, so that the speed of the scroll wheel can be calculated in real time, which facilitates the slip detection and path correction of the wheeled mobile robot.
如图1所示,所述万向轮测速装置还包括安装座6、上盖7和压紧件,所述传动机构2包括第一摩擦轮21和第二摩擦轮22,所述第一摩擦轮21和第二摩擦轮22通过偏心轴23对称连接,所述偏心轴23与所述第一摩擦轮21和第二摩擦轮22的轴心均不对称,所述活动杆3与所述偏心轴23抵接,所述第一摩擦轮21和第二摩擦轮22分别与所述万向轮1的外表面紧密抵接,所述万向轮1在转动时驱动所述第一摩擦轮21和第二摩擦轮22滚动,从而带动所述活动杆3随所述万向轮1的转动做往复循环运动。如图1所示,所述万向轮1为中间宽、两边窄的鼓形轮,所述第一摩擦轮21和第二摩擦轮22优选为具有锥齿面的滚动轮以与鼓状的万向轮1配合,增大万向轮1和第一摩擦轮21、第二摩擦轮22的接触面积,从而有效带动第一摩擦轮21和第二摩擦轮22滚动。需要说明的是,只要能使第一摩擦轮21和第二摩擦轮22与万向轮1同步转动的表面均在本发明的保护范围内。As shown in FIG. 1, the universal wheel speed measuring device further includes a mounting base 6, an upper cover 7 and a pressing member. The transmission mechanism 2 includes a first friction wheel 21 and a second friction wheel 22. The wheel 21 and the second friction wheel 22 are symmetrically connected through an eccentric shaft 23, and the axes of the eccentric shaft 23 and the first friction wheel 21 and the second friction wheel 22 are asymmetric, and the movable rod 3 and the eccentric shaft The shaft 23 abuts, the first friction wheel 21 and the second friction wheel 22 are in close contact with the outer surface of the universal wheel 1, respectively, and the universal wheel 1 drives the first friction wheel 21 when rotating The second friction wheel 22 rolls, thereby driving the movable rod 3 to perform a reciprocating cycle motion with the rotation of the universal wheel 1. As shown in FIG. 1, the universal wheel 1 is a drum wheel with a wide middle and narrow sides, and the first friction wheel 21 and the second friction wheel 22 are preferably rolling wheels having a tapered tooth surface to communicate with the drum. The universal wheel 1 cooperates to increase the contact area between the universal wheel 1 and the first friction wheel 21 and the second friction wheel 22, thereby effectively driving the first friction wheel 21 and the second friction wheel 22 to roll. It should be noted that as long as the surfaces capable of synchronously rotating the first friction wheel 21 and the second friction wheel 22 with the universal wheel 1 are within the protection scope of the present invention.
如图2至图3所示所示,所述安装座6的下部设有容纳所述万向轮1的凹槽61,所述万向轮1的轮轴固定卡接于所述凹槽61的侧壁,所述安装座6的上部设有容纳所述第一摩擦轮21和第二摩擦轮22的收容腔62,所述凹槽61上设有对称的第一开口63和第二开口64,所述第一摩擦轮21穿过所述第一开口63与所述万向轮1紧密抵接,且所述第二摩擦轮22穿过第二开口64与所述万向轮1紧密抵接。所述收容腔62内设有支架,所述支架包括依次连接的第一侧壁621、第二侧壁622和第三侧壁623,所述第一侧壁621和第三侧壁623相对分布。As shown in FIG. 2 to FIG. 3, a lower part of the mounting seat 6 is provided with a groove 61 for accommodating the universal wheel 1, and an axle of the universal wheel 1 is fixedly engaged with the groove 61. A side wall, an upper portion of the mounting seat 6 is provided with a receiving cavity 62 for receiving the first friction wheel 21 and the second friction wheel 22, and the groove 61 is provided with a symmetrical first opening 63 and a second opening 64 The first friction wheel 21 is in close contact with the universal wheel 1 through the first opening 63, and the second friction wheel 22 is in close contact with the universal wheel 1 through the second opening 64. Pick up. A bracket is provided in the receiving cavity 62, and the bracket includes a first side wall 621, a second side wall 622, and a third side wall 623 connected in this order, and the first side wall 621 and the third side wall 623 are relatively distributed. .
参见图1至图4,所述压紧件用于压紧所述第一摩擦轮21和第二摩擦轮22以使得所述第一摩擦轮21和第二摩擦轮22分别与所述万向轮1紧密抵接。所述压紧件包括安装架81和扭环82,所述安装架81包括第一连接臂811、第二连接臂812和横梁813,所述第一连接臂811的一端和第二连接臂812的一端通过所述横梁813连接,且所述扭环82套接在所述横梁813上,所述第一摩擦轮21通过其上的转轴与所述第一连接臂811的另一端可转动连接,所述第二摩擦轮22通过其上的转轴与所述第二连接臂812的另一端可转动连接。所述横梁813卡接于所述第一侧壁621的卡槽和第三侧壁623的卡槽,所述扭环82分布于所述第一侧壁621和第三侧壁623之间,所述第一连接臂811的一端设有挡块,所述扭环82的一端与所述挡块抵接,所述扭环82的另一端与所述第二侧壁622的内表面抵接,从而使得所述扭环82发生形变并产生恢复力压紧所述第一摩擦轮21和第二摩擦轮22与所述万向轮1紧密抵接。Referring to FIG. 1 to FIG. 4, the pressing member is used for pressing the first friction wheel 21 and the second friction wheel 22 such that the first friction wheel 21 and the second friction wheel 22 are respectively connected to the universal joint. Wheel 1 abuts tightly. The pressing member includes a mounting bracket 81 and a torsion ring 82. The mounting bracket 81 includes a first connecting arm 811, a second connecting arm 812, and a cross beam 813. One end of the first connecting arm 811 and the second connecting arm 812. One end is connected by the cross beam 813, and the torsion ring 82 is sleeved on the cross beam 813, and the first friction wheel 21 is rotatably connected with the other end of the first connecting arm 811 through a rotation shaft thereon. The second friction wheel 22 is rotatably connected to the other end of the second connecting arm 812 through a rotating shaft thereon. The beam 813 is engaged with the groove of the first side wall 621 and the groove of the third side wall 623, and the twist ring 82 is distributed between the first side wall 621 and the third side wall 623. One end of the first connecting arm 811 is provided with a stopper, one end of the torsion ring 82 is in contact with the stopper, and the other end of the torsion ring 82 is in contact with the inner surface of the second side wall 622. Therefore, the torsion ring 82 is deformed and a restoring force is generated to compress the first friction wheel 21 and the second friction wheel 22 to closely contact the universal wheel 1.
如图4所示,所述上盖7上设有压块71,所述压块71用于与所述支架配合以压紧所述扭环82的另一端所述第二侧壁622抵接。所述安装座6的收容腔62内还设有止转柱65,所述上盖7上设有止转孔72,所述止转柱65插入所述止转孔72中,可以有效防止所述压块71和所述支架的位置发生偏移,使扭环82保持形变状态从而产生恢复力压紧第一摩擦轮21和第二摩擦轮22。As shown in FIG. 4, the upper cover 7 is provided with a pressing block 71, which is used to cooperate with the bracket to press the other end of the torsion ring 82 and the second side wall 622 abuts. . An anti-rotation column 65 is also provided in the receiving cavity 62 of the mounting base 6, and an anti-rotation hole 72 is provided on the upper cover 7. The anti-rotation column 65 is inserted into the anti-rotation hole 72, which can effectively prevent all The positions of the pressing block 71 and the bracket are shifted, so that the torsion ring 82 is maintained in a deformed state to generate a restoring force to press the first friction wheel 21 and the second friction wheel 22.
当所述上盖7与安装座6配合安装后,所述止转柱65插入所述止转孔72中,所述压块71能与所述支架配合以压紧所述扭环82的另一端所述第二侧壁622抵接,从而所述扭环82发生形变并产生恢复力压紧所述第一摩擦轮21和第二摩擦轮22与所述万向轮1紧密抵接。在万向轮1发生转动时,由于万向轮1和第一摩擦轮21、第二摩擦轮22之间的表面摩擦力会带动第一摩擦轮21和第二摩擦轮22同步转动。而偏心轴23与所述第一摩擦轮21和第二摩擦轮22的轴心均不对称,因此,偏心轴23随第一摩擦轮21和第二摩擦轮22的转动而绕两者的轴心连线做圆周运动,进而带动与其抵接的活动杆3做往复循环运动,活动杆3的往复循环运动会带动设于其一端的磁性元件5做靠近和远离所述线性霍尔传感器4的往复循环运动,所述线性霍尔传感器4感应到的磁场强度在逐渐变强和逐渐变弱之间循环变化,所述线性霍尔传感器4在所述磁性元件5的往复循环运动中持续输出连续变化的模拟信号值。而万向轮1停止转动时,活动杆3保持不动,设于其一端的磁性元件5也保持不动,所述线性霍尔传感器4感应到的磁场强度保持不变,则所述线性霍尔传感器4输出不变的模拟信号值。根据输出的模拟信号值和时间的变化曲线,可分析其斜率获得万向轮1的实时速度,有利于后续的打滑检测以及路径矫正。When the upper cover 7 is installed in cooperation with the mounting base 6, the rotation prevention column 65 is inserted into the rotation prevention hole 72, and the pressing block 71 can cooperate with the bracket to compress the other of the torsion ring 82. One end of the second side wall 622 abuts, so that the torsion ring 82 is deformed and a restoring force is generated to compress the first friction wheel 21 and the second friction wheel 22 to closely abut the universal wheel 1. When the universal wheel 1 rotates, the surface friction force between the universal wheel 1 and the first friction wheel 21 and the second friction wheel 22 will drive the first friction wheel 21 and the second friction wheel 22 to rotate synchronously. The eccentric shaft 23 is not symmetrical with the centers of the first friction wheel 21 and the second friction wheel 22. Therefore, the eccentric shaft 23 is rotated around the axes of the first friction wheel 21 and the second friction wheel 22 as they rotate. The cardiac connection makes a circular motion, which in turn drives the movable rod 3 abutting it to make a reciprocating circular motion. The reciprocating circular motion of the movable rod 3 will drive the magnetic element 5 provided at one end to reciprocate toward and away from the linear Hall sensor 4 Cyclic motion, the magnetic field intensity sensed by the linear Hall sensor 4 is cyclically changed between gradually becoming stronger and weaker, and the linear Hall sensor 4 continuously outputs continuous changes during the reciprocating cyclic motion of the magnetic element 5 Analog signal value. When the universal wheel 1 stops rotating, the movable rod 3 remains motionless, and the magnetic element 5 provided at one end thereof also remains motionless. The intensity of the magnetic field sensed by the linear Hall sensor 4 remains unchanged. The sensor 4 outputs a constant analog signal value. According to the output analog signal value and the time change curve, the slope can be analyzed to obtain the real-time speed of the universal wheel 1, which is conducive to subsequent slip detection and path correction.
如图5所示,所述上盖7还设有第三开口73和第四开口74,所述第一摩擦轮21的滚动面从所述第三开口73伸出,所述第二摩擦轮22的滚动面从所述第四开口74伸出,从而可压缩整个装置的体积,使所述收容腔62内的部件布局更紧凑。所述上盖7还设有导向套,活动杆3的一端从所述导向套中伸出,该设置能够使活动杆3保持平衡,不会在进行往复循环运动中发生倾倒。As shown in FIG. 5, the upper cover 7 is further provided with a third opening 73 and a fourth opening 74, and the rolling surface of the first friction wheel 21 protrudes from the third opening 73, and the second friction wheel The rolling surface of 22 protrudes from the fourth opening 74, so that the volume of the entire device can be compressed, and the layout of the components in the receiving cavity 62 is more compact. The upper cover 7 is also provided with a guide sleeve, and one end of the movable rod 3 protrudes from the guide sleeve. This setting can keep the movable rod 3 in balance and will not fall over during reciprocating circular motion.
参见图6,为本发明实施例2提供的一种万向轮测速方法的流程示意图,适用于以上的万向轮测速装置,包括步骤:6 is a schematic flowchart of a universal wheel speed measurement method provided in Embodiment 2 of the present invention, which is applicable to the above universal wheel speed measurement device, and includes steps:
S21、根据所述线性霍尔传感器4实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮1相对初始 状态的转动角度;其中,所述对应关系为所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对初始状态的转动角度的对应关系;S21. Obtain a rotation angle of the universal wheel 1 relative to an initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship; wherein the correspondence relationship is the linear Hall The corresponding relationship between the analog signal value output by the sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state;
S22、通过不同时刻所述万向轮1相对初始状态的转动角度实时计算所述万向轮1转动的速度。S22. Calculate the rotation speed of the universal wheel 1 in real time through the rotation angle of the universal wheel 1 relative to the initial state at different times.
具体的,当输出的是模拟信号值为电压值时,则可通过根据输出的模拟信号值和时间的变化曲线,可分析其斜率获得万向轮1的实时速度。在实际应用中,可通过以下公式计算万向轮1的角速度:Specifically, when the output analog signal value is a voltage value, the real-time speed of the universal wheel 1 can be obtained by analyzing the slope of the output analog signal value and time, and analyzing its slope. In practical applications, the angular velocity of the universal wheel 1 can be calculated by the following formula:
Figure PCTCN2018093467-appb-000004
Figure PCTCN2018093467-appb-000004
其中,U为所述线性霍尔传感器4实时输出的电压值,t为时刻,θ为所述万向轮1相对初始状态的转动角度,f(θ)为所述万向轮1相对初始状态的转动角度和所述线性霍尔传感器4实时输出的电压值的函数关系,w为万向轮1的角速度。Where U is the voltage value output by the linear Hall sensor 4 in real time, t is the time, θ is the rotation angle of the universal wheel 1 relative to the initial state, and f (θ) is the relative initial state of the universal wheel 1 The relationship between the rotation angle and the voltage value output by the linear Hall sensor 4 in real time, w is the angular velocity of the universal wheel 1.
除此之外,还可通过以下公式获取计算所述万向轮转动的速度:In addition, the rotation speed of the universal wheel can also be obtained by the following formula:
ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
其中,ω为万向轮1的角速度,T为检测万向轮1的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度。需要注意的是,T远少于所述万向轮1本身的转动周期(例如,T<t/100,t为所述万向轮1的转动周期),否则计算得到的角速度会有较大误差。Among them, ω is the angular velocity of the universal wheel 1, T is the period for detecting the rotation angle of the universal wheel 1, θ1 is the rotational angle of the universal wheel detected in the previous period, and θ2 is the universal wheel detected in the current period. Rotation angle. It should be noted that T is far less than the rotation period of the universal wheel 1 itself (for example, T <t / 100, t is the rotation period of the universal wheel 1), otherwise the calculated angular velocity will be larger error.
可以理解的,通过万向轮1的角速度可计算万向轮1的线速度,具体公式为:It can be understood that the linear velocity of the universal wheel 1 can be calculated by the angular velocity of the universal wheel 1, the specific formula is:
v=wr          公式(2)v = wr Equation (2)
其中,v为万向轮1的角速度,r为所述万向轮1的半径。Where v is the angular velocity of the universal wheel 1 and r is the radius of the universal wheel 1.
优选地,所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系通过标定法获取,具体为:Preferably, the corresponding relationship between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state is obtained by a calibration method, specifically:
在所述万向轮1以预设的角速度匀速运动的过程中,获取所述线性霍尔传感器4输出的模拟信号值随时间变化曲线;Obtaining a time-varying curve of the analog signal value output by the linear Hall sensor 4 during the uniform movement of the universal wheel 1 at a preset angular velocity;
截取所述线性霍尔传感器4的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器4的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系列表;其中,所述万向轮1相对于初始状态的转动角度等于所述角速度和时间的乘积。Intercept the curve of the first cycle of the analog signal value of the linear Hall sensor 4 with time, sample the curve of the first cycle at a preset frequency, and according to the signal value and time of each sample Corresponding relationship between the analog signal value of the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state; wherein the rotation angle of the universal wheel 1 relative to the initial state is equal to The product of said angular velocity and time.
在另一优选实施例中,所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系通过公式转换法获取,如图7所示,当万向轮1发生转动,带动传动机构旋转,设时间Δt内磁性元件5相对于初始位置的位移d,所述线性霍尔传感器44感应到的磁场强度B与磁性元件5相对于初始位置的位移d的线性函数关系为:In another preferred embodiment, the corresponding relationship between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 with respect to the initial state is obtained by a formula conversion method, as shown in FIG. 7, The universal wheel 1 rotates, which drives the transmission mechanism to rotate. Set the displacement d of the magnetic element 5 relative to the initial position within the time Δt. The magnetic field intensity B sensed by the linear Hall sensor 44 and the displacement of the magnetic element 5 relative to the initial position are set. The linear function relationship of d is:
d=aB+b     公式(3)d = aB + b Equation (3)
其中,a和b为调整参数。如图7所示,设在时间Δt内第一摩擦轮21/第二摩擦轮22转动的角度(即万向轮1转动角度)为θ,则可得关系式为:Among them, a and b are adjustment parameters. As shown in FIG. 7, if the angle at which the first friction wheel 21 / the second friction wheel 22 rotates within the time Δt (that is, the rotation angle of the universal wheel 1) is θ, then the relationship can be obtained as:
θ=α+β       公式(4)θ = α + β Equation (4)
sinβ=d/r     公式(5)sinβ = d / r Equation (5)
结合根据公式(3)、公式(4)和公式(5)可得:According to formula (3), formula (4) and formula (5), we can get:
θ=sin -1[(aB+b)/r]+α   公式(6) θ = sin -1 [(aB + b) / r] + α Formula (6)
其中,B为所述线性霍尔传感器4感应到磁铁的模拟信号值,a和b为调整参数,r为所述第一摩擦轮21/第二摩擦轮22的轴心与所述偏心轴23的轴心所在的直线与活动杆3底表面的交点到所述万向轮1的轴心的距离;在实际应用中,r可粗略估计为所述偏心轴23的半径和所述第一摩擦轮21/第二摩擦轮22的轴心到所述偏心轴23的轴心的距离的和。一般来说,B为所述线性霍尔传感器44感应到的电感强度值。Among them, B is an analog signal value of the magnet sensed by the linear Hall sensor 4, a and b are adjustment parameters, and r is an axial center of the first friction wheel 21 / second friction wheel 22 and the eccentric shaft 23 The distance from the intersection of the straight line where the axis of the axis lies with the bottom surface of the movable rod 3 to the axis of the universal wheel 1; in practical applications, r can be roughly estimated as the radius of the eccentric shaft 23 and the first friction The sum of the distances from the axial center of the wheel 21 / the second friction wheel 22 to the axial center of the eccentric shaft 23. Generally, B is an inductance intensity value sensed by the linear Hall sensor 44.
除了以上公开的方式外,还可根据以下公式获取所述线性霍尔传感器输出的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系:In addition to the methods disclosed above, the corresponding relationship between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel 1 relative to the initial state can be obtained according to the following formula:
θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]} 公式(7) θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]} Formula (7)
其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
需要说明的是,万向轮1的转动会带动所述磁性元件5周期性的上下移动,所述线性霍尔传感器4可检测出磁场大小随所述磁性元件5的移动而变化,则所述线性霍尔传感器4检测到周期性变化的磁场信号。在本发明实施例中,所述万向轮1每转动一圈,所述线性霍尔传感器4生成一个类正弦函数曲线的磁场信号。当所述磁性元件5离所述线性霍尔传感器4最近时,磁场强度最大,为所述类正弦函数曲线的波峰,当所述磁性元件5离所述线性霍尔传感器4最远时,磁场强度最小,为所述类正弦函数曲线的波谷。因此,磁场强度的最大值和最小值与所述磁性元件5相对所述线性霍尔传感器4的距离有关,由于所述磁性元件5相对所述线性霍尔传感器4的最大距离和最小值是确定的,因此所述磁场强度的最大值和最小值也很容易确定。在此处,Hmin为所述磁性元件5离所述线性霍尔传感器4最远时的磁场强度,Hmax为所述磁性元件5离所述线性霍尔传感器4最近时的磁场强度,Hmid为所述磁性元件5位于最远距离和最近距离的中间位置的磁场强度,Hnow为实时获取到的磁场强度。It should be noted that the rotation of the universal wheel 1 will drive the magnetic element 5 to move up and down periodically. The linear Hall sensor 4 can detect that the magnitude of the magnetic field changes with the movement of the magnetic element 5. The linear Hall sensor 4 detects a periodically changing magnetic field signal. In the embodiment of the present invention, each time the universal wheel 1 rotates, the linear Hall sensor 4 generates a magnetic field signal with a sine-like function curve. When the magnetic element 5 is closest to the linear Hall sensor 4, the magnetic field intensity is the largest, which is the peak of the sine-like function curve. When the magnetic element 5 is farthest from the linear Hall sensor 4, the magnetic field The minimum intensity is the trough of the sine-like function curve. Therefore, the maximum and minimum values of the magnetic field strength are related to the distance between the magnetic element 5 and the linear Hall sensor 4, since the maximum distance and minimum value of the magnetic element 5 with respect to the linear Hall sensor 4 are determined Therefore, the maximum value and the minimum value of the magnetic field strength are also easily determined. Here, Hmin is the magnetic field strength when the magnetic element 5 is farthest from the linear Hall sensor 4, Hmax is the magnetic field strength when the magnetic element 5 is closest to the linear Hall sensor 4, and Hmid is the The magnetic field strength of the magnetic element 5 at the middle position between the furthest distance and the shortest distance is described, and Hnow is the magnetic field strength obtained in real time.
则根据公式(6)可根据线性霍尔传感器44感应到的随时间变化的电感强度值获得不同时刻所述万向轮1相对于初始状态的转动角度,则可计算万向轮1的角速度和线速度。Then according to formula (6), the rotation angle of the universal wheel 1 relative to the initial state at different times can be obtained according to the time-varying inductance intensity value sensed by the linear Hall sensor 44, and the angular velocity and Line speed.
需要说明的是,本实施例采用的万向轮测速方法能根据连续变化的模拟信号实时获取万向轮1的速度,和现有技术通过分立的数字信号计算万向轮1的速度相比,更能准确量化万向轮1的行驶速度,以作为后续检测打滑和路径纠正的有效参考。It should be noted that the universal wheel speed measurement method used in this embodiment can obtain the speed of the universal wheel 1 in real time according to the continuously changing analog signal. Compared with the prior art, which calculates the speed of the universal wheel 1 through discrete digital signals, The driving speed of the universal wheel 1 can be more accurately quantified as an effective reference for subsequent detection of slip and path correction.
参见图8,为本发明实施例3提供的一种万向轮测速系统的结构示意图,包括:8 is a schematic structural diagram of a universal wheel speed measurement system according to Embodiment 3 of the present invention, including:
万向轮测速装置31,用于通过所述线性霍尔传感器4输出模拟信号值;其中,该万向轮测速装置31采用上述任一实施例公开的万向轮测速装置31。The universal wheel speed measuring device 31 is configured to output an analog signal value through the linear Hall sensor 4. The universal wheel speed measuring device 31 adopts the universal wheel speed measuring device 31 disclosed in any one of the above embodiments.
控制器32,用于根据所述线性霍尔传感器4实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮1相对初始状态的转动角度,根据所述万向轮1相对初始状态的转动角度实时计算所述万向轮1转动的速度;其中,所述对应关系为所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对初始状态的转动角度的对应关系。The controller 32 is configured to obtain the rotation angle of the universal wheel 1 relative to the initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship, and The rotation angle of the initial state in real time calculates the rotation speed of the universal wheel 1; wherein the correspondence relationship is the value of the analog signal output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state Correspondence.
优选地,所述万向轮测速系统还包括信号采集器,用于在所述万向轮1以预设的角速度匀速前进的过程中,获取所述线性霍尔传感器4输出的模拟信号值随时间变化曲线;Preferably, the universal wheel speed measurement system further includes a signal collector for obtaining an analog signal value output by the linear Hall sensor 4 along with the universal wheel 1 moving at a uniform angular velocity at a preset speed. Time variation curve
所述控制器32还用于截取所述线性霍尔传感器4的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器4的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系列表;其中,所述万向轮1相对于初始状态的转动角度等于所述角速度和时间的乘积。The controller 32 is further configured to intercept the curve of the first period of the analog signal value of the linear Hall sensor 4 with time, and sample the curve of the first period at a preset frequency. The correspondence between each sampled signal value and time is used to obtain a correspondence list between the analog signal value of the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state; wherein the universal wheel 1 The rotation angle relative to the initial state is equal to the product of the angular velocity and time.
在另一优选实施例中,所述控制器32通过以下公式获取所述线性霍尔传感器4的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系列表:In another preferred embodiment, the controller 32 obtains a correspondence list between the analog signal value of the linear Hall sensor 4 and the rotation angle of the universal wheel 1 with respect to the initial state by the following formula:
θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
其中,B为所述线性霍尔传感器4感应到所述磁性元件5的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is the analog signal value of the magnetic element 5 sensed by the linear Hall sensor 4, a and b are adjustment parameters, and r is the axis of the first friction wheel / second friction wheel and the eccentricity. The distance from the intersection of the straight line where the axis center of the shaft lies with the bottom surface of the movable rod to the axis center of the universal wheel, θ is the rotation angle of the universal wheel relative to the initial state, and α is the standard angle.
除了以上公开的方式外,所述控制器32还可根据以下公式获取所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对于初始状态的转动角度的对应关系:In addition to the manner disclosed above, the controller 32 may also obtain the correspondence between the analog signal value output by the linear Hall sensor 4 and the rotation angle of the universal wheel 1 relative to the initial state according to the following formula:
θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮1相对于初始状态的转动角度。Among them, Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel 1 relative to the initial state.
本实施例中的万向轮测速系统的实施过程和工作过程可参考上述对万向轮测速方法的描述,在此不再赘述。For the implementation process and working process of the universal wheel speed measurement system in this embodiment, reference may be made to the above description of the universal wheel speed measurement method, and details are not described herein again.
参见图9,为本发明实施例4提供的一种打滑检测方法的流程示意图,适用于一可移动电子设备,所述可移动电子设备包括第一驱动轮、第二驱动轮和以上任一实施例公开的万向轮测速装置,包括步骤:9 is a schematic flowchart of a slip detection method according to Embodiment 4 of the present invention, which is applicable to a movable electronic device. The movable electronic device includes a first driving wheel, a second driving wheel, and any one of the above implementations. The disclosed universal wheel speed measuring device includes the steps:
S41、根据所述线性霍尔传感器4实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮1相对初始状态的转动角度;其中,所述对应关系为所述线性霍尔传感器4输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;S41. Obtain the rotation angle of the universal wheel 1 relative to the initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship; wherein the correspondence relationship is the linear Hall The corresponding relationship between the analog signal value output by the sensor 4 and the rotation angle of the universal wheel relative to the initial state;
S42、根据所述万向轮1相对初始状态的转动角度实时计算所述万向轮1转动的速度;S42. Calculate the rotation speed of the universal wheel 1 in real time according to the rotation angle of the universal wheel 1 relative to the initial state;
S43、当所述第一驱动轮的速度和所述第二驱动轮的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮的速度和所述第二驱动轮的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;S43. When the difference between the speed of the first driving wheel and the speed of the second driving wheel is less than a preset first speed threshold, determine that the movable electronic device performs linear motion; when the first When the difference between the speed of the driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
S44、若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮1的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值;S44. If it is determined that the movable electronic device performs linear motion, calculate a first difference between the speed of the universal wheel 1 and the speed of the first drive wheel or the second drive wheel at the current moment;
S45、当所述第一差值大于预设的第一速度阈值时,记录所述第一差值大于预设的第一速度阈值的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;S45. When the first difference is greater than a preset first speed threshold, record a first duration in which the first difference is greater than a preset first speed threshold, and when the first duration is greater than a preset At a first time threshold, determining that the movable electronic device is slipping;
S46、若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮的速度和第二驱动轮的速度计算所述万向轮1的理论速度,计算当前时刻所述万向轮1的速度和所述理论速度的第二差值;S46. If it is determined that the movable electronic device performs a curved motion, calculate the theoretical speed of the universal wheel 1 according to the speed of the first driving wheel and the speed of the second driving wheel, and calculate the universal wheel 1 at the current moment. The second difference between the speed and the theoretical speed;
S47、当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。S47. When the second difference is greater than the second speed threshold, record a second duration when the second difference is greater than the second speed threshold; when the second duration is greater than a preset second time threshold , It is determined that the movable electronic device is slipping.
需要说明的是,本实施例公开的方法适用于轮式移动机器人(Wheeled Mobile Robot,WMR),轮式移动机器人由车体、两个驱动轮和一个随动轮组成,随动轮在运动过程中起支撑作用,其在之前的运动学模型中的影响忽略不计,近年来开始研究其的运动状态以检测机器人打滑或遇到障碍物而停止的现象。通过控制左驱动轮、右驱动轮的电动机的转动速度和方向可控制轮式移动机器人的行驶方向和速度,当左驱动轮和右驱动轮存在速度差时,轮式移动机器人会发生转弯,例如,左驱动轮的速度为-50cm/s,右驱动轮的速度为50cm/s,轮式移动机器人以其中心做转弯运动;而当左驱动轮和右驱动轮的速度均为50cm/s时,轮式移动机器人以其中心做直线向前运动。It should be noted that the method disclosed in this embodiment is applicable to a Wheeled Mobile Robot (WMR). The wheeled mobile robot is composed of a vehicle body, two driving wheels, and a follower wheel. The follower wheel starts during the movement process. Supporting effect, its influence in the previous kinematic model is negligible. In recent years, research has been started on its motion state to detect the phenomenon that the robot slips or stops when it encounters an obstacle. The direction and speed of the wheeled mobile robot can be controlled by controlling the rotation speed and direction of the motors of the left and right drive wheels. When there is a speed difference between the left and right drive wheels, the wheeled mobile robot will turn, for example , The speed of the left driving wheel is -50cm / s, the speed of the right driving wheel is 50cm / s, and the wheeled mobile robot makes a turning movement at its center; and when the speed of the left driving wheel and the right driving wheel are both 50cm / s The wheeled mobile robot moves straight forward with its center.
在本实施例中,通过先确定可移动电子设备的不同运动状态,例如直线运动或曲线运动,再分情况具体分析可移动电子设备是否打滑。当可移动电子设备做直线运动,且判断当前时刻所述万向轮的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值大于预设的第二速度阈值时,,记录所述第一差值大于预设的第一速度阈值第一驱动轮或者第二驱动轮的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;当确定所述可移动电子设备做曲线运动,且判断当前时刻所述万向轮的速度和所述理论速度的第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。通过准确量化万向轮的速度,并将其应用于打滑判断中,不仅能检测万向轮停止转动而驱动轮空转的情况,还能检测万向轮仍然转动但其滚动距离和驱动轮滚动距离不一致的情况,功能更完善,符合实际应用的需求。In this embodiment, first determine different motion states of the movable electronic device, such as linear motion or curved motion, and then analyze whether the movable electronic device is slipping according to the situation. When the movable electronic device performs a linear motion and determines that the first difference between the speed of the universal wheel and the speed of the first drive wheel or the second drive wheel is greater than a preset second speed threshold, Record the first duration of the first drive wheel or the second drive wheel for which the first difference is greater than a preset first speed threshold, and determine that the first duration is greater than a preset first time threshold The movable electronic device slips; when it is determined that the movable electronic device performs a curve movement, and it is determined that the second difference between the speed of the universal wheel and the theoretical speed at the current moment is greater than a second speed threshold, the record is recorded. A second duration that is greater than a second speed threshold; a second duration that is greater than a second speed threshold; and when the second duration is greater than a preset second time threshold, it is determined that the movable electronic device is slipping. By accurately quantifying the speed of the universal wheel and applying it to slip judgment, it can not only detect the situation where the universal wheel stops spinning and the driving wheel is idling, but also detect the universal wheel still rotating but its rolling distance and driving wheel rolling distance. Inconsistent conditions, more complete functions, and meet the needs of practical applications.
下面,以图10为例,对可移动电子设备做曲线运动的打滑检测进行说明,设第一驱动轮为图中的左驱动轮K1,第二驱动轮为图中的左驱动轮K2。当所述可移动电子设备4任意时刻以O点进行左转弯时,假设左驱动轮K1的速度为50cm/s,右驱动轮K2的速度为100cm/s,则根据各点和O点的距离比例关系,例如前端万向轮K3到O点的距离s1为80cm,右驱动轮K2到O点的距离s3为100cm,则可知万向轮K3的理论速度和右驱动轮K2的速度比为80/100=4/5;因此,在正常行驶状态下,前端的万向轮K3的理论速度应为80cm/s,则在当前时刻下该万向轮K3的实际速度和理论速度80cm/s的第二差值大于预设的第二速度阈值时,记录所述第二差值大于预设的第二速度阈值的第二持续时间,当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备4发生打滑。In the following, taking FIG. 10 as an example, slip detection of a curved movement of a movable electronic device will be described. Let the first driving wheel be the left driving wheel K1 in the figure, and the second driving wheel be the left driving wheel K2 in the figure. When the movable electronic device 4 makes a left turn at O point at any time, assuming that the speed of the left driving wheel K1 is 50 cm / s and the speed of the right driving wheel K2 is 100 cm / s, according to the distance between each point and the O point Proportional relationship, for example, the distance s1 from the front universal wheel K3 to the O point is 80cm, and the distance s3 from the right drive wheel K2 to the O point is 100cm. It can be seen that the theoretical speed of the universal wheel K3 and the speed ratio of the right drive wheel K2 are 80 / 100 = 4/5; therefore, under normal driving conditions, the theoretical speed of the front-end universal wheel K3 should be 80 cm / s, and at the current moment, the actual speed of the universal wheel K3 and the theoretical speed of 80 cm / s When the second difference is greater than a preset second speed threshold, a second duration is recorded in which the second difference is greater than a preset second speed threshold, and when the second duration is greater than a preset second time threshold , It is determined that the movable electronic device 4 has slipped.
当检测到可移动电子设备发生打滑时,需要预设的避开策略摆脱打滑状态,例如,当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述可移动电子设备后退K 1cm后转弯P 1°避开; When a slip of the mobile electronic device is detected, a preset avoidance strategy is required to get rid of the slip state, for example, when the slip of the mobile electronic device is detected at any time, and the mobile electronic device performs a linear motion forward When the mobile electronic device is controlled to back K 1 cm and turn P 1 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述可移动电子设备前进K 2cm后转弯P 2°避开; When slippage is detected at any time of the movable electronic device, and the movable electronic device performs a linear motion backward, control the movable electronic device to advance K 2 cm and turn P 2 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述可移动电子设备后退K 3cm后转弯P 3°避开; When slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curve movement forward, control the movable electronic device to back K 3 cm and turn P 3 ° to avoid;
当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述可移动电子设备前进K4cm后转弯P4°避开。When it is detected that the movable electronic device slips at any time, and the movable electronic device makes a curve movement backward, the movable electronic device is controlled to advance K4cm and turn P4 ° to avoid.
参见图11,是本发明实施例5提供的一种可移动电子设备的结构示意图,所述可移动电子设备包括第一驱动轮51、第二驱动轮52、第一编码器53、第二编码器54、上述一项所述的万向轮测速装置55、控制器56和存储器57;其中,11 is a schematic structural diagram of a movable electronic device according to Embodiment 5 of the present invention. The movable electronic device includes a first driving wheel 51, a second driving wheel 52, a first encoder 53, and a second encoding. Device 54, the universal wheel speed measuring device 55, the controller 56, and the memory 57 according to the above item; wherein,
所述第一编码器53,用于实时检测所述第一驱动轮51的速度;The first encoder 53 is configured to detect the speed of the first driving wheel 51 in real time;
所述第二编码器54,用于实时检测所述第二驱动轮52的速度;The second encoder 54 is configured to detect the speed of the second driving wheel 52 in real time;
所述控制器56,用于执行存储在存储器57中的以下程序模块:The controller 56 is configured to execute the following program modules stored in the memory 57:
万向轮速度计算模块571,用于根据所述线性霍尔传感器4实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮1相对初始状态的转动角度,并通过不同时刻所述万向轮1相对初始状态的转动角度实时计算所述万向轮1转动的速度;其中,所述对应关系为所述线性霍尔传感器4输出的模拟信号值和所述万向轮1相对初始状态的转动角度的对应关系;The universal wheel speed calculation module 571 is configured to obtain the rotation angle of the universal wheel 1 from the initial state at different times according to the analog signal value output by the linear Hall sensor 4 in real time and a preset correspondence relationship, and pass the different times The rotation angle of the universal wheel 1 relative to the initial state is calculated in real time by the rotation speed of the universal wheel 1; wherein the correspondence relationship is an analog signal value output by the linear Hall sensor 4 and the universal wheel 1 Correspondence between the rotation angles relative to the initial state;
运动方式判断模块572,用于当所述第一驱动轮51的速度和所述第二驱动轮52的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮51的速度和所述第二驱动轮52的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;A movement mode judging module 572 is configured to, when a difference between the speed of the first driving wheel 51 and the speed of the second driving wheel 52 is less than a preset first speed threshold, determine that the movable electronic device does Linear motion; when the difference between the speed of the first driving wheel 51 and the speed of the second driving wheel 52 is greater than a preset first speed threshold, determining that the movable electronic device performs a curved motion;
第一差值计算模块573,若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮1的速度和所述第一驱动轮51或者第二驱动轮52的速度的第一差值;The first difference calculation module 573 calculates a first speed of the universal wheel 1 and a speed of the first drive wheel 51 or the second drive wheel 52 if it is determined that the movable electronic device performs linear motion. Difference
第一打滑判定模块574,用于当所述第一差值大于预设的第二速度阈值时,记录所述第一差值大于预设的第一速度阈值的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;A first slip determination module 574, configured to record a first duration when the first difference is greater than a preset first speed threshold when the first difference is greater than a preset second speed threshold; When the first duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
第二差值计算模块575,用于若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮51的速度和第二驱动轮52的速度计算所述万向轮的理论速度,计算当前时刻所述万向轮的速度和所述理论速度的第二差值;A second difference calculation module 575, configured to calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel 51 and the speed of the second driving wheel 52 if it is determined that the movable electronic device performs a curved movement, Calculating a second difference between the speed of the universal wheel and the theoretical speed at the current moment;
第二打滑判定模块576,用于当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。A second slip determination module 576, configured to record a second duration when the second difference is greater than a second speed threshold when the second difference is greater than a second speed threshold; when the second duration is greater than a predetermined time When the second time threshold is set, it is determined that the movable electronic device is slipped.
优选地,所述控制器32还用于执行以下的程序模块:Preferably, the controller 32 is further configured to execute the following program modules:
第一控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述第一驱动轮51和第二驱动轮52的转动速度和转动方向以使得所述可移动电子设备后退K 1cm后转弯P 1°避开; A first control module, configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion forward The speed and direction of rotation so that the movable electronic device backs up by K 1 cm and turns P 1 ° to avoid;
第二控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述第一驱动轮51和第二驱动轮52的转动速度和转动方向以使得所述可移动电子设备前进K 2cm后转弯P 2°避开; A second control module, configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion backward; The speed and direction of rotation so that the movable electronic device advances K 2 cm to avoid turning P 2 °;
第三控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述第一驱动轮51和第二驱动轮52的转动速度和转动方向以使得所述可移动电子设备后退K 3cm后转弯P 3°避开; A third control module, configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any moment The speed and direction of rotation so that the movable electronic device moves backward K 3 cm and turns P 3 ° to avoid;
第四控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述第一驱动轮51和第二驱动轮52的转动速度和转动方向以使得所述可移动电子设备前进K 4cm后转弯P 4°避开。 A fourth control module, configured to control the movement of the first driving wheel 51 and the second driving wheel 52 when slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curved movement backward; The speed and direction of rotation are such that the movable electronic device advances K 4 cm and turns P 4 ° to avoid.
本实施例中的可移动电子设备的工作原理可参考上述对打滑检测方法的具体描述,在此不再赘述。For the working principle of the movable electronic device in this embodiment, reference may be made to the foregoing specific description of the slip detection method, and details are not described herein again.
参见图12,是本发明实施例6提供的一种路径纠正方法的流程示意图,包括步骤:12 is a schematic flowchart of a path correction method according to Embodiment 6 of the present invention, including steps:
S61、采用上述任一实施例公开的打滑检测方法判断所述可移动电子设备是否发生打滑;S61. Use the slip detection method disclosed in any one of the foregoing embodiments to determine whether the movable electronic device has slipped;
S62、当任意时刻判断所述可移动电子设备发生打滑时,记录所述可移动电子设备持续打滑的时间;S62. When it is determined at any time that the mobile electronic device is slipping, record the time during which the mobile electronic device continues to slip;
S63、根据所述可移动电子设备持续打滑的时间对所述可移动电子设备的路径进行纠正。S63. Correct the path of the mobile electronic device according to the time during which the mobile electronic device continues to slip.
由于对于可移动电子设备而言,其路径记录时基于编码器进行的,当可移动电子设备发生打滑时,如果仍然以编码器记录的速度和位移记录路径,会导致定位误差的产生。因此,在所述可移动电子设备持续打滑的时间段内,停止采用编码器记录的速度和位移记录路径,可有效对可移动电子设备的路径进行纠正,对于后续的地图构建和准确定位具有重要作用。Because for a mobile electronic device, the path recording is based on an encoder, when the mobile electronic device slips, if the path is still recorded with the speed and displacement recorded by the encoder, a positioning error will result. Therefore, during the time when the mobile electronic device continues to slip, stopping the speed and displacement recording path recorded by the encoder can effectively correct the path of the mobile electronic device, which is important for subsequent map construction and accurate positioning. effect.
本发明实施例还对应提供了一种路径纠正装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现以上所述的路径纠正方法。An embodiment of the present invention also correspondingly provides a path correction device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, Implement the path correction method described above.
本发明实施例还对应提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行以上所述的路径纠正方法。An embodiment of the present invention also correspondingly provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, a device where the computer-readable storage medium is located is controlled to perform the above The path correction method described.
本发明实施例还对应提供了一种终端设备,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理 器执行的计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述的万向轮测速方法或打滑检测方法。An embodiment of the present invention also correspondingly provides a terminal device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. The processor is implemented when the processor executes the computer program. The universal wheel speed measurement method or slip detection method according to any one of the above.
本领域技术人员可以理解,所述示意图仅仅是终端设备的示例,并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分。Those skilled in the art can understand that the schematic diagram is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or combine some components or different components. For example, the terminal device may further include an input / output device, a network access device, and a bus. The so-called processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The processor is a control center of a terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述终端设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory may be used to store the computer program and / or module, and the processor implements the terminal by running or executing the computer program and / or module stored in the memory, and calling data stored in the memory. Various functions of the device. The memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store Data (such as audio data, phone book, etc.) created based on the use of the mobile phone. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, Smart Memory Card (SMC), and Secure Digital (SD) cards. , Flash card (Flash card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
其中,所述终端设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, when the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the method of the foregoing embodiment, and may also be completed by a computer program instructing related hardware. The computer program may be stored in a computer-readable storage medium. The computer When the program is executed by a processor, the steps of the foregoing method embodiments can be implemented. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. For example, in some jurisdictions, the computer-readable medium Excludes electric carrier signals and telecommunication signals.
本发明实施例还对应提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行上述任一项所述的万向轮测速方法或打滑检测方法。An embodiment of the present invention also provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium includes a stored computer program, wherein the computer-readable storage medium is controlled when the computer program runs. The device where it is located performs the universal wheel speed measurement method or slip detection method described in any one of the above.
需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical Units, which can be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement without creative efforts.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above is a preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and retouches can be made. It is the protection scope of the present invention.

Claims (34)

  1. 一种万向轮测速装置,其特征在于,包括万向轮、传动机构、活动杆和线性霍尔传感器,所述活动杆的一端设有磁性元件,所述活动杆的另一端通过传动机构与所述万向轮连接,所述线性霍尔传感器位于所述活动杆的一侧并与所述磁性元件相对;所述活动杆通过所述传动机构随所述万向轮的转动做往复循环运动,从而带动所述磁性元件做靠近和远离所述线性霍尔传感器的往复循环运动,所述线性霍尔传感器在所述磁性元件的往复循环运动中持续输出模拟信号值。A universal wheel speed measuring device is characterized by comprising a universal wheel, a transmission mechanism, a movable rod and a linear Hall sensor. One end of the movable rod is provided with a magnetic element, and the other end of the movable rod is connected with the transmission mechanism through a transmission mechanism. The universal wheel is connected, and the linear Hall sensor is located on one side of the movable rod and is opposite to the magnetic element; the movable rod makes a reciprocating cycle movement with the rotation of the universal wheel through the transmission mechanism Therefore, the magnetic element is driven to make a reciprocating cyclic motion toward and away from the linear Hall sensor, and the linear Hall sensor continuously outputs an analog signal value during the reciprocating cyclic motion of the magnetic element.
  2. 如权利要求1所述的万向轮测速装置,其特征在于,所述传动机构包括第一摩擦轮和第二摩擦轮,所述第一摩擦轮和第二摩擦轮通过偏心轴对称连接,所述偏心轴与所述第一摩擦轮和第二摩擦轮的轴心均不对称,所述活动杆与所述偏心轴抵接,所述第一摩擦轮和第二摩擦轮分别与所述万向轮紧密抵接,所述万向轮在转动时驱动所述第一摩擦轮和第二摩擦轮滚动,从而带动所述活动杆随所述万向轮的转动做往复循环运动。The universal wheel speed measuring device according to claim 1, wherein the transmission mechanism comprises a first friction wheel and a second friction wheel, and the first friction wheel and the second friction wheel are symmetrically connected through an eccentric shaft, so The eccentric shaft is asymmetric to the axes of the first friction wheel and the second friction wheel, the movable rod is in contact with the eccentric shaft, and the first friction wheel and the second friction wheel are respectively in contact with the million The steering wheel abuts tightly, and when the universal wheel rotates, the first friction wheel and the second friction wheel are driven to roll, thereby driving the movable rod to perform a reciprocating cycle motion with the rotation of the universal wheel.
  3. 如权利要求2所述的万向轮测速装置,其特征在于,所述装置还包括压紧件,所述压紧件用于压紧所述第一摩擦轮和第二摩擦轮以使得所述第一摩擦轮和第二摩擦轮分别与所述万向轮紧密抵接。The universal wheel speed measuring device according to claim 2, wherein the device further comprises a pressing member for pressing the first friction wheel and the second friction wheel so that the The first friction wheel and the second friction wheel are in close contact with the universal wheel, respectively.
  4. 如权利要求3任一项所述的万向轮测速装置,其特征在于,所述装置还包括安装座,所述安装座的下部设有容纳所述万向轮的凹槽,所述万向轮的轮轴固定卡接于所述凹槽的侧壁,所述安装座的上部设有容纳所述第一摩擦轮和第二摩擦轮的收容腔,所述凹槽上设有对称的第一开口和第二开口,所述第一摩擦轮穿过所述第一开口与所述万向轮紧密抵接,且所述第二摩擦轮穿过第二开口与所述万向轮紧密抵接。The universal wheel speed measuring device according to any one of claims 3, characterized in that the device further comprises a mounting base, and a lower part of the mounting base is provided with a groove for accommodating the universal wheel, and the universal wheel The axle of the wheel is fixedly clamped to the side wall of the groove. The upper part of the mounting seat is provided with a receiving cavity for receiving the first friction wheel and the second friction wheel. The groove is provided with a symmetrical first An opening and a second opening, the first friction wheel closely contacts the universal wheel through the first opening, and the second friction wheel closely contacts the universal wheel through the second opening .
  5. 如权利要求4所述的万向轮测速装置,其特征在于,所述压紧件包括安装架和扭环,所述安装架包括第一连接臂、第二连接臂和横梁,所述第一连接臂的一端和第二连接臂的一端通过所述横梁连接,且所述扭环套接在所述横梁上,所述第一摩擦轮通过其上的转轴与所述第一连接臂的另一端可转动连接,所述第二摩擦轮通过其上的转轴与所述第二连接臂的另一端可转动连接。The universal wheel speed measuring device according to claim 4, wherein the pressing member includes a mounting bracket and a torsion ring, the mounting bracket includes a first connecting arm, a second connecting arm, and a cross beam, and the first One end of the connecting arm and one end of the second connecting arm are connected through the cross beam, and the torsion ring is sleeved on the cross beam. The first friction wheel is connected to the other of the first connecting arm through a rotation shaft thereon. One end is rotatably connected, and the second friction wheel is rotatably connected to the other end of the second connecting arm through a rotation shaft thereon.
  6. 如权利要求5所述的万向轮测速装置,其特征在于,所述收容腔内设有支架,所述支架包括依次连接的第一侧壁、第二侧壁和第三侧壁,所述第一侧壁和第三侧壁相对分布,所述横梁卡接于所述第一侧壁的卡槽和第三侧壁的卡槽,所述扭环分布于所述第一侧壁和第三侧壁之间,所述第一连接臂的一端设有挡块,所述扭环的一端与所述挡块抵接,所述扭环的另一端与所述第二侧壁的内表面抵接,以使得所述扭环发生形变并产生恢复力压紧所述第一摩擦轮和第二摩擦轮与所述万向轮紧密抵接。The universal wheel speed measuring device according to claim 5, wherein a bracket is provided in the receiving cavity, and the bracket includes a first side wall, a second side wall, and a third side wall connected in sequence, and The first side wall and the third side wall are oppositely disposed, the beam is engaged with the first groove and the third side wall, and the torsion ring is distributed between the first side wall and the first side wall. Between three side walls, a stopper is provided at one end of the first connecting arm, one end of the torsion ring abuts the stopper, and the other end of the torsion ring is on the inner surface of the second side wall. Abutting, so that the torsion ring is deformed and a restoring force is generated to press the first friction wheel and the second friction wheel to closely abut the universal wheel.
  7. 如权利要求6所述的万向轮测速装置,其特征在于,所述装置还包括上盖,所述上盖上设有压块,所述压块用于与所述支架配合以压紧所述扭环的另一端所述第二侧壁的内表面抵接。The universal wheel speed measuring device according to claim 6, wherein the device further comprises an upper cover, wherein the upper cover is provided with a pressing block, and the pressing block is used for cooperating with the bracket to press the The inner surface of the second side wall abuts on the other end of the torsion ring.
  8. 如权利要求7所述的万向轮测速装置,其特征在于,所述安装座的收容腔内还设有止转柱,所述上盖上设有止转孔,所述止转柱插入所述止转孔以防止所述压块和所述支架的位置发生偏移。The universal wheel speed measuring device according to claim 7, wherein a rotation preventing post is further provided in the receiving cavity of the mounting seat, a rotation preventing hole is provided on the upper cover, and the rotation preventing post is inserted into the receiving chamber. Said rotation prevention hole prevents the position of the pressure block and the bracket from being offset.
  9. 如权利要求1所述的万向轮测速装置,其特征在于,所述第一摩擦轮和第二摩擦轮的滚动面均为锥齿面。The universal wheel speed measuring device according to claim 1, wherein the rolling surfaces of the first friction wheel and the second friction wheel are both conical surfaces.
  10. 如权利要求8所述的万向轮测速装置,其特征在于,所述上盖还设有第三开口和第四开口,所述第一摩擦轮的滚动面从所述第三开口伸出,所述第二摩擦轮的滚动面从所述第四开口伸出。The universal wheel speed measuring device according to claim 8, wherein the upper cover is further provided with a third opening and a fourth opening, and a rolling surface of the first friction wheel protrudes from the third opening, A rolling surface of the second friction wheel protrudes from the fourth opening.
  11. 一种万向轮测速方法,其特征在于,适用于权利要求1-10任一项所述的万向轮测速装置,包括步骤:A universal wheel speed measurement method, characterized in that it is applicable to the universal wheel speed measurement device according to any one of claims 1-10, comprising the steps of:
    根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;Obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear hall sensor in real time and a preset correspondence relationship; wherein the correspondence relationship is an analog output of the linear hall sensor A correspondence between a signal value and a rotation angle of the universal wheel relative to an initial state;
    根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度。The rotation speed of the universal wheel is calculated in real time according to the rotation angle of the universal wheel relative to the initial state.
  12. 如权利要求11所述的万向轮测速方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下步骤获取:The method for measuring the speed of a universal wheel according to claim 11, wherein the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following steps:
    在所述万向轮以预设的角速度匀速运动的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;Acquiring a time-varying curve of an analog signal value output by the linear Hall sensor during the uniform motion of the universal wheel at a preset angular velocity;
    截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。Intercept the curve of the first period of the analog signal value of the linear Hall sensor with time, and sample the curve of the first period at a preset frequency. According to the signal value and time of each sample, The correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
  13. 如权利要求11所述的万向轮测速方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮 相对于初始状态的转动角度的对应关系通过以下公式获取:The method for measuring the speed of a universal wheel according to claim 11, wherein the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
    θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
    其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
  14. 如权利要求11所述的万向轮测速方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:The method for measuring the speed of a universal wheel according to claim 11, wherein the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
    θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
    其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
  15. 如权利要求11所述的万向轮测速方法,其特征在于,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:The method for measuring the speed of a universal wheel according to claim 11, wherein the speed of calculating the rotation of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
    Figure PCTCN2018093467-appb-100001
    Figure PCTCN2018093467-appb-100001
    其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
  16. 如权利要求11所述的万向轮测速方法,其特征在于,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:The method for measuring the speed of a universal wheel according to claim 11, wherein the speed of calculating the rotation of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
    ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
    其中,ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。Among them, ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period. ; Wherein T is far less than the rotation period of the universal wheel itself.
  17. 一种万向轮测速系统,其特征在于,包括:A universal wheel speed measurement system, comprising:
    权利要求1-10任一项所述的万向轮测速装置,用于通过所述线性霍尔传感器输出模拟信号值;The universal wheel speed measurement device according to any one of claims 1 to 10, configured to output an analog signal value through the linear Hall sensor;
    控制器,用于根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度,根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系。A controller configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the rotation of the universal wheel relative to the initial state The angle calculates the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state.
  18. 如权利要求17所述的万向轮测速系统,其特征在于,所述万向轮测速系统还包括信号采集器,用于在所述万向轮以预设的角速度匀速前进的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;The universal wheel speed measurement system according to claim 17, wherein the universal wheel speed measurement system further comprises a signal collector for acquiring during the process of the universal wheel advancing at a uniform angular velocity at a preset speed A time-varying curve of an analog signal value output by the linear hall sensor;
    所述控制器还用于截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。The controller is further configured to intercept a curve of a first period of an analog signal value of the linear Hall sensor over time, and sample the curve of the first period at a preset frequency. The corresponding relationship between the sampled signal value and time is used to obtain a list of the corresponding relationship between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; The angle of rotation is equal to the product of the angular velocity and time.
  19. 如权利要求17所述的万向轮测速系统,其特征在于,所述控制器通过以下公式获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表:The universal wheel speed measurement system according to claim 17, wherein the controller obtains a correspondence between an analog signal value of the linear Hall sensor and a rotation angle of the universal wheel with respect to an initial state by the following formula Relation list:
    θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
    其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
  20. 如权利要求17所述的万向轮测速系统,其特征在于,所述控制器通过以下公式获取所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系:The universal wheel speed measurement system according to claim 17, wherein the controller obtains an analog signal value output by the linear Hall sensor and a rotation angle of the universal wheel relative to an initial state by the following formula. Correspondence:
    θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
    其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
  21. 如权利要求17所述的万向轮测速系统,其特征在于,所述控制器根据以下公式获取所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过:The universal wheel speed measurement system according to claim 17, wherein the controller obtains the rotation angle of the universal wheel relative to the initial state according to the following formula to calculate the rotation speed of the universal wheel in real time:
    Figure PCTCN2018093467-appb-100002
    Figure PCTCN2018093467-appb-100002
    其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
  22. 如权利要求17所述的万向轮测速系统,其特征在于,所述控制器根据以下公式获取所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过:The universal wheel speed measurement system according to claim 17, wherein the controller obtains the rotation angle of the universal wheel relative to the initial state according to the following formula to calculate the rotation speed of the universal wheel in real time:
    ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
    ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
  23. 一种打滑检测方法,适用于一可移动电子设备,所述可移动电子设备包括第一驱动轮、第二驱动轮和权利要求1-10任一项所述的万向轮测速装置,其特征在于,包括步骤:A slip detection method is applicable to a movable electronic device. The movable electronic device includes a first driving wheel, a second driving wheel, and a universal wheel speed measuring device according to any one of claims 1-10. It consists of steps:
    根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;Obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear hall sensor in real time and a preset correspondence relationship; wherein the correspondence relationship is an analog output of the linear hall sensor A correspondence between a signal value and a rotation angle of the universal wheel relative to an initial state;
    根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;Calculate the rotation speed of the universal wheel in real time according to the rotation angle of the universal wheel relative to the initial state;
    当所述第一驱动轮的速度和所述第二驱动轮的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮的速度和所述第二驱动轮的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;When the difference between the speed of the first driving wheel and the speed of the second driving wheel is less than a preset first speed threshold, it is determined that the movable electronic device performs linear motion; when the first driving wheel When the difference between the speed of the second driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
    若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值;If it is determined that the movable electronic device performs linear motion, calculate a first difference between the speed of the universal wheel and the speed of the first driving wheel or the second driving wheel at the current moment;
    当所述第一差值大于预设的第二速度阈值时,记录所述第一差值大于预设的第一速度阈值第一驱动轮或者第二驱动轮的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;When the first difference is greater than a preset second speed threshold, recording a first duration of the first drive wheel or the second drive wheel where the first difference is greater than a preset first speed threshold, and when the When the first duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
    若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮的速度和第二驱动轮的速度计算所述万向轮的理论速度,计算当前时刻所述万向轮的速度和所述理论速度的第二差值;If it is determined that the movable electronic device performs a curve motion, calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel and the speed of the second driving wheel, and calculate the speed and the speed of the universal wheel at the current moment. The second difference of the theoretical speed;
    当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。When the second difference is greater than the second speed threshold, record a second duration where the second difference is greater than the second speed threshold; when the second duration is greater than a preset second time threshold, then It is determined that the movable electronic device is slipped.
  24. 如权利要求23所述的打滑检测方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下步骤获取:The slip detection method according to claim 23, wherein the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state is obtained by the following steps:
    在所述万向轮以预设的角速度匀速运动的过程中,获取所述线性霍尔传感器输出的模拟信号值随时间变化曲线;Acquiring a time-varying curve of an analog signal value output by the linear Hall sensor during the uniform motion of the universal wheel at a preset angular velocity;
    截取所述线性霍尔传感器的模拟信号值随时间变化曲线的第一个周期的曲线,以预设的频率对所述第一个周期的曲线进行采样,根据每一采样的信号值和时间的对应关系获取所述线性霍尔传感器的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系列表;其中,所述万向轮相对于初始状态的转动角度等于所述角速度和时间的乘积。Intercept the curve of the first period of the analog signal value of the linear Hall sensor with time, and sample the curve of the first period at a preset frequency. According to the signal value and time of each sample, The correspondence relationship obtains a list of correspondence relationships between the analog signal value of the linear Hall sensor and the rotation angle of the universal wheel with respect to the initial state; wherein the rotation angle of the universal wheel with respect to the initial state is equal to the angular velocity and Product of time.
  25. 如权利要求23所述的打滑检测方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:The slip detection method according to claim 23, wherein a correspondence between an analog signal value output by the linear Hall sensor and a rotation angle of the universal wheel relative to an initial state is obtained by the following formula:
    θ=sin -1[(aB+b)/r]+α θ = sin -1 [(aB + b) / r] + α
    其中,B为所述线性霍尔传感器感应到所述磁性元件的模拟信号值,a和b为调整参数,r为所述第一摩擦轮/第二摩擦轮的轴心与所述偏心轴的轴心所在的直线与活动杆底表面的交点到所述万向轮的轴心的距离,θ为所述万向轮相对于初始状态的转动角度,α为标准角度。Wherein, B is an analog signal value of the magnetic element sensed by the linear Hall sensor, a and b are adjustment parameters, and r is an axis of the first / second friction wheel and an eccentric shaft. The distance from the intersection of the straight line where the axis is located to the bottom surface of the movable rod to the axis of the universal wheel, θ is the rotation angle of the universal wheel with respect to the initial state, and α is the standard angle.
  26. 如权利要求23所述的打滑检测方法,其特征在于,所述线性霍尔传感器输出的模拟信号值和所述万向轮相对于初始状态的转动角度的对应关系通过以下公式获取:The slip detection method according to claim 23, wherein a correspondence between an analog signal value output by the linear Hall sensor and a rotation angle of the universal wheel relative to an initial state is obtained by the following formula:
    θ=arcsin{(Hnow-Hmid)/[(Hmax-Hmin)/2)]}θ = arcsin {(Hnow-Hmid) / [(Hmax-Hmin) / 2)]}
    其中,Hnow为当前磁场大小,Hmin为磁场极小值,Hmid为磁场中值,Hmax为磁场极大值,θ为所述万向轮相对于初始状态的转动角度。Hnow is the current magnetic field size, Hmin is the minimum value of the magnetic field, Hmid is the median value of the magnetic field, Hmax is the maximum value of the magnetic field, and θ is the rotation angle of the universal wheel relative to the initial state.
  27. 如权利要求23所述的打滑检测方法,其特征在于,所述根据所述万向轮相对初始状态的转动角度实时计算 所述万向轮转动的速度通过以下公式获取:The slip detection method according to claim 23, wherein the rotation speed of the universal wheel is calculated in real time according to the rotation angle of the universal wheel relative to the initial state, and is obtained by the following formula:
    Figure PCTCN2018093467-appb-100003
    Figure PCTCN2018093467-appb-100003
    其中,U为所述线性霍尔传感器实时输出的电压值,t为时刻,θ为所述万向轮相对初始状态的转动角度,f(θ)为所述万向轮相对初始状态的转动角度和所述线性霍尔传感器实时输出的电压值的函数关系,w为万向轮的角速度。Where U is the voltage value output by the linear Hall sensor in real time, t is the time, θ is the rotation angle of the universal wheel relative to the initial state, and f (θ) is the rotation angle of the universal wheel relative to the initial state. As a function of the voltage value output by the linear Hall sensor in real time, w is the angular velocity of the universal wheel.
  28. 如权利要求23所述的打滑检测方法,其特征在于,所述根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度通过以下公式获取:The slip detection method according to claim 23, wherein the real-time calculation of the rotation speed of the universal wheel according to the rotation angle of the universal wheel relative to the initial state is obtained by the following formula:
    ω=2π(θ2-θ1)/180Tω = 2π (θ2-θ1) / 180T
    ω为万向轮的角速度,T为扫描万向轮的转动角度的周期,θ1为上一周期检测到的万向轮的转动角度,θ2为当前周期检测到的万向轮的转动角度;其中,T远少于所述万向轮本身的转动周期。ω is the angular velocity of the universal wheel, T is the period of scanning the rotation angle of the universal wheel, θ1 is the rotation angle of the universal wheel detected in the previous period, and θ2 is the rotation angle of the universal wheel detected in the current period; where , T is far less than the rotation period of the universal wheel itself.
  29. 如权利要求23所述的打滑检测方法,其特征在于,所述方法还包括步骤:The slip detection method according to claim 23, wherein the method further comprises the steps of:
    当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述可移动电子设备后退K 1cm后转弯P 1°避开; When the mobile electronic device is detected to slip at any time, and the mobile electronic device performs a linear motion forward, control the mobile electronic device to back K 1 cm and turn P 1 ° to avoid;
    当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述可移动电子设备前进K 2cm后转弯P 2°避开; When slippage is detected at any time of the movable electronic device, and the movable electronic device performs a linear motion backward, control the movable electronic device to advance K 2 cm and turn P 2 ° to avoid;
    当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述可移动电子设备后退K 3cm后转弯P 3°避开; When slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curve movement forward, control the movable electronic device to back K 3 cm and turn P 3 ° to avoid;
    当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述可移动电子设备前进K 4cm后转弯P 4°避开。 When it is detected that the movable electronic device slips at any time, and the movable electronic device makes a curve movement backward, control the movable electronic device to advance K 4 cm and turn P 4 ° to avoid.
  30. 一种可移动电子设备,其特征在于,所述可移动电子设备包括第一驱动轮、第二驱动轮、第一编码器、第二编码器、权利要求1-10任一项所述的万向轮测速装置、控制器;其中,A movable electronic device, characterized in that the movable electronic device comprises a first driving wheel, a second driving wheel, a first encoder, a second encoder, and the vehicle according to any one of claims 1-10. Speed measuring device and controller for wheel;
    所述第一编码器,用于实时检测所述第一驱动轮的速度;The first encoder is configured to detect the speed of the first driving wheel in real time;
    所述第二编码器,用于实时检测所述第二驱动轮的速度;The second encoder is used to detect the speed of the second driving wheel in real time;
    所述控制器,用于执行存储在存储器中的以下程序模块:The controller is configured to execute the following program modules stored in the memory:
    万向轮速度计算模块,用于根据所述线性霍尔传感器实时输出的模拟信号值和预设的对应关系获取不同时刻所述万向轮相对初始状态的转动角度,并根据所述万向轮相对初始状态的转动角度实时计算所述万向轮转动的速度;其中,所述对应关系为所述线性霍尔传感器输出的模拟信号值和所述万向轮相对初始状态的转动角度的对应关系;The universal wheel speed calculation module is configured to obtain the rotation angle of the universal wheel relative to the initial state at different times according to the analog signal value output by the linear Hall sensor in real time and a preset correspondence relationship, and according to the universal wheel The rotation angle relative to the initial state is used to calculate the rotation speed of the universal wheel in real time; wherein the correspondence relationship is the correspondence between the analog signal value output by the linear Hall sensor and the rotation angle of the universal wheel relative to the initial state. ;
    运动方式判断模块,用于当所述第一驱动轮的速度和所述第二驱动轮的速度的差值小于预设的第一速度阈值时,则确定所述可移动电子设备做直线运动;当所述第一驱动轮的速度和所述第二驱动轮的速度的差值大于预设的第一速度阈值时,则确定所述可移动电子设备做曲线运动;A movement mode judging module, configured to determine that the movable electronic device performs a linear motion when a difference between a speed of the first driving wheel and a speed of the second driving wheel is less than a preset first speed threshold; When the difference between the speed of the first driving wheel and the speed of the second driving wheel is greater than a preset first speed threshold, determining that the movable electronic device performs a curved movement;
    第一差值计算模块,若确定所述可移动电子设备做直线运动,计算当前时刻所述万向轮的速度和所述第一驱动轮或者第二驱动轮的速度的第一差值;A first difference calculating module, if it is determined that the movable electronic device performs linear motion, calculating a first difference between the speed of the universal wheel and the speed of the first driving wheel or the second driving wheel at the current moment;
    第一打滑判定模块,用于当所述第一差值大于预设的第二速度阈值时,记录所述第一差值大于预设的第一速度阈值的第一持续时间,当所述第一持续时间大于预设的第一时间阈值时,确定所述可移动电子设备发生打滑;A first slip determination module, configured to record a first duration when the first difference is greater than a preset first speed threshold when the first difference is greater than a preset second speed threshold; When a duration is greater than a preset first time threshold, determining that the mobile electronic device is slipping;
    第二差值计算模块,用于若确定所述可移动电子设备做曲线运动,根据所述第一驱动轮的速度和第二驱动轮的速度计算所述万向轮的理论速度,计算当前时刻所述万向轮的速度和所述理论速度的第二差值;A second difference calculation module, configured to calculate the theoretical speed of the universal wheel according to the speed of the first driving wheel and the speed of the second driving wheel if it is determined that the movable electronic device performs a curved movement, and calculate the current time A second difference between the speed of the universal wheel and the theoretical speed;
    第二打滑判定模块,用于当所述第二差值大于第二速度阈值时,记录所述第二差值大于第二速度阈值的第二持续时间;当所述第二持续时间大于预设的第二时间阈值时,则确定所述可移动电子设备发生打滑。A second slip determination module, configured to record a second duration when the second difference is greater than a second speed threshold when the second difference is greater than a second speed threshold; when the second duration is greater than a preset A second time threshold, it is determined that the movable electronic device is slipping.
  31. 如权利要求30所述的一种可移动电子设备,其特征在于,所述控制器还用于执行存储在存储器中的以下程序模块:The removable electronic device according to claim 30, wherein the controller is further configured to execute the following program modules stored in the memory:
    第一控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向前做直线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备后退K 1cm后转弯P 1°避开; A first control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time and the movable electronic device performs a linear motion forward And turning direction so that the movable electronic device backs up by K 1 cm and turns P 1 ° to avoid;
    第二控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做直线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备前进K 2cm后转弯P 2°避开; A second control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage is detected at the movable electronic device and the movable electronic device performs a linear motion backward And the direction of rotation so that the movable electronic device advances K 2 cm and turns P 2 ° to avoid;
    第三控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,所述可移动电子设备向前做曲线线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备后退K 3cm后转弯P 3°避开; A third control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when the movable electronic device detects slippage at any time, and the movable electronic device moves forward in a curved line And turning direction to make the movable electronic device back K 3 cm and turn P 3 ° to avoid;
    第四控制模块,用于当任意时刻检测到所述可移动电子设备发生打滑,且所述可移动电子设备向后做曲线运动时,控制所述第一驱动轮和第二驱动轮的转动速度和转动方向以使得所述可移动电子设备前进K 4cm后转弯P 4°避开。 A fourth control module, configured to control the rotation speed of the first driving wheel and the second driving wheel when slippage of the movable electronic device is detected at any time, and the movable electronic device performs a curve motion And turn the direction so that the movable electronic device advances K 4 cm and turns P 4 ° to avoid.
  32. 一种路径纠正方法,其特征在于,包括步骤:A path correction method, comprising the steps of:
    采用如权利要求23所述的打滑检测方法判断所述可移动电子设备是否发生打滑;Adopting the slip detection method according to claim 23 to determine whether the movable electronic device has slipped;
    当任意时刻判断所述可移动电子设备发生打滑时,记录所述可移动电子设备持续打滑的时间;When it is determined at any time that the mobile electronic device is slipping, record the time during which the mobile electronic device continues to slip;
    根据所述可移动电子设备持续打滑的时间对所述可移动电子设备的路径进行纠正。Correct the path of the mobile electronic device according to the time during which the mobile electronic device continues to slip.
  33. 一种路径纠正装置,其特征在于,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求32所述的路径纠正方法。A path correcting device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the claims when the computer program is executed. The path correction method described in 32.
  34. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求32所述的路径纠正方法。A computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the device as claimed in claim 32. The path correction method described above.
PCT/CN2018/093467 2018-06-28 2018-06-28 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route WO2020000325A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201880002521.7A CN109511274A (en) 2018-06-28 2018-06-28 Universal wheel speed measuring device, method and system, skidding detection method, mobile electronic equipment, path correction method and device
PCT/CN2018/093467 WO2020000325A1 (en) 2018-06-28 2018-06-28 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route
CN201821135954.3U CN208705351U (en) 2018-06-28 2018-07-17 Universal wheel speed measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/093467 WO2020000325A1 (en) 2018-06-28 2018-06-28 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route

Publications (1)

Publication Number Publication Date
WO2020000325A1 true WO2020000325A1 (en) 2020-01-02

Family

ID=65756502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093467 WO2020000325A1 (en) 2018-06-28 2018-06-28 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route

Country Status (2)

Country Link
CN (2) CN109511274A (en)
WO (1) WO2020000325A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000325A1 (en) * 2018-06-28 2020-01-02 广州艾若博机器人科技有限公司 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route
CN110123208A (en) * 2019-03-27 2019-08-16 深圳乐行天下科技有限公司 A kind of method and robot controlling robot cleaner
CN111820819B (en) * 2019-04-20 2022-09-23 青岛塔波尔机器人技术股份有限公司 Steering auxiliary assembly, cleaning equipment and steering control method of cleaning equipment
CN112238451A (en) * 2019-07-17 2021-01-19 深圳拓邦股份有限公司 Slip detection method and device
CN112549072A (en) * 2019-09-10 2021-03-26 苏州科瓴精密机械科技有限公司 Robot slip detection method
CN113238078B (en) * 2021-02-24 2022-12-09 长光卫星技术股份有限公司 Satellite attitude control reaction flywheel Hall speed measurement in-orbit calibration method
WO2022193677A1 (en) * 2021-03-15 2022-09-22 深圳市杉川机器人有限公司 Self-moving apparatus
CN117208468B (en) * 2023-09-05 2024-04-09 大庆石油管理局有限公司 Tower crane belt length adjusting method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193339A1 (en) * 2001-03-15 2004-09-30 Jarl Hulden Method and device for determining position of an autonomous apparatus
CN201932254U (en) * 2010-12-30 2011-08-17 深圳市银星智能电器有限公司 Mobile robot capable of detecting motion state of driven wheel
CN202313115U (en) * 2011-11-24 2012-07-11 陈振港 Universal wheel speed testing device for cleaning robot
CN102880175A (en) * 2011-07-16 2013-01-16 苏州宝时得电动工具有限公司 Automatic walking equipment
CN104006823A (en) * 2014-06-16 2014-08-27 成都北斗群星智能科技有限公司 System and method for speed and distance measurement of sweeping robot based on universal wheel
CN205649470U (en) * 2016-01-06 2016-10-19 河南理工大学 A wheel -slip detects and repaiies positive system for intelligence machine of sweeping floor
CN106419744A (en) * 2016-12-07 2017-02-22 厦门视贝智能电器有限公司 Velocity-measuring mechanical wheel
CN107802213A (en) * 2017-11-03 2018-03-16 北京奇虎科技有限公司 Driven pulley, sweeping robot and the control method of sweeping robot

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020000325A1 (en) * 2018-06-28 2020-01-02 广州艾若博机器人科技有限公司 Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040193339A1 (en) * 2001-03-15 2004-09-30 Jarl Hulden Method and device for determining position of an autonomous apparatus
CN201932254U (en) * 2010-12-30 2011-08-17 深圳市银星智能电器有限公司 Mobile robot capable of detecting motion state of driven wheel
CN102880175A (en) * 2011-07-16 2013-01-16 苏州宝时得电动工具有限公司 Automatic walking equipment
CN202313115U (en) * 2011-11-24 2012-07-11 陈振港 Universal wheel speed testing device for cleaning robot
CN104006823A (en) * 2014-06-16 2014-08-27 成都北斗群星智能科技有限公司 System and method for speed and distance measurement of sweeping robot based on universal wheel
CN205649470U (en) * 2016-01-06 2016-10-19 河南理工大学 A wheel -slip detects and repaiies positive system for intelligence machine of sweeping floor
CN106419744A (en) * 2016-12-07 2017-02-22 厦门视贝智能电器有限公司 Velocity-measuring mechanical wheel
CN107802213A (en) * 2017-11-03 2018-03-16 北京奇虎科技有限公司 Driven pulley, sweeping robot and the control method of sweeping robot

Also Published As

Publication number Publication date
CN109511274A (en) 2019-03-22
CN208705351U (en) 2019-04-05

Similar Documents

Publication Publication Date Title
WO2020000325A1 (en) Apparatus, method and system for measuring speed of universal wheel, slip detection method, movable electronic apparatus, and method and route correction apparatus for correcting route
WO2020000320A1 (en) Optical flow sensor-based speed measuring method and apparatus, slip detecting method and apparatus, mobile electronic device, and path correcting method and apparatus
JP4553793B2 (en) Vacuum cleaner
JP4476872B2 (en) Vacuum cleaner
EP2932876B1 (en) Window cleaning robot and operation mode control method thereof
EP3252590B1 (en) Method for adjusting adjustable parameter of device, and device
US20060006316A1 (en) Self-running robot
CA2495175A1 (en) System and related methods for sensing forces on a movable barrier
JP2009183407A (en) Walking aid device
CN112238451A (en) Slip detection method and device
CN109126103A (en) Manned carrying tool control method
EP3835909A3 (en) Sweeping robot obstacle avoidance treatment method based on free move technology
US20200238527A1 (en) An automatic accompanying system
US10377021B2 (en) Smart power tool
CN102501257A (en) Multi-directional slip sensor
CN104702842A (en) Method for controlling rotating camera component for rotating and mobile terminal
JP3861757B2 (en) Metal belt circumference correction device
TWI327228B (en) Method for detecting and controlling output characteristics of a dc motor and a self-propelled apparatus using the same
TW201915513A (en) Automatic accompanying system and application method thereof which performs following according to a movement and a turning behavior of the user
WO2023185345A1 (en) Assisting method for cleaning apparatus and cleaning apparatus
JPH02190276A (en) Orientation stabilizing device for self-running type robot
Mansour et al. Event-based dynamic bandwidth management for teleoperation
JPS6246120U (en)
EP3973367B1 (en) Enhancing a virtual communication with a mobile communication device
CN106481080B (en) For the control method of pump truck rotation of rotary table, control device and pump truck

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

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

Country of ref document: EP

Kind code of ref document: A1