ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You definitely can but I am not sure if that is the best way to approach this problem. You can take a loot at the rosbag API. You can create a timer that opens a bag every 30 sec to record the camera data and closes the previous opened bag.
2 | No.2 Revision |
You definitely can but I am not sure if that is the best way to approach this problem. You can take a loot look at the rosbag API. You can create a timer that opens a bag every 30 sec to record the camera data and closes the previous opened bag.
Another way to tackle this problem is to restart the camera. You will need to check/throw an exception if the camera is disconnected and relaunch the camera node (check the documentation for roslaunch
atribute: respawn="true"
).