From 2e17b8ed40c42fbfffc0224ed633d7ec656879b0 Mon Sep 17 00:00:00 2001 From: Michael Hoy Date: Wed, 13 Dec 2023 22:44:45 +0800 Subject: [PATCH] Add comment --- r2r/src/msg_types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2r/src/msg_types.rs b/r2r/src/msg_types.rs index ed68021..f309d26 100644 --- a/r2r/src/msg_types.rs +++ b/r2r/src/msg_types.rs @@ -69,6 +69,7 @@ pub trait WrappedTypesupport: fn from_native(msg: &Self::CStruct) -> Self; fn copy_to_native(&self, msg: &mut Self::CStruct); + /// This serializes the message using ROS2 methods. fn to_serialized_bytes(&self) -> Result> { use r2r_rcl::*; @@ -115,6 +116,7 @@ pub trait WrappedTypesupport: }) } + /// This deserializes the message using ROS2 methods. fn from_serialized_bytes(data: &[u8]) -> Result { use r2r_rcl::*;