Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spinnaker_launch): upgrade mapping solution #355

Merged
merged 11 commits into from
Dec 11, 2024
28 changes: 26 additions & 2 deletions common_sensor_launch/launch/spinnaker.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
),
],
Expand All @@ -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")}],
),
Expand Down Expand Up @@ -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",
Expand Down
Loading