-
41.
公开(公告)号:US20180067788A1
公开(公告)日:2018-03-08
申请号:US15410446
申请日:2017-01-19
Inventor: Yu Ma , Weide Zhang , Wei He , Haifeng Wang , Yibing Liang , Zhuo Chen
CPC classification number: G06F9/546 , G06F11/3024 , G06F11/3055 , G06F2209/508 , Y10S901/50
Abstract: This discloure discloses a method and apparatus for monitoring a message transmission frequency in a robot operating system. A specific implementation of the method includes: writing to-be-transmitted messages, into a pre-allocated memory; obtaining time points when the to-be-transmitted messages are written into the memory, and recording the time points in a preset time point list; determining a message transmission frequency within a preset time interval based on the time points in the time point list; and comparing the message transmission frequency with a preset message transmission frequency threshold, and generating monitoring information based on a comparing result. This implementation monitors the message transmission frequency of a process to thereby avoid information codes related to monitoring of each application from being added to the application so as to reduce the program debuging cost, and improve the monitoring efficiency.
-
公开(公告)号:US20180067787A1
公开(公告)日:2018-03-08
申请号:US15409946
申请日:2017-01-19
Inventor: Liming Xia , Jingchao Feng , Quan Wang , Ning Qu , Wei He , Chengliang Deng , Kaiwen Feng , Zhuo Chen
CPC classification number: G06F9/546 , G06F9/52 , G06F11/3024 , G06F11/3055 , Y10S901/50
Abstract: This disclosure discloses a method and apparatus for transmitting data in a robot operating system. The robot operating system includes a transmitting node, a receiving node, and a shared memory as a transmission medium between the transmitting and receiving nodes. The method in a particular embodiment includes: traversing, by the transmitting node, a sequence of data templates stored in advance in the shared memory, and determining whether the respective data templates in the sequence of data templates are currently being written into or read from; identifying a data template in the sequence of data templates currently being neither written into nor read from as a target data template, and obtaining information of the target data template; and writing data into the target data template according to the information of the target data template. This embodiment can improve the performance of transmitting the data while occupying less memory resources.
-