Skip to content

obraun-sl/zed-ipc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZED - IPC comm

IPC transfer for ZED images

This repository shows how to transfer ZED images through sl::Mat (ZED SDK) to another process.
This uses Boost Interprocess library for IPC transfer.

Getting started

Requirements

  • Linux (Ubuntu or JetsonL4T)
  • ZED SDK and its dependencies (CUDA)
  • Boost library ( $sudo apt install libboost-all-dev)
  • OpenCV library

Build the program

Windows

  • Windows has not been tested, although it should be compatible with few changes on cmake files

Build for Linux

Open a terminal in the sample directory and execute the following command:

  • mkdir build && cd build
  • cmake .. && make

This will build 2 samples "Producer" and "Consumer".

Both are using the same class behind in a server or client configuration for easy integration

Run the program

Start Producer first : $ ./producer

Start consumer then : $ ./consumer

Both programs will show the same left image of the ZED cameras. One is directly extracted from ZED SDK (producer), the other one is read from shared memory (consumer)

Notes

  • Only tested with RGB images, but should work as-is for Floating points images as well (depth, etc...)
  • Support 1 producer and multiple consumers up to 4 (but can modified using the MAX_CONSUMER define)

Features Roadmap

v0.3

  • Add function to get the available shared memory space/name
  • Add function to retrieve the version number
  • Check support in Docker
  • Benchmark and unit tests