Skip to content

Commit 7d95f1b

Browse files
committed
更新平台启动参数,移除冗余的“arm”键,统一描述为“variant”
1 parent c97e2ac commit 7d95f1b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

robot_common_launch/robot_common_launch/common/launch_arg_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def extract_prefixed_args(
8686
return result
8787

8888

89-
_PLATFORM_XACRO_KEYS = ("chassis", "arm", "variant", "chassis_joints_movable")
89+
_PLATFORM_XACRO_KEYS = ("chassis", "variant", "chassis_joints_movable")
9090

9191

9292
def create_platform_launch_arguments():
@@ -100,9 +100,9 @@ def create_platform_launch_arguments():
100100
description="Xacro chassis model key (robot-specific). Empty means no chassis parameter passed to xacro.",
101101
),
102102
DeclareLaunchArgument(
103-
"arm",
103+
"variant",
104104
default_value="",
105-
description="Xacro arm model key (robot-specific). Empty means no arm parameter passed to xacro.",
105+
description="Unified robot variant (for example base_ar5_ccs, base_ar5_ccs_v2, or base_ar5_srs).",
106106
),
107107
DeclareLaunchArgument(
108108
"chassis_joints_movable",
@@ -117,7 +117,7 @@ def normalize_robot_profile(data: Dict[str, Any]) -> Dict[str, Any]:
117117
Normalize robot profile to {xacro, hardware, control} for launch code.
118118
119119
New schema (recommended):
120-
platform: chassis / arm / variant / arm_ctrl_mode — always apply (incl. quick_start [模板])
120+
platform: chassis / variant / arm_ctrl_mode — always apply (incl. quick_start [模板])
121121
defaults.end_effectors: loaded into profile["eef"]; applied only when use_profile_eef is true
122122
Launch merge order: CLI type/left_type/right_type → profile eef (if enabled) → bare arm
123123
control.patch: inline ros2_control overrides (deep-merged after compose)
@@ -460,9 +460,9 @@ def create_robot_profile_launch_arguments():
460460
description="Apply defaults.end_effectors from robot_profile (false for quick_start templates)",
461461
),
462462
DeclareLaunchArgument(
463-
"arm",
463+
"variant",
464464
default_value="",
465-
description="Arm model variant passed to xacro (for example ar5_ccs or ar5_ccs_v2).",
465+
description="Unified robot variant (for example base_ar5_ccs, base_ar5_ccs_v2, or base_ar5_srs).",
466466
),
467467
*create_eef_side_launch_arguments(),
468468
]

0 commit comments

Comments
 (0)