diff --git a/common_sensor_launch/launch/spinnaker.launch.py b/common_sensor_launch/launch/spinnaker.launch.py index 3848b0db..22f48df2 100644 --- a/common_sensor_launch/launch/spinnaker.launch.py +++ b/common_sensor_launch/launch/spinnaker.launch.py @@ -39,16 +39,38 @@ def load_composable_node_param(param_path): namespace=LaunchConfiguration("spinnaker_namespace"), remappings=[ ( - "camera0/image_raw", + [ + "camera", + LaunchConfiguration("camera_id"), + "/image_raw", + ], + [ + "camera", + LaunchConfiguration("camera_id"), + "/", + LaunchConfiguration("image_topic"), + ], + ), + ( + [ + "camera", + LaunchConfiguration("camera_id"), + "/image_raw/compressed", + ], [ "camera", LaunchConfiguration("camera_id"), "/", LaunchConfiguration("image_topic"), + "/compressed", ], ), ( - "camera0/camera_info", + [ + "camera", + LaunchConfiguration("camera_id"), + "/camera_info", + ], ["camera", LaunchConfiguration("camera_id"), "/camera_info"], ), ], @@ -59,6 +81,7 @@ def load_composable_node_param(param_path): "camera_info_url" ), }, + {"use_image_transport": LaunchConfiguration("use_image_transport")}, ], extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ), @@ -98,6 +121,7 @@ def add_launch_arg(name: str, default_value=None): add_launch_arg("spinnaker_namespace", "/sensing/camera") add_launch_arg("spinnaker_param_path") add_launch_arg("camera_info_url") + add_launch_arg("use_image_transport", "True") add_launch_arg("use_intra_process", "True") set_camera_info_url_key = SetLaunchConfiguration( "camera_info_url_key",