-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IRONSIDE-763 -- follow the 7.3.0 merge to develop with a develop merg…
…e to master. (#682) * Add dynamic_data_skip_serialization example (#642) Add dynamic_data_skip_serialization example for C++11 and Python. This is an upcoming feature in Connext DDS 7.3.0. * Fix Web Integration Service library api example by using the webserver_option() function instead of the old document_root() function * Fix formatting * COMMUNITY-81 | Move GH Actions CI to Jenkins (#650) * COMMUNITY-81: move GH Actions CI to Jenkins * COMMUNITY-81: refactor Jenkinsfile * COMMUNITY-81: update dockerfile name * COMMUNITY-81: install python dependencies * COMMUNITY-81: use pip3 instead of pip * COMMUNITY-81: use pip3 instead of pip * COMMUNITY-81: change connextdds installation path * COMMUNITY-81: change timeout * #651 #655: Fix overflow and eof issue * filter-out removed files from linux_format.py fix #633 (#663) * execute linters on release branches as well fixes #665 (#666) * CORE-13335: Fix examples that assume invalid data cannot be ALIVE (cherry picked from commit b89cfb8) * CORE-13335: Fix linting errors (cherry picked from commit 320539c) * CORE-13335: Apply lint patch file (cherry picked from commit 2a6219a) * CORE-13335: PR feedback (cherry picked from commit e2a1cbf) * CORE-13335: Apply lint patch (cherry picked from commit ada2dca) * Improve documentation in Recording examples so the CMake command always works (#667) * Improve documentation in Recording examples so the CMake command always works * Remove trailing spaces --------- Co-authored-by: Francisco Gallego Salido <fgallego@rti.com> * Remove status badge from README fixes #659 (#660) * Fix Routing Service file adapter examples * ROUTING-1182: adding cross-compilation instructions where missing for Infrastructure Services * Update VERSION for release/7.3.0 fix #677 (#678) * Use new property names and values in the lightweight and cds examples (#672) (#679) * Use new property names in the lightweight and cds examples * schema url updates * Fix linting * #fix IRONSIDE-763 -- change version to 7.3.0 in csproj files, and update README ... (#680) (#681) --------- Co-authored-by: Alex Campos <alejandro@rti.com> Co-authored-by: Francisco Gallego Salido <fgallego@rti.com> Co-authored-by: Fernando García Aranda <fgarcia@rti.com> Co-authored-by: Manuel Jesús Núñez Ruiz <manueljesusnunezruiz@gmail.com> Co-authored-by: Antonio Lopez <alopez@rti.com> Co-authored-by: lulivi <luislivilla@gmail.com> Co-authored-by: Sam Raeburn <sam@rti.com> Co-authored-by: Francisco Gallego Salido <fgallegosalido@gmail.com> Co-authored-by: Sam <raeburnsamuel@gmail.com> Co-authored-by: Juan Luis Jimenez Simon <juan@rti.com> Co-authored-by: Luis Colmenero <colmenero@rti.com>
- Loading branch information
1 parent
900c593
commit 5934acd
Showing
46 changed files
with
1,287 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
branches: | ||
- master | ||
- develop | ||
- release/* | ||
paths: | ||
- '**/*.[ch]x?x?' | ||
- '**/*.java' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.2.0 | ||
7.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/connext_dds/dynamic_data_skip_serialization/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Example Code: Skip Data Serialization for Data Recording | ||
|
||
## Concept | ||
|
||
There are scenarios where the need to deserialize or inspect data is not necessary. | ||
A common example is recording data. In this case, the application can simply | ||
record the binary data as it is received, and then replay it later. This provides | ||
a significant performance improvement. | ||
|
||
The DynamicData API provides a mode that allows sending or receiving data in its | ||
CDR format, without serializing or deserializing it. | ||
|
||
Note that while Connext provides a Recording Service, there may be situations | ||
where a custom Recording application may be useful. | ||
|
||
## Example Description | ||
|
||
This example implements a simple recording application that uses the DynamicData | ||
API to receive data in CDR format and directly record it in a file. The example | ||
also provides a replay option that reads the data buffers from the file | ||
and publishes them back. For convenience, an option to publish a few samples | ||
to test the record and replay functionality is also provided. | ||
|
||
The key parts of the example are implemented in the ``record()`` and | ||
``replay()`` functions in the example source code for each language. | ||
|
||
The example is very simple and uses a single type and topic, but it could be | ||
extended to use discovered types (see the | ||
[built-in topics example](../builtin_topics/)) to implement a more | ||
general-purpose recording application. |
57 changes: 57 additions & 0 deletions
57
examples/connext_dds/dynamic_data_skip_serialization/c++11/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# (c) 2024 Copyright, Real-Time Innovations, Inc. All rights reserved. | ||
# | ||
# RTI grants Licensee a license to use, modify, compile, and create derivative | ||
# works of the Software. Licensee has the right to distribute object form | ||
# only for use with RTI products. The Software is provided "as is", with no | ||
# warranty of any type, including any warranty for fitness for any purpose. | ||
# RTI is under no obligation to maintain or support the Software. RTI shall | ||
# not be liable for any incidental or consequential damages arising out of the | ||
# use or inability to use the software. | ||
# | ||
cmake_minimum_required(VERSION 3.11) | ||
project(rtiexamples-dynamic-data-skip-serialization) | ||
list(APPEND CMAKE_MODULE_PATH | ||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../../resources/cmake/Modules" | ||
) | ||
include(ConnextDdsConfigureCmakeUtils) | ||
connextdds_configure_cmake_utils() | ||
|
||
# Find the RTI Connext DDS libraries | ||
if(NOT RTIConnextDDS_FOUND) | ||
find_package(RTIConnextDDS | ||
"7.3.0" | ||
REQUIRED | ||
COMPONENTS | ||
core | ||
) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(PLATFORM_MODERN_CXX_STANDARD 11) | ||
|
||
add_executable(recorder_cxx2 | ||
"${CMAKE_CURRENT_SOURCE_DIR}/util.cxx" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/recorder.cxx" | ||
) | ||
|
||
target_link_libraries(recorder_cxx2 | ||
PUBLIC | ||
RTIConnextDDS::cpp2_api | ||
) | ||
|
||
target_include_directories(recorder_cxx2 | ||
PRIVATE | ||
"${CMAKE_CURRENT_BINARY_DIR}/src" | ||
) | ||
|
||
set_target_properties(recorder_cxx2 | ||
PROPERTIES | ||
OUTPUT_NAME "recorder") | ||
|
||
|
||
if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
set_target_properties(recorder_cxx2 | ||
PROPERTIES | ||
LINK_FLAGS -Wl,--no-as-needed) | ||
endif() |
69 changes: 69 additions & 0 deletions
69
examples/connext_dds/dynamic_data_skip_serialization/c++11/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Example Code: Skip Data Serialization for Data Recording | ||
|
||
## Building the Example :wrench: | ||
|
||
To build this example, first run CMake to generate the corresponding build | ||
files. We recommend you use a separate directory to store all the generated | ||
files (e.g., ./build). | ||
|
||
```sh | ||
mkdir build | ||
cd build | ||
cmake .. | ||
``` | ||
|
||
Once you have run CMake, you will find a number of new files in your build | ||
directory (the list of generated files will depend on the specific CMake | ||
Generator). To build the example, run CMake as follows: | ||
|
||
```sh | ||
cmake --build . | ||
``` | ||
|
||
**Note**: if you are using a multi-configuration generator, such as Visual | ||
Studio solutions, you can specify the configuration mode to build as follows: | ||
|
||
```sh | ||
cmake --build . --config Release|Debug | ||
``` | ||
|
||
Alternatively, you can use directly the generated infrastructure (e.g., | ||
Makefiles or Visual Studio Solutions) to build the example. If you generated | ||
Makefiles in the configuration process, run make to build the example. Likewise, | ||
if you generated a Visual Studio solution, open the solution and follow the | ||
regular build process. | ||
|
||
## Running the Example | ||
|
||
From the build directory, in one command prompt run the recorder: | ||
|
||
```sh | ||
./recorder --record data.bin | ||
``` | ||
|
||
In a second command prompt run the publisher: | ||
|
||
```sh | ||
./recorder --publish | ||
``` | ||
|
||
The recorder application will print a message each time a sample is recorded. | ||
|
||
Now kill the recorder and run the replay application. A file called `data.bin` | ||
will have been created in the current directory. | ||
|
||
Now we will run a subscriber and a reply application. | ||
|
||
To subscribe to the data we will simply use **rtiddsspy**: | ||
|
||
```sh | ||
<Connext installation>/bin/rtiddsspy -printSample | ||
``` | ||
|
||
Now run the application that replays the data recorded in `data.bin`: | ||
|
||
```sh | ||
./recorder --replay data.bin | ||
``` | ||
|
||
The subscriber will print the data that is being replayed. |
Oops, something went wrong.