-
公开(公告)号:US20170353554A1
公开(公告)日:2017-12-07
申请号:US15279723
申请日:2016-09-29
Inventor: Jingchao FENG , Liming XIA , Quan WANG , Ning QU , Zhuo CHEN
CPC classification number: H04L67/1097 , B25J9/161 , G06F3/0619 , G06F3/0637 , G06F3/064 , G06F3/0647 , G06F3/0659 , G06F3/067 , G06F9/52 , G06F9/544 , G06F12/0223 , G06F12/0815
Abstract: The present application discloses a message transmitting method and device for a robot operating system. A specific embodiment of the method comprises: searching by looping through a memory segment in a shared memory, by a transmitting node, a memory block having a memory block indicator comprising a writing mark of “writeable” and a reading mark of “0”; amending, by the transmitting node, the writing mark of the memory block indicator of the memory block searched out to indicate that the memory block is being written, and then writing data into the memory block searched out; and resetting, by the transmitting node, the writing mark of the memory block indicator of the memory block searched out to indicate that the memory block is writable after the data is written, releasing the memory block searched out and notifying a receiving node that the memory block searched out is readable. The embodiment can realize that transmitting nodes and receiving nodes may subsequently read or write data in a shared memory without interference.
-
公开(公告)号:US20170353418A1
公开(公告)日:2017-12-07
申请号:US15279138
申请日:2016-09-28
Inventor: Jingchao FENG , Liming XIA , Quan WANG , Ning QU , Zhuo CHEN
CPC classification number: H04L51/18 , B25J9/161 , G05B19/418 , G06F3/0604 , G06F3/0631 , G06F3/0637 , G06F3/067 , G06F12/023 , G06F2212/1016 , G06F2212/1044 , G06F2212/154 , G06F2212/173 , H04L67/10 , H04L67/125
Abstract: Disclosed in the present application are a method and device for managing a shared memory in a robot operating system. A detailed embodiment of the method comprises: acquiring a shared memory registering service request transmitted from a message receiving node, the shared memory registering service request comprising a topic name and a size of a required memory segment; requesting a memory segment in a shared memory area based on the size of the required memory segment, associating the topic name with the requested memory segment, and saving the topic name in a configuration file; dividing the requested memory segment into a plurality of memory blocks based on a size of a message transmitted from a message transmitting node; and deallocating the requested memory segment where any one of following conditions is satisfied: the topic name in a main node is inconsistent with that in the configuration file, the message transmitting node and message receiving node stop working, and the message receiving node stops subscribing to a topic corresponding to the topic name. By means of the embodiment, the shared memory of the robot operating system is allocated and managed more reasonably and flexibly.
-
公开(公告)号:US20180076825A1
公开(公告)日:2018-03-15
申请号:US15410642
申请日:2017-01-19
Inventor: Wei HE , Liming XIA , Yu MA , Kaiwen FENG , Yibing LIANG , Zhuo CHEN
IPC: H03M7/30
Abstract: The present application discloses a data transmission method and apparatus. A specific implementation of the method includes: receiving to-be-transmitted data sent from an information sending end, and determining a sending coding type of the to-be-transmitted data; determining a receiving coding type of an information receiving end receiving the to-be-transmitted data; converting the to-be-transmitted data from the sending coding type to the receiving coding type using a preset transcoding model, to obtain transcoded transmission data, the transcoding model representing a corresponding relationship between the sending coding type and the receiving coding type; and sending the transcoded transmission data to the information receiving end. This implementation improves the data transmission efficiency.
-
-