# shared_memory_communicator **Repository Path**: craipy/shared_memory_communicator ## Basic Information - **Project Name**: shared_memory_communicator - **Description**: ros1使用共享内存进行通信 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2023-08-28 - **Last Updated**: 2025-08-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Shared Memory Communicator For ROS 该库旨在为ROS(机器人操作系统)提供共享内存通信的功能,以实现高效的数据交换和通信。通过使用共享内存,可以减少进程间数据传输的开销,从而提高通信效率。 ## 功能特性 * 支持在ROS节点之间通过共享内存进行数据通信。 * 提供简单的API,方便在ROS工程中集成和使用。 * 支持多种数据类型的传输,如基本类型、数组、自定义消息等。 * 提供单个头文件,集成方便 * 提供CPP与Python的两个版本,可以互相通信。 ## 编译安装 以下是安装步骤示例: 进入ros的工作目录 下载该库并进入目录: ```bash git clone https://gitee.com/craipy/shared_memory_communicator.git cd shared_memory_communicator ``` 使用ros的工具进行编译 ```bash catkin_make ``` ## 例程使用 C++例程: ```bash rosrun shared_memory_communicator sm_test ``` Python例程: ```bash rosrun shared_memory_communicator shared_memory_communicator.py ``` 执行上面的两个命令之后,两个程序会进行通信。 ## 使用指南 参见示例代码[sm_test.cpp](/test/sm_test.cpp) 和 [shared_memory_communicator.py](/scripts/shared_memory_communicator.py) ## 贡献 欢迎提供反馈、报告问题和贡献代码。如果你发现了问题或者有改进建议,请创建一个Issue来告诉我。 ## 版权信息 该库遵循 GPL3.0 许可。请查阅 `LICENSE` 文件以获取更多信息。