From 6614cf89c2d97717207423f1ce9dc30293008b62 Mon Sep 17 00:00:00 2001 From: Andrea Sorbini Date: Wed, 14 Apr 2021 11:57:52 -0700 Subject: [PATCH] Backport #23 and #33 to branch `dashing` * Correctly detect empty messages (#33) Signed-off-by: Andrea Sorbini * Change index.ros.org -> docs.ros.org. (#23) Signed-off-by: Chris Lalancette --- README.md | 2 +- rmw_connextdds_common/src/common/rmw_type_support.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a08c49ae..bc6cff4e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ROS 2 Middleware Layer for RTI Connext DDS -This repository contains two novel implementations of the [ROS 2](https://index.ros.org/doc/ros2/) +This repository contains two novel implementations of the [ROS 2](https://docs.ros.org/en/rolling) RMW layer which allow developers to deploy their ROS applications on top of [RTI Connext DDS Professional](https://www.rti.com/products/connext-dds-professional) and [RTI Connext DDS Micro](https://www.rti.com/products/connext-dds-micro). diff --git a/rmw_connextdds_common/src/common/rmw_type_support.cpp b/rmw_connextdds_common/src/common/rmw_type_support.cpp index 2f3b3a34..04b0a94d 100644 --- a/rmw_connextdds_common/src/common/rmw_type_support.cpp +++ b/rmw_connextdds_common/src/common/rmw_type_support.cpp @@ -683,7 +683,7 @@ void RMW_Connext_MessageTypeSupport::type_info( unbounded = !full_bounded; - if (unbounded && serialized_size_max == 0) { + if (full_bounded && serialized_size_max == 0) { /* Empty message */ empty = true; serialized_size_max = 1;