Skip to content

Commit

Permalink
Examples refactor: Hello World (#4547)
Browse files Browse the repository at this point in the history
* Refs #20543: Refactor HelloWorld example

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Include XML profiles

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Include example in test automotation

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Improve README.md

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Update example test to fail if no communication stablished

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Adjust example to run test

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Please linters

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Add explicit status mask arguments

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Include sample CLI argument

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Simplify publish return

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Please uncrustify

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Add missing SHM build def and remove duplicated install

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Set sample as pub / sub option

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Rename cli_options.hpp to CLIParser.hpp

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Improve usage message

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (2)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (3)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Include namespaces

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Fix example installation

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

Refs #20543: Fix installation path

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (4)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

A

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (5)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (6)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Refactor entities

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Install XML profile

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Set EntityKind as enum class

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Remove ternary operator

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Simplify running message

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Improve CLI usage message

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Improve CLI parse

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: [ARS] Apply remain NITs

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (7)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (8)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions (9)

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Fix listener loop

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Add example in versions.md

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Fix windows and mac errors and warnings

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Fix mac warning

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Fix example test run without THIRDPARTY flags

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply internal review suggestions

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply configuration example suggestions

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #20543: Apply rev suggestions

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

---------

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso authored May 21, 2024
1 parent 1d5fafd commit e1770f0
Show file tree
Hide file tree
Showing 36 changed files with 1,682 additions and 1,004 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ option(INSTALL_EXAMPLES "Install example" OFF)
if(INSTALL_EXAMPLES)
# Install examples
install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples/cpp
DESTINATION examples/
COMPONENT examples
DESTINATION ${DATA_INSTALL_DIR}/fastdds/examples/
COMPONENT ${DATA_INSTALL_DIR}/fastdds/examples
PATTERN "examples/CMakeLists.txt" EXCLUDE
)
endif()
Expand Down
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
set(fastdds_FOUND TRUE)
add_subdirectory(cpp/dds)
add_subdirectory(cpp/rtps)
add_subdirectory(cpp/hello_world)
1 change: 0 additions & 1 deletion examples/cpp/dds/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ add_subdirectory(DiscoveryServerExample)
add_subdirectory(DynamicHelloWorldExample)
add_subdirectory(Filtering)
add_subdirectory(FlowControlExample)
add_subdirectory(HelloWorldExample)
add_subdirectory(HelloWorldExampleDataSharing)
add_subdirectory(HelloWorldExampleSharedMem)
add_subdirectory(HelloWorldExampleTCP)
Expand Down
48 changes: 0 additions & 48 deletions examples/cpp/dds/HelloWorldExample/CMakeLists.txt

This file was deleted.

224 changes: 0 additions & 224 deletions examples/cpp/dds/HelloWorldExample/HelloWorldPublisher.cpp

This file was deleted.

97 changes: 0 additions & 97 deletions examples/cpp/dds/HelloWorldExample/HelloWorldPublisher.h

This file was deleted.

Loading

0 comments on commit e1770f0

Please sign in to comment.