ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Separating the declarations (rosbag::Bag gesture_bag vs. rosbag::Bag read_bag) for read vs. write bags and moving the read bag declaration to the read function solved this problem. Interestingly, moving the declaration for the write bag to the write function did not work. That one had to remain in the class prototype. Any explanation as to why either of these is true would be helpful.
Paul.