Skip to content

docs: shared FSM parameter index on the controller reference page - #33

Merged
legubiao merged 1 commit into
mainfrom
cursor/shared-fsm-params-overview-18c7
Oct 31, 2026
Merged

legubiao merged 1 commit into
mainfrom
cursor/shared-fsm-params-overview-18c7

Conversation

@legubiao

@legubiao legubiao commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Site search on Controller ROS 2 parameters still misses Home (and buries Hold) because those arms_controller_common names were only spelled out on the how-to page, or only inside each controller section.

Change

  • After “How to read the tables”, add Shared FSM parameters (zh: 共用 FSM 参数) with short Home and Hold tables and a one-line MoveJ pointer.
  • Home (StateHome): home_1…home_10, home_duration, home_interpolation_type, home_tanh_scale, home_max_*, switch_command_base. Both Basic Joint and OCS2 Arm pass auto_declare into StateHome::init; the constructor declare_parameters the three home_max_* limits when they are absent. OCS2-only home_pos / rest_pos stay on the OCS2 table. Fuller prose: how-to shared Home.
  • Hold (StateHold): hold_first_check_position_threshold and hold_position_threshold, with links to the Basic Joint and OCS2 Arm Hold subsections (from docs: Hold parameter names on controller ROS 2 reference page #32, now on main) and the how-to Hold section. The MoveJ table is not copied; the primary table stays under Basic Joint, with the existing OCS2 declare-time deltas called out in one sentence.
  • Say which lists are separate: framework-common keys, Adaptive Gripper, arms_target_manager, waist keys, and OCS2 WBC. Public arms_ros2_control at pin 9a1da3ba shows these Home/Hold auto_declares only in Basic Joint and OCS2 Arm. ocs2-wbc-controller is private here, so this index does not add WBC rows.
  • How-to Shared mechanisms gets one sentence back to the new reference section.
  • source/conf.py restores MyST myst_slugs after sphinx-intl republishes a translated snippet. Without that, zh_CN cross-document #anchors into this page fail under -W even though the HTML id is present.

Rebased onto main after #32 landed as a squash. The Hold rows on the reference page stay; this PR only adds the shared-FSM index on top of them.

Verification

  • make html / make html-zh_CN — success (-W)
  • python3 scripts/check_zh_coverage.py --threshold 95 — 100%
  • python3 scripts/check_zh_mix.py and --html-root build/html/zh_CN --require-html — pass
  • Built reference HTML lists hold_first_check_position_threshold three times (index, Basic Joint, OCS2 Arm). How-to EN and zh_CN both link to #shared-fsm-parameters.
Open in Web Open in Cursor 

Operators searching the controller parameter reference missed Home and Hold
keys that live in arms_controller_common. Add a Shared FSM parameters
section before the per-controller tables, and point the how-to shared
mechanisms section back at that index.

Restore MyST heading-anchor metadata after sphinx-intl republishes
translated snippets, so zh_CN cross-document anchors still resolve under -W.

Co-authored-by: HUANG ZHENBIAO <legubiao@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/shared-fsm-params-overview-18c7 branch from 0372fce to 8780cf7 Compare October 31, 2026 15:29
@legubiao
legubiao merged commit 3a2e290 into main Oct 31, 2026
1 check passed
@legubiao
legubiao deleted the cursor/shared-fsm-params-overview-18c7 branch October 31, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants