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

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.

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").