From 80237ffa86a4a94fd1c2aedae64b902542640e83 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 30 Mar 2024 18:51:20 +0900 Subject: [PATCH 1/3] fix string bug --- include/rtps/common/Locator.h | 1 + thirdparty/Micro-CDR/include/ucdr/microcdr.h | 2 +- .../Micro-CDR/include/ucdr/types/{string.h => ucdr_string.h} | 0 thirdparty/Micro-CDR/src/c/types/{string.c => ucdr_string.c} | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename thirdparty/Micro-CDR/include/ucdr/types/{string.h => ucdr_string.h} (100%) rename thirdparty/Micro-CDR/src/c/types/{string.c => ucdr_string.c} (97%) diff --git a/include/rtps/common/Locator.h b/include/rtps/common/Locator.h index 94f55c09..e3d9c647 100644 --- a/include/rtps/common/Locator.h +++ b/include/rtps/common/Locator.h @@ -82,6 +82,7 @@ struct FullLengthLocator { } else { ucdr_serialize_array_uint8_t(&buffer, reinterpret_cast(this), sizeof(FullLengthLocator)); + return true; } } diff --git a/thirdparty/Micro-CDR/include/ucdr/microcdr.h b/thirdparty/Micro-CDR/include/ucdr/microcdr.h index e79f60f1..b76cd8b8 100644 --- a/thirdparty/Micro-CDR/include/ucdr/microcdr.h +++ b/thirdparty/Micro-CDR/include/ucdr/microcdr.h @@ -21,7 +21,7 @@ extern "C" { #include #include -#include +#include #include #include diff --git a/thirdparty/Micro-CDR/include/ucdr/types/string.h b/thirdparty/Micro-CDR/include/ucdr/types/ucdr_string.h similarity index 100% rename from thirdparty/Micro-CDR/include/ucdr/types/string.h rename to thirdparty/Micro-CDR/include/ucdr/types/ucdr_string.h diff --git a/thirdparty/Micro-CDR/src/c/types/string.c b/thirdparty/Micro-CDR/src/c/types/ucdr_string.c similarity index 97% rename from thirdparty/Micro-CDR/src/c/types/string.c rename to thirdparty/Micro-CDR/src/c/types/ucdr_string.c index de0760fe..b7f65acc 100644 --- a/thirdparty/Micro-CDR/src/c/types/string.c +++ b/thirdparty/Micro-CDR/src/c/types/ucdr_string.c @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include #include #include From e321e2dd2ab59acf276386d0ef8a023a4ddd6248 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 30 Mar 2024 22:32:29 +0900 Subject: [PATCH 2/3] test commit --- thirdparty/Micro-CDR/src/c/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/Micro-CDR/src/c/common.c b/thirdparty/Micro-CDR/src/c/common.c index 4af586ad..239372be 100644 --- a/thirdparty/Micro-CDR/src/c/common.c +++ b/thirdparty/Micro-CDR/src/c/common.c @@ -14,7 +14,7 @@ #include -#include +#include #if __BIG_ENDIAN__ const ucdrEndianness UCDR_MACHINE_ENDIANNESS = UCDR_BIG_ENDIANNESS; From 2b6e050fd728b195883bd4ba84834b70e6c2c66c Mon Sep 17 00:00:00 2001 From: Kazu <83614559+kazu-321@users.noreply.github.com> Date: Sun, 31 Mar 2024 12:15:45 +0900 Subject: [PATCH 3/3] Update Readme.md --- Readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Readme.md b/Readme.md index 26f5b8e6..979284d3 100644 --- a/Readme.md +++ b/Readme.md @@ -1,3 +1,7 @@ +**NOTE:** This branch has been modified to allow mros2 development in mbed studio. + + + **NOTE:** We maintain this repository as the component of [mros2](https://github.com/mROS-base/mros2), by adding some modifications (e.g., [PR#11](https://github.com/mROS-base/embeddedRTPS/pull/11)). So the base branch of this repository has been set to `mros2`. The branch and commit of [the original (forked) repository](https://github.com/embedded-software-laboratory/embeddedRTPS) are [mros2_master](https://github.com/mROS-base/embeddedRTPS/tree/mros2_master) and [1410a87](https://github.com/mROS-base/embeddedRTPS/commit/1410a8776660244249a84031ffa78c9bdaa45e19), respectively.