CN116700237A - Control method and device of self-mobile device and storage medium - Google Patents

Control method and device of self-mobile device and storage medium Download PDF

Info

Publication number
CN116700237A
CN116700237A CN202210190809.XA CN202210190809A CN116700237A CN 116700237 A CN116700237 A CN 116700237A CN 202210190809 A CN202210190809 A CN 202210190809A CN 116700237 A CN116700237 A CN 116700237A
Authority
CN
China
Prior art keywords
self
mobile device
channel
moving device
controlling
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210190809.XA
Other languages
Chinese (zh)
Inventor
顾一休
杨咚浩
吴杰群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dreame Innovation Technology Suzhou Co Ltd
Original Assignee
Dreame Innovation Technology Suzhou Co Ltd
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 Dreame Innovation Technology Suzhou Co Ltd filed Critical Dreame Innovation Technology Suzhou Co Ltd
Priority to CN202210190809.XA priority Critical patent/CN116700237A/en
Priority to PCT/CN2023/074694 priority patent/WO2023160368A1/en
Publication of CN116700237A publication Critical patent/CN116700237A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions

Abstract

The application belongs to the field of automatic control, and particularly relates to a control method, equipment and storage medium of self-mobile equipment, wherein the method comprises the following steps: controlling the self-moving device to travel in a target channel, wherein the target channel refers to a channel with a channel spacing larger than the minimum distance and smaller than the maximum distance; controlling the self-moving device to back up to exit the target channel under the condition that the self-moving device cannot pass through the target channel is determined; the problem that the self-mobile device cannot leave the narrow channel due to the fact that the self-mobile device cannot realize direction turning in the narrow channel can be solved; after determining that the self-moving equipment cannot turn the advancing direction in the target channel, controlling the self-moving equipment to back up to exit the target channel, and at the moment, even if the self-moving equipment is non-circular, the self-moving equipment cannot be trapped in the target channel due to the fact that the self-moving equipment cannot turn around, so that the escaping effect of the self-moving equipment can be ensured.

Description

