diff --git a/Runtime/Tx/ProBridgeTxStamped.cs b/Runtime/Tx/ProBridgeTxStamped.cs index ada68c2..cae0f69 100644 --- a/Runtime/Tx/ProBridgeTxStamped.cs +++ b/Runtime/Tx/ProBridgeTxStamped.cs @@ -5,11 +5,13 @@ namespace ProBridge.Tx public abstract class ProBridgeTxStamped : ProBridgeTx where T : std_msgs.IRosMsg, std_msgs.msg.IStamped, new() { public string frame_id = ""; + + protected bool autoAddStamp = true; protected override ProBridge.Msg GetMsg(TimeSpan ts) { data.header.frame_id = frame_id; - data.header.stamp = ts; + if(autoAddStamp) data.header.stamp = ts; return base.GetMsg(ts); }