WO2021035903A1 - Control method and apparatus for sensor and storage medium - Google Patents

Control method and apparatus for sensor and storage medium Download PDF

Info

Publication number
WO2021035903A1
WO2021035903A1 PCT/CN2019/111732 CN2019111732W WO2021035903A1 WO 2021035903 A1 WO2021035903 A1 WO 2021035903A1 CN 2019111732 W CN2019111732 W CN 2019111732W WO 2021035903 A1 WO2021035903 A1 WO 2021035903A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
environment
map information
target area
sensor
Prior art date
Application number
PCT/CN2019/111732
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 WO2021035903A1 publication Critical patent/WO2021035903A1/en

Links

Images

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/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0242Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using non-visible light signals, e.g. IR or UV signals
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/24Floor-sweeping machines, motor-driven
    • 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/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • 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/0259Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means
    • G05D1/0263Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means using magnetic strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Definitions

  • This application relates to the technical field of home appliances, and in particular to a sensor control method, device and storage medium.
  • the downward-looking sensor based on the infrared detection principle will be falsely triggered when encountering environments such as strong light, dark carpets, floor tiles, etc., mistakenly identify the place that is not a step as a step, and control the sweeping robot to turn and avoid it. In this way, the cleaning effect will be affected and the user experience will be poor.
  • An embodiment of the present application provides a sensor control method, and the method includes:
  • the electronic device In response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the look-down sensor; wherein the target area is used to represent the area where the electronic device will fall.
  • the obtaining map information of the environment in which the electronic device is located includes:
  • the electronic device obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the electronic device is located based on the environmental information.
  • the description further includes:
  • the location of the target area marked by the map information of the environment in which the electronic device is located is received from the terminal.
  • the description further includes:
  • the electronic device is controlled to be in the first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, the map is determined based on the area corresponding to the control instruction for adjusting the driving direction The target area in the message.
  • the description further includes:
  • the target area in the map information of the environment where the electronic device is located is determined.
  • the map information of the environment in which the electronic device is located from the other electronic device further includes: the location of at least one target area.
  • An embodiment of the present application also provides a sensor control device, characterized in that the device includes: an acquisition module and a control module; wherein,
  • the acquisition module is used to acquire map information of the environment where the electronic device is located;
  • the control module is used to control the electronic device to turn off the down-view sensor in response to the target area marked in the map information of the environment where the electronic device is located; wherein the target area is used to characterize the occurrence of the electronic device. The area where it fell.
  • the acquisition module is specifically configured to receive map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device acquires the environment information in which it is located through at least one collection unit Establishing map information of the environment in which the electronic device is located based on the environment information.
  • the device further includes a receiving module for receiving the location of the target area marked by the map information of the environment in which the electronic device is located from the terminal.
  • the device further includes a first determining module for controlling the electronic device to be in a first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, Based on the area corresponding to the control instruction for adjusting the driving direction, the target area in the map information is determined.
  • the device further includes a second determining module, configured to detect the target area identification mark in the environment where the electronic device is located, and obtain a detection result; based on the detection result, determine the status of the environment where the electronic device is located The target area in the map information.
  • a second determining module configured to detect the target area identification mark in the environment where the electronic device is located, and obtain a detection result; based on the detection result, determine the status of the environment where the electronic device is located The target area in the map information.
  • An embodiment of the present application also provides a storage medium on which an executable program is stored, characterized in that, when the executable program is executed by a processor, the steps of the above technical solution are implemented.
  • Embodiments of the present application provide a sensor control method, device, and storage medium. After an electronic device enters a target environment, it obtains map information of the environment in which it is located. If the target area is marked in the map information of the environment where the electronic device is located, the electronic device is controlled to turn off the look-down sensor. Since the electronic device no longer needs to detect whether the area to be driven is the target area through the down-view sensor in real time during the driving process, it can effectively avoid the situation of misjudgment, and it will not happen because of the sensor. In the case of circumventing due to misjudgment of the electronic device, the problem of incomplete cleaning caused by the circumvention of the electronic device can be avoided, and the user experience can be improved.
  • FIG. 1 is a schematic diagram of an implementation process of a sensor control method according to an embodiment of the application
  • Fig. 2 is a flowchart of a sensor control method according to an embodiment of the application
  • FIG. 3 is a schematic diagram 1 of a scene of a sensor control method according to an embodiment of the application.
  • FIG. 4 is a schematic diagram of a second scene of a sensor control method according to an embodiment of the application.
  • FIG. 5 is a schematic diagram 1 of the composition structure of the sensor control device according to an embodiment of the application.
  • FIG. 6 is a second schematic diagram of the composition structure of the sensor control device according to the embodiment of the application.
  • FIG. 7 is a schematic diagram of the hardware structure of the sensor control device according to an embodiment of the application.
  • FIG. 1 a schematic diagram of the implementation process of the sensor control method is shown in FIG. 1, and includes the following steps:
  • S102 In response to the target area being marked in the map information of the environment where the electronic device is located, control the electronic device to turn off the down-looking sensor; wherein the target area is used to represent the area where the electronic device will fall.
  • the electronic device is a household appliance with a cleaning function, such as a sweeping robot.
  • the electronic device Before the electronic device cleans the environment in which it is located, it needs to obtain map information of the environment to determine its own driving route.
  • the acquiring map information of the environment in which the electronic device is located includes: receiving map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device collects at least one type of map information.
  • the unit obtains the environmental information in which it is located, and establishes map information of the environment in which the electronic device is located based on the environmental information.
  • the other electronic device is an intelligent electronic device with an image acquisition function or a camera function in the environment where the electronic device is located. For example, security cameras, computers with cameras, etc.
  • the other electronic device uploads map information of the environment to the cloud, and when the electronic device enters the environment for the first time, the electronic device directly downloads the map information from the cloud. Map information of the environment.
  • the electronic device obtains its own environmental information through at least one collection unit of its own, and establishes map information of the environment in which the electronic device is located based on the environmental information.
  • the collection unit may be a camera device, a laser scanning device, or the like.
  • the electronic device when the camera device of the electronic device detects that the environment in which it is located has changed, the electronic device reactivates the downward-looking sensor, and uses at least one of its own collection units to obtain information about the current environment based on the environment.
  • the information establishes the map information of the environment in which the electronic device is located, and ensures that the drawn map information matches the current environment in which it is located.
  • the electronic device acquires map information from other electronic devices in the current environment, so that the map saved by the electronic device The information is consistent with the current environment.
  • the target area is also marked with respect to the map information of the environment in which the electronic device is located.
  • the map information there are several ways to determine the target area in the map information as follows.
  • Manner 1 The electronic device receives the location of the target area marked by the map information of the environment in which the electronic device is located from the terminal.
  • the terminal marks the target area in the map information, and sends the map information marked with the target area to the electronic device; or After acquiring the map information of the environment in which the electronic device is located, the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the electronic device.
  • the terminal may be a smart phone; for example, the smart phone may obtain or synchronize map information of the environment in which the electronic device is located through an application (APP).
  • APP application
  • the electronic device uses a visual sensor to obtain map information of its environment, and sends it to a smart phone.
  • the smart phone marks the target area in the map information through the APP, and marks all the map information of the target area.
  • the map information is sent to the electronic device.
  • the smart phone sends the location of the target area in the map information at the marker to the electronic device.
  • the electronic device can also use a laser ranging sensor to determine the map information of the environment in which it is located, and send it to a smart phone, and the smart phone will mark the target area in the map information through the APP, and the target area will be marked with the target area.
  • the map information of is sent to the electronic device.
  • the smart phone sends the location of the target area in the map information at the marker to the electronic device.
  • Manner 2 Control the electronic device to be in the first working mode, in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, determine based on the area corresponding to the control instruction for adjusting the driving direction The target area in the map information.
  • the first working mode may be the welt mode.
  • the first method is to receive a control instruction for adjusting the traveling direction from another device.
  • the other equipment may be a smart terminal, a remote control device, and the like.
  • the electronic device itself generates a control instruction for adjusting the direction of travel.
  • the following describes the method of receiving a control command to adjust the direction of travel from other devices.
  • the electronic device travels at the boundary of the environment in the first working mode, and when it travels to the target area, it receives a control instruction to adjust the travel direction sent by other devices. Then, according to the control instruction for adjusting the driving direction, the target area in the map information can be determined.
  • the control unit of the electronic device determines the boundary of the environment in which the electronic device is located.
  • control unit controls the electronic device to turn on the look-down sensor, enters the area where the electronic device does not receive the feedback information, and the look-down sensor sends the acquired information to The control unit further determines that the area where the feedback information is not received is the target area, generates a control instruction for adjusting the driving direction, and adjusts the driving direction of the electronic device.
  • Manner 4 The electronic device directly receives the map information marked with the target area sent from the other electronic device.
  • step S102 in response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the downward-looking sensor.
  • the activation or deactivation of the downward-looking sensor of the electronic device may not be limited.
  • the electronic device obtains the map information of its environment, and when it is determined that the map information of the environment includes the target area, it will turn off the look-up sensor and drive in the environment. In this way, it is unnecessary to use the downward-looking sensor of the electronic device to detect and determine whether the area to be driven is the target area, and there is no problem of misjudgment of the target area. Therefore, the problem of incomplete cleaning caused by the misjudgment of the electronic device is avoided, and the user experience is improved.
  • Manner 1 Receive map information of the environment in which the cleaning robot is located from other electronic devices.
  • the other electronic equipment is an intelligent electronic equipment with an image acquisition function or a camera function in the environment where the cleaning robot is located, such as a security camera, a computer with a camera, etc.
  • the cleaning robot may download from the cloud the map information of the environment where the cleaning robot is located, acquired by the other electronic device, after entering the environment where it is located for the first time.
  • Manner 2 The sweeping robot obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the sweeping robot is located based on the environmental information. Specifically, the sweeping robot uses its own camera, laser scanning device and other collection units to obtain its own environment information, and then draws map information of its environment based on the obtained environment information. When the sweeping robot enters the environment for the first time and cannot directly download the map information from the cloud, this method can be used for processing.
  • the sweeping robot when the camera device of the sweeping robot detects that the environment it is in has changed, the sweeping robot reactivates the downward-looking sensor, and uses at least one of its own collection units to obtain the current environment information based on the environment.
  • the information establishes the map information of the environment where the sweeping robot is located, and ensures that the drawn map information matches the current environment.
  • the cleaning robot obtains map information from other electronic devices in the current environment, so that the map saved by the cleaning robot The information is consistent with the current environment.
  • the target area is used to characterize the area where the sweeping robot will fall.
  • the cleaning robot receives the location of the target area marked by the map information for the environment in which the cleaning robot is located from the terminal. Specifically, after acquiring the map information of the environment where the cleaning robot is located, the terminal marks the target area in the map information, and sends the map information marked with the target area to the cleaning robot; Alternatively, after acquiring the map information of the environment in which the electronic device is located, the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the Sweeping robot.
  • the sweeping robot obtains map information of its environment by using a vision sensor and sends it to the terminal.
  • the terminal marks the target area in the map information, and sends the map information marked with the target area to the terminal. Describe the sweeping robot.
  • the terminal sends the location of the target area in the map information at the mark to the sweeping robot.
  • the sweeping robot can also use a laser ranging sensor to determine the map information of its environment, and send it to the terminal.
  • the terminal will mark the target area in the map information, and mark the map with the target area.
  • the information is sent to the sweeping robot.
  • the terminal sends the location of the target area in the map information at the mark to the sweeping robot.
  • Manner 2 Control the cleaning robot to be in the first working mode. In the process of driving along the boundary of the environment in which the cleaning robot is located in the first working mode, determine based on the area corresponding to the control instruction for adjusting the driving direction The target area in the map information.
  • the first method is to receive a control instruction for adjusting the traveling direction from another device.
  • the other equipment may be a smart terminal, a remote control device, and the like.
  • the cleaning robot itself generates a control instruction for adjusting the direction of travel.
  • the sweeping robot is in the welt mode, and in the welt mode, it travels along the boundary of the environment in which the sweeping robot is located,
  • the cleaning robot travels to the step area in the environment, it receives a control instruction to adjust the travel direction, and changes from traveling in the direction of CA to traveling in the direction of AB.
  • the step area is determined as the target area in the map information according to the control instruction for adjusting the traveling direction.
  • the sensors on the side of the cleaning robot are in an active state, and signals are sent to both sides of the position where the cleaning robot is located. Feedback information, the sensor sends the feedback information to the control unit, and the control unit determines that the sweeping robot is at the boundary of the environment where it is located.
  • the control unit controls the sweeping robot to turn on the downward-looking sensor, enters the area where the sweeping robot does not receive feedback information, and the downward-looking sensor sends the acquired information to the control unit , And further determine that the area where the feedback information is not received is a step area in the environment where the cleaning robot is located, and generate a control instruction for adjusting the traveling direction to adjust the traveling direction of the cleaning robot.
  • the cleaning robot detects the target area identification mark in the environment where the cleaning robot is located to obtain a detection result; based on the detection result, the target area in the map information of the environment where the cleaning robot is located is determined.
  • virtual bars may be pasted on the step area.
  • the virtual bar may be a laser bar, an infrared bar, or a magnetic bar; for example, the infrared bar may be an infrared generator composed of infrared diodes, and other implementation manners are not exhaustively listed in this embodiment.
  • the cleaning robot is controlled to turn off its down-looking sensor and drive in the environment where it is.
  • the activation or deactivation of the downward-looking sensor of the cleaning robot may not be limited.
  • the switch sensor will be automatically adjusted to the open state when the target is close to itself; when the target is far away from itself, it will be adjusted to the closed state. Since the sweeping robot leaves the ground, the driving wheel will be in a stowed state. At this time, the distance between the driving wheel and the switch sensor will increase, and the switch sensor will change from the open state. Becomes closed. Therefore, when the switch sensor is adjusted from the open state to the closed state, it can be determined that the cleaning robot has left the ground.
  • an infrared sensor installed on the connecting arm of the driving wheel can also be used to determine that the sweeping robot has left the ground. Specifically, when the sweeping robot leaves the ground, the driving wheel will be in a stowed state. At this time, the distance between the driving wheel and the infrared sensor increases. Furthermore, it is determined that the sweeping robot has left the ground.
  • step S201 to step S203 are executed.
  • a reminder message may appear to remind the user to perform related operations on whether to turn off the downward looking sensor.
  • the map information of the environment in which the cleaning robot is located is acquired, and if the target area is marked in the map information, the cleaning robot is controlled to turn off the downward-looking sensor. In this way, it is unnecessary to use the downward-looking sensor of the sweeping robot to detect and determine whether the area to be driven is the target area, and there is no problem of misjudgment of the target area. Therefore, the misjudgment of the cleaning robot during driving is avoided, and the cleaning effect of the environment in which it is located is improved.
  • an embodiment of the present application also provides a sensor control device.
  • the structure diagram of the device is shown in FIG. 5, and includes: an acquisition module 51 and a control module 52; wherein,
  • the obtaining module 51 is used to obtain map information of the environment in which the electronic device is located;
  • the control module 52 is configured to control the electronic device to turn off the down-view sensor in response to the target area marked in the map information of the environment in which the electronic device is located; wherein, the target area is used to indicate that the electronic device will The area where the drop occurred.
  • the obtaining module 51 is specifically configured to receive map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device obtains the environment information in which it is located through at least one collection unit, Establishing map information of the environment in which the electronic device is located based on the environment information.
  • the electronic device is a household appliance with a cleaning function, such as a sweeping robot.
  • the other electronic device is an intelligent electronic device with an image collection function or a camera function in the environment where the electronic device is located. For example, security cameras, computers with cameras, etc.
  • the other electronic device uploads map information of the environment it is in to the cloud, and when the electronic device enters the environment it is in for the first time, the acquisition module 51 of the electronic device , Download the map information of your environment directly from the cloud.
  • the acquisition module 51 acquires the environmental information where it is located through at least one of its own collection units, and establishes map information of the environment where the electronic device is located based on the environmental information.
  • the collection unit may be a camera device, a laser scanning device, or the like.
  • the apparatus further includes a receiving module 53 for receiving the location of the target area marked by the map information of the environment in which the electronic device is located and sent by the terminal.
  • the terminal marks the target area in the map information, and sends the map information marked with the target area to the receiving module 53;
  • the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the Receiving module 53.
  • the device further includes a first determining module 54 for controlling the electronic device to be in a first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, Based on the area corresponding to the control instruction for adjusting the driving direction, the target area in the map information is determined.
  • the device further includes a second determining module 55, configured to detect the target area identification mark in the environment where the electronic device is located, and obtain the detection result; based on the detection result, determine the environment where the electronic device is located The target area in the map information.
  • a second determining module 55 configured to detect the target area identification mark in the environment where the electronic device is located, and obtain the detection result; based on the detection result, determine the environment where the electronic device is located The target area in the map information.
  • the structural composition of the sensor control device in FIG. 5 is also applied to the structural composition shown in FIG. 6, and specifically includes: an acquisition module 51, a control module 52, a receiving module 53, a first determination module 54 and a second determination module. Module 55.
  • the acquisition module 51, the control module 52, the receiving module 53, the first determination module 54 and the second determination module 55 can all be implemented by a central processing unit (CPU) and a microprocessor located in a server or terminal.
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the sensor control device provided in the above embodiment performs sensor control
  • only the division of the above-mentioned program modules is used as an example.
  • the above-mentioned processing can be allocated by different program modules as needed. , That is, divide the internal structure of the device into different program modules to complete all or part of the processing described above.
  • the sensor control device provided in the foregoing embodiment and the sensor control method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • an embodiment of the present application also provides another sensor control device, which includes a memory, a processor, and an executable program stored in the memory and capable of being run by the processor, and the processor runs
  • the executable program is described, the following operations are performed:
  • the electronic device In response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the look-down sensor; wherein the target area is used to represent the area where the electronic device will fall.
  • the processor is further configured to perform the following operations when running the executable program:
  • the location of the target area marked by the map information of the environment in which the electronic device is located is received from the terminal.
  • the processor is further configured to perform the following operations when running the executable program:
  • the electronic device is controlled to be in the first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, the map is determined based on the area corresponding to the control instruction for adjusting the driving direction The target area in the message.
  • the processor is further configured to perform the following operations when running the executable program:
  • the target area in the map information of the environment where the electronic device is located is determined.
  • the processor is further configured to perform the following operations when running the executable program:
  • the map information of the environment in which the electronic device is located from the other electronic device further includes: the location of at least one target area.
  • the control device of the sensor implemented as a server or terminal for controlling the sensor as an example, the hardware structure of the control device of the sensor will be further described.
  • FIG. 7 shows a schematic diagram of the hardware structure of a sensor control device according to an embodiment of the present application.
  • the sensor control device 700 shown in FIG. 7 includes: at least one processor 701, a memory 702, a user interface 703, and at least one network interface 704.
  • the various components in the sensor control device 700 are coupled together through the bus system 705.
  • the bus system 705 is used to implement connection and communication between these components.
  • the bus system 705 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 705 in FIG. 7.
  • the user interface 703 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch panel, or a touch screen.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 702.
  • the processor 701 reads the information in the memory 702 and completes the steps of the foregoing method in combination with its hardware.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Electromagnetism (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

A control method and apparatus for a sensor and a storage medium. The method comprises: acquiring map information of an environment where an electronic device is located (S101); and in response to a target region being marked in the map information of the environment where the electronic device is located, controlling the electronic device to turn off a downward viewing sensor (S102).

Description

一种传感器的控制方法、装置及存储介质Sensor control method, device and storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为201910806166.5,申请日为2019年08月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with an application number of 201910806166.5 and an application date of August 29, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本申请涉及家电技术领域,尤其涉及一种传感器的控制方法、装置及存储介质。This application relates to the technical field of home appliances, and in particular to a sensor control method, device and storage medium.
背景技术Background technique
目前,家用的扫地机器人往往配置红外检测的下视传感器,用于检测扫地机器人所处环境是否存在台阶,如果检测到台阶,将会控制扫地机器人改变进行方向,以避开台阶,防止扫地机器人跌落。At present, household sweeping robots are often equipped with infrared detection downward-looking sensors to detect whether there are steps in the environment where the sweeping robot is located. If a step is detected, the sweeping robot will be controlled to change its direction to avoid the steps and prevent the sweeping robot from falling. .
但是,红外检测原理的下视传感器在遇到强光、深色地毯、地砖等环境时,会误触发,将不是台阶的地方误识别为台阶,控制扫地机器人转向避开。这样,便会影响清洁效果,导致用户体验不佳。However, the downward-looking sensor based on the infrared detection principle will be falsely triggered when encountering environments such as strong light, dark carpets, floor tiles, etc., mistakenly identify the place that is not a step as a step, and control the sweeping robot to turn and avoid it. In this way, the cleaning effect will be affected and the user experience will be poor.
发明内容Summary of the invention
有鉴于此,本申请实施例期望提供一种传感器的控制方法、装置及存储介质,旨在解决现有技术中存在的上述问题。In view of this, the embodiments of the present application expect to provide a sensor control method, device, and storage medium, aiming to solve the above-mentioned problems in the prior art.
为达到上述目的,本申请实施例的技术方案是这样实现的:In order to achieve the foregoing objectives, the technical solutions of the embodiments of the present application are implemented as follows:
本申请实施例提供一种传感器的控制方法,所述方法包括:An embodiment of the present application provides a sensor control method, and the method includes:
获取电子设备所处环境的地图信息;Obtain map information of the environment where the electronic device is located;
响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。In response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the look-down sensor; wherein the target area is used to represent the area where the electronic device will fall.
上述方案中,所述获取电子设备所处环境的地图信息,包括:In the above solution, the obtaining map information of the environment in which the electronic device is located includes:
接收其他电子设备发来的所述电子设备所处环境的地图信息;Receiving map information of the environment in which the electronic device is located from other electronic devices;
或者,or,
所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。The electronic device obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the electronic device is located based on the environmental information.
上述方案中,所述还包括:In the above solution, the description further includes:
接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。The location of the target area marked by the map information of the environment in which the electronic device is located is received from the terminal.
上述方案中,所述还包括:In the above solution, the description further includes:
控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。The electronic device is controlled to be in the first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, the map is determined based on the area corresponding to the control instruction for adjusting the driving direction The target area in the message.
上述方案中,所述还包括:In the above solution, the description further includes:
检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;Detecting the target area identification mark in the environment where the electronic device is located, and obtaining a detection result;
基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。Based on the detection result, the target area in the map information of the environment where the electronic device is located is determined.
上述方案中,所述其他电子设备发来的所述电子设备所处环境的地图信息中还包括:至少一个目标区域的位置。In the above solution, the map information of the environment in which the electronic device is located from the other electronic device further includes: the location of at least one target area.
本申请实施例还提供一种传感器的控制装置,其特征在于,所述装置包括:获取模块和控制模块;其中,An embodiment of the present application also provides a sensor control device, characterized in that the device includes: an acquisition module and a control module; wherein,
所述获取模块,用于获取电子设备所处环境的地图信息;The acquisition module is used to acquire map information of the environment where the electronic device is located;
所述控制模块,用于响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。The control module is used to control the electronic device to turn off the down-view sensor in response to the target area marked in the map information of the environment where the electronic device is located; wherein the target area is used to characterize the occurrence of the electronic device. The area where it fell.
上述方案中,所述获取模块,具体用于接收其他电子设备发来的所述电子设备所处环境的地图信息;或者,所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。In the above solution, the acquisition module is specifically configured to receive map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device acquires the environment information in which it is located through at least one collection unit Establishing map information of the environment in which the electronic device is located based on the environment information.
上述方案中,所述装置还包括接收模块,用于接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。In the above solution, the device further includes a receiving module for receiving the location of the target area marked by the map information of the environment in which the electronic device is located from the terminal.
上述方案中,所述装置还包括第一确定模块,用于控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。In the above solution, the device further includes a first determining module for controlling the electronic device to be in a first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, Based on the area corresponding to the control instruction for adjusting the driving direction, the target area in the map information is determined.
上述方案中,所述装置还包括第二确定模块,用于检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。In the above solution, the device further includes a second determining module, configured to detect the target area identification mark in the environment where the electronic device is located, and obtain a detection result; based on the detection result, determine the status of the environment where the electronic device is located The target area in the map information.
本申请实施例还提供一种存储介质,其上存储有可执行程序,其特征在于,所述可执行程序被处理器执行时实现上述技术方案的步骤。An embodiment of the present application also provides a storage medium on which an executable program is stored, characterized in that, when the executable program is executed by a processor, the steps of the above technical solution are implemented.
本申请实施例还提供一种传感器的控制装置,包括存储器、处理器及存储在存储器上并能够由所述处理器运行的可执行程序,其特征在于,所述处理器运行所述可执行程序时执行上述技术方案中的步骤。An embodiment of the present application also provides a sensor control device, including a memory, a processor, and an executable program stored on the memory and capable of being run by the processor, wherein the processor runs the executable program Execute the steps in the above technical solution at the time.
本申请实施例提供的一种传感器的控制方法、装置及存储介质,电子设备在进入目标环境后,获取所处环境的地图信息。如果所述电子设备所处环境的地图信息中标记有目标区域,便控制所述电子设备关闭下视传感器。由于在所述电子设备在行驶过程中不再需要实时通过下视传感器来检测即将行驶到的区域是否为所述目标区域,因此可以有效地避免误判断的情况,也不会出现因为所述传感器的误判断而进行绕行的情况,便能够避免因为所述电子设备绕行而产生的清扫不彻底的问题,使得用户体验得以改善。Embodiments of the present application provide a sensor control method, device, and storage medium. After an electronic device enters a target environment, it obtains map information of the environment in which it is located. If the target area is marked in the map information of the environment where the electronic device is located, the electronic device is controlled to turn off the look-down sensor. Since the electronic device no longer needs to detect whether the area to be driven is the target area through the down-view sensor in real time during the driving process, it can effectively avoid the situation of misjudgment, and it will not happen because of the sensor. In the case of circumventing due to misjudgment of the electronic device, the problem of incomplete cleaning caused by the circumvention of the electronic device can be avoided, and the user experience can be improved.
附图说明Description of the drawings
图1为本申请实施例的传感器的控制方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation process of a sensor control method according to an embodiment of the application;
图2为本申请实施例的传感器的控制方法的流程图;Fig. 2 is a flowchart of a sensor control method according to an embodiment of the application;
图3为本申请实施例的传感器的控制方法的场景示意图一;FIG. 3 is a schematic diagram 1 of a scene of a sensor control method according to an embodiment of the application;
图4为本申请实施例的传感器的控制方法的场景示意图二;4 is a schematic diagram of a second scene of a sensor control method according to an embodiment of the application;
图5为本申请实施例的传感器的控制装置的组成结构示意图一;5 is a schematic diagram 1 of the composition structure of the sensor control device according to an embodiment of the application;
图6为本申请实施例的传感器的控制装置的组成结构示意图二;6 is a second schematic diagram of the composition structure of the sensor control device according to the embodiment of the application;
图7为本申请实施例的传感器的控制装置的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of the sensor control device according to an embodiment of the application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请实施例进行详细说明。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
实施例一、Example one,
本申请实施例中,传感器的控制方法的实现流程示意图如图1所示,包括以下步骤:In the embodiment of the present application, a schematic diagram of the implementation process of the sensor control method is shown in FIG. 1, and includes the following steps:
S101:获取电子设备所处环境的地图信息;S101: Obtain map information of the environment where the electronic device is located;
S102:响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。S102: In response to the target area being marked in the map information of the environment where the electronic device is located, control the electronic device to turn off the down-looking sensor; wherein the target area is used to represent the area where the electronic device will fall.
在本申请实施例中,所述电子设备为具有清扫功能的家电设备,比如,扫地机器人。In the embodiment of the present application, the electronic device is a household appliance with a cleaning function, such as a sweeping robot.
所述电子设备在对所处环境进行清扫之前,需要获取所述环境的地图信息,来确定自身的行驶路线。Before the electronic device cleans the environment in which it is located, it needs to obtain map information of the environment to determine its own driving route.
这里,前述步骤S101中,所述获取电子设备所处环境的地图信息,包括:接收其他电子设备发来的所述电子设备所处环境的地图信息;或者,所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。这里,所述其他电子设备为所述电子设备所处环境中具有图像采集功能或者摄像功能的智能电子设备。比如,安防摄像装置、安装有摄像头的电脑等。Here, in the foregoing step S101, the acquiring map information of the environment in which the electronic device is located includes: receiving map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device collects at least one type of map information. The unit obtains the environmental information in which it is located, and establishes map information of the environment in which the electronic device is located based on the environmental information. Here, the other electronic device is an intelligent electronic device with an image acquisition function or a camera function in the environment where the electronic device is located. For example, security cameras, computers with cameras, etc.
具体的,在所述电子设备所处的环境中所述其他电子设备将所处环境的地图信息上传至云端,当所述电子设备首次进入所处环境时,所述电子设备直接从云端下载所处环境的地图信息。Specifically, in the environment where the electronic device is located, the other electronic device uploads map information of the environment to the cloud, and when the electronic device enters the environment for the first time, the electronic device directly downloads the map information from the cloud. Map information of the environment.
或者,所述电子设备通过自身的至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。其中,所述采集单元可以是摄像装置、激光扫描装置等。在所述电子设备首次进入所处环境,并且不能从云端直接下载所述地图信息的情况下,可以采用这种方式进行处理。Alternatively, the electronic device obtains its own environmental information through at least one collection unit of its own, and establishes map information of the environment in which the electronic device is located based on the environmental information. Wherein, the collection unit may be a camera device, a laser scanning device, or the like. When the electronic device enters the environment where it is for the first time, and the map information cannot be directly downloaded from the cloud, this method can be used for processing.
另外,当所述电子设备的摄像装置检测到自身所处环境发生改变时,所述电子设备重新激活下视传感器,利用自身的至少一种采集单元获取当前所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息,保证绘制的地图信息与当前所处的环境相匹配。In addition, when the camera device of the electronic device detects that the environment in which it is located has changed, the electronic device reactivates the downward-looking sensor, and uses at least one of its own collection units to obtain information about the current environment based on the environment. The information establishes the map information of the environment in which the electronic device is located, and ensures that the drawn map information matches the current environment in which it is located.
或者,当所述电子设备的摄像装置检测到自身所处环境发生改变时,所述电子设备重新从当前所处环境中的其他电子设备处获取到地图信息,使得所述电子设备所保存的地图信息与当前所处环境是一致的。Or, when the camera device of the electronic device detects that its environment has changed, the electronic device acquires map information from other electronic devices in the current environment, so that the map saved by the electronic device The information is consistent with the current environment.
本实施例提供的方案中,还会针对所述电子设备所处环境的地图信息进行目标区域的标记。具体的,确定所述地图信息中的目标区域的方式有如下几种。In the solution provided in this embodiment, the target area is also marked with respect to the map information of the environment in which the electronic device is located. Specifically, there are several ways to determine the target area in the map information as follows.
方式一、所述电子设备接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。Manner 1: The electronic device receives the location of the target area marked by the map information of the environment in which the electronic device is located from the terminal.
具体的,终端获取到所述电子设备所处环境的地图信息后,对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述电子设备;或者,终端在获取到所述电子设备所处环境的地图信息后,标记出所述地图信息中的所述目标区域的位置,将所述标记出的所述目标区域的位置信息发送给所述电子设备。其中,所述终端可以为智能手机;比如,可以由智能手机通过应用(APP)获取或者同步得到所述电子设备所处环境的地图信息。Specifically, after obtaining the map information of the environment where the electronic device is located, the terminal marks the target area in the map information, and sends the map information marked with the target area to the electronic device; or After acquiring the map information of the environment in which the electronic device is located, the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the electronic device. equipment. The terminal may be a smart phone; for example, the smart phone may obtain or synchronize map information of the environment in which the electronic device is located through an application (APP).
举例来说,所述电子设备利用视觉传感器获取到所处环境的地图信息,发送给智能手机,智能手机通过APP对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述电子设备。或者,智能手机将标记处所述地图信息中的所述目标区域的位置发送给所述电子设备。For example, the electronic device uses a visual sensor to obtain map information of its environment, and sends it to a smart phone. The smart phone marks the target area in the map information through the APP, and marks all the map information of the target area. The map information is sent to the electronic device. Alternatively, the smart phone sends the location of the target area in the map information at the marker to the electronic device.
另外,所述电子设备还可以利用激光测距传感器来确定所处环境的地图信息,发送给智能手机,智能手机通过APP对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述电子设备。或者,智能手机将标记处所述地图信息中的所述目标区域的位置发送给所述电子设备。In addition, the electronic device can also use a laser ranging sensor to determine the map information of the environment in which it is located, and send it to a smart phone, and the smart phone will mark the target area in the map information through the APP, and the target area will be marked with the target area. The map information of is sent to the electronic device. Alternatively, the smart phone sends the location of the target area in the map information at the marker to the electronic device.
方式二、控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。这里,所述第一工作模式可以为贴边模式。Manner 2: Control the electronic device to be in the first working mode, in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, determine based on the area corresponding to the control instruction for adjusting the driving direction The target area in the map information. Here, the first working mode may be the welt mode.
其中,确定所述调整行驶方向的控制指令的方式有以下两种:第一种方式,接收来自其他设备发来的调整行驶方向的控制指令。这里,所述其他设备可以为智能终端、遥控装置等。第二种方式,所述电子设备自身生成调整行驶方向的控制指令。There are two ways to determine the control instruction for adjusting the traveling direction: the first method is to receive a control instruction for adjusting the traveling direction from another device. Here, the other equipment may be a smart terminal, a remote control device, and the like. In the second way, the electronic device itself generates a control instruction for adjusting the direction of travel.
下面针对接收来自其他设备发来的调整行驶方向的控制指令的方式进行说明。具体的,所述电子设备以所述第一工作模式在所处环境的边界行驶,当行驶到所述目标区域时,接收到其他设备发来的调整行驶方向的控制指令。那么,根据所述调整行驶方向的控制指令,便可以确定所述地图信息中的目标区域。The following describes the method of receiving a control command to adjust the direction of travel from other devices. Specifically, the electronic device travels at the boundary of the environment in the first working mode, and when it travels to the target area, it receives a control instruction to adjust the travel direction sent by other devices. Then, according to the control instruction for adjusting the driving direction, the target area in the map information can be determined.
接下来,针对由所述电子设备自身生成调整行驶方向的控制指令的方式进行说明。在第一工作模式下,所述电子设备侧面的传感器处于激活状态,向所述电子设备所处位置的两侧发送信号并得到反馈信息,所述电子设备侧面的传感器将接收到的反馈信息发送给所述电子设备的控制单元,由所述控制单元确定所述电子设备所处环境的边界。在没有接收到反馈信息的情况下,所述控制单元控制所述电子设备开启下视传感器,进入所述电子设备没有接收到反馈信息的区域,由所述下视传感器将获取到的信息发送至所述控制单元,进而确定出所述没有接收到反馈信息的区域为所述目标区域,生成调整行驶方向的控制指令,调整所述电子设备的行驶方向。Next, a description will be given of the manner in which the electronic device itself generates a control command for adjusting the traveling direction. In the first working mode, the sensor on the side of the electronic device is in an activated state, and sends signals to both sides of the position of the electronic device and obtains feedback information, and the sensor on the side of the electronic device sends the received feedback information For the control unit of the electronic device, the control unit determines the boundary of the environment in which the electronic device is located. In the case that no feedback information is received, the control unit controls the electronic device to turn on the look-down sensor, enters the area where the electronic device does not receive the feedback information, and the look-down sensor sends the acquired information to The control unit further determines that the area where the feedback information is not received is the target area, generates a control instruction for adjusting the driving direction, and adjusts the driving direction of the electronic device.
方式三、所述电子设备检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。Manner 3: The electronic device detects the target area identification mark in the environment where the electronic device is located to obtain a detection result; based on the detection result, determines the target area in the map information of the environment where the electronic device is located.
这里,所述目标区域识别标记为所述电子设备识别所处环境中的目标区域的标识,例如,所述目标区域中的虚拟条。具体的,在所述电子设备所处的环境中,会在所述目标区域贴上虚拟条。所述虚拟条可以为激光条、红外条或者磁条;举例来说,红外条可以为由红外线二极管组成的红外线发生器,另外的实现方式本实施例不再进行穷举。当所述电子设备首次进入所处环境时,所述电子设备会开启用于检测虚拟条的传感器,对所处环境进行扫描,当扫描到所处环境中的虚拟条时,将所述虚拟条所在区域确定为所述地图信息中的目标区域。例如,所述电子设备在首次进入所处环境后,开启霍尔传感器,对所述所处环境进行扫描,当检测到所处环境中的磁条,将所述磁条所在区域确定为所述地图信息中的目标区域。Here, the target area identification mark is an identification of the target area in the environment where the electronic device recognizes, for example, a virtual bar in the target area. Specifically, in the environment where the electronic device is located, a virtual bar is attached to the target area. The virtual bar may be a laser bar, an infrared bar or a magnetic bar; for example, the infrared bar may be an infrared generator composed of infrared diodes, and other implementation manners are not exhaustively listed in this embodiment. When the electronic device enters its environment for the first time, the electronic device will turn on the sensor for detecting the virtual bar and scan the environment. When the virtual bar in the environment is scanned, the virtual bar will be scanned. The location is determined as the target area in the map information. For example, after the electronic device enters the environment for the first time, it turns on the Hall sensor to scan the environment, and when the magnetic stripe in the environment is detected, the area where the magnetic stripe is located is determined as the The target area in the map information.
方式四、所述电子设备直接接收从所述其他电子设备发来的标记有目标区域的地图信息。Manner 4: The electronic device directly receives the map information marked with the target area sent from the other electronic device.
另外,若所述电子设备所处环境的地图信息发生改变,便根据更新后的地图信息,重 新确定所述地图信息中的目标区域。更新地图信息的方式可以采用前述方式中任意之一,这里不再重复说明。In addition, if the map information of the environment where the electronic device is located changes, the target area in the map information is re-determined according to the updated map information. The method of updating the map information can be any one of the aforementioned methods, and the description will not be repeated here.
在步骤S102中,响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器。另外,若在所述电子设备所处环境中没有会使所述电子设备掉落的目标区域,则可以不对所述电子设备的下视传感器的激活或者关闭进行限定。In step S102, in response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the downward-looking sensor. In addition, if there is no target area where the electronic device will fall in the environment where the electronic device is located, the activation or deactivation of the downward-looking sensor of the electronic device may not be limited.
本实施例中,所述电子设备获取到自身所处环境的地图信息,在确定所述所处环境的地图信息中包含目标区域的情况下,便会关闭下视传感器在所处环境中行驶。这样,便不必使用所述电子设备的下视传感器来检测判断所要行驶的区域是否为所述目标区域,也就不会出现所述目标区域的误判问题。从而,避免了所述电子设备的误判导致的清扫不彻底的问题,用户体验得以改善。In this embodiment, the electronic device obtains the map information of its environment, and when it is determined that the map information of the environment includes the target area, it will turn off the look-up sensor and drive in the environment. In this way, it is unnecessary to use the downward-looking sensor of the electronic device to detect and determine whether the area to be driven is the target area, and there is no problem of misjudgment of the target area. Therefore, the problem of incomplete cleaning caused by the misjudgment of the electronic device is avoided, and the user experience is improved.
实施例二、Embodiment two
本申请实施例中,对扫地机器人的传感器的控制过程进行详细说明,如图2所示,包括以下步骤:In the embodiment of the present application, the control process of the sensor of the sweeping robot is described in detail, as shown in FIG. 2, including the following steps:
S201:获取扫地机器人所处环境的地图信息;S201: Obtain map information of the environment where the sweeping robot is located;
这里,所述扫地机器人可以处于家居、办公室等需要日常清扫的环境中。所述获取扫地机器人所处环境的地图信息,包括以下两种方式。Here, the sweeping robot may be in an environment requiring daily cleaning, such as a home or an office. The acquisition of map information of the environment where the sweeping robot is located includes the following two methods.
方式一、接收其他电子设备发来的所述扫地机器人所处环境的地图信息。Manner 1: Receive map information of the environment in which the cleaning robot is located from other electronic devices.
这里,所述其他电子设备为所述扫地机器人所处环境中的具有图像采集功能或者摄像功能的智能电子设备,比如,安防摄像装置、安装有摄像头的电脑等。具体的,所述扫地机器人可以在首次进入所处环境后,从云端下载所述其他电子设备获取的所述扫地机器人所处环境的地图信息。Here, the other electronic equipment is an intelligent electronic equipment with an image acquisition function or a camera function in the environment where the cleaning robot is located, such as a security camera, a computer with a camera, etc. Specifically, the cleaning robot may download from the cloud the map information of the environment where the cleaning robot is located, acquired by the other electronic device, after entering the environment where it is located for the first time.
方式二、所述扫地机器人通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述扫地机器人所处环境的地图信息。具体的,所述扫地机器人利用自身的摄像头、激光扫描装置等采集单元,获取自身所处的环境信息,进而根据获取到的环境信息绘制所处环境的地图信息。所述扫地机器人首次进入所处环境,并且不能从云端直接下载所述地图信息的情况下,可以采用这种方式进行处理。Manner 2: The sweeping robot obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the sweeping robot is located based on the environmental information. Specifically, the sweeping robot uses its own camera, laser scanning device and other collection units to obtain its own environment information, and then draws map information of its environment based on the obtained environment information. When the sweeping robot enters the environment for the first time and cannot directly download the map information from the cloud, this method can be used for processing.
另外,当所述扫地机器人的摄像装置检测到自身所处环境发生改变时,所述扫地机器人重新激活下视传感器,利用自身的至少一种采集单元获取当前所处的环境信息,基于所述环境信息建立所述扫地机器人所处环境的地图信息,保证绘制的地图信息与当前所处的环境相匹配。In addition, when the camera device of the sweeping robot detects that the environment it is in has changed, the sweeping robot reactivates the downward-looking sensor, and uses at least one of its own collection units to obtain the current environment information based on the environment. The information establishes the map information of the environment where the sweeping robot is located, and ensures that the drawn map information matches the current environment.
或者,当所述扫地机器人的摄像装置检测到自身所处环境发生改变时,所述扫地机器人重新从当前所处环境中的其他电子设备处获取到地图信息,使得所述扫地机器人所保存 的地图信息与当前所处环境是一致的。Or, when the camera device of the cleaning robot detects that the environment it is in has changed, the cleaning robot obtains map information from other electronic devices in the current environment, so that the map saved by the cleaning robot The information is consistent with the current environment.
S202:确定所述地图信息中的目标区域;S202: Determine a target area in the map information;
这里,确定所述地图信息中的目标区域的方式有如下几种。其中,所述目标区域用于表征所述扫地机器人会发生掉落的区域。Here, there are several ways to determine the target area in the map information. Wherein, the target area is used to characterize the area where the sweeping robot will fall.
方式一、所述扫地机器人接收终端发来的针对所述扫地机器人所处环境的地图信息标记的所述目标区域的位置。具体的,终端在获取到所述扫地机器人所处环境的地图信息后,对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述扫地机器人;或者,终端在获取到所述电子设备所处环境的地图信息后,标记出所述地图信息中的所述目标区域的位置,将所述标记出的所述目标区域的位置信息发送给所述扫地机器人。Manner 1: The cleaning robot receives the location of the target area marked by the map information for the environment in which the cleaning robot is located from the terminal. Specifically, after acquiring the map information of the environment where the cleaning robot is located, the terminal marks the target area in the map information, and sends the map information marked with the target area to the cleaning robot; Alternatively, after acquiring the map information of the environment in which the electronic device is located, the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the Sweeping robot.
例如,所述扫地机器人利用视觉传感器获取到所处环境的地图信息,发送给终端,终端对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述扫地机器人。或者,终端将标记处所述地图信息中的所述目标区域的位置发送给所述扫地机器人。For example, the sweeping robot obtains map information of its environment by using a vision sensor and sends it to the terminal. The terminal marks the target area in the map information, and sends the map information marked with the target area to the terminal. Describe the sweeping robot. Alternatively, the terminal sends the location of the target area in the map information at the mark to the sweeping robot.
另外,所述扫地机器人还可以利用激光测距传感器来确定所处环境的地图信息,发送给终端,终端对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述扫地机器人。或者,终端将标记处所述地图信息中的所述目标区域的位置发送给所述扫地机器人。In addition, the sweeping robot can also use a laser ranging sensor to determine the map information of its environment, and send it to the terminal. The terminal will mark the target area in the map information, and mark the map with the target area. The information is sent to the sweeping robot. Alternatively, the terminal sends the location of the target area in the map information at the mark to the sweeping robot.
方式二、控制所述扫地机器人处于第一工作模式,在所述第一工作模式下沿所述扫地机器人所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。Manner 2: Control the cleaning robot to be in the first working mode. In the process of driving along the boundary of the environment in which the cleaning robot is located in the first working mode, determine based on the area corresponding to the control instruction for adjusting the driving direction The target area in the map information.
其中,确定所述调整行驶方向的控制指令的方式有以下两种:第一种方式,接收来自其他设备发来的调整行驶方向的控制指令。这里,所述其他设备可以为智能终端、遥控装置等。第二种方式,所述扫地机器人自身生成调整行驶方向的控制指令。There are two ways to determine the control instruction for adjusting the traveling direction: the first method is to receive a control instruction for adjusting the traveling direction from another device. Here, the other equipment may be a smart terminal, a remote control device, and the like. In the second way, the cleaning robot itself generates a control instruction for adjusting the direction of travel.
接下来,对上述确定所述调整行驶方向的控制指令的方式进行详细说明。针对第一种确定所述调整行驶方向的控制指令的方式,如图3所示,所述扫地机器人处于贴边模式,在所述贴边模式下沿所述扫地机器人所处环境的边界行驶,当所述扫地机器人行驶到所处环境中的台阶区域时,接收到调整行驶方向的控制指令,从沿着CA的方向行驶,改为沿着AB方向行驶。进而,根据所述调整行驶方向的控制指令,将所述台阶区域确定为所述地图信息中的目标区域。Next, the above-mentioned method of determining the control command for adjusting the traveling direction will be described in detail. Regarding the first method of determining the control instruction for adjusting the driving direction, as shown in FIG. 3, the sweeping robot is in the welt mode, and in the welt mode, it travels along the boundary of the environment in which the sweeping robot is located, When the cleaning robot travels to the step area in the environment, it receives a control instruction to adjust the travel direction, and changes from traveling in the direction of CA to traveling in the direction of AB. Furthermore, the step area is determined as the target area in the map information according to the control instruction for adjusting the traveling direction.
针对第二种由扫地机器人自身生成调整行驶方向的控制指令的方式,在贴边模式下,所述扫地机器人侧面的传感器处于激活状态,向所述扫地机器人所处位置的两侧发送信号 并得到反馈信息,所述传感器将所述反馈信息发送给控制单元,由控制单元确定所述扫地机器人处于所在环境的边界。在没有接收到反馈信息的情况下,控制单元控制所述扫地机器人开启下视传感器,进入所述扫地机器人没有接收到反馈信息的区域,由所述下视传感器将获取到的信息发送至控制单元,进而确定出所述没有接收到反馈信息的区域为所述扫地机器人所处环境中的台阶区域,生成调整行驶方向的控制指令,调整所述扫地机器人的行驶方向。Regarding the second method in which the cleaning robot itself generates control instructions for adjusting the driving direction, in the welt mode, the sensors on the side of the cleaning robot are in an active state, and signals are sent to both sides of the position where the cleaning robot is located. Feedback information, the sensor sends the feedback information to the control unit, and the control unit determines that the sweeping robot is at the boundary of the environment where it is located. In the case that no feedback information is received, the control unit controls the sweeping robot to turn on the downward-looking sensor, enters the area where the sweeping robot does not receive feedback information, and the downward-looking sensor sends the acquired information to the control unit , And further determine that the area where the feedback information is not received is a step area in the environment where the cleaning robot is located, and generate a control instruction for adjusting the traveling direction to adjust the traveling direction of the cleaning robot.
方式三、所述扫地机器人检测所述扫地机器人所处环境中的目标区域识别标记,得到检测结果;基于所述检测结果,确定所述扫地机器人所处环境的地图信息中的目标区域。如图4所示,所述扫地机器人所处的环境中,可能会在台阶区域贴上虚拟条。所述虚拟条可以为激光条、红外条或者磁条;举例来说,红外条可以为由红外二极管组成的红外线发生器,另外的实现方式本实施例不再进行穷举。当所述扫地机器人首次进入所处环境时,所述扫地机器人会开启用于检测虚拟条的传感器,对所处环境进行扫描,当扫描到所处环境中的虚拟条时,将所述虚拟条所在区域确定为所述地图信息中的目标区域。例如,所述扫地机器人在首次进入所处环境后,开启霍尔传感器,对所述所处环境进行扫描,当检测到所处环境中的磁条,将所述磁条所在区域确定为所述地图信息中的目标区域。Manner 3: The cleaning robot detects the target area identification mark in the environment where the cleaning robot is located to obtain a detection result; based on the detection result, the target area in the map information of the environment where the cleaning robot is located is determined. As shown in Figure 4, in the environment where the sweeping robot is located, virtual bars may be pasted on the step area. The virtual bar may be a laser bar, an infrared bar, or a magnetic bar; for example, the infrared bar may be an infrared generator composed of infrared diodes, and other implementation manners are not exhaustively listed in this embodiment. When the sweeping robot enters the environment for the first time, the sweeping robot will turn on the sensor for detecting the virtual bar and scan the environment. When the virtual bar in the environment is scanned, the virtual bar will be scanned. The location is determined as the target area in the map information. For example, after the sweeping robot enters the environment for the first time, it turns on the Hall sensor to scan the environment, and when the magnetic stripe in the environment is detected, the area where the magnetic stripe is located is determined as the The target area in the map information.
方式四、所述扫地机器人直接接收从所述其他电子设备发来的标记有目标区域的地图信息。另外,若所述扫地机器人所处环境的地图信息发生改变,便根据更新后的地图信息,重新确定所述地图信息中的目标区域。更新地图信息的方式可以采用前述方式中任意之一,这里不再重复说明。Manner 4: The sweeping robot directly receives the map information marked with the target area sent from the other electronic device. In addition, if the map information of the environment where the cleaning robot is located changes, the target area in the map information is re-determined according to the updated map information. The method of updating the map information can be any one of the aforementioned methods, and the description will not be repeated here.
S203:响应于所述扫地机器人所处环境的地图信息中标记有目标区域,控制所述扫地机器人关闭下视传感器。S203: In response to the target area being marked in the map information of the environment where the cleaning robot is located, control the cleaning robot to turn off the downward looking sensor.
具体的,当所述扫地机器人所处环境的地图信息中已经标记了所述目标区域,控制所述扫地机器人关闭自身的下视传感器,在所处环境中行驶。Specifically, when the target area has been marked in the map information of the environment where the cleaning robot is located, the cleaning robot is controlled to turn off its down-looking sensor and drive in the environment where it is.
另外,若在所述扫地机器人所处环境中没有会使所述扫地机器人掉落的目标区域,则可以不对所述扫地机器人的下视传感器的激活或者关闭进行限定。In addition, if there is no target area where the cleaning robot will fall in the environment where the cleaning robot is located, the activation or deactivation of the downward-looking sensor of the cleaning robot may not be limited.
进一步的,在所述扫地机器人处于关闭下视传感器的状态下,利用安装在驱动轮连接臂上的开关传感器或者红外传感器检测到自身处于离地的状态。Further, when the sweeping robot is in a state where the down-view sensor is turned off, a switch sensor or an infrared sensor installed on the connecting arm of the driving wheel detects that it is in a state of being off the ground.
接下来,针对所述扫地机器人利用开关传感器检测自身处于离地状态的原理进行阐述。这里,所述开关传感器在目标物靠近自身的情况下会自动调整为打开状态;在目标物远离自身的情况下会调整为关闭状态。由于所述扫地机器人在离开地面的情况下,会使得所述驱动轮处于收起状态,此时,所述驱动轮与所述开关传感器之间的距离增大,所述开关传感器会由打开状态变成关闭状态。因此,当所述开关传感器由打开状态调整为关闭状态时, 便可以确定所述扫地机器人离开了地面。Next, the principle that the sweeping robot uses the switch sensor to detect that it is off the ground is explained. Here, the switch sensor will be automatically adjusted to the open state when the target is close to itself; when the target is far away from itself, it will be adjusted to the closed state. Since the sweeping robot leaves the ground, the driving wheel will be in a stowed state. At this time, the distance between the driving wheel and the switch sensor will increase, and the switch sensor will change from the open state. Becomes closed. Therefore, when the switch sensor is adjusted from the open state to the closed state, it can be determined that the cleaning robot has left the ground.
同样的,也可以利用安装在所述驱动轮连接臂上的红外传感器来判断所述扫地机器人离开了地面。具体的,由于所述扫地机器人在离开地面的情况下,会使得所述驱动轮处于收起状态,此时,所述驱动轮与所述红外传感器之间的距离增大。进而,判断出所述扫地机器人离开了地面。Similarly, an infrared sensor installed on the connecting arm of the driving wheel can also be used to determine that the sweeping robot has left the ground. Specifically, when the sweeping robot leaves the ground, the driving wheel will be in a stowed state. At this time, the distance between the driving wheel and the infrared sensor increases. Furthermore, it is determined that the sweeping robot has left the ground.
除了上述两种检测所述扫地机器人离开地面的方式外,所述扫地机器人还可以通过自身的重力传感器或者驱动轮上的压力传感器检测到自身处于离地的状态。其中,所述重力传感器是通过检测到所述扫地机器人重心的变化,来判断所述扫地机器人是否离地的;所述驱动轮上的压力传感器是通过判断压力值的有无来判断所述扫地机器人是否离地的。具体的,当所述扫地机器人重心变高时,确定所述扫地机器人离地;当所述驱动轮上的压力值变为零时,确定所述扫地机器人离地。In addition to the above two ways of detecting that the sweeping robot leaves the ground, the sweeping robot can also detect that it is off the ground through its own gravity sensor or a pressure sensor on the driving wheel. Wherein, the gravity sensor determines whether the sweeping robot is off the ground by detecting the change in the center of gravity of the sweeping robot; the pressure sensor on the driving wheel determines whether the sweeping robot has a pressure value or not. Whether the robot is off the ground. Specifically, when the center of gravity of the cleaning robot becomes higher, it is determined that the cleaning robot is off the ground; when the pressure value on the driving wheel becomes zero, it is determined that the cleaning robot is off the ground.
在确定所述扫地机器人离地的情况下,所述扫地机器人重新激活下视传感器,再次获取所处环境的地图信息。若重新获取到的所处环境的地图信息没有改变,则再次关闭所述下视传感器。When it is determined that the sweeping robot is off the ground, the sweeping robot reactivates the downward-looking sensor to obtain the map information of the environment in which it is located again. If the re-acquired map information of the environment does not change, the downward-looking sensor is turned off again.
若重新获取到的所处环境的地图信息发生了改变,则执行前述步骤S201至步骤S203。或者,可以出现提醒信息,提醒用户进行是否关闭所述下视传感器的相关操作。If the newly acquired map information of the environment is changed, the aforementioned step S201 to step S203 are executed. Alternatively, a reminder message may appear to remind the user to perform related operations on whether to turn off the downward looking sensor.
本实施例中,获取到扫地机器人所处环境的地图信息,若所述地图信息中标记有目标区域,则控制所述扫地机器人关闭下视传感器。这样,便不必使用所述扫地机器人的下视传感器来检测判断所要行驶的区域是否为所述目标区域,也就不会出现所述目标区域的误判问题。从而,避免了所述扫地机器人在行驶过程中误判的情况发生,提高所处环境的清扫效果。In this embodiment, the map information of the environment in which the cleaning robot is located is acquired, and if the target area is marked in the map information, the cleaning robot is controlled to turn off the downward-looking sensor. In this way, it is unnecessary to use the downward-looking sensor of the sweeping robot to detect and determine whether the area to be driven is the target area, and there is no problem of misjudgment of the target area. Therefore, the misjudgment of the cleaning robot during driving is avoided, and the cleaning effect of the environment in which it is located is improved.
实施例三、Embodiment three
为实现上述传感器的控制方法,本申请实施例还提供了一种传感器的控制装置,所述装置的组成结构示意图如图5所示,包括:获取模块51和控制模块52;其中,In order to realize the above-mentioned sensor control method, an embodiment of the present application also provides a sensor control device. The structure diagram of the device is shown in FIG. 5, and includes: an acquisition module 51 and a control module 52; wherein,
所述获取模块51,用于获取电子设备所处环境的地图信息;The obtaining module 51 is used to obtain map information of the environment in which the electronic device is located;
所述控制模块52,用于响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。The control module 52 is configured to control the electronic device to turn off the down-view sensor in response to the target area marked in the map information of the environment in which the electronic device is located; wherein, the target area is used to indicate that the electronic device will The area where the drop occurred.
这里,所述获取模块51,具体用于接收其他电子设备发来的所述电子设备所处环境的地图信息;或者,所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。其中,所述电子设备为具有清扫功能的家电设备,比如,扫地机器人。所述其他电子设备为所述电子设备所处环境中具有图 像采集功能或者摄像功能的智能电子设备。比如,安防摄像装置、安装有摄像头的电脑等。Here, the obtaining module 51 is specifically configured to receive map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device obtains the environment information in which it is located through at least one collection unit, Establishing map information of the environment in which the electronic device is located based on the environment information. Wherein, the electronic device is a household appliance with a cleaning function, such as a sweeping robot. The other electronic device is an intelligent electronic device with an image collection function or a camera function in the environment where the electronic device is located. For example, security cameras, computers with cameras, etc.
具体的,在所述电子设备所处的环境中,所述其他电子设备将所处环境的地图信息上传至云端,当所述电子设备首次进入所处环境时,所述电子设备的获取模块51,直接从云端下载所处环境的地图信息。Specifically, in the environment where the electronic device is located, the other electronic device uploads map information of the environment it is in to the cloud, and when the electronic device enters the environment it is in for the first time, the acquisition module 51 of the electronic device , Download the map information of your environment directly from the cloud.
或者,所述获取模块51,通过自身的至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。其中,所述采集单元可以是摄像装置、激光扫描装置等。在所述电子设备首次进入所处环境,并且不能从云端直接下载所述地图信息的情况下,可以采用这种方式进行处理。Alternatively, the acquisition module 51 acquires the environmental information where it is located through at least one of its own collection units, and establishes map information of the environment where the electronic device is located based on the environmental information. Wherein, the collection unit may be a camera device, a laser scanning device, or the like. When the electronic device enters the environment where it is for the first time, and the map information cannot be directly downloaded from the cloud, this method can be used for processing.
这里,所述装置还包括接收模块53,用于接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。Here, the apparatus further includes a receiving module 53 for receiving the location of the target area marked by the map information of the environment in which the electronic device is located and sent by the terminal.
具体的,终端获取到所述电子设备所处环境的地图信息后,对所述地图信息中的目标区域进行标记,将标记有所述目标区域的所述地图信息发送给所述接收模块53;或者,终端在获取到所述电子设备所处环境的地图信息后,标记出所述地图信息中的所述目标区域的位置,将所述标记出的所述目标区域的位置信息发送给所述接收模块53。Specifically, after obtaining the map information of the environment where the electronic device is located, the terminal marks the target area in the map information, and sends the map information marked with the target area to the receiving module 53; Alternatively, after acquiring the map information of the environment in which the electronic device is located, the terminal marks the location of the target area in the map information, and sends the marked location information of the target area to the Receiving module 53.
进一步的,所述装置还包括第一确定模块54,用于控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。Further, the device further includes a first determining module 54 for controlling the electronic device to be in a first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, Based on the area corresponding to the control instruction for adjusting the driving direction, the target area in the map information is determined.
进一步的,所述装置还包括第二确定模块55,用于检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。Further, the device further includes a second determining module 55, configured to detect the target area identification mark in the environment where the electronic device is located, and obtain the detection result; based on the detection result, determine the environment where the electronic device is located The target area in the map information.
进一步的,图5中的传感器的控制装置的结构组成还应用于图6中所示的结构组成,具体包括:获取模块51、控制模块52、接收模块53、第一确定模块54和第二确定模块55。Further, the structural composition of the sensor control device in FIG. 5 is also applied to the structural composition shown in FIG. 6, and specifically includes: an acquisition module 51, a control module 52, a receiving module 53, a first determination module 54 and a second determination module. Module 55.
另外,本实施例的具体实施过程在前面的技术方案中已详细阐明,这里不再进行赘述。In addition, the specific implementation process of this embodiment has been clarified in detail in the previous technical solutions, and will not be repeated here.
在实际应用中,获取模块51、控制模块52、接收模块53、第一确定模块54和第二确定模块55均可由位于服务器或终端中的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In practical applications, the acquisition module 51, the control module 52, the receiving module 53, the first determination module 54 and the second determination module 55 can all be implemented by a central processing unit (CPU) and a microprocessor located in a server or terminal. (MPU, Micro Processor Unit), Digital Signal Processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA, Field Programmable Gate Array) and other implementations.
需要说明的是:上述实施例提供的传感器的控制装置在进行传感器控制时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的传感器的控制装置与传感器的控制方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the sensor control device provided in the above embodiment performs sensor control, only the division of the above-mentioned program modules is used as an example. In actual applications, the above-mentioned processing can be allocated by different program modules as needed. , That is, divide the internal structure of the device into different program modules to complete all or part of the processing described above. In addition, the sensor control device provided in the foregoing embodiment and the sensor control method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and will not be repeated here.
为实现上述方法,本申请实施例还提供了另一种传感器的控制装置,该装置包括存储器、处理器及存储在存储器上并能够由所述处理器运行的可执行程序,所述处理器运行所述可执行程序时,执行以下操作:In order to implement the above method, an embodiment of the present application also provides another sensor control device, which includes a memory, a processor, and an executable program stored in the memory and capable of being run by the processor, and the processor runs When the executable program is described, the following operations are performed:
获取电子设备所处环境的地图信息;Obtain map information of the environment where the electronic device is located;
响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。In response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the look-down sensor; wherein the target area is used to represent the area where the electronic device will fall.
所述处理器还用于运行所述可执行程序时,执行以下操作:The processor is further configured to perform the following operations when running the executable program:
接收其他电子设备发来的所述电子设备所处环境的地图信息;Receiving map information of the environment in which the electronic device is located from other electronic devices;
或者,or,
所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。The electronic device obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the electronic device is located based on the environmental information.
所述处理器还用于运行所述可执行程序时,执行以下操作:The processor is further configured to perform the following operations when running the executable program:
接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。The location of the target area marked by the map information of the environment in which the electronic device is located is received from the terminal.
所述处理器还用于运行所述可执行程序时,执行以下操作:The processor is further configured to perform the following operations when running the executable program:
控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。The electronic device is controlled to be in the first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, the map is determined based on the area corresponding to the control instruction for adjusting the driving direction The target area in the message.
所述处理器还用于运行所述可执行程序时,执行以下操作:The processor is further configured to perform the following operations when running the executable program:
检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;Detecting the target area identification mark in the environment where the electronic device is located, and obtaining a detection result;
基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。Based on the detection result, the target area in the map information of the environment where the electronic device is located is determined.
所述处理器还用于运行所述可执行程序时,执行以下操作:The processor is further configured to perform the following operations when running the executable program:
所述其他电子设备发来的所述电子设备所处环境的地图信息中还包括:至少一个目标区域的位置。下面以传感器的控制装置实施为用于传感器的控制的服务器或终端为例,对该传感器的控制装置的硬件结构做进一步说明。The map information of the environment in which the electronic device is located from the other electronic device further includes: the location of at least one target area. Taking the control device of the sensor implemented as a server or terminal for controlling the sensor as an example, the hardware structure of the control device of the sensor will be further described.
图7给出了本申请实施例的传感器的控制装置的硬件结构示意图,图7所示的传感器的控制装置700包括:至少一个处理器701、存储器702、用户接口703和至少一个网络接口704。所述传感器的控制装置700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统705。FIG. 7 shows a schematic diagram of the hardware structure of a sensor control device according to an embodiment of the present application. The sensor control device 700 shown in FIG. 7 includes: at least one processor 701, a memory 702, a user interface 703, and at least one network interface 704. The various components in the sensor control device 700 are coupled together through the bus system 705. It can be understood that the bus system 705 is used to implement connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 705 in FIG. 7.
其中,用户接口703可以包括显示器、键盘、鼠标、轨迹球、点击轮、按键、按钮、触感板或者触摸屏等。Among them, the user interface 703 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch panel, or a touch screen.
可以理解,存储器702可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。It can be understood that the memory 702 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
本申请实施例中的存储器702用于存储各种类型的数据以支持传感器的控制装置700的操作。这些数据的示例包括:用于在传感器的控制装置700上操作的任何计算机程序,如可执行程序7021,实现本申请实施例方法的程序可以包含在可执行程序7021中。The memory 702 in the embodiment of the present application is used to store various types of data to support the operation of the control device 700 of the sensor. Examples of these data include: any computer program used to operate on the sensor control device 700, such as the executable program 7021, and the program implementing the method of the embodiment of the present application may be included in the executable program 7021.
上述本申请实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器701可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiments of the present application may be applied to the processor 701 or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software. The aforementioned processor 701 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 701 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 702. The processor 701 reads the information in the memory 702 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,本申请实施例还提供了一种存储介质,其上存储有可执行程序,所述可执行程序在处理器运行时,执行前述方法。In an exemplary embodiment, the embodiment of the present application further provides a storage medium on which an executable program is stored, and the executable program executes the foregoing method when the processor is running.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或可执行程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的可执行程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or executable program products. Therefore, this application may adopt the form of hardware embodiment, software embodiment, or a combination of software and hardware embodiments. Moreover, this application may adopt the form of executable program products implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(系统)、和可执行程序产品的流程图和/或方框图来描述的。应理解可由可执行程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些可执行程序指令到通用计算机、专用计算机、嵌入式处理机或参考可编程数据处理设备的处理器以产生一个机器,使得通过计算机或参考可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and executable program products according to embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by executable program instructions. These executable program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or the processor of a reference programmable data processing device to generate a machine, so that the instructions executed by the computer or the processor of the reference programmable data processing device are generated A device used to implement the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些可执行程序指令也可存储在能引导计算机或参考可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These executable program instructions can also be stored in a computer-readable memory that can guide a computer or refer to a programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些可执行程序指令也可装载到计算机或参考可编程数据处理设备上,使得在计算机或参考可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或参考可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These executable program instructions can also be loaded on a computer or a reference programmable data processing device, so that a series of operation steps are executed on the computer or a reference programmable device to produce computer-implemented processing, which can be executed on the computer or a reference programmable device. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above are only preferred embodiments of the present application, and are not used to limit the protection scope of the present application.