Control method and device of self-mobile device and storage medium
Technical Field
The application belongs to the field of automatic control, and particularly relates to a control method, equipment and storage medium of self-mobile equipment.
Background
Currently, a self-moving device may enter a narrow channel by collision and move within the narrow channel. In the case where the self-moving device cannot pass through the narrow passage, it is necessary to leave the narrow passage.
Conventional approaches to leaving narrow channels from mobile devices include: the self-moving device is controlled to turn around to leave the narrow channel.
However, the self-mobile device may not be able to effect a direction change within the narrow channel, which may result in a problem that the self-mobile device cannot leave the narrow channel.
Disclosure of Invention
The application provides a control method, equipment and storage medium of a self-mobile device, which can solve the problem that the self-mobile device can not leave a narrow channel because the self-mobile device can not realize direction turning in the narrow channel. The application provides the following technical scheme:
in a first aspect, a control method of a self-mobile device is provided, wherein a minimum distance between non-adjacent edge portions of the self-mobile device is not equal to a maximum distance between non-adjacent edge portions; the method comprises the following steps:
controlling the self-moving device to travel in a target channel, wherein the target channel refers to a channel with a channel spacing larger than the minimum distance and smaller than the maximum distance;
and controlling the self-moving device to back up to exit the target channel under the condition that the self-moving device cannot pass through the target channel.
Optionally, the self-moving device comprises a wheel body and a driving piece connected with the wheel body; the driving piece operates in a first direction to drive the wheel body to move in the travelling process of the self-moving equipment;
the controlling the self-moving device to reverse includes:
and controlling the driving piece to run in a second direction so as to drive the wheel body to drive the self-moving equipment to back up, wherein the second direction is opposite to the first direction.
Optionally, the controlling the self-moving device to reverse includes:
acquiring the middle position of the target channel;
and controlling the self-moving device to reverse according to the intermediate position.
Optionally, after the controlling the self-mobile device to reverse according to the intermediate position, the method further includes:
in the event of a collision of the self-moving device, adjusting a reverse direction based on a collision position;
and controlling the self-moving device to reverse according to the regulated reverse direction.
Optionally, the controlling the self-moving device to reverse according to the adjusted reverse direction includes;
and adjusting the reversing direction to a direction away from the collision position by a preset angle to obtain the adjusted reversing direction.
Optionally, before the adjusting the reverse direction based on the collision position, the method further includes:
recording the number of times that the self-moving device collides in the reversing process;
and outputting an alarm prompt or executing a preset escape action under the condition that the times reach the times threshold.
Optionally, the preset escaping action includes:
adjusting the driving power of the reverse to the maximum power; reversing according to the maximum power;
or alternatively, the process may be performed,
after the self-mobile equipment is controlled to advance for a certain distance, the driving power of the reversing is regulated to the maximum power; reversing according to the maximum power.
Optionally, the controlling the self-moving device to reverse according to the intermediate position includes:
acquiring the reversing direction of the self-moving equipment;
determining whether an included angle between the reversing direction and a preset direction is larger than an angle threshold value; the preset direction is parallel to the middle line of the target channel;
and correcting the reversing direction under the condition that the included angle is larger than an angle threshold value, so that the included angle between the reversing direction and the preset direction is smaller than or equal to the angle threshold value.
Optionally, after the controlling the self-mobile device to move in the target channel, the method further comprises:
determining whether the self-mobile device can pass through the target channel based on the number of times the self-mobile device collides in the travelling process;
or alternatively, the process may be performed,
based on the device status of the self-mobile device, it is determined whether the self-mobile device is capable of passing through the target pathway.
Optionally, before the self-mobile device is controlled to move in the target channel, the method further comprises
Acquiring the environmental information of the self-mobile device in the travelling direction;
determining whether the passage exists in the traveling direction based on the environmental information;
acquiring the channel spacing of the channel based on the environmental information when the channel exists;
controlling the self-moving device to travel within the target channel if the channel spacing is greater than the minimum distance and less than the maximum distance.
In a second aspect, an electronic device is provided, the device comprising a processor and a memory; the memory stores a program that is loaded and executed by the processor to implement the control method of the self-mobile device according to the first aspect.
In a third aspect, there is provided a computer-readable storage medium having stored therein a program for implementing the control method of the self-mobile device provided in the first aspect when executed by a processor.
The application has the beneficial effects that: by controlling the self-moving device to travel within a target channel, the target channel refers to a channel with a channel spacing greater than a minimum distance and less than a maximum distance; in the event that it is determined that the self-mobile device cannot pass through the target pathway, the self-mobile device is controlled to reverse to exit the target pathway. The method and the device can solve the problem that the self-moving device can not leave the narrow channel because the self-moving device can not realize direction change in the narrow channel. Controlling the self-moving device to reverse to exit the target pathway after determining that the self-moving device cannot reverse the traveling direction in the target pathway. At this time, even if the self-moving device is non-circular, the self-moving device cannot be trapped in the target channel due to the fact that the self-moving device cannot turn around, and therefore the escaping effect of the self-moving device can be guaranteed.
In addition, since the self-moving device can collide for a plurality of times in the moving direction in the target channel, at this time, whether the self-moving device can continue to move in the target channel is determined based on the number of times of collision, and the problem that the self-moving device is trapped in the target channel due to infinite times of collision of the self-moving device in the target channel can be avoided.
In addition, by determining that the self-mobile device cannot pass through the target channel when the residual electric quantity is low, the problem that the self-mobile device cannot leave the target channel due to insufficient electric quantity, and therefore cannot finish cleaning work can be prevented.
In addition, when the dirt degree of the cleaning mechanism is high, the self-moving equipment is determined to be unable to pass through the target channel, so that the problem that the self-moving equipment cannot achieve the expected cleaning effect in the target channel due to the high dirt degree of the cleaning mechanism can be prevented, and the cleaning efficiency of the self-moving equipment is ensured.
In addition, because the body position of the self-moving equipment possibly deviates greatly in the reversing process, the self-moving equipment collides with two sides of the target channel, and the self-moving equipment can be prevented from deviating greatly by correcting the body position and correcting the reversing direction, so that the collision with the target channel for two times is reduced.
In addition, since the self-mobile device may encounter a movable obstacle during the reversing process, the user can be informed of the existence of the obstacle by outputting an alarm prompt, so that the user can remove the obstacle in time or remove the self-mobile device, thereby avoiding the self-mobile device from being trapped.
In addition, since the obstacle encountered by the self-moving device at a certain position during the reverse, it may be an obstacle that is moved to the position after passing the position from the moving device. At this time, the probability that the obstacle is movable is large. At this time, by increasing the probability that the power hits the obstacle, the problem of the self-moving device getting trapped during the reverse can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a self-mobile device according to one embodiment of the present application;
FIG. 2 is a flow chart of a method of controlling a self-mobile device according to one embodiment of the present application;
FIG. 3 is a block diagram of a self-mobile device control apparatus provided by one embodiment of the present application;
fig. 4 is a block diagram of an electronic device provided in one embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the application are shown. The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
In the present application, unless otherwise indicated, terms of orientation such as "upper, lower, top, bottom" are used generally with respect to the orientation shown in the drawings or with respect to the component itself in the vertical, upright or gravitational direction; also, for ease of understanding and description, "inner and outer" refers to inner and outer relative to the profile of each component itself, but the above-mentioned orientation terms are not intended to limit the present application.
Fig. 1 is a schematic structural diagram of a self-mobile device according to an embodiment of the present application, where the self-mobile device is an electronic device that can realize automatic movement without user driving. Optionally, the self-mobile device may include other functions in addition to the self-mobile function, such as: and may further include a cleaning function, and the self-moving device may be a sweeper, a cleaner, a mopping machine, a floor washing machine, or the like, and the embodiment does not limit the implementation manner of the self-moving device.
In this embodiment, the minimum distance between non-adjacent edge portions of the self-moving device is not equal to the maximum distance between non-adjacent edge portions. That is, the self-mobile device as a whole is in a non-circular shape, such as: the whole self-mobile device is D-shaped.
As can be seen from fig. 1, the self-mobile device at least includes: a driving member 110, a wheel 120 and a controller 130.
The driving member 110 is coupled to the wheel 120, and is used for driving the wheel 120 to move to drive the self-moving device.
The driving member 110 is connected to the controller 130, and is configured to drive the wheel 120 to move in response to a command sent by the controller 130.
Alternatively, the driving member 110 may be implemented as a dc motor, a servo motor, a stepping motor, or the like, and the implementation of the driving member 110 is not limited in this embodiment.
The controller 130 is used to control the self-mobile device. Alternatively, the controller 130 may be implemented as a single-chip microcomputer, or a processor, and the implementation of the controller 130 is not limited in this embodiment.
In this embodiment, the controller 130 is configured to: controlling the self-moving equipment to travel in a target channel, wherein the target channel refers to a channel with a channel spacing larger than a minimum distance and smaller than a maximum distance; in the event that it is determined that the self-mobile device cannot pass through the target pathway, the self-mobile device is controlled to reverse to exit the target pathway.
Wherein, reversing refers to: the driving piece of the self-moving device is reversed to change the driving direction, so that the moving mode of the self-moving device with the opposite travelling direction is realized. Reversing is different from turning around. Specifically, turning around refers to a movement manner in which the driving direction of the driving member is not changed, thereby reversing the traveling direction of the self-moving device. In the turning process, the self-mobile device often needs a larger width space to realize turning, and the reversing does not need a larger width space.
Optionally, to determine whether a target pathway exists in the direction of travel of the self-mobile device, a first sensor 140 is provided on the self-mobile device.
The first sensor 140 is used to collect environmental information from the mobile device in the direction of travel. Alternatively, the first sensor 140 may be a camera, an infrared sensor, a lidar sensor, or the like, which is equipped with a color system (Red Green Blue, RGB) detection function, and the type of the first sensor 140 is not limited in this embodiment.
Alternatively, the first sensor 140 may be mounted on the housing of the self-mobile device and used to collect the environment from the direction of travel of the mobile device. The acquisition range of the first sensor 140 includes, but is not limited to: in the region directly in front of, obliquely above and/or obliquely below the direction of travel of the self-moving device; and/or from a left region of the travel direction of the mobile device; and/or from a right region of the travel direction of the mobile device; and/or from a rear region of the travel direction of the mobile device, etc., the present embodiment defines the acquisition range of the first sensor 140.
Alternatively, the number of the first sensors 140 may be one or at least two, and in the case where the number of the first sensors 140 is at least two, the types of the different first sensors 140 are the same or different, and the number and implementation of the first sensors 140 are not limited in this embodiment.
The first sensor 140 is connected to the controller 130 to transmit the collected environmental information to the controller 130.
Accordingly, after acquiring the environmental information in the traveling direction, the controller 130 determines whether a channel exists in the traveling direction based on the environmental information; in the case where a channel exists, acquiring a channel pitch of the channel based on the environmental information; in the case where the lane spacing is greater than the minimum distance and less than the maximum distance, the self-moving device is controlled to travel within the target lane.
Optionally, a second sensor 150 is also provided on the self-mobile device, the second sensor 150 being connected to the controller 130 and being configured to send sensory data to the controller 130. Accordingly, the controller 130 determines whether the self-mobile device can pass through the target channel based on the sensing data after receiving the sensing data; if the mobile device can continue to pass through the target channel, the mobile device is controlled to continue to travel; if the target channel cannot be continuously passed, the self-moving device is controlled to back up so as to exit the target channel.
Illustratively, the second sensor 150 may be a collision sensor for acquiring collision results from the mobile device. Optionally, collision sensors are mounted on both sides of the direction of travel of the self-moving device. During the traveling process, the controller 130 records the number of collisions between the collision sensor and the target channel based on the collision result; in the case where the number of collisions reaches the threshold, the controller 130 controls the self-moving device to reverse.
Such as: the threshold number of collisions is set to 16, and when the value of the collision sensor reaches 16, i.e., the number of collisions from the mobile device with both sides of the tunnel reaches 16, the controller 130 controls the mobile device to reverse.
It should be noted that, in actual implementation, the self-mobile device may further include other components, such as: power supply components, shock absorbing components, etc., are not specifically mentioned herein.
In the conventional control method of the self-mobile device, the self-mobile device is trapped in the narrow channel and needs to change the traveling direction to leave the narrow channel, however, the non-circular self-mobile device may not realize the direction change in the narrow channel, which may cause the problem that the self-mobile device cannot leave the narrow channel. In this embodiment, the self-moving device is controlled to reverse to exit the target channel after determining that the self-moving device cannot turn the traveling direction in the target channel. At this time, even if the self-moving device is non-circular, the self-moving device cannot be trapped in the target channel due to the fact that the self-moving device cannot turn around, and therefore the escaping effect of the self-moving device can be guaranteed.
The control method of the self-mobile device is described below. The following embodiment will take as an example a self-mobile device as shown in fig. 1 as an execution subject of the method.
Fig. 2 is a flowchart of a control method of a self-mobile device according to an embodiment of the present application, where the method includes at least the following steps:
in step 201, the self-mobile device is controlled to travel in a target channel, wherein the target channel is a channel with a channel spacing greater than a minimum distance and less than a maximum distance.
In one example, controlling the self-mobile device to travel within the target channel includes: acquiring environmental information of the mobile device in the travelling direction; determining whether a channel exists in the traveling direction based on the environmental information; in the case where a channel exists, acquiring a channel pitch of the channel based on the environmental information; in the case where the lane spacing is greater than the minimum distance and less than the maximum distance, the self-moving device is controlled to travel within the target lane.
And under the condition that the channel spacing is smaller than the minimum distance, determining that the target channel does not exist in the travelling direction, and controlling the self-mobile device to change the travelling direction so as to travel in the direction away from the channel.
And under the condition that the channel spacing is larger than the maximum distance, determining that a target channel does not exist in the travelling direction, controlling the self-mobile equipment to enter the channel, travelling in the channel, and turning around to exit the channel under the condition that the channel cannot be passed.
The self-moving device is provided with a first sensor, the first sensor is used for acquiring the environmental information of the self-moving device in the running direction, and the self-moving device acquires the environmental information acquired by the first sensor.
Illustratively, the environmental information includes point cloud data or an environmental image; accordingly, determining whether a channel exists in the traveling direction based on the environmental information includes: and carrying out target recognition on the environment information to obtain a target recognition result, wherein the target recognition result is used for indicating whether a channel exists in the environment information.
Among other algorithms for target recognition of environmental information include, but are not limited to: neural network recognition, feature recognition, image segmentation recognition, and the like, the present embodiment does not limit the algorithm of target recognition.
In the case where a channel exists, acquiring a channel pitch of the channel based on the environmental information includes: channel side positions are determined based on the environmental information, and channel spacing is determined based on the channel side positions.
In other implementations, the target recognition result may also include a channel pitch, and the embodiment does not limit the manner of obtaining the channel pitch.
In another example, controlling the self-mobile device to travel within the target pathway includes: in response to the control instruction, the self-mobile device is controlled to travel within the target channel. At this time, the cleaning device is communicatively connected to a control device for controlling the movement of the self-moving device. The control device may be a remote controller, a mobile phone, a tablet computer, a wearable device, etc., and the embodiment does not limit the device type of the control device.
Optionally, the self-moving device travels entirely along an intermediate position of the target pathway as it travels within the target pathway. Wherein the intermediate position is determined from the mobile device based on the lane spacing of the target lane. Specifically, the intermediate position is 1/2 of the channel pitch.
Movement from the mobile device may be hindered by obstructions within the target passageway. Based on this, in order to avoid trapping the self-mobile device within the target pathway, it is necessary to determine whether the self-mobile device can continue to pass through the target pathway during travel within the target pathway. Wherein determining from the mobile device whether it can continue through the target channel includes, but is not limited to, the following two ways:
first, it is determined whether the self-mobile device can pass through the target pathway based on the number of times the self-mobile device collides during traveling.
Accordingly, the collision sensor is arranged on the self-mobile device to acquire whether the self-mobile device collides in the travelling process. Wherein determining whether the self-mobile device is capable of passing through the target channel based on the number of times the self-mobile device collides in the traveling process comprises: under the condition that the number of times of collision reaches a preset number of times threshold, determining that the self-mobile equipment cannot pass through the target channel; and if the number of times of collision is smaller than the preset number of times threshold, controlling the mobile equipment to shift a preset angle to the right side and then continue to move forwards, and if the mobile equipment collides with the right side of the channel, controlling the automatic equipment to shift a preset angle to the left side and then continue to move forwards.
The preset angle is preset in the self-mobile device, and the preset angle can be 5 degrees, 10 degrees and the like, and the value of the preset angle is not limited in this embodiment.
In other embodiments, the preset angle shifted to the right and the preset angle shifted to the left may be different, and the embodiment is not limited to the manner of shifting the angle from the mobile device.
Since the self-moving device can collide for a plurality of times in the moving direction in the target channel, at the moment, whether the self-moving device can continue to move in the target channel is determined based on the collision times, and the problem that the self-moving device is trapped in the target channel due to infinite collision of the self-moving device in the target channel can be avoided.
Second, based on the device status of the self-mobile device, it is determined whether the self-mobile device is capable of passing through the target channel.
In one example, the device state includes a remaining power from the mobile device. Accordingly, determining whether the self-mobile device is capable of passing through the target channel based on the device state of the self-mobile device includes: under the condition that the residual electric quantity of the self-mobile device is smaller than or equal to a preset electric quantity threshold value, determining that the self-mobile device cannot pass through the target channel; and under the condition that the residual electric quantity of the self-mobile device is larger than the preset electric quantity threshold value, acquiring the residual electric quantity of the self-mobile device again so as to compare the residual electric quantity with the preset electric quantity threshold value.
In this example, by determining that the self-mobile device cannot pass through the target channel when the remaining power is low, it is possible to prevent the self-mobile device from being unable to leave the target channel due to insufficient power, thereby causing a problem that the self-mobile device cannot complete the cleaning work.
In another example, taking a self-moving device as an example of a cleaning device, a dirt sensor is disposed on the cleaning device, the dirt sensor is used for acquiring a dirt level of the cleaning mechanism, and the device state includes the dirt level of the cleaning mechanism of the self-moving device. Accordingly, determining whether the self-mobile device is capable of passing through the target channel based on the device state of the self-mobile device includes: determining that the self-moving device cannot pass through the target channel under the condition that the dirt degree of the self-moving device cleaning mechanism is larger than a preset dirt degree threshold value; and acquiring the dirt level of the self-moving device cleaning mechanism again to compare the dirt level with a preset dirt level threshold value under the condition that the dirt level of the self-moving device cleaning mechanism is smaller than or equal to the preset dirt level threshold value.
In this example, by determining that the self-moving device cannot pass through the target channel when the degree of dirt of the cleaning mechanism is high, the problem that the self-moving device cannot achieve the intended cleaning effect in the target channel due to the high degree of dirt of the cleaning mechanism can be prevented, thereby ensuring the cleaning efficiency of the self-moving device.
In step 202, in the case that it is determined that the self-mobile device cannot pass through the target channel, the self-mobile device is controlled to reverse to exit the target channel.
Optionally, the drive member is operable in a first direction in the direction of travel from the mobile device to drive the wheel to travel and travel within the target pathway. Accordingly, controlling the self-moving device to reverse in the event that travel cannot continue within the target pathway, comprising: the controller controls the driving piece to run in a second direction so as to drive the wheel body to drive the self-moving equipment to back up, and the second direction is opposite to the first direction.
Based on the driving principle, the reversing in the present embodiment means: the controller controls the driving piece to run in the opposite direction to the forward direction, so that the reversing of the self-moving equipment is realized, and at the moment, even if the self-moving equipment is non-circular, the self-moving equipment cannot be trapped in the target channel due to the fact that the self-moving equipment cannot turn around, so that the escaping effect of the self-moving equipment can be ensured.
Optionally, controlling the reverse from the mobile device includes: acquiring the middle position of a target channel; controlling the self-moving device to reverse according to the intermediate position.
Since the intermediate position of the target channel is already recorded during the traveling process, the intermediate position of the target channel can be obtained by reading the history of the traveling process.
Or, in the reversing process of the self-mobile device, the first sensor can also collect the environment information of the target channel, and the channel spacing of the target channel is determined based on the environment information; an intermediate position is determined based on the channel spacing.
Wherein controlling the self-moving device to reverse according to the intermediate position comprises: acquiring a reverse direction of the mobile device; determining whether an included angle between the reversing direction and the preset direction is larger than an angle threshold value; and correcting the reversing direction under the condition that the included angle is larger than the angle threshold value, so that the included angle between the reversing direction and the preset direction is smaller than or equal to the angle threshold value.
Wherein the preset direction is parallel to the middle line of the target channel.
Because the body position of the self-moving equipment possibly deviates greatly in the reversing process, the self-moving equipment collides with two sides of the target channel, and the collision with two sides of the target channel is reduced by correcting the body position and correcting the reversing direction.
In other embodiments, the self-mobile device may also reverse in accordance with the travel route, at which point the travel route is stored in the self-mobile device.
Optionally, after controlling the self-mobile device to reverse according to the intermediate position, the following steps S1 and S2 are further included:
step S1, in the event of a collision from the mobile device, the reverse direction is adjusted based on the collision position.
Optionally, the reverse direction is adjusted by a preset angle in a direction away from the collision position, resulting in an adjusted reverse direction.
Illustratively, the self-moving device is provided with a collision sensor, and when a collision is detected, the reverse direction is adjusted by a preset angle towards a direction away from the collision, so as to obtain an adjusted reverse direction.
The preset angle is preset in the self-mobile device, and the preset angle can be 5 degrees, 10 degrees and the like, and the value of the preset angle is not limited in this embodiment.
Optionally, before adjusting the reverse direction based on the collision position, that is, before step S1, further includes: recording the number of times that the self-mobile device collides in the reversing process; and under the condition that the times reach the times threshold, outputting an alarm prompt or executing a preset escaping action.
Optionally, the alert prompt may be an alert prompt voice sent from the mobile device itself, or an alert prompt sent to a mobile terminal bound to the self-mobile device, which is not limited by the output mode of the alert prompt in this embodiment.
Since the self-mobile device may encounter a movable obstacle during the reversing process, the user can be informed of the existence of the obstacle by outputting an alarm prompt, so that the user can remove the obstacle in time or remove the self-mobile device, thereby avoiding the self-mobile device from being trapped.
Optionally, the preset escaping action includes: adjusting the driving power of the reverse to the maximum power; reversing according to the maximum power; or after the mobile device is controlled to advance for a certain distance, the driving power of the reversing is regulated to the maximum power; reversing according to the maximum power.
Since the obstacle encountered by the self-moving device at a certain position during the reverse may be an obstacle that is moved to the position after passing the position from the moving device. At this time, the probability that the obstacle is movable is large. At this time, by increasing the probability that the power hits the obstacle, the problem of the self-moving device getting trapped during the reverse can be avoided.
And S2, controlling the self-moving device to reverse according to the regulated reverse direction.
In summary, according to the control method for the self-mobile device provided by the embodiment, the self-mobile device is controlled to travel in the target channel, where the target channel refers to a channel with a channel spacing greater than the minimum distance and less than the maximum distance; in the event that it is determined that the self-mobile device cannot pass through the target pathway, the self-mobile device is controlled to reverse to exit the target pathway. The method and the device can solve the problem that the self-moving device can not leave the narrow channel because the self-moving device can not realize direction change in the narrow channel. Controlling the self-moving device to reverse to exit the target pathway after determining that the self-moving device cannot reverse the traveling direction in the target pathway. At this time, even if the self-moving device is non-circular, the self-moving device cannot be trapped in the target channel due to the fact that the self-moving device cannot turn around, and therefore the escaping effect of the self-moving device can be guaranteed.
In addition, since the self-moving device can collide for a plurality of times in the moving direction in the target channel, at this time, whether the self-moving device can continue to move in the target channel is determined based on the number of times of collision, and the problem that the self-moving device is trapped in the target channel due to infinite times of collision of the self-moving device in the target channel can be avoided.
In addition, by determining that the self-mobile device cannot pass through the target channel when the residual electric quantity is low, the problem that the self-mobile device cannot leave the target channel due to insufficient electric quantity, and therefore cannot finish cleaning work can be prevented.
In addition, when the dirt degree of the cleaning mechanism is high, the self-moving equipment is determined to be unable to pass through the target channel, so that the problem that the self-moving equipment cannot achieve the expected cleaning effect in the target channel due to the high dirt degree of the cleaning mechanism can be prevented, and the cleaning efficiency of the self-moving equipment is ensured.
In addition, because the body position of the self-moving equipment possibly deviates greatly in the reversing process, the self-moving equipment collides with two sides of the target channel, and the self-moving equipment can be prevented from deviating greatly by correcting the body position and correcting the reversing direction, so that the collision with the target channel for two times is reduced.
In addition, since the self-mobile device may encounter a movable obstacle during the reversing process, the user can be informed of the existence of the obstacle by outputting an alarm prompt, so that the user can remove the obstacle in time or remove the self-mobile device, thereby avoiding the self-mobile device from being trapped.
In addition, since the obstacle encountered by the self-moving device at a certain position during the reverse, it may be an obstacle that is moved to the position after passing the position from the moving device. At this time, the probability that the obstacle is movable is large. At this time, by increasing the probability that the power hits the obstacle, the problem of the self-moving device getting trapped during the reverse can be avoided.
Fig. 3 is a block diagram of a control apparatus for a self-mobile device according to an embodiment of the present application, and this embodiment is described by taking the application of the apparatus to the self-mobile device shown in fig. 1 as an example. The device at least comprises the following modules: a travel module 310 and a reverse module 320.
A traveling module 310, configured to control the self-mobile device to travel in a target channel, where the target channel is a channel with a channel spacing greater than a minimum distance and less than a maximum distance;
a reversing module 320 is configured to control the self-mobile device to reverse to exit the target pathway if it is determined that the self-mobile device cannot pass through the target pathway.
For relevant details reference is made to the above embodiments.
It should be noted that: in the control of the self-mobile device control apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the self-mobile device control apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the self-mobile device control device and the self-mobile device control method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments, which are not repeated herein.
The present embodiment provides an electronic device, as shown in fig. 4, which may be the self-mobile device in fig. 1. The electronic device comprises at least a processor 401 and a memory 402.
Processor 401 may include one or more processing cores such as: 4 core processors, 8 core processors, etc. The processor 401 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 401 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 401 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 401 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement the self-mobile device control method provided by the method embodiments of the present application.
In some embodiments, the electronic device may further optionally include: a peripheral interface and at least one peripheral. The processor 401, memory 402, and peripheral interfaces may be connected by buses or signal lines. The individual peripheral devices may be connected to the peripheral device interface via buses, signal lines or circuit boards. Illustratively, peripheral devices include, but are not limited to: radio frequency circuitry, touch display screens, audio circuitry, and power supplies, among others.
Of course, the electronic device may also include fewer or more components, as the present embodiment is not limited in this regard.
Optionally, the present application further provides a computer readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the self-mobile device control method of the above method embodiment.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (12)

