WO2023134746A1 - Speed control method and apparatus for movable device, and movable device, storage medium and computer program - Google Patents

Speed control method and apparatus for movable device, and movable device, storage medium and computer program Download PDF

Info

Publication number
WO2023134746A1
WO2023134746A1 PCT/CN2023/072093 CN2023072093W WO2023134746A1 WO 2023134746 A1 WO2023134746 A1 WO 2023134746A1 CN 2023072093 W CN2023072093 W CN 2023072093W WO 2023134746 A1 WO2023134746 A1 WO 2023134746A1
Authority
WO
WIPO (PCT)
Prior art keywords
waveform
movable device
acceleration
jerk
speed
Prior art date
Application number
PCT/CN2023/072093
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 达闼机器人股份有限公司
Publication of WO2023134746A1 publication Critical patent/WO2023134746A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Definitions

  • the present disclosure relates to the field of mobile devices, and in particular, to a speed control method and device for a mobile device, a mobile device, a storage medium, and a computer program.
  • wheeled robots with automatic navigation capabilities are appearing in the market one after another, such as restaurant delivery robots, hotel delivery robots, park inspection robots, logistics express robots and so on.
  • wheeled robots with automatic navigation capabilities are emerging in the market, such as restaurant delivery robots, hotel delivery robots, park inspection robots, and logistics express robots.
  • the robot can be expanded into a mobile device.
  • the moving parts of the chassis of these mobile devices are always connected to the host computer through communication, and receive the control commands of the host computer in real time to move and walk.
  • the control commands generally include automatic navigation and remote control debugging. Remote manual auxiliary control, etc., no matter which party sends the control command, if the chassis of the mobile device immediately controls the acceleration and deceleration according to the set speed, the chassis will vibrate seriously, causing the robot to vibrate.
  • the driving force in the acceleration and deceleration process of the existing mobile equipment is often relatively direct, and the algorithm is relatively simple, which usually causes the acceleration and deceleration of the mobile equipment to be uneven, especially when the speed of the mobile equipment is close to 0 or close to a constant speed.
  • the speed change is not smooth enough, and it will also cause the mobile device to shake, resulting in Terrible user experience.
  • the object of the embodiment of the present invention is to provide a speed control method, device, mobile device, storage medium and computer program of a movable device.
  • Motion also known as jerk
  • acceleration and speed three-order speed smoothing control to achieve smooth acceleration, uniform speed, and deceleration of mobile equipment, reduce the vibration of mobile equipment, improve the balance and stability of mobile equipment, and solve the problem of above question.
  • the mobile device can be a wheeled robot, such as a restaurant delivery robot, a hotel delivery robot, a park inspection robot, a logistics delivery robot, etc., or a balance car, an electric car, etc., wherein the balance car It can be a single wheel or two wheels, and the electric vehicle can be an electric car, an electric bicycle, an electric tricycle, an electric car toy, and the like.
  • the mobile device in the present disclosure is not limited thereto, and any electric device that can move can be used as the main device of the present disclosure.
  • an embodiment of the present invention provides a speed control method of a mobile device, including:
  • the second waveform has a positive wave band and a negative wave band
  • controlling the movement speed of the movable device according to the acceleration and the jerk, and the movement speed of the movable device corresponds to a third waveform distribution.
  • the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band.
  • the movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage, and in different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
  • the sinusoidal waveform corresponding to the second waveform is in the acceleration phase of the mobile device Divided into a positive half-band and a negative half-band, wherein there is a 0-value interval between the positive half-band and the negative half-band;
  • the waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
  • the jerk corresponding to the positive half-wave segment of the second waveform controls the rise of the acceleration
  • the negative half-wave segment of the second waveform corresponds to The jerk of controls the decline of the acceleration
  • the jerk corresponding to the negative half-band of the second waveform controls the rise in the opposite direction of the acceleration
  • the positive half-band of the second waveform corresponds to The jerk controls the decline in the opposite direction of the acceleration.
  • the first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform;
  • the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform
  • the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform.
  • a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
  • the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
  • the third waveform reflects the movement speed of the movable device
  • the velocity of the mobile device is distributed according to a sinusoidal rising portion
  • the speed of the movable device is distributed according to a constant value
  • the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
  • the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  • the frequency of the point value of the first waveform is the driving control of the movable device Frequency
  • the drive control frequency corresponds to the acceleration frequency of the movable device.
  • the drive control frequency is determined according to the acceleration duration of each gear of the movable device
  • the point value of the first waveform of the movable device in the acceleration and deceleration phases is generated by the acceleration duration.
  • the driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  • the method also includes:
  • the driving force of the movable device is reduced to 0;
  • the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
  • an embodiment of the present disclosure provides a speed control device for a mobile device, including:
  • an acceleration module configured to provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force
  • a jerk module configured to control the change of the driving force of the movable device through the jerk corresponding to the second waveform, the second waveform has a positive wave band and a negative wave band;
  • a speed control module configured to control the moving speed of the movable device according to the acceleration and the jerk, and the moving speed of the movable device corresponds to the third waveform distribution.
  • the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band.
  • the movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage, and in different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
  • the sinusoidal waveform corresponding to the second waveform is in the acceleration phase of the mobile device Divided into a positive half-band and a negative half-band, wherein there is a 0-value interval between the positive half-band and the negative half-band;
  • the waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
  • the jerk module is used to include:
  • the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration
  • the negative half-band of the second waveform corresponds to the jerk jerk controls the fall of said acceleration
  • the jerk corresponding to the negative half-band of the second waveform controls the rise in the opposite direction of the acceleration
  • the positive half-band of the second waveform corresponds to The jerk controls the decline in the opposite direction of the acceleration.
  • acceleration module is used to include:
  • said first waveform corresponds to an acceleration of said movable device, said first waveform's acceleration being controlled by said second waveform's jerk;
  • the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform
  • the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform.
  • a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
  • the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
  • the speed control module is used to include:
  • the third waveform reflects the movement speed of the movable device
  • the velocity of the mobile device is distributed according to a sinusoidal rising portion
  • the speed of the movable device is distributed according to a constant value
  • the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
  • the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  • the frequency of the point value of the first waveform is the driving control frequency of the movable device, and the driving control frequency corresponds to the acceleration frequency of the movable device.
  • the drive control frequency is determined according to the acceleration duration of each gear of the movable device
  • the point value of the first waveform of the movable device in the acceleration and deceleration phases is generated by the acceleration duration.
  • the driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  • the device also includes a constant velocity module, and the constant velocity module is used for:
  • the driving force of the movable device is reduced to 0;
  • the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
  • an embodiment of the present disclosure provides a mobile device, including:
  • At least one memory for storing computer readable instructions
  • At least one processor configured to run the computer-readable instructions, so that the mobile device implements the method according to any one of the above first aspects.
  • an electronic device including:
  • a processor configured to run the computer-readable instructions, so that the electronic device implements the method described in any one of the above first aspects.
  • an embodiment of the present disclosure provides a non-transitory computer-readable storage medium for storing computer-readable instructions.
  • the computer-readable instructions When executed by a computer, the computer implements Now any method described in the first aspect above.
  • the embodiments of the present disclosure provide a computer program, including instructions, which, when run on a computer, cause the computer to execute any of the methods described in the first aspect above.
  • the embodiment of the present disclosure discloses a speed control method, device, mobile device, storage medium and computer program of a movable device, wherein the method includes: using the driving force value corresponding to the point value of the first waveform to the movable device
  • the mobile device provides a driving force, and the acceleration of the movable device is obtained through the driving force; the change of the driving force of the movable device is controlled through the jerk corresponding to the second waveform, and the second waveform has a positive wave band and Negative band: controlling the moving speed of the movable device according to the acceleration and jerk, and the moving speed of the movable device corresponds to a third waveform distribution.
  • the smooth acceleration, constant speed and deceleration of the mobile device can be achieved through the three-order speed smooth control of the jerk (also called jerk), acceleration and speed of the mobile device During the movement process, the vibration of the mobile device can be reduced, the balance and stability of the mobile device can be improved, and the user experience can be improved.
  • the jerk also called jerk
  • FIG. 1 is a schematic flowchart of a speed control method for a mobile device provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of control waveforms of velocity, acceleration and jerk of a mobile device provided by an embodiment of the present disclosure
  • Fig. 3 is an example diagram of the configuration information of the speed, acceleration and jerk of the mobile device provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a speed control device of a mobile device provided by another embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device corresponding to a mobile device according to another embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the smooth acceleration and constant speed of the mobile device can be achieved through the jerk (also called jerk), acceleration and speed smoothing control of the third order of the mobile device.
  • the mobile device can be a wheeled robot, such as a restaurant delivery robot, a hotel delivery robot, a park inspection robot, a logistics delivery robot, etc., or a balance car, an electric car, etc., wherein the balance car It can be a single wheel or two wheels, and the electric vehicle can be an electric car, an electric bicycle, an electric tricycle, an electric car toy, and the like.
  • the mobile device in the present disclosure is not limited thereto, and any electric device that can move can be used as the main device of the present disclosure.
  • jerk also known as jerk
  • jerk is a mechanical term about a special motion, that is, the rate of change of acceleration with time.
  • position usually represented by x
  • distance from a known fixed point to the research point is measured in meters.
  • derived quantities of position can describe the state of motion of a particle more finely.
  • the first derived quantity is velocity or v, defined as the rate of change of position with respect to time, measured in m/s.
  • the second derived quantity is acceleration or a, commonly known as “acceleration”, defined as the rate of change of velocity with respect to time.
  • Acceleration is measured in m/s 2 (gravity causes a falling body to increase its speed by 9.8m/s for every 1 second; this also explains why acceleration is measured in cumbersome units).
  • the jerk or j is a third position-derived quantity that describes how the acceleration itself varies; it is in m/ s3 . With the help of the quantities x, v, a, and j, it is possible to classify most of the motions that people encounter in their daily lives.
  • j is the jerk
  • t is the time
  • a is the acceleration
  • Figure 1 is a schematic flow chart of a method for controlling the speed of a mobile device provided by an embodiment of the present disclosure.
  • the method provided by this embodiment can be executed by a mobile device or its control device, and the device can be implemented as software or as software Combination with hardware, the device can be integrated in a mobile device and a certain device in the control system, such as a terminal device.
  • the method includes the following steps:
  • Step S101 Provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force.
  • the smart mobile device in the home, office area or public place is a wheeled mobile device, which optionally has automatic navigation capabilities, such as a restaurant delivery mobile device, hotel Delivery of mobile equipment, park inspection of mobile equipment, logistics and express delivery of mobile equipment.
  • Small-power mobile equipment such as 100kg class is basically driven by two-wheel differential, mobile equipment above 100kg may be driven by three steering wheels, and mobile equipment with larger load capacity is driven by four steering wheels, such as 200kg level.
  • the moving parts of the chassis of these movable devices are always connected to the host computer through communication, and receive the control commands of the host computer in real time to move and walk.
  • the control commands generally include automatic navigation, remote control debugging, remote terminal control, etc., no matter which party sends Control commands.
  • the movable device does not immediately drive the movable device at the set speed, but uses jerk, acceleration and speed to smoothly control the acceleration and deceleration of the movable device, preventing Vibration of the chassis of the mobile device.
  • this figure shows a schematic diagram of control waveforms of the speed, acceleration and jerk of a mobile device provided by an embodiment of the present disclosure, showing the process of accelerating from zero to a constant speed and then decelerating to zero.
  • the first waveform curve 1 corresponds to the acceleration curve of the movable device
  • the second waveform curve 2 corresponds to the jerk curve of the movable device
  • the third waveform curve 3 corresponds to the speed curve of the movable device.
  • the movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage.
  • the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
  • the driving force value corresponding to the point value of the first waveform is used to provide the driving force to the movable device, and the acceleration of the movable device is obtained through the driving force.
  • the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device.
  • the drive control frequency is determined according to the acceleration duration of each gear of the movable device; the point value of the first waveform of the movable device in the acceleration and deceleration stages is generated through the acceleration duration, and the movable device
  • the driving force of the mobile device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  • Step S102 Control the driving force of the movable device through the jerk corresponding to the second waveform change, the second waveform has a positive band and a negative band.
  • step S102 in order to ensure the smooth acceleration, constant speed and deceleration motion of the movable device, the present disclosure controls the motion of the movable device through three-order velocity smoothing of jerk (also called jerk), acceleration and velocity of the movable device .
  • jerk also called jerk
  • the second waveform corresponding to the jerk is corresponding to a sinusoidal waveform with intervals of 0 values.
  • the jerk follows a sinusoidal waveform with a 0-value interval, specifically, the second waveform is a sine waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band.
  • the driving force is controlled by the jerk to increase or decrease smoothly; in the constant speed stage of the movable device, the jerk and the acceleration are kept at 0 value at the same time; Sinusoidal waveform, the control drive force increases or decreases smoothly in the opposite direction.
  • Step S103 Control the moving speed of the movable device according to the acceleration and jerk, where the moving speed of the movable device corresponds to a third waveform distribution.
  • step S103 the embodiment of the present disclosure provides the movable device with the driving force of accelerating change, and generates constantly changing acceleration.
  • the jerk (curve 2) at different stages corresponds to the distribution according to a certain curve, and the jerk can be controlled by jerk control.
  • the rate of change of the driving force (curve 1) of the mobile device (corresponding to the rate of change of acceleration).
  • the jerk is controlled according to the sinusoidal waveform with 0-value intervals to increase or decrease smoothly, thereby controlling the movement speed of the movable device (curve 3) to increase smoothly; in the movable device In the constant velocity stage, the jerk and acceleration are kept at 0 value at the same time, so as to control the movement speed (curve 3) of the movable device to move at a constant speed; Control the driving force to increase or decrease smoothly in the opposite direction, thereby controlling the movement speed of the movable device (curve 3) to decrease smoothly until it stops.
  • step 102 and step 103 are explained in conjunction with accompanying drawing 2, which shows a schematic diagram of the control waveform of the speed, acceleration and jerk of the mobile device, as shown in the figure, showing acceleration from zero to a constant speed, and then decelerating to zero the process of.
  • the first waveform curve 1 corresponds to the acceleration curve of the movable device
  • the second waveform curve 2 corresponds to the jerk curve of the movable device
  • the third waveform curve 3 corresponds to the movable device The velocity profile of the device.
  • the first waveform curve 1 represents the driving force received by the movable device, corresponding to the acceleration of the movable device, the expression is:
  • F is the driving force
  • m is the mass of the movable equipment (including the mass of the load on the movable equipment)
  • a is the acceleration of the movable equipment.
  • the driving force generates acceleration, and the smoother the driving force, the better the comfort.
  • the second waveform curve 2 corresponds to the jerk curve of the movable device.
  • the jerk or j is used to describe the change of the acceleration itself, and the unit is m/s 3 .
  • the jerk expression is:
  • j is the jerk
  • t is the time
  • a is the acceleration.
  • the change of the acceleration of the movable device is adjusted through the jerk, that is, the change of the driving force of the movable device is adjusted through the jerk, so that the driving force and acceleration of the movable device are smoother.
  • the variation of the driving force is controlled by a sine wave.
  • the rise of acceleration is controlled in the first half cycle
  • the second half cycle controls the decline of acceleration
  • the acceleration stage is controlled by three periods: P1, P2 and P3;
  • ⁇ The deceleration stage is controlled by three periods of P5, P6 and P7.
  • the driving force of acceleration change is provided for the front part of the acceleration movement of the mobile device, and the acceleration is continuously increased.
  • the jerk of the positive half-band controls the rate of change (corresponding to the rate of change of acceleration) of the driving force (curve 1) of the movable device.
  • the jerk is continuously increasing according to the sinusoidal curve, and the control driving force is accelerating to increase, thereby controlling the movement speed of the movable device (curve 3) Increase in acceleration;
  • the jerk decreases continuously according to the sinusoidal curve, and the driving force is controlled to increase in deceleration, thereby controlling the increase in the acceleration of the moving device's movement speed.
  • a constant driving force is provided for the middle part of the acceleration movement of the mobile device, resulting in a constant acceleration (curve 1), and the jerk (curve 2) in this stage is 0, that is, the rate of change of the driving force ( The rate of change corresponding to the acceleration) is 0, thereby controlling the movement speed of the movable device (curve 3) to increase uniformly.
  • the deceleration change driving force (curve 1) is provided for the latter part of the acceleration movement of the mobile device, resulting in a decreasing acceleration (curve 1), and the jerk in this stage (curve 2) is negative half
  • the sine waveform of the wave band controls the rate of change of the driving force of the movable device (corresponding to the rate of change of the acceleration) according to the jerk of the negative half wave band.
  • the jerk continues to increase in the negative direction according to the sinusoidal curve, and the control driving force is accelerating and decreasing, thereby controlling the movement speed of the movable equipment to decelerate and increase; in the second half of P3, the jerk follows the negative direction.
  • the sinusoidal curve of the half-wave band decreases continuously in the negative direction, and the driving force is controlled to decrease in deceleration, thereby controlling the increase in deceleration of the moving speed (curve 3) of the movable device. Until the jerk and acceleration reach 0 value at the same time, the movement speed of the movable device reaches the highest, and then it keeps moving at a constant speed in the P4 stage.
  • the jerk (curve 2) and acceleration (curve 1) keep 0 at the same time, and the movement speed of the mobile device (curve 3) maintains the preset speed at a constant speed.
  • the speed can be the highest speed, or a preset certain speed.
  • the driving force is kept at 0, and the movable device is controlled to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction; wherein the movable device is in the process of moving at a constant speed, the The acceleration of the movable device is 0, and the jerk is 0.
  • the jerk curve (curve 2) of this stage is axisymmetric to the jerk curve of the P3 stage, and the acceleration curve (curve 1) is point-symmetrical to the acceleration curve of the P3 stage.
  • the speed curve (curve 3) is axisymmetric to the speed curve of the P3 stage.
  • an increasing driving force in the opposite direction (curve 1) is provided to generate an increasing acceleration in the opposite direction (curve 1).
  • the jerk in this stage (curve 2) is a sinusoidal waveform in the negative half-wave band.
  • the half-band jerk controls the rate of change of the driving force of the movable device (corresponding to the change of acceleration conversion rate).
  • the jerk increases continuously in the negative direction according to the sinusoidal curve, and the driving force is controlled to accelerate and increase in the opposite direction, thereby controlling the movement speed of the movable equipment to gradually decrease; in the second half of P5, the jerk The motion is continuously reduced in the negative direction according to the sinusoidal curve of the negative half-wave band, and the driving force is controlled to decelerate and increase in the negative direction, thereby controlling the gradual acceleration and decrease of the moving speed (curve 3) of the movable device.
  • the jerk curve (curve 2) of this stage is axisymmetric to the jerk curve of the P3 stage, and it is a 0 value stage.
  • the acceleration curve (curve 1) and the P3 stage The acceleration curve is point-symmetric, and the speed curve (curve 3) is axisymmetric to the speed curve of the P3 stage.
  • This stage provides a constant driving force in the negative direction, resulting in constant acceleration in the negative direction (curve 1), and the jerk (curve 2) in this stage is 0, that is, the rate of change of the driving force (corresponding to the rate of change of acceleration) is 0 , so as to control the moving speed of the movable device (curve 3) to decrease uniformly.
  • the jerk curve (curve 2) of this stage is axisymmetric to the jerk curve of the P3 stage, and the acceleration curve (curve 1) is point-symmetrical to the acceleration curve of the P3 stage.
  • the speed curve (curve 3) is axisymmetric to the speed curve of the P3 stage.
  • the jerk (curve 2) in this stage is a sine wave in the positive half-band, and the movement of the movable device is controlled according to the jerk in the positive half-band.
  • the rate of change of the driving force (curve 1) (corresponding to the rate of change of acceleration).
  • the jerk is continuously increasing according to the sinusoidal curve, and the driving force is controlled to accelerate and decrease in the negative direction, thereby controlling the gradual deceleration of the moving speed of the movable device (curve 3);
  • the jerk is continuously decreasing according to the sinusoidal curve, and the driving force is controlled to decelerate and decrease in the negative direction, thereby controlling the movement speed of the movable device to gradually decelerate.
  • the jerk and acceleration reach 0 at the same time, at this time the movement speed of the movable device reaches 0, and the motion state becomes static.
  • the sine waveform corresponding to the second waveform is divided into a positive half-wave segment and a negative half-wave segment during the acceleration phase of the movable device, wherein there is a 0-value interval between the positive half-wave segment and the negative half-wave segment ;
  • the waveform of the second waveform in the deceleration phase of the movable device is the same as that of the movable device.
  • the waveforms of the equipment in the acceleration phase are axisymmetric to each other.
  • the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration
  • the negative half-band of the second waveform corresponds to the jerk
  • the jerk controls the decline of the acceleration; in the deceleration phase of the movable device, the jerk corresponding to the negative half-wave band of the second waveform controls the rise of the acceleration in the opposite direction, the The jerk corresponding to the positive half-wave segment of the second waveform controls the decline in the opposite direction of the acceleration.
  • the first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform; during the acceleration phase of the movable device, corresponding to the second
  • the positive half-wave segment of the waveform constitutes the sinusoidal distribution of the first waveform
  • the 0-value interval corresponding to the second waveform constitutes the constant-value distribution of the first waveform
  • the negative half-wave segment on the side of the second waveform constitutes the A sinusoidal distribution of the first waveform, forming a flat top sinusoidal distribution of the first waveform as a whole during the acceleration phase of the movable device; during a deceleration phase of the movable device, the distribution of the first waveform is consistent with the
  • the first waveforms of the acceleration phase of the movable device are point-symmetrical to each other.
  • the third waveform reflects the moving speed of the movable device; in the acceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal rising part; in the constant speed stage of the movable device, the The speed of the movable device is distributed according to a constant value; during the deceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal descending part, and is mutually axis with the waveform of the movable device in the acceleration stage symmetry.
  • the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  • the speed control method of the movable device also includes:
  • the driving force of the movable device is reduced to 0; the driving force is kept at 0, and the movable device is controlled to move at a constant speed until The movable device automatically detects an obstacle or receives a deceleration command; wherein the movable device is in a process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
  • Fig. 3 shows the velocity, acceleration and jerk of the mobile device provided by an embodiment of the present disclosure
  • the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device.
  • the control of the actuator (wheel) in the figure Frequency, that is, 120 speed adjustment controls per second for the actuator of the driving force of the movable device.
  • analogous to the driving of a car there are straight-line driving and turning driving, and the movable device can drive in a straight line or move left and right When driving, you can also rotate on the spot, or you can mix straight driving and rotation, that is, you can walk while turning
  • a configuration file is defined below to describe the control frequency of the driving force of the movable device, which specifically includes the following contents:
  • the chart of the configuration file in the figure corresponds to the definition of three configurations: straight-line driving, left-right translational driving, and in-situ rotation.
  • the numbers in the selected configuration are P1, P2, P3, P4, P5, P6, and P7 in the acceleration curve, among which P1, P2, and P3 manage the acceleration process, and P4 defines the overtime automatic braking time, such as writing 1.0 means that the chassis will automatically stop if it does not receive a command from the host computer for more than 1 second.
  • P5, P6, and P7 are responsible for the braking curve. Whether it is the acceleration process or the braking process, if the upper computer changes different speed values, the chassis will jump to another corresponding curve. This process is like a car shifting gears, and the acceleration and deceleration curves have changed.
  • the entire acceleration process takes 3.75 seconds and is output in three stages. After 150 points in each stage, the acceleration bottom reaches the maximum. In the second stage, the acceleration at 150 points remains unchanged, and the speed continues to rise. After 150 points in the third stage, the acceleration and jerk At the same time to zero, the speed is constant.
  • the value of the acceleration is calculated for the time integration, and the acceleration is further calculated for the speed value by integrating the acceleration with the time.
  • the chassis first selects the closest speed gear to match, and adjusts the output amplitude of the sine wave to affect the acceleration value.
  • the final constant speed value is consistent with the set value.
  • the mobile device chassis also adopts the same control process when decelerating. The difference is that the sine wave starts from PI, goes to zero, and then starts from zero to PI again.
  • Fig. 4 is a schematic diagram of a speed control device of a mobile device provided by another embodiment of the present disclosure.
  • the speed control device of the movable device includes: an acceleration module 401 , a jerk module 402 and a speed control module 403 . in:
  • the acceleration module 401 is configured to control the variation of the driving force of the movable device through the jerk corresponding to the second waveform.
  • the moving part of the chassis of the mobile device is always connected to the host computer through communication, and receives the control commands of the host computer in real time to move and walk.
  • the control commands generally include automatic navigation, remote control debugging, and remote terminal control. Which party sends the control command, in this disclosure, the movable device will not immediately drive the movable device at the set speed, but use jerk, acceleration and speed to smoothly control the movement of the movable device Accelerate, decelerate, prevent movable equipment Chassis shaking.
  • the acceleration module is specifically configured to: provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force.
  • the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device.
  • the drive control frequency is determined according to the acceleration duration of each gear of the movable device; the point value of the first waveform of the movable device in the acceleration and deceleration stages is generated through the acceleration duration, and the movable device
  • the driving force of the mobile device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  • the acceleration module is specifically further configured to: the first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform;
  • the acceleration stage of the second waveform corresponds to the positive half-band of the second waveform to form the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform forms the constant-value distribution of the first waveform.
  • the negative half-wave segment on the side of the second waveform constitutes the sinusoidal distribution of the first waveform, and the flat top sinusoidal distribution of the first waveform is formed as a whole in the acceleration phase of the movable device; in the deceleration phase of the movable device, The distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
  • the jerk module 402 is configured to control the change of the driving force of the movable device through the jerk corresponding to the second waveform, and the second waveform has a positive wave band and a negative wave band.
  • the present disclosure controls the motion of the movable device through three-order velocity smoothing of jerk (also called jerk), acceleration and velocity of the movable device .
  • jerk also called jerk
  • the second waveform corresponding to the jerk is corresponding to a sinusoidal waveform with intervals of 0 values.
  • the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave segment and the negative wave segment.
  • the jerk In the acceleration stage of the movable device, the jerk is controlled to increase or decrease smoothly according to the sinusoidal waveform with intervals of 0 values; in the constant speed stage of the movable device, the jerk and acceleration are kept at 0 value at the same time; During the deceleration phase of the mobile device, the jerk is According to the sinusoidal waveform with intervals of 0 values, the driving force is controlled to increase or decrease smoothly in the reverse direction.
  • the sine waveform corresponding to the second waveform is divided into a positive half-wave segment and a negative half-wave segment during the acceleration phase of the movable device, wherein there is a 0-value interval between the positive half-wave segment and the negative half-wave segment;
  • the waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
  • the jerk module is specifically configured to: during the acceleration phase of the movable device, the jerk corresponding to the positive half-wave band of the second waveform controls the increase of the acceleration, and the second The jerk corresponding to the negative half-wave segment of the waveform controls the decline of the acceleration; during the deceleration phase of the movable device, the jerk corresponding to the negative half-wave segment of the second waveform controls The rise in the opposite direction of the acceleration, and the jerk corresponding to the positive half-band of the second waveform control the fall in the opposite direction of the acceleration.
  • the speed control module 403 is configured to control the moving speed of the movable device according to the acceleration and jerk, and the moving speed of the movable device corresponds to the third waveform distribution.
  • the embodiment of the present disclosure provides the driving force of acceleration and change for the movable device, and generates constantly changing acceleration.
  • the jerk (curve 2) in different stages corresponds to the distribution according to a certain curve, and the driving force of the movable device is controlled by the jerk (Curve 1) rate of change (corresponding rate of change of acceleration).
  • the jerk is controlled according to the sinusoidal waveform with 0-value intervals to increase or decrease smoothly, thereby controlling the movement speed of the movable device (curve 3) to increase smoothly; in the movable device In the constant velocity stage, the jerk and acceleration are kept at 0 value at the same time, so as to control the movement speed (curve 3) of the movable device to move at a constant speed; Control the driving force to increase or decrease smoothly in the opposite direction, thereby controlling the movement speed of the movable device (curve 3) to decrease smoothly until it stops.
  • the speed control module is specifically used for: the third waveform reflects the moving speed of the movable device; during the acceleration phase of the movable device, the speed of the movable device is distributed according to a sinusoidal rising part; In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value; in the deceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal descending.
  • the waveforms of the mobile device during the acceleration phase are axisymmetric to each other.
  • the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  • the speed control device of the movable device also includes:
  • the constant speed module is used to: reduce the driving force of the movable device to 0 after the speed of the controlled movable device reaches a preset speed; keep the driving force at 0, and control the movable device
  • the device is moving at a constant speed until the movable device automatically detects an obstacle or receives a deceleration command; wherein the movable device is moving at a constant speed, the acceleration of the movable device is 0, and the jerk is 0.
  • the device shown in FIG. 4 can execute the method of the embodiment shown in FIG. 1 .
  • the device shown in FIG. 4 can execute the method of the embodiment shown in FIG. 1 .
  • FIG. 5 it shows a schematic structural diagram of an electronic device 500 corresponding to a mobile device suitable for implementing another embodiment of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like.
  • the electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may be randomly accessed according to a program stored in a read-only memory (ROM) 502 or loaded from a storage device 508.
  • ROM read-only memory
  • RAM random access memory
  • various appropriate actions and processes are executed by programs in the memory (RAM) 503 .
  • RAM random access memory
  • various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other through a communication line 504.
  • An input/output (I/O) interface 505 is also connected to the communication line 504 .
  • the following devices can be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration
  • input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration
  • the output device 507 of the device or the like including, for example, a magnetic a storage device 508 such as a tape, a hard disk, or the like
  • the communication means 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data. While FIG. 4 shows electronic device 500 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network via communication means 509, or from storage means 508, or from ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • the program code contained on the computer readable medium can be used in any suitable Media transmission, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium Communications (eg, communication networks) are interconnected.
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: executes the interaction method in the above-mentioned embodiment.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two boxes shown in succession can actually be Executed substantially in parallel, they may also sometimes be executed in reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • an electronic device including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be used by the Instructions executed by at least one processor, the instructions being executed by the at least one processor, so that the at least one processor can execute any one of the methods in the foregoing first aspect.
  • non-transitory computer-readable storage medium characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer The instructions are used to cause the computer to execute any one of the methods in the aforementioned first aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A speed control method and apparatus for a movable device, and a movable device, a storage medium and a computer program. The method comprises: providing a driving force for a movable device according to a driving force value which corresponds to the numerical values of points in a first waveform, and obtaining the acceleration of the movable device by means of the driving force (S101); controlling a change in the driving force of the movable device by means of jerk which corresponds to a second waveform, wherein the second waveform has a positive waveband and a negative waveband (S102); and controlling the motion speed of the movable device according to the acceleration and the jerk, wherein the motion speed of the movable device corresponds to a third waveform distribution (S103). The speed control method for a movable device can realize, by means of smooth control over three levels of speeds, i.e. jerk, acceleration and speed of the movable device, a smooth motion process of the movable device at smooth acceleration, constant speed and deceleration, thereby reducing the shake of the movable device, improving the balance stability of the movable device, and improving the user experience.

