Skip to content

Commit

Permalink
Merge pull request #160 from Autumn60/hotfix/ros2_comp
Browse files Browse the repository at this point in the history
Fix TFMsgSerializer for ROS 2 compatibility
  • Loading branch information
Autumn60 committed May 22, 2024
2 parents c33247d + d6e2424 commit dc59e69
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public override TFMessageMsg Serialize()
foreach(TFData data in tfData)
{
TransformStampedMsg transform = new TransformStampedMsg();
transform.header.seq = headerMsg.seq;
transform.header.stamp = headerMsg.stamp;
transform.header = headerMsg;
transform.header.frame_id = data.frame_id_parent;
transform.child_frame_id = data.frame_id_child;
transform.transform.translation = data.position.To<FLU>();
Expand Down

0 comments on commit dc59e69

Please sign in to comment.