mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 11:51:16 -05:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user