Skip to content

Commit

Permalink
Delete old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn60 committed Feb 14, 2024
1 parent f2d0891 commit 5967d52
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,43 +46,4 @@ public override TFMessageMsg Serialize()
return _msg;
}
}
/*
[System.Serializable]
public class TFSerializer : Serializer
{
[SerializeField]
private TFMessageMsg _msg;
private AutoHeader _header;
public TFMessageMsg msg { get => _msg; }
public void Init()
{
_msg = new TFMessageMsg();
_header = new AutoHeader();
_header.Init("");
}
public TFMessageMsg Serialize(float time, TFData[] tf)
{
_header.Serialize(time);
List<TransformStampedMsg> transforms = new List<TransformStampedMsg>();
foreach(TFData tfData in tf)
{
TransformStampedMsg transform = new TransformStampedMsg();
transform.header = _header.header;
transform.header.frame_id = tfData.frame_id_parent;
transform.child_frame_id = tfData.frame_id_child;
transform.transform.translation = tfData.position.To<FLU>();
transform.transform.rotation = tfData.rotation.To<FLU>();
transforms.Add(transform);
}
_msg.transforms = transforms.ToArray();
return _msg;
}
}
*/
}

0 comments on commit 5967d52

Please sign in to comment.