# openarmx/openarmx_ros2 architecture

> Architecture diagram of the GitHub repository openarmx/openarmx_ros2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openarmx/openarmx_ros2
- Repository: https://github.com/openarmx/openarmx_ros2

## Overview

OpenArmX ROS 2 Core brings up and controls a bimanual V10 robot, from launch configuration through ros2_control and the CAN hardware interface to motor commands. Its MoveIt example adds motion planning and visualization; an optional gravity-compensation node computes effort feedforward. The repository also includes a preview bringup variant. Edges reflect the shown launch code and README; some integrations are documented but their detailed runtime wiring was not sampled.

Main entry points: [`openarmx_bringup/launch/openarmx.bimanual.launch.py`](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/launch/openarmx.bimanual.launch.py) (Core Launch), [`openarmx_bimanual_moveit_config/launch/demo.launch.py`](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/launch/demo.launch.py) (MoveIt Demo), [`openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py`](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py) (Preview Launch), [`openarmx_hardware/src/v10_simple_hardware.cpp`](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_hardware/src/v10_simple_hardware.cpp) (V10 Hardware)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bringup["Robot Bringup"]
  node_core_launch["Core Launch"]
  node_preview_launch["Preview Launch"]
  node_description["Robot Description"]
  node_state_publisher["State Publisher"]
end

subgraph group_control["Control Stack"]
  node_controller_manager["Controller Manager"]
  node_controllers["ROS Controllers"]
  node_hardware["V10 Hardware"]
  node_hardware_api["Hardware Interface"]
  node_can_driver["OpenArmX CAN"]
  node_motors["Arm Motors"]
end

subgraph group_planning["Motion Planning"]
  node_moveit_config["MoveIt Config"]
  node_move_group["Move Group"]
  node_planning_launch["MoveIt Demo<br/>[demo.launch.py]"]
  node_rviz["RViz"]
end

subgraph group_compensation["Gravity Compensation"]
  node_gravity_node["Gravity Node"]
  node_dynamics["KDL Dynamics<br/>[dynamics.cpp]"]
  node_effort_controllers["Effort Controllers"]
end

node_operator(("Operator"))

node_operator -->|"starts"| node_core_launch
node_operator -->|"starts"| node_preview_launch
node_core_launch -->|"generates"| node_description
node_core_launch -->|"launches"| node_state_publisher
node_core_launch -.->|"launches"| node_controller_manager
node_preview_launch -->|"launches"| node_state_publisher
node_preview_launch -->|"launches"| node_controller_manager
node_controller_manager -.->|"configures"| node_controllers
node_controller_manager -->|"loads plugin"| node_hardware
node_hardware -->|"implements"| node_hardware_api
node_hardware -->|"commands via"| node_can_driver
node_can_driver -->|"drives"| node_motors
node_operator -->|"runs example"| node_planning_launch
node_planning_launch -->|"launches"| node_move_group
node_planning_launch -.->|"launches"| node_rviz
node_planning_launch -->|"uses config"| node_moveit_config
node_move_group -.->|"dispatches plans"| node_controller_manager
node_core_launch -->|"launches"| node_gravity_node
node_gravity_node -->|"computes dynamics"| node_dynamics
node_gravity_node -->|"publishes effort"| node_effort_controllers

