diff --git a/libuvc_camera/cfg/UVCCamera.cfg b/libuvc_camera/cfg/UVCCamera.cfg index b9ce9a42e017d642f5b8c87f619a18601a068139..7e5e6ce041061f3967a6bba43fabfdcbe91ae251 100755 --- a/libuvc_camera/cfg/UVCCamera.cfg +++ b/libuvc_camera/cfg/UVCCamera.cfg @@ -47,7 +47,15 @@ gen.add("video_mode", str_t, SensorLevels.RECONFIGURE_CLOSE, gen.add("frame_rate", double_t, SensorLevels.RECONFIGURE_CLOSE, "Camera speed, frames per second.", 15.0, 0.1, 1000.0) -# TODO: video mode -- uncompressed, yuyv, uyvy, rgb, compressed, jpeg, ... +timestamp_methods = gen.enum([gen.const("PubTime", str_t, "pub", "Time of publication"), + gen.const("FrameStartTime", str_t, "start", "Time when raw frame capture began"), + gen.const("FrameStopTime", str_t, "stop", "Time when raw frame capture ended"), + gen.const("HostReceiptTime", str_t, "hostrcpt", "Time when camera-to-host transfer completed")], + "Methods for determining the timestamp") + +gen.add("timestamp_method", str_t, SensorLevels.RECONFIGURE_CLOSE, + "Method for determining the timestamp.", "start", + edit_method = timestamp_methods) gen.add("frame_id", str_t, SensorLevels.RECONFIGURE_RUNNING, "ROS tf frame of reference, resolved with tf_prefix unless absolute.",