Skip to content

Commit

Permalink
reverted spot_description launch files
Browse files Browse the repository at this point in the history
  • Loading branch information
tcappellari-bdai committed Dec 19, 2024
1 parent d567b75 commit e46d633
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
21 changes: 12 additions & 9 deletions spot_description/launch/description.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from launch.substitutions import Command, LaunchConfiguration
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare
from synchros2.launch.actions import DeclareBooleanLaunchArgument


def generate_launch_description() -> launch.LaunchDescription:
Expand All @@ -16,9 +15,10 @@ def generate_launch_description() -> launch.LaunchDescription:
default_rviz2_path = os.path.join(pkg_share, "rviz/viz_spot.rviz")
return launch.LaunchDescription(
[
DeclareBooleanLaunchArgument(
DeclareLaunchArgument(
name="gui",
default_value=True,
default_value="True",
choices=["True", "true", "False", "false"],
description="Flag to enable joint_state_publisher_gui",
),
DeclareLaunchArgument(
Expand All @@ -27,19 +27,22 @@ def generate_launch_description() -> launch.LaunchDescription:
DeclareLaunchArgument(
name="rvizconfig", default_value=default_rviz2_path, description="Absolute path to rviz config file"
),
DeclareBooleanLaunchArgument(
DeclareLaunchArgument(
name="arm",
default_value=False,
default_value="False",
choices=["True", "true", "False", "false"],
description="Flag to enable arm",
),
DeclareBooleanLaunchArgument(
DeclareLaunchArgument(
name="feet",
default_value=False,
default_value="False",
choices=["True", "true", "False", "false"],
description="Flag to enable putting frames at the feet",
),
DeclareBooleanLaunchArgument(
DeclareLaunchArgument(
name="gripperless",
default_value=False,
default_value="False",
choices=["True", "true", "False", "false"],
description="Flag to remove the gripper from the arm model",
),
DeclareLaunchArgument(
Expand Down
5 changes: 2 additions & 3 deletions spot_description/launch/standalone_arm.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import launch
import launch_ros
from launch.substitutions import Command, LaunchConfiguration
from synchros2.launch.actions import DeclareBooleanLaunchArgument


def generate_launch_description() -> launch.LaunchDescription:
Expand All @@ -14,8 +13,8 @@ def generate_launch_description() -> launch.LaunchDescription:
default_rviz2_path = os.path.join(pkg_share, "rviz/standalone_arm.rviz")
return launch.LaunchDescription(
[
DeclareBooleanLaunchArgument(
name="gui", default_value=True, description="Flag to enable joint_state_publisher_gui"
launch.actions.DeclareLaunchArgument(
name="gui", default_value="True", description="Flag to enable joint_state_publisher_gui"
),
launch.actions.DeclareLaunchArgument(
name="model", default_value=default_model_path, description="Absolute path to robot urdf file"
Expand Down

0 comments on commit e46d633

Please sign in to comment.