diff --git a/Runtime/Core/ProBridge.cs b/Runtime/Core/ProBridge.cs index e8a1397..522e7af 100644 --- a/Runtime/Core/ProBridge.cs +++ b/Runtime/Core/ProBridge.cs @@ -32,9 +32,14 @@ public class Msg #if ROS_V2 /// - /// Quality od service, like as "qos_profile_system_default" or "qos_profile_sensor_data" + /// Quality of service, like as "qos_profile_system_default" or "qos_profile_sensor_data" /// public Qos q; +#else + /// + /// Latching flag for the message. If true, the message is a latched version of the previous message. + /// + public bool l = false; #endif /// /// Data Compression Level (0-9) @@ -100,6 +105,8 @@ public void SendMsg(PushSocket pushSocket, Msg msg) { "n", msg.n }, #if ROS_V2 { "q", msg.q.GetValue() }, +#else + { "l", msg.l }, #endif { "c", msg.c } }; @@ -206,6 +213,8 @@ private Msg DeserializeMessage(byte[] headerBytes) msg.n = (string)messageData["n"]; #if ROS_V2 msg.q = new Qos(messageData["q"]); +#else + msg.l = (bool)messageData["l"]; #endif msg.c = (int)tmpC; diff --git a/Runtime/Tx/Tf/TfSender.cs b/Runtime/Tx/Tf/TfSender.cs index 19d9944..c517059 100644 --- a/Runtime/Tx/Tf/TfSender.cs +++ b/Runtime/Tx/Tf/TfSender.cs @@ -173,6 +173,8 @@ protected void SendMsg(bool staticT = false) c = compressionLevel, #if ROS_V2 q = staticT ? __staticQos : __dynamicQos, +#else + l = staticT, #endif d = data };