Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Runtime/Tx/ProBridgeTxStamped.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ namespace ProBridge.Tx
public abstract class ProBridgeTxStamped<T> : ProBridgeTx<T> 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);
}
Expand Down