Assembly type intelligent robot operation method and system
The component-based intelligent robot operating system solves the problems of poor real-time performance and insufficient scalability of traditional robot operating systems, provides a multi-task parallel real-time environment and real-time analysis tools, improves development efficiency and ease of use, and meets a variety of needs. Application scenarios and high real-time requirements.
Patent Information
- Application Number
- CN202410589042.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional robot operating systems are unable to provide a real-time application running development environment and real-time monitoring and analysis tools, resulting in poor real-time performance and difficulty in meeting complex and changing demand changes. They cannot meet the needs of multiple application scenarios and high real-time application development.
It adopts a component-based intelligent robot operating system, including application layer, assembler, component layer, middleware and operating system layer. It dynamically connects functional components through the assembler to provide a multi-task parallel real-time environment and real-time analysis tools to achieve hard real-time tasks. Scheduling and response, improving scalability and ease of use.
It has realized multi-functional and complete robot operating system resources, improved the development efficiency of customization and reuse, improved the scalability and ease of use of the robot operating system, and met a variety of application scenarios and high real-time requirements.
Smart Images

Figure CN118596134A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a component-type intelligent robot operation method and system. Background Art
[0002] The intelligent robot operating system in the related art has the following disadvantages:
[0003] Applications integrated using traditional robot operating systems generally have poor real-time performance because they cannot provide a real-time application development environment and real-time monitoring and analysis tools.
[0004] Due to the flexible and changeable nature of robot applications, different projects will have different motion trajectories and tasks, and have strong customization characteristics. In addition, traditional robot manufacturers will encapsulate and shield key algorithm interfaces. Therefore, traditional robot interfaces are difficult to integrate complex applications and cannot meet complex and changing demand changes.
[0005] Therefore, it is necessary to propose a component-based intelligent robot operating system to meet customer needs for multiple application scenarios and real-time application development, and to improve the scalability and ease of use of the robot operating system. Summary of the invention
[0006] In view of this, the purpose of the embodiments of the present invention is to provide a component-based intelligent robot operation method and system to solve one or more technical problems existing in the prior art, and at least provide a beneficial choice or create conditions.
[0007] On the one hand, an embodiment of the present invention provides a component-based intelligent robot operating system, including:
[0008] The application layer is used to assemble the created functional components into customized robot applications through the assembler;
[0009] Assembler, used to dynamically connect the ports of various functional components;
[0010] The component layer is used to provide functional components for robot applications;
[0011] Middleware, which is used to manage computer system resources and provide interaction, operation and external interface encapsulation for the component layer;
[0012] The operating system layer is used to provide a multi-task parallel real-time environment for the robot and provide real-time analysis tools to achieve hard real-time task scheduling and response.
[0013] Optionally, the middle layer includes a component framework and a resource management layer;
[0014] The component framework is used to provide functional components for the component layer;
[0015] The resource management layer is used to manage abstract device resources and IO resources, and provide abstract interfaces, resource management, and maintenance for the hardware mounted to the operating system.
[0016] Optionally, the functional component has port characteristics, state machine characteristics and event characteristics;
[0017] The ports include input ports and output ports; the component is used to connect and disconnect the ports after the assembler specifies the connection relationship between the ports;
[0018] The state machine refers to a finite element task state machine within a component, which is used to manage a finite number of states of the component;
[0019] The events include input events and output events. The component is used to notify the outside by emitting relevant output events when the state changes; and to perceive events occurring in the outside or the system through input events.
[0020] Optionally, the functional component includes a thread resource module, which is used to dynamically apply for real-time scheduling threads and non-real-time scheduling threads to the operating system layer, and incorporate the applied thread resources into unified management; wherein the system scheduling priority of the real-time thread is higher than that of the non-real-time thread.
[0021] Optionally, the functional component further includes a terminal module, and the terminal module is used to provide an external interaction function.
[0022] Optionally, the functional component also includes an alarm module, which is used to collect logical errors, external errors and program errors generated or discovered during the operation of the functional component, and to notify related functional components to perform related actions, limit some functions of the functional component and send alarm information when related errors occur.
[0023] Optionally, the functional component further includes a collection module, which is used for collecting and accessing internal variables of the functional component and providing an online data collection function.
[0024] Optionally, the functional component further includes a variable module, which is used to provide visible variable access to each functional component and to serialize and deserialize variable data.
[0025] Optionally, the component layer provides an axis group component, a planning component, a language parsing component and a dynamics component;
[0026] The axis group component is used to convert the robot position and posture into a coded value for the actuator motor through the port input, drive the motor to perform motion control, and output the current real-time posture position of the robot through the port;
[0027] The planning component is used to forward the position command issued by the actuator through the port input to the algorithm library, and after the robot motion trajectory planning, the trajectory points of a motion path are calculated and output to the axis group for execution through the port;
[0028] The language parsing component is used to parse and decode the external signals and instructions received by the input port into the robot execution language, and output the robot execution language to the planning component through the port;
[0029] The dynamics component is used to predict the current dynamic torque of the robot according to the current posture of the robot received at the input port, and output the dynamic torque to the planning component through the output port.
[0030] On the other hand, an embodiment of the present invention provides a component-based intelligent robot operation method, which is applied to the component-based intelligent robot operation system according to any one of claims 1 to 9, and the method comprises the following steps:
[0031] S100, obtaining a first control instruction and a robot torque; wherein the control instruction is obtained by decoding the control instruction issued by the terminal module in the middleware through the language parsing component, and the robot torque is obtained by predicting the current posture of the robot fed back by the axis group component through the dynamic component;
[0032] S200, after receiving the control instruction output by the language parsing component and the robot torque output by the dynamics component, the planning component performs robot motion trajectory planning based on the robot torque and the first control instruction to obtain a plurality of trajectory point information;
[0033] S300, after receiving the multiple trajectory point information output by the planning component, the axis group component converts each trajectory point information into a corresponding motor encoding value in turn, and outputs the motor encoding value to the robot actuator in the application layer in turn for response, so as to update the current posture of the robot.
[0034] The embodiments of the present invention include the following beneficial effects: This embodiment provides multifunctional and complete robot operating system resources in a relatively simple and universal manner, improves the development efficiency of customizable and reusable robot functions, and improves the scalability and usability of the robot operating system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 It is a structural block diagram of a component-based intelligent robot operating system provided by an embodiment of the present invention;
[0037] Figure 2 is a structural block diagram of an intermediate layer provided by an embodiment of the present invention;
[0038] Figure 3 It is a structural block diagram of a component layer provided by an embodiment of the present invention;
[0039] Figure 4 It is a thread diagram of a component layer provided by an embodiment of the present invention;
[0040] Figure 5 It is a flow chart of a component-based intelligent robot operation method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0043] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0044] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0045] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0046] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0047] First, some nouns involved in this application are analyzed:
[0048] Robot operating system: A computer operating system architecture designed specifically for robot software development. It is an open source meta-operating system (post-operating system) that provides services similar to those of an operating system, including hardware abstraction description, underlying driver management, execution of common functions, inter-program messaging, etc. It also provides some tools and libraries for acquiring, building, writing and executing multi-machine fusion programs.
[0049] Real-time operating system (RTOS), also known as instant operating system, runs in sequence, manages system resources, and provides a consistent basis for developing applications. Compared with general operating systems, the biggest feature of real-time operating systems is "real-time". If there is a task to be executed, the real-time operating system will execute the task immediately (in a short time) without a long delay. This feature ensures the timely execution of each task.
[0050] Components can be understood as classes in object-oriented programming. Each component has its own properties and interfaces. A component can have multiple instances in a system, and the property values in different instances can be different. Communication between components must rely on the mechanism provided by ports.
[0051] As robots continue to be applied in various industries and fields, customers have put forward more and more demands on robot operating systems. However, due to the serious coupling and closed nature of the internal modules of traditional robot operating systems, it has brought certain difficulties to the maintenance and expansion of system functions. For example, to add a function to monitor the internal parameters of a robot, it is necessary to modify the underlying modules from bottom to top, and it involves the relationship between multiple modules and multiple engineers, which will generate a lot of workload and communication costs.
[0052] For traditional robot integrated application development and design, most developers use the approach of application based on secondary development interface. Robot integrated application software is developed according to customer's production and manufacturing scenarios and process requirements, but because the secondary development interface in the traditional robot operating system resources only has simple application development, it is impossible to develop or expand the full stack open field of hardware, protocols, algorithms, and complex applications, which cannot meet the various application needs of customers.
[0053] Moreover, traditional robot applications based on traditional secondary development and integration are all non-real-time, which greatly limits the development scope of robots in high-real-time applications and cannot meet customers' functional requirements for high-real-time applications.
[0054] refer to Figure 1 , an embodiment of the present invention provides a component-based intelligent robot operating system, including:
[0055] The application layer is used to assemble the created functional components into customized robot applications through the assembler;
[0056] Specifically, the application layer is composed of multiple components from the component layer, which can realize the robot handling and palletizing functions.
[0057] Assembler, used to dynamically connect the ports of various functional components;
[0058] The component layer is used to provide functional components for robot applications;
[0059] Specifically, the component layer includes various robot functional components implemented based on the middleware, which is a functional module developed based on the middleware and inherited from the component framework integration, including but not limited to planning components, axis group components, language parsing components, and dynamics components. The components are independent of each other and have no direct dependencies. Preferably, the components are independent of each other at the development level and do not depend on each other.
[0060] Middleware, which is used to manage computer system resources and provide interaction, operation and external interface encapsulation for the component layer;
[0061] Specifically, middleware is a component software framework between the computer operating system and the application layer, responsible for managing computer system resources and providing interaction, operation and external interface encapsulation for upper-layer functional components, including but not limited to alarm modules and terminal modules.
[0062] The operating system layer is used to provide a multi-task parallel real-time environment for the robot and provide real-time analysis tools to achieve hard real-time task scheduling and response.
[0063] Specifically, the operating system layer consists of a computer operating system with hard real-time task scheduling and response, as well as supporting real-time problem analysis tools to ensure the real-time operation of the robot.
[0064] The present invention provides a robot multi-task parallel real-time environment and real-time analysis tools at the computer operating system layer to ensure the real-time operation of the robot; uses an assembler to assemble and integrate components of the scattered robot basic functions into a complex robot application; and has a full-stack open module interface for hardware, algorithms, and applications;
[0065] The present invention can provide multifunctional and complete robot operating system resources in a relatively simple and universal manner, thereby improving the development efficiency of customizable and reusable robot functions.
[0066] In some embodiments, the middle layer includes a component framework and a resource management layer;
[0067] The component framework is used to provide functional components for the component layer;
[0068] Specifically, the basic functions provided by the component framework for the component layer include: terminal, alarm, collection and global variable access.
[0069] The resource management layer is used to manage abstract device resources and IO resources, and provide abstract interfaces, resource management, and maintenance for the hardware mounted to the operating system.
[0070] For example, when a servo motor is mounted on the robot operating system of the present invention, it can be abstracted as a virtual servo axis and can be switched dynamically; an interface is provided in the form of a component.
[0071] In some embodiments, the functional component has port characteristics, state machine characteristics, and event characteristics;
[0072] The ports include input ports and output ports; the component is used to connect and disconnect the ports after the assembler specifies the connection relationship between the ports;
[0073] Specifically, components can write data to output ports or read data through input ports; the input port of a component needs to be connected to the output port of other components in order to read the corresponding data; components only need to pay attention to which ports need to be read and written, and do not care about the connection relationship of the ports, thereby achieving decoupling; it should be noted that ports are attributes of components, and component ports are also part of the middleware. The port connection between components is actually also a connection relationship of the internal middle layer.
[0074] Specifically, the port connection can only be completed by specifying the instance name and port name; ports of the same category are prohibited from connecting to each other, that is, input ports are prohibited from connecting to input ports, and output ports are prohibited from connecting to output ports. If such an operation occurs, logging will be performed (error level); when the specified port does not exist in the specified component instance, logging will be performed (error level); ports with inconsistent parameter types are prohibited from connecting to each other. If such an operation occurs, logging will be performed (error level); one-to-many connection mode is supported.
[0075] The state machine refers to a finite element task state machine within a component, which is used to manage a finite number of states of the component;
[0076] Specifically, a state machine contains at least two states: initial state and final state. The initial state is the state of the state machine after initialization, and the final state is the state of the state machine at the end. The state transition behavior is triggered by events.
[0077] The events include input events and output events. The component is used to notify the outside by emitting relevant output events when the state changes; and to perceive events occurring in the outside or the system through input events.
[0078] Specifically, when a component's input event receives a related event, the component will automatically execute the related event processing function to perform related business or perform state migration; the input and output events between different components can be connected.
[0079] refer to Figure 2 In some embodiments, the functional component includes a thread resource module, which is used to dynamically apply for real-time scheduling threads and non-real-time scheduling threads to the operating system layer, and incorporate the applied thread resources into unified management; wherein the system scheduling priority of the real-time thread is higher than that of the non-real-time thread.
[0080] In some embodiments, the functional component further includes a terminal module, and the terminal module is used to provide external interaction functions.
[0081] Specifically, the external system or software sends commands through the terminal module to access or modify the current status, port data and event reception and transmission of related components.
[0082] The terminal module integrated in the component framework, in the handling scenario, the developer uses the terminal module to quickly develop a handling instruction action, which is independent of the robot's specific language and a pure functional function. After the functional function is integrated using the terminal module, the debugging function will be automatically declared to the outside world. External personnel can use plain text communication to quickly debug the function to verify the handling application function.
[0083] In some embodiments, the functional component also includes an alarm module, which is used to collect logical errors, external errors and program errors generated or discovered during the operation of the functional component, and to notify related functional components to perform related actions, limit some functions of the functional component and send alarm information when related errors occur.
[0084] The alarm module integrated in the component framework can send an alarm to other devices in plain text through the socket if the robot detects an abnormal problem during robot operation, such as in the transportation of goods, to notify other devices that the robot has entered an abnormal state.
[0085] In some embodiments, the functional component further includes a collection module, which is used to collect and access internal variables of the functional component and provide an online data collection function.
[0086] For example, the acquisition module provides the component framework with online or offline variable resources within the acquisition framework, and provides the component layer and application layer with the acquisition of robot motion signals and trajectory paths; in the handling and palletizing scenarios, the robot's motion trajectory data will be collected, so that data visualization can verify the accuracy of the robot's actual operation.
[0087] In some embodiments, the functional components further include a variable module, which is used to provide visible variable access to each functional component and to serialize and deserialize variable data.
[0088] Specifically, the variable module provides global access variables for the component framework, and each component in the component layer can read and write shared variables; global access variables include I / O signals, robot parameters, etc. For example, in handling and palletizing applications, the global I / O signals provided by the variable module are required to control the switching signals of external gas valves.
[0089] refer to Figure 3 ,In some embodiments, the component layer provides an axis group component, a planning component, a language parsing component and a dynamics component;
[0090] The axis group component is used to convert the robot position and posture into a coded value for the actuator motor through the port input, drive the motor to perform motion control, and output the current real-time posture position of the robot through the port;
[0091] The planning component is used to forward the position command issued by the actuator through the port input to the algorithm library, and after the robot motion trajectory planning, the trajectory points of a motion path are calculated and output to the axis group for execution through the port;
[0092] The component layer provides a robot kinematics algorithm interface, and data interaction is achieved through the robot kinematics algorithm interface and algorithm library.
[0093] The language parsing component is used to parse and decode the external signals and instructions received by the input port into the robot execution language, and output the robot execution language to the planning component through the port;
[0094] Specifically, the robot execution language is decoded through the HRL language analysis of the Wasu robot and the port is output to the planning component.
[0095] The dynamics component is used to predict the current dynamic torque of the robot according to the current posture of the robot received at the input port, and output the dynamic torque to the planning component through the output port.
[0096] Specifically, the component layer provides a robot dynamics algorithm interface, and the robot dynamics algorithm is used to predict the current dynamic torque of the robot.
[0097] refer to Figure 4 The real-time modified Linux system of the present invention includes, in addition to the standard Linux functions, a real-time modification of the network card module; the modification content includes: canceling the threading of the eth0 network card interrupt; the irq_exit in the top half of the interrupt directly calls do_softirq_actions instead of waking up the kernel's soft interrupt daemon thread ksoftirqd / 0, thereby increasing the real-time performance of the real-time data receiving and sending messages of the network card.
[0098] After the robot application of the present invention is started, the user thread lock and the real-time memory allocation of the user thread can be dynamically and real-timely monitored through the Liunx real-time analysis tool. If locks and dynamic memory allocation occur in the real-time task thread, a real-time timeout exception will be thrown to remind the user to make modifications according to the prompts.
[0099] The operating system will monitor the following resources of the real-time thread with priority requested by the thread manager. 1. Thread execution time slice. If the execution time slice exceeds the specified time, an alarm will be displayed; 2. The memory application operation status of the real-time thread. After startup, the real-time thread is not allowed to apply for heap memory from the kernel. If an application is made, a SIG INT system signal will be thrown; 3. The use of the real-time thread lock. After startup, the real-time thread is not allowed to lock the thread lock. If an application is made, a SIGINT system signal will be thrown. The kernel provides the thread manager with resources for the real-time thread. The thread resource management of the middle layer provides an application interface for resources to the component layer and the application layer (handling and stacking application).
[0100] like Figure 5 As shown, Figure 5 A component-based intelligent robot operation method provided in an embodiment of the present invention is applied to the component-based intelligent robot operation system described in any of the above embodiments, and the method comprises the following steps:
[0101] S100, obtaining a first control instruction and a robot torque; wherein the control instruction is obtained by decoding the control instruction issued by the terminal module in the middleware through the language parsing component, and the robot torque is obtained by predicting the current posture of the robot fed back by the axis group component through the dynamic component;
[0102] Specifically, the language parsing component receives the control instruction issued by the terminal module in the middleware and decodes it to obtain the first control instruction; at the same time, the dynamics component receives the current posture of the robot fed back by the axis group component and predicts it to obtain the robot torque;
[0103] S200, after receiving the control instruction output by the language parsing component and the robot torque output by the dynamics component, the planning component performs robot motion trajectory planning based on the robot torque and the first control instruction to obtain a plurality of trajectory point information;
[0104] Specifically, after receiving the first control instruction output by the language parsing component and the robot torque output by the dynamics component, the planning component performs robot motion trajectory planning to obtain a plurality of trajectory point information;
[0105] S300, after receiving the multiple trajectory point information output by the planning component, the axis group component converts each trajectory point information into a corresponding motor encoding value in turn, and outputs the motor encoding value to the robot actuator in the application layer in turn for response, so as to update the current posture of the robot.
[0106] Specifically, during the operation of the robot, the acquisition module can be used to collect the current position, speed, and acceleration of the axis group components online to debug the robot's rhythm and verify the completeness of its functions.
[0107] It can be seen that the contents of the above system embodiments are all applicable to the present method embodiments, the functions specifically implemented by the present method embodiments are the same as those of the above system embodiments, and the beneficial effects achieved are also the same as those achieved by the above system embodiments.
[0108] Taking the robot handling and palletizing application as an example, the specific implementation steps are explained:
[0109] Step 1: Obtain the Liunx real-time operating environment and component framework development environment.
[0110] Step 2: Identify the functions required for the robot handling and palletizing application to run, and select the robot's existing robot functional components.
[0111] For example, if the robot is performing the task of handling and palletizing, it needs to perform drive control functions and trajectory planning functions, so the axis group component, planning component, language parsing component, and dynamics component in the middle layer of Figure A should be selected.
[0112] Step 3: Use thread resource management to add the robot axis group execution component, planning component, language parsing component, and dynamics component to different thread resources;
[0113] Step 4: Connect the input ports and output ports of the robot axis group execution component, planning component, language parsing component, and dynamics component to form a component data flow;
[0114] Step 5: Start the task thread and wait for external signals and instructions. During the operation, the Liunx real-time analysis tool will dynamically monitor the real-time status of the task thread. If a timeout occurs, it will output error print information in time;
[0115] Step 6: If the language parsing component captures external signals and command triggers, it converts the signal data into robot motion commands and passes them to the dynamics component, planning component and axis group in turn. The three components will calculate and execute separately. The axis group component executes the movement according to the command position calculated by trial calculation, and finally realizes the robot task function.
[0116] Step 7: After completing the robot mission, repeat step 4.
[0117] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0118] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0119] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0120] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0124] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A component-based intelligent robot operating system, It is characterized in that include: The application layer is used to assemble the created functional components into customized robot applications through the assembler; Assembler, used to dynamically connect the ports of various functional components; The component layer is used to provide functional components for robot applications; Middleware, which is used to manage computer system resources and provide interaction, operation and external interface encapsulation for the component layer; The operating system layer is used to provide a multi-task parallel real-time environment for the robot and provide real-time analysis tools to achieve hard real-time task scheduling and response.
2. The system according to claim 1, It is characterized in that The middle layer includes a component framework and a resource management layer; The component framework is used to provide functional components for the component layer; The resource management layer is used to manage abstract device resources and IO resources, and provide abstract interfaces, resource management, and maintenance for the hardware mounted to the operating system.
3. The system according to claim 2, It is characterized in that The functional component has port characteristics, state machine characteristics and event characteristics; The ports include input ports and output ports; the component is used to connect and disconnect the ports after the assembler specifies the connection relationship between the ports; The state machine refers to a finite element task state machine within a component, which is used to manage a finite number of states of the component; The events include input events and output events. The component is used to notify the outside by emitting relevant output events when the state changes; and to perceive events occurring in the outside or the system through input events.
4. The system according to claim 2, It is characterized in that The functional component includes a thread resource module, which is used to dynamically apply for real-time scheduling threads and non-real-time scheduling threads from the operating system layer, and incorporate the applied thread resources into unified management; wherein the system scheduling priority of the real-time thread is higher than that of the non-real-time thread.
5. The system according to claim 4, It is characterized in that The functional component also includes a terminal module, and the terminal module is used to provide an external interaction function.
6. The system according to claim 4, It is characterized in that The functional component also includes an alarm module, which is used to collect logical errors, external errors and program errors generated or discovered during the operation of the functional component, and to notify related functional components to perform related actions, limit some functions of the functional component and send alarm information when related errors occur.
7. The system according to claim 4, It is characterized in that The functional component also includes a collection module, which is used for collecting and accessing internal variables of the functional component and provides an online data collection function.
8. The system according to claim 4, It is characterized in that The functional components also include a variable module, which is used to provide visible variable access to each functional component and to serialize and deserialize variable data.
9. The system according to claim 3, It is characterized in that The component layer provides an axis group component, a planning component, a language parsing component and a dynamics component; The axis group component is used to convert the robot position and posture into a coded value for the actuator motor through the port input, drive the motor to perform motion control, and output the current real-time posture position of the robot through the port; The planning component is used to forward the position command issued by the actuator through the port input to the algorithm library, and after the robot motion trajectory planning, the trajectory points of a motion path are calculated and output to the axis group for execution through the port; The language parsing component is used to parse and decode the external signals and instructions received by the input port into the robot execution language, and output the robot execution language to the planning component through the port; The dynamics component is used to predict the current dynamic torque of the robot according to the current posture of the robot received at the input port, and output the dynamic torque to the planning component through the output port.
10. A component-based intelligent robot operation method, It is characterized in that Applied to the component-based intelligent robot operating system according to any one of claims 1 to 9, the method comprises the following steps: S100, obtaining a first control instruction and a robot torque; wherein the control instruction is obtained by decoding the control instruction issued by the terminal module in the middleware through the language parsing component, and the robot torque is obtained by predicting the current posture of the robot fed back by the axis group component through the dynamic component; S200, after receiving the control instruction output by the language parsing component and the robot torque output by the dynamics component, the planning component performs robot motion trajectory planning based on the robot torque and the first control instruction to obtain a plurality of trajectory point information; S300, after receiving the multiple trajectory point information output by the planning component, the axis group component converts each trajectory point information into a corresponding motor encoding value in turn, and outputs the motor encoding value to the robot actuator in the application layer in turn for response, so as to update the current posture of the robot.
