Skip to content

Commit a5dc884

Browse files
committed
fix recorder launch args
1 parent c1516f4 commit a5dc884

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/sauvc_launch/launch/cam.launch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def generate_launch_description():
7171
DeclareLaunchArgument('record_dir',
7272
default_value='./records/',
7373
description='Путь к папке для сохранения записей'),
74+
DeclareLaunchArgument("enable_recording_topic",
75+
default_value='/stingray/topics/enable_recording'),
7476

7577
IncludeLaunchDescription(
7678
PythonLaunchDescriptionSource(str(Path(
@@ -133,13 +135,14 @@ def generate_launch_description():
133135
PythonLaunchDescriptionSource(str(Path(
134136
get_package_share_directory('stingray_launch'), 'recorder.launch.py'))),
135137
launch_arguments={
136-
# 'recorder_name': 'front_camera_recorder',
138+
'recorder_name': 'front_camera_recorder',
137139
'source_topic': LaunchConfiguration('front_camera_topic'),
138140
'output_width': LaunchConfiguration('front_camera_output_width'),
139141
'output_height': LaunchConfiguration('front_camera_output_height'),
140142
'output_fps': LaunchConfiguration('output_fps'),
141143
'output_format': LaunchConfiguration('output_format'),
142144
'record_dir': LaunchConfiguration('record_dir'),
145+
'enable_recording_topic': LaunchConfiguration('enable_recording_topic'),
143146
}.items(),
144147
condition=IfCondition(LaunchConfiguration('enable_recording_front_camera'))
145148
),
@@ -148,13 +151,14 @@ def generate_launch_description():
148151
PythonLaunchDescriptionSource(str(Path(
149152
get_package_share_directory('stingray_launch'), 'recorder.launch.py'))),
150153
launch_arguments={
151-
# 'recorder_name': 'bottom_camera_recorder',
154+
'recorder_name': 'bottom_camera_recorder',
152155
'source_topic': LaunchConfiguration('bottom_camera_topic'),
153156
'output_width': LaunchConfiguration('bottom_camera_output_width'),
154157
'output_height': LaunchConfiguration('bottom_camera_output_height'),
155158
'output_fps': LaunchConfiguration('output_fps'),
156159
'output_format': LaunchConfiguration('output_format'),
157160
'record_dir': LaunchConfiguration('record_dir'),
161+
'enable_recording_topic': LaunchConfiguration('enable_recording_topic'),
158162
}.items(),
159163
condition=IfCondition(LaunchConfiguration('enable_recording_bottom_camera'))
160164
),

0 commit comments

Comments
 (0)