Skip to content

Commit d0071dc

Browse files
committed
移除冗余的“variant”启动参数,简化平台启动配置
1 parent 2841511 commit d0071dc

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

robot_common_launch/robot_common_launch/common/launch_arg_utils.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ def create_platform_launch_arguments():
9999
default_value="",
100100
description="Xacro chassis model key (robot-specific). Empty means no chassis parameter passed to xacro.",
101101
),
102-
DeclareLaunchArgument(
103-
"variant",
104-
default_value="",
105-
description="Unified robot variant (for example base_ar5_ccs, base_ar5_ccs_v2, or base_ar5_srs).",
106-
),
107102
DeclareLaunchArgument(
108103
"chassis_joints_movable",
109104
default_value="",
@@ -354,12 +349,6 @@ def build_xacro_mappings(
354349
xacro_overrides.pop(key, None)
355350
mappings.update(xacro_overrides)
356351

357-
# Public platform launch args override profile defaults.
358-
for key in _PLATFORM_XACRO_KEYS:
359-
launch_value = _strip_eef_key(_cli_launch_value(launch_configurations, key))
360-
if launch_value:
361-
mappings[key] = launch_value
362-
363352
if hardware in REAL_HARDWARE:
364353
profile_hardware = profile.get("hardware") or {}
365354
if isinstance(profile_hardware, dict):
@@ -459,10 +448,5 @@ def create_robot_profile_launch_arguments():
459448
default_value="true",
460449
description="Apply defaults.end_effectors from robot_profile (false for quick_start templates)",
461450
),
462-
DeclareLaunchArgument(
463-
"variant",
464-
default_value="",
465-
description="Unified robot variant (for example base_ar5_ccs, base_ar5_ccs_v2, or base_ar5_srs).",
466-
),
467451
*create_eef_side_launch_arguments(),
468452
]

0 commit comments

Comments
 (0)