WO2024051622A1 - Control method and apparatus, and device and storage medium - Google Patents

Control method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2024051622A1
WO2024051622A1 PCT/CN2023/116657 CN2023116657W WO2024051622A1 WO 2024051622 A1 WO2024051622 A1 WO 2024051622A1 CN 2023116657 W CN2023116657 W CN 2023116657W WO 2024051622 A1 WO2024051622 A1 WO 2024051622A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
robot
information
control
work
Prior art date
Application number
PCT/CN2023/116657
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 WO2024051622A1 publication Critical patent/WO2024051622A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/40Control within particular dimensions
    • G05D1/43Control of position or course in two dimensions

Definitions

  • the present invention relates to the field of intelligent control, and in particular, to a control method, device, equipment and storage medium.
  • Robots With the continuous development of science and technology, robots have gradually begun to enter people's lives. Robots can work independently within a certain range without being controlled by users.
  • Robots in the existing technology usually rely on visual recognition and timing to set their working mechanisms. However, due to different seasons and time differences in different places, the robot may still be in the work area after dark, and finally cannot identify the site because of darkness. Surrounding conditions, trapped in the work area, resulting in damage to the robot.
  • Embodiments of the present invention provide a control method, device, equipment and storage medium, which solves the problem that due to different seasons and time differences in different places, the robot may still be in the working area after dark, and finally cannot recognize the surrounding areas due to darkness. If the robot is trapped in the work area, causing damage to the robot, time information can be obtained through positioning data, and the robot can be commanded and controlled based on the time information, thereby improving the accuracy of controlling the robot's behavior.
  • a control method which method includes:
  • a control device which device includes:
  • Positioning data acquisition module used to obtain positioning data
  • a time information determination module configured to determine the time information corresponding to the current location according to the positioning data
  • a control instruction execution module is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
  • an electronic device which includes:
  • the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present invention. Control Method.
  • a computer-readable storage medium stores computer instructions.
  • the computer instructions are used to enable a processor to implement any embodiment of the present invention when executed. control method.
  • Embodiments of the present invention obtain positioning data, determine the time information corresponding to the current position based on the positioning data, generate control instructions based on the time information, and control the robot to execute the control instructions, thereby solving the problem that the robot may There is a problem of still being in the work area after dark. Finally, because it is dark and unable to recognize the situation around the site, it is trapped in the work area, which in turn causes the robot to be damaged. Improve the accuracy of the generated control instructions, thereby improving the control of the robot behavior. accuracy.
  • Figure 1 is a flow chart of a control method provided by Embodiment 1 of the present invention.
  • Figure 2 is a flow chart of a control method provided by Embodiment 2 of the present invention.
  • Figure 3 is a flow chart of a control method provided by Embodiment 3 of the present invention.
  • Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • FIG. 1 is a flow chart of a control method provided in Embodiment 1 of the present invention.
  • This embodiment can be applied to various scenarios of automated work of intelligent equipment, such as an automatic sweeping robot performing sweeping tasks, and an automatic lawn mowing robot performing lawn mowing tasks.
  • the method can be performed by a control device, which can be implemented in the form of software and/or hardware, optionally, through an electronic device, which can be a mobile terminal, a PC, a server, etc.
  • the method specifically includes the following steps:
  • the positioning data can be the longitude and latitude data of the location of the robot.
  • the longitude lines indicate the north-south direction of the earth
  • the latitude lines indicate the east-west direction of the earth.
  • a longitude and a latitude can together determine the accurate position of a place on the earth. For example, the Korean Peninsula is located at 126° east longitude and north latitude. 38°.
  • the method of obtaining positioning data may be to obtain the longitude and latitude of the robot's location through a GPS positioning device, or it may be to obtain the positioning data of the robot's location through other positioning devices. This is not limited in the embodiment of the present invention.
  • S120 Determine the time information corresponding to the current location based on the positioning data.
  • the current location refers to the location of the robot.
  • the time information corresponding to the current location includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
  • the method of determining the time information corresponding to the current location based on the positioning data may be: obtaining the latitude and longitude data through the positioning device, determining the time zone information based on the latitude and longitude data, and determining the time information corresponding to the current location based on the time zone information and the latitude and longitude data.
  • the latitude and longitude data can be obtained through the positioning device, the time zone information can be determined based on the latitude and longitude data, the current time corresponding to the current location of the robot can be calculated based on the time zone information and the latitude and longitude data, and the seasonal information and solar term information corresponding to the current location of the robot can be determined based on the current time. , calculate the sunrise time and sunset time corresponding to the current location of the robot based on the time zone information and latitude and longitude data, and determine the weather information corresponding to the current location of the robot based on the current time and current location.
  • the time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
  • the current time can be the time corresponding to the current location of the robot. For example, if the robot is in Beijing, the current time is 9:00 Beijing time on XX month XX, XX year.
  • the sunrise time and sunset time may be determined in the following manner: determine the time zone information based on the longitude and latitude data of the current location, and determine the sunrise time and sunset time based on the time zone information and the longitude and latitude data of the current location.
  • the sunrise time and sunset time can also be determined by: determining the current time based on the longitude and latitude data and time zone information of the current location, determining the current date based on the current time, and determining the sunrise time and sunset time based on the current date, time zone information, and longitude and latitude data.
  • the seasonal information and solar term information may be determined in the following manner: determine the current time corresponding to the current location based on the longitude and latitude data of the current location, and determine the seasonal information and solar term information based on the current time.
  • the time information related to the current position can be determined.
  • the obtained time information can lay the foundation for generating control robot behavior instructions and clarify the current time, sunrise time, sunset time, seasonal information and solar terms. Information can ensure that the robot works at the right time, thereby improving the accuracy of controlling the robot's behavior.
  • the positioning data includes: latitude and longitude data
  • Determining the time information corresponding to the current location based on the positioning data includes:
  • the current time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
  • time zone information can be time information divided by different longitudes in various countries and regions around the world. It should be noted that a time zone is divided every 15°. The world is divided into 24 time zones, 12 time zones in the east and 12 in the west. The time difference between adjacent areas is 1 hour.
  • the method of determining the time zone information based on the longitude and latitude data may be: obtaining the longitude and latitude data of the robot through a positioning device, and calculating the time zone information corresponding to the current location of the robot based on the longitude and latitude data of the robot.
  • the time zone calculation method can be as follows: obtain the longitude and latitude data of the robot through the positioning device, and divide the obtained longitude by 15 degrees. When the remainder is less than 7.5 degrees, the quotient is the time zone information corresponding to the current position of the robot. When the remainder is greater than 7.5 degrees, the quotient plus 1 is the time zone information corresponding to the current position of the robot. East longitude is the east time zone, and west longitude is the west time zone.
  • the longitude and latitude data obtained by the robot is 145 degrees east longitude, divide 145 by 15, the quotient is 9, and the remainder is 10, which is greater than 7.5.
  • the information added to the quotient by 1 is the time zone information corresponding to the current position of the robot, that is, the time zone corresponding to the current position of the robot. Information for East 10th District.
  • the method of determining the time information corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data through a positioning device, determining the time zone information based on the longitude and latitude data, and determining the time zone information based on the longitude and latitude data and commonly used time standards.
  • commonly used time standards may be: at least one of coordinated universal time, GPS satellite navigation system time standard, and East Eighth International Time Zone time.
  • the method of determining the sunrise time and sunset time corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data of the current location of the robot through a positioning device, determining the time zone information based on the longitude and latitude data, and recording the current location using an angle system.
  • the sunrise time calculation method can be: 24*(180+time zone information*15-longitude data-ACOS(-TAN(- 23.4*COS(360*(date sequence number+9)/365))*TAN(latitude data))/360, the date sequence number is the sequence of the current time corresponding to the current position of the robot in this year, such as January The 10th is 10, and February 1st is 32.
  • the expression can be: 24*(180+time zone information*15-longitude data-ACOS(-TAN(-23.4*COS(2* ⁇ *( Date serial number +9)/365)* ⁇ /180)*TAN(latitude data* ⁇ /180))*180/ ⁇ )/360
  • the calculation method of sunset can be: 24*(1+(time zone information*15 -Longitude data)/180)-Sunrise time.
  • the calculation method of sunrise time and sunset time can also be: obtain the longitude and latitude data of the robot's current position through the positioning device, and obtain the last calculated sunrise and sunset time based on the robot's stored information. It should be noted that in the first calculation, the sunrise and sunset times are 12 hours.
  • the time zone information is determined based on the longitude and latitude data.
  • the total number of days from January 1, 2000 AD to the current time is calculated. Based on the total number of days, the time from The number of centuries from January 1, 2000 AD to the current time in Greenwich Mean Time.
  • Ecliptic longitude calculates the sun's deviation based on the Earth's inclination and ecliptic longitude, calculates the solar time angle at Greenwich Mean Time based on the last calculated sunrise and sunset times, mean periapsis angle and ecliptic longitude, calculates corrections based on longitude and latitude data and solar deviation value, calculate the new Greenwich sunrise and sunset time based on the last calculated sunrise and sunset time, correction value and solar time angle of Greenwich time, based on the new Greenwich sunrise and sunset time and the time zone of the robot's current location The information calculates the sunrise and sunset times for the robot's current location.
  • the method of determining the seasonal information and solar term information corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data of the current location of the robot through a positioning device, determining the time zone information based on the longitude and latitude data, and determining based on the longitude and latitude data and the time zone information.
  • the current time is used to determine the seasonal information and solar term information corresponding to the current position of the robot based on the current time.
  • S130 Generate control instructions based on time information, and control the robot to execute the control instructions.
  • the control instructions may be instructions for controlling the behavior of the robot. For example, it may be at least one of a start work instruction, an end work instruction, and a charging instruction.
  • the method of generating the control instruction based on the time information may be: determining the work start time and/or the work end time based on the time information, determining the start work instruction, the end work instruction, and the charging instruction based on the work start time and/or the work end time. of at least one.
  • the method of generating control instructions based on time information can also be: obtaining task data, and generating control instructions based on task data and time information. For example, at least one of the work start time, the work end time, and the work frequency may be determined based on the task data and time information, and the control instruction may be generated based on at least one of the work start time, the work end time, and the work frequency.
  • the way to control the robot to execute the control instruction may be: by reading the control instruction generated using time information, analyzing and executing a series of operations of this control instruction. For example, if the time information calculates that the sunset time is 6 p.m., that is, a control instruction is generated for the robot to end its work at 6 p.m. and return to the charging station. After reading this control instruction, the robot must complete the work at 6 p.m. that day. End the work and return to the charging station for charging autonomously.
  • the above-mentioned process of stopping work at 6pm and returning to the charging station is the process of the robot executing control instructions.
  • generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
  • the task data can be task-related data assigned to the robot.
  • the task data includes: the robot's working area, the robot's workload, the robot's working frequency and other information.
  • the task data of the lawn mowing robot may include the amount of tasks to be completed by the lawn mowing robot, the mowing area, and the efficiency of mowing the lawn, etc.
  • the method of generating control instructions based on the task data and the time information may be: calculating time information through positioning data, that is, at least one of current time, sunrise time, sunset time, seasonal information, and solar term information. , determine at least one of the work start time, the work end time and the work frequency according to the task data and time information, and generate the control instruction according to at least one of the work start time, the work end time and the work frequency.
  • the lawn mowing robot's task is to complete all mowing tasks in area A that day.
  • the sunset time calculated from the positioning data that day is 6 p.m.
  • the control instruction is generated that the lawn mowing robot should complete all mowing tasks in area A at 6 p.m. End work and return to the charging station before 6:00 p.m. If the lawn mowing robot has completed the lawn mowing task specified in area A before 6 p.m., it will end the work immediately after completing the task and return to the charging station. If the lawn mowing robot has not completed the task before 6 p.m. Area A stipulates lawn mowing tasks, and the work must still be completed and returned to the charging station according to the set time before 6 pm in the control instruction.
  • Embodiments of the present invention obtain positioning data, determine the time information corresponding to the current position based on the positioning data, generate control instructions based on the time information, and control the robot to execute the control instructions, thereby solving the problem of possible weather conditions on the robot due to different seasons and different time differences in different places. After dark, he was still working in the work area. In the end, because it was dark, he could not recognize the situation around the site and was trapped in the work area, which caused the robot to be damaged. This can ensure that the robot works in the optimal working environment and improve Control the accuracy of robot behavior.
  • this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute a subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, including: according to the The task data and the time information determine work information, wherein the work information includes at least one of work start time, work end time, and work frequency; and a control instruction is generated according to the work information.
  • Figure 2 is a flow chart of a control method provided by Embodiment 2 of the present invention. As shown in Figure 2, the method specifically includes the following steps:
  • S220 Determine time information corresponding to the current location based on the positioning data.
  • positioning data is obtained in S210 and task data is obtained in S230.
  • Positioning data and task data may be obtained at the same time, or positioning data may be obtained after task data is obtained.
  • S240 Determine work information based on task data and time information, where the work information includes at least one of work start time, work end time, and work frequency.
  • the work information is the work parameters of the robot, which may include at least one of work start time, work end time and work frequency.
  • the lawn mowing robot performs a lawn mowing task in area A.
  • the lawn mower robot's work start time, work end time and working frequency are determined, where , the working efficiency of the lawn mowing robot can be determined based on the work start time, work end time and task data. It should be noted that if the total working time of the lawn mowing robot is short, the working efficiency of the lawn mowing robot needs to be improved. If the lawn mowing robot If the total working time is slightly longer, the working efficiency of the lawn mower robot needs to be appropriately reduced.
  • the method of generating control instructions based on work information can be: obtaining positioning data through a positioning device, determining the time information of the current position of the robot based on the positioning data, obtaining robot task data, determining the work information of the robot based on the time information and task data, and determining the robot's work information based on the time information and task data.
  • Work information generates control instructions.
  • the positioning data is determined based on the positioning device of the lawn mowing robot, and the sunrise time, sunset time and seasonal information of the lawn mowing robot are determined based on the positioning data.
  • the lawn mowing robot is in winter, and the sunrise time is 6 o'clock in the morning.
  • the sunset time is 6 p.m.
  • the lawn mowing robot's task is to complete all mowing tasks in area A.
  • the determined work information is that the lawn mowing robot's working time should be later than 6 o'clock in the morning, and early at 6 p.m., and all mowing tasks in area A are to be completed within this time period
  • the control instructions generated based on the work information corresponding to the current position of the lawn mowing robot must include the lawn mowing robot's work start time of 6:30 a.m. and late The work ends at 5:30, so the lawn mower robot will work from 3:1 am to 5:30 pm. Because in winter and working hours are shorter, it is necessary to improve the working efficiency of the lawn mowing robot to ensure that the task is completed within working hours.
  • the technical method of this embodiment obtains positioning data and determines time information corresponding to the current location based on the positioning data, obtains task data, and determines work information based on the task data and time information, where the work information includes work start time and work end time. And at least one of the working frequencies, the control instructions are generated based on the work information, which solves the problem of damage to the robot caused by the robot still working when it is dark, and improves the rationality of the robot's work arrangement.
  • this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction.
  • the robot executing the control instruction includes: determining working time according to the task data; generating a control instruction according to the time information and the working time, and controlling the robot to execute the control instruction.
  • Figure 3 is a flow chart of a control method provided by Embodiment 3 of the present invention. As shown in Figure 3, the method specifically includes the following steps:
  • S320 Determine time information corresponding to the current location based on the positioning data.
  • S340 Determine working time based on task data.
  • the working time can include the work start time and the work end time.
  • the working time can be that the robot starts working at 6 o'clock in the morning and ends at 6 o'clock in the evening.
  • the method of determining the working time based on the task data can be: determining the working time of the robot through relevant data in the task data, such as the robot's working area, workload, and working frequency. For example, the robot's current position has a large workload, Then the determined working time should be increased, and the robot's work start time should be set in advance and/or the robot's end time should be delayed; if the workload at the current position of the robot is small, the determined working time should be reduced, and the robot's work start time should be set in advance. The job start time needs to be later and/or the robot's end time needs to be earlier.
  • the way to determine the working time according to the task data can be: determine the working time through the specific task data instructions in the task data.
  • the task data instruction of the lawn mowing robot is to perform a lawn mowing task in area A, start work at 6 o'clock in the morning and 6 o'clock in the evening. If the work ends at 6 o'clock in the morning, the working time is determined to be 6 o'clock in the morning and 6 o'clock in the evening.
  • S350 Generate control instructions based on time information and working time, and control the robot to execute the control instructions.
  • the method of generating control instructions based on time information and working time can be: determining the sunrise time and sunset time based on positioning data, adjusting the work start time based on the comparison result between the sunrise time and the work start time, and adjusting the work start time based on the adjusted Generate control instructions based on the work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
  • the method of generating control instructions based on time information and working time can also be: determining the sunrise time and sunset time based on the current time, seasonal information and/or solar term information, and determining the working start time based on the comparison result between the sunrise time and the working start time. Make adjustments and generate control instructions based on the adjusted work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
  • the working time of the lawn mowing robot determined based on the task data is that the work start time is 6 o'clock in the morning and the work end time is 6 o'clock in the evening.
  • the time information determined based on the positioning data is that the sunrise time of the current location is early.
  • the sunset time is 5:30 pm. If the work start time of the original working time is earlier than the sunrise time corresponding to the current location, and the work end time is later than the sunset time corresponding to the current location, then the control is based on the working time and time information.
  • the instructions are updated, and 6:30 am is determined as the work start time, and 5:30 pm is determined as the work end time. New control instructions are generated, and the lawn mowing robot performs tasks according to the new control instructions.
  • the working time includes: work start time and/or work end time;
  • Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
  • the work start time is before sunrise time
  • the work start time is updated to sunrise time
  • a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
  • the method of generating the control instruction based on the updated work end time may be: replacing the work end time with sunset time, and generating the control instruction based on the sunset time. In other words, if the work end time is after sunset, the robot is controlled to end the work before sunset.
  • the method of generating the control instruction based on the updated work start time may be: replacing the work start time with the sunrise time, and generating the control instruction based on the sunrise time. That is to say, if the work start time is before sunrise time, the robot will be controlled to start working after sunrise.
  • the time information of the robot's current position is determined based on the robot's positioning data, and the working time determined in the robot based on the task data is compared with the time information corresponding to the robot's current position. If the work time set in the robot's working time is If the start time is earlier than the sunrise time corresponding to the current position of the robot, that is, when the robot starts working according to the work start time set in the working time and it is not yet dawn, the work start time in the working time will be updated to the sunrise corresponding to the current position.
  • the robot will start working after sunrise; if the work start time set in the work time is later than or equal to the sunrise time corresponding to the current location, it will continue to start working according to the work start time set in the work time; if the work start time is later than or equal to the sunrise time corresponding to the current location, The work end time set in the time is later than the sunset time corresponding to the current location.
  • the work end time in the working time will be Update to the sunset time corresponding to the current location, and the robot will end its work after sunset; if the work end time set in the working time is earlier than or equal to the sunset time corresponding to the current location, it will continue to follow the work end time set in the working time. Finish work.
  • the technical method of this embodiment obtains positioning data and determines the time information corresponding to the current location based on the positioning data, obtains task data, and determines the working time based on the task data, where the work start time and/or work end time is determined based on the time information.
  • this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction.
  • the robot executing the control instruction includes: determining weather information according to the positioning data; generating a control instruction according to the task data, the time information and the weather information, and controlling the robot to execute the control instruction.
  • Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention. As shown in Figure 4, the method specifically includes the following steps:
  • S420 Determine time information corresponding to the current location based on the positioning data.
  • S440 Determine weather information based on positioning data.
  • the weather information may be the weather status of the current location.
  • the weather status of the current location may be sunny, heavy rain, blizzard, rainy season, etc.
  • the method of determining the weather information based on the positioning data may be: the positioning device in the robot obtains the positioning data, obtains the current position of the robot based on the positioning data, and determines the weather information based on the current position.
  • the method of determining weather information based on positioning data can also be: the positioning device in the robot obtains positioning data, obtains the current position and current time of the robot based on the positioning data, and determines the weather information based on the current position and current time.
  • the weather information of the day in Beijing is determined based on the information returned by the weather station; the current position of the robot is obtained in Beijing based on the positioning data, and the current time is 5 am on XX day, XX month, XX year. point, and determine the weather information of the robot at the current time or the weather information in the future based on the information returned by the weather station.
  • S450 Generate control instructions based on task data, time information and weather information, and control the robot to execute the control instructions.
  • the method of generating control instructions based on task data, time information and weather information may be: determining the work start time and work end time based on the task data, determining the sunrise time and sunset time based on the time information, and determining the day based on the weather information. Adjust the sunrise time and sunset time to obtain the adjusted sunrise time and sunset time, adjust the work start time according to the work start time and the adjusted sunrise time, and generate control instructions based on the adjusted work start time; according to the work start time The end time and the adjusted sunset time adjust the work end time, and generate control instructions based on the adjusted work end time.
  • the method of generating the control instruction based on the task data, time information and weather information can also be: determining the work start time and work end time based on the task data and time information; adjusting the work start time and work end time based on the weather information, and adjusting the work start time and work end time based on the weather information.
  • the adjusted work start time and the adjusted work end time generate control instructions.
  • the method of generating control instructions based on task data, time information and weather information can also be: determining the sunrise time and sunset time based on the time information and weather information, and determining the work start time and work end time based on the task data, sunrise time and sunset time. , generate control instructions based on the work start time and work end time.
  • the lawn mowing robot needs to complete the mowing task in area A.
  • the time information in area A is that the sunrise time is 6 o'clock in the morning and the sunset time is 6 o'clock in the evening.
  • the weather information in area A that day is heavy rain. If the rain stops at 8 o'clock in the morning, the robot's work start time is determined to be 8 o'clock in the morning and its work end time is 6 o'clock in the evening. Control instructions are generated based on the work start time and work end time and the robot is controlled to execute.
  • generating control instructions based on the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
  • the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
  • the first target time is the most reasonable sunrise time obtained by comprehensively considering weather information and sunrise time
  • the second target time is the most reasonable sunset time obtained by comprehensively considering weather information and sunset time. For example, if the sunrise time at the current location of the robot is 6 a.m., but the weather that day is heavy rain, and if the time of the rainstorm is from 6 a.m. to 8 a.m., then the robot will continue to stay charging from 6 a.m. to 8 a.m. The station does not work and waits for the rain to stop.
  • the first target time is determined to be 8 a.m.. If the sunset time at the current location of the robot is 6 p.m., but the rainstorm time of the day is from 5 p.m. to 6 p.m., the robot will not work during the rainstorm.
  • the second target time is determined to be 5 pm.
  • the work start time is before the first target time
  • the work start time is updated to the first target time
  • the work end time is before the first target time
  • the work start time is updated to the first target time
  • a control instruction is generated according to the updated work start time and work end time, and the robot is controlled to execute the control instruction. For example, if the weather conditions at the current location of the robot are heavy rain, the first target time is determined based on the time of the heavy rain and the sunrise time, and the second target time is determined based on the time of the heavy rain and the sunset time.
  • the robot's working time is updated according to the first target time and the second target time. If the work start time is 8 o'clock in the morning and the work end time is 5 o'clock in the evening, a new control instruction is generated, and the robot performs the task according to the new working hours.
  • the robot will not go out to work all day; if the robot suddenly encounters bad weather while working, the robot must immediately end the work and return; if the robot suddenly encounters bad weather when it starts working, Then the robot delays starting working time.
  • the embodiment of the present invention obtains positioning data, determines the time information corresponding to the current position based on the positioning data, obtains task data, determines weather information based on the positioning data, generates control instructions based on the task data, time information and weather information, and controls the robot to perform control
  • the instruction solves the problem of the robot continuing to work when the weather information is relatively poor, reduces the degree of damage to the robot, ensures the safety of the robot, and improves the accuracy of controlling the robot's behavior.
  • FIG. 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention. This embodiment can be applied to the situation of robot behavior control.
  • the device can be implemented in the form of software and/or hardware.
  • the device can be integrated in any device that provides control functions.
  • the control device specifically includes : Positioning data acquisition module 510, time information determination module 520 and control instruction execution module 530.
  • the positioning data acquisition module 510 is used to obtain positioning data
  • the time information determination module 520 is used to determine the time information corresponding to the current location according to the positioning data
  • the control instruction execution module 530 is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
  • the time information determination module is specifically used to:
  • the time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
  • the time information determination module is specifically used to:
  • the positioning data includes: latitude and longitude data
  • Determining the time information corresponding to the current location based on the positioning data includes:
  • Time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • the working time includes: work start time and/or work end time;
  • Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
  • the work start time is before sunrise time
  • the work start time is updated to sunrise time
  • a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions according to the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
  • the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
  • control device provided by the embodiment of the present disclosure can execute the control method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
  • each module included in the above device is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized, and is not used to limit the scope of protection of the embodiments of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as vehicle navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608 .
  • the program in the memory (RAM) 603 executes various appropriate actions and processes.
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
  • An editing/output (I/O) interface 605 is also connected to bus 604.
  • input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration
  • An output device 607 such as a computer
  • a storage device 608 including a magnetic tape, a hard disk, etc.
  • Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
  • the processing device 601 When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
  • Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the control method provided by the above embodiments is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can communicate with digital data in any form or medium.
  • Data communications e.g., communications networks
  • communications networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device obtains positioning data; determines the time information corresponding to the current position according to the positioning data; The time information generates control instructions and controls the robot to execute the control instructions.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider) .
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wires based electrical connection, laptop disk, hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • this embodiment provides a preferred implementation of a control method, which is to generate a control method based on the time information.
  • FIG. 3 is a flow chart of a control method provided by Embodiment 3 of the present invention. As shown in Figure 3, the method specifically includes the following steps:
  • S320 Determine time information corresponding to the current location based on the positioning data.
  • S340 Determine working time based on task data.
  • the working time can include the work start time and the work end time.
  • the working time can be that the robot starts working at 6 o'clock in the morning and ends at 6 o'clock in the evening.
  • the method of determining the working time based on the task data can be: determining the working time of the robot through relevant data in the task data, such as the robot's working area, workload, and working frequency. For example, the robot's current position has a large workload, Then the determined working time should be increased, and the robot's work start time should be set in advance and/or the robot's end time should be delayed; if the workload at the current position of the robot is small, the determined working time should be reduced, and the robot's work start time should be set in advance. The job start time needs to be later and/or the robot's end time needs to be earlier.
  • the way to determine the working time according to the task data can be: determine the working time through the specific task data instructions in the task data.
  • the task data instruction of the lawn mowing robot is to perform a lawn mowing task in area A, start work at 6 o'clock in the morning and 6 o'clock in the evening. If the work ends at 6 o'clock in the morning, the working time is determined to be 6 o'clock in the morning and 6 o'clock in the evening.
  • S350 Generate control instructions based on time information and working time, and control the robot to execute the control instructions.
  • the method of generating control instructions based on time information and working time can be: determining the sunrise time and sunset time based on positioning data, adjusting the work start time based on the comparison result between the sunrise time and the work start time, and adjusting the work start time based on the adjusted Generate control instructions based on the work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
  • the method of generating control instructions based on time information and working time can also be: determining the sunrise time and sunset time based on the current time, seasonal information and/or solar term information, and determining the working start time based on the comparison result between the sunrise time and the working start time. Make adjustments and generate control instructions based on the adjusted work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
  • the working time of the lawn mowing robot determined based on the task data is that the work start time is 6 o'clock in the morning and the work end time is 6 o'clock in the evening.
  • the time information determined based on the positioning data is that the sunrise time of the current location is early.
  • the sunset time is 5:30 pm. If the work start time of the original working time is earlier than the sunrise time corresponding to the current location, and the work end time is later than the sunset time corresponding to the current location, then the control is based on the working time and time information.
  • the instructions are updated, and 6:30 am is determined as the work start time, and 5:30 pm is determined as the work end time. New control instructions are generated, and the lawn mowing robot performs tasks according to the new control instructions.
  • the working time includes: work start time and/or work end time;
  • Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
  • the work start time is before sunrise time
  • the work start time is updated to sunrise time
  • a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
  • the method of generating the control instruction based on the updated work end time may be: replacing the work end time with sunset time, and generating the control instruction based on the sunset time. In other words, if the work end time is after sunset, the robot is controlled to end the work before sunset.
  • the method of generating the control instruction based on the updated work start time may be: replacing the work start time with the sunrise time, and generating the control instruction based on the sunrise time. That is to say, if the work start time is before sunrise time, the robot will be controlled to start working after sunrise.
  • the time information of the robot's current position is determined based on the robot's positioning data, and the working time determined in the robot based on the task data is compared with the time information corresponding to the robot's current position. If the work time set in the robot's working time is If the start time is earlier than the sunrise time corresponding to the current position of the robot, that is, when the robot starts working according to the work start time set in the working time and it is not yet dawn, the work start time in the working time will be updated to the sunrise corresponding to the current position.
  • the robot will start working after sunrise; if the work start time set in the work time is later than or equal to the sunrise time corresponding to the current location, it will continue to start working according to the work start time set in the work time; if the work start time is later than or equal to the sunrise time corresponding to the current location, The work end time set in the time is later than the sunset time corresponding to the current location.
  • the work end time in the working time will be Update to the sunset time corresponding to the current location, and the robot will end its work after sunset; if the work end time set in the working time is earlier than or equal to the sunset time corresponding to the current location, it will continue to follow the work end time set in the working time. Finish work.
  • the technical method of this embodiment obtains positioning data and determines the time information corresponding to the current location based on the positioning data, obtains task data, and determines the working time based on the task data, where the work start time and/or work end time is determined based on the time information.
  • this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction.
  • the robot executing the control instruction includes: determining weather information according to the positioning data; generating a control instruction according to the task data, the time information and the weather information, and controlling the robot to execute the control instruction.
  • Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention. As shown in Figure 4, the method specifically includes the following steps:
  • S420 Determine time information corresponding to the current location based on the positioning data.
  • S440 Determine weather information based on positioning data.
  • the weather information may be the weather status of the current location.
  • the weather status of the current location may be sunny, heavy rain, blizzard, rainy season, etc.
  • the method of determining the weather information based on the positioning data may be: the positioning device in the robot obtains the positioning data, obtains the current position of the robot based on the positioning data, and determines the weather information based on the current position.
  • the method of determining weather information based on positioning data can also be as follows: the positioning device in the robot obtains positioning data, obtains the current position and current time of the robot based on the positioning data, and determines the weather information based on the current position and current time.
  • the weather information of the day in Beijing is determined based on the information returned by the weather station; the current position of the robot is obtained in Beijing based on the positioning data, and the current time is 5 am on XX day, XX month, XX year. point, and determine the weather information of the robot at the current time or the weather information in the future based on the information returned by the weather station.
  • S450 Generate control instructions based on task data, time information and weather information, and control the robot to execute the control instructions.
  • the method of generating control instructions based on task data, time information and weather information may be: determining the work start time and work end time based on the task data, determining the sunrise time and sunset time based on the time information, and determining the day based on the weather information. Adjust the sunrise time and sunset time to obtain the adjusted sunrise time and sunset time, adjust the work start time according to the work start time and the adjusted sunrise time, and generate control instructions based on the adjusted work start time; according to the work start time The end time and the adjusted sunset time adjust the work end time, and generate control instructions based on the adjusted work end time.
  • the method of generating the control instruction based on the task data, time information and weather information can also be: determining the work start time and work end time based on the task data and time information; adjusting the work start time and work end time based on the weather information, and adjusting the work start time and work end time based on the weather information.
  • the adjusted work start time and the adjusted work end time generate control instructions.
  • the method of generating control instructions based on task data, time information and weather information can also be: determining the sunrise time and sunset time based on the time information and weather information, and determining the work start time and work end time based on the task data, sunrise time and sunset time. , generate control instructions based on the work start time and work end time.
  • the lawn mowing robot needs to complete the lawn mowing task in area A.
  • the time information in area A is that the sunrise time is 6 o'clock in the morning and the sunset time is 6 o'clock in the evening.
  • the weather information in area A that day is heavy rain. If the rain stops at 8 o'clock in the morning, the robot's work start time is determined to be 8 o'clock in the morning and its work end time is 6 o'clock in the evening. Control instructions are generated based on the work start time and work end time and the robot is controlled to execute.
  • generating control instructions based on the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
  • the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
  • the first target time is the most reasonable sunrise time obtained by comprehensively considering weather information and sunrise time
  • the second target time is the most reasonable sunset time obtained by comprehensively considering weather information and sunset time. For example, if the sunrise time at the current location of the robot is 6 a.m., but the weather that day is heavy rain, and if the time of the rainstorm is from 6 a.m. to 8 a.m., then the robot will continue to stay charging from 6 a.m. to 8 a.m. The station does not work and waits for the rain to stop.
  • the first target time is determined to be 8 a.m.. If the sunset time at the current location of the robot is 6 p.m., but the rainstorm time of the day is from 5 p.m. to 6 p.m., the robot will not work during the rainstorm.
  • the second target time is determined to be 5 pm.
  • the work start time is before the first target time
  • the work start time is updated to the first target time
  • the work end time is before the first target time
  • the work start time is updated to the first target time
  • a control instruction is generated according to the updated work start time and work end time, and the robot is controlled to execute the control instruction. For example, if the weather conditions at the current location of the robot are heavy rain, the first target time is determined based on the time of the heavy rain and the sunrise time, and the second target time is determined based on the time of the heavy rain and the sunset time.
  • the robot's working time is updated according to the first target time and the second target time. If the work start time is 8 o'clock in the morning and the work end time is 5 o'clock in the evening, a new control instruction is generated, and the robot performs the task according to the new working hours.
  • the robot will not go out to work all day; if the robot suddenly encounters bad weather while working, the robot must immediately end the work and return; if the robot suddenly encounters bad weather when it starts working, Then the robot delays starting working time.
  • the embodiment of the present invention obtains positioning data, determines the time information corresponding to the current position based on the positioning data, obtains task data, determines weather information based on the positioning data, generates control instructions based on the task data, time information and weather information, and controls the robot to perform control
  • the instruction solves the problem of the robot continuing to work when the weather information is relatively poor, reduces the degree of damage to the robot, ensures the safety of the robot, and improves the accuracy of controlling the robot's behavior.
  • FIG. 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention. This embodiment can be applied to the situation of robot behavior control.
  • the device can be implemented in the form of software and/or hardware.
  • the device can be integrated in any device that provides control functions.
  • the control device specifically includes : Positioning data acquisition module 510, time information determination module 520 and control instruction execution module 530.
  • the positioning data acquisition module 510 is used to obtain positioning data
  • the time information determination module 520 is used to determine the time information corresponding to the current location according to the positioning data
  • the control instruction execution module 530 is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
  • the time information determination module is specifically used to:
  • the time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
  • the time information determination module is specifically used to:
  • the positioning data includes: latitude and longitude data
  • Determining the time information corresponding to the current location based on the positioning data includes:
  • Time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • the working time includes: work start time and/or work end time;
  • Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
  • the work start time is before sunrise time
  • the work start time is updated to sunrise time
  • a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
  • control instruction execution module is specifically used to:
  • Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
  • control instruction execution module is specifically used to:
  • Generating control instructions according to the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
  • the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
  • control device provided by the embodiment of the present disclosure can execute the control method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
  • each module included in the above device is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized, and is not used to limit the scope of protection of the embodiments of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as vehicle navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608 .
  • the program in the memory (RAM) 603 executes various appropriate actions and processes.
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
  • An editing/output (I/O) interface 605 is also connected to bus 604.
  • input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration
  • An output device 607 such as a computer
  • a storage device 608 including a magnetic tape, a hard disk, etc.
  • Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
  • the processing device 601 When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
  • Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the control method provided by the above embodiments is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can communicate with digital data in any form or medium.
  • Data communications e.g., communications networks
  • communications networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device obtains positioning data; determines the time information corresponding to the current position according to the positioning data; The time information generates control instructions and controls the robot to execute the control instructions.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider) .
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wires based electrical connection, laptop disk, hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)

