首页> 外国专利> MESSAGE TRANSMITTING METHOD AND DEVICE FOR A ROBOT OPERATING SYSTEM

MESSAGE TRANSMITTING METHOD AND DEVICE FOR A ROBOT OPERATING SYSTEM

机译:机器人操作系统的消息传输方法和装置

摘要

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.
机译:本申请公开了一种用于机器人操作系统的消息传输方法和装置。该方法的特定实施例包括:通过发送节点在共享存储器中循环地搜索具有具有包括写标记“可写”和读标记“ 0”的存储块指示符的存储块;以及所述发送节点修改所述被搜索出的所述存储块的所述存储块指示符的写入标记,表示正在写入所述存储块,然后将数据写入所述被搜索出的存储块;所述发送节点重置所述被搜索出的所述存储块的所述存储块指示符的写入标记,表示在写入数据后所述存储块可写,释放被搜索出的所述存储块,并通知接收节点该存储块搜索出的块是可读的。该实施例可以认识到,发送节点和接收节点可以随后在没有干扰的情况下在共享存储器中读取或写入数据。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号