Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
For the problem that prior art is present, the embodiment of the present application provides a kind of data sharing method.It is following in the application
In the implementation process of the data sharing that embodiment is provided, following central principle is deferred to:In the applied field of multirobot work compound
Under scape, configuration can be with the cloud device of multiple robot communications, and equipment preset data resolution logic and data are common beyond the clouds
Logic is enjoyed, the data sharing logic between multirobot is handed into cloud device completes.For cloud device, association can be received
With the initial data that multiple robots of operation are reported, data to be shared are parsed according to data resolution logic, further according to number
Corresponding robot is given by data sharing to be shared according to shared logic, the data sharing between multirobot is realized.In this mistake
Cheng Zhong, robot need to only be received or reported data, and processing load mitigates.At the same time, it is many before being sought unity of action by cloud device
Individual robot is required for the data process method for performing, and has saved data processing resources, improves data-handling efficiency.With bottom
Divide and the technical scheme of the embodiment of the present application will be illustrated with specific embodiment with reference to accompanying drawing.
Fig. 1 is the schematic flow sheet of the data sharing method that the embodiment of the present application is provided, and with reference to Fig. 1, the method is included such as
Under step:
The original number that at least one robot is uploaded in step 101, multiple robots of cloud device acquisition work compound
According to.
Step 102, the cloud device are parsed based on the initial data and treated altogether according to default data resolution logic
Enjoy data.
Step 103, the cloud device according to default data sharing logic, by the data distributing to be shared to described
The robot of the shared data to be shared is needed in multiple robots.
For step 101, cloud device, including the server with high in the clouds calculating and store function for example can be
Cloud platform server, the webserver, distributed server etc., or the movement with high in the clouds computing function and storage
Equipment, such as comprehensive man-controlled mobile robot, comprehensive control PC etc..
Work compound, can under some specific scenes, a certain work be completed by multiple is robot cooperated;Accordingly
Ground, multiple robots of work compound participate in two or more robots of work compound.In the mistake of work compound
Cheng Zhong, needs to carry out shared can the completing work compound of the task of data between robot.
In the present embodiment, data sharing logic is no longer performed by the robot itself of work compound, but is set by high in the clouds
It is standby to seek unity of action, mitigate the burden of robot so that robot can be absorbed according to shared data execution work compound logic.
Based on this, during work compound, if there is the data to need to be shared with other robots at certain or some robots, for example
There is new data to occur, then need to report the data to cloud device, to realize the shared of data.For ease of description and area
Point, the data referred to as initial data shared with other robot the need for robot is reported.Wherein, according to work compound task
Difference, the initial data that robot is reported can be different.For cloud device, multiple machines of work compound can be obtained
The initial data that at least one robot is uploaded in people.
For step 102, data resolution logic can be pre-configured in cloud device, wherein, data resolution logic can root
Set according to the concrete application scene adaptability of multiple robot work compounds.Data resolution logic can include turning for data structure
Change and/or the selection of data content and/or the combination of data content and/or the default data processing of execution etc..According to data solution
It can be the data for being directly used in data sharing that analysis logic to initial data parse the data to be shared for obtaining.
In one case, the initial data that at least one robot is uploaded there may be data structure with data to be shared
Or formal difference, cloud device by initial data before corresponding robot is distributed to, it is necessary to previously according to default
Data resolution logic, data structure or formal conversion are carried out to initial data.In another scenario, at least one machine
The initial data that people uploads there may be the redundancy of data content with data to be shared, and cloud device is distributed to by initial data
, it is necessary to previously according to default data resolution logic, carry out redundancy to initial data and go division operation before corresponding robot, from
And final sharable data are obtained, to lift the high efficiency of data sharing.In another scenario, at least one robot
In the initial data that uploads of each robot be used to share to other robots and perform identical data handling procedures.This
When, cloud device is sought unity of action the data handling procedure according to the initial data that each robot is uploaded, and by data processing
Result is distributed to each robot to save data processing resources.
It is pre-configured in cloud device for step 103, data sharing logic, wherein data sharing logic is according to multiple
The application scenarios adaptability of robot work compound is set.Based on the data sharing logic, cloud device can will parse what is obtained
Data to be shared are issued to like clockwork needs the robot of shared data.What deserves to be explained is, data to be shared need to be shared
Robot can be whole robots or partial robotic in multiple robots, specifically depending on application scenarios.
The data sharing method that the present embodiment is provided, at least one in multiple robots of cloud device reception work compound
The initial data of robot upload is simultaneously parsed according to default data resolution logic to initial data;Parsed based on data
The data to be shared for arriving, data distributing to be shared need to extremely be carried out the machine of data sharing according to default data sharing logic
People.In such implementation method, the robot of work compound need to only be received or to cloud device reported data, data is total to
Enjoy logic and given cloud device, alleviate the processing load of robot, solve because individual machine personal data processing load is big
And cause the low defect of work compound efficiency, realize efficient multirobot work compound.
Fig. 2 is the schematic flow sheet of another data sharing method that the embodiment of the present application is provided, with reference to Fig. 2, the method bag
Include the steps:
The original number that at least one robot is uploaded in step 201, multiple robots of cloud device acquisition work compound
According to.
Step 202, the cloud device are parsed based on the initial data and treated altogether according to default data resolution logic
Enjoy data.
Between robot identifier that step 203, the cloud device are included from data sharing logic and data label
In mapping relations, it is determined that robot identifier corresponding with the data label of the data to be shared.
Step 204, the cloud device are identified the data distributing to be shared to identified robot identifier
Robot.
For step 201, the initial data that any robot is uploaded to cloud device in multiple robots of work compound
When, can be uploaded using fixed frequency, or when the initial data uploading instructions that cloud device is issued are received again
Upload.
In a kind of feasible implementation method, cloud device exists with each robot in multiple robots of work compound
During communication, robot with predeterminated frequency to cloud device send heartbeat detection bag so that cloud device can determine with
Communication connection between the robot remains unchanged presence.In the case of the data volume of initial data is less, can be by will be original
Data are packed into heartbeat detection bag, are followed heartbeat detection to wrap and are reached cloud device.Initial data is packed into heartbeat detection
The implementation method of bag, without taking new data transmission resources, saves the process resource of robot.
Optionally, when multiple robots of work compound are communicatively coupled with cloud device, can directly be communicated,
Can also be communicated by agent equipment (agent), the embodiment of the present application is not limited.
In step 202., cloud device is parsed based on the initial data and treated altogether according to default data resolution logic
Enjoy data.Embodiments thereof refers to the record of previous embodiment, does not repeat herein.
For step 203, it is pre-configured in the data sharing logic of cloud device comprising robot identifier and data
Mapping relations between label.Such as corresponding data labels of robot identifier A are B, the corresponding data of robot identifier C
Label is D.Robot identifier, i.e. each robot are uniquely identified, and can be device identification, or the cloud of robot
End equipment is allocated to identiflication number of robot etc..The unique mark of data label, i.e. data, can be got from data
The character for being capable of the unique mark data, the MD5 values, or cloud device of such as data are number according to the content of data
According to the data label with unique mark of addition.Equipment, the mapping between robot identifier and data label beyond the clouds
Relation can exist in the form of mapping table, but not limited to this.
After cloud device obtains data to be shared based on default data resolution logic to initial data parsing, obtain and treat altogether
The data label of data is enjoyed, according to the corresponding robot identification of data label that mapping relations can inquire data to be shared
Number.
For step 204, in a kind of optional implementation method, cloud device is true to institute by the data distributing to be shared
The robot that fixed robot identifier is identified, can be realized by the steps:
Step 2041:The data label of data to be shared is issued to identified robot identifier institute by cloud device
The robot of mark.The data label of the data to be shared that cloud device is issued, equivalent to a triggering command for download, so that
Data to be shared are downloaded in the backward cloud device request that robot receives the data label of the data to be shared.
Step 2042:The cloud device receives the download request that the robot sends, and the download request is carried
The data label of the IP address of the robot and port and the data to be shared.
Step 2043:The cloud device is treated altogether by corresponding socket according to the IP address and port by described
Enjoy data distributing to the robot.
Optionally, in the embodiment of the present application, cloud device need to be communicated with two or more robots, be
Ensure the accuracy and security of this parallel communications, set up logical using the communication mode based on socket (socket) agreement
Letter connection.Socket is the basic operation unit of the network service for supporting ICP/IP protocol, is end points during network service
Abstract representation.Socket is included and is carried out the necessary five kinds of information of network service:The agreement that communication connection is used, the IP of local host
Address, the port of local process, the IP address of remote ground main frame, the port of remote ground process.Application layer carries out data by transport layer
During communication, TCP can run into the problem for providing concurrent services for multiple program process simultaneously, and multiple TCP connections or multiple should
May be needed by same Transmission Control Protocol port transmission data with program process.In order to distinguish different program process and
Connection, application layer can distinguish logical from different application process or network connection with transport layer by socket interfaces
Letter, realizes the concurrent services of data transfer.
In the present embodiment, obtain after IP address and the port of robot, can be determined according to IP address and port
Which socket is data to be shared is issued by.When cloud device receives the download request from multiple robots, according to
Multiple respective IP address of robot and port can determine the corresponding socket of each robot in multiple robots.Pass through
Corresponding socket ensure that the accurate of data transfer under concurrent state to the mode that corresponding robot issues data to be shared
Property and security.
In the present embodiment, cloud device is based on after initial data parsing obtains data to be shared, according to being pre-configured in
Mapping relations between the robot identifier and data label of cloud device, it is determined that the data label with the data to be shared
Corresponding robot identifier, and by socket corresponding with robot by the data distributing to be shared to identified machine
The robot that device people's identifier is identified, realizes the data sharing of high efficiency, high accuracy, improves multirobot collaboration and makees
The efficiency of industry.
Fig. 3 is the schematic flow sheet of the another data sharing method that the embodiment of the present application is provided, with reference to Fig. 3, the method bag
Include the steps:
Step 301, cloud device obtain the respective labeled data that at least one robot is uploaded.
Step 302, the cloud device mark described at least one on the map in space where the multiple robot
The respective labeled data of robot, to generate mark map.
Be issued to for the mark map described many by step 303, the cloud device according to default data sharing logic
Each robot in individual robot.
For step 301, each labeled data includes at least one robot:At least one robot sits respective position
Mark, movement velocity, direction and being carrying out for task.Wherein, the position coordinates and direction, can be that robot is obtained
To from location information in geographic coordinate system.It can also be the machine in the case of with reference to coordinate system and object of reference
The self poisoning information that people gets.For example, robot cooperative cooperating is applied to the robot soccer Games-time, robot obtains itself
Coordinate and direction in pitch;Movement velocity can be that robot is obtained by being installed on the velocity sensor of itself
Real-time speed.Respective being carrying out for the task of at least one robot, can be the task, or machine of high in the clouds definition
The task of device people's local intelligent algorithm triggers.For example, robot cooperative cooperating is applied to the robot soccer Games-time, A robots are just
In pass, B robots are moved to passing target point, and C robots are defending other side's held ball robot.
For step 302, in a kind of feasible implementation method, indicated by the data resolution logic prestored at cloud device
Process be:On the map in space where multiple robots, mark the respective position coordinates of at least one robot and/
Or movement velocity and/or towards and/or being carrying out of the task, to generate mark map.In the present embodiment, at cloud device
The map in space where multiple robots of work compound is prestored.For example, multiple robots work compound is in robot
During football match, cloud device prestores the map of football field, map designate sideline, half-court center line, goal line and
The position of goalmouth, also can use Road, flank and wing of different chromatic zones bulb separations etc..
During multiple robot work compounds, different robot institute's roles and corresponding job task may not
Together.In fixed spatial dimension, to complete respective task, different robots should be located at different positions and have spy
Fixed direction.In some specific application scenarios, to lift the efficiency of work compound, robot needs to know what is cooperated therewith
The position of other robot.In the prior art, the map in space where being prestored at each robot, receives collaboration and makees
After the position of the other robot transmission of industry and direction, robot combines the position of itself and marks ground towards drawing
Figure.In such implementation method, each robot needs the location data sent for other robot to process and carry out
The drafting of map, this process repeatability is strong, takes more calculating process resource.In the present embodiment, cloud device is received
After the position sent at least one robot and direction, on the map in space where multiple robots, this is marked extremely
Few a respective position coordinates of robot and direction, generation mark map.It is this that mark map is directly generated by high in the clouds
Mode, it is to avoid the drawing process that multiple robots are repeated, saves the calculating process resource of robot.
So that multirobot work compound is in robot soccer game as an example, goalkeeper robot should be located at goalmouth, rear guard
Robot, centre halfback robot and forward robot are located at specific regional extent according to different arrangement formations and responsibility.
Before football match starts, each robot of work compound needs to upload respective position and direction, so that cloud device
Position and direction according to each robot are labeled on the map of the football field for prestoring to each robot, from
And a width ball match cloth system of battle formations is generated, it is easy to each robot to determine the position of our teammate and enemy teammate.In the mistake of match
The real-time change of moving towards of football is followed in Cheng Zhong, the position of robot, therefore, each robot need the respective position of real-time report with
And towards to update the ball match cloth system of battle formations, so as to ensure being smoothed out for ball match.
For step 303, cloud device after mark accompanying drawing is drawn, according to default data sharing logic, this is marked
Note map is issued to each robot in multiple robots of work compound, so that each robot knows other robot
Position and/or movement velocity and/or direction and/or being carrying out for task, for work compound provides facility.
In the present embodiment, cloud device reported according at least one robot in multiple robots of work compound itself
Position and/or movement velocity and/or towards and/or being carrying out of the task, the work compound prestored based on cloud device
The mapping mark map in space where multiple robots, and the mark map is issued to each machine of work compound
People.Above-mentioned implementation method avoids the drawing process that multiple robots are repeated, and saves the calculating process resource of robot, carries
The efficiency of multirobot work compound is risen.
Fig. 4 is the schematic flow sheet of the another data sharing method that the embodiment of the present application is provided, with reference to Fig. 4, the method bag
Include the steps:
The business datum that the first robot is uploaded in step 401, multiple robots of cloud device acquisition work compound, institute
State the identity identification information of positional information and user of the business datum including first robot.
Step 402, the cloud device are by the identification of the positional information of first robot and the user
Information analysis are first group of data to be shared.
Step 403, the cloud device according to default data sharing logic, by first group of data distributing to be shared
The second robot into the multiple robot, so that second robot recognizes the user.
Step 404, the cloud device resolve to the business demand of the identity identification information of the user and user
Second group of data to be shared.
Step 405, the cloud device according to default data sharing logic, by second group of data distributing to be shared
The 3rd robot into the multiple robot, so that the 3rd robot carries out Business Processing for the user.
The present embodiment can apply to following scene:Business handling place, amusement food and drink place etc..For example, bank
Working hall, fast food restaurant.The present embodiment is specifically addressed below with reference to specific application scenarios.
Under a kind of application scenarios, in working hall, the first robot can be business guide to visitors to multirobot work compound
Robot, with business guide to visitors and the number of taking function.Second robot can be guided robot, and guiding user goes rest to wait
Area, or guiding user removes corresponding business handling sales counter;3rd robot can be the business handling machine at business handling sales counter
Device people.
Under another application scenarios, in food and drink place, the first robot can be self-service point to multirobot work compound
Meal robot, with ordering and payment function;Second robot can be guided robot, and guiding user goes to dining area, or
Guiding user goes to pick-up area;3rd robot can be that robot is provided in food and drink.Certainly, the first robot or the second robot or
3rd robot can be made up of one or more robots respectively, and depending on specific application scenarios, the embodiment of the present application is not
It is limited.
For step 401, the coordinate and first robot of the positional information including the first robot of the first robot
Direction.In the application scenarios of the example above, the first robot is the robot directly interacted with user, therefore can be recognized
For the first robot is oriented the direction opposite with user, the position coordinates where the first robot adds toward robot direction
One or more coordinate units are the position coordinates of user.Cloud device obtains position coordinates, the court that the first robot is uploaded
After, it is the direction of user to mark the opposite direction of the direction, mark the position coordinates toward robot direction plus one or
Multiple coordinate units are the position coordinates where user.
The business demand of user, different contents is included for different application scenarios.For example, cooperateed with multirobot making
In the application scenarios in working hall, the business demand of user can be the business that user is input into by business guide to visitors robot to industry
Request, such as bank card is handled, withdrawal etc..Again for example, in multirobot work compound in the application scenarios in food and drink place
In, the business demand of user can be the food and drink that the used Self-help ordering machine people of user is placed an order.
Identity identification information, can be user with the first robot typing information, voice dialogue, swipe the card, brush certificate
Deng the client identity identification information that robot is obtained, such as cell-phone number of user input, member's card number of user input, voice pair
Talk about the information such as personal information, brush member card, the brush identity card of input.These information be used for work compound other robot according to
The identity of user is identified to user, so as to be the business demand and business procession of user's matching respective identity.
The identification knot that identity identification information, or robot are identified obtaining according to the image of the user for photographing
Really.The image of the user, can be the image that can be identified for that user characteristics of the first robot shooting, the face of such as user
Image.The image that first robot shoots user is carried out according to the image of user for the other robot of work compound to user
Identification, so that for user matches corresponding business demand and business procession.For step 402 and step 403, one
Plant in feasible implementation method, the process indicated by data resolution logic prestored at cloud device is i.e.:By first machine
The identity identification information of the positional information of people and the user resolves to first group of data to be shared.First group of number to be shared
According to the image of positional information and user comprising the first robot.Cloud device parsing obtain first group of data to be shared it
Afterwards, according to default data sharing logic by first group of data distributing to be shared to the second robot.So as to the second robot root
The user is recognized according to the identity identification information of the user included in first group of data to be shared, and is guided according to customer position information
The user is to corresponding destination locations.
For step 404 and 405, the business datum of the first robot also includes:The business demand of user, refer to before
Explanation.Second group of data to be shared, the business demand comprising the identity identification information of user and the user.Cloud device solution
After analysis obtains second group of data to be shared, according to default data sharing logic by second group of data distributing to be shared to the 3rd
Robot.So as to the 3rd robot recognizes the use according to the identity identification information of the user included in second group of data to be shared
Family, and according to the business demand of user for user handles corresponding business.
It should be noted that having no sequencing when step 402 and step 404 practical operation, first group of parsing is treated altogether
It can be only herein to tear open for convenience of description by cloud device while carry out to enjoy data and second group of process of data to be shared
It is divided into two steps, does not constitute the limitation to above-mentioned two step implementation procedure.
In the present embodiment, during multirobot work compound, cloud device according to default data resolution logic, by the first machine
The identity identification information of the positional information of itself, the business demand of user and user that device people reports resolves to corresponding treating altogether
Enjoy data, and according to default data sharing logic by data distributing to be shared to corresponding robot.Implemented such
Cheng Zhong, the robot of work compound need to only be classified and different classifications without examining to cloud device reported data to data
The sending destination of data, alleviates the data processing load of each robot of work compound, improves the effect of work compound
Rate.
Fig. 5 is the structural representation of the data sharing device that the embodiment of the present application is provided, as shown in figure 5, the device includes
Following module:
Data acquisition module 501, for the original that at least one robot in the multiple robots for obtaining work compound is uploaded
Beginning data;
Data resolution module 502, is treated altogether for according to default data resolution logic, being parsed based on the initial data
Enjoy data;
Data distribution module 503, for according to default data sharing logic, by the data distributing to be shared to described
The robot of the shared data to be shared is needed in multiple robots.
Still optionally further, the data acquisition module 501 specifically for:Obtain what at least one robot was uploaded
Respective labeled data;
Correspondingly, the data resolution module 502 specifically for:On the map in space where the multiple robot,
The respective labeled data of at least one robot is marked, to generate mark map;Correspondingly, the data distribution module
503 specifically for:According to default data sharing logic, the mark map is issued to each in the multiple robot
Robot.
Still optionally further, the data acquisition module 501 specifically for:Obtain the first machine in the multiple robot
The business datum that people uploads, the business datum includes that the positional information of first robot and the identity of the user are known
Other information;
Correspondingly, the data resolution module 502 specifically for:By the positional information of first robot and described
The identity identification information of user resolves to first group of data to be shared;Correspondingly, the data distribution module 503 specifically for:
According to default data sharing logic, by first group of data distributing to be shared to the second machine in the multiple robot
People, so that second robot recognizes the user.
Still optionally further, the business datum also includes:The business demand of the user;The data resolution module
502 are additionally operable to:The business demand of the identity identification information of the user and the user is resolved into second group of number to be shared
According to;Correspondingly, the data distribution module 503 is additionally operable to:It is to be shared by described second group according to default data sharing logic
The 3rd robot in data distributing to the multiple robot, so that the 3rd robot carries out business for the user
Treatment.
Still optionally further, the data sharing logic includes that the mapping between robot identifier and data label is closed
System;Correspondingly, the data distribution module 503 specifically for:From the mapping relations, it is determined that with the data to be shared
The corresponding robot identifier of data label;The data distributing to be shared to identified robot identifier is identified
Robot.
Still optionally further, the data distribution module 503 specifically for:By the data label of the data to be shared,
It is issued to the robot;The download request that the robot sends is received, the download request carries the robot
The data label of IP address and port and the data to be shared;According to the IP address and port, by corresponding socket
Word is by the data distributing to be shared to the robot.
Still optionally further, the data acquisition module 501 specifically for:At least one robot is received with default
The heartbeat detection bag that frequency sends, the heartbeat detection bag carries the initial data.
The data sharing device that the present embodiment is provided, at least one in multiple robots of cloud device reception work compound
The initial data of robot upload is simultaneously parsed according to default data resolution logic to initial data;Parsed based on data
The data to be shared for arriving, data distributing to be shared need to extremely be carried out the machine of data sharing according to default data sharing logic
People.In such implementation method, the robot of work compound need to only be received or to cloud device reported data, data is total to
Enjoy logic and given cloud device, alleviate the processing load of robot, solve because individual machine personal data processing load is big
And cause the low defect of work compound efficiency, realize efficient multirobot work compound.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware.Based on such understanding, on
Stating the part that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, should
Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Order is used to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.