Abstract

A control method and apparatus, and a device and a storage medium. The method comprises: acquiring positioning data; determining time information corresponding to the current location according to the positioning data; and generating a control instruction according to the time information, and controlling a robot to execute the control instruction.

Description

一种控制方法、装置、设备及存储介质A control method, device, equipment and storage medium 技术领域Technical field
本发明涉及智能控制领域,尤其涉及一种控制方法、装置、设备及存储介质。The present invention relates to the field of intelligent control, and in particular, to a control method, device, equipment and storage medium.
背景技术Background technique
随着科学技术的不断发展,机器人已经开始逐步走进人们的生活,机器人可在脱离用户操控,在一定范围内自行开展工作。With the continuous development of science and technology, robots have gradually begun to enter people's lives. Robots can work independently within a certain range without being controlled by users.
现有技术中的机器人通常是依靠视觉识别和计时的方式设定工作机制,但是由于季节不同和各地时差的不同,机器人可能出现天黑后还处于工作区域中,最后因为天黑无法识别到场地周围的情况,被困于工作区域中,进而导致机器人损坏。Robots in the existing technology usually rely on visual recognition and timing to set their working mechanisms. However, due to different seasons and time differences in different places, the robot may still be in the work area after dark, and finally cannot identify the site because of darkness. Surrounding conditions, trapped in the work area, resulting in damage to the robot.
技术问题technical problem
本发明实施例提供一种控制方法、装置、设备及存储介质,解决了由于季节不同和各地时差的不同,机器人可能出现天黑后还在工作区域中,最后因为天黑无法识别到场地周围的情况,被困于工作区域中,进而导致机器人损坏的问题,能够通过定位数据获取时间信息,根据时间信息对机器人进行指令控制,进而提升控制机器人行为的准确度。Embodiments of the present invention provide a control method, device, equipment and storage medium, which solves the problem that due to different seasons and time differences in different places, the robot may still be in the working area after dark, and finally cannot recognize the surrounding areas due to darkness. If the robot is trapped in the work area, causing damage to the robot, time information can be obtained through positioning data, and the robot can be commanded and controlled based on the time information, thereby improving the accuracy of controlling the robot's behavior.
技术解决方案Technical solutions
根据本发明的一方面,提供了一种控制方法,该方法包括:According to one aspect of the present invention, a control method is provided, which method includes:
获取定位数据;Get positioning data;
根据所述定位数据确定当前位置对应的时间信息;Determine time information corresponding to the current location according to the positioning data;
根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the time information, and control the robot to execute the control instructions.
根据本发明的另一方面,提供了一种控制装置,该装置包括:According to another aspect of the present invention, a control device is provided, which device includes:
定位数据获取模块,用于获取定位数据;Positioning data acquisition module, used to obtain positioning data;
时间信息确定模块,用于根据所述定位数据确定当前位置对应的时间信息;A time information determination module, configured to determine the time information corresponding to the current location according to the positioning data;
控制指令执行模块,用于根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。A control instruction execution module is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
根据本发明的另一方面,提供了一种电子设备,该电子设备包括:According to another aspect of the present invention, an electronic device is provided, which includes:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的控制方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present invention. Control Method.
根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的控制方法。According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions. The computer instructions are used to enable a processor to implement any embodiment of the present invention when executed. control method.
有益效果beneficial effects
本发明实施例通过获取定位数据,并根据定位数据确定当前位置所对应的时间信息,依据时间信息生成控制指令,并控制机器人执行此控制指令,解决了由于季节不同和各地时差的不同,机器人可能出现天黑后还在工作区域中,最后因为天黑无法识别到场地周围的情况,被困于工作区域中,进而导致机器人损坏的问题,提高生成的控制指令的准确性,进而提高控制机器人行为的准确度。Embodiments of the present invention obtain positioning data, determine the time information corresponding to the current position based on the positioning data, generate control instructions based on the time information, and control the robot to execute the control instructions, thereby solving the problem that the robot may There is a problem of still being in the work area after dark. Finally, because it is dark and unable to recognize the situation around the site, it is trapped in the work area, which in turn causes the robot to be damaged. Improve the accuracy of the generated control instructions, thereby improving the control of the robot behavior. accuracy.
应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become easily understood from the following description.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without exerting creative efforts.
图1为本发明实施例一提供的一种控制方法的流程图;Figure 1 is a flow chart of a control method provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种控制方法的流程图;Figure 2 is a flow chart of a control method provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种控制方法的流程图;Figure 3 is a flow chart of a control method provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种控制方法的流程图;Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种控制装置的结构示意图;Figure 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention;
图6为本发明实施例六提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention.
本发明的最佳实施方式Best Mode of Carrying Out the Invention
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
实施例Example
图1为本发明实施例一提供的一种控制方法的流程图,本实施例可适用于各种智能化设备自动化工作的情形,如自动扫地机器人执行扫地的任务、自动割草机器人执行割草的任务,该方法可以由控制装置来执行,该装置可以通过软件和/或硬件的形式实现,可选的,通过电子设备来实现,该电子设备可以是移动终端、PC端或服务器等。该方法具体包括以下步骤:Figure 1 is a flow chart of a control method provided in Embodiment 1 of the present invention. This embodiment can be applied to various scenarios of automated work of intelligent equipment, such as an automatic sweeping robot performing sweeping tasks, and an automatic lawn mowing robot performing lawn mowing tasks. task, the method can be performed by a control device, which can be implemented in the form of software and/or hardware, optionally, through an electronic device, which can be a mobile terminal, a PC, a server, etc. The method specifically includes the following steps:
S110,获取定位数据。S110, obtain positioning data.
其中,定位数据可以为机器人所在地的经纬度数据,经线指示地球南北方向,纬线指示地球东西方向,一个经度和一个纬度可以一起确定地球上的一个地点的准确位置,如朝鲜半岛处于东经126°、北纬38°。Among them, the positioning data can be the longitude and latitude data of the location of the robot. The longitude lines indicate the north-south direction of the earth, and the latitude lines indicate the east-west direction of the earth. A longitude and a latitude can together determine the accurate position of a place on the earth. For example, the Korean Peninsula is located at 126° east longitude and north latitude. 38°.
具体的,获取定位数据的方式可以为通过GPS定位设备获取机器人所在地的经纬度,也可以为通过其他定位设备获取机器人所在地的定位数据,本发明实施例对此不进行限制。Specifically, the method of obtaining positioning data may be to obtain the longitude and latitude of the robot's location through a GPS positioning device, or it may be to obtain the positioning data of the robot's location through other positioning devices. This is not limited in the embodiment of the present invention.
S120,根据定位数据确定当前位置对应的时间信息。S120: Determine the time information corresponding to the current location based on the positioning data.
其中,当前位置是指机器人所在的位置。当前位置对应的时间信息包括:当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种。Among them, the current location refers to the location of the robot. The time information corresponding to the current location includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
具体的,根据定位数据确定当前位置对应的时间信息的方式可以为:通过定位设备获取经纬度数据,根据经纬度数据确定时区信息,根据时区信息和经纬度数据确定当前位置对应的时间信息。Specifically, the method of determining the time information corresponding to the current location based on the positioning data may be: obtaining the latitude and longitude data through the positioning device, determining the time zone information based on the latitude and longitude data, and determining the time information corresponding to the current location based on the time zone information and the latitude and longitude data.
示例性的,可通过定位设备获取经纬度数据,根据经纬度数据确定时区信息,根据时区信息和经纬度数据计算机器人的当前位置对应的当前时间,根据当前时间确定机器人的当前位置对应的季节信息和节气信息,根据时区信息和经纬度数据计算机器人当前位置对应的日出时间和日落时间,根据当前时间和当前位置确定机器人当前位置对应的天气信息。For example, the latitude and longitude data can be obtained through the positioning device, the time zone information can be determined based on the latitude and longitude data, the current time corresponding to the current location of the robot can be calculated based on the time zone information and the latitude and longitude data, and the seasonal information and solar term information corresponding to the current location of the robot can be determined based on the current time. , calculate the sunrise time and sunset time corresponding to the current location of the robot based on the time zone information and latitude and longitude data, and determine the weather information corresponding to the current location of the robot based on the current time and current location.
在一些实施例中,所述时间信息包括:当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种。In some embodiments, the time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
其中,当前时间可为机器人当前位置对应的时间,例如可以是,若机器人在北京,则当前时间为XX年XX月XX日北京时间9:00。The current time can be the time corresponding to the current location of the robot. For example, if the robot is in Beijing, the current time is 9:00 Beijing time on XX month XX, XX year.
其中,日出时间与日落时间的确定方式可以为:根据当前位置的经纬度数据确定时区信息,根据时区信息和当前位置的经纬度数据确定日出时间和日落时间。日出时间与日落时间的确定方式还可以为:根据当前位置的经纬度数据和时区信息确定当前时间,根据当前时间确定当前日期,根据当前日期、时区信息以及经纬度数据确定日出时间和日落时间。The sunrise time and sunset time may be determined in the following manner: determine the time zone information based on the longitude and latitude data of the current location, and determine the sunrise time and sunset time based on the time zone information and the longitude and latitude data of the current location. The sunrise time and sunset time can also be determined by: determining the current time based on the longitude and latitude data and time zone information of the current location, determining the current date based on the current time, and determining the sunrise time and sunset time based on the current date, time zone information, and longitude and latitude data.
其中,季节信息及节气信息的确定方式可以为:根据当前位置的经纬度数据确定当前位置对应的当前时间,根据当前时间确定季节信息及节气信息。The seasonal information and solar term information may be determined in the following manner: determine the current time corresponding to the current location based on the longitude and latitude data of the current location, and determine the seasonal information and solar term information based on the current time.
需要说明的是,通过获取的定位数据,可以确定当前位置相关的时间信息,所获取的时间信息可以为生成控制机器人行为指令奠定基础,明确当前时间、日出时间、日落时间、季节信息以及节气信息,可以确保机器人在合适的时间进行工作,进而提高控制机器人行为的准确性。It should be noted that through the obtained positioning data, the time information related to the current position can be determined. The obtained time information can lay the foundation for generating control robot behavior instructions and clarify the current time, sunrise time, sunset time, seasonal information and solar terms. Information can ensure that the robot works at the right time, thereby improving the accuracy of controlling the robot's behavior.
在一些实施例中,所述定位数据包括:经纬度数据;In some embodiments, the positioning data includes: latitude and longitude data;
根据所述定位数据确定当前位置对应的时间信息,包括:Determining the time information corresponding to the current location based on the positioning data includes:
根据所述经纬度数据确定时区信息;Determine time zone information based on the latitude and longitude data;
根据所述时区信息和所述经纬度数据确定当前位置对应的当前时间信息。The current time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
其中,时区信息可以为世界各国家与地区不同的经度而划分的时间信息,需要注意的是,每隔15°划分一个时区,全球共分为24个时区,东、西各12个时区,相邻区域的时间相差1小时。Among them, time zone information can be time information divided by different longitudes in various countries and regions around the world. It should be noted that a time zone is divided every 15°. The world is divided into 24 time zones, 12 time zones in the east and 12 in the west. The time difference between adjacent areas is 1 hour.
具体的,根据所述经纬度数据确定时区信息的方式可以为:通过定位设备获取机器人的经纬度数据,根据机器人的经纬度数据计算机器人当前位置对应的时区信息。如时区的计算方法可以为:通过定位设备获取机器人的经纬度数据,使用所获取的经度除以15度,当余数小于7.5度时,商数即为机器人当前位置对应的时区信息,当余数大于7.5度时,商数加1即为机器人当前位置对应的时区信息,东经度是东时区,西经度是西时区。若机器人获取的经纬度数据为东经145度,用145除以15,商为9,余数为10,大于7.5,商数加1的信息为机器人当前位置对应的时区信息,即机器人当前位置对应的时区信息为东10区。Specifically, the method of determining the time zone information based on the longitude and latitude data may be: obtaining the longitude and latitude data of the robot through a positioning device, and calculating the time zone information corresponding to the current location of the robot based on the longitude and latitude data of the robot. For example, the time zone calculation method can be as follows: obtain the longitude and latitude data of the robot through the positioning device, and divide the obtained longitude by 15 degrees. When the remainder is less than 7.5 degrees, the quotient is the time zone information corresponding to the current position of the robot. When the remainder is greater than 7.5 degrees, the quotient plus 1 is the time zone information corresponding to the current position of the robot. East longitude is the east time zone, and west longitude is the west time zone. If the longitude and latitude data obtained by the robot is 145 degrees east longitude, divide 145 by 15, the quotient is 9, and the remainder is 10, which is greater than 7.5. The information added to the quotient by 1 is the time zone information corresponding to the current position of the robot, that is, the time zone corresponding to the current position of the robot. Information for East 10th District.
具体的,根据所述时区信息和所述经纬度数据确定当前位置对应的时间信息的方式可以为:通过定位设备获取经纬度数据,根据经纬度数据确定时区信息,根据时区信息和经纬度数据及常用的时间标准确定当前位置对应的当前时间,常用的时间标准可以为:协调世界时、GPS卫星导航系统时间标准及国际时区东八区时间中的至少一种。根据所述时区信息和所述经纬度数据确定当前位置对应的日出时间和日落时间的方式可以为:通过定位设备获取机器人当前位置的经纬度数据,根据经纬度数据确定时区信息,可用角度制记录当前位置经纬度,以东经和北纬为正,以西经和南纬为负,按照表达式进行计算,日出时间计算方式可以为:24*(180+时区信息*15-经度数据-ACOS(-TAN(-23.4*COS(360*(日期序列数+9)/365))*TAN(纬度数据))/360,日期序列数为机器人当前位置所对应的当前时间在这一年中的序列,如1月10日就是10,2月1日就是32。用弧度制计算,表达方式可以为:24*(180+时区信息*15-经度数据-ACOS(-TAN(-23.4*COS(2*π*(日期序列数+9)/365)*π/180)*TAN(纬度数据*π/180))*180/π)/360,日落的计算方式可以为:24*(1+(时区信息*15-经度数据)/180)-日出时间。日出时间和日落时间的计算方式还可以为:通过定位设备获取机器人当前位置的经纬度数据,根据机器人存储信息获取上次计算的日出日落时间,需要注意的是,第一次计算时日出日落时间为12小时,根据经纬度数据确定时区信息,计算从格林威治时间公元2000年1月1日到当前时间的总天数,根据总天数计算从格林威治时间公元2000年1月1日到当前时间的世纪数,根据世纪数计算太阳的平黄径、平近点角和地球的倾角,根据太阳的平黄径和平近点角计算太阳的黄道经度,根据地球的倾角和黄道经度计算太阳的偏差,根据上一次计算的日出日落时间、平近点角和黄道经度计算格林威治时间的太阳时间角,根据经纬度数据和太阳偏差计算修正值,根据上一次计算的日出日落时间、修正值和格林威治时间的太阳时间角计算新的格林威治日出日落时间,根据新的格林威治日出日落时间和机器人当前位置的时区信息计算机器人当前位置的日出日落时间。Specifically, the method of determining the time information corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data through a positioning device, determining the time zone information based on the longitude and latitude data, and determining the time zone information based on the longitude and latitude data and commonly used time standards. To determine the current time corresponding to the current location, commonly used time standards may be: at least one of coordinated universal time, GPS satellite navigation system time standard, and East Eighth International Time Zone time. The method of determining the sunrise time and sunset time corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data of the current location of the robot through a positioning device, determining the time zone information based on the longitude and latitude data, and recording the current location using an angle system. Longitude and latitude, with east longitude and north latitude as positive, west longitude and south latitude as negative, calculated according to the expression, the sunrise time calculation method can be: 24*(180+time zone information*15-longitude data-ACOS(-TAN(- 23.4*COS(360*(date sequence number+9)/365))*TAN(latitude data))/360, the date sequence number is the sequence of the current time corresponding to the current position of the robot in this year, such as January The 10th is 10, and February 1st is 32. Calculated using the radian system, the expression can be: 24*(180+time zone information*15-longitude data-ACOS(-TAN(-23.4*COS(2*π*( Date serial number +9)/365)*π/180)*TAN(latitude data*π/180))*180/π)/360, the calculation method of sunset can be: 24*(1+(time zone information*15 -Longitude data)/180)-Sunrise time. The calculation method of sunrise time and sunset time can also be: obtain the longitude and latitude data of the robot's current position through the positioning device, and obtain the last calculated sunrise and sunset time based on the robot's stored information. It should be noted that in the first calculation, the sunrise and sunset times are 12 hours. The time zone information is determined based on the longitude and latitude data. The total number of days from January 1, 2000 AD to the current time is calculated. Based on the total number of days, the time from The number of centuries from January 1, 2000 AD to the current time in Greenwich Mean Time. Calculate the mean ecliptic diameter, mean periapsis angle and inclination of the Earth based on the centuries. Calculate the sun's mean ecliptic diameter, mean periapsis angle and inclination angle based on the sun's mean ecliptic path and mean periapsis angle. Ecliptic longitude, calculates the sun's deviation based on the Earth's inclination and ecliptic longitude, calculates the solar time angle at Greenwich Mean Time based on the last calculated sunrise and sunset times, mean periapsis angle and ecliptic longitude, calculates corrections based on longitude and latitude data and solar deviation value, calculate the new Greenwich sunrise and sunset time based on the last calculated sunrise and sunset time, correction value and solar time angle of Greenwich time, based on the new Greenwich sunrise and sunset time and the time zone of the robot's current location The information calculates the sunrise and sunset times for the robot's current location.
根据所述时区信息和所述经纬度数据确定当前位置对应的季节信息以及节气信息的方式可以为:通过定位设备获取机器人当前位置的经纬度数据,根据经纬度数据确定时区信息,根据经纬度数据和时区信息确定当前时间,根据当前时间确定机器人当前位置对应的季节信息以及节气信息。The method of determining the seasonal information and solar term information corresponding to the current location based on the time zone information and the longitude and latitude data may be: obtaining the longitude and latitude data of the current location of the robot through a positioning device, determining the time zone information based on the longitude and latitude data, and determining based on the longitude and latitude data and the time zone information. The current time is used to determine the seasonal information and solar term information corresponding to the current position of the robot based on the current time.
S130,根据时间信息生成控制指令,并控制机器人执行控制指令。S130: Generate control instructions based on time information, and control the robot to execute the control instructions.
其中,控制指令可以为控制机器人行为的指令。例如可以是:开始工作指令,结束工作指令以及充电指令中的至少一种。The control instructions may be instructions for controlling the behavior of the robot. For example, it may be at least one of a start work instruction, an end work instruction, and a charging instruction.
具体的,根据时间信息生成控制指令的方式可以为:根据时间信息确定工作开始时间和/或工作结束时间,根据工作开始时间和/或工作结束时间确定开始工作指令,结束工作指令以及充电指令中的至少一种。根据时间信息生成控制指令的方式还可以为:获取任务数据,根据任务数据和时间信息生成控制指令。例如可以是,根据任务数据和时间信息确定工作开始时间、工作结束时间以及工作频率中的至少一种,根据工作开始时间、工作结束时间以及工作频率中的至少一种生成控制指令。Specifically, the method of generating the control instruction based on the time information may be: determining the work start time and/or the work end time based on the time information, determining the start work instruction, the end work instruction, and the charging instruction based on the work start time and/or the work end time. of at least one. The method of generating control instructions based on time information can also be: obtaining task data, and generating control instructions based on task data and time information. For example, at least one of the work start time, the work end time, and the work frequency may be determined based on the task data and time information, and the control instruction may be generated based on at least one of the work start time, the work end time, and the work frequency.
其中,控制机器人执行控制指令的方式可以为:通过读取利用时间信息生成的控制指令,分析和执行此控制指令的一系列操作。示例性的,若时间信息计算出日落时间为晚6点,即生成控制指令为机器人在晚6点要结束工作并返回充电站,机器人在读取此控制指令后,当天必须要在晚6点结束工作并自主返回充电站进行充电,上述晚6点停止工作并返回充电站的过程为机器人执行控制指令的过程。Among them, the way to control the robot to execute the control instruction may be: by reading the control instruction generated using time information, analyzing and executing a series of operations of this control instruction. For example, if the time information calculates that the sunset time is 6 p.m., that is, a control instruction is generated for the robot to end its work at 6 p.m. and return to the charging station. After reading this control instruction, the robot must complete the work at 6 p.m. that day. End the work and return to the charging station for charging autonomously. The above-mentioned process of stopping work at 6pm and returning to the charging station is the process of the robot executing control instructions.
在一些实施例中,根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:In some embodiments, generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
获取任务数据;Get task data;
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the task data and the time information, and control the robot to execute the control instructions.
其中,任务数据可以为分配给机器人的任务相关数据,任务数据包括:机器人的工作区域、机器人的工作量以及机器人的工作频率等信息。例如可以是:割草机器人的任务数据可以包括割草机器人要完成的任务量、割草区域及割草的工作效率等。Among them, the task data can be task-related data assigned to the robot. The task data includes: the robot's working area, the robot's workload, the robot's working frequency and other information. For example, the task data of the lawn mowing robot may include the amount of tasks to be completed by the lawn mowing robot, the mowing area, and the efficiency of mowing the lawn, etc.
具体的,根据所述任务数据和所述时间信息生成控制指令的方式可以为:通过定位数据计算出时间信息,即当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种,根据任务数据和时间信息确定工作开始时间、工作结束时间以及工作频率中的至少一种,根据工作开始时间、工作结束时间以及工作频率中的至少一种生成控制指令。Specifically, the method of generating control instructions based on the task data and the time information may be: calculating time information through positioning data, that is, at least one of current time, sunrise time, sunset time, seasonal information, and solar term information. , determine at least one of the work start time, the work end time and the work frequency according to the task data and time information, and generate the control instruction according to at least one of the work start time, the work end time and the work frequency.
在一个具体的例子中,割草机器人的任务为当天要完成A区域所有割草任务,当天通过定位数据所计算出的日落时间为晚6点,则生成控制指令为割草机器人要在晚6点前结束工作返回充电站,若割草机器人在晚6点前已经完成A区域规定割草任务,则在完成任务后立刻结束工作返回充电站,若割草机器人在晚6点前并未完成A区域规定割草任务,则依旧要按照控制指令中的晚6点前的设定时间结束工作返回充电站。In a specific example, the lawn mowing robot's task is to complete all mowing tasks in area A that day. The sunset time calculated from the positioning data that day is 6 p.m., and the control instruction is generated that the lawn mowing robot should complete all mowing tasks in area A at 6 p.m. End work and return to the charging station before 6:00 p.m. If the lawn mowing robot has completed the lawn mowing task specified in area A before 6 p.m., it will end the work immediately after completing the task and return to the charging station. If the lawn mowing robot has not completed the task before 6 p.m. Area A stipulates lawn mowing tasks, and the work must still be completed and returned to the charging station according to the set time before 6 pm in the control instruction.
本发明实施例通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,根据时间信息生成控制指令,并控制机器人执行控制指令,解决了由于季节不同和各地时差的不同,机器人可能出现天黑后还在工作区域中工作,最后因为天黑无法识别到场地周围的情况,被困于工作区域中,进而导致机器人损坏的问题,能够保证机器人在最优的工作环境下工作,并提升了控制机器人行为的准确度。Embodiments of the present invention obtain positioning data, determine the time information corresponding to the current position based on the positioning data, generate control instructions based on the time information, and control the robot to execute the control instructions, thereby solving the problem of possible weather conditions on the robot due to different seasons and different time differences in different places. After dark, he was still working in the work area. In the end, because it was dark, he could not recognize the situation around the site and was trapped in the work area, which caused the robot to be damaged. This can ensure that the robot works in the optimal working environment and improve Control the accuracy of robot behavior.
本实施例在上述实施例一的基础上,提供了一种控制方法的优选实施方式,是根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:获取任务数据;根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令的细分,具体包括:根据所述任务数据和所述时间信息生成控制指令,包括:根据所述任务数据和所述时间信息确定工作信息,其中,所述工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种;根据所述工作信息生成控制指令。图2为本发明实施例二提供的一种控制方法的流程图,如图2所示,该方法具体包括以下步骤:Based on the above-mentioned Embodiment 1, this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute a subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, including: according to the The task data and the time information determine work information, wherein the work information includes at least one of work start time, work end time, and work frequency; and a control instruction is generated according to the work information. Figure 2 is a flow chart of a control method provided by Embodiment 2 of the present invention. As shown in Figure 2, the method specifically includes the following steps:
S210,获取定位数据。S210, obtain positioning data.
S220,根据定位数据确定当前位置对应的时间信息。S220: Determine time information corresponding to the current location based on the positioning data.
S230,获取任务数据。S230, obtain task data.
需要说明的是,本发明实施例不限定S210获取定位数据和S230获取任务数据的顺序,可以同时获取定位数据和任务数据,也可以在获取到任务数据后获取定位数据。It should be noted that the embodiment of the present invention does not limit the order in which positioning data is obtained in S210 and task data is obtained in S230. Positioning data and task data may be obtained at the same time, or positioning data may be obtained after task data is obtained.
S240,根据任务数据和时间信息确定工作信息,其中,工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种。S240: Determine work information based on task data and time information, where the work information includes at least one of work start time, work end time, and work frequency.
其中,工作信息为机器人的工作参数,可以包括工作开始时间、工作结束时间以及工作频率中的至少一种。示例性的,割草机器人在A区域执行割草任务,根据割草机器人要完成的任务数据及割草机器人当前位置的时间信息,确定割草机器人工作开始时间、工作结束时间以及工作频率,其中,割草机器人的工作效率可根据工作开始时间、工作结束时间以及任务数据确定,需要说明的是,若割草机器人工作的总时长短,则需要提高割草机器人的工作效率,若割草机器人工作的总时长稍长,则需要适当降低割草机器人的工作效率。The work information is the work parameters of the robot, which may include at least one of work start time, work end time and work frequency. For example, the lawn mowing robot performs a lawn mowing task in area A. According to the task data to be completed by the lawn mower robot and the time information of the current position of the lawn mower robot, the lawn mower robot's work start time, work end time and working frequency are determined, where , the working efficiency of the lawn mowing robot can be determined based on the work start time, work end time and task data. It should be noted that if the total working time of the lawn mowing robot is short, the working efficiency of the lawn mowing robot needs to be improved. If the lawn mowing robot If the total working time is slightly longer, the working efficiency of the lawn mower robot needs to be appropriately reduced.
S250,根据工作信息生成控制指令。S250: Generate control instructions according to the work information.
具体的,根据工作信息生成控制指令的方式可以为:通过定位设备获取定位数据,根据定位数据确定机器人当前位置的时间信息,获取机器人任务数据,根据时间信息和任务数据确定机器人的工作信息,根据工作信息生成控制指令。示例性的,根据割草机器人的定位设备确定了定位数据,并根据定位数据确定了割草机器人的日出时间、日落时间及季节信息,割草机器人正处于冬季,日出时间为早6点,日落时间为晚6点,割草机器人的任务要完成A区域所有割草任务,则依据上述时间信息及任务数据,确定的工作信息为割草机器人的工作时间要晚于早6点,早于晚6点,且要在此时间段完成A区所有割草任务,则根据割草机器人当前位置对应的工作信息生成的控制指令中要包括割草机器人早6点半为工作开始时间,晚5点半为工作结束时间,令割草机器人在早6点半至晚5点半进行工作。因为在冬季且工作时间较短,同时要提高割草机器人的工作效率确保在工作时间内完成任务。Specifically, the method of generating control instructions based on work information can be: obtaining positioning data through a positioning device, determining the time information of the current position of the robot based on the positioning data, obtaining robot task data, determining the work information of the robot based on the time information and task data, and determining the robot's work information based on the time information and task data. Work information generates control instructions. For example, the positioning data is determined based on the positioning device of the lawn mowing robot, and the sunrise time, sunset time and seasonal information of the lawn mowing robot are determined based on the positioning data. The lawn mowing robot is in winter, and the sunrise time is 6 o'clock in the morning. , the sunset time is 6 p.m., and the lawn mowing robot's task is to complete all mowing tasks in area A. Based on the above time information and task data, the determined work information is that the lawn mowing robot's working time should be later than 6 o'clock in the morning, and early at 6 p.m., and all mowing tasks in area A are to be completed within this time period, the control instructions generated based on the work information corresponding to the current position of the lawn mowing robot must include the lawn mowing robot's work start time of 6:30 a.m. and late The work ends at 5:30, so the lawn mower robot will work from 6:30 am to 5:30 pm. Because in winter and working hours are shorter, it is necessary to improve the working efficiency of the lawn mowing robot to ensure that the task is completed within working hours.
本实施例的技术方法,通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,获取任务数据,根据任务数据和时间信息确定工作信息,其中,工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种,根据工作信息生成控制指令,解决了机器人在天黑时依旧工作导致机器人损坏的问题,提高了机器人工作安排的合理性。The technical method of this embodiment obtains positioning data and determines time information corresponding to the current location based on the positioning data, obtains task data, and determines work information based on the task data and time information, where the work information includes work start time and work end time. And at least one of the working frequencies, the control instructions are generated based on the work information, which solves the problem of damage to the robot caused by the robot still working when it is dark, and improves the rationality of the robot's work arrangement.
本实施例在上述实施例一的基础上,提供了一种控制方法的优选实施方式,是根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:获取任务数据;根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令的另一细分,具体包括:根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:根据所述任务数据确定工作时间;根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令。图3为本发明实施例三提供的一种控制方法的流程图,如图3所示,该方法具体包括以下步骤:Based on the above-mentioned Embodiment 1, this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction. The robot executing the control instruction includes: determining working time according to the task data; generating a control instruction according to the time information and the working time, and controlling the robot to execute the control instruction. Figure 3 is a flow chart of a control method provided by Embodiment 3 of the present invention. As shown in Figure 3, the method specifically includes the following steps:
S310,获取定位数据。S310, obtain positioning data.
S320,根据定位数据确定当前位置对应的时间信息。S320: Determine time information corresponding to the current location based on the positioning data.
S330,获取任务数据。S330, obtain task data.
S340,根据任务数据确定工作时间。S340: Determine working time based on task data.
其中,工作时间可以包括工作开始时间和工作结束时间,如工作时间可以为机器人早6点开始工作,晚6点结束工作。Among them, the working time can include the work start time and the work end time. For example, the working time can be that the robot starts working at 6 o'clock in the morning and ends at 6 o'clock in the evening.
具体的,根据任务数据确定工作时间的方式可以为:通过任务数据中的相关数据如机器人的工作区域、工作量以及工作频率等,确定机器人的工作时间,如机器人当前位置的工作量较大,则确定的工作时间要增加,设定机器人的工作开始时间要提前和/或机器人的结束时间要延后;若机器人当前位置的工作量较小,则确定的工作时间要减少,设定机器人的工作开始时间要延后和/或机器人的结束时间要提前。根据任务数据确定工作时间的方式可以为:通过任务数据中的具体任务数据指令来确定工作时间,如割草机器人的任务数据指令为在A区域进行割草任务,早6点开始工作,晚6点结束工作,则确定工作时间为工作开始时间为早6点,工作结束时间为晚6点。Specifically, the method of determining the working time based on the task data can be: determining the working time of the robot through relevant data in the task data, such as the robot's working area, workload, and working frequency. For example, the robot's current position has a large workload, Then the determined working time should be increased, and the robot's work start time should be set in advance and/or the robot's end time should be delayed; if the workload at the current position of the robot is small, the determined working time should be reduced, and the robot's work start time should be set in advance. The job start time needs to be later and/or the robot's end time needs to be earlier. The way to determine the working time according to the task data can be: determine the working time through the specific task data instructions in the task data. For example, the task data instruction of the lawn mowing robot is to perform a lawn mowing task in area A, start work at 6 o'clock in the morning and 6 o'clock in the evening. If the work ends at 6 o'clock in the morning, the working time is determined to be 6 o'clock in the morning and 6 o'clock in the evening.
S350,根据时间信息和工作时间生成控制指令,并控制机器人执行控制指令。S350: Generate control instructions based on time information and working time, and control the robot to execute the control instructions.
具体的,根据时间信息和工作时间生成控制指令的方式可以为:根据定位数据确定日出时间和日落时间,根据日出时间和工作开始时间的比较结果对工作开始时间进行调整,并根据调整后的工作开始时间生成控制指令;根据日落时间和工作结束时间的比较结果对工作结束时间进行调整,并根据调整后的工作结束时间生成控制指令。根据时间信息和工作时间生成控制指令的方式还可以为:根据当前时间,与季节信息和/或节气信息确定日出时间和日落时间,根据日出时间和工作开始时间的比较结果对工作开始时间进行调整,并根据调整后的工作开始时间生成控制指令;根据日落时间和工作结束时间的比较结果对工作结束时间进行调整,并根据调整后的工作结束时间生成控制指令。Specifically, the method of generating control instructions based on time information and working time can be: determining the sunrise time and sunset time based on positioning data, adjusting the work start time based on the comparison result between the sunrise time and the work start time, and adjusting the work start time based on the adjusted Generate control instructions based on the work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time. The method of generating control instructions based on time information and working time can also be: determining the sunrise time and sunset time based on the current time, seasonal information and/or solar term information, and determining the working start time based on the comparison result between the sunrise time and the working start time. Make adjustments and generate control instructions based on the adjusted work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
在一个具体的例子中,割草机器人根据任务数据确定的工作时间为工作开始时间为早6点,工作结束时间为晚6点,根据定位数据确定的时间信息为当前位置的日出时间为早6点半,日落时间为晚5点半,原工作时间的工作开始时间早于当前位置对应的日出时间,工作结束时间晚于当前位置对应的日落时间,则根据工作时间和时间信息对控制指令进行更新,将早6点半确定为工作开始时间,晚5点半确定为工作结束时间,生成新的控制指令,割草机器人按照新的控制指令执行任务。In a specific example, the working time of the lawn mowing robot determined based on the task data is that the work start time is 6 o'clock in the morning and the work end time is 6 o'clock in the evening. The time information determined based on the positioning data is that the sunrise time of the current location is early. At 6:30, the sunset time is 5:30 pm. If the work start time of the original working time is earlier than the sunrise time corresponding to the current location, and the work end time is later than the sunset time corresponding to the current location, then the control is based on the working time and time information. The instructions are updated, and 6:30 am is determined as the work start time, and 5:30 pm is determined as the work end time. New control instructions are generated, and the lawn mowing robot performs tasks according to the new control instructions.
在一些实施例中,所述工作时间包括:工作开始时间和/或工作结束时间;In some embodiments, the working time includes: work start time and/or work end time;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
若所述工作结束时间处于日落时间之后,则将所述工作结束时间更新为日落时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令;If the work end time is after sunset time, update the work end time to sunset time, generate a control instruction based on the updated work end time, and control the robot to execute the control instruction;
若所述工作开始时间处于日出时间之前,则将所述工作开始时间更新为日出时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令。If the work start time is before sunrise time, the work start time is updated to sunrise time, a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
其中,根据更新后的工作结束时间生成控制指令的方式可以为:将工作结束时间替换为日落时间,根据日落时间生成控制指令。也就是说,若工作结束时间处于日落时间之后,则控制机器人在日落之前结束工作。The method of generating the control instruction based on the updated work end time may be: replacing the work end time with sunset time, and generating the control instruction based on the sunset time. In other words, if the work end time is after sunset, the robot is controlled to end the work before sunset.
其中,根据更新后的工作开始时间生成控制指令的方式可以为:将工作开始时间替换为日出时间,根据日出时间生成控制指令。也就是说,若工作开始时间处于日出时间之前,则控制机器人在日出之后再开始工作。The method of generating the control instruction based on the updated work start time may be: replacing the work start time with the sunrise time, and generating the control instruction based on the sunrise time. That is to say, if the work start time is before sunrise time, the robot will be controlled to start working after sunrise.
在一个具体的例子中,根据机器人的定位数据确定机器人当前位置的时间信息,对机器人中根据任务数据确定的工作时间与机器人当前位置对应的时间信息进行对比,若机器人工作时间中设定的工作开始时间早于机器人当前位置对应的日出时间,即机器人按照工作时间中设定的工作开始时间开始工作时,天未亮,则将工作时间中的工作开始时间更新为当前位置对应的日出时间,待日出天亮机器人开始工作;若工作时间中设定的工作开始时间晚于或等同于当前位置对应的日出时间,则继续按照工作时间中设定的工作开始时间开始工作;若工作时间中设定的工作结束时间晚于当前位置对应的日落时间,即按照工作时间中设定的工作结束时间结束工作时,天已黑,机器人无法进行工作,则将工作时间中的工作结束时间更新为当前位置对应的日落时间,待日落机器人便结束工作;若工作时间中设定的工作结束时间早于或等同于当前位置对应的日落时间,则继续按照工作时间中设定的工作结束时间结束工作。In a specific example, the time information of the robot's current position is determined based on the robot's positioning data, and the working time determined in the robot based on the task data is compared with the time information corresponding to the robot's current position. If the work time set in the robot's working time is If the start time is earlier than the sunrise time corresponding to the current position of the robot, that is, when the robot starts working according to the work start time set in the working time and it is not yet dawn, the work start time in the working time will be updated to the sunrise corresponding to the current position. time, the robot will start working after sunrise; if the work start time set in the work time is later than or equal to the sunrise time corresponding to the current location, it will continue to start working according to the work start time set in the work time; if the work start time is later than or equal to the sunrise time corresponding to the current location, The work end time set in the time is later than the sunset time corresponding to the current location. That is, when the work ends according to the work end time set in the working time, it is already dark and the robot cannot work, then the work end time in the working time will be Update to the sunset time corresponding to the current location, and the robot will end its work after sunset; if the work end time set in the working time is earlier than or equal to the sunset time corresponding to the current location, it will continue to follow the work end time set in the working time. Finish work.
本实施例的技术方法,通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,获取任务数据,根据任务数据确定工作时间,其中,工作开始时间和/或工作结束时间,根据时间信息和工作时间生成控制指令,并控制机器人执行控制指令,解决了机器人在天不亮就开始工作或天黑还在继续工作导致机器人损坏的问题,可以确保机器人在合适的时间进行工作,并提高了控制机器人行为的准确度。The technical method of this embodiment obtains positioning data and determines the time information corresponding to the current location based on the positioning data, obtains task data, and determines the working time based on the task data, where the work start time and/or work end time is determined based on the time information. Generate control instructions according to the working time, and control the robot to execute the control instructions, which solves the problem of the robot starting to work before dawn or continuing to work after dark, causing damage to the robot. It can ensure that the robot works at the appropriate time and improves efficiency. Control the accuracy of robot behavior.
实施例Example
本实施例在上述实施例一的基础上,提供了一种控制方法的优选实施方式,是根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:获取任务数据;根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令的另一细分,具体包括:根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:根据所述定位数据确定天气信息;根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令。图4为本发明实施例四提供的一种控制方法的流程图,如图4所示,该方法具体包括以下步骤:Based on the above-mentioned Embodiment 1, this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction. The robot executing the control instruction includes: determining weather information according to the positioning data; generating a control instruction according to the task data, the time information and the weather information, and controlling the robot to execute the control instruction. Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention. As shown in Figure 4, the method specifically includes the following steps:
S410,获取定位数据。S410, obtain positioning data.
S420,根据定位数据确定当前位置对应的时间信息。S420: Determine time information corresponding to the current location based on the positioning data.
S430,获取任务数据。S430, obtain task data.
S440,根据定位数据确定天气信息。S440: Determine weather information based on positioning data.
其中,天气信息可以为当前位置的天气状态,如当前位置的天气状态可以是晴朗、暴雨、暴雪、梅雨等。The weather information may be the weather status of the current location. For example, the weather status of the current location may be sunny, heavy rain, blizzard, rainy season, etc.
具体的,根据定位数据确定天气信息的方式可以为:机器人中的定位设备获取定位数据,根据定位数据获取机器人当前位置,根据当前位置确定天气信息。根据定位数据确定天气信息的方式还可以为:机器人中的定位设备获取定位数据,根据定位数据获取机器人当前位置和当前时间,根据当前位置和当前时间确定天气信息。示例性的,若根据定位数据获取到机器人当前位置在北京,根据气象台返回信息确定北京的当天的天气信息;根据定位数据获取到机器人当前位置在北京,当前时间为XX年XX月XX日早5点,根据气象台返回信息确定机器人当前时间的天气信息或未来一段时间内的天气信息。Specifically, the method of determining the weather information based on the positioning data may be: the positioning device in the robot obtains the positioning data, obtains the current position of the robot based on the positioning data, and determines the weather information based on the current position. The method of determining weather information based on positioning data can also be: the positioning device in the robot obtains positioning data, obtains the current position and current time of the robot based on the positioning data, and determines the weather information based on the current position and current time. For example, if the current position of the robot is obtained in Beijing based on the positioning data, the weather information of the day in Beijing is determined based on the information returned by the weather station; the current position of the robot is obtained in Beijing based on the positioning data, and the current time is 5 am on XX day, XX month, XX year. point, and determine the weather information of the robot at the current time or the weather information in the future based on the information returned by the weather station.
S450,根据任务数据、时间信息以及天气信息生成控制指令,并控制机器人执行控制指令。S450: Generate control instructions based on task data, time information and weather information, and control the robot to execute the control instructions.
具体的,根据任务数据、时间信息以及天气信息生成控制指令的方式可以为:根据任务数据确定工作开始时间和工作结束时间,根据时间信息确定日出时间和日落时间,根据天气信息对所述日出时间和日落时间进行调整,得到调整后的日出时间和日落时间,根据工作开始时间和调整后的日出时间对工作开始时间进行调整,根据调整后的工作开始时间生成控制指令;根据工作结束时间和调整后的日落时间对工作结束时间进行调整,根据调整后的工作结束时间生成控制指令。根据任务数据、时间信息以及天气信息生成控制指令的方式还可以为:根据任务数据和时间信息确定工作开始时间和工作结束时间;根据天气信息对所述工作开始时间和工作结束时间进行调整,根据调整后的工作开始时间和调整后的工作结束时间生成控制指令。根据任务数据、时间信息以及天气信息生成控制指令的方式还可以为:根据时间信息和天气信息确定日出时间和日落时间,根据任务数据、日出时间和日落时间确定工作开始时间和工作结束时间,根据工作开始时间和工作结束时间生成控制指令。Specifically, the method of generating control instructions based on task data, time information and weather information may be: determining the work start time and work end time based on the task data, determining the sunrise time and sunset time based on the time information, and determining the day based on the weather information. Adjust the sunrise time and sunset time to obtain the adjusted sunrise time and sunset time, adjust the work start time according to the work start time and the adjusted sunrise time, and generate control instructions based on the adjusted work start time; according to the work start time The end time and the adjusted sunset time adjust the work end time, and generate control instructions based on the adjusted work end time. The method of generating the control instruction based on the task data, time information and weather information can also be: determining the work start time and work end time based on the task data and time information; adjusting the work start time and work end time based on the weather information, and adjusting the work start time and work end time based on the weather information. The adjusted work start time and the adjusted work end time generate control instructions. The method of generating control instructions based on task data, time information and weather information can also be: determining the sunrise time and sunset time based on the time information and weather information, and determining the work start time and work end time based on the task data, sunrise time and sunset time. , generate control instructions based on the work start time and work end time.
在一个具体的例子中,割草机器人要在A区域完成割草任务,A区域的时间信息为日出时间为早6点,日落时间为晚6点,但A区域当天的天气信息为暴雨,早8点雨停,则确定机器人工作开始时间为早8点,工作结束时间为晚6点,根据工作开始时间和工作结束时间生成控制指令并控制机器人执行。In a specific example, the lawn mowing robot needs to complete the mowing task in area A. The time information in area A is that the sunrise time is 6 o'clock in the morning and the sunset time is 6 o'clock in the evening. However, the weather information in area A that day is heavy rain. If the rain stops at 8 o'clock in the morning, the robot's work start time is determined to be 8 o'clock in the morning and its work end time is 6 o'clock in the evening. Control instructions are generated based on the work start time and work end time and the robot is controlled to execute.
在一些实施例中,根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令,包括:In some embodiments, generating control instructions based on the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
根据所述天气信息和日出时间确定第一目标时间;Determine the first target time based on the weather information and sunrise time;
根据所述天气信息和日落时间确定第二目标时间;Determine a second target time based on the weather information and sunset time;
若所述工作开始时间处于第一目标时间之前,则将所述工作开始时间更新为第一目标时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令;If the work start time is before the first target time, update the work start time to the first target time, generate a control instruction based on the updated work start time, and control the robot to execute the control instruction;
若所述工作结束时间处于第二目标时间之后,则将所述工作结束时间更新为第二目标时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。If the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
其中,第一目标时间为综合考虑天气信息和日出时间所获得的最合理的日出时间,第二目标时间为综合考虑天气信息和日落时间所获得的最合理的日落时间。示例性的,若机器人当前位置的日出时间为早6点,但当天的天气为暴雨,若暴雨的时间为早6点到早8点,则早6点到早8点机器人继续待在充电站不工作等待雨停,确定第一目标时间为早8点,若机器人当前位置的日落时间为晚6点,但当天的暴雨时间为晚5点到晚6点,机器人在暴雨期间不工作,确定第二目标时间为晚5点。Among them, the first target time is the most reasonable sunrise time obtained by comprehensively considering weather information and sunrise time, and the second target time is the most reasonable sunset time obtained by comprehensively considering weather information and sunset time. For example, if the sunrise time at the current location of the robot is 6 a.m., but the weather that day is heavy rain, and if the time of the rainstorm is from 6 a.m. to 8 a.m., then the robot will continue to stay charging from 6 a.m. to 8 a.m. The station does not work and waits for the rain to stop. The first target time is determined to be 8 a.m.. If the sunset time at the current location of the robot is 6 p.m., but the rainstorm time of the day is from 5 p.m. to 6 p.m., the robot will not work during the rainstorm. The second target time is determined to be 5 pm.
具体的,根据第一目标时间和第二目标时间与机器人的工作时间进行比较,若工作开始时间处于第一目标时间之前,则将工作开始时间更新为第一目标时间,若工作结束时间处于第二目标时间之后,则将工作结束时间更新为第二目标时间,按照更新后的工作开始时间和工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。示例性的,若机器人当前位置的天气情况为暴雨天气,根据暴雨的时间及日出时间确定第一目标时间,根据暴雨的时间及日落时间确定第二目标时间,若第一目标时间为早8点,第二目标时间为晚5点,而原机器人的工作时间为工作开始时间为早6点,工作结束时间为晚6点,现按照第一目标时间、第二目标时间更新机器人的工作时间为工作开始时间为早8点,工作结束时间为晚5点,生成新的控制指令,机器人按照新的工作时间执行任务。Specifically, according to the comparison between the first target time and the second target time and the working time of the robot, if the work start time is before the first target time, the work start time is updated to the first target time, and if the work end time is before the first target time, the work start time is updated to the first target time. After the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work start time and work end time, and the robot is controlled to execute the control instruction. For example, if the weather conditions at the current location of the robot are heavy rain, the first target time is determined based on the time of the heavy rain and the sunrise time, and the second target time is determined based on the time of the heavy rain and the sunset time. If the first target time is early 8 point, the second target time is 5:00 pm, and the original robot's working time is 6:00 am, and the work end time is 6:00 pm. Now the robot's working time is updated according to the first target time and the second target time. If the work start time is 8 o'clock in the morning and the work end time is 5 o'clock in the evening, a new control instruction is generated, and the robot performs the task according to the new working hours.
若获取的天气信息显示一天都为恶劣天气,则机器人一整天都不外出工作;若机器人在工作中突遇恶劣天气,机器人要立刻结束工作返回;若机器人在开始工作时突遇恶劣天气,则机器人延迟开始工作时间。If the obtained weather information shows that the weather is bad all day, the robot will not go out to work all day; if the robot suddenly encounters bad weather while working, the robot must immediately end the work and return; if the robot suddenly encounters bad weather when it starts working, Then the robot delays starting working time.
本发明实施例通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,获取任务数据,根据定位数据确定天气信息,根据任务数据、时间信息以及天气信息生成控制指令,并控制机器人执行控制指令,解决了机器人在天气信息相对较差的情况下依旧继续工作的问题,降低了机器人受损害的程度,保障了机器人的安全性,提高了控制机器人行为的准确度。The embodiment of the present invention obtains positioning data, determines the time information corresponding to the current position based on the positioning data, obtains task data, determines weather information based on the positioning data, generates control instructions based on the task data, time information and weather information, and controls the robot to perform control The instruction solves the problem of the robot continuing to work when the weather information is relatively poor, reduces the degree of damage to the robot, ensures the safety of the robot, and improves the accuracy of controlling the robot's behavior.
实施例Example
图5是本发明实施例五提供的一种控制装置的结构示意图。本实施例可适用于机器人行为控制的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供控制功能的设备中,如图5所示,所述控制装置具体包括:定位数据获取模块510、时间信息确定模块520和控制指令执行模块530。Figure 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention. This embodiment can be applied to the situation of robot behavior control. The device can be implemented in the form of software and/or hardware. The device can be integrated in any device that provides control functions. As shown in Figure 5, the control device specifically includes : Positioning data acquisition module 510, time information determination module 520 and control instruction execution module 530.
其中,定位数据获取模块510,用于获取定位数据;Among them, the positioning data acquisition module 510 is used to obtain positioning data;
时间信息确定模块520,用于根据所述定位数据确定当前位置对应的时间信息;The time information determination module 520 is used to determine the time information corresponding to the current location according to the positioning data;
控制指令执行模块530,用于根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。The control instruction execution module 530 is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
在一些实施例中,所述时间信息确定模块具体用于:In some embodiments, the time information determination module is specifically used to:
所述时间信息包括:当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种。The time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
在一些实施例中,所述时间信息确定模块具体用于:In some embodiments, the time information determination module is specifically used to:
所述定位数据包括:经纬度数据;The positioning data includes: latitude and longitude data;
根据所述定位数据确定当前位置对应的时间信息,包括:Determining the time information corresponding to the current location based on the positioning data includes:
根据所述经纬度数据确定时区信息;Determine time zone information based on the latitude and longitude data;
根据所述时区信息和所述经纬度数据确定当前位置对应的时间信息。Time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
获取任务数据;Get task data;
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the task data and the time information, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,包括:Generating control instructions based on the task data and the time information includes:
根据所述任务数据和所述时间信息确定工作信息,其中,所述工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种;Determine work information according to the task data and the time information, wherein the work information includes at least one of work start time, work end time and work frequency;
根据所述工作信息生成控制指令。Generate control instructions based on the work information.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
根据所述任务数据确定工作时间;Determine working hours based on said task data;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the time information and the working time, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
所述工作时间包括:工作开始时间和/或工作结束时间;The working time includes: work start time and/or work end time;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
若所述工作结束时间处于日落时间之后,则将所述工作结束时间更新为日落时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令;If the work end time is after sunset time, update the work end time to sunset time, generate a control instruction based on the updated work end time, and control the robot to execute the control instruction;
若所述工作开始时间处于日出时间之前,则将所述工作开始时间更新为日出时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令。If the work start time is before sunrise time, the work start time is updated to sunrise time, a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
根据所述定位数据确定天气信息;Determine weather information based on the positioning data;
根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions according to the task data, the time information and the weather information, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions according to the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
根据所述天气信息和日出时间确定第一目标时间;Determine the first target time based on the weather information and sunrise time;
根据所述天气信息和日落时间确定第二目标时间;Determine a second target time based on the weather information and sunset time;
若所述工作开始时间处于第一目标时间之前,则将所述工作开始时间更新为第一目标时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令;If the work start time is before the first target time, update the work start time to the first target time, generate a control instruction based on the updated work start time, and control the robot to execute the control instruction;
若所述工作结束时间处于第二目标时间之后,则将所述工作结束时间更新为第二目标时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。If the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
本公开实施例所提供的控制装置可执行本公开任意实施例所提供的控制方法,具备执行方法相应的功能模块和有益效果。The control device provided by the embodiment of the present disclosure can execute the control method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
值得注意的是,上述装置所包括的各个模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可,并不用于限制本公开实施例的保护范围。It is worth noting that each module included in the above device is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized, and is not used to limit the scope of protection of the embodiments of the present disclosure.
实施例Example
图6为本发明实施例六提供的电子设备的结构示意图。下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务器)600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention. Referring now to FIG. 6 , a schematic structural diagram of an electronic device (such as the terminal device or server in FIG. 6 ) 600 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as vehicle navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM602以及RAM603通过总线604彼此相连。编辑/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608 . The program in the memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An editing/output (I/O) interface 605 is also connected to bus 604.
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration An output device 607 such as a computer; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
本公开实施例提供的电子设备与上述实施例提供的控制方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。The electronic device provided by the embodiments of the present disclosure and the control method provided by the above embodiments belong to the same inventive concept. Technical details that are not described in detail in this embodiment can be referred to the above embodiments, and this embodiment has the same benefits as the above embodiments. Effect.
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的控制方法。Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the control method provided by the above embodiments is implemented.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(Hyper Text Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can communicate with digital data in any form or medium. Data communications (e.g., communications networks) interconnections. Examples of communications networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取定位数据;根据所述定位数据确定当前位置对应的时间信息;根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains positioning data; determines the time information corresponding to the current position according to the positioning data; The time information generates control instructions and controls the robot to execute the control instructions.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider) .
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wires based electrical connection, laptop disk, hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the disclosure scope involved in the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, but should also cover solutions composed of the above technical features or without departing from the above disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Furthermore, although operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式本实施例在上述实施例一的基础上,提供了一种控制方法的优选实施方式,是根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:获取任务数据;根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令的另一细分,具体包括:根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:根据所述任务数据确定工作时间;根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令。图3为本发明实施例三提供的一种控制方法的流程图,如图3所示,该方法具体包括以下步骤:Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and actions described above are only exemplary forms for realizing the claims. Based on the above-mentioned Embodiment 1, this embodiment provides a preferred implementation of a control method, which is to generate a control method based on the time information. instruction, and controlling the robot to execute the control instruction, including: obtaining task data; generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically The method includes: generating a control instruction according to the task data and the time information, and controlling the robot to execute the control instruction, including: determining a working time according to the task data; and generating a control instruction according to the time information and the working time. instructions, and controls the robot to execute the control instructions. Figure 3 is a flow chart of a control method provided by Embodiment 3 of the present invention. As shown in Figure 3, the method specifically includes the following steps:
S310,获取定位数据。S310, obtain positioning data.
S320,根据定位数据确定当前位置对应的时间信息。S320: Determine time information corresponding to the current location based on the positioning data.
S330,获取任务数据。S330, obtain task data.
S340,根据任务数据确定工作时间。S340: Determine working time based on task data.
其中,工作时间可以包括工作开始时间和工作结束时间,如工作时间可以为机器人早6点开始工作,晚6点结束工作。Among them, the working time can include the work start time and the work end time. For example, the working time can be that the robot starts working at 6 o'clock in the morning and ends at 6 o'clock in the evening.
具体的,根据任务数据确定工作时间的方式可以为:通过任务数据中的相关数据如机器人的工作区域、工作量以及工作频率等,确定机器人的工作时间,如机器人当前位置的工作量较大,则确定的工作时间要增加,设定机器人的工作开始时间要提前和/或机器人的结束时间要延后;若机器人当前位置的工作量较小,则确定的工作时间要减少,设定机器人的工作开始时间要延后和/或机器人的结束时间要提前。根据任务数据确定工作时间的方式可以为:通过任务数据中的具体任务数据指令来确定工作时间,如割草机器人的任务数据指令为在A区域进行割草任务,早6点开始工作,晚6点结束工作,则确定工作时间为工作开始时间为早6点,工作结束时间为晚6点。Specifically, the method of determining the working time based on the task data can be: determining the working time of the robot through relevant data in the task data, such as the robot's working area, workload, and working frequency. For example, the robot's current position has a large workload, Then the determined working time should be increased, and the robot's work start time should be set in advance and/or the robot's end time should be delayed; if the workload at the current position of the robot is small, the determined working time should be reduced, and the robot's work start time should be set in advance. The job start time needs to be later and/or the robot's end time needs to be earlier. The way to determine the working time according to the task data can be: determine the working time through the specific task data instructions in the task data. For example, the task data instruction of the lawn mowing robot is to perform a lawn mowing task in area A, start work at 6 o'clock in the morning and 6 o'clock in the evening. If the work ends at 6 o'clock in the morning, the working time is determined to be 6 o'clock in the morning and 6 o'clock in the evening.
S350,根据时间信息和工作时间生成控制指令,并控制机器人执行控制指令。S350: Generate control instructions based on time information and working time, and control the robot to execute the control instructions.
具体的,根据时间信息和工作时间生成控制指令的方式可以为:根据定位数据确定日出时间和日落时间,根据日出时间和工作开始时间的比较结果对工作开始时间进行调整,并根据调整后的工作开始时间生成控制指令;根据日落时间和工作结束时间的比较结果对工作结束时间进行调整,并根据调整后的工作结束时间生成控制指令。根据时间信息和工作时间生成控制指令的方式还可以为:根据当前时间,与季节信息和/或节气信息确定日出时间和日落时间,根据日出时间和工作开始时间的比较结果对工作开始时间进行调整,并根据调整后的工作开始时间生成控制指令;根据日落时间和工作结束时间的比较结果对工作结束时间进行调整,并根据调整后的工作结束时间生成控制指令。Specifically, the method of generating control instructions based on time information and working time can be: determining the sunrise time and sunset time based on positioning data, adjusting the work start time based on the comparison result between the sunrise time and the work start time, and adjusting the work start time based on the adjusted Generate control instructions based on the work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time. The method of generating control instructions based on time information and working time can also be: determining the sunrise time and sunset time based on the current time, seasonal information and/or solar term information, and determining the working start time based on the comparison result between the sunrise time and the working start time. Make adjustments and generate control instructions based on the adjusted work start time; adjust the work end time based on the comparison results between sunset time and work end time, and generate control instructions based on the adjusted work end time.
在一个具体的例子中,割草机器人根据任务数据确定的工作时间为工作开始时间为早6点,工作结束时间为晚6点,根据定位数据确定的时间信息为当前位置的日出时间为早6点半,日落时间为晚5点半,原工作时间的工作开始时间早于当前位置对应的日出时间,工作结束时间晚于当前位置对应的日落时间,则根据工作时间和时间信息对控制指令进行更新,将早6点半确定为工作开始时间,晚5点半确定为工作结束时间,生成新的控制指令,割草机器人按照新的控制指令执行任务。In a specific example, the working time of the lawn mowing robot determined based on the task data is that the work start time is 6 o'clock in the morning and the work end time is 6 o'clock in the evening. The time information determined based on the positioning data is that the sunrise time of the current location is early. At 6:30, the sunset time is 5:30 pm. If the work start time of the original working time is earlier than the sunrise time corresponding to the current location, and the work end time is later than the sunset time corresponding to the current location, then the control is based on the working time and time information. The instructions are updated, and 6:30 am is determined as the work start time, and 5:30 pm is determined as the work end time. New control instructions are generated, and the lawn mowing robot performs tasks according to the new control instructions.
在一些实施例中,所述工作时间包括:工作开始时间和/或工作结束时间;In some embodiments, the working time includes: work start time and/or work end time;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
若所述工作结束时间处于日落时间之后,则将所述工作结束时间更新为日落时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令;If the work end time is after sunset time, update the work end time to sunset time, generate a control instruction based on the updated work end time, and control the robot to execute the control instruction;
若所述工作开始时间处于日出时间之前,则将所述工作开始时间更新为日出时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令。If the work start time is before sunrise time, the work start time is updated to sunrise time, a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
其中,根据更新后的工作结束时间生成控制指令的方式可以为:将工作结束时间替换为日落时间,根据日落时间生成控制指令。也就是说,若工作结束时间处于日落时间之后,则控制机器人在日落之前结束工作。The method of generating the control instruction based on the updated work end time may be: replacing the work end time with sunset time, and generating the control instruction based on the sunset time. In other words, if the work end time is after sunset, the robot is controlled to end the work before sunset.
其中,根据更新后的工作开始时间生成控制指令的方式可以为:将工作开始时间替换为日出时间,根据日出时间生成控制指令。也就是说,若工作开始时间处于日出时间之前,则控制机器人在日出之后再开始工作。The method of generating the control instruction based on the updated work start time may be: replacing the work start time with the sunrise time, and generating the control instruction based on the sunrise time. That is to say, if the work start time is before sunrise time, the robot will be controlled to start working after sunrise.
在一个具体的例子中,根据机器人的定位数据确定机器人当前位置的时间信息,对机器人中根据任务数据确定的工作时间与机器人当前位置对应的时间信息进行对比,若机器人工作时间中设定的工作开始时间早于机器人当前位置对应的日出时间,即机器人按照工作时间中设定的工作开始时间开始工作时,天未亮,则将工作时间中的工作开始时间更新为当前位置对应的日出时间,待日出天亮机器人开始工作;若工作时间中设定的工作开始时间晚于或等同于当前位置对应的日出时间,则继续按照工作时间中设定的工作开始时间开始工作;若工作时间中设定的工作结束时间晚于当前位置对应的日落时间,即按照工作时间中设定的工作结束时间结束工作时,天已黑,机器人无法进行工作,则将工作时间中的工作结束时间更新为当前位置对应的日落时间,待日落机器人便结束工作;若工作时间中设定的工作结束时间早于或等同于当前位置对应的日落时间,则继续按照工作时间中设定的工作结束时间结束工作。In a specific example, the time information of the robot's current position is determined based on the robot's positioning data, and the working time determined in the robot based on the task data is compared with the time information corresponding to the robot's current position. If the work time set in the robot's working time is If the start time is earlier than the sunrise time corresponding to the current position of the robot, that is, when the robot starts working according to the work start time set in the working time and it is not yet dawn, the work start time in the working time will be updated to the sunrise corresponding to the current position. time, the robot will start working after sunrise; if the work start time set in the work time is later than or equal to the sunrise time corresponding to the current location, it will continue to start working according to the work start time set in the work time; if the work start time is later than or equal to the sunrise time corresponding to the current location, The work end time set in the time is later than the sunset time corresponding to the current location. That is, when the work ends according to the work end time set in the working time, it is already dark and the robot cannot work, then the work end time in the working time will be Update to the sunset time corresponding to the current location, and the robot will end its work after sunset; if the work end time set in the working time is earlier than or equal to the sunset time corresponding to the current location, it will continue to follow the work end time set in the working time. Finish work.
本实施例的技术方法,通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,获取任务数据,根据任务数据确定工作时间,其中,工作开始时间和/或工作结束时间,根据时间信息和工作时间生成控制指令,并控制机器人执行控制指令,解决了机器人在天不亮就开始工作或天黑还在继续工作导致机器人损坏的问题,可以确保机器人在合适的时间进行工作,并提高了控制机器人行为的准确度。The technical method of this embodiment obtains positioning data and determines the time information corresponding to the current location based on the positioning data, obtains task data, and determines the working time based on the task data, where the work start time and/or work end time is determined based on the time information. Generate control instructions according to the working time, and control the robot to execute the control instructions, which solves the problem of the robot starting to work before dawn or continuing to work after dark, causing damage to the robot. It can ensure that the robot works at the appropriate time and improves efficiency. Control the accuracy of robot behavior.
实施例Example
本实施例在上述实施例一的基础上,提供了一种控制方法的优选实施方式,是根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:获取任务数据;根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令的另一细分,具体包括:根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:根据所述定位数据确定天气信息;根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令。图4为本发明实施例四提供的一种控制方法的流程图,如图4所示,该方法具体包括以下步骤:Based on the above-mentioned Embodiment 1, this embodiment provides a preferred implementation of a control method, which generates control instructions based on the time information and controls the robot to execute the control instructions, including: obtaining task data; Generating a control instruction according to the task data and the time information, and controlling the robot to execute another subdivision of the control instruction, specifically includes: generating a control instruction according to the task data and the time information, and controlling the control instruction. The robot executing the control instruction includes: determining weather information according to the positioning data; generating a control instruction according to the task data, the time information and the weather information, and controlling the robot to execute the control instruction. Figure 4 is a flow chart of a control method provided by Embodiment 4 of the present invention. As shown in Figure 4, the method specifically includes the following steps:
S410,获取定位数据。S410, obtain positioning data.
S420,根据定位数据确定当前位置对应的时间信息。S420: Determine time information corresponding to the current location based on the positioning data.
S430,获取任务数据。S430, obtain task data.
S440,根据定位数据确定天气信息。S440: Determine weather information based on positioning data.
其中,天气信息可以为当前位置的天气状态,如当前位置的天气状态可以是晴朗、暴雨、暴雪、梅雨等。The weather information may be the weather status of the current location. For example, the weather status of the current location may be sunny, heavy rain, blizzard, rainy season, etc.
具体的,根据定位数据确定天气信息的方式可以为:机器人中的定位设备获取定位数据,根据定位数据获取机器人当前位置,根据当前位置确定天气信息。根据定位数据确定天气信息的方式还可以为:机器人中的定位设备获取定位数据,根据定位数据获取机器人当前位置和当前时间,根据当前位置和当前时间确定天气信息。示例性的,若根据定位数据获取到机器人当前位置在北京,根据气象台返回信息确定北京的当天的天气信息;根据定位数据获取到机器人当前位置在北京,当前时间为XX年XX月XX日早5点,根据气象台返回信息确定机器人当前时间的天气信息或未来一段时间内的天气信息。Specifically, the method of determining the weather information based on the positioning data may be: the positioning device in the robot obtains the positioning data, obtains the current position of the robot based on the positioning data, and determines the weather information based on the current position. The method of determining weather information based on positioning data can also be as follows: the positioning device in the robot obtains positioning data, obtains the current position and current time of the robot based on the positioning data, and determines the weather information based on the current position and current time. For example, if the current position of the robot is obtained in Beijing based on the positioning data, the weather information of the day in Beijing is determined based on the information returned by the weather station; the current position of the robot is obtained in Beijing based on the positioning data, and the current time is 5 am on XX day, XX month, XX year. point, and determine the weather information of the robot at the current time or the weather information in the future based on the information returned by the weather station.
S450,根据任务数据、时间信息以及天气信息生成控制指令,并控制机器人执行控制指令。S450: Generate control instructions based on task data, time information and weather information, and control the robot to execute the control instructions.
具体的,根据任务数据、时间信息以及天气信息生成控制指令的方式可以为:根据任务数据确定工作开始时间和工作结束时间,根据时间信息确定日出时间和日落时间,根据天气信息对所述日出时间和日落时间进行调整,得到调整后的日出时间和日落时间,根据工作开始时间和调整后的日出时间对工作开始时间进行调整,根据调整后的工作开始时间生成控制指令;根据工作结束时间和调整后的日落时间对工作结束时间进行调整,根据调整后的工作结束时间生成控制指令。根据任务数据、时间信息以及天气信息生成控制指令的方式还可以为:根据任务数据和时间信息确定工作开始时间和工作结束时间;根据天气信息对所述工作开始时间和工作结束时间进行调整,根据调整后的工作开始时间和调整后的工作结束时间生成控制指令。根据任务数据、时间信息以及天气信息生成控制指令的方式还可以为:根据时间信息和天气信息确定日出时间和日落时间,根据任务数据、日出时间和日落时间确定工作开始时间和工作结束时间,根据工作开始时间和工作结束时间生成控制指令。Specifically, the method of generating control instructions based on task data, time information and weather information may be: determining the work start time and work end time based on the task data, determining the sunrise time and sunset time based on the time information, and determining the day based on the weather information. Adjust the sunrise time and sunset time to obtain the adjusted sunrise time and sunset time, adjust the work start time according to the work start time and the adjusted sunrise time, and generate control instructions based on the adjusted work start time; according to the work start time The end time and the adjusted sunset time adjust the work end time, and generate control instructions based on the adjusted work end time. The method of generating the control instruction based on the task data, time information and weather information can also be: determining the work start time and work end time based on the task data and time information; adjusting the work start time and work end time based on the weather information, and adjusting the work start time and work end time based on the weather information. The adjusted work start time and the adjusted work end time generate control instructions. The method of generating control instructions based on task data, time information and weather information can also be: determining the sunrise time and sunset time based on the time information and weather information, and determining the work start time and work end time based on the task data, sunrise time and sunset time. , generate control instructions based on the work start time and work end time.
在一个具体的例子中,割草机器人要在A区域完成割草任务,A区域的时间信息为日出时间为早6点,日落时间为晚6点,但A区域当天的天气信息为暴雨,早8点雨停,则确定机器人工作开始时间为早8点,工作结束时间为晚6点,根据工作开始时间和工作结束时间生成控制指令并控制机器人执行。In a specific example, the lawn mowing robot needs to complete the lawn mowing task in area A. The time information in area A is that the sunrise time is 6 o'clock in the morning and the sunset time is 6 o'clock in the evening. However, the weather information in area A that day is heavy rain. If the rain stops at 8 o'clock in the morning, the robot's work start time is determined to be 8 o'clock in the morning and its work end time is 6 o'clock in the evening. Control instructions are generated based on the work start time and work end time and the robot is controlled to execute.
在一些实施例中,根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令,包括:In some embodiments, generating control instructions based on the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
根据所述天气信息和日出时间确定第一目标时间;Determine the first target time based on the weather information and sunrise time;
根据所述天气信息和日落时间确定第二目标时间;Determine a second target time based on the weather information and sunset time;
若所述工作开始时间处于第一目标时间之前,则将所述工作开始时间更新为第一目标时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令;If the work start time is before the first target time, update the work start time to the first target time, generate a control instruction based on the updated work start time, and control the robot to execute the control instruction;
若所述工作结束时间处于第二目标时间之后,则将所述工作结束时间更新为第二目标时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。If the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
其中,第一目标时间为综合考虑天气信息和日出时间所获得的最合理的日出时间,第二目标时间为综合考虑天气信息和日落时间所获得的最合理的日落时间。示例性的,若机器人当前位置的日出时间为早6点,但当天的天气为暴雨,若暴雨的时间为早6点到早8点,则早6点到早8点机器人继续待在充电站不工作等待雨停,确定第一目标时间为早8点,若机器人当前位置的日落时间为晚6点,但当天的暴雨时间为晚5点到晚6点,机器人在暴雨期间不工作,确定第二目标时间为晚5点。Among them, the first target time is the most reasonable sunrise time obtained by comprehensively considering weather information and sunrise time, and the second target time is the most reasonable sunset time obtained by comprehensively considering weather information and sunset time. For example, if the sunrise time at the current location of the robot is 6 a.m., but the weather that day is heavy rain, and if the time of the rainstorm is from 6 a.m. to 8 a.m., then the robot will continue to stay charging from 6 a.m. to 8 a.m. The station does not work and waits for the rain to stop. The first target time is determined to be 8 a.m.. If the sunset time at the current location of the robot is 6 p.m., but the rainstorm time of the day is from 5 p.m. to 6 p.m., the robot will not work during the rainstorm. The second target time is determined to be 5 pm.
具体的,根据第一目标时间和第二目标时间与机器人的工作时间进行比较,若工作开始时间处于第一目标时间之前,则将工作开始时间更新为第一目标时间,若工作结束时间处于第二目标时间之后,则将工作结束时间更新为第二目标时间,按照更新后的工作开始时间和工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。示例性的,若机器人当前位置的天气情况为暴雨天气,根据暴雨的时间及日出时间确定第一目标时间,根据暴雨的时间及日落时间确定第二目标时间,若第一目标时间为早8点,第二目标时间为晚5点,而原机器人的工作时间为工作开始时间为早6点,工作结束时间为晚6点,现按照第一目标时间、第二目标时间更新机器人的工作时间为工作开始时间为早8点,工作结束时间为晚5点,生成新的控制指令,机器人按照新的工作时间执行任务。Specifically, according to the comparison between the first target time and the second target time and the working time of the robot, if the work start time is before the first target time, the work start time is updated to the first target time, and if the work end time is before the first target time, the work start time is updated to the first target time. After the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work start time and work end time, and the robot is controlled to execute the control instruction. For example, if the weather conditions at the current location of the robot are heavy rain, the first target time is determined based on the time of the heavy rain and the sunrise time, and the second target time is determined based on the time of the heavy rain and the sunset time. If the first target time is early 8 point, the second target time is 5:00 pm, and the original robot's working time is 6:00 am, and the work end time is 6:00 pm. Now the robot's working time is updated according to the first target time and the second target time. If the work start time is 8 o'clock in the morning and the work end time is 5 o'clock in the evening, a new control instruction is generated, and the robot performs the task according to the new working hours.
若获取的天气信息显示一天都为恶劣天气,则机器人一整天都不外出工作;若机器人在工作中突遇恶劣天气,机器人要立刻结束工作返回;若机器人在开始工作时突遇恶劣天气,则机器人延迟开始工作时间。If the obtained weather information shows that the weather is bad all day, the robot will not go out to work all day; if the robot suddenly encounters bad weather while working, the robot must immediately end the work and return; if the robot suddenly encounters bad weather when it starts working, Then the robot delays starting working time.
本发明实施例通过获取定位数据,并根据定位数据确定当前位置对应的时间信息,获取任务数据,根据定位数据确定天气信息,根据任务数据、时间信息以及天气信息生成控制指令,并控制机器人执行控制指令,解决了机器人在天气信息相对较差的情况下依旧继续工作的问题,降低了机器人受损害的程度,保障了机器人的安全性,提高了控制机器人行为的准确度。The embodiment of the present invention obtains positioning data, determines the time information corresponding to the current position based on the positioning data, obtains task data, determines weather information based on the positioning data, generates control instructions based on the task data, time information and weather information, and controls the robot to perform control The instruction solves the problem of the robot continuing to work when the weather information is relatively poor, reduces the degree of damage to the robot, ensures the safety of the robot, and improves the accuracy of controlling the robot's behavior.
实施例Example
图5是本发明实施例五提供的一种控制装置的结构示意图。本实施例可适用于机器人行为控制的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供控制功能的设备中,如图5所示,所述控制装置具体包括:定位数据获取模块510、时间信息确定模块520和控制指令执行模块530。Figure 5 is a schematic structural diagram of a control device provided in Embodiment 5 of the present invention. This embodiment can be applied to the situation of robot behavior control. The device can be implemented in the form of software and/or hardware. The device can be integrated in any device that provides control functions. As shown in Figure 5, the control device specifically includes : Positioning data acquisition module 510, time information determination module 520 and control instruction execution module 530.
其中,定位数据获取模块510,用于获取定位数据;Among them, the positioning data acquisition module 510 is used to obtain positioning data;
时间信息确定模块520,用于根据所述定位数据确定当前位置对应的时间信息;The time information determination module 520 is used to determine the time information corresponding to the current location according to the positioning data;
控制指令执行模块530,用于根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。The control instruction execution module 530 is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
在一些实施例中,所述时间信息确定模块具体用于:In some embodiments, the time information determination module is specifically used to:
所述时间信息包括:当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种。The time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
在一些实施例中,所述时间信息确定模块具体用于:In some embodiments, the time information determination module is specifically used to:
所述定位数据包括:经纬度数据;The positioning data includes: latitude and longitude data;
根据所述定位数据确定当前位置对应的时间信息,包括:Determining the time information corresponding to the current location based on the positioning data includes:
根据所述经纬度数据确定时区信息;Determine time zone information based on the latitude and longitude data;
根据所述时区信息和所述经纬度数据确定当前位置对应的时间信息。Time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and controlling the robot to execute the control instructions includes:
获取任务数据;Get task data;
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the task data and the time information, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,包括:Generating control instructions based on the task data and the time information includes:
根据所述任务数据和所述时间信息确定工作信息,其中,所述工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种;Determine work information according to the task data and the time information, wherein the work information includes at least one of work start time, work end time and work frequency;
根据所述工作信息生成控制指令。Generate control instructions based on the work information.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
根据所述任务数据确定工作时间;Determine working hours based on said task data;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the time information and the working time, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
所述工作时间包括:工作开始时间和/或工作结束时间;The working time includes: work start time and/or work end time;
根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
若所述工作结束时间处于日落时间之后,则将所述工作结束时间更新为日落时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令;If the work end time is after sunset time, update the work end time to sunset time, generate a control instruction based on the updated work end time, and control the robot to execute the control instruction;
若所述工作开始时间处于日出时间之前,则将所述工作开始时间更新为日出时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令。If the work start time is before sunrise time, the work start time is updated to sunrise time, a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the task data and the time information, and controlling the robot to execute the control instructions includes:
根据所述定位数据确定天气信息;Determine weather information based on the positioning data;
根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions according to the task data, the time information and the weather information, and control the robot to execute the control instructions.
在一些实施例中,所述控制指令执行模块具体用于:In some embodiments, the control instruction execution module is specifically used to:
根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions according to the task data, the time information and the weather information, and controlling the robot to execute the control instructions includes:
根据所述天气信息和日出时间确定第一目标时间;Determine the first target time based on the weather information and sunrise time;
根据所述天气信息和日落时间确定第二目标时间;Determine a second target time based on the weather information and sunset time;
若所述工作开始时间处于第一目标时间之前,则将所述工作开始时间更新为第一目标时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令;If the work start time is before the first target time, update the work start time to the first target time, generate a control instruction based on the updated work start time, and control the robot to execute the control instruction;
若所述工作结束时间处于第二目标时间之后,则将所述工作结束时间更新为第二目标时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。If the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
本公开实施例所提供的控制装置可执行本公开任意实施例所提供的控制方法,具备执行方法相应的功能模块和有益效果。The control device provided by the embodiment of the present disclosure can execute the control method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
值得注意的是,上述装置所包括的各个模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可,并不用于限制本公开实施例的保护范围。It is worth noting that each module included in the above device is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized, and is not used to limit the scope of protection of the embodiments of the present disclosure.
实施例Example
图6为本发明实施例六提供的电子设备的结构示意图。下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务器)600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present invention. Referring now to FIG. 6 , a schematic structural diagram of an electronic device (such as the terminal device or server in FIG. 6 ) 600 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as vehicle navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM602以及RAM603通过总线604彼此相连。编辑/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608 . The program in the memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An editing/output (I/O) interface 605 is also connected to bus 604.
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration An output device 607 such as a computer; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
本公开实施例提供的电子设备与上述实施例提供的控制方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。The electronic device provided by the embodiments of the present disclosure and the control method provided by the above embodiments belong to the same inventive concept. Technical details that are not described in detail in this embodiment can be referred to the above embodiments, and this embodiment has the same benefits as the above embodiments. Effect.
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的控制方法。Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the control method provided by the above embodiments is implemented.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(Hyper Text Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can communicate with digital data in any form or medium. Data communications (e.g., communications networks) interconnections. Examples of communications networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取定位数据;根据所述定位数据确定当前位置对应的时间信息;根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains positioning data; determines the time information corresponding to the current position according to the positioning data; The time information generates control instructions and controls the robot to execute the control instructions.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider) .
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wires based electrical connection, laptop disk, hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the disclosure scope involved in the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, but should also cover solutions composed of the above technical features or without departing from the above disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Furthermore, although operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
在此处键入序列表自由内容描述段落。Type the sequence listing free content description paragraph here.

