ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't want to create a new question just for this question: Is the method open create the bag file?
because when I do
rosbag::Bag bag;
bag.open("test.bag", rosbag::bagmode::Write);
std_msgs::String str;
str.data = std::string("foo");
std_msgs::Int32 i;
i.data = 42;
bag.write("chatter", ros::Time::now(), str);
bag.write("numbers", ros::Time::now(), i);
bag.close();
I don't have any test.bag file in my rosbag folder (I've just created)...
Thanks for your help
2 | No.2 Revision |
I don't want to create a new question just for this question: Is the method open create the bag file?
because when I dodo (just before my while loop)
rosbag::Bag bag;
bag.open("test.bag", rosbag::bagmode::Write);
std_msgs::String str;
str.data = std::string("foo");
std_msgs::Int32 i;
i.data = 42;
bag.write("chatter", ros::Time::now(), str);
bag.write("numbers", ros::Time::now(), i);
bag.close();
I don't have any test.bag file in my rosbag folder (I've just created)...
Thanks for your help