Vortex Lite pub-sub examples
Entities is an abstract base class in DCPS, you can learn more from this slides.
- Create one (and only one) domain participant entity.
- Create a publisher entity
- Create a DDS topic entity
- Create a typed writer entity
- Publish data from typed writer
- Create one (and only one) domain participant entity.
- Create a subscriber entity
- Create a DDS topic entity
- Create a typed reader entity
- Receive data from typed reader
- mb.idl : sample IDL for DDS topics
- pub.c : publish voltage sample every 100 ms
- pub2.c : publish led sample every 100 ms
- sub1.c : subscriber voltage with listener (async)
- sub2.c : subscriber voltage with waitset (blocking)
- sub3.c : subscriber voltage with waitset (blocking) and thread pool
- sub4.c : subscriber voltage with waitset (blocking) and lock-free thread pool
- sub5.c : subscriber voltage and led with waitset (blocking) and thread pool
mkdir build && cd build
cmake ..
make
./sub2
./pub