Add camera_secondary_params.yaml

This commit is contained in:
datean
2025-03-24 21:55:35 +08:00
parent 2c0fa34988
commit 78dbcec6cd
2 changed files with 63 additions and 3 deletions
@@ -0,0 +1,59 @@
# common params
depth_registration: false
enable_point_cloud: true
enable_colored_point_cloud: false
device_preset: "High Accuracy"
time_domain: "global" # global, device, system
enable_sync_host_time: true
frames_per_trigger: 1
log_level: "warning"
enable_laser: false
trigger_out_enabled: false
interleave_frame_enable: false
interleave_skip_enable: false
# color params
enable_color: true
color_width: 640
color_height: 360
color_fps: 60
color_format: "MJPG"
enable_color_auto_exposure: true
color_exposure: 50 # 5ms
color_gain: -1 # -1 default
color_qos: "sensor_data"
color_camera_info_qos: "sensor_data"
# depth params
enable_depth: true
depth_width: 640
depth_height: 360
depth_fps: 60
depth_format: "Y16"
depth_qos: "sensor_data"
depth_camera_info_qos: "sensor_data"
# ir exposure
enable_ir_auto_exposure: true
ir_exposure: 5000
ir_gain: 40
#left ir params
enable_left_ir: true
left_ir_width: 640
left_ir_height: 360
left_ir_fps: 60
left_ir_format: "Y8"
left_ir_qos: "sensor_data"
left_ir_camera_info_qos: "sensor_data"
#right ir params
enable_right_ir: true
right_ir_width: 640
right_ir_height: 360
right_ir_fps: 60
right_ir_format: "Y8"
right_ir_qos: "sensor_data"
right_ir_camera_info_qos: "sensor_data"
@@ -15,6 +15,7 @@ def generate_launch_description():
launch_file_dir = os.path.join(package_dir, "launch") launch_file_dir = os.path.join(package_dir, "launch")
config_file_dir = os.path.join(package_dir, "config") config_file_dir = os.path.join(package_dir, "config")
config_file_path = os.path.join(config_file_dir, "camera_params.yaml") config_file_path = os.path.join(config_file_dir, "camera_params.yaml")
secondary_config_file_path = os.path.join(config_file_dir, "camera_secondary_params.yaml")
use_intra_process_comms_declare = DeclareLaunchArgument( use_intra_process_comms_declare = DeclareLaunchArgument(
'use_intra_process_comms', default_value='false', 'use_intra_process_comms', default_value='false',
@@ -68,7 +69,7 @@ def generate_launch_description():
# "usb_port": "gmsl2-3", # "usb_port": "gmsl2-3",
"device_num": "4", "device_num": "4",
"sync_mode": "secondary_synced", "sync_mode": "secondary_synced",
"config_file_path": config_file_path, "config_file_path": secondary_config_file_path,
'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"), 'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"),
'attach_to_shared_component_container': attach_to_shared_component_container_arg, 'attach_to_shared_component_container': attach_to_shared_component_container_arg,
'component_container_name': component_container_name_arg, 'component_container_name': component_container_name_arg,
@@ -84,7 +85,7 @@ def generate_launch_description():
# "usb_port": "gmsl2-1", # "usb_port": "gmsl2-1",
"device_num": "4", "device_num": "4",
"sync_mode": "secondary_synced", "sync_mode": "secondary_synced",
"config_file_path": config_file_path, "config_file_path": secondary_config_file_path,
'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"), 'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"),
'attach_to_shared_component_container': attach_to_shared_component_container_arg, 'attach_to_shared_component_container': attach_to_shared_component_container_arg,
'component_container_name': component_container_name_arg, 'component_container_name': component_container_name_arg,
@@ -100,7 +101,7 @@ def generate_launch_description():
# "usb_port": "gmsl2-7", # "usb_port": "gmsl2-7",
"device_num": "4", "device_num": "4",
"sync_mode": "secondary_synced", "sync_mode": "secondary_synced",
"config_file_path": config_file_path, "config_file_path": secondary_config_file_path,
'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"), 'use_intra_process_comms': LaunchConfiguration("use_intra_process_comms"),
'attach_to_shared_component_container': attach_to_shared_component_container_arg, 'attach_to_shared_component_container': attach_to_shared_component_container_arg,
'component_container_name': component_container_name_arg, 'component_container_name': component_container_name_arg,