Claims (13)

  1. 一种传感器的控制方法,其特征在于,所述方法包括:A sensor control method, characterized in that the method includes:
    获取电子设备所处环境的地图信息;Obtain map information of the environment where the electronic device is located;
    响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。In response to the target area being marked in the map information of the environment in which the electronic device is located, the electronic device is controlled to turn off the look-down sensor; wherein the target area is used to represent the area where the electronic device will fall.
  2. 根据权利要求1所述的方法,其特征在于,所述获取电子设备所处环境的地图信息,包括:The method according to claim 1, wherein the obtaining map information of an environment in which the electronic device is located comprises:
    接收其他电子设备发来的所述电子设备所处环境的地图信息;Receiving map information of the environment in which the electronic device is located from other electronic devices;
    或者,or,
    所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。The electronic device obtains its own environmental information through at least one collection unit, and establishes map information of the environment in which the electronic device is located based on the environmental information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    接收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。The location of the target area marked by the map information of the environment in which the electronic device is located is received from the terminal.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。The electronic device is controlled to be in the first working mode, and in the process of driving along the boundary of the environment in which the electronic device is located in the first working mode, the map is determined based on the area corresponding to the control instruction for adjusting the driving direction The target area in the message.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;Detecting the target area identification mark in the environment where the electronic device is located, and obtaining a detection result;
    基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。Based on the detection result, the target area in the map information of the environment where the electronic device is located is determined.
  6. 根据权利要求2所述的方法,其特征在于,所述其他电子设备发来的所述电子设备所处环境的地图信息中还包括:至少一个目标区域的位置。The method according to claim 2, wherein the map information of the environment in which the electronic device is located from the other electronic device further includes: the location of at least one target area.
  7. 一种传感器的控制装置,其特征在于,所述装置包括:获取模块和控制模块;其中,A sensor control device, characterized in that the device includes: an acquisition module and a control module; wherein,
    所述获取模块,用于获取电子设备所处环境的地图信息;The acquisition module is used to acquire map information of the environment where the electronic device is located;
    所述控制模块,用于响应于所述电子设备所处环境的地图信息中标记有目标区域,控制所述电子设备关闭下视传感器;其中,所述目标区域用于表征所述电子设备会发生掉落的区域。The control module is used to control the electronic device to turn off the down-view sensor in response to the target area marked in the map information of the environment where the electronic device is located; wherein the target area is used to characterize the occurrence of the electronic device. The area where it fell.
  8. 根据权利要求7所述的装置,其特征在于,所述获取模块,具体用于接收其他电子设备发来的所述电子设备所处环境的地图信息;或者,所述电子设备通过至少一种采集单元获取到自身所处的环境信息,基于所述环境信息建立所述电子设备所处环境的地图信息。The apparatus according to claim 7, wherein the acquisition module is specifically configured to receive map information of the environment in which the electronic device is located from other electronic devices; or, the electronic device collects at least one The unit obtains the environment information where it is located, and establishes map information of the environment where the electronic device is located based on the environment information.
  9. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括接收模块,用于接 收终端发来的针对所述电子设备所处环境的地图信息标记的所述目标区域的位置。The device according to claim 7 or 8, wherein the device further comprises a receiving module for receiving the location of the target area marked by the map information of the environment in which the electronic device is located from the terminal.
  10. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括第一确定模块,用于控制所述电子设备处于第一工作模式,在所述第一工作模式下沿所述电子设备所处环境的边界行驶的过程中,基于调整行驶方向的控制指令所对应的区域,确定所述地图信息中的目标区域。The device according to any one of claims 7 to 9, wherein the device further comprises a first determining module, which is used to control the electronic device to be in a first working mode, and in the first working mode. In the process of driving at the boundary of the environment in which the electronic device is located, the target area in the map information is determined based on the area corresponding to the control instruction for adjusting the driving direction.
  11. 根据权利要求7至10任一项所述的装置,其特征在于,所述装置还包括第二确定模块,用于检测所述电子设备所处环境中的目标区域识别标记,得到检测结果;基于所述检测结果,确定所述电子设备所处环境的地图信息中的目标区域。The device according to any one of claims 7 to 10, wherein the device further comprises a second determining module, configured to detect the target area identification mark in the environment where the electronic device is located, and obtain the detection result; The detection result determines the target area in the map information of the environment where the electronic device is located.
  12. 一种存储介质,其上存储有可执行程序,其特征在于,所述可执行程序被处理器执行时实现权利要求1至6任一项所述方法的步骤。A storage medium having an executable program stored thereon, wherein the executable program implements the steps of the method according to any one of claims 1 to 6 when the executable program is executed by a processor.
  13. 一种传感器的控制装置,包括存储器、处理器及存储在存储器上并能够由所述处理器运行的可执行程序,其特征在于,所述处理器运行所述可执行程序时执行权利要求1至6任一项所述方法的步骤。A sensor control device, comprising a memory, a processor, and an executable program stored on the memory and capable of being run by the processor, wherein the processor executes claims 1 to when the executable program is run. 6. Steps of any one of the methods.