Description

可移动设备的速度控制方法、装置、可移动设备、存储介质及计算机程序Speed control method, device, movable device, storage medium and computer program of movable device
交叉引用cross reference
本申请要求2022年01月13日递交的、申请号为“202210039509.1”、发明名称为“可移动设备的速度控制方法、装置及可移动设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted on January 13, 2022, with the application number "202210039509.1", and the title of the invention is "speed control method, device and mobile equipment for mobile equipment", the entire content of which is incorporated by reference incorporated in this application.
技术领域technical field
本公开涉及可移动设备领域,尤其涉及一种可移动设备的速度控制方法、装置、可移动设备、存储介质及计算机程序。The present disclosure relates to the field of mobile devices, and in particular, to a speed control method and device for a mobile device, a mobile device, a storage medium, and a computer program.
背景技术Background technique
随着智能机器人的发展,机器人的应用越来越普及。目前市场上陆续出现的具有自动导航能力的轮式机器人,比如餐厅送餐机器人、酒店递送机器人、园区巡检机器人、物流快递机器人等等。目前市场上陆续出现的具有自动导航能力的轮式机器人,比如餐厅送餐机器人,酒店递送机器人,园区巡检机器人,物流快递机器人。当然,其中机器人可扩展成可移动设备,这些可移动设备底盘运动部分通过通信总与上位机相连,实时接收上位机的控制指令来进行移动行走,控制命令一般会包括自动导航、调试遥控器,远程人工辅助控制等,无论哪一方发来的控制命令,如果可移动设备底盘马上按设定的速度来控制加速、减速,底盘的抖动较严重,造成机器人抖动。With the development of intelligent robots, the application of robots is becoming more and more popular. At present, wheeled robots with automatic navigation capabilities are appearing in the market one after another, such as restaurant delivery robots, hotel delivery robots, park inspection robots, logistics express robots and so on. At present, wheeled robots with automatic navigation capabilities are emerging in the market, such as restaurant delivery robots, hotel delivery robots, park inspection robots, and logistics express robots. Of course, the robot can be expanded into a mobile device. The moving parts of the chassis of these mobile devices are always connected to the host computer through communication, and receive the control commands of the host computer in real time to move and walk. The control commands generally include automatic navigation and remote control debugging. Remote manual auxiliary control, etc., no matter which party sends the control command, if the chassis of the mobile device immediately controls the acceleration and deceleration according to the set speed, the chassis will vibrate seriously, causing the robot to vibrate.
同时,现有的可移动设备加速、减速过程中的驱动力往往较为直接,算法比较简单,通常会造成可移动设备加速、减速的不平滑,尤其在可移动设备的速度接近0或接近匀速的速度变化不够平滑,也会引起可移动设备抖动,造成 极差的用户体验。At the same time, the driving force in the acceleration and deceleration process of the existing mobile equipment is often relatively direct, and the algorithm is relatively simple, which usually causes the acceleration and deceleration of the mobile equipment to be uneven, especially when the speed of the mobile equipment is close to 0 or close to a constant speed. The speed change is not smooth enough, and it will also cause the mobile device to shake, resulting in Terrible user experience.
发明内容Contents of the invention
本发明实施方式的目的在于提供一种可移动设备的速度控制方法、装置、可移动设备、存储介质及计算机程序,在可移动设备加速、匀速、减速的运动过程中,通过可移动设备的急动度(也称加加速度)、加速度和速度的三阶速度平滑控制来达到可移动设备平滑加速、匀速、减速的运动过程,减少可移动设备的抖动,提高可移动设备的平衡稳定性,解决上述问题。其中,在本公开中,可移动设备可以是轮式机器人,比如餐厅送餐机器人、酒店递送机器人、园区巡检机器人、物流快递机器人等,也可以是平衡车、电动车等,其中,平衡车可以是单轮或双轮,电动车可以是电动汽车、电动自行车、电动三轮车、电动车玩具等。本公开中的可移动设备不限于此,只要能够移动的电动设备都可以作为本公开方案的主体设备。The object of the embodiment of the present invention is to provide a speed control method, device, mobile device, storage medium and computer program of a movable device. Motion (also known as jerk), acceleration and speed three-order speed smoothing control to achieve smooth acceleration, uniform speed, and deceleration of mobile equipment, reduce the vibration of mobile equipment, improve the balance and stability of mobile equipment, and solve the problem of above question. Among them, in this disclosure, the mobile device can be a wheeled robot, such as a restaurant delivery robot, a hotel delivery robot, a park inspection robot, a logistics delivery robot, etc., or a balance car, an electric car, etc., wherein the balance car It can be a single wheel or two wheels, and the electric vehicle can be an electric car, an electric bicycle, an electric tricycle, an electric car toy, and the like. The mobile device in the present disclosure is not limited thereto, and any electric device that can move can be used as the main device of the present disclosure.
为了实现上述目的,第一方面,本发明的实施例提供了一种可移动设备的速度控制方法,包括:In order to achieve the above object, in the first aspect, an embodiment of the present invention provides a speed control method of a mobile device, including:
以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度;providing a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtaining an acceleration of the movable device through the driving force;
通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段;Controlling the change of the driving force of the movable device through the jerk corresponding to the second waveform, the second waveform has a positive wave band and a negative wave band;
根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。controlling the movement speed of the movable device according to the acceleration and the jerk, and the movement speed of the movable device corresponds to a third waveform distribution.
进一步的,所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。Further, the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band.
进一步的,所述可移动设备的运动分为加速阶段、匀速阶段和减速阶段,在可移动设备的不同阶段,所述第一波形、第二波形和第三波形具有各自对应的对称分布。Further, the movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage, and in different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
进一步的,所述第二波形对应的正弦波形在所述可移动设备的加速阶段 分为正半波段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;Further, the sinusoidal waveform corresponding to the second waveform is in the acceleration phase of the mobile device Divided into a positive half-band and a negative half-band, wherein there is a 0-value interval between the positive half-band and the negative half-band;
所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设备在加速阶段的波形互为轴对称。The waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
进一步的,在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;Further, in the acceleration phase of the movable device, the jerk corresponding to the positive half-wave segment of the second waveform controls the rise of the acceleration, and the negative half-wave segment of the second waveform corresponds to The jerk of controls the decline of the acceleration;
在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。During the deceleration phase of the movable device, the jerk corresponding to the negative half-band of the second waveform controls the rise in the opposite direction of the acceleration, and the positive half-band of the second waveform corresponds to The jerk controls the decline in the opposite direction of the acceleration.
进一步的,所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;Further, the first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform;
在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;In the acceleration phase of the movable device, the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform. a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。In the deceleration phase of the movable device, the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
进一步的,所述第三波形反应所述可移动设备的运动速度;Further, the third waveform reflects the movement speed of the movable device;
在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;During the acceleration phase of the mobile device, the velocity of the mobile device is distributed according to a sinusoidal rising portion;
在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布;In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value;
在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。In the deceleration phase of the movable device, the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
进一步的,所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。Further, when the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
进一步的,所述第一波形的点数值的频率为所述可移动设备的驱动控制 频率,所述驱动控制频率对应所述可移动设备的加速频率。Further, the frequency of the point value of the first waveform is the driving control of the movable device Frequency, the drive control frequency corresponds to the acceleration frequency of the movable device.
进一步的,所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;Further, the drive control frequency is determined according to the acceleration duration of each gear of the movable device;
通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波形的点数值。The point value of the first waveform of the movable device in the acceleration and deceleration phases is generated by the acceleration duration.
进一步的,所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。Further, the driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
进一步的,所述方法还包括:Further, the method also includes:
在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;After the speed of controlling the movable device is accelerated to a preset speed, the driving force of the movable device is reduced to 0;
保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;Keeping the driving force at 0, controlling the movable device to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction;
其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。Wherein the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
第二方面,本公开实施例提供一种可移动设备的速度控制装置,包括:In a second aspect, an embodiment of the present disclosure provides a speed control device for a mobile device, including:
加速度模块,用于以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度;an acceleration module, configured to provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force;
急动度模块,用于通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段;a jerk module, configured to control the change of the driving force of the movable device through the jerk corresponding to the second waveform, the second waveform has a positive wave band and a negative wave band;
速度控制模块,用于根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。A speed control module, configured to control the moving speed of the movable device according to the acceleration and the jerk, and the moving speed of the movable device corresponds to the third waveform distribution.
进一步的,所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。Further, the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band.
进一步的,所述可移动设备的运动分为加速阶段、匀速阶段和减速阶段,在可移动设备的不同阶段,所述第一波形、第二波形和第三波形具有各自对应的对称分布。Further, the movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage, and in different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
进一步的,所述第二波形对应的正弦波形在所述可移动设备的加速阶段 分为正半波段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;Further, the sinusoidal waveform corresponding to the second waveform is in the acceleration phase of the mobile device Divided into a positive half-band and a negative half-band, wherein there is a 0-value interval between the positive half-band and the negative half-band;
所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设备在加速阶段的波形互为轴对称。The waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
进一步的,所述急动度模块,用于包括:Further, the jerk module is used to include:
在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;During the acceleration phase of the movable device, the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration, and the negative half-band of the second waveform corresponds to the jerk jerk controls the fall of said acceleration;
在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。During the deceleration phase of the movable device, the jerk corresponding to the negative half-band of the second waveform controls the rise in the opposite direction of the acceleration, and the positive half-band of the second waveform corresponds to The jerk controls the decline in the opposite direction of the acceleration.
进一步的,所述加速度模块,用于包括:Further, the acceleration module is used to include:
所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;said first waveform corresponds to an acceleration of said movable device, said first waveform's acceleration being controlled by said second waveform's jerk;
在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;In the acceleration phase of the movable device, the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform. a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。In the deceleration phase of the movable device, the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
进一步的,所述速度控制模块,用于包括:Further, the speed control module is used to include:
所述第三波形反应所述可移动设备的运动速度;The third waveform reflects the movement speed of the movable device;
在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;During the acceleration phase of the mobile device, the velocity of the mobile device is distributed according to a sinusoidal rising portion;
在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布;In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value;
在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。 In the deceleration phase of the movable device, the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
进一步的,所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。Further, when the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
进一步的,所述第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率。Further, the frequency of the point value of the first waveform is the driving control frequency of the movable device, and the driving control frequency corresponds to the acceleration frequency of the movable device.
进一步的,所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;Further, the drive control frequency is determined according to the acceleration duration of each gear of the movable device;
通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波形的点数值。The point value of the first waveform of the movable device in the acceleration and deceleration phases is generated by the acceleration duration.
进一步的,所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。Further, the driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
进一步的,所述装置还包括匀速模块,所述匀速模块用于:Further, the device also includes a constant velocity module, and the constant velocity module is used for:
在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;After the speed of controlling the movable device is accelerated to a preset speed, the driving force of the movable device is reduced to 0;
保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;Keeping the driving force at 0, controlling the movable device to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction;
其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。Wherein the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
第三方面,本公开实施例提供一种可移动设备,包括:In a third aspect, an embodiment of the present disclosure provides a mobile device, including:
至少一个存储器,用于存储计算机可读指令;以及at least one memory for storing computer readable instructions; and
至少一个处理器,用于运行所述计算机可读指令,使得所述可移动设备实现根据上述第一方面中任意一项所述的方法。At least one processor configured to run the computer-readable instructions, so that the mobile device implements the method according to any one of the above first aspects.
第四方面,本公开实施例提供一种电子设备,包括:In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:
存储器,用于存储计算机可读指令;以及memory for storing computer readable instructions; and
处理器,用于运行所述计算机可读指令,使得所述电子设备实现上述第一方面中任意一项所述的方法。A processor, configured to run the computer-readable instructions, so that the electronic device implements the method described in any one of the above first aspects.
第五方面,本公开实施例提供一种非暂态计算机可读存储介质,用于存储计算机可读指令,当所述计算机可读指令由计算机执行时,使得所述计算机实 现上述第一方面中任意所述的方法。In a fifth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium for storing computer-readable instructions. When the computer-readable instructions are executed by a computer, the computer implements Now any method described in the first aspect above.
第六方面,本公开实施例提供一种计算机程序,包括指令,当其在计算机上运行时,使得计算机执行上述第一方面中任意所述的方法。In a sixth aspect, the embodiments of the present disclosure provide a computer program, including instructions, which, when run on a computer, cause the computer to execute any of the methods described in the first aspect above.
本公开实施例公开了一种可移动设备的速度控制方法、装置、可移动设备、存储介质及计算机程序,其中所述方法包括:以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度;通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段;根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。通过本公开的可移动设备的速度控制方法,能够通过可移动设备的急动度(也称加加速度)、加速度和速度的三阶速度平滑控制来达到可移动设备平滑加速、匀速、减速的平滑运动过程,减少可移动设备的抖动,提高可移动设备的平衡稳定性,以及提升用户体验。The embodiment of the present disclosure discloses a speed control method, device, mobile device, storage medium and computer program of a movable device, wherein the method includes: using the driving force value corresponding to the point value of the first waveform to the movable device The mobile device provides a driving force, and the acceleration of the movable device is obtained through the driving force; the change of the driving force of the movable device is controlled through the jerk corresponding to the second waveform, and the second waveform has a positive wave band and Negative band: controlling the moving speed of the movable device according to the acceleration and jerk, and the moving speed of the movable device corresponds to a third waveform distribution. Through the speed control method of the mobile device disclosed in the present disclosure, the smooth acceleration, constant speed and deceleration of the mobile device can be achieved through the three-order speed smooth control of the jerk (also called jerk), acceleration and speed of the mobile device During the movement process, the vibration of the mobile device can be reduced, the balance and stability of the mobile device can be improved, and the user experience can be improved.
上述说明仅是本公开技术方案的概述,为了能更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为让本公开的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solution of the present disclosure. In order to better understand the technical means of the present disclosure, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present disclosure more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
图1为本公开一实施例提供的可移动设备的速度控制方法流程示意图;FIG. 1 is a schematic flowchart of a speed control method for a mobile device provided by an embodiment of the present disclosure;
图2为本公开一实施例提供的可移动设备的速度、加速度及急动度的控制波形示意图;FIG. 2 is a schematic diagram of control waveforms of velocity, acceleration and jerk of a mobile device provided by an embodiment of the present disclosure;
图3为本公开一实施例提供的可移动设备的速度、加速度和急动度的配置信息示例图;Fig. 3 is an example diagram of the configuration information of the speed, acceleration and jerk of the mobile device provided by an embodiment of the present disclosure;
图4为本公开另一实施例提供的可移动设备的速度控制装置示意图;FIG. 4 is a schematic diagram of a speed control device of a mobile device provided by another embodiment of the present disclosure;
图5为本公开另一实施例提供的可移动设备对应的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device corresponding to a mobile device according to another embodiment of the present disclosure.
具体实施方式 Detailed ways
为了能够更清楚地描述本公开的技术内容,下面结合具体实施例来进行进一步的描述。In order to describe the technical content of the present disclosure more clearly, further description will be given below in conjunction with specific embodiments.
以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment"; the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。下面 参考附图详细描述公开的各实施方式。The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. under Disclosed embodiments are described in detail with reference to the accompanying drawings.
本公开中在可移动设备加速、匀速、减速的运动过程中,通过可移动设备的急动度(也称加加速度)、加速度和速度的三阶速度平滑控制来达到可移动设备平滑加速、匀速、减速的运动过程。其中,在本公开中,可移动设备可以是轮式机器人,比如餐厅送餐机器人、酒店递送机器人、园区巡检机器人、物流快递机器人等,也可以是平衡车、电动车等,其中,平衡车可以是单轮或双轮,电动车可以是电动汽车、电动自行车、电动三轮车、电动车玩具等。本公开中的可移动设备不限于此,只要能够移动的电动设备都可以作为本公开方案的主体设备。In this disclosure, in the process of acceleration, constant speed and deceleration of the mobile device, the smooth acceleration and constant speed of the mobile device can be achieved through the jerk (also called jerk), acceleration and speed smoothing control of the third order of the mobile device. , The process of deceleration. Among them, in this disclosure, the mobile device can be a wheeled robot, such as a restaurant delivery robot, a hotel delivery robot, a park inspection robot, a logistics delivery robot, etc., or a balance car, an electric car, etc., wherein the balance car It can be a single wheel or two wheels, and the electric vehicle can be an electric car, an electric bicycle, an electric tricycle, an electric car toy, and the like. The mobile device in the present disclosure is not limited thereto, and any electric device that can move can be used as the main device of the present disclosure.
其中,急动度(也称加加速度)是关于一种特殊运动的力学术语,即加速度随时间的变化率。物理描述质点运动的主要变量是位置,通常用x表示,从一个已知的定点到研究点的距离用米为单位来量度。在伽利略和牛顿力学中,位置的几个导出量可以更加精细地描述质点的运动状态。第一个导出量是速度或v,定义为位置对时间的变化率,以m/s为单位来量度。第二个导出量是加速度或a,俗称“加快”,定义为速度对时间的变化率。加速度用m/s2为单位来量度(重力使落体每经过1秒,速度增加9.8m/s;这也说明为什么用麻烦的单位来量度加速度)。急动度或j是第三个位置导出量,用来描述加速度本身的变化方式;是用m/s3为单位。借助x、v、a和j这几个量,可以将人们日常生活中遇到的大部分运动进行分类。Among them, jerk (also known as jerk) is a mechanical term about a special motion, that is, the rate of change of acceleration with time. The main variable in physical description of particle motion is position, usually represented by x, and the distance from a known fixed point to the research point is measured in meters. In Galilean and Newtonian mechanics, several derived quantities of position can describe the state of motion of a particle more finely. The first derived quantity is velocity or v, defined as the rate of change of position with respect to time, measured in m/s. The second derived quantity is acceleration or a, commonly known as "acceleration", defined as the rate of change of velocity with respect to time. Acceleration is measured in m/s 2 (gravity causes a falling body to increase its speed by 9.8m/s for every 1 second; this also explains why acceleration is measured in cumbersome units). The jerk or j is a third position-derived quantity that describes how the acceleration itself varies; it is in m/ s3 . With the help of the quantities x, v, a, and j, it is possible to classify most of the motions that people encounter in their daily lives.
急动度满足:jt=aThe jerk is satisfied: jt=a
其中,j为急动度,t为时间,a为加速度。Among them, j is the jerk, t is the time, and a is the acceleration.
图1为本公开实施例提供的可移动设备的速度控制方法的流程示意图,本实施例提供的方法可以由一可移动设备或其控制装置来执行,该装置可以实现为软件,或者实现为软件和硬件的组合,该装置可以集成设置在可移动设备与控制系统中的某设备中,比如终端设备中。如图1所示,该方法包括如下步骤: Figure 1 is a schematic flow chart of a method for controlling the speed of a mobile device provided by an embodiment of the present disclosure. The method provided by this embodiment can be executed by a mobile device or its control device, and the device can be implemented as software or as software Combination with hardware, the device can be integrated in a mobile device and a certain device in the control system, such as a terminal device. As shown in Figure 1, the method includes the following steps:
步骤S101:以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度。Step S101: Provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force.
在步骤S101中,本公开实施例中,家庭中、办公区或公共场合中的智能可移动设备为轮式可移动设备,可选择的,具有自动导航能力,比如餐厅送餐可移动设备,酒店递送可移动设备,园区巡检可移动设备,物流快递可移动设备。小功率的可移动设备比如100kg级别的基本上是由两轮差速驱动的,100kg以上的可移动设备可能会采用三舵轮驱动,更大负载能力的可移动设备由四舵轮来驱动,比如200kg级别的。这些可移动设备底盘运动部分通过通信总与上位机相连,实时接收上位机的控制指令来进行移动行走,控制命令一般会包括自动导航、调试遥控器、远程终端控制等,无论哪一方发来的控制命令,本公开中,可移动设备并不会马上按设定的速度来驱动可移动设备,而是采用急动度、加速度和速度三阶速度来平滑控制可移动设备的加速、减速,防止可移动设备底盘的抖动。In step S101, in the embodiment of the present disclosure, the smart mobile device in the home, office area or public place is a wheeled mobile device, which optionally has automatic navigation capabilities, such as a restaurant delivery mobile device, hotel Delivery of mobile equipment, park inspection of mobile equipment, logistics and express delivery of mobile equipment. Small-power mobile equipment such as 100kg class is basically driven by two-wheel differential, mobile equipment above 100kg may be driven by three steering wheels, and mobile equipment with larger load capacity is driven by four steering wheels, such as 200kg level. The moving parts of the chassis of these movable devices are always connected to the host computer through communication, and receive the control commands of the host computer in real time to move and walk. The control commands generally include automatic navigation, remote control debugging, remote terminal control, etc., no matter which party sends Control commands. In this disclosure, the movable device does not immediately drive the movable device at the set speed, but uses jerk, acceleration and speed to smoothly control the acceleration and deceleration of the movable device, preventing Vibration of the chassis of the mobile device.
结合附图2,该图示出了本公开一实施例提供的可移动设备的速度、加速度及急动度的控制波形示意图,展示从零加速到匀速,然后减速到零的过程。其中,第一波形曲线①对应可移动设备的加速度曲线,第二波形曲线②对应可移动设备的急动度曲线,第三波形曲线③对应可移动设备的速度曲线。其中可移动设备的运动分为加速阶段、匀速阶段和减速阶段,在可移动设备的不同阶段,所述第一波形、第二波形和第三波形具有各自对应的对称分布。With reference to accompanying drawing 2, this figure shows a schematic diagram of control waveforms of the speed, acceleration and jerk of a mobile device provided by an embodiment of the present disclosure, showing the process of accelerating from zero to a constant speed and then decelerating to zero. Wherein, the first waveform curve ① corresponds to the acceleration curve of the movable device, the second waveform curve ② corresponds to the jerk curve of the movable device, and the third waveform curve ③ corresponds to the speed curve of the movable device. The movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage. In different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
本实施例中,以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度。其中,所述第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率。所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波形的点数值,所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。In this embodiment, the driving force value corresponding to the point value of the first waveform is used to provide the driving force to the movable device, and the acceleration of the movable device is obtained through the driving force. Wherein, the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device. The drive control frequency is determined according to the acceleration duration of each gear of the movable device; the point value of the first waveform of the movable device in the acceleration and deceleration stages is generated through the acceleration duration, and the movable device The driving force of the mobile device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
步骤S102:通过第二波形对应的急动度控制所述可移动设备的驱动力的 变化,所述第二波形具有正波段和负波段。Step S102: Control the driving force of the movable device through the jerk corresponding to the second waveform change, the second waveform has a positive band and a negative band.
在步骤S102中,为保证可移动设备平滑的加速、匀速和减速运动,本公开通过可移动设备的急动度(也称加加速度)、加速度和速度的三阶速度平滑控制可移动设备的运动。其中通过急动度控制所述可移动设备的驱动力的变化最为关键,将所述急动度对应的第二波形对应为具有0值间隔的正弦波形。在可移动设备的加速阶段,急动度按照具有0值间隔的正弦波形,具体的,所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。通过该急动度控制驱动力平滑地增加或降低;在可移动设备的匀速阶段,急动度和加速度同时保持在0值;在可移动设备的减速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力在反方向平滑地增加或降低。In step S102, in order to ensure the smooth acceleration, constant speed and deceleration motion of the movable device, the present disclosure controls the motion of the movable device through three-order velocity smoothing of jerk (also called jerk), acceleration and velocity of the movable device . Where it is most critical to control the change of the driving force of the movable device through the jerk, the second waveform corresponding to the jerk is corresponding to a sinusoidal waveform with intervals of 0 values. In the acceleration phase of the movable device, the jerk follows a sinusoidal waveform with a 0-value interval, specifically, the second waveform is a sine waveform with a 0-value interval, and the 0-value interval is set between the positive wave band and the negative wave band. between bands. The driving force is controlled by the jerk to increase or decrease smoothly; in the constant speed stage of the movable device, the jerk and the acceleration are kept at 0 value at the same time; Sinusoidal waveform, the control drive force increases or decreases smoothly in the opposite direction.
步骤S103:根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。Step S103: Control the moving speed of the movable device according to the acceleration and jerk, where the moving speed of the movable device corresponds to a third waveform distribution.
在步骤S103中,本公开实施例为可移动设备提供加速变化的驱动力,产生不断变化的加速度,在不同阶段的急动度(曲线②)对应按照一定曲线的分布,通过急动度控制可移动设备的驱动力(曲线①)的变化率(对应加速度的变化率)。在可移动设备的加速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力平滑地增加或降低,从而控制可移动设备的运动速度(曲线③)平滑地增大;在可移动设备的匀速阶段,急动度和加速度同时保持在0值,从而控制可移动设备的运动速度(曲线③)匀速运动;在可移动设备的减速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力在反方向平滑地增加或降低,从而控制可移动设备的运动速度(曲线③)平滑地减小,直至静止。In step S103, the embodiment of the present disclosure provides the movable device with the driving force of accelerating change, and generates constantly changing acceleration. The jerk (curve ②) at different stages corresponds to the distribution according to a certain curve, and the jerk can be controlled by jerk control. The rate of change of the driving force (curve ①) of the mobile device (corresponding to the rate of change of acceleration). In the acceleration phase of the movable device, the jerk is controlled according to the sinusoidal waveform with 0-value intervals to increase or decrease smoothly, thereby controlling the movement speed of the movable device (curve ③) to increase smoothly; in the movable device In the constant velocity stage, the jerk and acceleration are kept at 0 value at the same time, so as to control the movement speed (curve ③) of the movable device to move at a constant speed; Control the driving force to increase or decrease smoothly in the opposite direction, thereby controlling the movement speed of the movable device (curve ③) to decrease smoothly until it stops.
其中步骤102和步骤103结合附图2进行阐述,该图示出的可移动设备的速度、加速度及急动度的控制波形示意图,如图所示,展示从零加速到匀速,然后减速到零的过程。第一波形曲线①对应可移动设备的加速度曲线,第二波形曲线②对应可移动设备的急动度曲线,第三波形曲线③对应可移动 设备的速度曲线。Among them, step 102 and step 103 are explained in conjunction with accompanying drawing 2, which shows a schematic diagram of the control waveform of the speed, acceleration and jerk of the mobile device, as shown in the figure, showing acceleration from zero to a constant speed, and then decelerating to zero the process of. The first waveform curve ① corresponds to the acceleration curve of the movable device, the second waveform curve ② corresponds to the jerk curve of the movable device, and the third waveform curve ③ corresponds to the movable device The velocity profile of the device.
第一波形曲线①代表可移动设备受到的驱动力,对应于所述可移动设备的加速度,表达式为:The first waveform curve ① represents the driving force received by the movable device, corresponding to the acceleration of the movable device, the expression is:
F=maF=ma
F为驱动力,m为可移动设备质量(包括可移动设备上的负载质量),a为可移动设备的加速度。驱动力产生加速度,驱动力越平滑,舒适性越好。F is the driving force, m is the mass of the movable equipment (including the mass of the load on the movable equipment), and a is the acceleration of the movable equipment. The driving force generates acceleration, and the smoother the driving force, the better the comfort.
第二波形曲线②对应可移动设备的急动度曲线,急动度或j用来描述加速度本身的变化,是用m/s3为单位。急动度表达式为:The second waveform curve ② corresponds to the jerk curve of the movable device. The jerk or j is used to describe the change of the acceleration itself, and the unit is m/s 3 . The jerk expression is:
jt=ajt=a
其中,j为急动度,t为时间,a为加速度。本公开中通过急动度来调整可移动设备加速度的变化,即通过急动度来调整可移动设备的驱动力的变化,从而使可移动设备的驱动力和加速度更平滑。Among them, j is the jerk, t is the time, and a is the acceleration. In the present disclosure, the change of the acceleration of the movable device is adjusted through the jerk, that is, the change of the driving force of the movable device is adjusted through the jerk, so that the driving force and acceleration of the movable device are smoother.
为保证推力是连续且平滑的,由正弦波来控制驱动力的变化。In order to ensure that the thrust is continuous and smooth, the variation of the driving force is controlled by a sine wave.
·前半周期控制加速度的上升;The rise of acceleration is controlled in the first half cycle;
·后半周期控制加速度的下降;The second half cycle controls the decline of acceleration;
·当加加速度、加速度同时到达0时,速度要么同时达到匀速,要么同时到达零。·When the jerk and acceleration reach 0 at the same time, the speed either reaches a constant speed at the same time, or reaches zero at the same time.
基于上述三阶速度平滑的基本原理,本公开实施例采用如图2所示的实现方法:Based on the basic principle of the above-mentioned third-order velocity smoothing, the embodiment of the present disclosure adopts the implementation method shown in Figure 2:
·加速阶段由P1、P2、P3三个时段控制;The acceleration stage is controlled by three periods: P1, P2 and P3;
·P4阶段,加速度、急动度为0,匀速阶段;·P4 stage, acceleration and jerk are 0, constant speed stage;
·减速阶段由P5、P6、P7三个时段控制。·The deceleration stage is controlled by three periods of P5, P6 and P7.
其中,在P1阶段,为可移动设备的加速运动的前段,提供加速变化的驱动力,产生不断增大的加速度,此阶段的急动度(曲线②)为正半波段的正弦波形,按照该正半波段的急动度控制可移动设备的驱动力(曲线①)的变化率(对应加速度的变化率)。在P1的前半段,急动度按照正弦曲线在不断增大,控制驱动力在加速增加,从而控制可移动设备的运动速度(曲线 ③)加速的增大;在P1的后半段,急动度按照正弦曲线在不断减小,控制驱动力在减速增加,从而控制可移动设备的运动速度加速的增大。Among them, in the P1 stage, the driving force of acceleration change is provided for the front part of the acceleration movement of the mobile device, and the acceleration is continuously increased. The jerk of the positive half-band controls the rate of change (corresponding to the rate of change of acceleration) of the driving force (curve ①) of the movable device. In the first half of P1, the jerk is continuously increasing according to the sinusoidal curve, and the control driving force is accelerating to increase, thereby controlling the movement speed of the movable device (curve ③) Increase in acceleration; in the second half of P1, the jerk decreases continuously according to the sinusoidal curve, and the driving force is controlled to increase in deceleration, thereby controlling the increase in the acceleration of the moving device's movement speed.
在P2阶段,为可移动设备的加速运动的中段,提供恒定的驱动力,产生恒定的加速度(曲线①),此阶段的急动度(曲线②)为0值,即驱动力的变化率(对应加速度的变化率)为0,从而控制可移动设备的运动速度(曲线③)在均匀的增加。In the P2 stage, a constant driving force is provided for the middle part of the acceleration movement of the mobile device, resulting in a constant acceleration (curve ①), and the jerk (curve ②) in this stage is 0, that is, the rate of change of the driving force ( The rate of change corresponding to the acceleration) is 0, thereby controlling the movement speed of the movable device (curve ③) to increase uniformly.
在P3阶段,为可移动设备的加速运动的后段,提供减速变化的驱动力(曲线①),产生不断减小的加速度(曲线①),此阶段的急动度(曲线②)为负半波段的正弦波形,按照该负半波段的急动度控制可移动设备的驱动力的变化率(对应加速度的变化率)。在P3的前半段,急动度按照正弦曲线在负方向不断增大,控制驱动力在加速降低,从而控制可移动设备的运动速度减速增大;在P3的后半段,急动度按照负半波段的正弦曲线在负方向不断减小,控制驱动力在减速降低,从而控制可移动设备的运动速度(曲线③)减速的增大。直至急动度和加速度同时达到0值,此时可移动设备的运动速度达到最高,之后保持在P4阶段匀速运动。In the P3 stage, the deceleration change driving force (curve ①) is provided for the latter part of the acceleration movement of the mobile device, resulting in a decreasing acceleration (curve ①), and the jerk in this stage (curve ②) is negative half The sine waveform of the wave band controls the rate of change of the driving force of the movable device (corresponding to the rate of change of the acceleration) according to the jerk of the negative half wave band. In the first half of P3, the jerk continues to increase in the negative direction according to the sinusoidal curve, and the control driving force is accelerating and decreasing, thereby controlling the movement speed of the movable equipment to decelerate and increase; in the second half of P3, the jerk follows the negative direction. The sinusoidal curve of the half-wave band decreases continuously in the negative direction, and the driving force is controlled to decrease in deceleration, thereby controlling the increase in deceleration of the moving speed (curve ③) of the movable device. Until the jerk and acceleration reach 0 value at the same time, the movement speed of the movable device reaches the highest, and then it keeps moving at a constant speed in the P4 stage.
在P4阶段,为可移动设备的匀速运动阶段,急动度(曲线②)和加速度(曲线①)同时保持0值,此时可移动设备的运动速度(曲线③)保持预设速度匀速运动,该速度可以为最高速度,也可以为预设的一定速度。此阶段保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。In the P4 stage, which is the uniform motion stage of the mobile device, the jerk (curve ②) and acceleration (curve ①) keep 0 at the same time, and the movement speed of the mobile device (curve ③) maintains the preset speed at a constant speed. The speed can be the highest speed, or a preset certain speed. At this stage, the driving force is kept at 0, and the movable device is controlled to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction; wherein the movable device is in the process of moving at a constant speed, the The acceleration of the movable device is 0, and the jerk is 0.
在P5阶段,为可移动设备的减速运动的前段,该阶段的急动度曲线(曲线②)与P3阶段的急动度曲线轴对称,加速度曲线(曲线①)与P3阶段的加速度曲线点对称,速度曲线(曲线③)与P3阶段的速度曲线轴对称。此阶段提供反方向的不断增加的驱动力(曲线①),产生反方向的不断增加的加速度(曲线①),此阶段的急动度(曲线②)为负半波段的正弦波形,按照该负半波段的急动度控制可移动设备的驱动力的变化率(对应加速度的变 化率)。在P5的前半段,急动度按照正弦曲线在负方向不断增大,控制驱动力在反方向加速增大,从而控制可移动设备的运动速度逐渐加速的降低;在P5的后半段,急动度按照负半波段的正弦曲线在负方向不断减小,控制驱动力在负方向减速增加,从而控制可移动设备的运动速度(曲线③)逐渐加速的降低。In the P5 stage, it is the first stage of the deceleration motion of the movable equipment. The jerk curve (curve ②) of this stage is axisymmetric to the jerk curve of the P3 stage, and the acceleration curve (curve ①) is point-symmetrical to the acceleration curve of the P3 stage. , the speed curve (curve ③) is axisymmetric to the speed curve of the P3 stage. In this stage, an increasing driving force in the opposite direction (curve ①) is provided to generate an increasing acceleration in the opposite direction (curve ①). The jerk in this stage (curve ②) is a sinusoidal waveform in the negative half-wave band. The half-band jerk controls the rate of change of the driving force of the movable device (corresponding to the change of acceleration conversion rate). In the first half of P5, the jerk increases continuously in the negative direction according to the sinusoidal curve, and the driving force is controlled to accelerate and increase in the opposite direction, thereby controlling the movement speed of the movable equipment to gradually decrease; in the second half of P5, the jerk The motion is continuously reduced in the negative direction according to the sinusoidal curve of the negative half-wave band, and the driving force is controlled to decelerate and increase in the negative direction, thereby controlling the gradual acceleration and decrease of the moving speed (curve ③) of the movable device.
在P6阶段,为可移动设备的减速运动的中段,该阶段的急动度曲线(曲线②)与P3阶段的急动度曲线轴对称,为0值阶段,加速度曲线(曲线①)与P3阶段的加速度曲线点对称,速度曲线(曲线③)与P3阶段的速度曲线轴对称。此阶段提供负方向恒定的驱动力,产生负方向恒定的加速度(曲线①),此阶段的急动度(曲线②)为0值,即驱动力的变化率(对应加速度的变化率)为0,从而控制可移动设备的运动速度(曲线③)在均匀的降低。In the P6 stage, it is the middle section of the deceleration motion of the movable equipment. The jerk curve (curve ②) of this stage is axisymmetric to the jerk curve of the P3 stage, and it is a 0 value stage. The acceleration curve (curve ①) and the P3 stage The acceleration curve is point-symmetric, and the speed curve (curve ③) is axisymmetric to the speed curve of the P3 stage. This stage provides a constant driving force in the negative direction, resulting in constant acceleration in the negative direction (curve ①), and the jerk (curve ②) in this stage is 0, that is, the rate of change of the driving force (corresponding to the rate of change of acceleration) is 0 , so as to control the moving speed of the movable device (curve ③) to decrease uniformly.
在P7阶段,为可移动设备的减速运动的中段,该阶段的急动度曲线(曲线②)与P3阶段的急动度曲线轴对称,加速度曲线(曲线①)与P3阶段的加速度曲线点对称,速度曲线(曲线③)与P3阶段的速度曲线轴对称。此阶段提供加速变化的驱动力,产生负方向不断减小的加速度,此阶段的急动度(曲线②)为正半波段的正弦波形,按照该正半波段的急动度控制可移动设备的驱动力(曲线①)的变化率(对应加速度的变化率)。在P7的前半段,急动度按照正弦曲线在不断增大,控制驱动力在负方向加速降低,从而控制可移动设备的运动速度(曲线③)逐渐减速的降低;在P7的后半段,急动度按照正弦曲线在不断减小,控制驱动力在负方向减速降低,从而控制可移动设备的运动速度逐渐减速的降低。直至急动度和加速度同时达到0值,此时可移动设备的运动速度达到0值,运动状态变为静止状态。In the P7 stage, it is the middle stage of the deceleration motion of the movable equipment. The jerk curve (curve ②) of this stage is axisymmetric to the jerk curve of the P3 stage, and the acceleration curve (curve ①) is point-symmetrical to the acceleration curve of the P3 stage. , the speed curve (curve ③) is axisymmetric to the speed curve of the P3 stage. In this stage, the driving force for acceleration change is provided, and the acceleration in the negative direction decreases continuously. The jerk (curve ②) in this stage is a sine wave in the positive half-band, and the movement of the movable device is controlled according to the jerk in the positive half-band. The rate of change of the driving force (curve ①) (corresponding to the rate of change of acceleration). In the first half of P7, the jerk is continuously increasing according to the sinusoidal curve, and the driving force is controlled to accelerate and decrease in the negative direction, thereby controlling the gradual deceleration of the moving speed of the movable device (curve ③); in the second half of P7, The jerk is continuously decreasing according to the sinusoidal curve, and the driving force is controlled to decelerate and decrease in the negative direction, thereby controlling the movement speed of the movable device to gradually decelerate. Until the jerk and acceleration reach 0 at the same time, at this time the movement speed of the movable device reaches 0, and the motion state becomes static.
经过上述P1-P7阶段的不断平滑控制驱动力,从而将可移动设备的加速、匀速和减速的运动变得平滑,不会使可移动设备产生抖动现象。Through the continuous smooth control of the driving force in the above P1-P7 stages, the acceleration, constant speed and deceleration of the movable device will be smoothed, and the movable device will not be shaken.
具体的,所述第二波形对应的正弦波形在所述可移动设备的加速阶段分为正半波段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设 备在加速阶段的波形互为轴对称。Specifically, the sine waveform corresponding to the second waveform is divided into a positive half-wave segment and a negative half-wave segment during the acceleration phase of the movable device, wherein there is a 0-value interval between the positive half-wave segment and the negative half-wave segment ; The waveform of the second waveform in the deceleration phase of the movable device is the same as that of the movable device The waveforms of the equipment in the acceleration phase are axisymmetric to each other.
在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。During the acceleration phase of the movable device, the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration, and the negative half-band of the second waveform corresponds to the jerk The jerk controls the decline of the acceleration; in the deceleration phase of the movable device, the jerk corresponding to the negative half-wave band of the second waveform controls the rise of the acceleration in the opposite direction, the The jerk corresponding to the positive half-wave segment of the second waveform controls the decline in the opposite direction of the acceleration.
所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。The first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform; during the acceleration phase of the movable device, corresponding to the second The positive half-wave segment of the waveform constitutes the sinusoidal distribution of the first waveform, the 0-value interval corresponding to the second waveform constitutes the constant-value distribution of the first waveform, and the negative half-wave segment on the side of the second waveform constitutes the A sinusoidal distribution of the first waveform, forming a flat top sinusoidal distribution of the first waveform as a whole during the acceleration phase of the movable device; during a deceleration phase of the movable device, the distribution of the first waveform is consistent with the The first waveforms of the acceleration phase of the movable device are point-symmetrical to each other.
所述第三波形反应所述可移动设备的运动速度;在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布;在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。The third waveform reflects the moving speed of the movable device; in the acceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal rising part; in the constant speed stage of the movable device, the The speed of the movable device is distributed according to a constant value; during the deceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal descending part, and is mutually axis with the waveform of the movable device in the acceleration stage symmetry.
所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。When the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
另外,所述可移动设备的速度控制方法,还包括:In addition, the speed control method of the movable device also includes:
在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。After the speed of controlling the movable device is accelerated to a preset speed, the driving force of the movable device is reduced to 0; the driving force is kept at 0, and the movable device is controlled to move at a constant speed until The movable device automatically detects an obstacle or receives a deceleration command; wherein the movable device is in a process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
图3示出了本公开一实施例提供的可移动设备的速度、加速度和急动度 的配置信息示例图,如图所示:Fig. 3 shows the velocity, acceleration and jerk of the mobile device provided by an embodiment of the present disclosure An example diagram of configuration information, as shown in the figure:
本公开实施例中,第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率,图中对执行器(轮子)的控制频率,也就是每秒钟对可移动设备驱动力的执行器有120次的速度调整控制,同时,类比汽车行驶,有直线方向行驶,转弯行驶,可移动设备可以是直线行驶,也可以左右平移行驶,也可以原地自转,也可以直行和自转混合,也就是一边走,一边拐弯In the embodiment of the present disclosure, the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device. The control of the actuator (wheel) in the figure Frequency, that is, 120 speed adjustment controls per second for the actuator of the driving force of the movable device. At the same time, analogous to the driving of a car, there are straight-line driving and turning driving, and the movable device can drive in a straight line or move left and right When driving, you can also rotate on the spot, or you can mix straight driving and rotation, that is, you can walk while turning
下面定义一个配置文件,用于描述可移动设备的驱动力的控制频率,具体包含以下内容:A configuration file is defined below to describe the control frequency of the driving force of the movable device, which specifically includes the following contents:
·定义底盘内部对每个轮子的控制频率,如图所示,每秒钟对轮子进行120次调节控制。·Define the control frequency of each wheel inside the chassis, as shown in the figure, the wheels are adjusted and controlled 120 times per second.
·定义底盘直线行驶的速度档,这些值和可移动设备底盘设计相关,由实验值所得(见下细节)。·Define the speed gear for the chassis to travel in a straight line. These values are related to the design of the mobile equipment chassis and are obtained from experimental values (see details below).
·定义底盘左右移动速度档,数值来源于实验验算结果(见下细节)。·Define the left and right movement speed gear of the chassis, the value comes from the experimental calculation results (see the details below).
·定义底盘自旋转速度档,数值来源于实验验算结果(见下细节)。·Define the chassis autorotation speed gear, the value comes from the experimental results (see details below).
·定义每个速度档的7个时段分别加以配置,时间单位为秒,为方便计算,配置P1等于P3,P5等于P7。·Define the 7 periods of each speed gear to be configured respectively, and the time unit is second. For the convenience of calculation, configure P1 to be equal to P3, and P5 to be equal to P7.
图中配置文件的图表对应了直线行驶、左右平移行驶、原地自转的定义三种配置,每一种配置下面会有一条或几条信息,每一条信息相当于汽车的一个档位,如果上位机直接给了一个0.3m/s的速度,则底盘会选择对应0.3m/s那一条配置。选定那一条配置里面的数字,分别为加速曲线里的P1、P2、P3、P4、P5、P6和P7,其中P1、P2、P3管理加速过程,P4定义了超时自动刹车时间,比如写的1.0,意味着超过1s没有收到上位机的命令,底盘会自动停车,P5、P6、P7,类似P1、P2、P3负责刹车曲线。无论是加速过程,还是刹车过程,如果上位机变换不同的速度值,底盘会跳到对应的另外一条曲线上,这个过程就是汽车换档一样,加减速曲线变了。The chart of the configuration file in the figure corresponds to the definition of three configurations: straight-line driving, left-right translational driving, and in-situ rotation. There will be one or several pieces of information under each configuration, and each piece of information is equivalent to a gear position of the car. If the upper position If the machine directly gives a speed of 0.3m/s, the chassis will choose the configuration corresponding to 0.3m/s. The numbers in the selected configuration are P1, P2, P3, P4, P5, P6, and P7 in the acceleration curve, among which P1, P2, and P3 manage the acceleration process, and P4 defines the overtime automatic braking time, such as writing 1.0 means that the chassis will automatically stop if it does not receive a command from the host computer for more than 1 second. P5, P6, and P7, similar to P1, P2, and P3, are responsible for the braking curve. Whether it is the acceleration process or the braking process, if the upper computer changes different speed values, the chassis will jump to another corresponding curve. This process is like a car shifting gears, and the acceleration and deceleration curves have changed.
细节如图3所示: The details are shown in Figure 3:
根据配置文件中定义的控制频率,每个速度档的加速时长,分别生成加速、减速正弦波点数,同时用正弦函数计算正弦函数值,比如P1为1.25秒,P2为1.25秒,P3为1.25秒,加速曲线的正弦波的正半波点数为1.25x120=150个,正弦函数从0开始,每次步进增加3.14/150弧度。同理,加速曲线的正弦波负半波点数也为1.25x120=150个,正弦函数从PI(3.14)开始,每次控制步进增加PI/150。整个加速过程用时3.75秒,分三个阶段输出,每一阶段150个点后加速底达到最大,第二阶段150点加速度保持不变,速度继续上升,第三阶段150个点后加速度和加加速度同时到达零,速度进行恒速。According to the control frequency defined in the configuration file and the acceleration duration of each speed gear, the points of acceleration and deceleration sine waves are respectively generated, and the sine function value is calculated with the sine function, for example, P1 is 1.25 seconds, P2 is 1.25 seconds, and P3 is 1.25 seconds , the number of positive half-wave points of the sine wave of the acceleration curve is 1.25x120=150, the sine function starts from 0, and each step increases by 3.14/150 radians. Similarly, the number of negative half-wave points of the sine wave of the acceleration curve is 1.25x120=150, the sine function starts from PI (3.14), and increases PI/150 at each control step. The entire acceleration process takes 3.75 seconds and is output in three stages. After 150 points in each stage, the acceleration bottom reaches the maximum. In the second stage, the acceleration at 150 points remains unchanged, and the speed continues to rise. After 150 points in the third stage, the acceleration and jerk At the same time to zero, the speed is constant.
基于上一步,根据正弦函数的输出幅值,对时间积分,计算加速度的值,加速度对时间积分进一步计算出速度值。Based on the previous step, according to the output amplitude of the sinusoidal function, the value of the acceleration is calculated for the time integration, and the acceleration is further calculated for the speed value by integrating the acceleration with the time.
底盘根据上位机发下来的速度值,首先选取最接近的速度档来匹配,对正弦波的输出幅值进行调整,从而影响加速度的值,最终的速度恒定值与设定值一致。According to the speed value sent by the host computer, the chassis first selects the closest speed gear to match, and adjusts the output amplitude of the sine wave to affect the acceleration value. The final constant speed value is consistent with the set value.
同理,可移动设备底盘在减速的时候也采用同样的控制流程,不同的是正弦波的起始是从PI开始的,到零,然后从零再开始到PI。Similarly, the mobile device chassis also adopts the same control process when decelerating. The difference is that the sine wave starts from PI, goes to zero, and then starts from zero to PI again.
可移动设备在反向行驶的时候,只需对速度输出值取反即可,整个流程不变。When the mobile device is driving in the reverse direction, it only needs to invert the speed output value, and the whole process remains unchanged.
图4为本公开另一实施例提供的可移动设备的速度控制装置示意图。该可移动设备的速度控制装置包括:加速度模块401、急动度模块402和速度控制模块403。其中:Fig. 4 is a schematic diagram of a speed control device of a mobile device provided by another embodiment of the present disclosure. The speed control device of the movable device includes: an acceleration module 401 , a jerk module 402 and a speed control module 403 . in:
所述加速度模块401,用于通过第二波形对应的急动度控制所述所述可移动设备的驱动力的变化。The acceleration module 401 is configured to control the variation of the driving force of the movable device through the jerk corresponding to the second waveform.
本公开实施例中,可移动设备底盘运动部分通过通信总与上位机相连,实时接收上位机的控制指令来进行移动行走,控制命令一般会包括自动导航、调试遥控器、远程终端控制等,无论哪一方发来的控制命令,本公开中,可移动设备并不会马上按设定的速度来驱动可移动设备,而是采用急动度、加速度和速度三阶速度来平滑控制可移动设备的加速、减速,防止可移动设备 底盘的抖动。In the embodiment of the present disclosure, the moving part of the chassis of the mobile device is always connected to the host computer through communication, and receives the control commands of the host computer in real time to move and walk. The control commands generally include automatic navigation, remote control debugging, and remote terminal control. Which party sends the control command, in this disclosure, the movable device will not immediately drive the movable device at the set speed, but use jerk, acceleration and speed to smoothly control the movement of the movable device Accelerate, decelerate, prevent movable equipment Chassis shaking.
所述加速度模块,具体用于:以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度。其中,所述第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率。所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波形的点数值,所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。The acceleration module is specifically configured to: provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force. Wherein, the frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device. The drive control frequency is determined according to the acceleration duration of each gear of the movable device; the point value of the first waveform of the movable device in the acceleration and deceleration stages is generated through the acceleration duration, and the movable device The driving force of the mobile device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
所述加速度模块,具体还用于:所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。The acceleration module is specifically further configured to: the first waveform corresponds to the acceleration of the movable device, and the acceleration of the first waveform is controlled by the jerk of the second waveform; The acceleration stage of the second waveform corresponds to the positive half-band of the second waveform to form the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform forms the constant-value distribution of the first waveform. In the The negative half-wave segment on the side of the second waveform constitutes the sinusoidal distribution of the first waveform, and the flat top sinusoidal distribution of the first waveform is formed as a whole in the acceleration phase of the movable device; in the deceleration phase of the movable device, The distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
所述急动度模块402,用于通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段。The jerk module 402 is configured to control the change of the driving force of the movable device through the jerk corresponding to the second waveform, and the second waveform has a positive wave band and a negative wave band.
本公开实施例,为保证可移动设备平滑的加速、匀速和减速运动,本公开通过可移动设备的急动度(也称加加速度)、加速度和速度的三阶速度平滑控制可移动设备的运动。其中通过急动度控制所述可移动设备的驱动力的变化最为关键,将所述急动度对应的第二波形对应为具有0值间隔的正弦波形。具体的,所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。在可移动设备的加速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力平滑地增加或降低;在可移动设备的匀速阶段,急动度和加速度同时保持在0值;在可移动设备的减速阶段,急动度按 照具有0值间隔的正弦波形,控制驱动力在反方向平滑地增加或降低。所述第二波形对应的正弦波形在所述可移动设备的加速阶段分为正半波段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设备在加速阶段的波形互为轴对称。In the embodiment of the present disclosure, in order to ensure the smooth acceleration, constant speed and deceleration motion of the movable device, the present disclosure controls the motion of the movable device through three-order velocity smoothing of jerk (also called jerk), acceleration and velocity of the movable device . Where it is most critical to control the change of the driving force of the movable device through the jerk, the second waveform corresponding to the jerk is corresponding to a sinusoidal waveform with intervals of 0 values. Specifically, the second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave segment and the negative wave segment. In the acceleration stage of the movable device, the jerk is controlled to increase or decrease smoothly according to the sinusoidal waveform with intervals of 0 values; in the constant speed stage of the movable device, the jerk and acceleration are kept at 0 value at the same time; During the deceleration phase of the mobile device, the jerk is According to the sinusoidal waveform with intervals of 0 values, the driving force is controlled to increase or decrease smoothly in the reverse direction. The sine waveform corresponding to the second waveform is divided into a positive half-wave segment and a negative half-wave segment during the acceleration phase of the movable device, wherein there is a 0-value interval between the positive half-wave segment and the negative half-wave segment; The waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
所述急动度模块,具体用于:在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。The jerk module is specifically configured to: during the acceleration phase of the movable device, the jerk corresponding to the positive half-wave band of the second waveform controls the increase of the acceleration, and the second The jerk corresponding to the negative half-wave segment of the waveform controls the decline of the acceleration; during the deceleration phase of the movable device, the jerk corresponding to the negative half-wave segment of the second waveform controls The rise in the opposite direction of the acceleration, and the jerk corresponding to the positive half-band of the second waveform control the fall in the opposite direction of the acceleration.
所述速度控制模块403,用于根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。The speed control module 403 is configured to control the moving speed of the movable device according to the acceleration and jerk, and the moving speed of the movable device corresponds to the third waveform distribution.
本公开实施例为可移动设备提供加速变化的驱动力,产生不断变化的加速度,在不同阶段的急动度(曲线②)对应按照一定曲线的分布,通过急动度控制可移动设备的驱动力(曲线①)的变化率(对应加速度的变化率)。在可移动设备的加速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力平滑地增加或降低,从而控制可移动设备的运动速度(曲线③)平滑地增大;在可移动设备的匀速阶段,急动度和加速度同时保持在0值,从而控制可移动设备的运动速度(曲线③)匀速运动;在可移动设备的减速阶段,急动度按照具有0值间隔的正弦波形,控制驱动力在反方向平滑地增加或降低,从而控制可移动设备的运动速度(曲线③)平滑地减小,直至静止。The embodiment of the present disclosure provides the driving force of acceleration and change for the movable device, and generates constantly changing acceleration. The jerk (curve ②) in different stages corresponds to the distribution according to a certain curve, and the driving force of the movable device is controlled by the jerk (Curve ①) rate of change (corresponding rate of change of acceleration). In the acceleration phase of the movable device, the jerk is controlled according to the sinusoidal waveform with 0-value intervals to increase or decrease smoothly, thereby controlling the movement speed of the movable device (curve ③) to increase smoothly; in the movable device In the constant velocity stage, the jerk and acceleration are kept at 0 value at the same time, so as to control the movement speed (curve ③) of the movable device to move at a constant speed; Control the driving force to increase or decrease smoothly in the opposite direction, thereby controlling the movement speed of the movable device (curve ③) to decrease smoothly until it stops.
所述速度控制模块,具体用于:所述第三波形反应所述可移动设备的运动速度;在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布;在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。 The speed control module is specifically used for: the third waveform reflects the moving speed of the movable device; during the acceleration phase of the movable device, the speed of the movable device is distributed according to a sinusoidal rising part; In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value; in the deceleration stage of the movable device, the speed of the movable device is distributed according to a sinusoidal descending The waveforms of the mobile device during the acceleration phase are axisymmetric to each other.
所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。When the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
另外,所述可移动设备的速度控制装置,还包括:In addition, the speed control device of the movable device also includes:
匀速模块,用于:在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。The constant speed module is used to: reduce the driving force of the movable device to 0 after the speed of the controlled movable device reaches a preset speed; keep the driving force at 0, and control the movable device The device is moving at a constant speed until the movable device automatically detects an obstacle or receives a deceleration command; wherein the movable device is moving at a constant speed, the acceleration of the movable device is 0, and the jerk is 0.
图4所示装置可以执行图1所示实施例的方法,本实施例未详细描述的部分,可参考对图1所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1所示实施例中的描述,在此不再赘述。The device shown in FIG. 4 can execute the method of the embodiment shown in FIG. 1 . For parts not described in detail in this embodiment, reference can be made to relevant descriptions of the embodiment shown in FIG. 1 . For the execution process and technical effect of this technical solution, refer to the description in the embodiment shown in FIG. 1 , and details are not repeated here.
下面参考图5,其示出了适于用来实现本公开另一实施例的可移动设备对应的电子设备500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 5 , it shows a schematic structural diagram of an electronic device 500 corresponding to a mobile device suitable for implementing another embodiment of the present disclosure. The terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like. The electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过通信线路504彼此相连。输入/输出(I/O)接口505也连接至通信线路504。As shown in FIG. 5, an electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may be randomly accessed according to a program stored in a read-only memory (ROM) 502 or loaded from a storage device 508. Various appropriate actions and processes are executed by programs in the memory (RAM) 503 . In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are also stored. The processing device 501, ROM 502, and RAM 503 are connected to each other through a communication line 504. An input/output (I/O) interface 505 is also connected to the communication line 504 .
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁 带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration The output device 507 of the device or the like; including, for example, a magnetic a storage device 508 such as a tape, a hard disk, or the like; and a communication device 509 . The communication means 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data. While FIG. 4 shows electronic device 500 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 509, or from storage means 508, or from ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当 的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . The program code contained on the computer readable medium can be used in any suitable Media transmission, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium Communications (eg, communication networks) are interconnected. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:执行上述实施例中的交互方法。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: executes the interaction method in the above-mentioned embodiment.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可 以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two boxes shown in succession can actually be Executed substantially in parallel, they may also sometimes be executed in reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有能被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述第一方面中的任一所述方法。According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be used by the Instructions executed by at least one processor, the instructions being executed by the at least one processor, so that the at least one processor can execute any one of the methods in the foregoing first aspect.
根据本公开的一个或多个实施例,提供了一种非暂态计算机可读存储介质,其特征在于,该非暂态计算机可读存储介质存储计算机指令,该计算机 指令用于使计算机执行前述第一方面中的任一所述方法。According to one or more embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer The instructions are used to cause the computer to execute any one of the methods in the aforementioned first aspect.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principles. Those skilled in the art should understand that the disclosure scope involved in this disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (27)

  1. 一种可移动设备的速度控制方法,其特征在于,包括:A speed control method for a movable device, characterized in that it comprises:
    以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度;providing a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtaining an acceleration of the movable device through the driving force;
    通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段;Controlling the change of the driving force of the movable device through the jerk corresponding to the second waveform, the second waveform has a positive wave band and a negative wave band;
    根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。controlling the movement speed of the movable device according to the acceleration and the jerk, and the movement speed of the movable device corresponds to a third waveform distribution.
  2. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。The second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave segment and the negative wave segment.
  3. 根据权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that,
    所述可移动设备的运动分为加速阶段、匀速阶段和减速阶段,在可移动设备的不同阶段,所述第一波形、第二波形和第三波形具有各自对应的对称分布。The movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage. In different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
  4. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, characterized in that,
    所述第二波形对应的正弦波形在所述可移动设备的加速阶段分为正半波段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;The sine waveform corresponding to the second waveform is divided into a positive half-wave segment and a negative half-wave segment during the acceleration phase of the movable device, wherein there is a 0-value interval between the positive half-wave segment and the negative half-wave segment;
    所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设备在加速阶段的波形互为轴对称。The waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
  5. 根据权利要求4所述的方法,其特征在于,The method according to claim 4, characterized in that,
    在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;During the acceleration phase of the movable device, the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration, and the negative half-band of the second waveform corresponds to the jerk jerk controls the fall of said acceleration;
    在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所 述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。During the deceleration phase of the movable device, the negative half-wave band of the second waveform corresponds to the The jerk controls the rise in the opposite direction of the acceleration, and the jerk corresponding to the positive half-wave band of the second waveform controls the fall in the reverse direction of the acceleration.
  6. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, characterized in that,
    所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;said first waveform corresponds to an acceleration of said movable device, said first waveform's acceleration being controlled by said second waveform's jerk;
    在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;In the acceleration phase of the movable device, the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform. a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
    在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。In the deceleration phase of the movable device, the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
  7. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, characterized in that,
    所述第三波形反应所述可移动设备的运动速度;The third waveform reflects the movement speed of the movable device;
    在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;During the acceleration phase of the mobile device, the velocity of the mobile device is distributed according to a sinusoidal rising portion;
    在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布;In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value;
    在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。In the deceleration phase of the movable device, the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
  8. 根据权利要求3所述的方法,其特征在于,The method according to claim 3, characterized in that,
    所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。When the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  9. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    所述第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率。The frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device.
  10. 根据权利要求9所述的方法,其特征在于,The method according to claim 9, characterized in that,
    所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;The drive control frequency is determined according to the acceleration duration of each gear of the movable device;
    通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波 形的点数值。Generate the first wave of the mobile device in the acceleration and deceleration phases through the acceleration duration The point value of the shape.
  11. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。The driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;After the speed of controlling the movable device is accelerated to a preset speed, the driving force of the movable device is reduced to 0;
    保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;Keeping the driving force at 0, controlling the movable device to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction;
    其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。Wherein the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
  13. 一种可移动设备的速度控制装置,其特征在于,包括:A speed control device for movable equipment, characterized in that it comprises:
    加速度模块,用于以第一波形的点数值对应的驱动力值向所述可移动设备提供驱动力,通过所述驱动力得到所述可移动设备的加速度;an acceleration module, configured to provide a driving force to the movable device with a driving force value corresponding to a point value of the first waveform, and obtain an acceleration of the movable device through the driving force;
    急动度模块,用于通过第二波形对应的急动度控制所述可移动设备的驱动力的变化,所述第二波形具有正波段和负波段;a jerk module, configured to control the change of the driving force of the movable device through the jerk corresponding to the second waveform, the second waveform has a positive wave band and a negative wave band;
    速度控制模块,用于根据所述加速度和急动度控制所述可移动设备的运动速度,所述可移动设备的运动速度对应第三波形分布。A speed control module, configured to control the moving speed of the movable device according to the acceleration and the jerk, and the moving speed of the movable device corresponds to the third waveform distribution.
  14. 根据权利要求13所述的装置,其特征在于,The device according to claim 13, characterized in that,
    所述第二波形为具有0值间隔的正弦波形,所述0值间隔设置在所述正波段和负波段之间。The second waveform is a sinusoidal waveform with a 0-value interval, and the 0-value interval is set between the positive wave segment and the negative wave segment.
  15. 根据权利要求13或14所述的装置,其特征在于,Apparatus according to claim 13 or 14, characterized in that
    所述可移动设备的运动分为加速阶段、匀速阶段和减速阶段,在可移动设备的不同阶段,所述第一波形、第二波形和第三波形具有各自对应的对称分布。The movement of the movable device is divided into an acceleration stage, a constant speed stage and a deceleration stage. In different stages of the movable device, the first waveform, the second waveform and the third waveform have corresponding symmetrical distributions.
  16. 根据权利要求15所述的装置,其特征在于,The device according to claim 15, characterized in that,
    所述第二波形对应的正弦波形在所述可移动设备的加速阶段分为正半波 段和负半波段,其中所述正半波段和所述负半波段之间具有一段0值间隔;The sine waveform corresponding to the second waveform is divided into a positive half-wave during the acceleration phase of the movable device segment and a negative half-band, wherein there is a 0-value interval between the positive half-band and the negative half-band;
    所述第二波形在所述可移动设备的减速阶段的波形与所述可移动设备在加速阶段的波形互为轴对称。The waveform of the second waveform in the deceleration phase of the movable device is axisymmetric to the waveform of the movable device in the acceleration phase.
  17. 根据权利要求16所述的装置,其特征在于,所述急动度模块,用于包括:The device according to claim 16, wherein the jerk module is configured to include:
    在所述可移动设备的加速阶段,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的上升,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的下降;During the acceleration phase of the movable device, the jerk corresponding to the positive half-band of the second waveform controls the rise of the acceleration, and the negative half-band of the second waveform corresponds to the jerk jerk controls the fall of said acceleration;
    在所述可移动设备的减速阶段,所述第二波形的所述负半波段对应的所述急动度控制所述加速度的反方向的上升,所述第二波形的所述正半波段对应的所述急动度控制所述加速度的反方向的下降。During the deceleration phase of the movable device, the jerk corresponding to the negative half-band of the second waveform controls the rise in the opposite direction of the acceleration, and the positive half-band of the second waveform corresponds to The jerk controls the decline in the opposite direction of the acceleration.
  18. 根据权利要求15所述的装置,其特征在于,所述加速度模块,用于包括:The device according to claim 15, wherein the acceleration module is configured to include:
    所述第一波形对应于所述可移动设备的加速度,所述第一波形的加速度通过所述第二波形的急动度控制;said first waveform corresponds to an acceleration of said movable device, said first waveform's acceleration being controlled by said second waveform's jerk;
    在所述可移动设备的加速阶段,对应于所述第二波形的正半波段构成所述第一波形的正弦分布,对应于所述第二波形的0值间隔构成所述第一波形的恒值分布,在所述第二波形侧负半波段构成所述第一波形的正弦分布,在所述可移动设备的加速阶段整体上形成所述第一波形的平顶正弦分布;In the acceleration phase of the movable device, the positive half-wave segment corresponding to the second waveform constitutes the sinusoidal distribution of the first waveform, and the 0-value interval corresponding to the second waveform constitutes the constant of the first waveform. a value distribution, the negative half-band on the side of the second waveform constitutes a sinusoidal distribution of the first waveform, and a flat-top sinusoidal distribution of the first waveform is formed as a whole during the acceleration phase of the movable device;
    在所述可移动设备的减速阶段,所述第一波形的分布与所述可移动设备的加速阶段的第一波形互为点对称。In the deceleration phase of the movable device, the distribution of the first waveform is point-symmetrical to the first waveform in the acceleration phase of the movable device.
  19. 根据权利要求15所述的装置,其特征在于,所述速度控制模块,用于包括:The device according to claim 15, wherein the speed control module is configured to include:
    所述第三波形反应所述可移动设备的运动速度;The third waveform reflects the movement speed of the movable device;
    在所述可移动设备的加速阶段,所述可移动设备的速度按照正弦的上升部分分布;During the acceleration phase of the mobile device, the velocity of the mobile device is distributed according to a sinusoidal rising portion;
    在所述可移动设备的匀速阶段,所述可移动设备的速度按照恒值分布; In the constant speed stage of the movable device, the speed of the movable device is distributed according to a constant value;
    在所述可移动设备的减速阶段,所述可移动设备的速度按照正弦的下降部分分布,并与所述可移动设备在加速阶段的波形互为轴对称。In the deceleration phase of the movable device, the velocity of the movable device is distributed according to a sinusoidal descending part, which is axisymmetric to the waveform of the movable device in the acceleration phase.
  20. 根据权利要求15所述的装置,其特征在于,The device according to claim 15, characterized in that,
    所述第一波形和第二波形在0值重合时,所述第三波形为0值或恒值,对应于所述可移动设备为静止或匀速状态。When the first waveform and the second waveform coincide with zero value, the third waveform has zero value or constant value, which corresponds to the state that the movable device is at rest or at a constant speed.
  21. 根据权利要求13所述的装置,其特征在于,The device according to claim 13, characterized in that,
    所述第一波形的点数值的频率为所述可移动设备的驱动控制频率,所述驱动控制频率对应所述可移动设备的加速频率。The frequency of the point value of the first waveform is the drive control frequency of the movable device, and the drive control frequency corresponds to the acceleration frequency of the movable device.
  22. 根据权利要求21所述的装置,其特征在于,The device according to claim 21, characterized in that,
    所述驱动控制频率按照所述可移动设备的每个档位的加速时长确定;The drive control frequency is determined according to the acceleration duration of each gear of the movable device;
    通过所述加速时长生成所述可移动设备在加速、减速阶段的所述第一波形的点数值。The point value of the first waveform of the movable device in the acceleration and deceleration phases is generated by the acceleration duration.
  23. 根据权利要求13所述的装置,其特征在于,The device according to claim 13, characterized in that,
    所述可移动设备的驱动力为直线驱动和/或左右驱动,用于控制所述可移动设备的直线运动和/或左右转向运动。The driving force of the movable device is linear drive and/or left-right drive, which is used to control the linear motion and/or left-right steering motion of the movable device.
  24. 根据权利要求13所述的装置,其特征在于,所述装置还包括匀速模块,所述匀速模块用于:The device according to claim 13, wherein the device further comprises a constant velocity module, and the constant velocity module is used for:
    在所述控制所述可移动设备的速度在加速达到预设速度之后,所述可移动设备的驱动力减为0;After the speed of controlling the movable device is accelerated to a preset speed, the driving force of the movable device is reduced to 0;
    保持所述驱动力为0,控制所述可移动设备处于匀速运动,直至所述可移动设备自动检测到障碍物或收到减速指令;Keeping the driving force at 0, controlling the movable device to move at a constant speed until the movable device automatically detects an obstacle or receives a deceleration instruction;
    其中所述可移动设备处于匀速运动过程中,所述可移动设备的加速度为0,急动度为0。Wherein the movable device is in the process of uniform motion, the acceleration of the movable device is 0, and the jerk is 0.
  25. 一种可移动设备,包括:A removable device comprising:
    至少一个存储器,用于存储计算机可读指令;以及at least one memory for storing computer readable instructions; and
    至少一个处理器,用于运行所述计算机可读指令,使得所述可移动设备实现根据权利要求1-12中任意一项所述的方法。 At least one processor configured to execute the computer-readable instructions, so that the mobile device implements the method according to any one of claims 1-12.
  26. 一种计算机存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行根据权利要求1-12任一项所述可移动设备的速度控制方法的步骤。A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute the steps of the method for controlling the speed of a mobile device according to any one of claims 1-12.
  27. 一种计算机程序,包括指令,当其在计算机上运行时,使得计算机执行根据权利要求1-12任一项所述可移动设备的速度控制方法。 A computer program, comprising instructions, which, when run on a computer, cause the computer to execute the method for controlling the speed of a mobile device according to any one of claims 1-12.
