Skip to content

Commit

Permalink
Merge pull request #22 from tier4/feature/v4l2_buffer_stamp_launch (#25)
Browse files Browse the repository at this point in the history
feat(launch): adding v4l2 buffer timestamp and image_transport options to launch file

Co-authored-by: David Wong <[email protected]>
  • Loading branch information
TomohitoAndo and drwnz authored Sep 6, 2024
1 parent 046d49d commit a46bbc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions launch/v4l2_camera.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def load_composable_node_param(param_path):
"camera_info_url": LaunchConfiguration("camera_info_url"),
"use_sensor_data_qos": LaunchConfiguration("use_sensor_data_qos"),
"publish_rate": LaunchConfiguration("publish_rate"),
"use_v4l2_buffer_timestamps": LaunchConfiguration("use_v4l2_buffer_timestamps"),
"use_image_transport": LaunchConfiguration("use_image_transport"),
},
],
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
Expand Down Expand Up @@ -126,6 +128,12 @@ def add_launch_arg(name: str, default_value=None, description=None):
'otherwise be RELIABLE')
add_launch_arg('publish_rate', "-1.0",
description='publish frame number per second. value <= 0 means no limitation on publish rate')
add_launch_arg('use_v4l2_buffer_timestamps', True,
description='flag to use v4l2 buffer timestamps. '
'If true, the image timestamps will be applied from the v4l2 buffer, '
'otherwise, will be the system time when the buffer is read')
add_launch_arg('use_image_transport', True,
description='flag to launch image_transport node')

return LaunchDescription(
[
Expand Down

0 comments on commit a46bbc5

Please sign in to comment.