CN110750262A - Robot system interface display method and device and robot - Google Patents

Robot system interface display method and device and robot Download PDF

Info

Publication number
CN110750262A
CN110750262A CN201910911379.4A CN201910911379A CN110750262A CN 110750262 A CN110750262 A CN 110750262A CN 201910911379 A CN201910911379 A CN 201910911379A CN 110750262 A CN110750262 A CN 110750262A
Authority
CN
China
Prior art keywords
system interface
service logic
module
interface
event
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.)
Pending
Application number
CN201910911379.4A
Other languages
Chinese (zh)
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.)
Beijing Love Relay Technology Development Co Ltd
Original Assignee
Beijing Love Relay Technology Development Co Ltd
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 Beijing Love Relay Technology Development Co Ltd filed Critical Beijing Love Relay Technology Development Co Ltd
Priority to CN201910911379.4A priority Critical patent/CN110750262A/en
Publication of CN110750262A publication Critical patent/CN110750262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a robot system interface display method and device and a robot, and relates to the technical field of robot interaction. The service logic is acquired from the service logic module, the control protocol is generated according to the service logic and is sent to the system interface module, and finally the system interface module realizes the display of the system interface needing to be displayed by the service logic according to the control protocol, so that the decoupling of the interface display and the service logic is realized, the interface display can be realized independently from the service logic distribution, the realization of the service logic is not influenced by the interface display, the human-computer interaction effect is ensured, and the use experience of a user is improved. In addition, the universal system interface is gathered, and the style from the implementation mode to the presentation form is uniform; the quick customization of the system interface is realized; through the configuration of the system interface, the quick change of the system interface can be realized by modifying the configuration under the condition of not changing the code.

Description

