Skip to content

Commit

Permalink
used custom launch actions from synchros2 in spot_launch_helpers.py too
Browse files Browse the repository at this point in the history
  • Loading branch information
tcappellari-bdai committed Dec 19, 2024
1 parent e46d633 commit a8eaacc
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions spot_driver/spot_driver/launch/spot_launch_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import yaml
from launch.actions import DeclareLaunchArgument
from synchros2.launch.actions import DeclareBooleanLaunchArgument

from spot_wrapper.wrapper import SpotWrapper

Expand Down Expand Up @@ -67,37 +68,33 @@ def declare_image_publisher_args() -> List[DeclareLaunchArgument]:
)
)
launch_args.append(
DeclareLaunchArgument(
DeclareBooleanLaunchArgument(
"publish_point_clouds",
default_value="False",
choices=["True", "true", "False", "false"],
default_value=False,
description=(
"If true, create and publish point clouds for each depth registered and RGB camera pair. Requires that"
" the depth_register_mode launch argument is set to a value that is not `disable`."
),
)
)
launch_args.append(
DeclareLaunchArgument(
DeclareBooleanLaunchArgument(
"uncompress_images",
default_value="True",
choices=["True", "true", "False", "false"],
default_value=True,
description="Choose whether to publish uncompressed images from Spot.",
)
)
launch_args.append(
DeclareLaunchArgument(
DeclareBooleanLaunchArgument(
"publish_compressed_images",
default_value="False",
choices=["True", "true", "False", "false"],
default_value=False,
description="Choose whether to publish compressed images from Spot.",
)
)
launch_args.append(
DeclareLaunchArgument(
DeclareBooleanLaunchArgument(
"stitch_front_images",
default_value="False",
choices=["True", "true", "False", "false"],
default_value=False,
description=(
"Choose whether to publish a stitched image constructed from Spot's front left and right cameras."
),
Expand Down

0 comments on commit a8eaacc

Please sign in to comment.