ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How do I best save a transform to a file?

asked 2014-07-10 05:53:18 -0500

paturdc gravatar image

Since it seems the rosbag C++ API doesn't work very well with the tf library, and I cannot find a simple way of saving ROS datatypes to files, I don't know how to best save a transform that I have calculated. I really need something that maintains the datatype, so that I won't need to make my own functions just to separately read position and orientation and so forth.

For what it's worth, I am considering using just a geometry_msgs::Quaternion and a geometry_msgs::Point and recreating the transform from those data. Any other recommendations?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-10 06:02:56 -0500

dornhege gravatar image

There is geometry_msgs::Pose for that that already contains a pose and orientation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-10 05:53:18 -0500

Seen: 492 times

Last updated: Jul 10 '14