Robot system interface display method and device and robot
Technical Field
The invention relates to the technical field of robot interaction, in particular to a robot system interface display method and device and a robot.
Background
Currently, in a robot system, a system interface is generally implemented as a part of service logic and tightly coupled with the service logic, that is, when a robot calls a voice recognition interface, the same part of the code calls a code for displaying the interface, for example, a series of related interfaces (recognition voice prompt-thinking prompt-speaking prompt) of recognition voice state prompt are implemented in combination with the recognition voice logic.
The business logic and the interface display are realized simultaneously, and the following disadvantages exist:
1. the system stability is not facilitated, the stability of the business logic may be affected by the defects of the display layer, and once the interface display is reported by mistake, the conversation core logic cannot be smoothly carried out.
2. The interface is too tightly coupled with the business logic to facilitate independent customization of the interface. In an actual business scene, generally, the business logic does not change much, but generally, each customer generally customizes own interface display, and the interface display and the business logic are realized together, so that when the interface display is customized and modified, the business logic is influenced, the modification range is changed uncontrollably, and the modification is easy to spread.
3. The single responsibility principle of software design is violated, so that a plurality of functions are integrated together, the code is overstaffed, the size of a single module is increased, and the later maintenance is not facilitated.
The service logic is used as a core logic of the voice interaction robot, and the implementation process of the service logic has important influence on the human-computer interaction effect, so that the user experience is poor by adopting the prior art.
Disclosure of Invention
The invention aims to provide a robot system interface display method, a device and a robot, so as to solve the problems in the prior art.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
the invention provides a robot system interface display method on one hand, which comprises the following steps:
acquiring a service logic for realizing robot application from a service logic module, and generating a control protocol according to the service logic;
controlling the service logic module to send the control protocol to a system interface module;
and controlling the system interface module to realize the display of the system interface required to be displayed by the service logic according to the control protocol.
Preferably, the sending the control protocol to a system interface module includes:
establishing a monitoring callback interface according to the control protocol;
controlling the system interface module to realize the monitoring callback interface;
the realized interception callback interface is reversely registered back to the service logic module to obtain a reverse interception callback interface;
and the service logic module calls the reverse monitoring callback interface and sends the control protocol to a system interface module.
Preferably, the method further comprises the steps of:
acquiring a system interface event;
controlling the system interface module to send the event to the business logic module;
controlling the business logic module to respond to the event.
Preferably, the business logic module is responsive to the event, including:
setting unique identifiers corresponding to all elements in a system interface;
responding to the event according to the unique identification of the system interface element and the event type.
Preferably, the responding to the event according to the unique identifier of the system interface element and the event type includes:
controlling the system interface module to register an event distribution interface callback to the service logic module;
and controlling the service logic module to record the callback of the event distribution interface, and responding to the event according to the unique identifier and the event type of the system interface element when the arrival of the interface event is detected.
Preferably, the system interface includes a panel and elements on the panel, the panel and the elements on the panel are configured as loading items through a configuration file, and the loading items in the configuration file are correspondingly loaded by reading the configuration file, so as to realize the display of the system interface.
Preferably, the panel and the elements on the panel are arranged according to the business logic.
Preferably, the panel and the elements on the panel are loaded using a unified interface.
In another aspect, the present invention further provides a robot system interface display apparatus, including:
the service logic module is used for storing service logic which realizes robot application and needs to display a system interface, and is also used for sending a control protocol to the system interface module;
the system interface module is used for receiving the control protocol sent by the service logic module and also used for realizing the display of the system interface needing to be displayed by the service logic according to the control protocol;
and the control module is used for acquiring the service logic for realizing the robot application from the service logic module, generating a control protocol according to the service logic and controlling the service logic module and the system interface module to execute instructions.
A third aspect of the invention provides a robot comprising a processor and a storage medium having stored thereon instructions for execution by the processor, the instructions being executable by the processor to implement the method described above.
The invention has the beneficial effects that: according to the robot system interface display method, the device and the robot, the service logic is obtained from the service logic module, the control protocol is generated according to the service logic and sent to the system interface module, and finally the system interface module realizes the display of the system interface needing to be displayed according to the control protocol, so that the decoupling of the interface display and the service logic is realized, the interface display can be realized independently from the service logic distribution, the realization of the service logic is not influenced by the interface display, the man-machine interaction effect is ensured, and the use experience of a user is improved. In addition, by adopting the scheme of the invention, the universal system interface is gathered, and the universal system interface has a more uniform style from an implementation mode to a display form; moreover, the quick customization of a system interface is realized; through the configuration of the system interface, the quick change of the system interface can be realized by modifying the configuration under the condition of not changing the code.
Drawings
FIG. 1 is a schematic flow chart of a method for displaying an interface of a robot system according to the present invention;
fig. 2 is a schematic structural diagram of the interface display device of the robot system according to the present invention.
Detailed description of the preferred embodiments
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
The system interface refers to an interface which does not belong to any application in an operating system or is possibly displayed in each application scene. For example, in a robot operating system using voice interaction as an important interaction means, an interface for prompting a user at each stage of voice interaction and an interface with similar functions are realized in the form of a system interface as a whole.
In a multimodal interactive system, a graphical user interface generally refers to various types of user interfaces including, but not limited to, graphical, audio, visual, and the like.
As shown in fig. 1, an embodiment of the present invention provides a robot system interface display method, including the following steps:
acquiring a service logic for realizing robot application from a service logic module, and generating a control protocol according to the service logic;
controlling the service logic module to send the control protocol to a system interface module;
and controlling the system interface module to realize the display of the system interface required to be displayed by the service logic according to the control protocol.
In the method, the business logic for implementing various applications of the robot is generally included in the business logic module, and the corresponding applications are implemented through the business logic; the interface corresponding to the application is realized by the system interface module executing the instruction in the control protocol, and is separated from the service logic, meanwhile, the service logic is realized in the service logic module, the display of the system interface is realized in the system interface module, and namely, the service logic is separated from the place where the interface display is realized independently. Therefore, the method provided by the invention realizes the complete decoupling of the service logic and the interface display, avoids the influence of the realization of the interface display on the realization of the service logic, and ensures the realization effect of the service logic under the condition of realizing the interface display.
The above method is explained below by specific examples.
In the robot system mainly based on voice interaction, prompt interfaces corresponding to the service logic of the voice recognition process (voice recognition-thinking-speaking) comprise a voice recognition prompt interface, a thinking prompt interface and a speaking prompt interface. According to the method in the prior art, when a voice recognition interface is called to realize the recognition sound logic, the code for displaying the recognition sound prompt interface is called at the same part of the code, when the thinking logic is realized, the code for displaying the thinking prompt interface is called at the same part of the code, and when the speaking logic is realized, the code for displaying the speaking prompt interface is called at the same part of the code, namely, the realization of any service logic is simultaneously carried out with the realization of the corresponding interface display and is carried out in a service logic module. The method provided by the invention is realized in the following way: firstly, according to the service logic of recognition, thinking and speaking, a control protocol for displaying a recognition prompting interface, a thinking prompting interface and a speaking prompting interface is generated, when the service logic is realized, the service logic module sends the control protocol to a system interface module, and the system interface module realizes the display of the recognition prompting interface, the thinking prompting interface and the speaking prompting interface in sequence according to the control protocol, thereby realizing the separation of the realization of the service logic and the interface display.
In an embodiment of the present invention, the sending the control protocol to a system interface module includes:
establishing a monitoring callback interface according to the control protocol;
controlling the system interface module to realize the monitoring callback interface;
the realized interception callback interface is reversely registered back to the service logic module to obtain a reverse interception callback interface;
and the service logic module calls the reverse monitoring callback interface and sends the control protocol to a system interface module.
By adopting the method, the control protocol is sent to the system interface module by the service logic module, so that the control of the service logic module on the system interface module is realized, and the forward interaction between the system interface module and the service logic module is realized.
The system interface display method provided by the invention further comprises the following steps:
acquiring a system interface event;
controlling the system interface module to send the event to the business logic module;
controlling the business logic module to respond to the event.
By adopting the method, the interface event can be transmitted back to the service logic module from the system interface module, and the reverse interaction between the system interface module and the service logic module is realized.
Wherein, the service logic module responds to the event, and specifically includes:
setting unique identifiers corresponding to all elements in a system interface;
responding to the event according to the unique identification of the system interface element and the event type.
In the method, firstly, marks are set for each element involved in the system interface, and the marks are used for uniquely identifying the elements, namely, one element is set with one unique identifier so as to be identified.
Then, when the interface event arrives, the business logic module can identify the element through the element unique identifier, and further identify the event according to the element and the event type and respond to the event.
Specifically, in the embodiment of the present invention, the responding to the event according to the unique identifier of the system interface element and the event type specifically includes the following steps:
controlling the system interface module to register an event distribution interface callback to the service logic module;
and controlling the service logic module to record the callback of the event distribution interface, and responding to the event according to the unique identifier and the event type of the system interface element when the arrival of the interface event is detected.
The method can be used for responding to the interface event.
In the embodiment of the invention, the system interface comprises a panel and elements on the panel, the panel and the elements on the panel are configured into loading items through configuration files, and the loading items in the configuration files are correspondingly loaded by reading the configuration files, so that the display of the system interface is realized.
In the method, the panel and the elements on the panel are set as loading items in the configuration file, and when the system interface is started, the loading of the panel and the elements on the panel can be realized by reading the configuration file and loading the corresponding loading items according to the configuration file, so that the display of the system interface is realized.
Because the displayed elements are set as loading items in the configuration file, the element display is realized by loading the loading items in the configuration file, and the loading items in the configuration file can be directly modified, the element display can be modified by directly modifying the loading items in the configuration file without being modified by codes.
Therefore, the method provided by the invention realizes configuration through the system interface, can realize rapid change of the system interface according to the modified configuration under the condition of not changing codes, can realize rapid customization of the system interface, and meets the requirements of different customers for customizing the interface display.
In the embodiment of the invention, the panel and the elements on the panel are set according to the business logic. And loading the panel and the elements on the panel by adopting a uniform interface.
In the actual implementation process, the panel and the elements on the panel to be displayed can be defined according to the business logic, then the panel of the system interface and the uniform interface of the elements on the panel are defined, and then the uniform interface is realized, so that the interface display of the panel of the system interface and the elements on the panel can be completed, the aggregation of the universal system interface is realized, and the universal system interface has a uniform style from the realization mode to the display form.
Example two
As shown in fig. 2, an embodiment of the present invention provides a robot system interface display apparatus, including:
the service logic module is used for storing service logic which realizes robot application and needs to display a system interface, and is also used for sending a control protocol to the system interface module;
the system interface module is used for receiving the control protocol sent by the service logic module and also used for realizing the display of the system interface needing to be displayed by the service logic according to the control protocol;
and the control module is used for acquiring the service logic for realizing the robot application from the service logic module, generating a control protocol according to the service logic and controlling the service logic module and the system interface module to execute instructions.
The working principle and the realized functional effect of the device can be referred to the description in the first embodiment, and are not described herein again.
EXAMPLE III
The embodiment of the invention provides a robot, which comprises a processor and a storage medium, wherein the storage medium stores instructions executed by the processor, and the instructions are executed by the processor to realize the method of the first embodiment.
The robot in this embodiment may be used as a terminal for implementing the method in the first embodiment. The robot terminal implements the method described in the first embodiment, and the specific process can refer to the description in the first embodiment, so that the effect of the method described in the first embodiment can be achieved.
By adopting the technical scheme disclosed by the invention, the following beneficial effects are obtained: according to the robot system interface display method, the device and the robot, the service logic is obtained from the service logic module, the control protocol is generated according to the service logic and sent to the system interface module, and finally the system interface module realizes the display of the system interface needing to be displayed according to the control protocol, so that the decoupling of the interface display and the service logic is realized, the interface display can be realized independently from the service logic distribution, the realization of the service logic is not influenced by the interface display, the man-machine interaction effect is ensured, and the use experience of a user is improved. In addition, by adopting the scheme of the invention, the universal system interface is gathered, and the universal system interface has a more uniform style from an implementation mode to a display form; moreover, the quick customization of a system interface is realized; through the configuration of the system interface, the quick change of the system interface can be realized by modifying the configuration under the condition of not changing the code.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A robot system interface display method is characterized by comprising the following steps:
acquiring a service logic for realizing robot application from a service logic module, and generating a control protocol according to the service logic;
controlling the service logic module to send the control protocol to a system interface module;
and controlling the system interface module to realize the display of the system interface required to be displayed by the service logic according to the control protocol.
2. The method of claim 1, wherein sending the control protocol to a system interface module comprises:
establishing a monitoring callback interface according to the control protocol;
controlling the system interface module to realize the monitoring callback interface;
the realized interception callback interface is reversely registered back to the service logic module to obtain a reverse interception callback interface;
and the service logic module calls the reverse monitoring callback interface and sends the control protocol to a system interface module.
3. The system interface display method according to claim 1, further comprising the steps of:
acquiring a system interface event;
controlling the system interface module to send the event to the business logic module;
controlling the business logic module to respond to the event.
4. The system interface presentation method of claim 3, wherein said business logic module responding to said event comprises:
setting unique identifiers corresponding to all elements in a system interface;
responding to the event according to the unique identification of the system interface element and the event type.
5. The system interface presentation method of claim 4, wherein said responding to said event according to the unique identifier of the system interface element and the event type comprises:
controlling the system interface module to register an event distribution interface callback to the service logic module;
and controlling the service logic module to record the callback of the event distribution interface, and responding to the event according to the unique identifier and the event type of the system interface element when the arrival of the interface event is detected.
6. The system interface display method according to claim 1, wherein the system interface comprises a panel and elements on the panel, the panel and the elements on the panel are configured as loading items through a configuration file, and the loading items in the configuration file are correspondingly loaded by reading the configuration file, so that the display of the system interface is realized.
7. The system interface presentation method of claim 6, wherein said panels and elements thereon are arranged according to said business logic.
8. The system interface display method according to claim 6, wherein the panel and the elements on the panel are loaded by using a uniform interface.
9. A robotic system interface display device, comprising:
the service logic module is used for storing service logic which realizes robot application and needs to display a system interface, and is also used for sending a control protocol to the system interface module;
the system interface module is used for receiving the control protocol sent by the service logic module and also used for realizing the display of the system interface needing to be displayed by the service logic according to the control protocol;
and the control module is used for acquiring the service logic for realizing the robot application from the service logic module, generating a control protocol according to the service logic and controlling the service logic module and the system interface module to execute instructions.
10. A robot comprising a processor and a storage medium having stored thereon instructions for execution by the processor, wherein the instructions are executable by the processor to implement the method of any of claims 1-8.
CN201910911379.4A 2019-09-25 2019-09-25 Robot system interface display method and device and robot Pending CN110750262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910911379.4A CN110750262A (en) 2019-09-25 2019-09-25 Robot system interface display method and device and robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910911379.4A CN110750262A (en) 2019-09-25 2019-09-25 Robot system interface display method and device and robot

