【文件属性】:
文件名称:shadesmar:使用共享内存(带有msgpack)的快速C ++ IPC
文件大小:180KB
文件格式:ZIP
更新时间:2021-01-30 20:42:03
cpp high-performance ipc rpc publish-subscribe
Shadesmar
指针。
使用系统共享内存传递消息的IPC库。 通信模式是类似于ROS和ROS2的publish-subscibe或RPC。
所需的软件包:Msgpack
注意:Pre-alpha软件。
产品特点
多个订阅者和发布者。
多线程RPC支持。
使用循环缓冲区在进程之间传递消息。
比使用ROS时使用网络堆栈更快。
分散的,没有。
允许传递序列化消息(使用msgpack )和原始字节。
无需为消息定义外部IDL文件。 使用C ++类作为消息定义。
发布-订阅
发布者:
# include < shadesmar>
# include < shadesmar>
int main () {
shm::memory::DefaultCopier cpy;
shm::pubsub::Publisher pub ( " topic_name " , &cpy);
const uint32_t data_size = 1024 ;
void *data = ma
【文件预览】:
shadesmar-master
----benchmark()
--------dragons.cpp(2KB)
----simul()
--------simul.py(4KB)
--------requirements.txt(9B)
--------README.md(323B)
----.github()
--------workflows()
----test()
--------pubsub_test.cpp(3KB)
--------rpc_test.cpp(2KB)
--------allocator_test.cpp(5KB)
--------dragons_test.cpp(3KB)
--------pubsub_bin_test.cpp(3KB)
--------tmp_test.cpp(1KB)
--------micro_benchmark.cpp(4KB)
----include()
--------shadesmar()
--------catch.hpp(630KB)
----LICENSE(1KB)
----src()
--------flush_tmp.cpp(2KB)
----.clang-format(85B)
----configure(63B)
----.gitignore(120B)
----CMakeLists.txt(1KB)
----CODE_OF_CONDUCT.md(3KB)
----README.md(4KB)
----scripts()
--------install_deps.sh(479B)
--------format.sh(66B)
--------run_tests.sh(143B)
--------lint.sh(229B)
----PreLoad.cmake(54B)