WO2020132889A1 - 用于机器人获取资源文件的方法、系统和装置 - Google Patents
用于机器人获取资源文件的方法、系统和装置 Download PDFInfo
- Publication number
- WO2020132889A1 WO2020132889A1 PCT/CN2018/123610 CN2018123610W WO2020132889A1 WO 2020132889 A1 WO2020132889 A1 WO 2020132889A1 CN 2018123610 W CN2018123610 W CN 2018123610W WO 2020132889 A1 WO2020132889 A1 WO 2020132889A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- robot
- resource
- resource file
- link
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
Definitions
- the present invention relates to the technical field of robots, and in particular, to a method, system, device, computer equipment, and storage medium for a robot to obtain resource files.
- a method for a robot to obtain resource files includes:
- a system for a robot to obtain resource files includes:
- the first server is configured to generate a resource file link of the robot according to the link acquisition request, and send the resource file link to the robot;
- the robot is also used to obtain a corresponding resource file from the second server according to the resource file link.
- a generating module configured to generate a resource file link according to the link acquisition request
- the sending module is configured to send the resource file link to the robot, so that the robot obtains the corresponding resource file from the server according to the resource file link.
- a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps:
- the invention proposes a method, system, device, computer equipment and storage medium for a robot to obtain resource files.
- the robot sends a link acquisition request to the first server; then the first server generates a resource file according to the link acquisition request Link, the first server sends the resource file link to the robot; finally, the robot obtains the corresponding resource file from the second server according to the resource file link.
- the robot administrator does not need to first obtain the new system and import the robot, but when the robot has resources to update, it directly sends a link acquisition request to the first server, and then the first server sends the resource file link Give the robot, and finally the robot obtains the corresponding resource file from the second server according to the resource file link.
- each robot can automatically update the resource without the help of the robot administrator, which greatly improves the efficiency of the robot resource update.
- the first server is only used to manage the link of the robot, and the dedicated resource management server, the second server, is used for resources Downloading also greatly reduces the storage capacity of the first server and reduces the storage burden of the first server.
- FIG. 1 is a schematic diagram of an implementation process of a method for a robot to obtain resource files in an embodiment
- FIG. 2 is a schematic diagram of a system for a robot to obtain resource files in an embodiment
- FIG. 3 is a schematic diagram of an implementation process of a method for a robot to obtain resource files in an embodiment
- step 304 is a schematic diagram of an implementation process of step 304 in an embodiment
- step 304 is a schematic diagram of an implementation process of step 304 in an embodiment
- FIG. 6 is an application environment diagram of a system for a robot to obtain resource files in an embodiment
- FIG. 8 is a structural block diagram of a computer device in an embodiment.
- a method for a robot to obtain a resource file is provided.
- the execution subject of the method for a robot to obtain a resource file according to an embodiment of the present invention is the first server.
- the method for the robot to obtain resource files specifically includes the following steps:
- Step S102 Acquire a link acquisition request sent by a robot.
- the link acquisition request is sent from the robot end to the first server end, and is used to instruct the first server to send the resource file link to the robot.
- the robot in order to ensure the resource update of the robot, may send a link acquisition request to the first server in any of the following situations.
- the robot After obtaining the resource file, if the robot judges that there is a resource file to be updated, it will be updated and updated. After shutdown, if the robot judges that there is no resource file to be updated, then the robot will directly shut down. 3.
- the robot sends a link acquisition request to the first server every preset time: for example, the preset time is set to 1 month, so that the robot can periodically update resources, and if the robot is turned on or off Send a link acquisition request to the server, because the robot may be turned on for a long time, so the resource cannot be updated in time. 4.
- the robot sends a link acquisition request to the first server according to the resource update command sent by the robot control terminal: As shown in FIG.
- the system in addition to the robot 204, the first server 206, and the second server 208, the system also includes a robot control terminal 202. It is used to control the robot 204, including the resource update of the control robot 204. Since the robot control terminal 202 is provided, the resource update of the robot 202 can be more intelligently and accurately controlled. That is, the robot control terminal 202 sends a resource update command to the robot to control the robot to update the resource when it knows that there are new resources. It is guaranteed that the second server must have new resources for the robot to update, and simply adopting the method of 1 to 3 does not guarantee that the second server has new resources for the robot to update.
- the robot control terminal 202 can perform unified control and management on multiple robots. 5.
- the robot sends a link acquisition request to the first server according to the resource update information sent by the first server: when the first server receives a new resource, it actively sends resource update information to the robot, instructing the robot to send the link acquisition to the first server Request to update resources, so that the robot's resource updates can be more intelligently and accurately controlled.
- Step S104 Generate a resource file link according to the link acquisition request.
- the resource file corresponding to the resource file link can be downloaded.
- the method before acquiring the link acquisition request sent by the robot in step 102, the method further includes step 301: acquiring a token request sent by the robot, and generating a token according to the token request , Sending the generated token to the robot, so that the robot sends a link acquisition request including resource identification information and a token; correspondingly, in step 104, generating a resource file link according to the link acquisition request, including Step 304: Generate a resource file link according to the token and the resource identification information.
- the token request includes a token acquisition identifier, which is used to instruct the first server to send a token to the robot.
- the token request also includes robot identification information, indicating the identity of the robot That is, the first server only issues tokens to certain specific robots.
- the first server is a server of a certain robot company, and the first server will only issue tokens to the robots of the company.
- the robot identification information may be identification information composed of numbers and/or letters and/or characters.
- the robot identification information is companymingcheng-companiesdizhi-companiesfuwudianhua-jiqirenbiaohao, and the robot identification information includes the company name, company address, company Service phone and robot number.
- the token request is generated after the robot enters the account and password to the first server.
- the robot enters the account and password to log in to the first server.
- the robot will Receive the instruction information sent by the first server, the instruction information instructs the robot to send a token request to the first server, for example, the instruction information is: keyijieshoulingpai, on behalf of the robot can send a token request, the first server is willing to receive the order sent by the robot
- the card request, or the indication information: bukeyijieshoulingpai represents that the first server refuses to receive the token request sent by the robot.
- the first server After receiving the token request sent by the robot, the first server generates a token according to the received token request and sends it to the robot.
- the token may be generated based on the robot identification information and the time when the first server receives the token request.
- the robot identification information is companymingcheng-companiesdizhi-companiesfuwudianhua-jiqirenbiaohao
- the first server receives the order
- the time of the card request is 19:01:01 on May 19, 2020, so the tokens generated are as follows:
- the resource identification information includes a robot version identification.
- generating a resource file link based on the token and the resource identification information includes:
- Step 304A Acquire resource file information corresponding to the robot version according to the robot version identifier.
- the identifier can obtain the storage location of the resource file information of the resource file corresponding to the robot version from the first server, and then find the storage location to obtain all resource file information corresponding to the robot version.
- a robot version identifier is jiqirenxitongV2.1
- the resource file information corresponding to the version identifier is stored in a folder: E: ⁇ ABC Company ⁇ Robot version identifier ⁇ jiqirenxitongV2.1 ⁇
- another robot version identifier is jiqirenxitongV3.
- the storage location of the resource file information corresponding to the version identifier is the folder: E: ⁇ ABC Company ⁇ Robot version identifier ⁇ jiqirenxitongV3.1 ⁇ . Below these two folders, resource file information of all resource files of this version is stored.
- the resource file information stored on the first server is stored in the same location, that is, the resource file information corresponding to all robot versions is placed in the same location, but the resource file information is named according to the robot version identifier and resource file number. To distinguish the different resource file information of different robot versions in this position.
- the resource file information corresponding to all versions of the robot is stored in the folder "E: ⁇ ABC Company ⁇ Robot version ID ⁇ ".
- the jiqirenxitong V2.1 version includes 2 resource files, and the resource file information of one resource file is stored.
- resource file information of another resource file E: ⁇ ABC company ⁇ Robot version identification ⁇ jiqirenxitongV2.1-2, jiqirenxitongV3.1 version includes 2 Resource file, the resource file information of one resource file is stored in E: ⁇ ABC company ⁇ Robot version identification ⁇ jiqirenxitongV3.1-1, and the resource file information of another resource file E: ⁇ ABC company ⁇ Robot version identification ⁇ jiqirenxitongV3. 1-2.
- the content of the resource file information can be obtained.
- a robot version includes one or more resource files.
- the resource file information includes resource file address information
- the resource file address information is used to indicate the location of the resource file in the second server.
- Obtaining the resource file information corresponding to the robot version by using the resource file information includes generating a resource file link corresponding to the robot version according to the token and the resource file address information.
- the generating a resource file link corresponding to the robot version according to the token and the resource file address information includes: generating a prefix of the resource file link according to the token; generating according to the resource file address information Specific link address; combine the prefix and the specific link address to obtain the resource file link.
- the content of a resource file address information is: E: ⁇ Second Server ⁇ ABC Company ⁇ Robot Version Identification ⁇ jiqirenxitongV2.1-1
- the token content is: companymingcheng-companiesdizhi-companiesfuwudianhua-jiqirenbiaohao-20200519-19-01 -01, first generate the prefix of the resource file link based on the token: Https://, then generate a specific address based on the resource file address information: www.jiqiren.com/, and finally combine the prefix and the specific address to obtain the resource file
- the link is: https://www.jiqiren.com/.
- the resource file information includes a resource file link.
- obtaining a resource file link corresponding to the robot version based on the token and the resource file information includes: verifying the order If the card passes the verification, the resource file link corresponding to the robot version is obtained.
- the first server after sending the token to the robot, the first server temporarily stores the token. Since the token is also stored on the first server, if the token sent by the robot received by the first server is If the tokens stored on the first server are the same, the verification is passed, and all resource file links corresponding to the robot version are obtained. If the token sent by the robot received by the first server is different from the token stored on the first server , The verification fails, and the operation of acquiring all resource file links corresponding to the robot version is not performed. After the verification is passed, the first server deletes the token; or within a certain period of time, the first server does not receive the verification request, then the first server deletes the token; or, within a certain period of time, the verification fails, Then the first server deletes the token.
- the resource identification information includes a target resource identification.
- generating a resource file link based on the token and the resource identification information includes:
- Step 3041 Acquire resource file information of the target resource according to the target resource identifier.
- the target resource identifier is used to indicate resource file information of a target resource that needs to be acquired.
- the target resource identifier is associated with the resource file information of the target resource, that is, as long as the target resource identifier is known, the resource file information of the target resource corresponding to the target resource identifier can be obtained.
- the storage location of the resource file information of the target resource is obtained according to the target resource identifier, so that the content of the resource file information of the target resource is obtained after the location is found.
- the jiqirenxitong V3.1 version includes 3 resource files
- the target resource identifier is jiqirenxitong V3.1-1, which is used to indicate that the target resource to be obtained is the resource file numbered 1 in the robot system V3.1 version, and then obtain the robot system
- the location of the resource file information of the resource file numbered 1 in the V3.1 version is: E: ⁇ ABC Company ⁇ Robot resource file information ⁇ jiqirenxitongV3.1-1, so that the robot system V3.1 can be obtained after the location is found
- Resource file information of the resource file numbered 1 in the version E: ⁇ Second Server ⁇ ABC Company ⁇ Robot Resource File Storage Location ⁇ jiqirenxitongV3.1-1.
- Step 3042 Generate a resource file link of the target resource according to the token and the resource file information.
- the resource file link of the target resource can be generated by referring to the two ways of step 304B, which will not be described in detail here.
- Step S106 Send the resource file link to the robot, so that the robot obtains the corresponding resource file from the server according to the resource file link.
- the server is a second server different from the first server. After receiving the resource file link, the robot will obtain the corresponding resource file from the second server according to the received resource file link.
- each robot can automatically update the resource without the help of the robot administrator, which greatly improves the efficiency of the robot resource update.
- the first server is only used to manage the link of the robot, and the dedicated resource management server, the second server, is used for resources Downloading also greatly reduces the storage capacity of the first server and reduces the storage burden of the first server.
- FIG. 6 is an application environment diagram of a method for a robot to obtain resource files in an embodiment.
- the method for the robot to obtain resource files is applied to the system 600 for the robot to obtain resource files.
- the system 600 for robots to obtain resource files includes a robot 602, a first server 604, and a second server 606.
- the robot 602 is connected to the first server 604 and the second server 606 through a network, respectively.
- the robot 602 is used to send a link acquisition request to the first server 604; the first server 604 is used to generate a resource file link of the robot 602 according to the link acquisition request and link the resource The file link is sent to the robot 602; the robot 602 is also used to obtain the corresponding resource file from the second server 606 according to the resource file link.
- the robot sends a link acquisition request to the first server; then the first server generates a resource file link according to the link acquisition request, and the first server sends the resource file link to the Robot; Finally, the robot obtains the corresponding resource file from the second server according to the resource file link.
- the robot administrator does not need to first obtain the new system and import the robot, but when the robot has resources to update, it directly sends a link acquisition request to the first server, and then the first server sends the resource file link Give the robot, and finally the robot obtains the corresponding resource file from the second server according to the resource file link.
- each robot can automatically update the resource without the help of the robot administrator, which greatly improves the efficiency of the robot resource update.
- the first server is only used to manage the link of the robot, and the dedicated resource management server, the second server, is used for resources Downloading also greatly reduces the storage capacity of the first server and reduces the storage burden of the first server.
- the robot 602 is further used to: send a token request to the first server 604; the first server 604 is also used to generate a token and generate a command according to the token request
- the card is sent to the robot 602; the robot 602 is also used to generate a link acquisition request based on the received token and resource identification information, and send the generated link acquisition request to the first server 604; the first server 604 is also used to generate a resource file link according to the token and the resource identification information.
- the resource identification information includes a robot version identification; the first server 604 is further configured to: obtain resource file information corresponding to the robot version according to the robot version identification; based on the token and For the resource file information, a resource file link corresponding to the robot version is obtained.
- the resource identification information includes a target resource identification; the first server 604 is further configured to: obtain resource file address information of the target resource according to the target resource identification; based on the token and the The resource file address information generates a resource file link of the target resource.
- FIG. 7 shows an apparatus 700 for a robot to obtain a resource file provided by an embodiment of the present invention, including: an acquisition module 702 for acquiring a link acquisition request sent by a robot; a generation module 704 for acquiring a link acquisition request according to the link, Generate a resource file link; a sending module 706 is used to send the resource file link to the robot, so that the robot obtains the corresponding resource file from the server according to the resource file link.
- the robot In the device for the robot to obtain resource files, the robot first sends a link acquisition request to the first server; then the first server generates a resource file link according to the link acquisition request, and the first server sends the resource file link to the Robot; Finally, the robot obtains the corresponding resource file from the second server according to the resource file link. It can be seen that through the above method, the robot administrator does not need to first obtain the new system and import the robot, but when the robot has resources to update, it directly sends a link acquisition request to the first server, and then the first server sends the resource file link Give the robot, and finally the robot obtains the corresponding resource file from the second server according to the resource file link.
- the apparatus 700 for a robot to obtain a resource file further includes: a token generation module for acquiring a token request sent by the robot, generating a token according to the token request, and generating the token The token is sent to the robot, so that the robot sends a link acquisition request containing resource identification information and a token; correspondingly, the generation module 704 includes: a resource identification link generation module for Generate a resource file link with the resource identification information.
- the resource identification information includes a robot version identification;
- the resource identification link generation module includes: a resource file information acquisition module for acquiring resources corresponding to the robot version according to the robot version identification File information; resource file information link acquisition module, used to obtain a resource file link corresponding to the robot version according to the token and the resource file information.
- the resource identification information includes a target resource identification;
- the resource identification link generation module includes: a target resource file address acquisition module for acquiring resource file address information of the target resource according to the target resource identification
- the target resource file link generation module is used to generate a resource file link of the target resource based on the token and the address information of the resource file.
- FIG. 8 shows an internal structure diagram of a computer device in an embodiment.
- the computer device may be a server.
- the computer device includes a processor, memory, and network interface connected by a system bus.
- the memory includes a non-volatile storage medium and an internal memory.
- the non-volatile storage medium of the computer device stores an operating system and may also store a computer program.
- the processor may enable the processor to implement a method for the robot to obtain resource files.
- a computer program may also be stored in the internal memory.
- the processor may cause the processor to execute a method for the robot to obtain resource files.
- the specific computer device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
- a computer device includes a memory and a processor.
- the memory stores a computer program.
- the processor is caused to perform the following steps: obtain a link acquisition request sent by a robot;
- the link acquisition request generates a resource file link; sends the resource file link to the robot, so that the robot obtains the corresponding resource file from the server according to the resource file link.
- each robot can automatically update the resource without the help of the robot administrator, which greatly improves the efficiency of the robot resource update.
- the first server is only used to manage the link of the robot, and the dedicated resource management server, the second server, is used for resources Downloading also greatly reduces the storage capacity of the first server and reduces the storage burden of the first server.
- the above computer program when executed by the processor, it is also used to perform the following steps: obtain a token request sent by the robot, generate a token according to the token request, and send the generated token to The robot, so that the robot sends a link acquisition request including resource identification information and a token; and generating a resource file link according to the link acquisition request includes: according to the token and the resource identification information, Generate resource file links.
- the resource identification information includes a target resource identification; the generating a resource file link based on the token and the resource identification information includes: acquiring a resource file of the target resource based on the target resource identification Address information; generate a resource file link of the target resource based on the token and the address information of the resource file.
- a computer-readable storage medium which stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the following steps: obtain a link acquisition request sent by a robot; The link acquisition request generates a resource file link; sends the resource file link to the robot, so that the robot obtains the corresponding resource file from the server according to the resource file link.
- the robot first sends a link acquisition request to the first server; then the first server generates a resource file link according to the link acquisition request, and the first server sends the resource file link to the robot; finally , The robot obtains the corresponding resource file from the second server according to the resource file link.
- the robot administrator does not need to first obtain the new system and import the robot, but when the robot has resources to update, it directly sends a link acquisition request to the first server, and then the first server sends the resource file link Give the robot, and finally the robot obtains the corresponding resource file from the second server according to the resource file link.
- the above computer program when executed by the processor, it is also used to perform the following steps: obtain a token request sent by the robot, generate a token according to the token request, and send the generated token to The robot, so that the robot sends a link acquisition request including resource identification information and a token; and generating a resource file link according to the link acquisition request includes: according to the token and the resource identification information, Generate resource file links.
- the resource identification information includes a robot version identification; the generating a resource file link based on the token and the resource identification information includes: acquiring the robot version according to the robot version identification Corresponding resource file information; based on the token and the resource file information, a resource file link corresponding to the robot version is obtained.
- the method for a robot to obtain a resource file according to an embodiment of the present invention, the device, the computer device, and the computer-readable storage medium for the robot to obtain a resource file belong to the same inventive concept and are used by the robot to obtain a resource file
- the content in the embodiment of the method, the device for the robot to obtain the resource file, the computer device, and the computer-readable storage medium may be applicable to each other.
- Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM random access memory
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous chain Road (Synchlink) DRAM
- RDRAM direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种用于机器人获取资源文件的方法、系统、装置、计算机设备及存储介质,包括:获取机器人发送的链接获取请求;根据所述链接获取请求,生成资源文件链接;将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。通过上述方式,提高了机器人资源更新的效率。
Description
本发明涉及机器人技术领域,尤其涉及一种用于机器人获取资源文件的方法、系统、装置、计算机设备和存储介质。
随着人工智能技术的不断发展,机器人行业也在如火如荼的发展,通过机器人作业来替代人工作业是未来机器人的发展方向。现有技术中,机器人为了实现某一资源的更新,通常的方式通过升级系统来实现该资源的更新。
但是,这样的方式需要人工首先获取到更新的系统,然后再一一向不同的机器人导入新的系统以完成机器人的某一资源的更新,显然,对多个机器人执行这样的操作以完成机器人资源的更新效率低下。
基于此,有必要针对上述问题,提出一种效率高的用于机器人获取资源文件的方法、系统、装置、计算机设备和存储介质。
一种用于机器人获取资源文件的方法,所述方法包括:
获取机器人发送的链接获取请求;
根据所述链接获取请求,生成资源文件链接;
将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
一种用于机器人获取资源文件的系统,所述系统包括:
机器人、第一服务器和第二服务器;
所述机器人用于向所述第一服务器发送链接获取请求;
所述第一服务器用于根据所述链接获取请求,生成所述机器人的资源文件链接,将所述资源文件链接发送给所述机器人;
所述机器人还用于根据所述资源文件链接从所述第二服务器获取对应的资源文件。
一种用于机器人获取资源文件的装置,所述装置包括:
获取模块,用于获取机器人发送的链接获取请求;
生成模块,用于根据所述链接获取请求,生成资源文件链接;
发送模块,用于将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:
获取机器人发送的链接获取请求;
根据所述链接获取请求,生成资源文件链接;
将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以下步骤:
获取机器人发送的链接获取请求;
根据所述链接获取请求,生成资源文件链接;
将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
实施本发明实施例,将具有如下效果:
本发明提出了一种用于机器人获取资源文件的方法、系统、装置、计算机设备和存储介质,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
其中:
图1为一个实施例中用于机器人获取资源文件的方法的实现流程示意图;
图2为一个实施例中用于机器人获取资源文件的系统的示意图;
图3为一个实施例中用于机器人获取资源文件的方法的实现流程示意图;
图4为一个实施例中步骤304的实现流程示意图;
图5为一个实施例中步骤304的实现流程示意图;
图6为一个实施例中用于机器人获取资源文件的系统的应用环境图;
图7为一个实施例中用于机器人获取资源文件的装置的结构框图;
图8为一个实施例中计算机设备的结构框图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1所示,在一个实施例中,提供了一种用于机器人获取资源文件的方法,本发明实施例所述的用于机器人获取资源文件的方法的执行主体为第一服务器。该用于机器人获取资源文件的方法,具体包括如下步骤:
步骤S102,获取机器人发送的链接获取请求。
所述链接获取请求,由机器人端发送至第一服务器端,用于指示第一服务器向机器人发送资源文件链接。
在本发明实施例中,为了保证机器人的资源更新,机器人可以在以下任意一种情况向第一服务器发送链接获取请求。
1、机器人每次启动后的预设时间内,向第一服务器发送链接获取请求:为了保证在机器人执行任务之前就能获取到最新的资源,所以,在机器人启动后的预设时间内,比如机器人启动后的5分钟内,向第一服务器发送链接获取请求,以在执行任务前及时更新系统资源,保证更好的执行任务。2、机器人每次关机时,向第一服务器发送链接获取请求:由于机器人刚启动的时候,有很多机器人内部程序都要启动,所以,选择在机器人启动后的预设时间内发送链接获取请求可能会增加机器人的负担,所以选择在机器人即将关机时,向第一服务器发送链接获取请求,在获取到资源文件之后,如果经过机器人判断发现有要更新的资源文件,那么将进行更新,并在更新之后关机,如果经过机器人判断发现没有要更新的资源文件,那么机器人将直接关机。3、机器人每隔预设时间,向第一服务器发送链接获取请求:例如,预设时间设置为1个月,这样的话,机器人能够定时的进行资源更新,而如果是在机器人开机或者关机的时候向服务器发送链接获取请求,那么由于机器人可能长时间处于开机状态,导致不能及时更新资源。4、机器人根据机器人控制终端发送的资源更新命令,向第一服务器发送链接获取请求:如图2所示,除了机器人204、第一服务器206和第二服务器208,系统还包括机器人控制终端202,用于控制机器人204,包括控制机器人204的资源更新。由于设置有机器人控制终端202,使得机器人202的资源更新能够得到更为智能、准确的控制,即机器人控制终端202在知晓有新资源的时候,向机器人发送资源更新命令,控制机器人进行资源更新,保证第二服务器一定有新的资源供机器人更新,而单纯的采用1到3的方式,并不能保证第二服务器有新的资源供机器人更新。机器人控制终端202可以对多个机器人进行统一控制管理。5、机器人根据第一服务器发送的资源更新信息,向第一服务器发送链接获取请求:第一服务器在接收到新资源的时候,主动向机器人发送资源更新信息,指示机器人向第一服务器发送链接获取请求以更新资源,这样使得机器人的资源更新能够得到更为智能、准确的控制。
步骤S104,根据所述链接获取请求,生成资源文件链接。
通过访问资源文件链接,能够下载到与该资源文件链接对应的资源文件。
在本发明实施例中,如图3所示,在步骤102所述获取机器人发送的链接获取请求之前,还包括步骤301:获取机器人发送的令牌请求,根据所述令牌请求,生成令牌,将生成的令牌发送给所述机器人,以使所述机器人发送包含资源标识信息和令牌的链接获取请求;相应的,步骤104所述根据所述链接获取请求,生成资源文件链接,包括步骤304:根据所述令牌和所述资源标识信息,生成资源文件链接。
为了保证资源的安全性,引入了令牌来控制资源的下载。
在一个实施例中,令牌请求中包括令牌获取标识,该令牌获取标识,用于指示第一服务器向机器人发送令牌,同时,令牌请求中还包括机器人标识信息,表明机器人的身份,即第一服务器只向某些特定的机器人下发令牌,比如,第一服务器是某一机器人公司的服务器,该第一服务器只会向该公司的机器人下发令牌。所述机器人标识信息,可以是由数字和/或字母和/或字符组成的标识信息,例如,机器人标识信息为gongsimingcheng-gongsidizhi-gongsifuwudianhua-jiqirenbiaohao,该机器人标识信息包含了公司名称、公司地址、公司服务电话和机器人编号。
在一个实施例中,令牌请求在机器人向第一服务器输入账号和密码后生成,例如,机器人输入登录第一服务器的账号和密码,若第一服务器检测到账号和密码输入正确,机器人端会接收到第一服务器发送的指示信息,该指示信息指示机器人向第一服务器发送令牌请求,例如,指示信息为:keyijieshoulingpai,代表机器人可以发送令牌请求,第一服务器愿意接收该机器人发送的令牌请求,或指示信息为:bukeyijieshoulingpai,代表第一服务器拒绝接收该机器人发送的令牌请求。
第一服务器在接收到机器人发送的令牌请求之后,根据接收到的令牌请求,生成令牌,并发送给机器人。在本发明实施例中,所述令牌,可以根据机器人标识信息和第一服务器接收到令牌请求的时间生成,例如,机器人标识信息为gongsimingcheng-gongsidizhi-gongsifuwudianhua-jiqirenbiaohao,第一服务器接收到令牌请求的时间为2020年5月19日19:01:01,于是,生成的令牌如下:
gongsimingcheng-gongsidizhi-gongsifuwudianhua-jiqirenbiaohao-20200519-19-01-01。
所述资源标识信息,用于指示机器人想要获取的资源文件的资源文件信息,所述资源标识信息可以包括机器人版本标识和目标资源标识,其中,所述机器人版本标识,用于指示机器人想要获取某一版本的所有资源文件的资源文件信息;所述目标资源标识信息,用于指示机器人想要获取某一目标资源文件的资源文件信息。
在一个实施例中,所述资源标识信息包括机器人版本标识,步骤304所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:
步骤304A,根据所述机器人版本标识,获取与所述机器人版本对应的资源文件信息。
可选的,按照机器人的版本区分资源文件信息在第一服务器中的存储位置,即机器人系统版本不同,该版本对应的资源文件的资源文件信息在第一服务器中存放的位置不同,通过机器人版本标识能够从第一服务器中获取到与机器人版本对应的资源文件的资源文件信息的存放位置,然后找到该存放位置,获取到与所述机器人版本对应的所有的资源文件信息。
例如,某一机器人版本标识为jiqirenxitongV2.1,该版本标识对应的资源文件信息的存放位置为文件夹:E:\ABC公司\机器人版本标识\jiqirenxitongV2.1\,另一机器人版本标识为jiqirenxitongV3.1,该版本标识对应的资源文件信息的存放位置为文件夹:E:\ABC公司\机器人版本标识\jiqirenxitongV3.1\。在这两个文件夹下面,存放的是该版本所有资源文件的资源文件信息。
可选的,第一服务器端存储的资源文件信息,均存储在同一位置,即所有机器人版本对应的资源文件信息均放在同一位置,但是资源文件信息根据机器人版本标识和资源文件编号进行命名,以区分该位置下不同机器人版本的不同资源文件信息。
例如,机器人所有版本对应的资源文件信息均存放在文件夹“E:\ABC公司\机器人版本标识\”下,假设,jiqirenxitongV2.1版本包括2个资源文件,其中一个资源文件的资源文件信息存放在E:\ABC公司\机器人版本标识\jiqirenxitongV2.1-1中,另一个资源文件的资源文件信息E:\ABC公司\机器人版本标识\jiqirenxitongV2.1-2中,jiqirenxitongV3.1版本包括2个资源文件,其中一个资源文件的资源文件信息存放在E:\ABC公司\机器人版本标识\jiqirenxitongV3.1-1中,另一个资源文件的资源文件信息E:\ABC公司\机器人版本标识\jiqirenxitongV3.1-2中。
在找到资源文件信息的存放位置之后即可获取到资源文件信息的内容。
步骤304B,根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
在本发明实施例中,一个机器人版本,包括一个或多个资源文件。
在一个实施例中,所述资源文件信息包括资源文件地址信息,所述资源文件地址信息用于指示资源文件所在第二服务器中的位置,相应的,步骤304B所述根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接,包括:根据所述令牌和所述资源文件地址信息,生成与所述机器人版本对应的资源文件链接。
具体的,所述根据所述令牌和所述资源文件地址信息,生成与所述机器人版本对应的资源文件链接,包括:根据令牌,生成资源文件链接的前缀;根据资源文件地址信息,生成具体的链接地址;将前缀和具体的链接地址进行组合,得到资源文件链接。
例如,某一资源文件地址信息的内容为:E:\第二服务器\ABC公司\机器人版本标识\jiqirenxitongV2.1-1,令牌内容为:gongsimingcheng-gongsidizhi-gongsifuwudianhua-jiqirenbiaohao-20200519-19-01-01,首先根据令牌,生成资源文件链接的前缀:Https://,然后根据资源文件地址信息生成具体的地址:www.jiqiren.com/,最后将前缀和具体的地址进行组合得到资源文件链接为:https://www.jiqiren.com/。
在一个实施例中,所述资源文件信息包括资源文件链接,步骤304B所述根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接,包括:验证所述令牌,若验证通过,则获取与所述机器人版本对应的资源文件链接。
在这里,第一服务器在向机器人发送令牌后,会对令牌进行暂时的存储,由于第一服务器端也存储了该令牌,因此,若第一服务器接收到的机器人发送的令牌与第一服务器端存储的令牌相同,则验证通过,获取与所述机器人版本对应的所有资源文件链接,若第一服务器接收到的机器人发送的令牌与第一服务器端存储的令牌不相同,则验证不通过,不执行获取与所述机器人版本对应的所有资源文件链接的操作。在验证通过之后,第一服务器删除该令牌;或者在一定时间内,第一服务器没有接收到验证请求,则第一服务器删除该令牌;再或者,在一定时间内,均验证不通过,则第一服务器删除该令牌。
在一个实施例中,所述资源标识信息包括目标资源标识,步骤304所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:
步骤3041,根据所述目标资源标识,获取目标资源的资源文件信息。
所述目标资源标识,用于指示需要获取的某一个目标资源的资源文件信息。目标资源标识与目标资源的资源文件信息进行关联,即只要知道了目标资源标识,就能获取到与该目标资源标识对应的目标资源的资源文件信息。在这里,根据所述目标资源标识获取到目标资源的资源文件信息的存放位置,从而在找到该位置后获取到该目标资源的资源文件信息的内容。
例如,jiqirenxitongV3.1版本包括3个资源文件,目标资源标识为jiqirenxitongV3.1-1,用于指示需要获取的目标资源是机器人系统V3.1版本中编号为1的资源文件,然后获取到机器人系统V3.1版本中编号为1的资源文件的资源文件信息的存放位置为:E:\ABC公司\机器人资源文件信息\jiqirenxitongV3.1-1,从而在找到该位置后获取到机器人系统V3.1版本中编号为1的资源文件的资源文件信息:E:\第二服务器\ABC公司\机器人资源文件存放位置\jiqirenxitongV3.1-1。
步骤3042,根据所述令牌和所述资源文件信息,生成所述目标资源的资源文件链接。
在这里,可以参照步骤304B的两种方式生成目标资源的资源文件链接,在此不再详述。
步骤S106,将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
在这里,所述服务器为区别于所述第一服务器的第二服务器。机器人在接收到资源文件链接后,将根据接收到的资源文件链接从第二服务器获取对应的资源文件。
上述用于机器人获取资源文件的方法,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
图6为一个实施例中用于机器人获取资源文件的方法的应用环境图。参照图6,该用于机器人获取资源文件的方法应用于用于机器人获取资源文件的系统600。该用于机器人获取资源文件的系统600包括机器人602、第一服务器604和第二服务器606。机器人602分别和第一服务器604和第二服务器606通过网络连接。具体的,所述机器人602用于向所述第一服务器604发送链接获取请求;所述第一服务器604用于根据所述链接获取请求,生成所述机器人602的资源文件链接,将所述资源文件链接发送给所述机器人602;所述机器人602还用于根据所述资源文件链接从所述第二服务器606获取对应的资源文件。
上述用于机器人获取资源文件的系统,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
在一个实施例中,所述机器人602还用于:向所述第一服务器604发送令牌请求;所述第一服务器604还用于根据所述令牌请求,生成令牌并将生成的令牌发送给所述机器人602;所述机器人602还用于根据接收到的令牌和资源标识信息生成链接获取请求,将生成的链接获取请求发送给所述第一服务器604;所述第一服务器604还用于根据所述令牌和所述资源标识信息,生成资源文件链接。
在一个实施例中,所述资源标识信息包括机器人版本标识;所述第一服务器604还用于:根据所述机器人版本标识获取与所述机器人版本对应的资源文件信息;根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
在一个实施例中,所述资源标识信息包括目标资源标识;所述第一服务器604还用于:根据所述目标资源标识,获取目标资源的资源文件地址信息;根据所述令牌和所述资源文件地址信息,生成所述目标资源的资源文件链接。
图7示出了本发明实施例提供的用于机器人获取资源文件的装置700,包括:获取模块702,用于获取机器人发送的链接获取请求;生成模块704,用于根据所述链接获取请求,生成资源文件链接;发送模块706,用于将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
上述用于机器人获取资源文件的装置,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
在一个实施例中,所述用于机器人获取资源文件的装置700,还包括:令牌生成模块,用于获取机器人发送的令牌请求,根据所述令牌请求,生成令牌,将生成的令牌发送给所述机器人,以使所述机器人发送包含资源标识信息和令牌的链接获取请求;相应的,所述生成模块704,包括:资源标识链接生成模块,用于根据所述令牌和所述资源标识信息,生成资源文件链接。
在一个实施例中,所述资源标识信息包括机器人版本标识;所述资源标识链接生成模块,包括:资源文件信息获取模块,用于根据所述机器人版本标识,获取与所述机器人版本对应的资源文件信息;资源文件信息链接获取模块,用于根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
在一个实施例中,所述资源标识信息包括目标资源标识;所述资源标识链接生成模块,包括:目标资源文件地址获取模块,用于根据所述目标资源标识,获取目标资源的资源文件地址信息;目标资源文件链接生成模块,用于根据所述令牌和所述资源文件地址信息,生成所述目标资源的资源文件链接。
图8示出了一个实施例中计算机设备的内部结构图。该计算机设备可以是服务器。如图8所示,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现用于机器人获取资源文件的方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行用于机器人获取资源文件的方法。本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,本申请提供的用于机器人获取资源文件的方法可以实现为一种计算机程序的形式,计算机程序可在如图8所示的计算机设备上运行。计算机设备的存储器中可存储组成用于机器人获取资源文件的装置700的各个程序模板。比如,获取模块702、生成模块704、发送模块706。
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:获取机器人发送的链接获取请求;根据所述链接获取请求,生成资源文件链接;将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
上述计算机设备,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:获取机器人发送的令牌请求,根据所述令牌请求,生成令牌,将生成的令牌发送给所述机器人,以使所述机器人发送包含资源标识信息和令牌的链接获取请求;所述根据所述链接获取请求,生成资源文件链接,包括:根据所述令牌和所述资源标识信息,生成资源文件链接。
在一个实施例中,所述资源标识信息包括机器人版本标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述机器人版本标识,获取与所述机器人版本对应的资源文件信息;根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
在一个实施例中,所述资源标识信息包括目标资源标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述目标资源标识,获取目标资源的资源文件地址信息;根据所述令牌和所述资源文件地址信息,生成所述目标资源的资源文件链接。
在一个实施例中,提出了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以下步骤:获取机器人发送的链接获取请求;根据所述链接获取请求,生成资源文件链接;将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
上述计算机可读存储介质,首先机器人向第一服务器发送链接获取请求;然后第一服务器根据所述链接获取请求,生成资源文件链接,第一服务器将所述资源文件链接发送给所述机器人;最后,所述机器人根据所述资源文件链接从第二服务器获取对应的资源文件。可见,通过上述方式,机器人管理人员不用再首先获取到新系统并导入机器人,而是在机器人有资源需要更新的时候,直接发送链接获取请求到第一服务器,然后第一服务器将资源文件链接发送给机器人,最后机器人根据资源文件链接从第二服务器获取对应的资源文件,这样,每个机器人不用机器人管理人员的帮助就能实现资源的自动更新,大大的提高了机器人资源更新的效率,同时,也不用每次要更新某个资源就要通过更新系统实现,而可以直接更新该资源,最后,由于第一服务器只是用于管理机器人的链接,而专用的资源管理服务器即第二服务器用于资源下载,也大大的减少了第一服务器的存储量,降低了第一服务器的存储负担。
在一个实施例中,上述计算机程序被所述处理器执行时,还用于执行以下步骤:获取机器人发送的令牌请求,根据所述令牌请求,生成令牌,将生成的令牌发送给所述机器人,以使所述机器人发送包含资源标识信息和令牌的链接获取请求;所述根据所述链接获取请求,生成资源文件链接,包括:根据所述令牌和所述资源标识信息,生成资源文件链接。
在一个实施例中,所述资源标识信息包括机器人版本标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述机器人版本标识,获取与所述机器人版本对应的资源文件信息;根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
在一个实施例中,所述资源标识信息包括目标资源标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述目标资源标识,获取目标资源的资源文件地址信息;根据所述令牌和所述资源文件地址信息,生成所述目标资源的资源文件链接。
需要说明的是,本发明实施例所述的用于机器人获取资源文件的方法,用于机器人获取资源文件的装置、计算机设备和计算机可读存储介质属于同一个发明构思,用于机器人获取资源文件的方法、用于机器人获取资源文件的装置、计算机设备和计算机可读存储介质的实施例中的内容可相互适用。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)
DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。请输入具体实施内容部分。
Claims (11)
- 一种用于机器人获取资源文件的方法,其特征在于,包括:获取机器人发送的链接获取请求;根据所述链接获取请求,生成资源文件链接;将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
- 根据权利要求1所述的方法,其特征在于,在所述获取机器人发送的链接获取请求之前,还包括:获取机器人发送的令牌请求,根据所述令牌请求,生成令牌,将生成的令牌发送给所述机器人,以使所述机器人发送包含资源标识信息和令牌的链接获取请求;所述根据所述链接获取请求,生成资源文件链接,包括:根据所述令牌和所述资源标识信息,生成资源文件链接。
- 根据权利要求2所述的方法,其特征在于,所述资源标识信息包括机器人版本标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述机器人版本标识,获取与所述机器人版本对应的资源文件信息;根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
- 如权利要求2所述的方法,其特征在于,所述资源标识信息包括目标资源标识;所述根据所述令牌和所述资源标识信息,生成资源文件链接,包括:根据所述目标资源标识,获取目标资源的资源文件信息;根据所述令牌和所述资源文件信息,生成所述目标资源的资源文件链接。
- 一种用于机器人获取资源文件的系统,其特征在于,包括机器人、第一服务器和第二服务器;所述机器人用于向所述第一服务器发送链接获取请求;所述第一服务器用于根据所述链接获取请求,生成所述机器人的资源文件链接,将所述资源文件链接发送给所述机器人;所述机器人还用于根据所述资源文件链接从所述第二服务器获取对应的资源文件。
- 根据权利要求5所述的系统,其特征在于,所述机器人还用于向所述第一服务器发送令牌请求;所述第一服务器还用于根据所述令牌请求,生成令牌并将生成的令牌发送给所述机器人;所述机器人还用于根据接收到的令牌和资源标识信息生成链接获取请求,将生成的链接获取请求发送给所述第一服务器;所述第一服务器还用于根据所述令牌和所述资源标识信息,生成资源文件链接。
- 根据权利要求6所述的系统,其特征在于,所述资源标识信息包括机器人版本标识;所述第一服务器还用于根据所述机器人版本标识获取与所述机器人版本对应的资源文件信息;根据所述令牌和所述资源文件信息,得到与所述机器人版本对应的资源文件链接。
- 根据权利要求6所述的系统,其特征在于,所述资源标识信息包括目标资源标识;所述第一服务器还用于根据所述目标资源标识,获取目标资源的资源文件地址信息;根据所述令牌和所述资源文件地址信息,生成所述目标资源的资源文件链接。
- 一种用于机器人获取资源文件的装置,其特征在于,包括:获取模块,用于获取机器人发送的链接获取请求;生成模块,用于根据所述链接获取请求,生成资源文件链接;发送模块,用于将所述资源文件链接发送给所述机器人,以使所述机器人根据所述资源文件链接从服务器获取对应的资源文件。
- 一种计算机设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至4任一项所述用于机器人获取资源文件的方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述用于机器人获取资源文件的方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811585296.2A CN111355762A (zh) | 2018-12-24 | 2018-12-24 | 用于机器人获取资源文件的方法、系统和装置 |
| CN201811585296.2 | 2018-12-24 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020132889A1 true WO2020132889A1 (zh) | 2020-07-02 |
Family
ID=71126802
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/123610 Ceased WO2020132889A1 (zh) | 2018-12-24 | 2018-12-25 | 用于机器人获取资源文件的方法、系统和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111355762A (zh) |
| WO (1) | WO2020132889A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110289496A1 (en) * | 2010-05-18 | 2011-11-24 | North End Technologies, Inc. | Method & apparatus for load balancing software update across a plurality of publish/subscribe capable client devices |
| CN102624762A (zh) * | 2011-01-30 | 2012-08-01 | 深圳市腾讯计算机系统有限公司 | 基于云计算提升机器人软件功能的方法和云计算服务器 |
| CN106066807A (zh) * | 2016-06-08 | 2016-11-02 | 北京光年无限科技有限公司 | 面向智能机器人的操作系统更新方法及操作系统 |
| CN106972932A (zh) * | 2017-03-03 | 2017-07-21 | 北京光年无限科技有限公司 | 一种用于机器人端的远程控制指令验证方法及系统 |
| CN108958773A (zh) * | 2018-07-10 | 2018-12-07 | 北京贞宇科技有限公司 | 智能机器人 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105893091A (zh) * | 2016-01-29 | 2016-08-24 | 北京云迹科技有限公司 | 一种智能机器人软件程序升级的方法及系统 |
| CN107241293A (zh) * | 2016-03-28 | 2017-10-10 | 杭州萤石网络有限公司 | 一种资源访问方法、装置及系统 |
-
2018
- 2018-12-24 CN CN201811585296.2A patent/CN111355762A/zh active Pending
- 2018-12-25 WO PCT/CN2018/123610 patent/WO2020132889A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110289496A1 (en) * | 2010-05-18 | 2011-11-24 | North End Technologies, Inc. | Method & apparatus for load balancing software update across a plurality of publish/subscribe capable client devices |
| CN102624762A (zh) * | 2011-01-30 | 2012-08-01 | 深圳市腾讯计算机系统有限公司 | 基于云计算提升机器人软件功能的方法和云计算服务器 |
| CN106066807A (zh) * | 2016-06-08 | 2016-11-02 | 北京光年无限科技有限公司 | 面向智能机器人的操作系统更新方法及操作系统 |
| CN106972932A (zh) * | 2017-03-03 | 2017-07-21 | 北京光年无限科技有限公司 | 一种用于机器人端的远程控制指令验证方法及系统 |
| CN108958773A (zh) * | 2018-07-10 | 2018-12-07 | 北京贞宇科技有限公司 | 智能机器人 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111355762A (zh) | 2020-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10419289B2 (en) | System and method for configuration management service | |
| CN110633160A (zh) | 接口调用方法、装置、计算机设备和存储介质 | |
| CN114265607A (zh) | 一种灰度发布方法、系统、电子设备和存储介质 | |
| CN110879713B (zh) | 一种android端强加密插件热更新管理方法 | |
| WO2019201040A1 (zh) | 一种管理更新文件的方法、系统及终端设备 | |
| CN112732273A (zh) | 应用部署方法、装置及系统 | |
| WO2017036228A1 (zh) | 一种实现系统升级的方法及装置 | |
| JP2023505844A (ja) | パッケージベースリモートファームウェアアップデート | |
| CN110955448A (zh) | 智能合约分离方法、合约处理方法、装置、设备及介质 | |
| CN112702195A (zh) | 网关配置方法、电子设备及计算机可读存储介质 | |
| CN111524009A (zh) | 区块链系统的交易验证方法、装置及硬件设备 | |
| CN114138303B (zh) | 一种车辆应用程序更新方法、装置、介质及车辆 | |
| CN118170431A (zh) | 跨操作系统的业务迁移方法、装置及电子设备 | |
| CN113330419B (zh) | 一种设备应用安装方法、装置、设备和存储介质 | |
| CN113504879A (zh) | 数据存储的方法及智能家电 | |
| CN113742681A (zh) | 一种账户管理方法、装置、计算机设备和存储介质 | |
| WO2020132889A1 (zh) | 用于机器人获取资源文件的方法、系统和装置 | |
| WO2017036197A1 (zh) | 一种网元模型管理方法及装置 | |
| CN113672272B (zh) | 应用程序动态升级方法、生成方法、装置及电子设备 | |
| CN116915603A (zh) | Ota升级方法、装置及电子设备 | |
| CN114138302B (zh) | 一种车辆应用程序更新方法、装置、车辆及系统 | |
| CN112860287A (zh) | 系统程序升级方法、装置、计算机设备及存储介质 | |
| CN110162507B (zh) | 快照覆写方法、装置、计算机设备及存储介质 | |
| CN114268624B (zh) | 版本文件传输方法、装置及服务器 | |
| CN112114825A (zh) | 烧录任务同步方法、装置、烧录管理平台及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18944642 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18944642 Country of ref document: EP Kind code of ref document: A1 |