PCT/CN2023/072093 2022-01-13 2023-01-13 Speed control method and apparatus for movable device, and movable device, storage medium and computer program WO2023134746A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210039509.1A CN114578809A (en) 2022-01-13 2022-01-13 Speed control method and device of movable equipment and movable equipment
CN202210039509.1 2022-01-13

Publications (1)

Publication Number Publication Date
WO2023134746A1 true WO2023134746A1 (en) 2023-07-20

Family

ID=81771726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/072093 WO2023134746A1 (en) 2022-01-13 2023-01-13 Speed control method and apparatus for movable device, and movable device, storage medium and computer program

Country Status (2)

Country Link
CN (1) CN114578809A (en)
WO (1) WO2023134746A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118068773A (en) * 2024-04-19 2024-05-24 英孚康(浙江)工业技术有限公司 Universal analog quantity flexible output control method and system for PLC process control

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114578809A (en) * 2022-01-13 2022-06-03 达闼机器人股份有限公司 Speed control method and device of movable equipment and movable equipment
CN116954280A (en) * 2023-09-21 2023-10-27 北京一控软件技术有限公司 Speed control system of metal rolling post-treatment process line

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647152A (en) * 2011-02-18 2012-08-22 株式会社日立高新技术仪器 Motor control system and motor control method
US20130307459A1 (en) * 2012-05-18 2013-11-21 Linestream Technologies Motion profile generator
CN108287527A (en) * 2017-07-18 2018-07-17 山东大学 A kind of improvement S curve Acceleration-deceleration Control Method based on trigonometric function
CN108319228A (en) * 2018-02-09 2018-07-24 苏州科技大学 Acceleration-deceleration Control Method in a kind of digital control system trajectory planning
CN108646674A (en) * 2018-07-20 2018-10-12 深圳市众为创造科技有限公司 Position S type smoothing instructions production method, system and electronic equipment
CN109032081A (en) * 2018-08-10 2018-12-18 山东易码智能科技股份有限公司 Multi-axis robot point synchronization control method and system based on S curve acceleration and deceleration
CN110023856A (en) * 2017-01-10 2019-07-16 韩华泰科株式会社 The method and computing device of motion outline are generated by using S type curve
CN111015668A (en) * 2019-12-27 2020-04-17 深圳市越疆科技有限公司 Acceleration continuous speed planning method and device, controller and robot
CN113359884A (en) * 2020-03-03 2021-09-07 兰剑智能科技股份有限公司 Linear reciprocating motion speed control method and device and electronic equipment
CN113635301A (en) * 2021-07-29 2021-11-12 中国地质大学(武汉) Six-axis mechanical arm movement speed control improvement method
CN114578809A (en) * 2022-01-13 2022-06-03 达闼机器人股份有限公司 Speed control method and device of movable equipment and movable equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5143103B2 (en) * 2009-09-30 2013-02-13 日立オートモティブシステムズ株式会社 Vehicle motion control device
JP5510227B2 (en) * 2010-09-15 2014-06-04 トヨタ自動車株式会社 Vehicle control device
CN102781752B (en) * 2010-09-29 2015-07-08 丰田自动车株式会社 Control device for vehicle
CN103368484B (en) * 2013-07-29 2015-09-30 周立人 Motor motion control circuit and control method thereof
JP6502662B2 (en) * 2014-12-24 2019-04-17 株式会社デンソー Vehicle control device
CN113021329B (en) * 2019-12-24 2022-08-02 深圳市优必选科技股份有限公司 Robot motion control method and device, readable storage medium and robot

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647152A (en) * 2011-02-18 2012-08-22 株式会社日立高新技术仪器 Motor control system and motor control method
US20130307459A1 (en) * 2012-05-18 2013-11-21 Linestream Technologies Motion profile generator
CN110023856A (en) * 2017-01-10 2019-07-16 韩华泰科株式会社 The method and computing device of motion outline are generated by using S type curve
CN108287527A (en) * 2017-07-18 2018-07-17 山东大学 A kind of improvement S curve Acceleration-deceleration Control Method based on trigonometric function
CN108319228A (en) * 2018-02-09 2018-07-24 苏州科技大学 Acceleration-deceleration Control Method in a kind of digital control system trajectory planning
CN108646674A (en) * 2018-07-20 2018-10-12 深圳市众为创造科技有限公司 Position S type smoothing instructions production method, system and electronic equipment
CN109032081A (en) * 2018-08-10 2018-12-18 山东易码智能科技股份有限公司 Multi-axis robot point synchronization control method and system based on S curve acceleration and deceleration
CN111015668A (en) * 2019-12-27 2020-04-17 深圳市越疆科技有限公司 Acceleration continuous speed planning method and device, controller and robot
CN113359884A (en) * 2020-03-03 2021-09-07 兰剑智能科技股份有限公司 Linear reciprocating motion speed control method and device and electronic equipment
CN113635301A (en) * 2021-07-29 2021-11-12 中国地质大学(武汉) Six-axis mechanical arm movement speed control improvement method
CN114578809A (en) * 2022-01-13 2022-06-03 达闼机器人股份有限公司 Speed control method and device of movable equipment and movable equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118068773A (en) * 2024-04-19 2024-05-24 英孚康(浙江)工业技术有限公司 Universal analog quantity flexible output control method and system for PLC process control

Also Published As

Publication number Publication date
CN114578809A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
WO2023134746A1 (en) Speed control method and apparatus for movable device, and movable device, storage medium and computer program
LU501897B1 (en) Vehicle speed tracking control method, device and equipment, and storage medium
CN101369133B (en) Low speed friction servo system sliding-mode variable structure control method based on grey prediction device
Nour et al. Fuzzy logic control vs. conventional PID control of an inverted pendulum robot
CN102774750B (en) Garbage grab bucket crane and anti-swinging control method
WO2018176597A1 (en) Unmanned bicycle balance control method based on rate gyroscope
CN101241352A (en) Apparatus and method for proportional-integral-derivative control
CN101639739A (en) Touch electronic device and operational method thereof
WO2014071055A1 (en) Distributed association engine
CN113033925B (en) Apparatus, electronic device, and medium for controlling travel of autonomous vehicle
CN109849668A (en) A kind of speed display methods of liquid crystal instrument for automobile
CN116069041B (en) Track planning method, device, vehicle and medium
WO2023174087A1 (en) Method and apparatus for generating special effect video, and device and storage medium
CN115817515A (en) Vehicle control method, device, electronic equipment and computer readable medium
WO2023284674A1 (en) Message selection method and apparatus, and device
WO2023279939A1 (en) User handheld device having tactile interaction function, and tactile interaction method and apparatus
CN113076053A (en) Cursor remote control method and device, electronic equipment and storage medium
CN112792808B (en) Industrial robot online track planning method and device based on variable structure filter
CN114111788A (en) Trajectory planning method and device based on multi-segment clothoid and storage device
CN115534950B (en) Vehicle control method, device, equipment and computer readable medium
CN117997206B (en) Rotating speed control method and device of permanent magnet synchronous motor, electronic equipment and storage medium
CN115675637B (en) Vehicle control method, device, electronic equipment and computer readable medium
CN113954999A (en) Constant speed cruise control method and device for two-wheeled vehicle, two-wheeled vehicle and readable medium
CN113734435B (en) Multi-rotor and fixed-wing mode conversion method and device for composite-wing unmanned aerial vehicle
WO2024140695A1 (en) Pid controller anti-integral windup calculation method and apparatus, and a related device

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

Country of ref document: EP

Kind code of ref document: A1