Micro-XRCE-DDS-Client/examples/MultiSessionHelloWorld
aineoae86-sys 608dbac01c cmake: update standalone example minimum version
Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
2026-07-05 21:09:28 +08:00
..
CMakeLists.txt cmake: update standalone example minimum version 2026-07-05 21:09:28 +08:00
HelloWorld.c Update Quality Level 1 (#210) 2021-03-23 12:16:24 +01:00
HelloWorld.h Update Quality Level 1 (#210) 2021-03-23 12:16:24 +01:00
HelloWorld.idl MultiSessionHelloWorld (#129) 2020-01-15 08:46:15 +01:00
README.md Add best effort examples and remove client.config references (#197) 2021-02-23 08:29:13 +01:00
main.c Pedatic warnings (#247) 2021-05-27 15:16:30 +02:00

README.md

MultiSessionHelloWorld example

This example will show how to create multiple sessions on the same program. Both session will have a publisher and a subscriber communicating each other. In order to compile this example, the following profiles should be enabled:

  • PROFILE_CREATE_ENTITIES_XML
  • PROFILE_WRITE_ACCESS
  • UCLIENT_PROFILE_UDP

Usage

  1. Run an agent in a certain port, for example, 2018: MicroXRCEAgent udp4 -p 2018.
  2. Run the MultiSessionHelloWorld example.

Topic

The HelloWorld topic has the following IDL representation:

struct HelloWorld
{
	unsigned long index;
	string message;
};