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

Seigo's profile - activity

2013-02-07 01:18:53 -0500 received badge  Good Question (source)
2012-09-18 02:21:49 -0500 received badge  Notable Question (source)
2012-09-18 02:21:49 -0500 received badge  Famous Question (source)
2012-09-18 02:21:49 -0500 received badge  Popular Question (source)
2012-05-25 08:57:20 -0500 received badge  Nice Question (source)
2012-05-24 23:57:07 -0500 received badge  Supporter (source)
2012-05-24 05:47:24 -0500 commented answer "rosbag record" vs "rosbag::Bag"

Thanks! That's what I am looking for.

2012-05-24 05:46:55 -0500 received badge  Scholar (source)
2012-05-24 05:21:27 -0500 received badge  Student (source)
2012-05-24 04:21:41 -0500 asked a question "rosbag record" vs "rosbag::Bag"

Hi,

When I usually log kinect and other large data, I use "rosbag::Bag" insted of "rosbag record" command. Because a bag made by "rosbag record" has some timestamp delay and gap. On the other hand, a bag made by "rosbag::Bag" is well-timestamped (even where it log kinect data).

rosbag::Bag bag;
string filename = ros::package::getPath("xxx_bags");
filename.append("/bag/kinect.bag");
bag.open(filename, rosbag::bagmode::Write);
 :
bag.write("/topic",stamp,msg);
 :

However, it's a little pain to write all nodes. Does someone have any other good tips?