CN109995711A - Application and development method, apparatus, terminal device and the medium of intelligent robot - Google Patents

Application and development method, apparatus, terminal device and the medium of intelligent robot Download PDF

Info

Publication number
CN109995711A
CN109995711A CN201711484095.9A CN201711484095A CN109995711A CN 109995711 A CN109995711 A CN 109995711A CN 201711484095 A CN201711484095 A CN 201711484095A CN 109995711 A CN109995711 A CN 109995711A
Authority
CN
China
Prior art keywords
intelligent robot
function
associated data
application
rpc
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.)
Granted
Application number
CN201711484095.9A
Other languages
Chinese (zh)
Other versions
CN109995711B (en
Inventor
熊友军
刘志立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Youbijie Education Technology Co ltd
Shenzhen Ubtech Technology Co ltd
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201711484095.9A priority Critical patent/CN109995711B/en
Publication of CN109995711A publication Critical patent/CN109995711A/en
Application granted granted Critical
Publication of CN109995711B publication Critical patent/CN109995711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention is suitable for robotic technology field, provides application and development method, terminal device and the medium of a kind of intelligent robot, this method comprises: starting is installed on the remote procedure call protocol RPC client on terminal device in advance;By the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect;Obtain associated data corresponding to the application program that user develops on the terminal device;The associated data is transmitted to the intelligent robot, so that the intelligent robot calls application programming interface api function corresponding with the associated data in preset SDK library.In the present invention, user, which need not will develop, to be obtained executable program and is burnt to intelligent robot, therefore reduces the cumbersome degree of application and development;Also, user development machines people need to only apply on the terminal device of oneself, it is thus achieved that the platform-neutral of application and development, language independence, reduce user to the application and development difficulty of intelligent robot.

Description

Application and development method, apparatus, terminal device and the medium of intelligent robot
Technical field
The invention belongs to robotic technology field more particularly to a kind of application and development method, apparatus of intelligent robot, end End equipment and medium.
Background technique
Currently, manufacturer usually can all provide a matched Software Development Kit when intelligent robot dispatches from the factory completion (Software Development Kit, SDK).If user wants control, intelligent robot executes a certain function, can be In the terminal of oneself, the SDK library is directly linked.By being called to SDK, complete the exploitation of this function, so export with The corresponding executable program of the function.Hereafter, which is burnt to the control unit of intelligent robot by developer, So far, intelligent robot can execute the above-mentioned function that exploitation is completed based on the application program of the local.
In the application development process of existing intelligent robot, many developers just hope that control intelligent robot executes one It is some simple walk, lift leg, the movement such as retrogressings, to verify the empirical theory of oneself, and do not need to integrate these at all simply The intelligent robot of functional application is as molding commercial product.However, experiment requires every time for developer Again application program is burnt to intelligent robot, therefore, whole process operation is relatively complicated.In addition, since manufacturer is provided SDK must run on specific hardware platform and operating system, thus cause developer also have to additional studies these After the knowledge of hardware platform and operating system, normal application and development just can be carried out.For example, if the SDK library of intelligent robot needs Linux ARM (Advanced RISC Machine) platform is run on, then, developer just must before coding exploitation Linux exploitation and the Embedded some knowledge of ARM must first be learnt.Therefore, the application development process of existing intelligent robot by Biggish constraint, the difficulty for resulting in User Exploitation are larger.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of application and development method, apparatus of intelligent robot, terminal device And medium, the application and development difficulty to solve the problems, such as intelligent robot in the prior art is larger and operation is relatively complicated.
The first aspect of the embodiment of the present invention provides a kind of application and development method of intelligent robot, comprising:
Starting is installed on the remote procedure call protocol RPC client on terminal device in advance;
By the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect;
Obtain the call parameters for the application program that user develops on the terminal device;
The call parameters are transmitted to the intelligent robot, so that the intelligent robot is in preset software development Application programming interface api function corresponding with the call parameters is called in kit SDK library.
The second aspect of the embodiment of the present invention provides a kind of application and development device of intelligent robot, comprising:
Start unit, for starting the remote procedure call protocol RPC client being installed on terminal device in advance;
Connection unit, for thering is the intelligent robot foundation at RPC service end to communicate with operation by the RPC client Connection;
Acquiring unit, for obtaining associated data corresponding to the application program that user develops on the terminal device;
Transmission unit, for the associated data to be transmitted to the intelligent robot, so that the intelligent robot exists Application programming interface api function corresponding with the associated data is called in preset Software Development Kit SDK library.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program Realize following steps:
Starting is installed on the remote procedure call protocol RPC client on terminal device in advance;
By the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect;
Obtain associated data corresponding to the application program that user develops on the terminal device;
The associated data is transmitted to the intelligent robot, so that the intelligent robot is in preset software development Application programming interface api function corresponding with the associated data is called in kit SDK library.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Starting is installed on the remote procedure call protocol RPC client on terminal device in advance;
By the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect;
Obtain associated data corresponding to the application program that user develops on the terminal device;
The associated data is transmitted to the intelligent robot, so that the intelligent robot is in preset software development Application programming interface api function corresponding with the associated data is called in kit SDK library.
In the embodiment of the present invention, mounted RPC client is started by the terminal device in user, realizes to utilize and be somebody's turn to do RPC client communicates to connect to there is the intelligent robot at RPC service end to establish with operation, so that user is in development and application program Afterwards, it directly can remotely control intelligent robot and execute feature operation corresponding with application program, therefore, in the running of control robot During, exploitation need not be obtained executable program again and be burnt to intelligent robot by user, therefore reduce the behaviour of application and development Make cumbersome degree;In addition, since SDK library defaults in intelligent robot, and user only need on the terminal device of oneself development machines People's application, thus is no longer influenced by the limitation of SDK running environment and programming language, realize application and development platform-neutral, Language independence, so that the effect of distributed deployment is presented in the exploitation program on terminal device and the control program in robot Therefore fruit reduces user to the application and development difficulty of intelligent robot.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the application and development method of intelligent robot provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the application and development method S104 of intelligent robot provided in an embodiment of the present invention;
Fig. 3 is another specific implementation flow of the application and development method S104 of intelligent robot provided in an embodiment of the present invention Figure;
Fig. 4 be another embodiment of the present invention provides intelligent robot application and development method implementation flow chart;
Fig. 5 is the structural block diagram of the application and development device of intelligent robot provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Referring to Figure 1, Fig. 1 is the implementation process of the application and development method of intelligent robot provided in an embodiment of the present invention Figure.Implementation process as shown in Figure 1 includes step S101 to S104, and the realization principle of each step is specific as follows:
S101: starting is installed on the remote procedure call protocol RPC client on terminal device in advance.
In the embodiment of the present invention, RPC refers to a kind of agreement of remote procedure call.It is led according to developer or manufacturer The RPC framing program entered carries out integration processing to the exploitation client being installed on terminal device in advance, obtains RPC client. Wherein, above-mentioned exploitation client is to provide the application program of programming development environment on terminal device, which includes Code editor, compiler, debugger and graphic user interface etc..
Terminal device includes but is not limited to server, desktop computer, laptop, smart phone, plate and palm Computer (Personal Digital Assistant, PDA) etc..
In the embodiment of the present invention, RPC framing program can be existing open source RPC framing program, such as gRPC, Apache Thrift and bRPC etc. is also possible to a set of RPC framing program or combine open source RPC frame that developer voluntarily writes The RPC framing program write, is not limited thereto.
When detecting that the RPC client functionality in exploitation client services enabled instruction, alternatively, detecting exploitation client When end is activated, determines and start above-mentioned RPC client.
S102: by the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect.
In the embodiment of the present invention, it is based on above-mentioned realization principle identical with RPC client, inside intelligent robot in advance RPC service end is installed, difference is, for intelligent robot, the RPC framing program imported is for providing RPC clothes Business end function, and for the exploitation client on developer's terminal device, the RPC framing program imported is for providing RPC client functionality, therefore, there are partial function differences between the RPC framing program of the two, consequently lead to specific implementation generation Difference between code.
When detecting that the RPC service end in intelligent robot is activated, start RPC service end function services.
In the embodiment of the present invention, with obtaining the network that developer or robot administrator input in RPC service end Location and port numbers, alternatively, the automatic detection mode in address based on RPC service end, determine RPC service end network address and Port numbers.Receive the network address and port numbers that developer is inputted in RPC client.
According to network address received by RPC client and port numbers, RPC client is in internet or local area network Base unit search request is issued, to determine the network resource location at RPC service corresponding with network address end, and is requested and operation The intelligent robot of the network resource location at RPC service end establishes communication connection.When detecting communication connection confirmation instruction, Based on serve port corresponding to above-mentioned port numbers, long-range connection is established between RPC client and RPC service end.
Preferably, after the network resources address for determining RPC service end, communication connection request is issued, and in legitimacy After the completion of certification, just it is attached with RPC service end.Legitimacy verification process includes but is not limited to account information certification, terminal Equipment Serial Number certification and other authentication modes etc..
S103: associated data corresponding to the application program that user develops on the terminal device is obtained.
Developer carries out the exploitation of intelligent robot application program in above-mentioned exploitation client, that is, exploitation client It can receive the application source code of user's input.Processing is compiled to source code using above-mentioned exploitation client, can be obtained To the application program of required exploitation.
In the embodiment of the present invention, since RPC client needs to be led to based on binary RPC agreement with RPC service end Letter, therefore, each parameter value relevant to application program is read out, and the chemical conversion of obtained each parameter value sequence is binary Form.Above-mentioned parameter value include but is not limited to application program called method name, function name and other kinds type variable Parameter etc..
S104: being transmitted to the intelligent robot for the associated data, so that the intelligent robot is preset soft Application programming interface api function corresponding with the associated data is called in part development kit SDK library.
Preset that manufacturer, robot issued in the embodiment of the present invention, inside intelligent robot for development machines people function Applicable SDK library.Wherein, above-mentioned SDK library is defaulted in inside intelligent robot by manufacturer.
Particularly, for having dispatched from the factory and the internal not stored intelligent robot for having SDK library, since its SDK library is by manufacturer Therefore being provided separately to developer can be imported SDK library in intelligent robot by developer again.
When remote procedure call is initiated at RPC service end of the RPC client on terminal device into intelligent robot, The parameter of method call needs the network protocol by bottom in RPC client, and the associated data after serializing is transmitted to RPC service end.
For associated data corresponding to the application program after serializing, it is transmitted through the network to the intelligence having connected Robot enables the associated data to be converted to intelligence so that intelligent robot carries out unserializing processing to the associated data After the preset format that energy robot can be read, in the address space of intelligent robot, search corresponding with the associated data Application programming interface (Application Programming Interface, API) function.
Intelligent robot calls above-mentioned from locally searching obtained api function.Since each api function is for controlling intelligence Robot executes a Xiang Gongneng, for example, control intelligent robot is directly walked, turns or dances, it is thereby achieved that passing through exploit person The terminal device of member carrys out the long-range control to intelligent robot.
In the embodiment of the present invention, mounted RPC client is started by the terminal device in user, realizes to utilize and be somebody's turn to do RPC client communicates to connect to there is the intelligent robot at RPC service end to establish with operation, so that user is in development and application program Afterwards, it directly can remotely control intelligent robot and execute feature operation corresponding with application program, therefore, in the running of control robot During, exploitation need not be obtained executable program again and be burnt to intelligent robot by user, therefore reduce the behaviour of application and development Make cumbersome degree;In addition, since SDK library defaults in intelligent robot, and user only need on the terminal device of oneself development machines People's application, thus is no longer influenced by the limitation of SDK running environment and programming language, realize application and development platform-neutral, Language independence, so that the effect of distributed deployment is presented in the exploitation program on terminal device and the control program in robot Therefore fruit reduces user to the application and development difficulty of intelligent robot.
As an embodiment of the present invention, Fig. 2 shows the applications of intelligent robot provided in an embodiment of the present invention to open The specific implementation flow of forwarding method S104, details are as follows:
S1041: the table of comparisons safeguarded in advance based on the RPC client is obtained corresponding with the call parameters name Function identification code.
RPC client maintains a table of comparisons in advance, and the above-mentioned table of comparisons calls function name and function to know for storing The corresponding relationship of other code.Function identification code indicates the unique identifying number of calling function, and the program code of function is called to set in terminal Standby corresponding address space is associated with function identification code corresponding to the calling function.
In the embodiment of the present invention, each parameter value relevant to the application program of developer's exploitation includes needed for application program The function name of the function of calling, i.e. calling function name.In the table of comparisons that above-mentioned RPC client is safeguarded, determine using journey The corresponding function identification code of each function name institute called needed for sequence.Wherein, the form of expression of function identification code include but It is not limited to the forms such as character string and integer value.
S1042: the associated data for carrying the function identification code is transmitted to the intelligent robot, so that described The table of comparisons that intelligent robot is safeguarded according to the RPC service device is determining institute corresponding with the function identification code It states after calling function name, in the function call duration, is called and the calling function name pair in preset SDK library The api function answered.
When RPC client executes remote procedure call to intelligent robot, sequence is carried out to the associated data of application program Change processing, the data flow characterized in binary form.For each function identification code determined, by the function identification code It is additional to after its corresponding data flow for calling function name, the data flow for carrying function identification code is transmitted through the network to The RPC service end of intelligent robot.
In the embodiment of the present invention, the RPC service end maintenance of intelligent robot has comparison list, and the table of comparisons is equally used for The corresponding relationship of function name and function identification code is called in storage.Wherein, for same calling function name, in RPC visitor The table of comparisons and the corresponding function identification code of institute is identical in the table of comparisons that RPC service end is safeguarded that family end is safeguarded.
When the RPC service of intelligent robot termination receives the data flow that RPC client transmissions come, which is flowed into The processing of row unserializing, and function identification code included in its in extraction.Pair that intelligent robot is safeguarded at RPC service end According in table, finding out and extract the corresponding calling function name of obtained function identification code.According to the function identification code, intelligent machine Device people determines the address space for storage function code, with the api function generation for therefrom obtaining with calling function name to match Code, and execute the api function code.
In the embodiment of the present invention, by RPC client and RPC service end safeguard respectively a calling function name and The table of comparisons of function identification code corresponding relationship is avoided in RPC client executing remote procedure call, because RPC client with RPC service end is distributed in different terminal devices or corresponding different address space and leads to not search by function pointer The problem of api function code, ensure that the stability that RPC client is communicated with RPC service end, so that user only need to be certainly Development machines people applies on oneself terminal device, without being limited again by SDK running environment and programming language, therefore, User is reduced to the application and development difficulty of intelligent robot.
As an embodiment of the present invention, the application that Fig. 3 shows intelligent robot provided in an embodiment of the present invention is opened Another specific implementation flow of forwarding method S104, details are as follows:
S1043: user calling function name set in the development process of the application program and letter are obtained Number calls duration.
Developer can call a series of function, and big portion in the development process of application program in program code Function is divided to be required to incoming parameter value, so that the output result of function can change because incoming parameter is different.Example Such as, in minor function abc (), if developer needs to call function abc () in the application, incoming integer is needed Parameter value a and b so that based on function abc () come to the parameter value a and b of input carry out operation after, output valve a can be obtained With the product of b.
In the embodiment of the present invention, each calling function name according to associated by application program is obtained and the calling function name Corresponding incoming parameter value.Wherein, for being passed to the calling function that parameter value includes time cycle length, it is passed to parameter value It can also be function call duration.
S1044: the calling function name and function call duration are converted to the associated data of preset format.
In order to by each calling function name associated by application program and function call duration with binary data stream Form is transmitted to the RPC service end of intelligent robot, in the embodiment of the present invention, to progress when calling function name and function call Row serializing processing, to export the associated data of preset format.
Preferably, above-mentioned preset format for example can be protobuf.Language independent property based on protobuf guarantees No matter user by which kind of language come development and application program, can also be converted to the relevant various parameter values of application program can The serializing structured data formats of extension.
S1045: being transmitted to the intelligent robot for the associated data, so that the intelligent robot is to the association After data are decoded, in the function call duration, persistently called and the calling function name pair in preset SDK library The api function answered.
RPC service end is in received data flow, calling function name needed for parsing application program and each tune With the corresponding parameter value of function name.Each api function that intelligent robot is stored in SDK library is searched and the calling function name Corresponding api function, and the parameter value that parsing is obtained is as the incoming parameter of the api function.Therefore, when incoming parameter includes When function call duration, intelligent robot will continuously carry out the api function searched and obtained in the function call duration.
In the embodiment of the present invention, by obtain user's calling function name set in the development process of application program with And function call duration, and the associated data for carrying the calling function name and function call duration is transmitted to intelligence machine People ensure that intelligent robot, can be specified by the developer after carrying out unserializing decoding process to associated data In function call duration, api function corresponding with function name is called persistently is called therefore to realize in preset SDK library While the local function stored to intelligent robot carries out far call control, control precision is improved, reaches more For accurate control effect.
Refer to Fig. 4, Fig. 4 be another embodiment of the present invention provides intelligent robot application and development method realization stream Cheng Tu.Implementation process as shown in Figure 4 includes step S401 to S405, and the realization principle of each step is specific as follows:
S401: starting is installed on the remote procedure call protocol RPC client on terminal device in advance.
S402: by the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect.
S403: associated data corresponding to the application program that user develops on the terminal device is obtained.
S404: being transmitted to the intelligent robot for the associated data, so that the intelligent robot is preset soft Application programming interface api function corresponding with the associated data is called in part development kit SDK library.
The step realization principle and other steps mentioned in the various embodiments that the embodiment of the present invention is not mentioned are realized former It manages identical, therefore no longer repeats one by one.
S405: the function call result that the intelligent robot is returned by the RPC service end is obtained.
In intelligent robot, when RPC service end executes any api function in SDK library, whether the api function is detected Success is called.If api function interrupts in calling process, alternatively, detecting that api function calls error message, then by letter Number call error prompt information is sent to RPC client;If api function calls completion, do not occur any error message still, Function call success prompt information is then sent to RPC client.
The all types of prompt informations that RPC client returns to the RPC service end received are shown.
Preferably, if api function interrupts in calling process, alternatively, detect that api function calls error message, Then api function calling error message is uploaded to cloud server by intelligent robot, so that SDK post staff detects the API Error code in function.Wherein, cloud server is the server that SDK issues manufacturer.
In the embodiment of the present invention, based on the function call that intelligent robot is detected when calling different api functions As a result, the prompt information for being used to describe the function call result to be back to the RPC client of developer, so that developer After far call intelligent robot executes corresponding function, it can be well understood and currently whether be successfully realized to intelligent machine The control of device people, alternatively, can know the concrete reason of current control failure.For different failure causes, developer is needed It to set about to be checked from different directions, therefore, the embodiment of the present invention improves developer and carries out to intelligent robot Malfunction elimination efficiency during control.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the application and development method of intelligent robot described in foregoing embodiments, Fig. 5 shows the embodiment of the present invention The structural block diagram of the application and development device of the intelligent robot of offer illustrates only and the embodiment of the present invention for ease of description Relevant part.
Referring to Fig. 5, which includes:
Start unit 51, for starting the remote procedure call protocol RPC client being installed on terminal device in advance.
Connection unit 52, for being established with the intelligent robot that operation has RPC service end logical by the RPC client Letter connection.
First acquisition unit 53, for obtaining association corresponding to the application program that user develops on the terminal device Data.
Transmission unit 54, for the associated data to be transmitted to the intelligent robot, so that the intelligent robot Application programming interface api function corresponding with the associated data is called in preset Software Development Kit SDK library.
Optionally, the transmission unit 54 includes:
First obtains subelement, for obtaining user calling set in the development process of the application program Function name and function call duration.
Converting unit, for the calling function name and function call duration to be converted to the incidence number of preset format According to.
Call unit, for the associated data to be transmitted to the intelligent robot, so that the intelligent robot pair After the associated data is decoded, in the function call duration, persistently called and the calling in preset SDK library The corresponding api function of function name.
Optionally, the transmission unit 54 includes:
Second obtains subelement, and the table of comparisons for being safeguarded in advance based on the RPC client is obtained and the calling The corresponding function identification code of parameter name.
Transmission subelement, for the associated data for carrying the function identification code to be transmitted to the intelligence machine People, so that the table of comparisons that the intelligent robot is safeguarded according to the RPC service device, identifies determining with the function After the corresponding calling function name of code, in the function call duration, called and the tune in preset SDK library With the corresponding api function of function name.
Optionally, the connection unit 52 includes:
Third obtains subelement, for obtaining the network address and end that the user inputs in the RPC client Slogan, the network address and the port numbers are corresponding with the RPC service end respectively.
Connection request subelement determines the RPC service end for being based on the network address and the port numbers Network resource location, and request to establish with the intelligent robot for running the RPC service end and communicate to connect.
Optionally, the application and development device of the intelligent robot further include:
Second acquisition unit 55 passes through the function tune that the RPC service end is returned for obtaining the intelligent robot With result.
In the embodiment of the present invention, mounted RPC client is started by the terminal device in user, realizes to utilize and be somebody's turn to do RPC client communicates to connect to there is the intelligent robot at RPC service end to establish with operation, so that user is in development and application program Afterwards, it directly can remotely control intelligent robot and execute feature operation corresponding with application program, therefore, in the running of control robot During, exploitation need not be obtained executable program again and be burnt to intelligent robot by user, therefore reduce the behaviour of application and development Make cumbersome degree;In addition, since SDK library defaults in intelligent robot, and user only need on the terminal device of oneself development machines People's application, thus is no longer influenced by the limitation of SDK running environment and programming language, realize application and development platform-neutral, Language independence, so that the effect of distributed deployment is presented in the exploitation program on terminal device and the control program in robot Therefore fruit reduces user to the application and development difficulty of intelligent robot.
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 6, the terminal of the embodiment is set Standby 6 include: processor 60, memory 61 and are stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62, such as the application and development program of intelligent robot.The processor 60 executes real when the computer program 62 Step in the application and development embodiment of the method for existing above-mentioned each intelligent robot, such as step 101 shown in FIG. 1 is to 104.Or Person, the processor 60 realize the function of each module/unit in above-mentioned each Installation practice when executing the computer program 62, Such as the function of unit 51 to 55 shown in Fig. 5.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the terminal device 6 is described.
The terminal device 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of application and development method of intelligent robot characterized by comprising
Starting is installed on the remote procedure call protocol RPC client on terminal device in advance;
By the RPC client, there is the intelligent robot at RPC service end to establish with operation and communicate to connect;
Obtain associated data corresponding to the application program that user develops on the terminal device;
The associated data is transmitted to the intelligent robot, so that the intelligent robot is in preset Software Development Tools Application programming interface api function corresponding with the associated data is called in packet SDK library.
2. application and development method as described in claim 1, which is characterized in that described that the associated data is transmitted to the intelligence Energy robot, so that the intelligent robot calls application program corresponding with the associated data to compile in preset SDK library Journey interface api function, comprising:
Obtain the user calling function name and function call duration set in the development process of the application program;
The calling function name and function call duration are converted to the associated data of preset format;
The associated data is transmitted to the intelligent robot, so that the intelligent robot solves the associated data After code, in the function call duration, API letter corresponding with the calling function name is persistently called in preset SDK library Number.
3. application and development method as claimed in claim 2, which is characterized in that described that the associated data is transmitted to the intelligence Energy robot, so that after the intelligent robot is decoded the associated data, in the function call duration, pre- If SDK library in persistently call corresponding with calling function name api function, comprising:
Based on the table of comparisons that the RPC client is safeguarded in advance, function identification code corresponding with the call parameters name is obtained;
The associated data for carrying the function identification code is transmitted to the intelligent robot, so that the intelligent robot According to the table of comparisons that the RPC service device is safeguarded, the calling function corresponding with the function identification code is being determined After name, in the function call duration, API letter corresponding with the calling function name is called in preset SDK library Number.
4. application and development method as described in claim 1, which is characterized in that it is described by the RPC client, have with operation The intelligent robot at RPC service end establishes communication connection, comprising:
Obtain network address and port numbers that the user inputs in the RPC client, the network address and institute It is corresponding with the RPC service end respectively to state port numbers;
Based on the network address and the port numbers, the network resource location at the RPC service end is determined, and request and transport The intelligent robot at the row RPC service end establishes communication connection.
5. application and development method as described in claim 1, which is characterized in that further include:
Obtain the function call result that the intelligent robot is returned by the RPC service end.
6. a kind of application and development device of intelligent robot characterized by comprising
Start unit, for starting the remote procedure call protocol RPC client being installed on terminal device in advance;
Connection unit, for thering is the intelligent robot at RPC service end to establish with operation and communicating to connect by the RPC client;
Acquiring unit, for obtaining associated data corresponding to the application program that user develops on the terminal device;
Transmission unit, for the associated data to be transmitted to the intelligent robot, so that the intelligent robot is default Software Development Kit SDK library in call corresponding with associated data application programming interface api function.
7. application and development device as claimed in claim 6, which is characterized in that the transmission unit includes:
First obtains subelement, for obtaining user calling function set in the development process of the application program Name and function call duration;
Converting unit, for the calling function name and function call duration to be converted to the associated data of preset format;
Call unit, for the associated data to be transmitted to the intelligent robot, so that the intelligent robot is to described After associated data is decoded, in the function call duration, persistently called and the calling function in preset SDK library The corresponding api function of name.
8. development device the use as claimed in claim 7, which is characterized in that the transmission unit includes:
Second obtains subelement, and the table of comparisons for being safeguarded in advance based on the RPC client is obtained and the call parameters The corresponding function identification code of name;
Transmission subelement, for the associated data for carrying the function identification code to be transmitted to the intelligent robot, with The table of comparisons for safeguarding the intelligent robot according to the RPC service device, in the determining and function identification code pair After the calling function name answered, in the function call duration, called and the calling letter in preset SDK library Several corresponding api functions.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201711484095.9A 2017-12-29 2017-12-29 Application development method and device of intelligent robot, terminal equipment and medium Active CN109995711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484095.9A CN109995711B (en) 2017-12-29 2017-12-29 Application development method and device of intelligent robot, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484095.9A CN109995711B (en) 2017-12-29 2017-12-29 Application development method and device of intelligent robot, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN109995711A true CN109995711A (en) 2019-07-09
CN109995711B CN109995711B (en) 2021-08-27

Family

ID=67110338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484095.9A Active CN109995711B (en) 2017-12-29 2017-12-29 Application development method and device of intelligent robot, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN109995711B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433700A (en) * 2020-11-16 2021-03-02 中国建设银行股份有限公司 Robot application development and operation method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124451A1 (en) * 2001-10-16 2007-05-31 Userspace Corporation Embedded system and method for controlling, monitoring of instruments or devices and processing their data via control and data protocols that can be combined or interchanged
CN104007974A (en) * 2014-05-30 2014-08-27 电子科技大学 System and method for online simulation and remote verification of robot applications
CN104821954A (en) * 2015-03-27 2015-08-05 中国海洋大学 Cross-platform remote procedure call method
CN105467858A (en) * 2015-12-01 2016-04-06 西安电子科技大学 Graphical integrated development environment for control program of robot
CN105843630A (en) * 2016-06-08 2016-08-10 江西洪都航空工业集团有限责任公司 Method for graphical programming development based on robot
US20170295243A1 (en) * 2016-04-06 2017-10-12 Yoongu Kim Techniques for implementing persistently interactive software robots
CN107305375A (en) * 2016-04-19 2017-10-31 上海慧流云计算科技有限公司 A kind of robot control method, controller and robot

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124451A1 (en) * 2001-10-16 2007-05-31 Userspace Corporation Embedded system and method for controlling, monitoring of instruments or devices and processing their data via control and data protocols that can be combined or interchanged
CN104007974A (en) * 2014-05-30 2014-08-27 电子科技大学 System and method for online simulation and remote verification of robot applications
CN104821954A (en) * 2015-03-27 2015-08-05 中国海洋大学 Cross-platform remote procedure call method
CN105467858A (en) * 2015-12-01 2016-04-06 西安电子科技大学 Graphical integrated development environment for control program of robot
US20170295243A1 (en) * 2016-04-06 2017-10-12 Yoongu Kim Techniques for implementing persistently interactive software robots
CN107305375A (en) * 2016-04-19 2017-10-31 上海慧流云计算科技有限公司 A kind of robot control method, controller and robot
CN105843630A (en) * 2016-06-08 2016-08-10 江西洪都航空工业集团有限责任公司 Method for graphical programming development based on robot

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王宏杰: "《机器人与计算机之间的通信编程》", 《计算机工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433700A (en) * 2020-11-16 2021-03-02 中国建设银行股份有限公司 Robot application development and operation method and device, electronic equipment and medium
CN112433700B (en) * 2020-11-16 2024-03-29 中国建设银行股份有限公司 Development and operation method and device of robot application, electronic equipment and medium

Also Published As

Publication number Publication date
CN109995711B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
EP3542494B1 (en) System and method for implementing native contract on blockchain
CN108885580B (en) Combination of mode-driven responses in real-time data stream programming
US11194999B2 (en) Integrated facial recognition method and system
US9239705B2 (en) Method and apparatus for customized software development kit (SDK) generation
CA2915620C (en) Method and apparatus for code virtualization and remote process call generation
Ellul et al. Alkylvm: A virtual machine for smart contract blockchain connected internet of things
TWI767182B (en) H5-Based Access Components and Mobile Terminals
US20060265469A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
EP3912074B1 (en) Generating a synchronous digital circuit from a source code construct defining a function call
KR20160089747A (en) System and method of providing embedded software development environment for IoT device
CN108306844A (en) Telecommunication by Application Programming Interface and long-range programming
CN113615141A (en) Account number association method, device, system, server and storage medium
CN110262782A (en) The interface comparison method and device of software systems
CN112965721B (en) Project compiling method and device based on Android, computer equipment and storage medium
CN109995711A (en) Application and development method, apparatus, terminal device and the medium of intelligent robot
CN109445384A (en) A kind of more apparatus control systems
CN112448909A (en) Electronic lock management method, device, system and storage medium
CN115203674A (en) Automatic login method, system, device and storage medium for application program
Springborg et al. Towards a secure API client generator for IoT devices
CN117056317B (en) Data processing method, device, equipment and computer readable storage medium
CN104010026A (en) Method, device and system for controlling household appliance
CN117093286B (en) Plug-in generation method, device, equipment and computer readable storage medium
TWI581185B (en) Method and system for installing application
CN116700703A (en) Service processing method, device, equipment and storage medium
Miraglia et al. a Mobile Component-based CrowdSensing framework

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen UBTECH Technology Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20230822

Address after: No. 60, Guohe Road, Yangpu District, Shanghai 200082

Patentee after: Shanghai youbijie Education Technology Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

TR01 Transfer of patent right