Skip to content

Commit ee568ca

Browse files
committed
Merge branch 'master' into Deserialization
2 parents 9e54e77 + a9e8784 commit ee568ca

File tree

18 files changed

+295
-254
lines changed

18 files changed

+295
-254
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ jobs:
55
strategy:
66
fail-fast: false
77
matrix:
8-
rosdistro: [dashing, eloquent, master]
8+
rosdistro: [master]
99
os: [ubuntu-18.04, macOS-latest, windows-latest]
10-
exclude:
11-
# pending https://github.com/ament/ament_cmake/pull/233
12-
- rosdistro: eloquent
13-
os: windows-latest
14-
# pending https://github.com/ament/ament_cmake/pull/234
15-
- rosdistro: dashing
16-
os: windows-latest
1710
runs-on: ${{ matrix.os }}
1811
steps:
1912
- if: runner.os == 'Linux'

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ Cyclone DDS is ready to use. It seeks to give the fastest, easiest, and most rob
2626

2727
## Building from source and contributing
2828

29-
Note the `master` branch maintains compatibility with ROS releases Dashing and later, including the not-yet-released [*Foxy*](https://index.ros.org/doc/ros2/Releases/Release-Foxy-Fitzroy/).
29+
The following branches are actively maintained:
30+
31+
* `master`, which targets the upcoming ROS version, [*Foxy*](https://index.ros.org/doc/ros2/Releases/Release-Foxy-Fitzroy/).
32+
* `dashing-eloquent`, which maintains compatibility with ROS releases [*Dashing*](https://index.ros.org/doc/ros2/Releases/Release-Dashing-Diademata/) and [*Eloquent*](https://index.ros.org/doc/ros2/Releases/Release-Eloquent-Elusor/)
3033

3134
If building ROS2 from source ([ros2.repos](https://github.com/ros2/ros2/blob/master/ros2.repos)), you already have this package and Cyclone DDS:
3235

cyclonedds_cmake_module/CHANGELOG.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.

cyclonedds_cmake_module/CMakeLists.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

cyclonedds_cmake_module/cmake/Modules/FindCycloneDDS.cmake

Lines changed: 0 additions & 70 deletions
This file was deleted.

cyclonedds_cmake_module/cyclonedds_cmake_module-extras.cmake

Lines changed: 0 additions & 15 deletions
This file was deleted.

cyclonedds_cmake_module/package.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

rmw_cyclonedds_cpp/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ if(NOT CMAKE_CXX_STANDARD)
2222
endif()
2323

2424
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
25-
add_compile_options(-Wall -Wextra -Wpedantic)
25+
add_compile_options(-Wall -Wextra -Wpedantic -Wimplicit-fallthrough)
2626
endif()
2727

2828
find_package(ament_cmake_ros REQUIRED)
2929

3030
find_package(rcutils REQUIRED)
3131

32-
find_package(cyclonedds_cmake_module REQUIRED)
32+
#find_package(cyclonedds_cmake_module REQUIRED)
3333
find_package(CycloneDDS QUIET CONFIG)
3434
if(NOT CycloneDDS_FOUND)
3535
message(WARNING "Could not find Eclipse Cyclone DDS - skipping '${PROJECT_NAME}'")
@@ -38,13 +38,13 @@ if(NOT CycloneDDS_FOUND)
3838
endif()
3939

4040
find_package(rmw REQUIRED)
41-
find_package(rosidl_generator_c REQUIRED)
41+
find_package(rosidl_runtime_c REQUIRED)
4242
find_package(rosidl_typesupport_introspection_c REQUIRED)
4343
find_package(rosidl_typesupport_introspection_cpp REQUIRED)
4444

4545
ament_export_dependencies(rcutils)
4646
ament_export_dependencies(rmw)
47-
ament_export_dependencies(rosidl_generator_c)
47+
ament_export_dependencies(rosidl_runtime_c)
4848
ament_export_dependencies(rosidl_typesupport_introspection_c)
4949
ament_export_dependencies(rosidl_typesupport_introspection_cpp)
5050

@@ -71,7 +71,7 @@ ament_target_dependencies(rmw_cyclonedds_cpp
7171
"rosidl_typesupport_introspection_c"
7272
"rosidl_typesupport_introspection_cpp"
7373
"rmw"
74-
"rosidl_generator_c"
74+
"rosidl_runtime_c"
7575
)
7676

7777
configure_rmw_library(rmw_cyclonedds_cpp)

rmw_cyclonedds_cpp/include/rmw_cyclonedds_cpp/TypeSupport.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#ifndef RMW_CYCLONEDDS_CPP__TYPESUPPORT_HPP_
1717
#define RMW_CYCLONEDDS_CPP__TYPESUPPORT_HPP_
1818

19-
#include <rosidl_generator_c/string.h>
20-
#include <rosidl_generator_c/string_functions.h>
21-
#include <rosidl_generator_c/u16string_functions.h>
19+
#include <rosidl_runtime_c/string.h>
20+
#include <rosidl_runtime_c/string_functions.h>
21+
#include <rosidl_runtime_c/u16string_functions.h>
2222

2323
#include <cassert>
2424
#include <string>
@@ -53,15 +53,15 @@ struct StringHelper;
5353
template<>
5454
struct StringHelper<rosidl_typesupport_introspection_c__MessageMembers>
5555
{
56-
using type = rosidl_generator_c__String;
56+
using type = rosidl_runtime_c__String;
5757

5858
static std::string convert_to_std_string(void * data)
5959
{
60-
auto c_string = static_cast<rosidl_generator_c__String *>(data);
60+
auto c_string = static_cast<rosidl_runtime_c__String *>(data);
6161
if (!c_string) {
6262
RCUTILS_LOG_ERROR_NAMED(
6363
"rmw_cyclonedds_cpp",
64-
"Failed to cast data as rosidl_generator_c__String");
64+
"Failed to cast data as rosidl_runtime_c__String");
6565
return "";
6666
}
6767
if (!c_string->data) {
@@ -73,7 +73,7 @@ struct StringHelper<rosidl_typesupport_introspection_c__MessageMembers>
7373
return std::string(c_string->data);
7474
}
7575

76-
static std::string convert_to_std_string(rosidl_generator_c__String & data)
76+
static std::string convert_to_std_string(rosidl_runtime_c__String & data)
7777
{
7878
return std::string(data.data);
7979
}
@@ -82,8 +82,8 @@ struct StringHelper<rosidl_typesupport_introspection_c__MessageMembers>
8282
{
8383
std::string str;
8484
deser >> str;
85-
rosidl_generator_c__String * c_str = static_cast<rosidl_generator_c__String *>(field);
86-
rosidl_generator_c__String__assign(c_str, str.c_str());
85+
rosidl_runtime_c__String * c_str = static_cast<rosidl_runtime_c__String *>(field);
86+
rosidl_runtime_c__String__assign(c_str, str.c_str());
8787
}
8888
};
8989

0 commit comments

Comments
 (0)