1. A control method of a self-moving device, characterized in that a minimum distance between non-adjacent edge portions of the self-moving device is not equal to a maximum distance between non-adjacent edge portions; the method comprises the following steps:
controlling the self-moving device to travel in a target channel, wherein the target channel refers to a channel with a channel spacing larger than the minimum distance and smaller than the maximum distance;
and controlling the self-moving device to back up to exit the target channel under the condition that the self-moving device cannot pass through the target channel.
2. The method of claim 1, wherein the self-moving device comprises a wheel and a drive member coupled to the wheel; the driving piece operates in a first direction to drive the wheel body to move in the travelling process of the self-moving equipment;
the controlling the self-moving device to reverse includes:
and controlling the driving piece to run in a second direction so as to drive the wheel body to drive the self-moving equipment to back up, wherein the second direction is opposite to the first direction.
3. The method of claim 1, wherein the controlling the self-moving device to reverse comprises:
acquiring the middle position of the target channel;
and controlling the self-moving device to reverse according to the intermediate position.
4. The method of claim 2, wherein said controlling said self-moving device to reverse in accordance with said neutral position further comprises:
in the event of a collision of the self-moving device, adjusting a reverse direction based on a collision position;
and controlling the self-moving device to reverse according to the regulated reverse direction.
5. The method of claim 4, wherein said controlling the self-moving device to reverse in an adjusted reverse direction comprises;
and adjusting the reversing direction to a direction away from the collision position by a preset angle to obtain the adjusted reversing direction.
6. The method of claim 4, wherein before adjusting the reverse direction based on the collision position, further comprising:
recording the number of times that the self-moving device collides in the reversing process;
and outputting an alarm prompt or executing a preset escape action under the condition that the times reach the times threshold.
7. The method of claim 6, wherein the preset override action comprises:
adjusting the driving power of the reverse to the maximum power; reversing according to the maximum power;
or alternatively, the process may be performed,
after the self-mobile equipment is controlled to advance for a certain distance, the driving power of the reversing is regulated to the maximum power; reversing according to the maximum power.
8. The method of claim 2, wherein said controlling the self-moving device to reverse in accordance with the neutral position comprises:
acquiring the reversing direction of the self-moving equipment;
determining whether an included angle between the reversing direction and a preset direction is larger than an angle threshold value; the preset direction is parallel to the middle line of the target channel;
and correcting the reversing direction under the condition that the included angle is larger than an angle threshold value, so that the included angle between the reversing direction and the preset direction is smaller than or equal to the angle threshold value.
9. The method of claim 1, wherein the controlling the self-mobile device after traveling within the target pathway further comprises:
determining whether the self-mobile device can pass through the target channel based on the number of times the self-mobile device collides in the travelling process;
or alternatively, the process may be performed,
based on the device status of the self-mobile device, it is determined whether the self-mobile device is capable of passing through the target pathway.
10. The method of claim 1, wherein the controlling the self-mobile device prior to traveling within a target pathway further comprises:
acquiring the environmental information of the self-mobile device in the travelling direction;
determining whether the passage exists in the traveling direction based on the environmental information;
acquiring the channel spacing of the channel based on the environmental information when the channel exists;
controlling the self-moving device to travel within the target channel if the channel spacing is greater than the minimum distance and less than the maximum distance.
11. An electronic device comprising a processor and a memory; the memory has stored therein a program that is loaded and executed by the processor to implement the control method of the self-mobile device as claimed in claims 1-10.
12. A computer-readable storage medium, characterized in that the storage medium has stored therein a program which, when executed by a processor, is adapted to carry out the control method of a self-mobile device as claimed in claims 1-10.
CN202210190809.XA 2022-02-25 2022-02-25 Control method and device of self-mobile device and storage medium Pending CN116700237A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210190809.XA CN116700237A (en) 2022-02-25 2022-02-25 Control method and device of self-mobile device and storage medium
PCT/CN2023/074694 WO2023160368A1 (en) 2022-02-25 2023-02-07 Self-moving device control method, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190809.XA CN116700237A (en) 2022-02-25 2022-02-25 Control method and device of self-mobile device and storage medium

