Skip to content

add : api-ref doc#489

Merged
euyniy merged 1 commit into
enactic:mainfrom
tokirobot:yt/api_ref_doc
May 18, 2026
Merged

add : api-ref doc#489
euyniy merged 1 commit into
enactic:mainfrom
tokirobot:yt/api_ref_doc

Conversation

@tokirobot
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions
Copy link
Copy Markdown

@abetomo abetomo requested review from abetomo and Copilot May 18, 2026 12:12
@euyniy euyniy merged commit fa6ea6b into enactic:main May 18, 2026
6 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the current API reference documentation for OpenArm, mainly adding CAN CLI documentation and refreshing setup, ROS2, and robot description guidance for newer workflows.

Changes:

  • Adds a new OpenArm CAN CLI reference page and motor firmware update setup step.
  • Updates CAN setup, motor configuration, ROS2 control, and robot description docs.
  • Removes the placeholder Controls page and its overview section.

Reviewed changes

Copilot reviewed 9 out of 16 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
website/docs/api-reference/setup/6-motor-firmware-update.mdx Adds optional motor firmware update instructions.
website/docs/api-reference/setup/4-motor-config.mdx Updates baudrate, zero calibration, and communication verification commands.
website/docs/api-reference/setup/2-can-setup.mdx Updates CAN setup commands and adds CLI-based configuration examples.
website/docs/api-reference/ros2/install.mdx Moves Tabs imports and adjusts the ROS 2 install note.
website/docs/api-reference/ros2/control.mdx Refreshes ROS2 control, launch, topics/actions, MoveIt2, and gain docs.
website/docs/api-reference/index.md Removes the Advanced Controls section.
website/docs/api-reference/description.mdx Updates robot description docs for v1.0/v2.0 structure and examples.
website/docs/api-reference/controls.md Deletes the placeholder Controls page.
website/docs/api-reference/cli.mdx Adds the OpenArm CAN CLI command reference and workflows.
Comments suppressed due to low confidence (2)

website/docs/api-reference/cli.mdx:235

  • The power-control section documents enabling motor torque but does not warn that the robot may hold or move under torque once enabled. Add the same kind of workspace/emergency-stop safety guidance used elsewhere in the setup and ROS2 hardware docs before showing enable commands.
### `enable` / `disable` — Motor Power Control

Enable or disable motor torque output.

```bash
openarm-can-cli -i can0 enable [OPTIONS]
openarm-can-cli -i can0 disable [OPTIONS]

website/docs/api-reference/description.mdx:244

  • These commands use openarm_bringup, but this page’s installation section only clones/builds openarm_description. A reader following this page alone will not have the openarm_bringup package; add the openarm_ros2 prerequisite/link here or move this workflow to the ROS2 control guide.
```sh
ros2 launch openarm_bringup openarm.bimanual.launch.py arm_type:=v2.0 arm_prefix:=leader right_can_interface:=can0 left_can_interface:=can1

and

ros2 launch openarm_bringup openarm.bimanual.launch.py arm_type:=v2.0 arm_prefix:=follower right_can_interface:=can2 left_can_interface:=can3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +110 to +112
:::note
When `-i` is not specified, `can_configure` applies to all interfaces (`can0`–`can3`).
:::
Comment on lines 43 to 44


:::warning
- Be sure to use the CAN interface on 2.0 during the baudrate setup regardless of your target baudrate. Configure it back to your target baudrate after this step is finished.
- Motor parameters has a 10000 time write limits, it should not be run frequently in scripts.
Motor parameters has a 10000 time write limits, it should not be run frequently in scripts.
Comment on lines +25 to +30
# Install openarm_can via apt (Ubuntu)
sudo apt install -y libopenarm-can-dev openarm-can-utils
# For manual installation or other platforms, see:
# https://github.com/enactic/openarm_can/tree/main/dev
# Alternatively, build from source via vcs:
# (cd ~/ros2_ws/src && vcs import < ./openarm_ros2/openarm.repos)
Comment on lines 43 to +47
# For CAN 2.0
openarm-can-configure-socketcan can0
openarm-can-configure-socketcan-4-arms

# For CAN FD at 5mbps (recommended)
openarm-can-configure-socketcan can0 -fd -b 1000000 -d 5000000
openarm-can-configure-socketcan-4-arms -fd -b 1000000 -d 5000000
Comment on lines +360 to +361
# Change motor ID from 5 to 6
openarm-can-cli -i can0 change_id -c 5 -s 6 --save
Comment on lines +410 to +411
# 3. Restore interface to motor baudrate after discover
openarm-can-cli -i can0 can_configure

## Download Firmware

Download the latest firmware from the [Damiao motor firmware repository](https://github.com/dmBots/motor-firmware/tree/77a7c91cd5263cde42d931fe7f84619c7fc9e1f0/V3).
Comment on lines +50 to +57
### 3. Enable motors and check status

```bash
# Enable all arm motors (IDs 1-8)
openarm-can-cli -i can0 enable

# Monitor motor status
openarm-can-cli -i can0 monitor
Comment on lines +372 to +379
### `set_zero` — Set Motor Zero Position

```bash
# Set zero for all arm motors
openarm-can-cli -i can0 set_zero

# Set zero for specific motors
openarm-can-cli -i can0 set_zero --id 1,2
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.

3 participants