Claims (12)

  1. 一种控制方法,其特征在于,应用于机器人,所述控制方法包括:A control method, characterized in that it is applied to a robot, and the control method includes:
    获取定位数据;Get positioning data;
    根据所述定位数据确定当前位置对应的时间信息;Determine time information corresponding to the current location according to the positioning data;
    根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the time information, and control the robot to execute the control instructions.
  2. 根据权利要求1所述的控制方法,其特征在于,所述时间信息包括:当前时间、日出时间、日落时间、季节信息以及节气信息中的至少一种。The control method according to claim 1, characterized in that the time information includes: at least one of current time, sunrise time, sunset time, seasonal information and solar term information.
  3. 根据权利要求1所述的控制方法,其特征在于,所述定位数据包括:经纬度数据;The control method according to claim 1, characterized in that the positioning data includes: longitude and latitude data;
    根据所述定位数据确定当前位置对应的时间信息,包括:Determining the time information corresponding to the current location based on the positioning data includes:
    根据所述经纬度数据确定时区信息;Determine time zone information based on the latitude and longitude data;
    根据所述时区信息和所述经纬度数据确定当前位置对应的时间信息。Time information corresponding to the current location is determined based on the time zone information and the latitude and longitude data.
  4. 根据权利要求1所述的控制方法,其特征在于,根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:The control method according to claim 1, characterized in that generating a control instruction according to the time information and controlling the robot to execute the control instruction includes:
    获取任务数据;Get task data;
    根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the task data and the time information, and control the robot to execute the control instructions.
  5. 根据权利要求4所述的控制方法,其特征在于,根据所述任务数据和所述时间信息生成控制指令,包括:The control method according to claim 4, characterized in that generating control instructions according to the task data and the time information includes:
    根据所述任务数据和所述时间信息确定工作信息,其中,所述工作信息包括工作开始时间、工作结束时间以及工作频率中的至少一种;Determine work information according to the task data and the time information, wherein the work information includes at least one of work start time, work end time and work frequency;
    根据所述工作信息生成控制指令。Generate control instructions based on the work information.
  6. 根据权利要求4所述的控制方法,其特征在于,根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:The control method according to claim 4, characterized in that generating a control instruction according to the task data and the time information, and controlling the robot to execute the control instruction includes:
    根据所述任务数据确定工作时间;Determine working hours based on said task data;
    根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions based on the time information and the working time, and control the robot to execute the control instructions.
  7. 根据权利要求6所述的控制方法,其特征在于,所述工作时间包括:工作开始时间和/或工作结束时间;The control method according to claim 6, characterized in that the working time includes: working start time and/or working end time;
    根据所述时间信息和所述工作时间生成控制指令,并控制所述机器人执行所述控制指令,包括:Generating control instructions based on the time information and the working time, and controlling the robot to execute the control instructions includes:
    若所述工作结束时间处于日落时间之后,则将所述工作结束时间更新为日落时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令;If the work end time is after sunset time, update the work end time to sunset time, generate a control instruction based on the updated work end time, and control the robot to execute the control instruction;
    若所述工作开始时间处于日出时间之前,则将所述工作开始时间更新为日出时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令。If the work start time is before sunrise time, the work start time is updated to sunrise time, a control instruction is generated according to the updated work start time, and the robot is controlled to execute the control instruction.
  8. 根据权利要求4所述的控制方法,其特征在于,根据所述任务数据和所述时间信息生成控制指令,并控制所述机器人执行所述控制指令,包括:The control method according to claim 4, characterized in that generating a control instruction according to the task data and the time information, and controlling the robot to execute the control instruction includes:
    根据所述定位数据确定天气信息;Determine weather information based on the positioning data;
    根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令。Generate control instructions according to the task data, the time information and the weather information, and control the robot to execute the control instructions.
  9. 根据权利要求8所述的控制方法,其特征在于,根据所述任务数据、所述时间信息以及所述天气信息生成控制指令,并控制所述机器人执行所述控制指令,包括:The control method according to claim 8, characterized in that generating a control instruction according to the task data, the time information and the weather information, and controlling the robot to execute the control instruction includes:
    根据所述天气信息和日出时间确定第一目标时间;Determine the first target time based on the weather information and sunrise time;
    根据所述天气信息和日落时间确定第二目标时间;Determine a second target time based on the weather information and sunset time;
    若所述工作开始时间处于第一目标时间之前,则将所述工作开始时间更新为第一目标时间,根据更新后的工作开始时间生成控制指令,并控制所述机器人执行所述控制指令;If the work start time is before the first target time, update the work start time to the first target time, generate a control instruction based on the updated work start time, and control the robot to execute the control instruction;
    若所述工作结束时间处于第二目标时间之后,则将所述工作结束时间更新为第二目标时间,根据更新后的工作结束时间生成控制指令,并控制所述机器人执行所述控制指令。If the work end time is after the second target time, the work end time is updated to the second target time, a control instruction is generated according to the updated work end time, and the robot is controlled to execute the control instruction.
  10. 一种控制装置,其特征在于,包括:A control device, characterized by including:
    定位数据获取模块,用于获取定位数据;Positioning data acquisition module, used to obtain positioning data;
    时间信息确定模块,用于根据所述定位数据确定当前位置对应的时间信息;A time information determination module, configured to determine the time information corresponding to the current location according to the positioning data;
    控制指令执行模块,用于根据所述时间信息生成控制指令,并控制所述机器人执行所述控制指令。A control instruction execution module is used to generate a control instruction according to the time information, and control the robot to execute the control instruction.
  11. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device includes:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-9中任一项所述的控制方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor, so that the at least one processor can execute any one of claims 1-9 The control method described.
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-9中任一项所述的控制方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the control method according to any one of claims 1-9 when executed by a processor. .
PCT/CN2023/116657 2022-09-05 2023-09-04 Control method and apparatus, and device and storage medium WO2024051622A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211079538.7 2022-09-05
CN202211079538.7A CN117707126A (en) 2022-09-05 2022-09-05 Control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2024051622A1 true WO2024051622A1 (en) 2024-03-14