Publications (1)

Publication Number Publication Date
CN116700237A true CN116700237A (en) 2023-09-05

Family

ID=87764805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190809.XA Pending CN116700237A (en) 2022-02-25 2022-02-25 Control method and device of self-mobile device and storage medium

Country Status (2)

Country Link
CN (1) CN116700237A (en)
WO (1) WO2023160368A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117282698A (en) * 2023-09-20 2023-12-26 宁夏隆基宁光仪表股份有限公司 Photovoltaic cleaning robot and method for autonomously selecting cleaning route thereof

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003280736A (en) * 2002-03-22 2003-10-02 Matsushita Electric Ind Co Ltd Self-propelled apparatus and its program
JP2009169802A (en) * 2008-01-18 2009-07-30 Panasonic Corp Autonomous traveling device and program
US20130166134A1 (en) * 2010-07-13 2013-06-27 Murata Machinery, Ltd. Autonomous mobile body
CN105739503A (en) * 2016-04-13 2016-07-06 上海物景智能科技有限公司 Turning method of walking robot and control device
CN107536565A (en) * 2017-10-24 2018-01-05 湖南格兰博智能科技有限责任公司 From mobile clean robot and its control method
CN110192814A (en) * 2019-06-20 2019-09-03 深圳市银星智能科技股份有限公司 It gets rid of poverty method and from mobile device from mobile device
CN111090277A (en) * 2018-10-22 2020-05-01 科沃斯机器人股份有限公司 Method, apparatus and storage medium for travel control
CN111208811A (en) * 2018-11-22 2020-05-29 北京奇虎科技有限公司 Narrow-slit escaping method, device and equipment for sweeping robot and readable storage medium
CN111650933A (en) * 2020-05-19 2020-09-11 上海有个机器人有限公司 Control robot escaping method, device, terminal and readable storage medium
CN111714030A (en) * 2019-03-19 2020-09-29 北京奇虎科技有限公司 Method and device for removing difficulty of cleaning equipment, electronic equipment and readable storage medium
CN112947464A (en) * 2021-03-05 2021-06-11 上海有个机器人有限公司 Method, device, terminal and storage medium for robot to pass through narrow space
CN114510042A (en) * 2022-01-22 2022-05-17 深圳市神州云海智能科技有限公司 Method and system for solving abnormal pause motion of robot narrow channel
CN114518744A (en) * 2020-10-30 2022-05-20 深圳乐动机器人有限公司 Robot escaping method and device, robot and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111802968B (en) * 2020-08-02 2022-02-08 珠海一微半导体股份有限公司 Detection and escaping method for judging trapped state of robot
CN114521837A (en) * 2022-03-09 2022-05-24 美智纵横科技有限责任公司 Sweeping robot control method and device and sweeping robot
CN115177186A (en) * 2022-07-21 2022-10-14 美智纵横科技有限责任公司 Sweeping method, sweeping device, sweeping robot and computer readable storage medium
CN115167448A (en) * 2022-07-29 2022-10-11 深圳优地科技有限公司 Robot escaping method and device, robot and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003280736A (en) * 2002-03-22 2003-10-02 Matsushita Electric Ind Co Ltd Self-propelled apparatus and its program
JP2009169802A (en) * 2008-01-18 2009-07-30 Panasonic Corp Autonomous traveling device and program
US20130166134A1 (en) * 2010-07-13 2013-06-27 Murata Machinery, Ltd. Autonomous mobile body
CN105739503A (en) * 2016-04-13 2016-07-06 上海物景智能科技有限公司 Turning method of walking robot and control device
CN107536565A (en) * 2017-10-24 2018-01-05 湖南格兰博智能科技有限责任公司 From mobile clean robot and its control method
CN111090277A (en) * 2018-10-22 2020-05-01 科沃斯机器人股份有限公司 Method, apparatus and storage medium for travel control
CN111208811A (en) * 2018-11-22 2020-05-29 北京奇虎科技有限公司 Narrow-slit escaping method, device and equipment for sweeping robot and readable storage medium
CN111714030A (en) * 2019-03-19 2020-09-29 北京奇虎科技有限公司 Method and device for removing difficulty of cleaning equipment, electronic equipment and readable storage medium
CN110192814A (en) * 2019-06-20 2019-09-03 深圳市银星智能科技股份有限公司 It gets rid of poverty method and from mobile device from mobile device
CN111650933A (en) * 2020-05-19 2020-09-11 上海有个机器人有限公司 Control robot escaping method, device, terminal and readable storage medium
CN114518744A (en) * 2020-10-30 2022-05-20 深圳乐动机器人有限公司 Robot escaping method and device, robot and storage medium
CN112947464A (en) * 2021-03-05 2021-06-11 上海有个机器人有限公司 Method, device, terminal and storage medium for robot to pass through narrow space
CN114510042A (en) * 2022-01-22 2022-05-17 深圳市神州云海智能科技有限公司 Method and system for solving abnormal pause motion of robot narrow channel