Publications (1)

Publication Number Publication Date
CN110750262A true CN110750262A (en) 2020-02-04

Family

ID=69277037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910911379.4A Pending CN110750262A (en) 2019-09-25 2019-09-25 Robot system interface display method and device and robot

Country Status (1)

Country Link
CN (1) CN110750262A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352684A (en) * 2020-02-27 2020-06-30 珠海格力电器股份有限公司 Building control point location programming system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141179A1 (en) * 2006-12-12 2008-06-12 Microsoft Corporation Navigation connection points
CN101685392A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Device for separating user interface form service logic
CN101707657A (en) * 2009-12-07 2010-05-12 北京移数通电讯有限公司 Position system of call center
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN109582310A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Data processing method, device, electronic equipment and computer readable storage medium
CN109857502A (en) * 2019-01-24 2019-06-07 苏州思必驰信息科技有限公司 Realize the system architecture that the service logic method and service logic isolated with display are separated with display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141179A1 (en) * 2006-12-12 2008-06-12 Microsoft Corporation Navigation connection points
CN101685392A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Device for separating user interface form service logic
CN101707657A (en) * 2009-12-07 2010-05-12 北京移数通电讯有限公司 Position system of call center
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN109582310A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Data processing method, device, electronic equipment and computer readable storage medium
CN109857502A (en) * 2019-01-24 2019-06-07 苏州思必驰信息科技有限公司 Realize the system architecture that the service logic method and service logic isolated with display are separated with display

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352684A (en) * 2020-02-27 2020-06-30 珠海格力电器股份有限公司 Building control point location programming system and method