click node_core_launch "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/launch/openarmx.bimanual.launch.py"
click node_preview_launch "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py"
click node_controllers "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml"
click node_hardware "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_hardware/src/v10_simple_hardware.cpp"
click node_hardware_api "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_hardware/include/openarmx_hardware/v10_simple_hardware.hpp"
click node_moveit_config "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/config/openarmx_bimanual.srdf"
click node_move_group "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/launch/move_group.launch.py"
click node_planning_launch "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/launch/demo.launch.py"
click node_gravity_node "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_gravity_comp/src/gravity_comp_node.cpp"
click node_dynamics "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_gravity_comp/src/dynamics.cpp"
click node_effort_controllers "https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core_launch,node_preview_launch,node_description,node_state_publisher toneBlue
class node_controller_manager,node_controllers,node_hardware,node_hardware_api,node_can_driver,node_motors toneAmber
class node_moveit_config,node_move_group,node_planning_launch,node_rviz toneMint
class node_gravity_node,node_dynamics,node_effort_controllers toneRose
class node_operator toneIndigo
```

## Components

### Robot Bringup

- [Core Launch](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/launch/openarmx.bimanual.launch.py): `openarmx_bringup/launch/openarmx.bimanual.launch.py`
- [Preview Launch](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py): `openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py`
- **Robot Description**
- **State Publisher**

### Control Stack

- **Controller Manager**
- [ROS Controllers](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml): `openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml`
- [V10 Hardware](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_hardware/src/v10_simple_hardware.cpp): `openarmx_hardware/src/v10_simple_hardware.cpp`
- [Hardware Interface](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_hardware/include/openarmx_hardware/v10_simple_hardware.hpp): `openarmx_hardware/include/openarmx_hardware/v10_simple_hardware.hpp`
- **OpenArmX CAN**
- **Arm Motors**

### Motion Planning

- [MoveIt Config](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/config/openarmx_bimanual.srdf): `openarmx_bimanual_moveit_config/config/openarmx_bimanual.srdf`
- [Move Group](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/launch/move_group.launch.py): `openarmx_bimanual_moveit_config/launch/move_group.launch.py`
- [MoveIt Demo](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bimanual_moveit_config/launch/demo.launch.py): `openarmx_bimanual_moveit_config/launch/demo.launch.py`
- **RViz**

### Gravity Compensation

- [Gravity Node](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_gravity_comp/src/gravity_comp_node.cpp): `openarmx_gravity_comp/src/gravity_comp_node.cpp`
- [KDL Dynamics](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_gravity_comp/src/dynamics.cpp): `openarmx_gravity_comp/src/dynamics.cpp`
- [Effort Controllers](https://github.com/openarmx/openarmx_ros2/blob/6.0_basic/openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml): `openarmx_bringup/config/v10_controllers/openarmx_v10_bimanual_controllers.yaml`

### Other components

- **Operator**

## Connections

- Operator → Core Launch: starts (evidence: `README.md`)
- Operator → Preview Launch: starts (evidence: `README.md`)
- Core Launch → Robot Description: generates (evidence: `openarmx_bringup/launch/openarmx.bimanual.launch.py`)
- Core Launch → State Publisher: launches (evidence: `openarmx_bringup/launch/openarmx.bimanual.launch.py`)
- Core Launch → Controller Manager: launches
- Preview Launch → State Publisher: launches (evidence: `openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py`)
- Preview Launch → Controller Manager: launches (evidence: `openarmx_preview_bringup/launch/openarmx.preview.bimanual.launch.py`)
- Controller Manager → ROS Controllers: configures
- Controller Manager → V10 Hardware: loads plugin (evidence: `README.md`)
- V10 Hardware → Hardware Interface: implements (evidence: `openarmx_hardware/src/v10_simple_hardware.cpp`)
- V10 Hardware → OpenArmX CAN: commands via (evidence: `README.md`)
- OpenArmX CAN → Arm Motors: drives (evidence: `README.md`)
- Operator → MoveIt Demo: runs example (evidence: `README.md`)
- MoveIt Demo → Move Group: launches (evidence: `openarmx_bimanual_moveit_config/launch/demo.launch.py`)
- MoveIt Demo → RViz: launches
- MoveIt Demo → MoveIt Config: uses config
- Move Group → Controller Manager: dispatches plans
- Core Launch → Gravity Node: launches (evidence: `openarmx_bringup/launch/openarmx.bimanual.launch.py`)
- Gravity Node → KDL Dynamics: computes dynamics (evidence: `openarmx_gravity_comp/src/gravity_comp_node.cpp`)
- Gravity Node → Effort Controllers: publishes effort (evidence: `openarmx_gravity_comp/src/gravity_comp_node.cpp`)
