Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for object debugging, it is existing right to be able to solve
The extremely inconvenient problem of the debugging exploitation of robot.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for object debugging is provided
Method obtains the data information of object control system including communication connection-bridge, and data information is converted to after format can be read in web
By surveying web page platform output processed;When survey, which regulates and controls web page platform processed, receives operational order, passes through communication and turn
It connects bridge the operational order is converted to the identifiable format of object control system and is sent to object control system, so that object
Control system executes the operational order.
Optionally, further includes: survey web page platform processed and receive connection request;Connect when surveying web page platform processed
After being connected into function, judge whether current connection number is 0, increases connection number if 0, activation communication connection-bridge and survey regulate and control web processed
Page platform, so that communication connection-bridge obtains the data information of object control system;Otherwise increase connection number, communicate connection-bridge
Directly acquire the data information of object control system.
Optionally, further includes: survey web page platform processed and receive the request for exiting connection, then disconnect, and reduce
Connection number;If current connection number is 0, communicates connection-bridge and survey regulates and controls web page platform processed and enters standby mode.
Optionally, the reserved interface that can be docked with communication connection-bridge of the modules of object control system.
In addition, according to an aspect of an embodiment of the present invention, providing a kind of device for object debugging, including obtain
Module obtains the data information of object control system for communicating connection-bridge, and data information, which is converted to web, can be read format
Afterwards by surveying web page platform output processed;Debugging module, for referring to when survey regulation web page platform processed receives operation
When enabling, the operational order is converted to by the identifiable format of object control system by communication connection-bridge and is sent to object control
System processed, so that object control system executes the operational order.
Optionally, the acquisition module, is also used to:
It surveys web page platform processed and receives connection request;
After surveying web page platform successful connection processed, judges whether current connection number is 0, increase connection if 0
Number, activation communication connection-bridge and survey regulate and control web page platform processed, so that communication connection-bridge obtains the data of object control system
Information;Otherwise increase connection number, communication connection-bridge directly acquires the data information of object control system.
Optionally, the debugging module, is also used to:
It surveys web page platform processed and receives the request for exiting connection, then disconnect, and reduce connection number;If worked as
Preceding connection number is 0, then communicates connection-bridge and survey regulates and controls web page platform processed and enters standby mode.
Optionally, the reserved interface that can be docked with communication connection-bridge of the modules of object control system.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes method described in any of the above-described embodiment for object debugging.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter
Calculation machine program realizes method described in any of the above-described embodiment for object debugging when described program is executed by processor.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that the described method for object debugging
It solves current robot development's test and debugging stage, needs the problem of installing third party software;It solves to use third party software
The problem of carrying out exploitation control excessive occupied system resources, and debugging delay;Debugging machine people is managed using web page,
It can be compatible with plurality of devices terminal, and operating terminal conveniently and efficiently develops robot without installing additional software
Debugging;The resources occupation rate for greatly reducing robot system liberates the communication resource and computing resource of robot, promotes exploitation
Efficiency.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method according to an embodiment of the present invention for object debugging, as shown in Figure 1, described debug for object
Method include:
Step S101, communication connection-bridge obtain the data information of object control system, and data information is converted to web can
By surveying web page platform output processed after reading format.
Wherein, communication connection-bridge refers to and can mutually convert to the data of different-format, constructs the connection of two kinds of systems
Bridge.And web page refers to a file organized according to html format on WWW.Information is being carried out by WWW
When inquiry, occur in the form of information page, it may include the information such as figure, text, sound and video.
It should be noted that object control system is exactly the system for the debugging of being developed, and read and write the object control system
Internal functional module and program module can dock modules by communication connection-bridge.Therefore, object control system
The reserved interface that can be docked with communication connection-bridge of modules.
Preferably, before communication connection-bridge obtains the data information of object control system, it can be by surveying web processed
Page platform receives connection request.Then, after surveying web page platform successful connection processed, whether judge current connection number
It is 0, increases connection number if 0, activation communication connection-bridge and survey regulates and controls web page platform processed, so that communication connection-bridge obtains
Take the data information of object control system.Otherwise increase connection number, communication connection-bridge directly acquires the data of object control system
Information.
That is, current connection number, which is 0, to be indicated to need to activate communication connection-bridge currently without any debugging end is connected
Regulate and control web page platform processed with survey.Current connection number, which is not 0, to be indicated currently to be connected with other debugging ends, communication switching
Bridge and survey regulation web page platform processed itself are in running order, without activation.
Step S102, when survey, which regulates and controls web page platform processed, receives operational order, by communicating connection-bridge for the behaviour
Make it is instruction morphing at the identifiable format of object control system and be sent to object control system so that object control system executes
The operational order.
Preferably, then being disconnected, and the company of reduction when survey regulates and controls web page platform reception processed and exits the request of connection
Connect number.If current connection number is 0, communicates connection-bridge and survey regulates and controls web page platform processed and enters standby mode, without number
According to reading and exchanging, resource and efficiency are saved.
According to various embodiments above, it can be seen that the method for object debugging is based on web skill in front end
Art builds a survey and regulates and controls web page platform processed, and establishing a communication connection-bridge in rear end can be by object control system
The information such as control, debugging and web page information mutually convert.In this way, can use web platform to right in the object development phase
Exploitation is completed as internal system file is written and read modification, the object disposition stage can use the web platform while realization pair
The monitoring and management of object.
Logging in survey regulation web platform processed by any one equipment for logging in browser can be realized to Obj State information
Reading, test and control instruction the operation such as issue, set debugging task.It is convenient that test is developed and debugged to object,
And it can effective monitoring object test mode and effect.
For debugged object, it need to only start a communication connection-bridge and survey web page platform processed, at debugging end
(i.e. operating terminal, wherein operating terminal such as laptop, mobile phone, plate lamp apparatus etc..) do not need to install it is any soft
Part program can be developed.And it is significant to save computing resource and communication resources since the data of transmission are mostly character format,
Real-time when test and debugging control is effectively ensured, substantially reduces delay, improves development efficiency.It can be with multiple debugging ends simultaneously
Debugged object is connected, coordinated manipulation control greatlys save the development cycle.
Fig. 2 is the schematic diagram that can refer to the main flow of the method for object debugging of embodiment according to the present invention, is answered
For debugged end, such as robotic end, the method for object debugging may include:
Step S201, robot electrifying startup, after the starting of the control system of robot, communication switching bridge module and survey are adjusted
Control web page platform starts and initializes, and current connection number C is denoted as 0.
In embodiment, as shown in figure 3, robot control system is exactly the system to be developed i.e. development object, machine
The parameter adjustment of people, function realization, telecommunication management, Decision Control, action response etc. are all by the robot control system
To complete.And read and write functional module and program module inside the robot control system, can by communication connection-bridge come pair
Connect each function and program module.
Wherein, each functional module of robot control system reserves corresponding interface according to the content to be developed, passes through
The interface can be docked with communication connection-bridge.Communication connection-bridge can receive the data that the transmitting of each functional module comes, and this
Kind data format is to defer to the data format of robot control system internal communication, and communication connection-bridge is by certain rule by canonical
It is converted to the all-purpose language of html after translation, and passes to survey regulation web page platform processed and is shown in web page.?
That is the mapping relations of web language such as realizing from robot universal data format to html in communication connection-bridge.To,
The control system for surveying web page platform and robot interior processed is connected by connection-bridge, and then is realized to control system
The exploitation test and the read-write of file exploitation of module.
Step S202 surveys web page platform real-time monitoring processed and is attached with the presence or absence of new operating terminal, if it exists
New operating terminal is attached, and carries out step S203, otherwise carries out step S209.
Wherein, operating terminal is debugging end.
Step S203 connects new operating terminal, increases connection number C, and activates communication connection-bridge and survey web page processed
Platform.
In embodiment, it is logged in by public network or LAN connection to robot, and by browser as operating terminal i
Survey web page platform processed, connection number C adds 1 at this time, and activates survey that control system is adjusted (including communication connection-bridge and to survey regulation
Web page platform processed).
Step S204, communicates the data information of connection-bridge read machine people's control system, and data information is converted to web
Survey regulation web page platform processed is sent to after format can be read.
Described instruction is sent to communication and turned by step S205 when survey, which regulates and controls web page platform processed, receives operational order
Connect bridge.
Preferably, operating terminal can issue direct operational order by the web page in browser.
Step S206 communicates connection-bridge for the operational order received and is converted to the identifiable format of robot control system
And it is sent to robot control system.
Wherein, described instruction is a kind of web data, i.e., the web data received is converted to robot by communication connection-bridge
The identifiable format of control system.
Step S207, robot control system execute the operational order, to realize the control and test to robot.
Step S208 surveys web page platform processed and has monitored whether that operating terminal exits current connection, if without if
Otherwise return step S202 reduces connection number C and executes step S209.
Step S209 judges that current survey regulates and controls whether web page platform connection number C processed is 0, thens follow the steps if it is 0
S210, otherwise return step S202.
Step S210 is surveyed and control system is adjusted to enter standby mode, return step S202.
As embodiment, when connection number C is 0, i.e., no operating terminal connection, entire survey adjusts control system (including logical
Interrogate connection-bridge and survey web page platform processed) it can all enter standby mode, without reading data and exchange, save resource
And efficiency, 202 are entered step in next step, have continued to determine whether that new operating terminal is added.
It is worth noting that the above-mentioned process applied to robotic end is to execute behaviour for the new operating terminal of processing access
Make, and can then be recycled for the operating terminal that access surveys web page platform processed always and execute step S204 to step
S207, until the operating terminal exits and the connection for surveying web page platform processed.
As can be seen that above-described embodiment managed by web page with debugging machine people, i.e., in the exploitation of robot and tune
The examination stage quickly carries out the management, control and debugging of robot using web page.Also, by design communication switching bridge by
The data format of robot control system is converted to the read-write format of web, increase that web page content shows rich and
Operate convenience.Furthermore it is also possible to the management to operating terminal quantity is added, can facilitate to it is entire survey adjust control system carry out to
Machine and activation, effectively save system resource reduce energy consumption.At the same time, multioperation terminal can connect robot simultaneously, carry out
Co-ordination and management, greatly shorten the development cycle.
Fig. 4 is the device according to an embodiment of the present invention for object debugging, as shown in figure 4, described debug for object
Device 400 include obtaining module 401 and debugging module 402.Wherein, it obtains module 401 and obtains object for communicating connection-bridge
The data information of control system, by data information be converted to web can be read it is defeated by surveying web page platform processed after format
Out.Debugging module 402 is used for when survey regulates and controls web page platform processed and receives operational order, will be described by communication connection-bridge
Operational order is converted to the identifiable format of object control system and is sent to object control system, so that object control system is held
The row operational order.
As an embodiment preferably, the data that module 401 obtains object control system in communication connection-bridge are obtained
Before information, connection request can be received by surveying web page platform processed.Then, connect when survey regulates and controls web page platform processed
After being connected into function, judge whether current connection number is 0, increases connection number if 0, activation communication connection-bridge and survey regulate and control web processed
Page platform, so that communication connection-bridge obtains the data information of object control system.Otherwise increase connection number, communicate connection-bridge
Directly acquire the data information of object control system.
In another preferably embodiment, when survey regulates and controls, connection is exited in web page platform reception processed to debugging module 402
It when request, then disconnects, and reduces connection number.If current connection number is 0, communicates connection-bridge and survey Web page processed
Face platform enters standby mode, without reading data and exchange, saves resource and efficiency.
It should be noted that in the specific implementation content of the device of the present invention for object debugging, it is described above
It has been described in detail in method for object debugging, therefore has no longer illustrated in this duplicate contents.
Fig. 5 is shown can the method for object debugging using the embodiment of the present invention or the device for object debugging
Exemplary system architecture 500.Or Fig. 5 shows the method or use for object debugging that can apply the embodiment of the present invention
In the exemplary system architecture 500 of the device of object debugging.
As shown in figure 5, system architecture 500 may include terminal device 501,502,503, network 504 and server 505.
Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 501,502,503 and be interacted by network 504 with server 505, to receive or send out
Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503
(merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 501,502,503 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user
The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception
To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter
Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method provided by the embodiment of the present invention for object debugging is generally held by server 505
Row, correspondingly, the device for object debugging are generally positioned in server 505.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present invention
Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present invention and should not use model
Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM603, also it is stored with system 600 and operates required various programs and data.
CPU601, ROM 602 and RAM603 is connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus
604。
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention
Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer
Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.?
In such embodiment, which can be downloaded and installed from network by communications portion 609, and/or from can
Medium 611 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 601, system of the invention is executed
The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet
It includes and obtains module and debugging module.Wherein, the title of these modules does not constitute the limit to the module itself under certain conditions
It is fixed.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment includes: the data information for communicating connection-bridge and obtaining object control system, and data information, which is converted to web, can be read
By surveying web page platform output processed after format;When survey, which regulates and controls web page platform processed, receives operational order, pass through
The operational order is converted to the identifiable format of object control system and is sent to object control system by communication connection-bridge, with
Object control system is set to execute the operational order.
Technical solution according to an embodiment of the present invention is able to solve asking for the existing debugging exploitation extremely inconvenience to robot
Topic.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.