A ground unmanned platform control system architecture based on communication middleware
Through the ground unmanned platform control system architecture based on communication middleware, the problem of insufficient scalability and real-time performance of the control system architecture in the existing technology is solved, the rapid development and upgrade of the system is achieved, the cost is reduced, and the generalization and The level of standardization meets the diversified changes in market demand.
Patent Information
- Application Number
- CN202110358343.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-04-01
AI Technical Summary
The existing ground unmanned platform control system architecture is difficult to meet the diverse changes in market demand, lacks scalability and real-time performance, cannot quickly develop and launch upgrades that meet functions and performance, and has high development costs.
Adopting a ground unmanned platform control system architecture based on communication middleware, realizing information interaction through highly cohesive functional modules and communication middleware, supporting real-time data communication between threads, processes and Ethernet networks, using a unified address-based Programming interface and socket management to quickly build various communication network topologies.
It achieves incremental development and rapid upgrade of the system, improves the generalization and standardization level of the system, reduces development costs, shortens the time to market products, and ensures the real-time and high efficiency of the system.
Smart Images

Figure CN113127229B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous control of ground unmanned platforms, and relates to a ground unmanned platform control system architecture based on communication middleware. Background Art
[0002] A ground unmanned platform is an unmanned ground mobile platform that can be operated in a remote, semi-autonomous or autonomous manner with the support of a control system, and can carry a variety of mission payloads to complete high-risk, boring and difficult-to-reach tasks and tasks. It has a wide range of uses in the military and civilian fields. For a ground unmanned platform, the control system is its most important component, which determines the intelligence level and comprehensive capabilities of the ground unmanned platform.
[0003] The architecture is the overall integration and organizational framework of the control system. Its design decisions include the composition of the control system functional modules, the relationship between modules and the determination of data flow / control flow, communication protocols and interface specifications, global information resource management, and overall scheduling mechanism, which directly affects the overall performance of the system.
[0004] As the maturity of ground unmanned platform technology continues to improve, its application scope is becoming more and more extensive, and the requirements for its functions and capabilities are also diverse. In order to be able to respond to diverse needs in an agile manner and quickly develop ground unmanned platform products that meet market needs, this places high demands on the control system architecture of ground unmanned platforms. First, the control system architecture must have good scalability and be able to support incremental development of functional modules so that it can respond to market needs in an agile manner; second, it must be able to insert new technologies in a timely manner to improve the performance of functional modules; third, it must have high operating efficiency to meet the real-time operation requirements of the control system; finally, the architecture must be universal, the protocol must be standardized, and the reusability must be good, so as to improve development efficiency, reduce development costs, and quickly launch products.
[0005] In response to the development needs of ground unmanned platforms, the National Institute of Standards and Technology of the United States proposed a 4D / real-time control system (4D / RCS) reference model architecture, which is a typical hierarchical control system architecture. The nodes of each layer are composed of several modules such as sensor information processing, world modeling, and behavior generation. Among them, the sensor information processing module processes the external information obtained by the sensor and provides it as input to the world modeling module for building the current world model. The behavior generation module optimizes the generation of the behavior of this layer based on the world model and upper-level instructions and knowledge base. Since the hierarchical structure of the system needs to be designed in advance, this architecture is not suitable for incremental development, and new functional modules cannot be inserted immediately according to changes in requirements. In addition, the 4D / RCS architecture only defines interfaces at the conceptual and semantic levels, but does not have standardized definitions at the syntax, message, and transmission levels.
[0006] The Joint Architecture for Unmanned Systems (JAUS) is an unmanned system specification proposed by the U.S. Department of Defense. It plans the information interaction mode and protocol specifications between the functional modules of the unmanned system, provides a set of message sets, and lays the foundation for the interconnection and interoperability between unmanned systems. However, JAUS is not a complete architecture. It does not describe how to design an unmanned system, but only defines the information interaction between the high-level components of the unmanned system.
[0007] The Robot Operating System (ROS) is a system architecture widely used in the robotics academic community. ROS provides a point-to-point communication mechanism with nodes as the basic functional unit. Each node is an executable file that can be designed separately on different computers and loosely coupled at runtime. Nodes interact by transmitting messages, thereby realizing multi-process or multi-machine collaboration based on core controller scheduling. Since the support of the core controller is required, ROS cannot realize a true distributed control system, and the real-time performance of the system is difficult to guarantee and the redundancy is poor. Summary of the invention
[0008] In view of this, the present invention provides a ground unmanned platform control system architecture based on communication middleware, which can agilely respond to the market's changing demands for ground unmanned platform product functions and performance, improve the reusability of the control system, reduce product development costs, and shorten the time to market for products.
[0009] A ground unmanned platform control system architecture based on communication middleware, the system architecture consists of several highly cohesive functional modules for realizing specific business, each functional module is regarded as a node in the control system; the functional module is composed of several sub-modules, and the functional modules exchange information through the communication middleware, the information is transmitted in the form of messages, and the global information of the control system is managed by using configuration files; when the control system is running, each functional module is started, each functional module takes specific data as input, and outputs specific data after business processing, and the business process and function of the ground unmanned platform control system are realized through the collaborative operation between the modules.
[0010] Furthermore, the functional module is designed according to the functional requirements of the ground unmanned platform control system, including input, business processing and output, and realizes relatively independent business functions as a node in the control system; wherein the input data comes from the collected sensor information or the information output by other functional modules. Therefore, the operation of the functional module is data-driven.
[0011] Furthermore, according to the complexity of the function implementation, the function module is divided into several sub-modules for implementation, and each sub-module implements relatively independent functions. In software implementation, the function module runs as an independent process, and the sub-module runs as an independent thread in the process.
[0012] Furthermore, the communication middleware is responsible for realizing information interaction between functional modules, supporting real-time data communication between threads, processes and Ethernet networks, supporting point-to-point, publish-subscribe and bus communication modes, and can quickly build various communication network topologies such as one-to-one, one-to-many, many-to-many, etc.; the communication middleware adopts a unified address-based programming interface and is managed by sockets. A communication socket can bind and connect multiple ports at the same time. There is no distinction between servers and clients in the entire network nodes, and there is no startup order requirement for nodes. It has the function of framing and sending large data packets and reassembling them.
[0013] Furthermore, the information is transmitted in the form of a message. In terms of software implementation, the message is defined according to a structure, including a message header and a message body, and the message header includes a message type, a timestamp and a sequence number. The message body is specifically defined according to the attributes of the information and is the information carrier of the message.
[0014] Furthermore, the global information of the control system includes parameters shared by control system functional modules and system configuration parameter information, such as sensor installation posture, grid map and tracking control parameters; the global information is managed using a configuration file, and when the functional module is initialized, the relevant parameter values are obtained by reading the configuration file.
[0015] Beneficial effects:
[0016] 1. The present invention supports incremental development of control systems. With the support of the architecture, it is possible to quickly add corresponding functional modules to the control system according to the market demand for the functions and performance of ground unmanned platform products, and respond to market demands in an agile manner.
[0017] 2. The present invention can timely insert new technologies to ensure the advanced performance of the system. Due to the use of standardized message formats and definitions and program implementation paradigms, the functional modules that adopt new technologies and new algorithms can quickly replace the existing functional modules in a timely manner to achieve system upgrades.
[0018] 3. The present invention is conducive to improving the universalization and standardization of control systems. Since the domain models of ground unmanned platforms are similar and their core business models are universal, building a control system based on the proposed architecture and message definition to form a software framework for implementing underlying functions is conducive to reusing existing results, improving the universalization and standardization level, and shortening the product development cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a module composition diagram of the system architecture of the present invention. DETAILED DESCRIPTION
[0020] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0021] like Figure 1 As shown, the present invention provides a ground unmanned platform control system architecture based on communication middleware, which is composed of functional modules such as laser point cloud modeling module, image modeling module, positioning and orientation module, decision control module, platform manipulation control module and human-machine interface module. Information exchange is carried out between functional modules through communication middleware.
[0022] The functional module implements specific business functions through data-driven means, that is, it receives specific inputs, processes them through business algorithms, and outputs results.
[0023] Among them, based on the laser point cloud modeling module, the laser radar measurement point cloud and the ground unmanned platform posture are periodically collected from the laser radar sensor, the environment is classified for passability, and the passability cost map is constructed and output.
[0024] Based on the camera image modeling module, the camera measurement image information and the ground unmanned platform posture are periodically collected from the camera sensor, the environment is classified for passability, and the passability cost map is constructed and output.
[0025] In the decision control module, the passability cost map, the ground unmanned platform posture and the task path constructed based on different sensor information are used as inputs. The passability cost map constructed based on different sensor information is first fused; then local path planning is performed based on the passability cost map and the ground unmanned platform posture to generate the current executable local path; finally, according to the executable local path, the task path and the ground unmanned platform posture, the chassis motion autonomous control instructions are generated and output. At the same time, the fused passability map and the planned local path are displayed to facilitate system debugging.
[0026] The positioning and orientation module periodically collects measurement information from the positioning and orientation equipment, and publishes and outputs it in the form of the current position and posture of the ground unmanned platform to provide input for other functional modules.
[0027] The platform manipulation control module takes the chassis motion autonomous control instructions and remote control instructions as input, determines and outputs the chassis control instructions to the chassis controller according to the ground unmanned platform operation mode, and receives and outputs the chassis status information fed back by the chassis controller.
[0028] The human-computer interaction module receives the mission path and remote control instructions sent by the ground unmanned platform control terminal, and receives the platform posture output by the positioning and orientation module and the chassis status information output by the platform manipulation control module, and feeds this information back to the ground unmanned platform control terminal.
[0029] The functional modules are deployed on a computer, and each functional module runs as an independent process, and the process contains multiple threads, and each thread implements relatively independent functions. Among them, the laser point cloud modeling module is implemented by 2 threads, one thread implements the laser point cloud and platform posture acquisition function, and the other thread implements the laser point cloud modeling function; the image modeling module is implemented by 2 threads, one thread implements the image platform posture acquisition function, and the other thread implements the image-based modeling function; the positioning and orientation module is implemented by 1 thread; the decision control module is implemented by 4 threads, which respectively implement the input acquisition, perception map fusion and local path planning, cost map and path display, and path tracking motion control instruction generation and release functions; the platform manipulation control module is implemented by 3 threads, which respectively implement the control instruction acquisition, control instruction sending chassis controller, and chassis status acquisition and release functions; the human-computer interaction module is implemented by 2 threads, one thread realizes the communication function with the control terminal, receives the task path and remote control instructions, and feedbacks the platform status information, and the other thread realizes the platform status acquisition function.
[0030] In terms of software implementation, the functional modules all inherit from the unified multi-task module class dnet_task_t, which can execute 5 tasks at the same time. The main members and functions of this class are as follows:
[0031]
[0032]
[0033] When implementing a functional module, you only need to inherit this class and design and implement the thread function for each task.
[0034] The functional modules realize input and output interaction between modules in the form of messages through the communication middleware, support real-time data communication between threads, processes and Ethernet networks, support multiple communication modes such as point-to-point, publish-subscribe and bus, and can quickly build multiple communication network topologies such as one-to-one, one-to-many, many-to-many, etc. The communication middleware adopts a unified address-based programming interface and is managed with a single socket. One communication socket can bind (or connect) multiple ports at the same time.
[0035] In terms of software, the socket is implemented using the class dnet_socket_t, the main members and functions of this class are as follows:
[0036]
[0037] Among them, sock_type is the socket type, including point-to-point bidirectional receiving and receiving type (DNET_PAIR), publishing type (DNET_PUB), subscription type (DNET_SUB) and bus type (DNET_BUS); dnet_msg_t is the memory management class of message data, which is used to dynamically manage memory allocation and automatic destruction, prevent memory leaks, and improve data availability and security.
[0038] The following are examples of socket applications:
[0039] (1) Create a socket object
[0040] dnet_socket_t subscriber;
[0041] dnet_socket_t publisher;
[0042] (2) Initialize the socket, set its type and send and receive timeout value
[0043] subscriber.sock_init(DNET_SUB,100);
[0044] publisher.sock_init(DNET_PUB,100);
[0045] (3) Define the socket address and set whether to bind or connect to the address
[0046] subscriber.sock_addr((char*)"ipc: / / addr_sub",false);
[0047] publisher.sock_addr((char*)"ipc: / / addr_pub",true);
[0048] (4) Receiving data packets
[0049] dnet_msg_t msg;
[0050] void*header;
[0051] int recv_size=subscriber.recv_pack(header,sizeof(header),msg);
[0052] (5) Publishing data packets
[0053] dnet_msg_t msg;
[0054] void*header;
[0055] After assigning values to msg and header, call the send_pack function.
[0056] int num_send=publisher.send_pack(header,size_header,&msg);
[0057] The functional modules interact with each other through messages, and the messages are defined in the form of structures, including a message header and a message body.
[0058] In this embodiment, the message header includes information such as message timestamp, sequence number and type, which are defined as follows:
[0059]
[0060] In this embodiment, the main messages defined are as follows:
[0061] (1) Accessibility cost map
[0062] The passability cost map is represented in the form of a grid map, and each grid is assigned a passability cost attribute with a numerical value. Its data structure is as follows:
[0063]
[0064] (2) Position and posture of ground unmanned platform
[0065] Including the position of the ground unmanned platform in the global coordinate system, the position, attitude, speed, etc. in the local coordinate system. Its data structure is as follows:
[0066]
[0067]
[0068] (3) Task Path
[0069] The global path of the ground unmanned platform to perform the task is represented in the form of a sequence of waypoints, and each waypoint is represented by three-dimensional coordinates. Its data structure is as follows:
[0070]
[0071] (4) Motion control instructions
[0072] The forward linear velocity and curvature are used to represent the longitudinal motion control instructions and the lateral motion control instructions of the ground unmanned platform respectively.
[0073]
[0074] (5) Remote control instruction
[0075] Control instructions sent by the remote control terminal to the ground unmanned platform, including platform working mode, remote control maneuvering speed, remote control steering angular velocity, light switch control, equipment power switch control, video channel control, etc.
[0076]
[0077]
[0078] (6) Chassis control instruction
[0079] The data structure definition of the chassis control instruction is the same as that of the remote control instruction data structure.
[0080] (7) Chassis status
[0081] Including fault level, enable status, parking status, power mode, fuel quantity, battery power, battery voltage, battery current, light and equipment power switch status, etc.
[0082]
[0083] In the described control system architecture, the system global information includes the parameters shared by the control system function modules and the system configuration parameters, such as the installation pose of the sensor, the grid map and the tracking control parameters, etc. The global information is managed using a configuration file. When the function module is initialized, the relevant parameter values are obtained by reading the configuration file.
[0084] The described configuration file adopts the xml format, and each parameter is defined in the following form:
[0085] <Parameter name type=Parameter type>Parameter value< / Parameter name>
[0086] When the function module is initialized, read the xml configuration file, and parse out the parameter values required by the function module from it, and assign them to the corresponding variables.
[0087] When the control system adopting the described architecture is running, start each thread defined in the function module process, receive specific input messages, after business processing, output specific messages, and through the collaborative operation between modules, realize the business process and functions of the control system.
[0088] The basic collaborative operation process of this embodiment is:
[0089] (1) The human-computer interaction module receives the task path and remote control instructions sent by the remote control terminal through the data link and publishes them. It subscribes to the position and posture of the ground unmanned platform and feeds them back to the remote control terminal.
[0090] (2) The positioning and orientation module collects measurement information from the positioning and orientation equipment and publishes it in the form of position and orientation messages.
[0091] (3) Based on the laser point cloud modeling module, the laser radar measurement point cloud is collected from the laser radar sensor, and the subscribed ground unmanned platform posture is used as input to build and publish the passability cost map.
[0092] (4) The camera image modeling module collects camera measurement information from the camera sensor and uses the subscribed ground unmanned platform posture as input to build and publish the passability cost map.
[0093] (5) The decision control module subscribes to the traffic cost maps, mission paths, and ground unmanned platform postures published by different modeling modules, integrates the traffic cost maps, plans the current executable local path, and generates and publishes chassis motion autonomous control instructions.
[0094] (6) The platform manipulation control module subscribes to the chassis motion autonomous control instructions and remote control instructions, determines the ground unmanned platform operation mode, determines and outputs the chassis motion control instructions to the chassis controller, and receives and publishes the chassis status information fed back by the chassis controller.
[0095] (7) The human-computer interaction module subscribes to the ground unmanned platform posture and chassis status information, and sends this information to the remote control end through the data link.
[0096] The following describes the software implementation method of the functional modules in the architecture by taking the laser point cloud modeling module as an example:
[0097] (1) Take the multi-task module class dnet_task_t as the parent class and build the module class
[0098]
[0099]
[0100] (2) Define the socket in the module initialization function onInit()
[0101] (3) Define the task loop function
[0102]
[0103] (3) Define the thread function task1_recv_locator_data()
[0104] Use the socket subscriber to receive the ground unmanned platform posture messages published by the positioning and orientation module.
[0105] (4) Define the thread function task2_build_cost_map()
[0106] The thread function is defined according to the environment modeling algorithm based on the laser point cloud.
[0107] (5) Start the LIDARSenseModule module in the main function
[0108]
[0109] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A ground unmanned platform control system architecture based on communication middleware, characterized in that: The system architecture consists of several highly cohesive functional modules that implement specific services, and each functional module is regarded as a node in the control system; The functional module is composed of several sub-modules, each of which implements relatively independent functions; the functional modules exchange information through communication middleware. The communication middleware is responsible for realizing information interaction between functional modules, supporting real-time data communication between threads, processes and Ethernet networks, supporting point-to-point, publish-subscribe and bus communication modes, and can quickly build one-to-one, one-to-many and many-to-many communication network topologies; the communication middleware adopts a unified address-based programming interface and uses sockets for management. A communication socket binds and connects multiple ports at the same time. The nodes in the whole network are not divided into servers and clients. There is no startup order requirement for nodes, and it has the function of framing and sending large data packets and reassembling them; In software implementation, the functional module runs as an independent process, and the submodule runs as an independent thread in the process; All functional modules inherit from the unified multi-task module class dnet_task_t; When implementing the functional module, the module class dnet_task_t is inherited, and the thread function of each task is designed and implemented; Information is transmitted in the form of messages, and global information of the control system is managed using configuration files; When the control system is running, each functional module is started. Each functional module takes specific data as input and outputs specific data after business processing. The business processes and functions of the ground unmanned platform control system are realized through the collaborative operation between the modules.
2. The ground unmanned platform control system architecture based on communication middleware according to claim 1, characterized in that: The functional module is designed according to the functional requirements of the ground unmanned platform control system, including three parts: input, business processing and output. As a node in the control system, it realizes relatively independent business functions; among which, the input data comes from the collected sensor information or the information output by other functional modules.
3. The ground unmanned platform control system architecture based on communication middleware as claimed in claim 1, characterized in that: The information is transmitted in the form of a message. In terms of software implementation, the message is defined according to a structure, including a message header and a message body, and the message header includes a message type, a timestamp and a sequence number. The message body is specifically defined according to the attributes of the information and is the information carrier of the message.
4. The ground unmanned platform control system architecture based on communication middleware as claimed in claim 1, characterized in that: The control system global information includes parameters shared by control system function modules and system configuration parameter information; the global information is managed using a configuration file, and when a function module is initialized, the relevant parameter values are obtained by reading the configuration file.
