Write a tfMessage to bag file
Hi,
I'm trying to write a tfMessage to bag file.
I can very well write a StampedTransform using transformStampedTFToMsg, which helps generating a geometry_msgs::StampedTransform. However this results in an error in a package I'm using:
Client [/mono_odometer] wants topic /tf to have datatype/md5sum
[tf/tfMessage/94810edda583a504dfda3829e70d7eec], but our version has [geometry_msgs/TransformStamped/b5764a33bfeb3588febc2682852579b0]. Dropping connection.
And this
tf::tfMessage msg;
bag.write("tf", ros::Time(data->timestamp*1e-6), msg);
Does not compile (and there's no way to set a transform for msg).
What's a way of writing tfMessage to bag file while setting a transform and a timestamp?