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

Revision history [back]

click to hide/show revision 1
initial version

This is because the rosbag constructor tries to Read the bag by default.

try rosbag::Bag bag(filename, rosbag::bagmode::Write) (or rosbag::bagmode::Append)

This is because the rosbag constructor tries to Read the bag by default.

try rosbag::Bag bag(filename, rosbag::bagmode::Write) (or rosbag::bagmode::Append)

It works for me on Windows 10 fine, including exactly as we wrote it above with no mode, once log.bag exists in the directory.

This is because the rosbagrosbag::Bag constructor tries to Read the bag by default.

try rosbag::Bag bag(filename, rosbag::bagmode::Write) (or rosbag::bagmode::Append)

It works for me on Windows 10 fine, including exactly as we wrote it above with no mode, once log.bag exists in the directory.