This presentation is a step-by-step Fast DDS tutorial in Windows on how to build an editor and subscriber from scratch. It is done using Visual Studio, and also from the command line, using the cmake options.
2. Intro
Create Fast DDS pub/sub binaries:
● From Visual Studio
● From Command Line
● Follow the steps!!
What are we going to achieve?
3. Demo Steps
1. Downloads
2. Type definition (idl)
3. Code generation
4. Configuring
5. Building in Visual Studio
6. Executing in Visual Studio
7. Building with CMake
8. Executing in Command Line
9. Output Publisher & Subscriber
4. 1. Downloads
Download & install eProsima Fast DDS Download & install Visual Studio
Step: Go to eProsima download page and Visual Studio download page
5. 2. Type definition
struct HelloWorld
{
unsigned long index;
string message;
};
HW.idl
Step: Create your idl file hw.idl
8. 5. Building in Visual Studio
Steps:
1. Open Visual Studio as
administrator
2. Open Project/Solution
generated_code.sln
3. Select hw1 project
4. Select build
9. 6. Executing Pub/Sub in Visual Studio
1. Open two VS instances
2. Add debugging parameters (one at each):
○ publisher
○ subscriber
2. Execute! F5
Steps:
11. 8. Executing command line
Step:
1. Open VS Command Line
2. Execute “Debughw.exe publisher”
Step:
1. Open VS Command Line
2. Execute Debughw.exe subscriber