Skip to content

Commit 630e487

Browse files
committed
add missing c2 camera frames
1 parent a0ba3ef commit 630e487

1 file changed

Lines changed: 42 additions & 4 deletions

File tree

launch/tf_static.launch.py

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def generate_launch_description():
2727
'--qz', '0.0',
2828
'--qw', '1.0',
2929

30-
'--frame-id', [LaunchConfiguration('tf_static_ns'), '/map'],
31-
'--child-frame-id', [LaunchConfiguration('tf_static_ns'), '/map_gyor_0']
30+
# '--frame-id', [LaunchConfiguration('tf_static_ns'), '/map'],
31+
# '--child-frame-id', [LaunchConfiguration('tf_static_ns'), '/map_gyor_0']
32+
'--frame-id', '/map',
33+
'--child-frame-id', '/map_gyor_0'
3234
],
3335
),
3436
Node(
@@ -45,8 +47,10 @@ def generate_launch_description():
4547
'--qz', '0.0',
4648
'--qw', '1.0',
4749

48-
'--frame-id', [LaunchConfiguration('tf_static_ns'), '/map'],
49-
'--child-frame-id', [LaunchConfiguration('tf_static_ns'), '/map_zala_0']
50+
# '--frame-id', [LaunchConfiguration('tf_static_ns'), '/map'],
51+
# '--child-frame-id', [LaunchConfiguration('tf_static_ns'), '/map_zala_0']
52+
'--frame-id', '/map',
53+
'--child-frame-id', '/map_zala_0'
5054
],
5155
),
5256
Node(
@@ -311,6 +315,40 @@ def generate_launch_description():
311315
'--child-frame-id', [LaunchConfiguration('tf_static_ns'), '/luminar_lidar_0']
312316
],
313317
),
318+
Node(
319+
package='tf2_ros',
320+
executable='static_transform_publisher',
321+
name='c2_left_static',
322+
output='screen',
323+
arguments=[
324+
'--x', '1.53',
325+
'--y', '0.57',
326+
'--z', '1.1',
327+
'--yaw', '-1.29154',
328+
'--pitch', '0.0',
329+
'--roll', '-1.57079632679',
330+
331+
'--frame-id', [LaunchConfiguration('tf_static_ns'), '/base_link'],
332+
'--child-frame-id', '/c2_camera_left_link'
333+
],
334+
),
335+
Node(
336+
package='tf2_ros',
337+
executable='static_transform_publisher',
338+
name='c2_right_static',
339+
output='screen',
340+
arguments=[
341+
'--x', '1.53',
342+
'--y', '-0.57',
343+
'--z', '1.1',
344+
'--yaw', '-1.85005',
345+
'--pitch', '0.0',
346+
'--roll', '-1.57079632679',
347+
348+
'--frame-id', [LaunchConfiguration('tf_static_ns'), '/base_link'],
349+
'--child-frame-id', '/c2_camera_right_link'
350+
],
351+
),
314352
Node(
315353
package='tf2_ros',
316354
executable='static_transform_publisher',

0 commit comments

Comments
 (0)