Family

ID=90155729

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/116657 WO2024051622A1 (en) 2022-09-05 2023-09-04 Control method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN117707126A (en)
WO (1) WO2024051622A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1647175A1 (en) * 2004-10-13 2006-04-19 Zucchetti Centro Sistemi S.p.a. Automatic system for controlling the operating modes of a lawn-mower
CN103676702A (en) * 2012-09-21 2014-03-26 苏州宝时得电动工具有限公司 Control method of automatic mower
CN104199348A (en) * 2014-08-19 2014-12-10 杭州览锐智能科技有限公司 Timing controller and timing control system based on global positioning satellite
CN206220034U (en) * 2016-10-14 2017-06-06 广州品顶环保科技有限公司 A kind of hybrid power dust collecting and cleaning vehicles
CN109193763A (en) * 2018-09-13 2019-01-11 安徽天尚清洁能源科技有限公司 A kind of intelligent start and stop regulator control system of photovoltaic plant data collector
CN110910527A (en) * 2019-12-02 2020-03-24 中科开创(广州)智能科技发展有限公司 Inspection method and device for power transmission line tower-standing robot
US20210076563A1 (en) * 2018-03-30 2021-03-18 Positec Power Tools (Suzhou) Co., Ltd Automatic lawnmower

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1647175A1 (en) * 2004-10-13 2006-04-19 Zucchetti Centro Sistemi S.p.a. Automatic system for controlling the operating modes of a lawn-mower
CN103676702A (en) * 2012-09-21 2014-03-26 苏州宝时得电动工具有限公司 Control method of automatic mower
CN104199348A (en) * 2014-08-19 2014-12-10 杭州览锐智能科技有限公司 Timing controller and timing control system based on global positioning satellite
CN206220034U (en) * 2016-10-14 2017-06-06 广州品顶环保科技有限公司 A kind of hybrid power dust collecting and cleaning vehicles
US20210076563A1 (en) * 2018-03-30 2021-03-18 Positec Power Tools (Suzhou) Co., Ltd Automatic lawnmower
CN109193763A (en) * 2018-09-13 2019-01-11 安徽天尚清洁能源科技有限公司 A kind of intelligent start and stop regulator control system of photovoltaic plant data collector
CN110910527A (en) * 2019-12-02 2020-03-24 中科开创(广州)智能科技发展有限公司 Inspection method and device for power transmission line tower-standing robot

