diff --git a/spot_description/launch/description.launch.py b/spot_description/launch/description.launch.py index ed59e4ae2..bd1ea47b5 100644 --- a/spot_description/launch/description.launch.py +++ b/spot_description/launch/description.launch.py @@ -16,7 +16,10 @@ def generate_launch_description() -> launch.LaunchDescription: return launch.LaunchDescription( [ DeclareLaunchArgument( - name="gui", default_value="True", description="Flag to enable joint_state_publisher_gui" + name="gui", + default_value="True", + choices=["True", "true", "False", "false"], + description="Flag to enable joint_state_publisher_gui", ), DeclareLaunchArgument( name="model", default_value=default_model_path, description="Absolute path to robot urdf file" @@ -24,7 +27,18 @@ def generate_launch_description() -> launch.LaunchDescription: DeclareLaunchArgument( name="rvizconfig", default_value=default_rviz2_path, description="Absolute path to rviz config file" ), - DeclareLaunchArgument(name="arm", default_value="False", description="Flag to enable arm"), + DeclareLaunchArgument( + name="arm", + default_value="False", + choices=["True", "true", "False", "false"], + description="Flag to enable arm", + ), + DeclareLaunchArgument( + name="feet", + default_value="False", + choices=["True", "true", "False", "false"], + description="Flag to enable putting frames at the feet", + ), DeclareLaunchArgument( "tf_prefix", default_value='""', description="Apply namespace prefix to robot links and joints" ), @@ -40,6 +54,8 @@ def generate_launch_description() -> launch.LaunchDescription: LaunchConfiguration("model"), " arm:=", LaunchConfiguration("arm"), + " feet:=", + LaunchConfiguration("feet"), " tf_prefix:=", LaunchConfiguration("tf_prefix"), ] diff --git a/spot_description/urdf/spot.urdf.xacro b/spot_description/urdf/spot.urdf.xacro index b70c86f1b..5d58172e8 100644 --- a/spot_description/urdf/spot.urdf.xacro +++ b/spot_description/urdf/spot.urdf.xacro @@ -5,11 +5,13 @@ + diff --git a/spot_description/urdf/spot_feet_macro.urdf b/spot_description/urdf/spot_feet_macro.urdf new file mode 100644 index 000000000..2e03838f8 --- /dev/null +++ b/spot_description/urdf/spot_feet_macro.urdf @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spot_description/urdf/spot_macro.xacro b/spot_description/urdf/spot_macro.xacro index dbe7de54e..c640d016e 100644 --- a/spot_description/urdf/spot_macro.xacro +++ b/spot_description/urdf/spot_macro.xacro @@ -3,6 +3,7 @@ @@ -416,5 +417,11 @@ + + + + + +