Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Please note that running multiple instances of the website will cause conflictin

### Hardware Plugin Config

The hardware plugin is specified in `openarm_description/openarm.ros2_control.xacro` as follows:
The hardware plugin is specified in `openarm_description/urdf/ros2_control/openarm.ros2_control.xacro` as follows:

```xml
<ros2_control name="openarm_system" type="system">
<ros2_control name="openarm_hardware_interface" type="system">
<hardware>
<plugin>openarm_mujoco_hardware/MujocoHardware</plugin>
<param name="prefix">left_</param>
Expand All @@ -41,3 +41,27 @@ The hardware plugin is specified in `openarm_description/openarm.ros2_control.xa
```

When using OpenArm in a bimanual configuration, the WebSocket ports default to 1337 for right arm and 1338 for left arm commands. However, in practice commands can be sent and states can be received through any connected port.

Configuration example in `urdf/ros2_control/openarm.bimanual.ros2_control.xacro`:

```xml
<!-- Left Arm Hardware Interface -->
<ros2_control name="openarm_left_hardware_interface" type="system">
<hardware>
<plugin>openarm_mujoco_hardware/MujocoHardware</plugin>
<param name="prefix">left_</param>
<param name="websocket_port">1337</param>
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

The WebSocket port assignments appear to be swapped based on the explanation in line 43. The text states 'ports default to 1337 for right arm and 1338 for left arm', but the configuration shows left arm using 1337 and right arm using 1338.

Copilot uses AI. Check for mistakes.
</hardware>
<!-- Joint configurations -->
</ros2_control>

<!-- Right Arm Hardware Interface -->
<ros2_control name="openarm_right_hardware_interface" type="system">
<hardware>
<plugin>openarm_mujoco_hardware/MujocoHardware</plugin>
<param name="prefix">right_</param>
<param name="websocket_port">1338</param>
Comment thread
thomasonzhou marked this conversation as resolved.
Outdated
</hardware>
<!-- Joint configurations -->
</ros2_control>
```