Shared memory management method and device for robot operating system

A shared memory and operating system technology, applied in the computer field, can solve the problems affecting the execution efficiency of other modules, system crashes, resource waste, etc., and achieve the effect of improving memory usage efficiency and flexible allocation

Active Publication Date: 2016-10-12
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF5 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, there are many hidden dangers in this method of automatically reclaiming memory. If some abnormal reasons occur and the unreachable memory is not cleaned up in time, it will cause a lot of waste of resources. In severe cases, it will affect the execution efficiency of other modules, and even cause the entire system to crash.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Shared memory management method and device for robot operating system
  • Shared memory management method and device for robot operating system
  • Shared memory management method and device for robot operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0024] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0025] figure 1 It shows an exemplary system architecture 100 to which embodiments of the shared memory management method or apparatus for a robot operating system of the present application can be applied.

[0026] Such as figure 1 As shown, the system architecture 100 ma...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a shared memory management method and device for a robot operating system. One specific embodiment of the method comprises the steps of obtaining a shared memory service registering request sent by a message receiving node, wherein the shared memory service registering request comprises a topic name and a needed internal storage segment size; according to the needed internal storage segment size, applying an internal storage segment for a shared memory region according to the internal storage segment size, associating a theme name with the applied internal storage segment, and storing the theme name into a configuration file; according to the size of a message sent by a message sending node, dividing the internal storage segment into a plurality of internal storage blocks; recycling the internal storage segment when any one of the conditions that the theme name in a main node and the theme name in the configuration file is not consistent, the message receiving node and the message sending node stop working, and the message receiving node does not subscribe for the theme corresponding to the theme name any more is met. According to the embodiment, shared memory of the robot operating system is more reasonably and flexibly distributed and managed.

Description

technical field [0001] The present application relates to the technical field of computers, in particular to the technical field of computer operating systems, and in particular to a shared memory management method and device for robot operating systems. Background technique [0002] ROS (Robot Operating System, robot operating system) uses a shared memory communication method. The difference between it and the traditional communication method is that it realizes the fast transmission of messages by continuously applying for new shared memory areas, so as to achieve low latency and low latency of the control channel. The high throughput of the data channel improves the operating efficiency of the system. [0003] At present, ROS uses the method of automatically reclaiming memory. When the node process stops working, the system will judge whether to reclaim the memory by itself. When all associations of the object are cut off, and the system still does not make the object re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/544B25J9/161G05B2219/34069G06F12/023G06F2212/1016G06F2212/1044G06F2212/154G06F2212/173G05B19/418H04L51/18G06F3/0604G06F3/0631G06F3/0637G06F3/067H04L67/10H04L67/125
Inventor 冯靖超夏黎明王全曲宁陈卓
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products