Similar Documents

Publication Publication Date Title
CN109377987B (en) Interaction method, device, equipment and storage medium between intelligent voice equipment
CN102646016B (en) The user terminal of display gesture interactive voice unified interface and display packing thereof
WO2015106514A1 (en) Hover display method and device
CN106708455A (en) Virtual window-based splicing wall control method and apparatus
CN104317620A (en) Multi-screen sharing based application management method and device
EP2802984A1 (en) Mobile device application integration with infotainment head units
US11135916B2 (en) Method and apparatus for integration of vehicle applications
US20220113923A1 (en) Vehicle dual-system compatible control method and system, storage medium and vehicle-mounted terminal
CN105022627B (en) A kind of communication means in android system between View
CN102929385A (en) Method for controlling application program by voice
CN110750262A (en) Robot system interface display method and device and robot
CN106980531A (en) Input method operation processing method and device
CN109471440A (en) Robot control method, device, smart machine and storage medium
WO2017005011A1 (en) Terminal control method and accessory device
CN114328256A (en) Test method, test device, computer-readable storage medium and electronic equipment
CN107025126B (en) Resource scheduling method, NFVO and system
CN109683590B (en) Data processing method, system and related equipment
CN107484001B (en) Signal source channels naming method, TV and computer readable storage medium
CN106168974A (en) The processing method of multisystem screenshotss file and system
CN114666363B (en) Information transmission method, device, electronic equipment, storage medium and product
EP2833605A1 (en) Mobile terminal control apparatus
CN110310639B (en) Interactive expression implementation method and terminal
EP3061504B1 (en) Game system, controller, game device, control method for game device, and program
CN107122202A (en) Intelligent terminal and its upgrade method
US11209960B2 (en) Control method of terminal device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204