mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
feat: add bag record and playback launch arguments
This commit is contained in:
@@ -42,7 +42,7 @@ def load_parameters(context, args):
|
||||
if config_file_path:
|
||||
yaml_params = load_yaml(config_file_path)
|
||||
default_params = merge_params(default_params, yaml_params)
|
||||
skip_convert = {'config_file_path', 'usb_port', 'serial_number'}
|
||||
skip_convert = {'config_file_path', 'usb_port', 'serial_number', 'bag_record_filename', 'bag_filename'}
|
||||
|
||||
result = {}
|
||||
for key, value in default_params.items():
|
||||
@@ -77,7 +77,6 @@ def generate_launch_description():
|
||||
DeclareLaunchArgument('device_num', default_value='1'),
|
||||
# Bag recording: record the live stream to an Orbbec .bag file
|
||||
DeclareLaunchArgument('bag_record_filename', default_value=''),
|
||||
DeclareLaunchArgument('bag_record_compression', default_value='true'),
|
||||
# Bag playback: load a previously recorded .bag file as a virtual device
|
||||
DeclareLaunchArgument('bag_filename', default_value=''),
|
||||
DeclareLaunchArgument('bag_loop', default_value='false'),
|
||||
|
||||
Reference in New Issue
Block a user