Skip to content

Commit 0191997

Browse files
committed
[clearpath_sensors] Updated the StereoLabs Zed topic remapping to reflect changes in the driver.
1 parent a3ea1ca commit 0191997

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clearpath_sensors/launch/stereolabs_zed.launch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
('rgb_gray', 'color/gray'),
5757
('rgb_raw', 'color/raw'),
5858
('rgb_raw_gray', 'color/raw_gray'),
59+
('rgb/color/rect/image', 'color'),
5960
# Right
6061
('right', 'right'),
6162
('right_gray', 'right/gray'),
@@ -123,6 +124,14 @@ def generate_launch_description():
123124
image = 'image_raw_color'
124125
elif 'gray' in old:
125126
image = 'image_rect_gray'
127+
elif 'rgb/color/rect/image' in old:
128+
image = 'color'
129+
remappings.extend([
130+
('~/%s/camera_info' % (old),
131+
PathJoinSubstitution(['/', namespace, new, 'camera_info'])),
132+
('~/%s' % (old),
133+
PathJoinSubstitution(['/', namespace, new, 'image'])),
134+
])
126135
else:
127136
image = 'image_rect_color'
128137
remappings.extend([

0 commit comments

Comments
 (0)