PCT/CN2019/111732 2019-08-29 2019-10-17 Control method and apparatus for sensor and storage medium WO2021035903A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910806166.5 2019-08-29
CN201910806166.5A CN112596508B (en) 2019-08-29 2019-08-29 Control method and device of sensor and storage medium

Publications (1)

Publication Number Publication Date
WO2021035903A1 true WO2021035903A1 (en) 2021-03-04

Family

ID=74684966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111732 WO2021035903A1 (en) 2019-08-29 2019-10-17 Control method and apparatus for sensor and storage medium

Country Status (2)

Country Link
CN (1) CN112596508B (en)
WO (1) WO2021035903A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170358201A1 (en) * 2016-06-13 2017-12-14 Gamma2Robotics Methods and systems for reducing false alarms in a robotic device by sensor fusion
CN206856691U (en) * 2017-06-23 2018-01-09 南京工程学院 Anti- phenomenon of taking throttle as brake intelligence control system
CN108222605A (en) * 2018-01-16 2018-06-29 江苏海天科技有限公司 It is a kind of that there is the stereo garage for intercepting ultrahigh detection device
CN109602341A (en) * 2019-01-23 2019-04-12 珠海市微半导体有限公司 A kind of clean robot based on virtual boundary falls control method and chip

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100926783B1 (en) * 2008-02-15 2009-11-13 한국과학기술연구원 Method for self-localization of a robot based on object recognition and environment information around the recognized object
KR102020210B1 (en) * 2013-04-11 2019-11-05 삼성전자주식회사 Sensor module and robot cleaner having the same
US9410979B2 (en) * 2014-09-23 2016-08-09 Fitbit, Inc. Hybrid angular motion sensors
CN104501943B (en) * 2014-12-05 2016-10-26 广东美的制冷设备有限公司 The self-checking unit of light sensor and self checking method in air-conditioner and air-conditioner
CN106289359B (en) * 2015-05-19 2019-12-20 科沃斯机器人股份有限公司 Downward-looking sensor detection system and method and self-moving processing system and method thereof
SG11201804933SA (en) * 2015-12-16 2018-07-30 Mbl Ltd Robotic kitchen including a robot, a storage arrangement and containers therefor
CN106913289B (en) * 2015-12-25 2021-01-01 北京奇虎科技有限公司 Sweeping processing method and device of sweeping robot
CN106272420B (en) * 2016-08-30 2019-07-02 北京小米移动软件有限公司 Robot and robot control method
DE102016125408A1 (en) * 2016-12-22 2018-06-28 RobArt GmbH AUTONOMOUS MOBILE ROBOT AND METHOD FOR CONTROLLING AN AUTONOMOUS MOBILE ROBOT
CN107102294A (en) * 2017-06-19 2017-08-29 安徽味唯网络科技有限公司 A kind of method in sweeping robot intelligent planning path
CN111492403A (en) * 2017-10-19 2020-08-04 迪普迈普有限公司 Lidar to camera calibration for generating high definition maps
CN107608360A (en) * 2017-10-26 2018-01-19 深圳市银星智能科技股份有限公司 Mobile robot
CN108020844B (en) * 2017-11-27 2020-07-07 深圳市无限动力发展有限公司 Cliff detection method and robot
CN107775640A (en) * 2017-12-05 2018-03-09 深圳市银星智能科技股份有限公司 Mobile robot
WO2019113859A1 (en) * 2017-12-13 2019-06-20 广州艾若博机器人科技有限公司 Machine vision-based virtual wall construction method and device, map construction method, and portable electronic device
US10638906B2 (en) * 2017-12-15 2020-05-05 Neato Robotics, Inc. Conversion of cleaning robot camera images to floorplan for user interaction
CN109375224A (en) * 2018-09-30 2019-02-22 小狗电器互联网科技(北京)股份有限公司 A kind of steep cliff detection method, device and sweeping robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170358201A1 (en) * 2016-06-13 2017-12-14 Gamma2Robotics Methods and systems for reducing false alarms in a robotic device by sensor fusion
CN206856691U (en) * 2017-06-23 2018-01-09 南京工程学院 Anti- phenomenon of taking throttle as brake intelligence control system
CN108222605A (en) * 2018-01-16 2018-06-29 江苏海天科技有限公司 It is a kind of that there is the stereo garage for intercepting ultrahigh detection device
CN109602341A (en) * 2019-01-23 2019-04-12 珠海市微半导体有限公司 A kind of clean robot based on virtual boundary falls control method and chip