Also Published As

Publication number Publication date
CN117707126A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
JP6576327B2 (en) Method and system for combining local weather forecast and itinerary planning
JP6876071B2 (en) Systems and methods for determining estimated arrival times
US9939871B2 (en) System and method for managing a power mode of a designated electronic device
CN112150490B (en) Image detection method, device, electronic equipment and computer readable medium
KR102380751B1 (en) Method of evaluate a economic feasibility of solar power generation
US20150006079A1 (en) Method and system for displaying weather information on a timeline
CN109084783A (en) Map constructing method, system, car-mounted terminal and the storage medium of band signal intensity
JP2020125669A (en) Method and device for outputting information
CN108731649B (en) 2000 mapping reference frame unifying method, device and computer readable storage medium
WO2021052451A1 (en) Method and system for determining estimated time of arrival
CN111967804A (en) Scheduling system, method and device based on active power distribution of mobile charging equipment
CN110779618A (en) Method, device and equipment for realizing backlight detection in vehicle running and storage medium
WO2024051622A1 (en) Control method and apparatus, and device and storage medium
US20160238642A1 (en) Estimating solar array power generation
CN115186178B (en) Agile remote sensing satellite task solution space searching method based on step length self-adaption
EP4092546A1 (en) Method and apparatus for map query and electronic device
CN115169087A (en) Household photovoltaic power station scheme generation method and corresponding intelligent design platform
WO2022110280A1 (en) Method and apparatus for updating local time, device, and storage medium
CN114785701A (en) Method and device for predicting optical transport network traffic, electronic device and storage medium
Kalita et al. The investigation on daytime conjugate hemispheric asymmetry along 100 E longitude using observations and model simulations: New insights
WO2021022487A1 (en) Systems and methods for determining an estimated time of arrival
US20230342368A1 (en) Method and apparatus for spatial data processing
CN114707708B (en) ENSO prediction method, apparatus and computer readable storage medium
CN113790723B (en) Map auxiliary positioning method, system, electronic equipment and storage medium
CN113516710B (en) Coordinate positioning method, coordinate positioning device, electronic equipment and computer readable medium