# doosanrobotics/doosan-robot2 architecture

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

- Interactive diagram: https://gitdiagram.com/doosanrobotics/doosan-robot2
- Repository: https://github.com/doosanrobotics/doosan-robot2

## Overview

This repository provides ROS 2 support for Doosan robot models, spanning real and virtual control, visualization, planning, and simulation. The principal workflow starts with a user launching a robot configuration, which sets up the robot description and controllers, then connects to a physical or emulated controller; Gazebo and MoveIt are optional branches. The graph includes the hardware interface, robot command library, message interface, and mobile whole-body control. Relationships are limited to the README and source-index references shown; unsampled launch and runtime wiring is not inferred.

Main entry points: [`dsr_bringup2/launch`](https://github.com/doosanrobotics/doosan-robot2/tree/jazzy/dsr_bringup2/launch) (Robot launch), [`dsr_controller2/src/dsr_controller2.cpp`](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/src/dsr_controller2.cpp) (Robot controller), [`dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py`](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py) (MoveIt configurations), [`dsr_bringup2/dsr_bringup2/controller_config.py`](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/dsr_bringup2/controller_config.py) (Controller configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bringup["Bringup and description"]
  node_bringup_launch["Robot launch"]
  node_config["Controller configuration"]
  node_description["Robot description"]
  node_emulator["Virtual emulator<br/>[run_emulator.py]"]
end

subgraph group_control["Robot control"]
  node_robot_controller["Robot controller"]
  node_controller_api["Controller interface"]
  node_robot_library["Robot command library<br/>[dsr_robot.cpp]"]
  node_framework["Controller framework<br/>[DRFLEx.h]"]
  node_hardware["Hardware interface"]
  node_messages["ROS message interface"]
end

subgraph group_planning["Planning and mobile control"]
  node_moveit["MoveIt configurations<br/>[start.launch.py]"]
  node_rviz["RViz visualization"]
  node_trajectory["Joint trajectories"]
  node_whole_body["Mobile whole-body control"]
end

subgraph group_simulation["Simulation and perception"]
  node_gazebo["Gazebo simulation"]
  node_mujoco["MuJoCo simulation"]
  node_visual_servo["Visual servoing"]
end

node_user(("ROS 2 user"))
node_robot{{"Doosan robot"}}
node_gazebo_service{{"Gazebo service"}}

node_user -->|"launches"| node_bringup_launch
node_bringup_launch -.->|"configures"| node_config
node_bringup_launch -.->|"starts"| node_description
node_bringup_launch -->|"starts virtual mode"| node_emulator
node_bringup_launch -->|"launches simulation"| node_gazebo
node_bringup_launch -->|"launches planning"| node_moveit
node_bringup_launch -->|"launches visualization"| node_rviz
node_config -->|"parses joints"| node_description
node_robot_controller -->|"calls"| node_framework
node_robot_controller -->|"implements"| node_controller_api
node_robot_controller -->|"serves requests"| node_messages
node_robot_library -->|"calls services"| node_messages
node_hardware -->|"uses"| node_framework
node_hardware -->|"connects to"| node_robot
node_emulator -.->|"provides virtual controller"| node_robot_controller
node_robot_controller -->|"controls"| node_robot
node_moveit -->|"uses joint config"| node_config
node_moveit -.->|"dispatches trajectories"| node_trajectory
node_whole_body -->|"forwards arm goals"| node_trajectory
node_gazebo -->|"starts"| node_gazebo_service
node_mujoco -.->|"simulates"| node_robot
node_visual_servo -.->|"uses simulated camera"| node_gazebo

click node_bringup_launch "https://github.com/doosanrobotics/doosan-robot2/tree/jazzy/dsr_bringup2/launch"
click node_config "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/dsr_bringup2/controller_config.py"
click node_description "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_description2/launch/dsr_description.launch.py"
click node_emulator "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/dsr_bringup2/run_emulator.py"
click node_robot_controller "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/src/dsr_controller2.cpp"
click node_controller_api "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/include/dsr_controller2/dsr_controller2.hpp"
click node_robot_library "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_common2/src/dsr_robot.cpp"
click node_framework "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_common2/include/DRFLEx.h"
click node_hardware "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_hardware2/src/dsr_hw_interface2.cpp"
click node_messages "https://github.com/doosanrobotics/doosan-robot2/tree/jazzy/dsr_msgs2"
click node_gazebo "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_gazebo2/launch/dsr_gazebo.launch.py"
click node_mujoco "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_mujoco/launch/dsr_mujoco.launch.py"
click node_moveit "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py"
click node_rviz "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/launch/dsr_bringup2_rviz.launch.py"
click node_trajectory "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/src/dsr_joint_trajectory.cpp"
click node_whole_body "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_mobile_wbc2/src/whole_body_controller.cpp"
click node_visual_servo "https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_example2/dsr_visualservoing/dsr_visualservoing/detect_marker_gz.py"

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_bringup_launch,node_config,node_description,node_emulator,node_user toneBlue
class node_robot_controller,node_controller_api,node_robot_library,node_framework,node_hardware,node_messages toneAmber
class node_moveit,node_rviz,node_trajectory,node_whole_body toneMint
class node_gazebo,node_mujoco,node_visual_servo toneRose
class node_robot,node_gazebo_service toneIndigo
```

## Components

### Bringup and description

- [Robot launch](https://github.com/doosanrobotics/doosan-robot2/tree/jazzy/dsr_bringup2/launch): `dsr_bringup2/launch`
- [Controller configuration](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/dsr_bringup2/controller_config.py): `dsr_bringup2/dsr_bringup2/controller_config.py`
- [Robot description](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_description2/launch/dsr_description.launch.py): `dsr_description2/launch/dsr_description.launch.py`
- [Virtual emulator](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/dsr_bringup2/run_emulator.py): `dsr_bringup2/dsr_bringup2/run_emulator.py`

### Robot control

- [Robot controller](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/src/dsr_controller2.cpp): `dsr_controller2/src/dsr_controller2.cpp`
- [Controller interface](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/include/dsr_controller2/dsr_controller2.hpp): `dsr_controller2/include/dsr_controller2/dsr_controller2.hpp`
- [Robot command library](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_common2/src/dsr_robot.cpp): `dsr_common2/src/dsr_robot.cpp`
- [Controller framework](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_common2/include/DRFLEx.h): `dsr_common2/include/DRFLEx.h`
- [Hardware interface](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_hardware2/src/dsr_hw_interface2.cpp): `dsr_hardware2/src/dsr_hw_interface2.cpp`
- [ROS message interface](https://github.com/doosanrobotics/doosan-robot2/tree/jazzy/dsr_msgs2): `dsr_msgs2`

### Planning and mobile control

- [MoveIt configurations](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py): `dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py`
- [RViz visualization](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_bringup2/launch/dsr_bringup2_rviz.launch.py): `dsr_bringup2/launch/dsr_bringup2_rviz.launch.py`
- [Joint trajectories](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_controller2/src/dsr_joint_trajectory.cpp): `dsr_controller2/src/dsr_joint_trajectory.cpp`
- [Mobile whole-body control](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_mobile_wbc2/src/whole_body_controller.cpp): `dsr_mobile_wbc2/src/whole_body_controller.cpp`

### Simulation and perception

- [Gazebo simulation](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_gazebo2/launch/dsr_gazebo.launch.py): `dsr_gazebo2/launch/dsr_gazebo.launch.py`
- [MuJoCo simulation](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_mujoco/launch/dsr_mujoco.launch.py): `dsr_mujoco/launch/dsr_mujoco.launch.py`
- [Visual servoing](https://github.com/doosanrobotics/doosan-robot2/blob/jazzy/dsr_example2/dsr_visualservoing/dsr_visualservoing/detect_marker_gz.py): `dsr_example2/dsr_visualservoing/dsr_visualservoing/detect_marker_gz.py`

### Other components

- **ROS 2 user**
- **Doosan robot**
- **Gazebo service**

## Connections

- ROS 2 user → Robot launch: launches
- Robot launch → Controller configuration: configures
- Robot launch → Robot description: starts
- Robot launch → Virtual emulator: starts virtual mode
- Robot launch → Gazebo simulation: launches simulation
- Robot launch → MoveIt configurations: launches planning
- Robot launch → RViz visualization: launches visualization
- Controller configuration → Robot description: parses joints (evidence: `dsr_bringup2/dsr_bringup2/controller_config.py`)
- Robot controller → Controller framework: calls (evidence: `dsr_controller2/src/dsr_controller2.cpp`)
- Robot controller → Controller interface: implements (evidence: `dsr_controller2/src/dsr_controller2.cpp`)
- Robot controller → ROS message interface: serves requests
- Robot command library → ROS message interface: calls services (evidence: `dsr_common2/src/dsr_robot.cpp`)
- Hardware interface → Controller framework: uses (evidence: `dsr_hardware2/src/dsr_hw_interface2.cpp`)
- Hardware interface → Doosan robot: connects to
- Virtual emulator → Robot controller: provides virtual controller
- Robot controller → Doosan robot: controls
- MoveIt configurations → Controller configuration: uses joint config (evidence: `dsr_moveit2/dsr_moveit_config_r100_a0509_dual/launch/start.launch.py`)
- MoveIt configurations → Joint trajectories: dispatches trajectories
- Mobile whole-body control → Joint trajectories: forwards arm goals (evidence: `dsr_mobile_wbc2/src/whole_body_controller.cpp`)
- Gazebo simulation → Gazebo service: starts (evidence: `dsr_gazebo2/launch/dsr_gazebo.launch.py`)
- MuJoCo simulation → Doosan robot: simulates
- Visual servoing → Gazebo simulation: uses simulated camera