Also Published As

Publication number Publication date
CN112596508B (en) 2022-04-12
CN112596508A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
TWI687784B (en) Moving robot and control method thereof
US9632646B2 (en) Electronic apparatus
CN108958490B (en) Electronic device, gesture recognition method thereof and computer-readable storage medium
US9597804B2 (en) Auto-cleaning system, cleaning robot and method of controlling the cleaning robot
CN110060207B (en) Method and system for providing a floor plan
KR101618030B1 (en) Method for Recognizing Position and Controlling Movement of a Mobile Robot, and the Mobile Robot Using the same
KR101753361B1 (en) Smart cleaning system and method using a cleaning robot
CN105334858A (en) Floor sweeping robot and indoor map establishing method and device thereof
EP3130969A1 (en) Method and device for showing work state of a device
EP4318186A1 (en) Multi-screen interaction method and apparatus, and terminal device and vehicle
CN113576322B (en) Cleaning method, apparatus and storage medium for cleaning robot
KR20130027339A (en) Mobile robot, and system and method for remotely controlling the same
CN106828371A (en) A kind of control method for vehicle and relevant device
CN110986967B (en) Automatic repositioning method, medium, terminal and device for robot
US10437251B2 (en) Method for specifying position, terminal device, autonomous device, and program
KR101287474B1 (en) Mobile robot, and system and method for remotely controlling the same
JP2013246708A (en) Display control system, display control method, display control device and display control program
WO2021035903A1 (en) Control method and apparatus for sensor and storage medium
CN105677088A (en) Control method and electronic device
US20190315288A1 (en) Deposit removal system, and deposit removal method
CN111061371A (en) Control method and device of electronic painted screen, mobile terminal and storage medium
US20200204629A1 (en) Sweeper, server, sweeper control method and sweeper control system
KR20160090278A (en) Mobile robot and controlling method of the same
KR20160104809A (en) Apparatus and method for controlling automatic vacuum cleaner
CN112783147A (en) Trajectory planning method and device, robot and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19943179

Country of ref document: EP

Kind code of ref document: A1