feat(core): add code support for testbed

Adds parameter `is_testbed`. WIP: still needs support in astra_descriptions; new parameter will not be usable until then. When using an incorrect parameter value, odom will be incorrect and will drive at a scaled speed from requested over cmd_vel.
This commit is contained in:
David
2026-03-26 02:05:37 -05:00
parent ec12a083f1
commit 7669ded344
2 changed files with 49 additions and 20 deletions

View File

@@ -51,6 +51,7 @@ def launch_setup(context, *args, **kwargs):
parameters=[
{"launch_mode": mode},
{"use_ros2_control": LaunchConfiguration("use_ros2_control", default=False)},
{"is_testbed", LaunchConfiguration("is_testbed", default=False)},
],
on_exit=Shutdown(),
)
@@ -151,6 +152,12 @@ def generate_launch_description():
description="Whether to use DiffDriveController for driving instead of direct Twist",
)
testbed_arg = DeclareLaunchArgument(
"is_testbed",
default_value="false",
description="Whether using Testbed (true) or Clucky (false)",
)
rsp = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
PathJoinSubstitution(
@@ -183,6 +190,7 @@ def generate_launch_description():
[
declare_arg,
ros2_control_arg,
testbed_arg,
rsp,
controllers,
OpaqueFunction(function=launch_setup),