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
terminate called after throwing an instance of 'rosbag::BagIOException'
  what():  Error opening file: ~/catkin_ws/src/publish_text/launch/filtered.bag

Most likely you are expecting the C++ runtime to resolve/replace the ~ with the path to the users home directory. Afaik that behaviour is implemented by the shell (ie: bash), it's not something that works everywhere.

Can you try to provide an absolute (or even relative) path to rosbag::Bag::open(..)?