Also Published As

Publication number Publication date
WO2023160368A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
US11823573B2 (en) Signal control apparatus and signal control method based on reinforcement learning
US11269343B2 (en) Mobile robot and control method thereof
WO2019005547A1 (en) Moving body control apparatus, moving body control method, and training method
CN111153300A (en) Ladder taking method and system for robot, robot and storage medium
CN113576322B (en) Cleaning method, apparatus and storage medium for cleaning robot
US10836392B2 (en) Vehicle situation determination device and vehicle situation determination method
CN113189614B (en) Obstacle recognition method, obstacle recognition device and storage medium
CN116700237A (en) Control method and device of self-mobile device and storage medium
CN112171675B (en) Obstacle avoidance method and device for mobile robot, robot and storage medium
CN107719361A (en) Automatic parking householder method and system based on image vision
CN113335312B (en) Obstacle-detouring driving method and device, electronic equipment and medium
CN109661667A (en) The retrograde detection device of vehicle and method, electronic equipment
CN109955245A (en) A kind of barrier-avoiding method of robot, system and robot
CN109204315A (en) Method, apparatus, storage medium and the electronic equipment of changing Lane
CN113442908B (en) Automatic parking path planning method and system and parking control equipment
US20220270480A1 (en) Signal control apparatus and method based on reinforcement learning
CN112947495A (en) Model training method, unmanned equipment control method and device
CN114194184A (en) Vehicle and method of controlling vehicle
CN113064409A (en) Dynamic partitioning method and system and cleaning equipment
JPWO2019012848A1 (en) Parking assistance device
CN115320637A (en) Automatic driving method, device and storage medium
CN115214635A (en) Obstacle crossing method and device for unmanned vehicle, unmanned vehicle and storage medium
KR20190007758A (en) Image processing apparatus and image processing method
Kuprešak et al. Solution for autonomous vehicle parking
JP7071847B2 (en) Systems, methods, and programs for controlling self-driving vehicles

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination